baiqiu-cms-decoration-dg 0.4.13 → 0.4.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
module.exports=function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(s,r,function(t){return e[t]}.bind(null,r));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="fb15")}({0:function(e,t){},"0071":function(e,t,i){"use strict";i("ee0a")},"02a3":function(e,t,i){(function(t,i){e.exports=i()})(0,(function(){"use strict";function e(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={}),Object.keys(s).forEach((function(r){"undefined"===typeof i[r]?i[r]=s[r]:e(s[r])&&e(i[r])&&Object.keys(s[r]).length>0&&t(i[r],s[r])}))}var i="undefined"!==typeof document?document:{},s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};t(i,s);var r="undefined"!==typeof window?window:{},n={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};t(r,n);var a=function(e){for(var t=this,i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this};function o(e,t){var s=[],n=0;if(e&&!t&&e instanceof a)return e;if(e)if("string"===typeof e){var o,l,d=e.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var u="div";for(0===d.indexOf("<li")&&(u="ul"),0===d.indexOf("<tr")&&(u="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(u="tr"),0===d.indexOf("<tbody")&&(u="table"),0===d.indexOf("<option")&&(u="select"),l=i.createElement(u),l.innerHTML=d,n=0;n<l.childNodes.length;n+=1)s.push(l.childNodes[n])}else for(o=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||i).querySelectorAll(e.trim()):[i.getElementById(e.trim().split("#")[1])],n=0;n<o.length;n+=1)o[n]&&s.push(o[n])}else if(e.nodeType||e===r||e===i)s.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)s.push(e[n]);return new a(s)}function l(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function d(e){if("undefined"===typeof e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)"undefined"!==typeof this[s]&&"undefined"!==typeof this[s].classList&&this[s].classList.add(t[i]);return this}function u(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)"undefined"!==typeof this[s]&&"undefined"!==typeof this[s].classList&&this[s].classList.remove(t[i]);return this}function c(e){return!!this[0]&&this[0].classList.contains(e)}function h(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)"undefined"!==typeof this[s]&&"undefined"!==typeof this[s].classList&&this[s].classList.toggle(t[i]);return this}function p(e,t){var i=arguments;if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(e,t);else for(var r in e)this[s][r]=e[r],this[s].setAttribute(r,e[r]);return this}function f(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function m(e,t){var i;if("undefined"!==typeof t){for(var s=0;s<this.length;s+=1)i=this[s],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0],i){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);return r||void 0}}function g(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function y(e){"string"!==typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this}function v(){var e,t=[],i=arguments.length;while(i--)t[i]=arguments[i];var s=t[0],r=t[1],n=t[2],a=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),o(t).is(r))n.apply(t,i);else for(var s=o(t).parents(),a=0;a<s.length;a+=1)o(s[a]).is(r)&&n.apply(s[a],i)}}function d(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"===typeof t[1]&&(e=t,s=e[0],n=e[1],a=e[2],r=void 0),a||(a=!1);for(var u,c=s.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(r)for(u=0;u<c.length;u+=1){var f=c[u];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:n,proxyListener:l}),p.addEventListener(f,l,a)}else for(u=0;u<c.length;u+=1){var m=c[u];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:n,proxyListener:d}),p.addEventListener(m,d,a)}}return this}function b(){var e,t=[],i=arguments.length;while(i--)t[i]=arguments[i];var s=t[0],r=t[1],n=t[2],a=t[3];"function"===typeof t[1]&&(e=t,s=e[0],n=e[1],a=e[2],r=void 0),a||(a=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],u=0;u<this.length;u+=1){var c=this[u],h=void 0;if(!r&&c.dom7Listeners?h=c.dom7Listeners[d]:r&&c.dom7LiveListeners&&(h=c.dom7LiveListeners[d]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];n&&f.listener===n||n&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===n?(c.removeEventListener(d,f.proxyListener,a),h.splice(p,1)):n||(c.removeEventListener(d,f.proxyListener,a),h.splice(p,1))}}return this}function _(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];for(var s=e[0].split(" "),n=e[1],a=0;a<s.length;a+=1)for(var o=s[a],l=0;l<this.length;l+=1){var d=this[l],u=void 0;try{u=new r.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(c){u=i.createEvent("Event"),u.initEvent(o,!0,!0),u.detail=n}d.dom7EventData=e.filter((function(e,t){return t>0})),d.dispatchEvent(u),d.dom7EventData=[],delete d.dom7EventData}return this}function T(e){var t,i=["webkitTransitionEnd","transitionend"],s=this;function r(n){if(n.target===this)for(e.call(this,n),t=0;t<i.length;t+=1)s.off(i[t],r)}if(e)for(t=0;t<i.length;t+=1)s.on(i[t],r);return this}function S(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function w(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function E(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),s=i.body,n=e.clientTop||s.clientTop||0,a=e.clientLeft||s.clientLeft||0,o=e===r?r.scrollY:e.scrollTop,l=e===r?r.scrollX:e.scrollLeft;return{top:t.top+o-n,left:t.left+l-a}}return null}function x(){return this[0]?r.getComputedStyle(this[0],null):{}}function C(e,t){var i;if(1===arguments.length){if("string"!==typeof e){for(i=0;i<this.length;i+=1)for(var s in e)this[i].style[s]=e[s];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this}function k(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function I(e){for(var t=[],i=this,s=0;s<i.length;s+=1)e.call(i[s],s,i[s])&&t.push(i[s]);return new a(t)}function P(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function O(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function L(e){var t,s,n=this[0];if(!n||"undefined"===typeof e)return!1;if("string"===typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(t=o(e),s=0;s<t.length;s+=1)if(t[s]===n)return!0;return!1}if(e===i)return n===i;if(e===r)return n===r;if(e.nodeType||e instanceof a){for(t=e.nodeType?[e]:e,s=0;s<t.length;s+=1)if(t[s]===n)return!0;return!1}return!1}function A(){var e,t=this[0];if(t){e=0;while(null!==(t=t.previousSibling))1===t.nodeType&&(e+=1);return e}}function D(e){if("undefined"===typeof e)return this;var t,i=this.length;return e>i-1?new a([]):e<0?(t=i+e,new a(t<0?[]:[this[t]])):new a([this[e]])}function M(){var e,t=[],s=arguments.length;while(s--)t[s]=arguments[s];for(var r=0;r<t.length;r+=1){e=t[r];for(var n=0;n<this.length;n+=1)if("string"===typeof e){var o=i.createElement("div");o.innerHTML=e;while(o.firstChild)this[n].appendChild(o.firstChild)}else if(e instanceof a)for(var l=0;l<e.length;l+=1)this[n].appendChild(e[l]);else this[n].appendChild(e)}return this}function N(e){var t,s;for(t=0;t<this.length;t+=1)if("string"===typeof e){var r=i.createElement("div");for(r.innerHTML=e,s=r.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(r.childNodes[s],this[t].childNodes[0])}else if(e instanceof a)for(s=0;s<e.length;s+=1)this[t].insertBefore(e[s],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function R(e){return this.length>0?e?this[0].nextElementSibling&&o(this[0].nextElementSibling).is(e)?new a([this[0].nextElementSibling]):new a([]):this[0].nextElementSibling?new a([this[0].nextElementSibling]):new a([]):new a([])}function U(e){var t=[],i=this[0];if(!i)return new a([]);while(i.nextElementSibling){var s=i.nextElementSibling;e?o(s).is(e)&&t.push(s):t.push(s),i=s}return new a(t)}function B(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&o(t.previousElementSibling).is(e)?new a([t.previousElementSibling]):new a([]):t.previousElementSibling?new a([t.previousElementSibling]):new a([])}return new a([])}function j(e){var t=[],i=this[0];if(!i)return new a([]);while(i.previousElementSibling){var s=i.previousElementSibling;e?o(s).is(e)&&t.push(s):t.push(s),i=s}return new a(t)}function F(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?o(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return o(l(t))}function q(e){for(var t=[],i=0;i<this.length;i+=1){var s=this[i].parentNode;while(s)e?o(s).is(e)&&t.push(s):t.push(s),s=s.parentNode}return o(l(t))}function $(e){var t=this;return"undefined"===typeof e?new a([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function H(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].querySelectorAll(e),r=0;r<s.length;r+=1)t.push(s[r]);return new a(t)}function z(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].childNodes,r=0;r<s.length;r+=1)e?1===s[r].nodeType&&o(s[r]).is(e)&&t.push(s[r]):1===s[r].nodeType&&t.push(s[r]);return new a(l(t))}function V(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function G(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var i,s,r=this;for(i=0;i<e.length;i+=1){var n=o(e[i]);for(s=0;s<n.length;s+=1)r[r.length]=n[s],r.length+=1}return r}o.fn=a.prototype,o.Class=a,o.Dom7=a;var W={addClass:d,removeClass:u,hasClass:c,toggleClass:h,attr:p,removeAttr:f,data:m,transform:g,transition:y,on:v,off:b,trigger:_,transitionEnd:T,outerWidth:S,outerHeight:w,offset:E,css:C,each:k,html:P,text:O,is:L,index:A,eq:D,append:M,prepend:N,next:R,nextAll:U,prev:B,prevAll:j,parent:F,parents:q,closest:$,find:H,children:z,filter:I,remove:V,add:G,styles:x};Object.keys(W).forEach((function(e){o.fn[e]=o.fn[e]||W[e]}));var X={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(i){}try{delete t[e]}catch(i){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){var i,s,n;void 0===t&&(t="x");var a=r.getComputedStyle(e,null);return r.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),n=new r.WebKitCSSMatrix("none"===s?"":s)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===t&&(s=r.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=r.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0},parseUrlQuery:function(e){var t,i,s,n,a={},o=e||r.location.href;if("string"===typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",i=o.split("&").filter((function(e){return""!==e})),n=i.length,t=0;t<n;t+=1)s=i[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(s[0])]="undefined"===typeof s[1]?void 0:decodeURIComponent(s[1])||"";return a},isObject:function(e){return"object"===typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];for(var i=Object(e[0]),s=1;s<e.length;s+=1){var r=e[s];if(void 0!==r&&null!==r)for(var n=Object.keys(Object(r)),a=0,o=n.length;a<o;a+=1){var l=n[a],d=Object.getOwnPropertyDescriptor(r,l);void 0!==d&&d.enumerable&&(X.isObject(i[l])&&X.isObject(r[l])?X.extend(i[l],r[l]):!X.isObject(i[l])&&X.isObject(r[l])?(i[l]={},X.extend(i[l],r[l])):i[l]=r[l])}}return i}},Y=function(){return{touch:!!("ontouchstart"in r||r.DocumentTouch&&i instanceof r.DocumentTouch),pointerEvents:!!r.PointerEvent&&"maxTouchPoints"in r.navigator&&r.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in r||"WebkitMutationObserver"in r}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});r.addEventListener("testPassiveListener",null,t)}catch(i){}return e}(),gestures:function(){return"ongesturestart"in r}()}}(),J=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},K={components:{configurable:!0}};function Q(){var e,t,i=this,s=i.$el;e="undefined"!==typeof i.params.width?i.params.width:s[0].clientWidth,t="undefined"!==typeof i.params.height?i.params.height:s[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(s.css("padding-left"),10)-parseInt(s.css("padding-right"),10),t=t-parseInt(s.css("padding-top"),10)-parseInt(s.css("padding-bottom"),10),X.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function Z(){var e=this,t=e.params,i=e.$wrapperEl,s=e.size,n=e.rtlTranslate,a=e.wrongRTL,o=e.virtual&&t.virtual.enabled,l=o?e.virtual.slides.length:e.slides.length,d=i.children("."+e.params.slideClass),u=o?e.virtual.slides.length:d.length,c=[],h=[],p=[];function f(e){return!t.cssMode||e!==d.length-1}var m=t.slidesOffsetBefore;"function"===typeof m&&(m=t.slidesOffsetBefore.call(e));var g=t.slidesOffsetAfter;"function"===typeof g&&(g=t.slidesOffsetAfter.call(e));var y=e.snapGrid.length,v=e.snapGrid.length,b=t.spaceBetween,_=-m,T=0,S=0;if("undefined"!==typeof s){var w,E;"string"===typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*s),e.virtualSize=-b,n?d.css({marginLeft:"",marginTop:""}):d.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(w=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(w=Math.max(w,t.slidesPerView*t.slidesPerColumn)));for(var x,C=t.slidesPerColumn,k=w/C,I=Math.floor(u/t.slidesPerColumn),P=0;P<u;P+=1){E=0;var O=d.eq(P);if(t.slidesPerColumn>1){var L=void 0,A=void 0,D=void 0;if("row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){var M=Math.floor(P/(t.slidesPerGroup*t.slidesPerColumn)),N=P-t.slidesPerColumn*t.slidesPerGroup*M,R=0===M?t.slidesPerGroup:Math.min(Math.ceil((u-M*C*t.slidesPerGroup)/C),t.slidesPerGroup);D=Math.floor(N/R),A=N-D*R+M*t.slidesPerGroup,L=A+D*w/C,O.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===t.slidesPerColumnFill?(A=Math.floor(P/C),D=P-A*C,(A>I||A===I&&D===C-1)&&(D+=1,D>=C&&(D=0,A+=1))):(D=Math.floor(P/k),A=P-D*k);O.css("margin-"+(e.isHorizontal()?"top":"left"),0!==D&&t.spaceBetween&&t.spaceBetween+"px")}if("none"!==O.css("display")){if("auto"===t.slidesPerView){var U=r.getComputedStyle(O[0],null),B=O[0].style.transform,j=O[0].style.webkitTransform;if(B&&(O[0].style.transform="none"),j&&(O[0].style.webkitTransform="none"),t.roundLengths)E=e.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else if(e.isHorizontal()){var F=parseFloat(U.getPropertyValue("width")),q=parseFloat(U.getPropertyValue("padding-left")),$=parseFloat(U.getPropertyValue("padding-right")),H=parseFloat(U.getPropertyValue("margin-left")),z=parseFloat(U.getPropertyValue("margin-right")),V=U.getPropertyValue("box-sizing");E=V&&"border-box"===V?F+H+z:F+q+$+H+z}else{var G=parseFloat(U.getPropertyValue("height")),W=parseFloat(U.getPropertyValue("padding-top")),Y=parseFloat(U.getPropertyValue("padding-bottom")),J=parseFloat(U.getPropertyValue("margin-top")),K=parseFloat(U.getPropertyValue("margin-bottom")),Q=U.getPropertyValue("box-sizing");E=Q&&"border-box"===Q?G+J+K:G+W+Y+J+K}B&&(O[0].style.transform=B),j&&(O[0].style.webkitTransform=j),t.roundLengths&&(E=Math.floor(E))}else E=(s-(t.slidesPerView-1)*b)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),d[P]&&(e.isHorizontal()?d[P].style.width=E+"px":d[P].style.height=E+"px");d[P]&&(d[P].swiperSlideSize=E),p.push(E),t.centeredSlides?(_=_+E/2+T/2+b,0===T&&0!==P&&(_=_-s/2-b),0===P&&(_=_-s/2-b),Math.abs(_)<.001&&(_=0),t.roundLengths&&(_=Math.floor(_)),S%t.slidesPerGroup===0&&c.push(_),h.push(_)):(t.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&c.push(_),h.push(_),_=_+E+b),e.virtualSize+=E+b,T=E,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+g,n&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(E+t.spaceBetween)*w,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){x=[];for(var Z=0;Z<c.length;Z+=1){var ee=c[Z];t.roundLengths&&(ee=Math.floor(ee)),c[Z]<e.virtualSize+c[0]&&x.push(ee)}c=x}if(!t.centeredSlides){x=[];for(var te=0;te<c.length;te+=1){var ie=c[te];t.roundLengths&&(ie=Math.floor(ie)),c[te]<=e.virtualSize-s&&x.push(ie)}c=x,Math.floor(e.virtualSize-s)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-s)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?n?d.filter(f).css({marginLeft:b+"px"}):d.filter(f).css({marginRight:b+"px"}):d.filter(f).css({marginBottom:b+"px"})),t.centeredSlides&&t.centeredSlidesBounds){var se=0;p.forEach((function(e){se+=e+(t.spaceBetween?t.spaceBetween:0)})),se-=t.spaceBetween;var re=se-s;c=c.map((function(e){return e<0?-m:e>re?re+g:e}))}if(t.centerInsufficientSlides){var ne=0;if(p.forEach((function(e){ne+=e+(t.spaceBetween?t.spaceBetween:0)})),ne-=t.spaceBetween,ne<s){var ae=(s-ne)/2;c.forEach((function(e,t){c[t]=e-ae})),h.forEach((function(e,t){h[t]=e+ae}))}}X.extend(e,{slides:d,snapGrid:c,slidesGrid:h,slidesSizesGrid:p}),u!==l&&e.emit("slidesLengthChange"),c.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function ee(e){var t,i=this,s=[],r=0;if("number"===typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)if(i.params.centeredSlides)i.visibleSlides.each((function(e,t){s.push(t)}));else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var n=i.activeIndex+t;if(n>i.slides.length)break;s.push(i.slides.eq(n)[0])}else s.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<s.length;t+=1)if("undefined"!==typeof s[t]){var a=s[t].offsetHeight;r=a>r?a:r}r&&i.$wrapperEl.css("height",r+"px")}function te(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}function ie(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,s=t.slides,r=t.rtlTranslate;if(0!==s.length){"undefined"===typeof s[0].swiperSlideOffset&&t.updateSlidesOffset();var n=-e;r&&(n=e),s.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var a=0;a<s.length;a+=1){var l=s[a],d=(n+(i.centeredSlides?t.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight){var u=-(n-l.swiperSlideOffset),c=u+t.slidesSizesGrid[a],h=u>=0&&u<t.size-1||c>1&&c<=t.size||u<=0&&c>=t.size;h&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(a),s.eq(a).addClass(i.slideVisibleClass))}l.progress=r?-d:d}t.visibleSlides=o(t.visibleSlides)}}function se(e){var t=this;if("undefined"===typeof e){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var s=t.params,r=t.maxTranslate()-t.minTranslate(),n=t.progress,a=t.isBeginning,o=t.isEnd,l=a,d=o;0===r?(n=0,a=!0,o=!0):(n=(e-t.minTranslate())/r,a=n<=0,o=n>=1),X.extend(t,{progress:n,isBeginning:a,isEnd:o}),(s.watchSlidesProgress||s.watchSlidesVisibility||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!d&&t.emit("reachEnd toEdge"),(l&&!a||d&&!o)&&t.emit("fromEdge"),t.emit("progress",n)}function re(){var e,t=this,i=t.slides,s=t.params,r=t.$wrapperEl,n=t.activeIndex,a=t.realIndex,o=t.virtual&&s.virtual.enabled;i.removeClass(s.slideActiveClass+" "+s.slideNextClass+" "+s.slidePrevClass+" "+s.slideDuplicateActiveClass+" "+s.slideDuplicateNextClass+" "+s.slideDuplicatePrevClass),e=o?t.$wrapperEl.find("."+s.slideClass+'[data-swiper-slide-index="'+n+'"]'):i.eq(n),e.addClass(s.slideActiveClass),s.loop&&(e.hasClass(s.slideDuplicateClass)?r.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(s.slideDuplicateActiveClass):r.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(s.slideDuplicateActiveClass));var l=e.nextAll("."+s.slideClass).eq(0).addClass(s.slideNextClass);s.loop&&0===l.length&&(l=i.eq(0),l.addClass(s.slideNextClass));var d=e.prevAll("."+s.slideClass).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=i.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(l.hasClass(s.slideDuplicateClass)?r.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicateNextClass):r.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?r.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicatePrevClass):r.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicatePrevClass))}function ne(e){var t,i=this,s=i.rtlTranslate?i.translate:-i.translate,r=i.slidesGrid,n=i.snapGrid,a=i.params,o=i.activeIndex,l=i.realIndex,d=i.snapIndex,u=e;if("undefined"===typeof u){for(var c=0;c<r.length;c+=1)"undefined"!==typeof r[c+1]?s>=r[c]&&s<r[c+1]-(r[c+1]-r[c])/2?u=c:s>=r[c]&&s<r[c+1]&&(u=c+1):s>=r[c]&&(u=c);a.normalizeSlideIndex&&(u<0||"undefined"===typeof u)&&(u=0)}if(n.indexOf(s)>=0)t=n.indexOf(s);else{var h=Math.min(a.slidesPerGroupSkip,u);t=h+Math.floor((u-h)/a.slidesPerGroup)}if(t>=n.length&&(t=n.length-1),u!==o){var p=parseInt(i.slides.eq(u).attr("data-swiper-slide-index")||u,10);X.extend(i,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:u}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&i.emit("slideChange")}else t!==d&&(i.snapIndex=t,i.emit("snapIndexChange"))}function ae(e){var t=this,i=t.params,s=o(e.target).closest("."+i.slideClass)[0],r=!1;if(s)for(var n=0;n<t.slides.length;n+=1)t.slides[n]===s&&(r=!0);if(!s||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(o(s).attr("data-swiper-slide-index"),10):t.clickedIndex=o(s).index(),i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}J.prototype.on=function(e,t,i){var s=this;if("function"!==typeof t)return s;var r=i?"unshift":"push";return e.split(" ").forEach((function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)})),s},J.prototype.once=function(e,t,i){var s=this;if("function"!==typeof t)return s;function r(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];s.off(e,r),r.f7proxy&&delete r.f7proxy,t.apply(s,i)}return r.f7proxy=t,s.on(e,r,i)},J.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){"undefined"===typeof t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach((function(s,r){(s===t||s.f7proxy&&s.f7proxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},J.prototype.emit=function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var i,s,r,n=this;if(!n.eventsListeners)return n;"string"===typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),r=n):(i=e[0].events,s=e[0].data,r=e[0].context||n);var a=Array.isArray(i)?i:i.split(" ");return a.forEach((function(e){if(n.eventsListeners&&n.eventsListeners[e]){var t=[];n.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(r,s)}))}})),n},J.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i];s.params&&X.extend(e,s.params)}))},J.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i],r=e[i]||{};s.instance&&Object.keys(s.instance).forEach((function(e){var i=s.instance[e];t[e]="function"===typeof i?i.bind(t):i})),s.on&&t.on&&Object.keys(s.on).forEach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(r)}))},K.components.set=function(e){var t=this;t.use&&t.use(e)},J.installModule=function(e){var t=[],i=arguments.length-1;while(i-- >0)t[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var r=e.name||Object.keys(s.prototype.modules).length+"_"+X.now();return s.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach((function(t){s.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){s[t]=e.static[t]})),e.install&&e.install.apply(s,t),s},J.use=function(e){var t=[],i=arguments.length-1;while(i-- >0)t[i]=arguments[i+1];var s=this;return Array.isArray(e)?(e.forEach((function(e){return s.installModule(e)})),s):s.installModule.apply(s,[e].concat(t))},Object.defineProperties(J,K);var oe={updateSize:Q,updateSlides:Z,updateAutoHeight:ee,updateSlidesOffset:te,updateSlidesProgress:ie,updateProgress:se,updateSlidesClasses:re,updateActiveIndex:ne,updateClickedSlide:ae};function le(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,i=t.params,s=t.rtlTranslate,r=t.translate,n=t.$wrapperEl;if(i.virtualTranslate)return s?-r:r;if(i.cssMode)return r;var a=X.getTranslate(n[0],e);return s&&(a=-a),a||0}function de(e,t){var i,s=this,r=s.rtlTranslate,n=s.params,a=s.$wrapperEl,o=s.wrapperEl,l=s.progress,d=0,u=0,c=0;s.isHorizontal()?d=r?-e:e:u=e,n.roundLengths&&(d=Math.floor(d),u=Math.floor(u)),n.cssMode?o[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-u:n.virtualTranslate||a.transform("translate3d("+d+"px, "+u+"px, "+c+"px)"),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:u;var h=s.maxTranslate()-s.minTranslate();i=0===h?0:(e-s.minTranslate())/h,i!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)}function ue(){return-this.snapGrid[0]}function ce(){return-this.snapGrid[this.snapGrid.length-1]}function he(e,t,i,s,r){var n;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);var a=this,o=a.params,l=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var d,u=a.minTranslate(),c=a.maxTranslate();if(d=s&&e>u?u:s&&e<c?c:e,a.updateProgress(d),o.cssMode){var h=a.isHorizontal();return 0===t?l[h?"scrollLeft":"scrollTop"]=-d:l.scrollTo?l.scrollTo((n={},n[h?"left":"top"]=-d,n.behavior="smooth",n)):l[h?"scrollLeft":"scrollTop"]=-d,!0}return 0===t?(a.setTransition(0),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}var pe={getTranslate:le,setTranslate:de,minTranslate:ue,maxTranslate:ce,translateTo:he};function fe(e,t){var i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function me(e,t){void 0===e&&(e=!0);var i=this,s=i.activeIndex,r=i.params,n=i.previousIndex;if(!r.cssMode){r.autoHeight&&i.updateAutoHeight();var a=t;if(a||(a=s>n?"next":s<n?"prev":"reset"),i.emit("transitionStart"),e&&s!==n){if("reset"===a)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===a?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}}function ge(e,t){void 0===e&&(e=!0);var i=this,s=i.activeIndex,r=i.previousIndex,n=i.params;if(i.animating=!1,!n.cssMode){i.setTransition(0);var a=t;if(a||(a=s>r?"next":s<r?"prev":"reset"),i.emit("transitionEnd"),e&&s!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}}var ye={setTransition:fe,transitionStart:me,transitionEnd:ge};function ve(e,t,i,s){var r;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var n=this,a=e;a<0&&(a=0);var o=n.params,l=n.snapGrid,d=n.slidesGrid,u=n.previousIndex,c=n.activeIndex,h=n.rtlTranslate,p=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var f=Math.min(n.params.slidesPerGroupSkip,a),m=f+Math.floor((a-f)/n.params.slidesPerGroup);m>=l.length&&(m=l.length-1),(c||o.initialSlide||0)===(u||0)&&i&&n.emit("beforeSlideChangeStart");var g,y=-l[m];if(n.updateProgress(y),o.normalizeSlideIndex)for(var v=0;v<d.length;v+=1)-Math.floor(100*y)>=Math.floor(100*d[v])&&(a=v);if(n.initialized&&a!==c){if(!n.allowSlideNext&&y<n.translate&&y<n.minTranslate())return!1;if(!n.allowSlidePrev&&y>n.translate&&y>n.maxTranslate()&&(c||0)!==a)return!1}if(g=a>c?"next":a<c?"prev":"reset",h&&-y===n.translate||!h&&y===n.translate)return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==o.effect&&n.setTranslate(y),"reset"!==g&&(n.transitionStart(i,g),n.transitionEnd(i,g)),!1;if(o.cssMode){var b=n.isHorizontal(),_=-y;return h&&(_=p.scrollWidth-p.offsetWidth-_),0===t?p[b?"scrollLeft":"scrollTop"]=_:p.scrollTo?p.scrollTo((r={},r[b?"left":"top"]=_,r.behavior="smooth",r)):p[b?"scrollLeft":"scrollTop"]=_,!0}return 0===t?(n.setTransition(0),n.setTranslate(y),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,g),n.transitionEnd(i,g)):(n.setTransition(t),n.setTranslate(y),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,g),n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,g))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd))),!0}function be(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=e;return r.params.loop&&(n+=r.loopedSlides),r.slideTo(n,t,i,s)}function _e(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,r=s.params,n=s.animating,a=s.activeIndex<r.slidesPerGroupSkip?1:r.slidesPerGroup;if(r.loop){if(n)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return s.slideTo(s.activeIndex+a,e,t,i)}function Te(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,r=s.params,n=s.animating,a=s.snapGrid,o=s.slidesGrid,l=s.rtlTranslate;if(r.loop){if(n)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}var d=l?s.translate:-s.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,h=u(d),p=a.map((function(e){return u(e)})),f=(o.map((function(e){return u(e)})),a[p.indexOf(h)],a[p.indexOf(h)-1]);return"undefined"===typeof f&&r.cssMode&&a.forEach((function(e){!f&&h>=e&&(f=e)})),"undefined"!==typeof f&&(c=o.indexOf(f),c<0&&(c=s.activeIndex-1)),s.slideTo(c,e,t,i)}function Se(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this;return s.slideTo(s.activeIndex,e,t,i)}function we(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var r=this,n=r.activeIndex,a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){var d=r.snapGrid[o],u=r.snapGrid[o+1];l-d>(u-d)*s&&(n+=r.params.slidesPerGroup)}else{var c=r.snapGrid[o-1],h=r.snapGrid[o];l-c<=(h-c)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,i)}function Ee(){var e,t=this,i=t.params,s=t.$wrapperEl,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,n=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(o(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),X.nextTick((function(){t.slideTo(n)}))):t.slideTo(n):n>t.slides.length-r?(t.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),X.nextTick((function(){t.slideTo(n)}))):t.slideTo(n)}else t.slideTo(n)}var xe={slideTo:ve,slideToLoop:be,slideNext:_e,slidePrev:Te,slideReset:Se,slideToClosest:we,slideToClickedSlide:Ee};function Ce(){var e=this,t=e.params,s=e.$wrapperEl;s.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var r=s.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var n=t.slidesPerGroup-r.length%t.slidesPerGroup;if(n!==t.slidesPerGroup){for(var a=0;a<n;a+=1){var l=o(i.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);s.append(l)}r=s.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);var d=[],u=[];r.each((function(t,i){var s=o(i);t<e.loopedSlides&&u.push(i),t<r.length&&t>=r.length-e.loopedSlides&&d.push(i),s.attr("data-swiper-slide-index",t)}));for(var c=0;c<u.length;c+=1)s.append(o(u[c].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var h=d.length-1;h>=0;h-=1)s.prepend(o(d[h].cloneNode(!0)).addClass(t.slideDuplicateClass))}function ke(){var e=this;e.emit("beforeLoopFix");var t,i=e.activeIndex,s=e.slides,r=e.loopedSlides,n=e.allowSlidePrev,a=e.allowSlideNext,o=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var d=-o[i],u=d-e.getTranslate();if(i<r){t=s.length-3*r+i,t+=r;var c=e.slideTo(t,0,!1,!0);c&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)}else if(i>=s.length-r){t=-s.length+i+r,t+=r;var h=e.slideTo(t,0,!1,!0);h&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)}e.allowSlidePrev=n,e.allowSlideNext=a,e.emit("loopFix")}function Ie(){var e=this,t=e.$wrapperEl,i=e.params,s=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),s.removeAttr("data-swiper-slide-index")}var Pe={loopCreate:Ce,loopFix:ke,loopDestroy:Ie};function Oe(e){var t=this;if(!(Y.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var i=t.el;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"}}function Le(){var e=this;Y.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.el.style.cursor="")}var Ae={setGrabCursor:Oe,unsetGrabCursor:Le};function De(e){var t=this,i=t.$wrapperEl,s=t.params;if(s.loop&&t.loopDestroy(),"object"===typeof e&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);s.loop&&t.loopCreate(),s.observer&&Y.observer||t.update()}function Me(e){var t=this,i=t.params,s=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var n=r+1;if("object"===typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&s.prepend(e[a]);n=r+e.length}else s.prepend(e);i.loop&&t.loopCreate(),i.observer&&Y.observer||t.update(),t.slideTo(n,0,!1)}function Ne(e,t){var i=this,s=i.$wrapperEl,r=i.params,n=i.activeIndex,a=n;r.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.slides=s.children("."+r.slideClass));var o=i.slides.length;if(e<=0)i.prependSlide(t);else if(e>=o)i.appendSlide(t);else{for(var l=a>e?a+1:a,d=[],u=o-1;u>=e;u-=1){var c=i.slides.eq(u);c.remove(),d.unshift(c)}if("object"===typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&s.append(t[h]);l=a>e?a+t.length:a}else s.append(t);for(var p=0;p<d.length;p+=1)s.append(d[p]);r.loop&&i.loopCreate(),r.observer&&Y.observer||i.update(),r.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}}function Re(e){var t=this,i=t.params,s=t.$wrapperEl,r=t.activeIndex,n=r;i.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=s.children("."+i.slideClass));var a,o=n;if("object"===typeof e&&"length"in e){for(var l=0;l<e.length;l+=1)a=e[l],t.slides[a]&&t.slides.eq(a).remove(),a<o&&(o-=1);o=Math.max(o,0)}else a=e,t.slides[a]&&t.slides.eq(a).remove(),a<o&&(o-=1),o=Math.max(o,0);i.loop&&t.loopCreate(),i.observer&&Y.observer||t.update(),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function Ue(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}var Be={appendSlide:De,prependSlide:Me,addSlide:Ne,removeSlide:Re,removeAllSlides:Ue},je=function(){var e=r.navigator.platform,t=r.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!r.cordova&&!r.phonegap),phonegap:!(!r.cordova&&!r.phonegap),electron:!1},s=r.screen.width,n=r.screen.height,a=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),l=t.match(/(iPod)(.*OS\s([\d_]+))?/),d=!o&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0,c=t.indexOf("Edge/")>=0,h=t.indexOf("Gecko/")>=0&&t.indexOf("Firefox/")>=0,p="Win32"===e,f=t.toLowerCase().indexOf("electron")>=0,m="MacIntel"===e;return!o&&m&&Y.touch&&(1024===s&&1366===n||834===s&&1194===n||834===s&&1112===n||768===s&&1024===n)&&(o=t.match(/(Version)\/([\d.]+)/),m=!1),i.ie=u,i.edge=c,i.firefox=h,a&&!p&&(i.os="android",i.osVersion=a[2],i.android=!0,i.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(o||d||l)&&(i.os="ios",i.ios=!0),d&&!l&&(i.osVersion=d[2].replace(/_/g,"."),i.iphone=!0),o&&(i.osVersion=o[2].replace(/_/g,"."),i.ipad=!0),l&&(i.osVersion=l[3]?l[3].replace(/_/g,"."):null,i.ipod=!0),i.ios&&i.osVersion&&t.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!(!(d||o||l)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!r.navigator.standalone)||r.matchMedia&&r.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||f,i.desktop&&(i.electron=f,i.macos=m,i.windows=p,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=r.devicePixelRatio||1,i}();function Fe(e){var t=this,s=t.touchEventsData,n=t.params,a=t.touches;if(!t.animating||!n.preventInteractionOnTransition){var l=e;l.originalEvent&&(l=l.originalEvent);var d=o(l.target);if(("wrapper"!==n.touchEventsTarget||d.closest(t.wrapperEl).length)&&(s.isTouchEvent="touchstart"===l.type,(s.isTouchEvent||!("which"in l)||3!==l.which)&&!(!s.isTouchEvent&&"button"in l&&l.button>0)&&(!s.isTouched||!s.isMoved)))if(n.noSwiping&&d.closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])t.allowClick=!0;else if(!n.swipeHandler||d.closest(n.swipeHandler)[0]){a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var u=a.currentX,c=a.currentY,h=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,p=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!h||!(u<=p||u>=r.screen.width-p)){if(X.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=u,a.startY=c,s.touchStartTime=X.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==l.type){var f=!0;d.is(s.formElements)&&(f=!1),i.activeElement&&o(i.activeElement).is(s.formElements)&&i.activeElement!==d[0]&&i.activeElement.blur();var m=f&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||m)&&l.preventDefault()}t.emit("touchStart",l)}}}}function qe(e){var t=this,s=t.touchEventsData,r=t.params,n=t.touches,a=t.rtlTranslate,l=e;if(l.originalEvent&&(l=l.originalEvent),s.isTouched){if(!s.isTouchEvent||"touchmove"===l.type){var d="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?d.pageX:l.pageX,c="touchmove"===l.type?d.pageY:l.pageY;if(l.preventedByNestedSwiper)return n.startX=u,void(n.startY=c);if(!t.allowTouchMove)return t.allowClick=!1,void(s.isTouched&&(X.extend(n,{startX:u,startY:c,currentX:u,currentY:c}),s.touchStartTime=X.now()));if(s.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(c<n.startY&&t.translate<=t.maxTranslate()||c>n.startY&&t.translate>=t.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(u<n.startX&&t.translate<=t.maxTranslate()||u>n.startX&&t.translate>=t.minTranslate())return;if(s.isTouchEvent&&i.activeElement&&l.target===i.activeElement&&o(l.target).is(s.formElements))return s.isMoved=!0,void(t.allowClick=!1);if(s.allowTouchCallbacks&&t.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){n.currentX=u,n.currentY=c;var h=n.currentX-n.startX,p=n.currentY-n.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(p,2))<t.params.threshold)){var f;if("undefined"===typeof s.isScrolling)t.isHorizontal()&&n.currentY===n.startY||t.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:h*h+p*p>=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,s.isScrolling=t.isHorizontal()?f>r.touchAngle:90-f>r.touchAngle);if(s.isScrolling&&t.emit("touchMoveOpposite",l),"undefined"===typeof s.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(s.startMoving=!0)),s.isScrolling)s.isTouched=!1;else if(s.startMoving){t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),s.isMoved||(r.loop&&t.loopFix(),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!r.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),s.isMoved=!0;var m=t.isHorizontal()?h:p;n.diff=m,m*=r.touchRatio,a&&(m=-m),t.swipeDirection=m>0?"prev":"next",s.currentTranslate=m+s.startTranslate;var g=!0,y=r.resistanceRatio;if(r.touchReleaseOnEdges&&(y=0),m>0&&s.currentTranslate>t.minTranslate()?(g=!1,r.resistance&&(s.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+s.startTranslate+m,y))):m<0&&s.currentTranslate<t.maxTranslate()&&(g=!1,r.resistance&&(s.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-s.startTranslate-m,y))),g&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,void(n.diff=t.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&(0===s.velocities.length&&s.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:X.now()})),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}}}}}else s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",l)}function $e(e){var t=this,i=t.touchEventsData,s=t.params,r=t.touches,n=t.rtlTranslate,a=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",d),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,c=X.now(),h=c-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap click",d),h<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",d)),i.lastClickTime=X.now(),X.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=s.followFinger?n?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var p=i.velocities.pop(),f=i.velocities.pop(),m=p.position-f.position,g=p.time-f.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)<s.freeModeMinimumVelocity&&(t.velocity=0),(g>150||X.now()-p.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var y=1e3*s.freeModeMomentumRatio,v=t.velocity*y,b=t.translate+v;n&&(b=-b);var _,T,S=!1,w=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(b<t.maxTranslate())s.freeModeMomentumBounce?(b+t.maxTranslate()<-w&&(b=t.maxTranslate()-w),_=t.maxTranslate(),S=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(b>t.minTranslate())s.freeModeMomentumBounce?(b-t.minTranslate()>w&&(b=t.minTranslate()+w),_=t.minTranslate(),S=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(s.freeModeSticky){for(var E,x=0;x<l.length;x+=1)if(l[x]>-b){E=x;break}b=Math.abs(l[E]-b)<Math.abs(l[E-1]-b)||"next"===t.swipeDirection?l[E]:l[E-1],b=-b}if(T&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(y=n?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity),s.freeModeSticky){var C=Math.abs((n?-b:b)-t.translate),k=t.slidesSizesGrid[t.activeIndex];y=C<k?s.speed:C<2*k?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void t.slideToClosest();s.freeModeMomentumBounce&&S?(t.updateProgress(_),t.setTransition(y),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(s.speed),setTimeout((function(){t.setTranslate(_),a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(b),t.setTransition(y),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(s.freeModeSticky)return void t.slideToClosest();(!s.freeModeMomentum||h>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var I=0,P=t.slidesSizesGrid[0],O=0;O<o.length;O+=O<s.slidesPerGroupSkip?1:s.slidesPerGroup){var L=O<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;"undefined"!==typeof o[O+L]?u>=o[O]&&u<o[O+L]&&(I=O,P=o[O+L]-o[O]):u>=o[O]&&(I=O,P=o[o.length-1]-o[o.length-2])}var A=(u-o[I])/P,D=I<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(A>=s.longSwipesRatio?t.slideTo(I+D):t.slideTo(I)),"prev"===t.swipeDirection&&(A>1-s.longSwipesRatio?t.slideTo(I+D):t.slideTo(I))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);var M=t.navigation&&(d.target===t.navigation.nextEl||d.target===t.navigation.prevEl);M?d.target===t.navigation.nextEl?t.slideTo(I+D):t.slideTo(I):("next"===t.swipeDirection&&t.slideTo(I+D),"prev"===t.swipeDirection&&t.slideTo(I))}}}function He(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var s=e.allowSlideNext,r=e.allowSlidePrev,n=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}}function ze(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Ve(){var e,t=this,i=t.wrapperEl,s=t.rtlTranslate;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=s?i.scrollWidth-i.offsetWidth-i.scrollLeft:-i.scrollLeft:t.translate=-i.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var r=t.maxTranslate()-t.minTranslate();e=0===r?0:(t.translate-t.minTranslate())/r,e!==t.progress&&t.updateProgress(s?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}var Ge=!1;function We(){}function Xe(){var e=this,t=e.params,s=e.touchEvents,r=e.el,n=e.wrapperEl;e.onTouchStart=Fe.bind(e),e.onTouchMove=qe.bind(e),e.onTouchEnd=$e.bind(e),t.cssMode&&(e.onScroll=Ve.bind(e)),e.onClick=ze.bind(e);var a=!!t.nested;if(!Y.touch&&Y.pointerEvents)r.addEventListener(s.start,e.onTouchStart,!1),i.addEventListener(s.move,e.onTouchMove,a),i.addEventListener(s.end,e.onTouchEnd,!1);else{if(Y.touch){var o=!("touchstart"!==s.start||!Y.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(s.start,e.onTouchStart,o),r.addEventListener(s.move,e.onTouchMove,Y.passiveListener?{passive:!1,capture:a}:a),r.addEventListener(s.end,e.onTouchEnd,o),s.cancel&&r.addEventListener(s.cancel,e.onTouchEnd,o),Ge||(i.addEventListener("touchstart",We),Ge=!0)}(t.simulateTouch&&!je.ios&&!je.android||t.simulateTouch&&!Y.touch&&je.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),i.addEventListener("mousemove",e.onTouchMove,a),i.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0),t.cssMode&&n.addEventListener("scroll",e.onScroll),t.updateOnWindowResize?e.on(je.ios||je.android?"resize orientationchange observerUpdate":"resize observerUpdate",He,!0):e.on("observerUpdate",He,!0)}function Ye(){var e=this,t=e.params,s=e.touchEvents,r=e.el,n=e.wrapperEl,a=!!t.nested;if(!Y.touch&&Y.pointerEvents)r.removeEventListener(s.start,e.onTouchStart,!1),i.removeEventListener(s.move,e.onTouchMove,a),i.removeEventListener(s.end,e.onTouchEnd,!1);else{if(Y.touch){var o=!("onTouchStart"!==s.start||!Y.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(s.start,e.onTouchStart,o),r.removeEventListener(s.move,e.onTouchMove,a),r.removeEventListener(s.end,e.onTouchEnd,o),s.cancel&&r.removeEventListener(s.cancel,e.onTouchEnd,o)}(t.simulateTouch&&!je.ios&&!je.android||t.simulateTouch&&!Y.touch&&je.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),i.removeEventListener("mousemove",e.onTouchMove,a),i.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0),t.cssMode&&n.removeEventListener("scroll",e.onScroll),e.off(je.ios||je.android?"resize orientationchange observerUpdate":"resize observerUpdate",He)}var Je={attachEvents:Xe,detachEvents:Ye};function Ke(){var e=this,t=e.activeIndex,i=e.initialized,s=e.loopedSlides;void 0===s&&(s=0);var r=e.params,n=e.$el,a=r.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var o=e.getBreakpoint(a);if(o&&e.currentBreakpoint!==o){var l=o in a?a[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];"undefined"!==typeof t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var d=l||e.originalParams,u=r.slidesPerColumn>1,c=d.slidesPerColumn>1;u&&!c?n.removeClass(r.containerModifierClass+"multirow "+r.containerModifierClass+"multirow-column"):!u&&c&&(n.addClass(r.containerModifierClass+"multirow"),"column"===d.slidesPerColumnFill&&n.addClass(r.containerModifierClass+"multirow-column"));var h=d.direction&&d.direction!==r.direction,p=r.loop&&(d.slidesPerView!==r.slidesPerView||h);h&&i&&e.changeDirection(),X.extend(e.params,d),X.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,p&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",d)}}}function Qe(e){if(e){var t=!1,i=Object.keys(e).map((function(e){if("string"===typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1)),i=r.innerHeight*t;return{value:i,point:e}}return{value:e,point:e}}));i.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<i.length;s+=1){var n=i[s],a=n.point,o=n.value;o<=r.innerWidth&&(t=a)}return t||"max"}}var Ze={setBreakpoint:Ke,getBreakpoint:Qe};function et(){var e=this,t=e.classNames,i=e.params,s=e.rtl,r=e.$el,n=[];n.push("initialized"),n.push(i.direction),i.freeMode&&n.push("free-mode"),i.autoHeight&&n.push("autoheight"),s&&n.push("rtl"),i.slidesPerColumn>1&&(n.push("multirow"),"column"===i.slidesPerColumnFill&&n.push("multirow-column")),je.android&&n.push("android"),je.ios&&n.push("ios"),i.cssMode&&n.push("css-mode"),n.forEach((function(e){t.push(i.containerModifierClass+e)})),r.addClass(t.join(" "))}function tt(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}var it={addClasses:et,removeClasses:tt};function st(e,t,i,s,n,a){var l;function d(){a&&a()}var u=o(e).parent("picture")[0];u||e.complete&&n?d():t?(l=new r.Image,l.onload=d,l.onerror=d,s&&(l.sizes=s),i&&(l.srcset=i),t&&(l.src=t)):d()}function rt(){var e=this;function t(){"undefined"!==typeof e&&null!==e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}var nt={loadImage:st,preloadImages:rt};function at(){var e=this,t=e.params,i=e.isLocked,s=e.slides.length>0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&s?e.isLocked=s<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,i!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),i&&i!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}var ot={checkOverflow:at},lt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},dt={update:oe,translate:pe,transition:ye,slide:xe,loop:Pe,grabCursor:Ae,manipulation:Be,events:Je,breakpoints:Ze,checkOverflow:ot,classes:it,images:nt},ut={},ct=function(e){function t(){var i,s,r,n=[],a=arguments.length;while(a--)n[a]=arguments[a];1===n.length&&n[0].constructor&&n[0].constructor===Object?r=n[0]:(i=n,s=i[0],r=i[1]),r||(r={}),r=X.extend({},r),s&&!r.el&&(r.el=s),e.call(this,r),Object.keys(dt).forEach((function(e){Object.keys(dt[e]).forEach((function(i){t.prototype[i]||(t.prototype[i]=dt[e][i])}))}));var l=this;"undefined"===typeof l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var i=Object.keys(t.params)[0],s=t.params[i];if("object"!==typeof s||null===s)return;if(!(i in r)||!("enabled"in s))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!==typeof r[i]||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}}));var d=X.extend({},lt);l.useModulesParams(d),l.params=X.extend({},d,ut,r),l.originalParams=X.extend({},l.params),l.passedParams=X.extend({},r),l.$=o;var u=o(l.params.el);if(s=u[0],s){if(u.length>1){var c=[];return u.each((function(e,i){var s=X.extend({},r,{el:i});c.push(new t(s))})),c}var h;return s.swiper=l,u.data("swiper",l),s&&s.shadowRoot&&s.shadowRoot.querySelector?(h=o(s.shadowRoot.querySelector("."+l.params.wrapperClass)),h.children=function(e){return u.children(e)}):h=u.children("."+l.params.wrapperClass),X.extend(l,{$el:u,el:s,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:o(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===s.dir.toLowerCase()||"rtl"===u.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===u.css("direction")),wrongRTL:"-webkit-box"===h.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend","touchcancel"],t=["mousedown","mousemove","mouseup"];return Y.pointerEvents&&(t=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},Y.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:X.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,s=e.slidesGrid,r=e.size,n=e.activeIndex,a=1;if(t.centeredSlides){for(var o,l=i[n].swiperSlideSize,d=n+1;d<i.length;d+=1)i[d]&&!o&&(l+=i[d].swiperSlideSize,a+=1,l>r&&(o=!0));for(var u=n-1;u>=0;u-=1)i[u]&&!o&&(l+=i[u].swiperSlideSize,a+=1,l>r&&(o=!0))}else for(var c=n+1;c<i.length;c+=1)s[c]-s[n]<r&&(a+=1);return a},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t,i=e.snapGrid,s=e.params;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(t=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),t||r()),s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(""+i.params.containerModifierClass+s).addClass(""+i.params.containerModifierClass+e),i.params.direction=e,i.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""})),i.emit("changeDirection"),t&&i.update()),i},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,r=i.$el,n=i.$wrapperEl,a=i.slides;return"undefined"===typeof i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),n.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),X.deleteProps(i)),i.destroyed=!0),null},t.extendDefaults=function(e){X.extend(ut,e)},i.extendedDefaults.get=function(){return ut},i.defaults.get=function(){return lt},i.Class.get=function(){return e},i.$.get=function(){return o},Object.defineProperties(t,i),t}(J),ht={name:"device",proto:{device:je},static:{device:je}},pt={name:"support",proto:{support:Y},static:{support:Y}},ft=function(){function e(){var e=r.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isEdge:!!r.navigator.userAgent.match(/Edge/g),isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(r.navigator.userAgent)}}(),mt={name:"browser",proto:{browser:ft},static:{browser:ft}},gt={name:"resize",create:function(){var e=this;X.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;r.addEventListener("resize",e.resize.resizeHandler),r.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;r.removeEventListener("resize",e.resize.resizeHandler),r.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},yt={func:r.MutationObserver||r.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,s=yt.func,n=new s((function(e){if(1!==e.length){var t=function(){i.emit("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}else i.emit("observerUpdate",e[0])}));n.observe(e,{attributes:"undefined"===typeof t.attributes||t.attributes,childList:"undefined"===typeof t.childList||t.childList,characterData:"undefined"===typeof t.characterData||t.characterData}),i.observer.observers.push(n)},init:function(){var e=this;if(Y.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach((function(e){e.disconnect()})),e.observer.observers=[]}},vt={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;X.extend(e,{observer:{init:yt.init.bind(e),attach:yt.attach.bind(e),destroy:yt.destroy.bind(e),observers:[]}})},on:{init:function(){var e=this;e.observer.init()},destroy:function(){var e=this;e.observer.destroy()}}},bt={update:function(e){var t=this,i=t.params,s=i.slidesPerView,r=i.slidesPerGroup,n=i.centeredSlides,a=t.params.virtual,o=a.addSlidesBefore,l=a.addSlidesAfter,d=t.virtual,u=d.from,c=d.to,h=d.slides,p=d.slidesGrid,f=d.renderSlide,m=d.offset;t.updateActiveIndex();var g,y,v,b=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",n?(y=Math.floor(s/2)+r+o,v=Math.floor(s/2)+r+l):(y=s+(r-1)+o,v=r+l);var _=Math.max((b||0)-v,0),T=Math.min((b||0)+y,h.length-1),S=(t.slidesGrid[_]||0)-(t.slidesGrid[0]||0);function w(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(X.extend(t.virtual,{from:_,to:T,offset:S,slidesGrid:t.slidesGrid}),u===_&&c===T&&!e)return t.slidesGrid!==p&&S!==m&&t.slides.css(g,S+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:S,from:_,to:T,slides:function(){for(var e=[],t=_;t<=T;t+=1)e.push(h[t]);return e}()}),void w();var E=[],x=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var C=u;C<=c;C+=1)(C<_||C>T)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var k=0;k<h.length;k+=1)k>=_&&k<=T&&("undefined"===typeof c||e?x.push(k):(k>c&&x.push(k),k<u&&E.push(k)));x.forEach((function(e){t.$wrapperEl.append(f(h[e],e))})),E.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(h[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,S+"px"),w()},renderSlide:function(e,t){var i=this,s=i.params.virtual;if(s.cache&&i.virtual.cache[t])return i.virtual.cache[t];var r=s.renderSlide?o(s.renderSlide.call(i,e,t)):o('<div class="'+i.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),s.cache&&(i.virtual.cache[t]=r),r},appendSlide:function(e){var t=this;if("object"===typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,i=t.activeIndex,s=i+1,r=1;if(Array.isArray(e)){for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.unshift(e[n]);s=i+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var a=t.virtual.cache,o={};Object.keys(a).forEach((function(e){var t=a[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+1),o[parseInt(e,10)+r]=t})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(s,0)},removeSlide:function(e){var t=this;if("undefined"!==typeof e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var s=e.length-1;s>=0;s-=1)t.virtual.slides.splice(e[s],1),t.params.virtual.cache&&delete t.virtual.cache[e[s]],e[s]<i&&(i-=1),i=Math.max(i,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<i&&(i-=1),i=Math.max(i,0);t.virtual.update(!0),t.slideTo(i,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},_t={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;X.extend(e,{virtual:{update:bt.update.bind(e),appendSlide:bt.appendSlide.bind(e),prependSlide:bt.prependSlide.bind(e),removeSlide:bt.removeSlide.bind(e),removeAllSlides:bt.removeAllSlides.bind(e),renderSlide:bt.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};X.extend(e.params,t),X.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},Tt={handle:function(e){var t=this,s=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var a=n.keyCode||n.charCode,o=t.params.keyboard.pageUpDown,l=o&&33===a,d=o&&34===a,u=37===a,c=39===a,h=38===a,p=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&c||t.isVertical()&&p||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||l))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)&&(!i.activeElement||!i.activeElement.nodeName||"input"!==i.activeElement.nodeName.toLowerCase()&&"textarea"!==i.activeElement.nodeName.toLowerCase())){if(t.params.keyboard.onlyInViewport&&(l||d||u||c||h||p)){var f=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var m=r.innerWidth,g=r.innerHeight,y=t.$el.offset();s&&(y.left-=t.$el[0].scrollLeft);for(var v=[[y.left,y.top],[y.left+t.width,y.top],[y.left,y.top+t.height],[y.left+t.width,y.top+t.height]],b=0;b<v.length;b+=1){var _=v[b];_[0]>=0&&_[0]<=m&&_[1]>=0&&_[1]<=g&&(f=!0)}if(!f)return}t.isHorizontal()?((l||d||u||c)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((d||c)&&!s||(l||u)&&s)&&t.slideNext(),((l||u)&&!s||(d||c)&&s)&&t.slidePrev()):((l||d||h||p)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(d||p)&&t.slideNext(),(l||h)&&t.slidePrev()),t.emit("keyPress",a)}},enable:function(){var e=this;e.keyboard.enabled||(o(i).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(o(i).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},St={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){var e=this;X.extend(e,{keyboard:{enabled:!1,enable:Tt.enable.bind(e),disable:Tt.disable.bind(e),handle:Tt.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function wt(){var e="onwheel",t=e in i;if(!t){var s=i.createElement("div");s.setAttribute(e,"return;"),t="function"===typeof s[e]}return!t&&i.implementation&&i.implementation.hasFeature&&!0!==i.implementation.hasFeature("","")&&(t=i.implementation.hasFeature("Events.wheel","3.0")),t}var Et={lastScrollTime:X.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return r.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":wt()?"wheel":"mousewheel"},normalize:function(e){var t=10,i=40,s=800,r=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(r=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(r=n,n=0),a=r*t,o=n*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=o,o=0),(a||o)&&e.deltaMode&&(1===e.deltaMode?(a*=i,o*=i):(a*=s,o*=s)),a&&!r&&(r=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:r,spinY:n,pixelX:a,pixelY:o}},handleMouseEnter:function(){var e=this;e.mouseEntered=!0},handleMouseLeave:function(){var e=this;e.mouseEntered=!1},handle:function(e){var t=e,i=this,s=i.params.mousewheel;i.params.cssMode&&t.preventDefault();var r=i.$el;if("container"!==i.params.mousewheel.eventsTarged&&(r=o(i.params.mousewheel.eventsTarged)),!i.mouseEntered&&!r[0].contains(t.target)&&!s.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var n=0,a=i.rtlTranslate?-1:1,l=Et.normalize(t);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;n=-l.pixelX*a}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;n=-l.pixelY}else n=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*a:-l.pixelY;if(0===n)return!0;if(s.invert&&(n=-n),i.params.freeMode){var d={time:X.now(),delta:Math.abs(n),direction:Math.sign(n)},u=i.mousewheel,c=u.lastEventBeforeSnap,h=c&&d.time<c.time+500&&d.delta<=c.delta&&d.direction===c.direction;if(!h){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var p=i.getTranslate()+n*s.sensitivity,f=i.isBeginning,m=i.isEnd;if(p>=i.minTranslate()&&(p=i.minTranslate()),p<=i.maxTranslate()&&(p=i.maxTranslate()),i.setTransition(0),i.setTranslate(p),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!f&&i.isBeginning||!m&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var g=i.mousewheel.recentWheelEvents;g.length>=15&&g.shift();var y=g.length?g[g.length-1]:void 0,v=g[0];if(g.push(d),y&&(d.delta>y.delta||d.direction!==y.direction))g.splice(0);else if(g.length>=15&&d.time-v.time<500&&v.delta-d.delta>=1&&d.delta<=6){var b=n>0?.8:.2;i.mousewheel.lastEventBeforeSnap=d,g.splice(0),i.mousewheel.timeout=X.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,b)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=X.nextTick((function(){var e=.5;i.mousewheel.lastEventBeforeSnap=d,g.splice(0),i.slideToClosest(i.params.speed,!0,void 0,e)}),500))}if(h||i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),p===i.minTranslate()||p===i.maxTranslate())return!0}}else{var _={time:X.now(),delta:Math.abs(n),direction:Math.sign(n),raw:e},T=i.mousewheel.recentWheelEvents;T.length>=2&&T.shift();var S=T.length?T[T.length-1]:void 0;if(T.push(_),S?(_.direction!==S.direction||_.delta>S.delta||_.time>S.time+150)&&i.mousewheel.animateSlider(_):i.mousewheel.animateSlider(_),i.mousewheel.releaseScroll(_))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){var t=this;return e.delta>=6&&X.now()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new r.Date).getTime(),!1)},releaseScroll:function(e){var t=this,i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1},enable:function(){var e=this,t=Et.event();if(e.params.cssMode)return e.wrapperEl.removeEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var i=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(i=o(e.params.mousewheel.eventsTarged)),i.on("mouseenter",e.mousewheel.handleMouseEnter),i.on("mouseleave",e.mousewheel.handleMouseLeave),i.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this,t=Et.event();if(e.params.cssMode)return e.wrapperEl.addEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var i=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(i=o(e.params.mousewheel.eventsTarged)),i.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},xt={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;X.extend(e,{mousewheel:{enabled:!1,enable:Et.enable.bind(e),disable:Et.disable.bind(e),handle:Et.handle.bind(e),handleMouseEnter:Et.handleMouseEnter.bind(e),handleMouseLeave:Et.handleMouseLeave.bind(e),animateSlider:Et.animateSlider.bind(e),releaseScroll:Et.releaseScroll.bind(e),lastScrollTime:X.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){var e=this;!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}},Ct={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,s=i.$nextEl,r=i.$prevEl;r&&r.length>0&&(e.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),s&&s.length>0&&(e.isEnd?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,i=this,s=i.params.navigation;(s.nextEl||s.prevEl)&&(s.nextEl&&(e=o(s.nextEl),i.params.uniqueNavElements&&"string"===typeof s.nextEl&&e.length>1&&1===i.$el.find(s.nextEl).length&&(e=i.$el.find(s.nextEl))),s.prevEl&&(t=o(s.prevEl),i.params.uniqueNavElements&&"string"===typeof s.prevEl&&t.length>1&&1===i.$el.find(s.prevEl).length&&(t=i.$el.find(s.prevEl))),e&&e.length>0&&e.on("click",i.navigation.onNextClick),t&&t.length>0&&t.on("click",i.navigation.onPrevClick),X.extend(i.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,s=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),s&&s.length&&(s.off("click",e.navigation.onPrevClick),s.removeClass(e.params.navigation.disabledClass))}},kt={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;X.extend(e,{navigation:{init:Ct.init.bind(e),update:Ct.update.bind(e),destroy:Ct.destroy.bind(e),onNextClick:Ct.onNextClick.bind(e),onPrevClick:Ct.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){var e=this;e.navigation.update()},fromEdge:function(){var e=this;e.navigation.update()},destroy:function(){var e=this;e.navigation.destroy()},click:function(e){var t,i=this,s=i.navigation,r=s.$nextEl,n=s.$prevEl;!i.params.navigation.hideOnClick||o(e.target).is(n)||o(e.target).is(r)||(r?t=r.hasClass(i.params.navigation.hiddenClass):n&&(t=n.hasClass(i.params.navigation.hiddenClass)),!0===t?i.emit("navigationShow",i):i.emit("navigationHide",i),r&&r.toggleClass(i.params.navigation.hiddenClass),n&&n.toggleClass(i.params.navigation.hiddenClass))}}},It={update:function(){var e=this,t=e.rtl,i=e.params.pagination;if(i.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var s,r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,a=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(s=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),s>r-1-2*e.loopedSlides&&(s-=r-2*e.loopedSlides),s>a-1&&(s-=a),s<0&&"bullets"!==e.params.paginationType&&(s=a+s)):s="undefined"!==typeof e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var l,d,u,c=e.pagination.bullets;if(i.dynamicBullets&&(e.pagination.bulletSize=c.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=s-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=s-e.pagination.dynamicBulletIndex,d=l+(Math.min(c.length,i.dynamicMainBullets)-1),u=(d+l)/2),c.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),n.length>1)c.each((function(e,t){var r=o(t),n=r.index();n===s&&r.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=l&&n<=d&&r.addClass(i.bulletActiveClass+"-main"),n===l&&r.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),n===d&&r.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))}));else{var h=c.eq(s),p=h.index();if(h.addClass(i.bulletActiveClass),i.dynamicBullets){for(var f=c.eq(l),m=c.eq(d),g=l;g<=d;g+=1)c.eq(g).addClass(i.bulletActiveClass+"-main");if(e.params.loop)if(p>=c.length-i.dynamicMainBullets){for(var y=i.dynamicMainBullets;y>=0;y-=1)c.eq(c.length-y).addClass(i.bulletActiveClass+"-main");c.eq(c.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else f.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),m.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next");else f.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),m.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}if(i.dynamicBullets){var v=Math.min(c.length,i.dynamicMainBullets+4),b=(e.pagination.bulletSize*v-e.pagination.bulletSize)/2-u*e.pagination.bulletSize,_=t?"right":"left";c.css(e.isHorizontal()?_:"top",b+"px")}}if("fraction"===i.type&&(n.find("."+i.currentClass).text(i.formatFractionCurrent(s+1)),n.find("."+i.totalClass).text(i.formatFractionTotal(a))),"progressbar"===i.type){var T;T=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var S=(s+1)/a,w=1,E=1;"horizontal"===T?w=S:E=S,n.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+E+")").transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(n.html(i.renderCustom(e,s+1,a)),e.emit("paginationRender",e,n[0])):e.emit("paginationUpdate",e,n[0]),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el,r="";if("bullets"===t.type){for(var n=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,a=0;a<n;a+=1)t.renderBullet?r+=t.renderBullet.call(e,a,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";s.html(r),e.pagination.bullets=s.find("."+t.bulletClass)}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',s.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',s.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=o(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"===typeof t.el&&i.length>1&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=o(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),X.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass)}}},Pt={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;X.extend(e,{pagination:{init:It.init.bind(e),render:It.render.bind(e),update:It.update.bind(e),destroy:It.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||"undefined"===typeof e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){var e=this;e.pagination.destroy()},click:function(e){var t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!o(e.target).hasClass(t.params.pagination.bulletClass)){var i=t.pagination.$el.hasClass(t.params.pagination.hiddenClass);!0===i?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},Ot={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,s=e.progress,r=t.dragSize,n=t.trackSize,a=t.$dragEl,o=t.$el,l=e.params.scrollbar,d=r,u=(n-r)*s;i?(u=-u,u>0?(d=r-u,u=0):-u+r>n&&(d=n+u)):u<0?(d=r+u,u=0):u+r>n&&(d=n-u),e.isHorizontal()?(a.transform("translate3d("+u+"px, 0, 0)"),a[0].style.width=d+"px"):(a.transform("translate3d(0px, "+u+"px, 0)"),a[0].style.height=d+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=t.$dragEl,s=t.$el;i[0].style.width="",i[0].style.height="";var r,n=e.isHorizontal()?s[0].offsetWidth:s[0].offsetHeight,a=e.size/e.virtualSize,o=a*(n/e.size);r="auto"===e.params.scrollbar.dragSize?n*a:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",s[0].style.display=a>=1?"none":"",e.params.scrollbar.hide&&(s[0].style.opacity=0),X.extend(t,{trackSize:n,divider:a,moveDivider:o,dragSize:r}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){var t=this;return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,i=this,s=i.scrollbar,r=i.rtlTranslate,n=s.$el,a=s.dragSize,o=s.trackSize,l=s.dragStartPos;t=(s.getPointerPosition(e)-n.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:a/2))/(o-a),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var d=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(d),i.setTranslate(d),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,s=t.scrollbar,r=t.$wrapperEl,n=s.$el,a=s.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===a[0]||e.target===a?s.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),a.transition(100),s.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),n.transition(0),i.hide&&n.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,s=t.$wrapperEl,r=i.$el,n=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),s.transition(0),r.transition(0),n.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,s=t.scrollbar,r=t.$wrapperEl,n=s.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),r.transition("")),i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=X.nextTick((function(){n.css("opacity",0),n.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,s=e.touchEventsTouch,r=e.touchEventsDesktop,n=e.params,a=t.$el,o=a[0],l=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},d=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};Y.touch?(o.addEventListener(s.start,e.scrollbar.onDragStart,l),o.addEventListener(s.move,e.scrollbar.onDragMove,l),o.addEventListener(s.end,e.scrollbar.onDragEnd,d)):(o.addEventListener(r.start,e.scrollbar.onDragStart,l),i.addEventListener(r.move,e.scrollbar.onDragMove,l),i.addEventListener(r.end,e.scrollbar.onDragEnd,d))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,s=e.touchEventsTouch,r=e.touchEventsDesktop,n=e.params,a=t.$el,o=a[0],l=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},d=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};Y.touch?(o.removeEventListener(s.start,e.scrollbar.onDragStart,l),o.removeEventListener(s.move,e.scrollbar.onDragMove,l),o.removeEventListener(s.end,e.scrollbar.onDragEnd,d)):(o.removeEventListener(r.start,e.scrollbar.onDragStart,l),i.removeEventListener(r.move,e.scrollbar.onDragMove,l),i.removeEventListener(r.end,e.scrollbar.onDragEnd,d))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.$el,s=e.params.scrollbar,r=o(s.el);e.params.uniqueNavElements&&"string"===typeof s.el&&r.length>1&&1===i.find(s.el).length&&(r=i.find(s.el));var n=r.find("."+e.params.scrollbar.dragClass);0===n.length&&(n=o('<div class="'+e.params.scrollbar.dragClass+'"></div>'),r.append(n)),X.extend(t,{$el:r,el:r[0],$dragEl:n,dragEl:n[0]}),s.draggable&&t.enableDraggable()}},destroy:function(){var e=this;e.scrollbar.disableDraggable()}},Lt={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;X.extend(e,{scrollbar:{init:Ot.init.bind(e),destroy:Ot.destroy.bind(e),updateSize:Ot.updateSize.bind(e),setTranslate:Ot.setTranslate.bind(e),setTransition:Ot.setTransition.bind(e),enableDraggable:Ot.enableDraggable.bind(e),disableDraggable:Ot.disableDraggable.bind(e),setDragPosition:Ot.setDragPosition.bind(e),getPointerPosition:Ot.getPointerPosition.bind(e),onDragStart:Ot.onDragStart.bind(e),onDragMove:Ot.onDragMove.bind(e),onDragEnd:Ot.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){var e=this;e.scrollbar.updateSize()},resize:function(){var e=this;e.scrollbar.updateSize()},observerUpdate:function(){var e=this;e.scrollbar.updateSize()},setTranslate:function(){var e=this;e.scrollbar.setTranslate()},setTransition:function(e){var t=this;t.scrollbar.setTransition(e)},destroy:function(){var e=this;e.scrollbar.destroy()}}},At={setTransform:function(e,t){var i=this,s=i.rtl,r=o(e),n=s?-1:1,a=r.attr("data-swiper-parallax")||"0",l=r.attr("data-swiper-parallax-x"),d=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(l||d?(l=l||"0",d=d||"0"):i.isHorizontal()?(l=a,d="0"):(d=a,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*t*n+"%":l*t*n+"px",d=d.indexOf("%")>=0?parseInt(d,10)*t+"%":d*t+"px","undefined"!==typeof c&&null!==c){var h=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=h}if("undefined"===typeof u||null===u)r.transform("translate3d("+l+", "+d+", 0px)");else{var p=u-(u-1)*(1-Math.abs(t));r.transform("translate3d("+l+", "+d+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,s=e.progress,r=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,s)})),i.each((function(t,i){var n=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-s*(r.length-1)),n=Math.min(Math.max(n,-1),1),o(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,n)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);var t=this,i=t.$el;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){var s=o(i),r=parseInt(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),s.transition(r)}))}},Dt={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;X.extend(e,{parallax:{setTransform:At.setTransform.bind(e),setTranslate:At.setTranslate.bind(e),setTransition:At.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}},Mt={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY,n=Math.sqrt(Math.pow(s-t,2)+Math.pow(r-i,2));return n},onGestureStart:function(e){var t=this,i=t.params.zoom,s=t.zoom,r=s.gesture;if(s.fakeGestureTouched=!1,s.fakeGestureMoved=!1,!Y.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;s.fakeGestureTouched=!0,r.scaleStart=Mt.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=o(e.target).closest("."+t.params.slideClass),0===r.$slideEl.length&&(r.$slideEl=t.slides.eq(t.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl&&r.$imageEl.transition(0),t.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!Y.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;s.fakeGestureMoved=!0,r.scaleMove=Mt.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(Y.gestures?s.scale=e.scale*s.currentScale:s.scale=r.scaleMove/r.scaleStart*s.currentScale,s.scale>r.maxRatio&&(s.scale=r.maxRatio-1+Math.pow(s.scale-r.maxRatio+1,.5)),s.scale<i.minRatio&&(s.scale=i.minRatio+1-Math.pow(i.minRatio-s.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+s.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!Y.gestures){if(!s.fakeGestureTouched||!s.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!je.android)return;s.fakeGestureTouched=!1,s.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(s.scale=Math.max(Math.min(s.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+s.scale+")"),s.currentScale=s.scale,s.isScaling=!1,1===s.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,s=i.gesture,r=i.image;s.$imageEl&&0!==s.$imageEl.length&&(r.isTouched||(je.android&&e.cancelable&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,i=t.zoom,s=i.gesture,r=i.image,n=i.velocity;if(s.$imageEl&&0!==s.$imageEl.length&&(t.allowClick=!1,r.isTouched&&s.$slideEl)){r.isMoved||(r.width=s.$imageEl[0].offsetWidth,r.height=s.$imageEl[0].offsetHeight,r.startX=X.getTranslate(s.$imageWrapEl[0],"x")||0,r.startY=X.getTranslate(s.$imageWrapEl[0],"y")||0,s.slideWidth=s.$slideEl[0].offsetWidth,s.slideHeight=s.$slideEl[0].offsetHeight,s.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var a=r.width*i.scale,o=r.height*i.scale;if(!(a<s.slideWidth&&o<s.slideHeight)){if(r.minX=Math.min(s.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(s.slideHeight/2-o/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!i.isScaling){if(t.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=r.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=r.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(r.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(r.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(r.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(r.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=r.touchesCurrent.x,n.prevPositionY=r.touchesCurrent.y,n.prevTime=Date.now(),s.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,s=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!s.isTouched||!s.isMoved)return s.isTouched=!1,void(s.isMoved=!1);s.isTouched=!1,s.isMoved=!1;var n=300,a=300,o=r.x*n,l=s.currentX+o,d=r.y*a,u=s.currentY+d;0!==r.x&&(n=Math.abs((l-s.currentX)/r.x)),0!==r.y&&(a=Math.abs((u-s.currentY)/r.y));var c=Math.max(n,a);s.currentX=l,s.currentY=u;var h=s.width*t.scale,p=s.height*t.scale;s.minX=Math.min(i.slideWidth/2-h/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-p/2,0),s.maxY=-s.minY,s.currentX=Math.max(Math.min(s.currentX,s.maxX),s.minX),s.currentY=Math.max(Math.min(s.currentY,s.maxY),s.minY),i.$imageWrapEl.transition(c).transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl&&i.$imageEl.transform("translate3d(0,0,0) scale(1)"),i.$imageWrapEl&&i.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,i.$slideEl=void 0,i.$imageEl=void 0,i.$imageWrapEl=void 0)},toggle:function(e){var t=this,i=t.zoom;i.scale&&1!==i.scale?i.out():i.in(e)},in:function(e){var t,i,s,r,n,a,o,l,d,u,c,h,p,f,m,g,y,v,b=this,_=b.zoom,T=b.params.zoom,S=_.gesture,w=_.image;(S.$slideEl||(b.params.virtual&&b.params.virtual.enabled&&b.virtual?S.$slideEl=b.$wrapperEl.children("."+b.params.slideActiveClass):S.$slideEl=b.slides.eq(b.activeIndex),S.$imageEl=S.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),S.$imageWrapEl=S.$imageEl.parent("."+T.containerClass)),S.$imageEl&&0!==S.$imageEl.length)&&(S.$slideEl.addClass(""+T.zoomedSlideClass),"undefined"===typeof w.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=w.touchesStart.x,i=w.touchesStart.y),_.scale=S.$imageWrapEl.attr("data-swiper-zoom")||T.maxRatio,_.currentScale=S.$imageWrapEl.attr("data-swiper-zoom")||T.maxRatio,e?(y=S.$slideEl[0].offsetWidth,v=S.$slideEl[0].offsetHeight,s=S.$slideEl.offset().left,r=S.$slideEl.offset().top,n=s+y/2-t,a=r+v/2-i,d=S.$imageEl[0].offsetWidth,u=S.$imageEl[0].offsetHeight,c=d*_.scale,h=u*_.scale,p=Math.min(y/2-c/2,0),f=Math.min(v/2-h/2,0),m=-p,g=-f,o=n*_.scale,l=a*_.scale,o<p&&(o=p),o>m&&(o=m),l<f&&(l=f),l>g&&(l=g)):(o=0,l=0),S.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+l+"px,0)"),S.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+_.scale+")"))},out:function(){var e=this,t=e.zoom,i=e.params.zoom,s=t.gesture;s.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?s.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):s.$slideEl=e.slides.eq(e.activeIndex),s.$imageEl=s.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),s.$imageWrapEl=s.$imageEl.parent("."+i.containerClass)),s.$imageEl&&0!==s.$imageEl.length&&(t.scale=1,t.currentScale=1,s.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),s.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),s.$slideEl.removeClass(""+i.zoomedSlideClass),s.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!Y.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},s=!Y.passiveListener||{passive:!1,capture:!0},r="."+e.params.slideClass;Y.gestures?(e.$wrapperEl.on("gesturestart",r,t.onGestureStart,i),e.$wrapperEl.on("gesturechange",r,t.onGestureChange,i),e.$wrapperEl.on("gestureend",r,t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,r,t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,r,t.onGestureChange,s),e.$wrapperEl.on(e.touchEvents.end,r,t.onGestureEnd,i),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,r,t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove,s)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!Y.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},s=!Y.passiveListener||{passive:!1,capture:!0},r="."+e.params.slideClass;Y.gestures?(e.$wrapperEl.off("gesturestart",r,t.onGestureStart,i),e.$wrapperEl.off("gesturechange",r,t.onGestureChange,i),e.$wrapperEl.off("gestureend",r,t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,r,t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,r,t.onGestureChange,s),e.$wrapperEl.off(e.touchEvents.end,r,t.onGestureEnd,i),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,r,t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove,s)}}},Nt={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){t[i]=Mt[i].bind(e)})),X.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){var e=this;e.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}},Rt={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.lazy;if("undefined"!==typeof e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled,n=r?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),a=n.find("."+s.elementClass+":not(."+s.loadedClass+"):not(."+s.loadingClass+")");!n.hasClass(s.elementClass)||n.hasClass(s.loadedClass)||n.hasClass(s.loadingClass)||(a=a.add(n[0])),0!==a.length&&a.each((function(e,r){var a=o(r);a.addClass(s.loadingClass);var l=a.attr("data-background"),d=a.attr("data-src"),u=a.attr("data-srcset"),c=a.attr("data-sizes"),h=a.parent("picture");i.loadImage(a[0],d||l,u,c,!1,(function(){if("undefined"!==typeof i&&null!==i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeAttr("data-background")):(u&&(a.attr("srcset",u),a.removeAttr("data-srcset")),c&&(a.attr("sizes",c),a.removeAttr("data-sizes")),h.length&&h.children("source").each((function(e,t){var i=o(t);i.attr("data-srcset")&&(i.attr("srcset",i.attr("data-srcset")),i.removeAttr("data-srcset"))})),d&&(a.attr("src",d),a.removeAttr("data-src"))),a.addClass(s.loadedClass).removeClass(s.loadingClass),n.find("."+s.preloaderClass).remove(),i.params.loop&&t){var e=n.attr("data-swiper-slide-index");if(n.hasClass(i.params.slideDuplicateClass)){var r=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(r.index(),!1)}else{var p=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(p.index(),!1)}}i.emit("lazyImageReady",n[0],a[0]),i.params.autoHeight&&i.updateAutoHeight()}})),i.emit("lazyImageLoad",n[0],a[0])}))}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,s=e.slides,r=e.activeIndex,n=e.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesPerView;function d(e){if(n){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function u(e){return n?o(e).attr("data-swiper-slide-index"):o(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each((function(t,i){var s=n?o(i).attr("data-swiper-slide-index"):o(i).index();e.lazy.loadInSlide(s)}));else if(l>1)for(var c=r;c<r+l;c+=1)d(c)&&e.lazy.loadInSlide(c);else e.lazy.loadInSlide(r);if(a.loadPrevNext)if(l>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var h=a.loadPrevNextAmount,p=l,f=Math.min(r+p+Math.max(h,p),s.length),m=Math.max(r-Math.max(p,h),0),g=r+l;g<f;g+=1)d(g)&&e.lazy.loadInSlide(g);for(var y=m;y<r;y+=1)d(y)&&e.lazy.loadInSlide(y)}else{var v=t.children("."+i.slideNextClass);v.length>0&&e.lazy.loadInSlide(u(v));var b=t.children("."+i.slidePrevClass);b.length>0&&e.lazy.loadInSlide(u(b))}}},Ut={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;X.extend(e,{lazy:{initialImageLoaded:!1,load:Rt.load.bind(e),loadInSlide:Rt.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange:function(){var e=this;e.params.lazy.enabled&&e.params.cssMode&&e.lazy.load()}}},Bt={LinearSpline:function(e,t){var i,s,r=function(){var e,t,i;return function(s,r){t=-1,e=s.length;while(e-t>1)i=e+t>>1,s[i]<=r?t=i:e=i;return e}}();return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=r(this.x,e),i=s-1,(e-this.x[i])*(this.y[s]-this.y[i])/(this.x[s]-this.x[i])+this.y[i]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Bt.LinearSpline(t.slidesGrid,e.slidesGrid):new Bt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,r=this,n=r.controller.control;function a(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),s=-r.controller.spline.interpolate(-t)),s&&"container"!==r.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),s=(t-r.minTranslate())*i+e.minTranslate()),r.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(var o=0;o<n.length;o+=1)n[o]!==t&&n[o]instanceof ct&&a(n[o]);else n instanceof ct&&t!==n&&a(n)},setTransition:function(e,t){var i,s=this,r=s.controller.control;function n(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&X.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){r&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof ct&&n(r[i]);else r instanceof ct&&t!==r&&n(r)}},jt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;X.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Bt.getInterpolateFunction.bind(e),setTranslate:Bt.setTranslate.bind(e),setTransition:Bt.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var i=this;i.controller.control&&i.controller.setTranslate(e,t)},setTransition:function(e,t){var i=this;i.controller.control&&i.controller.setTransition(e,t)}}},Ft={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},makeElNotFocusable:function(e){return e.attr("tabIndex","-1"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,i=t.params.a11y;if(13===e.keyCode){var s=o(e.target);t.navigation&&t.navigation.$nextEl&&s.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(i.lastSlideMessage):t.a11y.notify(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&s.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(i.firstSlideMessage):t.a11y.notify(i.prevSlideMessage)),t.pagination&&s.is("."+t.params.pagination.bulletClass)&&s[0].click()}},notify:function(e){var t=this,i=t.a11y.liveRegion;0!==i.length&&(i.html(""),i.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop&&e.navigation){var t=e.navigation,i=t.$nextEl,s=t.$prevEl;s&&s.length>0&&(e.isBeginning?(e.a11y.disableEl(s),e.a11y.makeElNotFocusable(s)):(e.a11y.enableEl(s),e.a11y.makeElFocusable(s))),i&&i.length>0&&(e.isEnd?(e.a11y.disableEl(i),e.a11y.makeElNotFocusable(i)):(e.a11y.enableEl(i),e.a11y.makeElFocusable(i)))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,s){var r=o(s);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/\{\{index\}\}/,r.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,s=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,s.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,s.prevSlideMessage),i.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,i=this;i.a11y.liveRegion&&i.a11y.liveRegion.length>0&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(e=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(t=i.navigation.$prevEl),e&&e.off("keydown",i.a11y.onEnterKey),t&&t.off("keydown",i.a11y.onEnterKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown","."+i.params.pagination.bulletClass,i.a11y.onEnterKey)}},qt={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;X.extend(e,{a11y:{liveRegion:o('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Ft).forEach((function(t){e.a11y[t]=Ft[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},$t={init:function(){var e=this;if(e.params.history){if(!r.history||!r.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=$t.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||r.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||r.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=$t.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=r.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length,i=e[t-2],s=e[t-1];return{key:i,value:s}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var s=i.slides.eq(t),n=$t.slugify(s.attr("data-history"));r.location.pathname.includes(e)||(n=e+"/"+n);var a=r.history.state;a&&a.value===n||(i.params.history.replaceState?r.history.replaceState({value:n},null,n):r.history.pushState({value:n},null,n))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var s=this;if(t)for(var r=0,n=s.slides.length;r<n;r+=1){var a=s.slides.eq(r),o=$t.slugify(a.attr("data-history"));if(o===t&&!a.hasClass(s.params.slideDuplicateClass)){var l=a.index();s.slideTo(l,e,i)}}else s.slideTo(0,e,i)}},Ht={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;X.extend(e,{history:{init:$t.init.bind(e),setHistory:$t.setHistory.bind(e),setHistoryPopState:$t.setHistoryPopState.bind(e),scrollToSlide:$t.scrollToSlide.bind(e),destroy:$t.destroy.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange:function(){var e=this;e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},zt={onHashCange:function(){var e=this;e.emit("hashChange");var t=i.location.hash.replace("#",""),s=e.slides.eq(e.activeIndex).attr("data-hash");if(t!==s){var r=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if("undefined"===typeof r)return;e.slideTo(r)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&r.history&&r.history.replaceState)r.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||!1),e.emit("hashSet");else{var t=e.slides.eq(e.activeIndex),s=t.attr("data-hash")||t.attr("data-history");i.location.hash=s||"",e.emit("hashSet")}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=i.location.hash.replace("#","");if(t)for(var s=0,n=0,a=e.slides.length;n<a;n+=1){var l=e.slides.eq(n),d=l.attr("data-hash")||l.attr("data-history");if(d===t&&!l.hasClass(e.params.slideDuplicateClass)){var u=l.index();e.slideTo(u,s,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&o(r).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&o(r).off("hashchange",e.hashNavigation.onHashCange)}},Vt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;X.extend(e,{hashNavigation:{initialized:!1,init:zt.init.bind(e),destroy:zt.destroy.bind(e),setHash:zt.setHash.bind(e),onHashCange:zt.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange:function(){var e=this;e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}},Gt={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=X.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),i)},start:function(){var e=this;return"undefined"===typeof e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&("undefined"!==typeof e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Wt={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;X.extend(e,{autoplay:{running:!1,paused:!1,run:Gt.run.bind(e),start:Gt.start.bind(e),stop:Gt.stop.bind(e),pause:Gt.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&(e.autoplay.start(),document.addEventListener("visibilitychange",e.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){var i=this;i.autoplay.running&&(t||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(e):i.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(){var e=this;e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop(),document.removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}},Xt={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var s=e.slides.eq(i),r=s[0].swiperSlideOffset,n=-r;e.params.virtualTranslate||(n-=e.translate);var a=0;e.isHorizontal()||(a=n,n=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(s[0].progress),0):1+Math.min(Math.max(s[0].progress,-1),0);s.css({opacity:o}).transform("translate3d("+n+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,s=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)s.trigger(e[i])}}))}}},Yt={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;X.extend(e,{fadeEffect:{setTranslate:Xt.setTranslate.bind(e),setTransition:Xt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};X.extend(e.params,t),X.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},Jt={setTranslate:function(){var e,t=this,i=t.$el,s=t.$wrapperEl,r=t.slides,n=t.width,a=t.height,l=t.rtlTranslate,d=t.size,u=t.params.cubeEffect,c=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled,p=0;u.shadow&&(c?(e=s.find(".swiper-cube-shadow"),0===e.length&&(e=o('<div class="swiper-cube-shadow"></div>'),s.append(e)),e.css({height:n+"px"})):(e=i.find(".swiper-cube-shadow"),0===e.length&&(e=o('<div class="swiper-cube-shadow"></div>'),i.append(e))));for(var f=0;f<r.length;f+=1){var m=r.eq(f),g=f;h&&(g=parseInt(m.attr("data-swiper-slide-index"),10));var y=90*g,v=Math.floor(y/360);l&&(y=-y,v=Math.floor(-y/360));var b=Math.max(Math.min(m[0].progress,1),-1),_=0,T=0,S=0;g%4===0?(_=4*-v*d,S=0):(g-1)%4===0?(_=0,S=4*-v*d):(g-2)%4===0?(_=d+4*v*d,S=d):(g-3)%4===0&&(_=-d,S=3*d+4*d*v),l&&(_=-_),c||(T=_,_=0);var w="rotateX("+(c?0:-y)+"deg) rotateY("+(c?y:0)+"deg) translate3d("+_+"px, "+T+"px, "+S+"px)";if(b<=1&&b>-1&&(p=90*g+90*b,l&&(p=90*-g-90*b)),m.transform(w),u.slideShadows){var E=c?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),x=c?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===E.length&&(E=o('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),m.append(E)),0===x.length&&(x=o('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),m.append(x)),E.length&&(E[0].style.opacity=Math.max(-b,0)),x.length&&(x[0].style.opacity=Math.max(b,0))}}if(s.css({"-webkit-transform-origin":"50% 50% -"+d/2+"px","-moz-transform-origin":"50% 50% -"+d/2+"px","-ms-transform-origin":"50% 50% -"+d/2+"px","transform-origin":"50% 50% -"+d/2+"px"}),u.shadow)if(c)e.transform("translate3d(0px, "+(n/2+u.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var C=Math.abs(p)-90*Math.floor(Math.abs(p)/90),k=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),I=u.shadowScale,P=u.shadowScale/k,O=u.shadowOffset;e.transform("scale3d("+I+", 1, "+P+") translate3d(0px, "+(a/2+O)+"px, "+-a/2/P+"px) rotateX(-90deg)")}var L=ft.isSafari||ft.isWebView?-d/2:0;s.transform("translate3d(0px,0,"+L+"px) rotateX("+(t.isHorizontal()?0:p)+"deg) rotateY("+(t.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el,s=t.slides;s.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(e)}},Kt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;X.extend(e,{cubeEffect:{setTranslate:Jt.setTranslate.bind(e),setTransition:Jt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};X.extend(e.params,t),X.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},Qt={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,s=0;s<t.length;s+=1){var r=t.eq(s),n=r[0].progress;e.params.flipEffect.limitRotation&&(n=Math.max(Math.min(r[0].progress,1),-1));var a=r[0].swiperSlideOffset,l=-180*n,d=l,u=0,c=-a,h=0;if(e.isHorizontal()?i&&(d=-d):(h=c,c=0,u=-d,d=0),r[0].style.zIndex=-Math.abs(Math.round(n))+t.length,e.params.flipEffect.slideShadows){var p=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),f=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===p.length&&(p=o('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),r.append(p)),0===f.length&&(f=o('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),r.append(f)),p.length&&(p[0].style.opacity=Math.max(-n,0)),f.length&&(f[0].style.opacity=Math.max(n,0))}r.transform("translate3d("+c+"px, "+h+"px, 0px) rotateX("+u+"deg) rotateY("+d+"deg)")}},setTransition:function(e){var t=this,i=t.slides,s=t.activeIndex,r=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var n=!1;i.eq(s).transitionEnd((function(){if(!n&&t&&!t.destroyed){n=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}}))}}},Zt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;X.extend(e,{flipEffect:{setTranslate:Qt.setTranslate.bind(e),setTransition:Qt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};X.extend(e.params,t),X.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},ei={setTranslate:function(){for(var e=this,t=e.width,i=e.height,s=e.slides,r=e.$wrapperEl,n=e.slidesSizesGrid,a=e.params.coverflowEffect,l=e.isHorizontal(),d=e.translate,u=l?t/2-d:i/2-d,c=l?a.rotate:-a.rotate,h=a.depth,p=0,f=s.length;p<f;p+=1){var m=s.eq(p),g=n[p],y=m[0].swiperSlideOffset,v=(u-y-g/2)/g*a.modifier,b=l?c*v:0,_=l?0:c*v,T=-h*Math.abs(v),S=a.stretch;"string"===typeof S&&-1!==S.indexOf("%")&&(S=parseFloat(a.stretch)/100*g);var w=l?0:S*v,E=l?S*v:0,x=1-(1-a.scale)*Math.abs(v);Math.abs(E)<.001&&(E=0),Math.abs(w)<.001&&(w=0),Math.abs(T)<.001&&(T=0),Math.abs(b)<.001&&(b=0),Math.abs(_)<.001&&(_=0),Math.abs(x)<.001&&(x=0);var C="translate3d("+E+"px,"+w+"px,"+T+"px) rotateX("+_+"deg) rotateY("+b+"deg) scale("+x+")";if(m.transform(C),m[0].style.zIndex=1-Math.abs(Math.round(v)),a.slideShadows){var k=l?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),I=l?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===k.length&&(k=o('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),m.append(k)),0===I.length&&(I=o('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),m.append(I)),k.length&&(k[0].style.opacity=v>0?v:0),I.length&&(I[0].style.opacity=-v>0?-v:0)}}if(Y.pointerEvents||Y.prefixedPointerEvents){var P=r[0].style;P.perspectiveOrigin=u+"px 50%"}},setTransition:function(e){var t=this;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ti={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){var e=this;X.extend(e,{coverflowEffect:{setTranslate:ei.setTranslate.bind(e),setTransition:ei.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},ii={init:function(){var e=this,t=e.params,i=t.thumbs,s=e.constructor;i.swiper instanceof s?(e.thumbs.swiper=i.swiper,X.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),X.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):X.isObject(i.swiper)&&(e.thumbs.swiper=new s(X.extend({},i.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var i=t.clickedIndex,s=t.clickedSlide;if((!s||!o(s).hasClass(e.params.thumbs.slideThumbActiveClass))&&"undefined"!==typeof i&&null!==i){var r;if(r=t.params.loop?parseInt(o(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){var n=e.activeIndex;e.slides.eq(n).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,n=e.activeIndex);var a=e.slides.eq(n).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),l=e.slides.eq(n).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r="undefined"===typeof a?l:"undefined"===typeof l?a:l-n<n-a?l:a}e.slideTo(r)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,r=t.params.thumbs.autoScrollOffset,n=r&&!i.params.loop;if(t.realIndex!==i.realIndex||n){var a,o,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);var d=i.slides.eq(l).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),u=i.slides.eq(l).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();a="undefined"===typeof d?u:"undefined"===typeof u?d:u-l===l-d?l:u-l<l-d?u:d,o=t.activeIndex>t.previousIndex?"next":"prev"}else a=t.realIndex,o=a>t.previousIndex?"next":"prev";n&&(a+="next"===o?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>l?a-Math.floor(s/2)+1:a+Math.floor(s/2)-1:a>l&&(a=a-s+1),i.slideTo(a,e?0:void 0))}var c=1,h=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(c=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),i.slides.removeClass(h),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(var p=0;p<c;p+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+p)+'"]').addClass(h);else for(var f=0;f<c;f+=1)i.slides.eq(t.realIndex+f).addClass(h)}}},si={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;X.extend(e,{thumbs:{swiper:null,init:ii.init.bind(e),update:ii.update.bind(e),onThumbClick:ii.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params,i=t.thumbs;i&&i.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},update:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},resize:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e){var t=this,i=t.thumbs.swiper;i&&i.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}},ri=[ht,pt,mt,gt,vt,_t,St,xt,kt,Pt,Lt,Dt,Nt,Ut,jt,qt,Ht,Vt,Wt,Yt,Kt,Zt,ti,si];return"undefined"===typeof ct.use&&(ct.use=ct.Class.use,ct.installModule=ct.Class.installModule),ct.use(ri),ct}))},"0326":function(e,t,i){},"04f8":function(e,t,i){"use strict";var s=i("2d00"),r=i("d039"),n=i("da84"),a=n.String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},"06cf":function(e,t,i){"use strict";var s=i("83ab"),r=i("c65b"),n=i("d1e7"),a=i("5c6c"),o=i("fc6a"),l=i("a04b"),d=i("1a2d"),u=i("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=s?c:function(e,t){if(e=o(e),t=l(t),u)try{return c(e,t)}catch(i){}if(d(e,t))return a(!r(n.f,e,t),e[t])}},"070b":function(e,t,i){"use strict";i("945e")},"07fa":function(e,t,i){"use strict";var s=i("50c4");e.exports=function(e){return s(e.length)}},"0a06":function(e,t,i){"use strict";var s=i("c532"),r=i("30b5"),n=i("f6b4"),a=i("5270"),o=i("4a7b"),l=i("848b"),d=l.validators;function u(e){this.defaults=e,this.interceptors={request:new n,response:new n}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=o(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:d.transitional(d.boolean,"1.0.0"),forcedJSONParsing:d.transitional(d.boolean,"1.0.0"),clarifyTimeoutError:d.transitional(d.boolean,"1.0.0")},!1);var i=[],s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,i.unshift(t.fulfilled,t.rejected))}));var r,n=[];if(this.interceptors.response.forEach((function(e){n.push(e.fulfilled,e.rejected)})),!s){var u=[a,void 0];Array.prototype.unshift.apply(u,i),u=u.concat(n),r=Promise.resolve(e);while(u.length)r=r.then(u.shift(),u.shift());return r}var c=e;while(i.length){var h=i.shift(),p=i.shift();try{c=h(c)}catch(f){p(f);break}}try{r=a(c)}catch(f){return Promise.reject(f)}while(n.length)r=r.then(n.shift(),n.shift());return r},u.prototype.getUri=function(e){return e=o(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},s.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,i){return this.request(o(i||{},{method:e,url:t,data:(i||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,i,s){return this.request(o(s||{},{method:e,url:t,data:i}))}})),e.exports=u},"0cfb":function(e,t,i){"use strict";var s=i("83ab"),r=i("d039"),n=i("cc12");e.exports=!s&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,i){"use strict";var s=String;e.exports=function(e){try{return s(e)}catch(t){return"Object"}}},"0df6":function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"13d2":function(e,t,i){"use strict";var s=i("e330"),r=i("d039"),n=i("1626"),a=i("1a2d"),o=i("83ab"),l=i("5e77").CONFIGURABLE,d=i("8925"),u=i("69f3"),c=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=s("".slice),g=s("".replace),y=s([].join),v=o&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,i){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),v&&i&&a(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var s=c(e);return a(s,"source")||(s.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return n(this)&&h(this).source||d(this)}),"toString")},"13d5":function(e,t,i){"use strict";var s=i("23e7"),r=i("d58f").left,n=i("a640"),a=i("2d00"),o=i("605d"),l=!o&&a>79&&a<83,d=l||!n("reduce");s({target:"Array",proto:!0,forced:d},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},"14d9":function(e,t,i){"use strict";var s=i("23e7"),r=i("7b0b"),n=i("07fa"),a=i("3a34"),o=i("3511"),l=i("d039"),d=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},c=d||!u();s({target:"Array",proto:!0,arity:1,forced:c},{push:function(e){var t=r(this),i=n(t),s=arguments.length;o(i+s);for(var l=0;l<s;l++)t[i]=arguments[l],i++;return a(t,i),i}})},1626:function(e,t,i){"use strict";var s="object"==typeof document&&document.all;e.exports="undefined"==typeof s&&void 0!==s?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},"17a3":function(e,t,i){"use strict";i.d(t,"i",(function(){return l})),i.d(t,"h",(function(){return d})),i.d(t,"d",(function(){return u})),i.d(t,"f",(function(){return c})),i.d(t,"e",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"g",(function(){return m})),i.d(t,"a",(function(){return g})),i.d(t,"b",(function(){return y}));var s=i("be09"),r=i.n(s),n={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},a=["video","audio","text"],o=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var s=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(i).toString(16)).slice(-2);return"avc1."+s+"00"+r})):e},d=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach((function(e){var t;e=e.trim(),a.forEach((function(s){var r=n[s].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=s;var a=e.substring(0,r[1].length),o=e.replace(a,"");i.push({type:a,details:o,mediaType:s})}})),t||i.push({type:e,details:"",mediaType:"unknown"})})),i},u=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var s in i){var r=i[s];if(r.default&&r.playlists)return d(r.playlists[0].attributes.CODECS)}return null},c=function(e){return void 0===e&&(e=""),n.audio.test(e.trim().toLowerCase())},h=function(e){return void 0===e&&(e=""),n.text.test(e.trim().toLowerCase())},p=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),i="video";1===t.length&&c(t[0])?i="audio":1===t.length&&h(t[0])&&(i="application");var s="mp4";return t.every((function(e){return n.mp4.test(e)}))?s="mp4":t.every((function(e){return n.webm.test(e)}))?s="webm":t.every((function(e){return n.ogg.test(e)}))&&(s="ogg"),i+"/"+s+';codecs="'+e+'"'}},f=function(e){return void 0===e&&(e=""),r.a.MediaSource&&r.a.MediaSource.isTypeSupported&&r.a.MediaSource.isTypeSupported(p(e))||!1},m=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<o.length;t++){var i=o[t];if(n["muxer"+i].test(e))return!0}return!1}))},g="mp4a.40.2",y="avc1.4d400d"},"1a2d":function(e,t,i){"use strict";var s=i("e330"),r=i("7b0b"),n=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return n(r(e),t)}},"1d2b":function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(t,i)}}},"1d80":function(e,t,i){"use strict";var s=i("7234"),r=TypeError;e.exports=function(e){if(s(e))throw new r("Can't call method on "+e);return e}},"1e09":function(e,t,i){},"1e83":function(e,t,i){"use strict";i("7f74")},"1fb5":function(e,t,i){"use strict";t.byteLength=u,t.toByteArray=h,t.fromByteArray=m;for(var s=[],r=[],n="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o<l;++o)s[o]=a[o],r[a.charCodeAt(o)]=o;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var s=i===t?0:4-i%4;return[i,s]}function u(e){var t=d(e),i=t[0],s=t[1];return 3*(i+s)/4-s}function c(e,t,i){return 3*(t+i)/4-i}function h(e){var t,i,s=d(e),a=s[0],o=s[1],l=new n(c(e,a,o)),u=0,h=o>0?a-4:a;for(i=0;i<h;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===o&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===o&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function p(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function f(e,t,i){for(var s,r=[],n=t;n<i;n+=3)s=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(255&e[n+2]),r.push(p(s));return r.join("")}function m(e){for(var t,i=e.length,r=i%3,n=[],a=16383,o=0,l=i-r;o<l;o+=a)n.push(f(e,o,o+a>l?l:o+a));return 1===r?(t=e[i-1],n.push(s[t>>2]+s[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"=")),n.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"210b":function(e,t,i){var s=i("e1c8");t.DOMImplementation=s.DOMImplementation,t.XMLSerializer=s.XMLSerializer,t.DOMParser=i("b074").DOMParser},"23cb":function(e,t,i){"use strict";var s=i("5926"),r=Math.max,n=Math.min;e.exports=function(e,t){var i=s(e);return i<0?r(i+t,0):n(i,t)}},"23e7":function(e,t,i){"use strict";var s=i("da84"),r=i("06cf").f,n=i("9112"),a=i("cb2d"),o=i("6374"),l=i("e893"),d=i("94ca");e.exports=function(e,t){var i,u,c,h,p,f,m=e.target,g=e.global,y=e.stat;if(u=g?s:y?s[m]||o(m,{}):s[m]&&s[m].prototype,u)for(c in t){if(p=t[c],e.dontCallGetSet?(f=r(u,c),h=f&&f.value):h=u[c],i=d(g?c:m+(y?".":"#")+c,e.forced),!i&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&n(p,"sham",!0),a(u,c,p,e)}}},"241c":function(e,t,i){"use strict";var s=i("ca84"),r=i("7839"),n=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},2444:function(e,t,i){"use strict";(function(t){var s=i("c532"),r=i("c8af"),n=i("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=i("b50d")),e}function d(e,t,i){if(s.isString(e))try{return(t||JSON.parse)(e),s.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(i||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)||t&&"application/json"===t["Content-Type"]?(o(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional,i=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||r&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a){if("SyntaxError"===o.name)throw n(o,this,"E_JSON_PARSE");throw o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){u.headers[e]=s.merge(a)})),e.exports=u}).call(this,i("4362"))},"2b8c":function(e,t,i){var s=i("be09"),r=e.exports={WebVTT:i("d02c"),VTTCue:i("b03c"),VTTRegion:i("f97d")};s.vttjs=r,s.WebVTT=r.WebVTT;var n=r.VTTCue,a=r.VTTRegion,o=s.VTTCue,l=s.VTTRegion;r.shim=function(){s.VTTCue=n,s.VTTRegion=a},r.restore=function(){s.VTTCue=o,s.VTTRegion=l},s.VTTCue||r.shim()},"2d00":function(e,t,i){"use strict";var s,r,n=i("da84"),a=i("342f"),o=n.process,l=n.Deno,d=o&&o.versions||l&&l.version,u=d&&d.v8;u&&(s=u.split("."),r=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!r&&a&&(s=a.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=a.match(/Chrome\/(\d+)/),s&&(r=+s[1]))),e.exports=r},"2d83":function(e,t,i){"use strict";var s=i("387f");e.exports=function(e,t,i,r,n){var a=new Error(e);return s(a,t,i,r,n)}},"2e67":function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,i){"use strict";var s=i("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var n;if(i)n=i(t);else if(s.isURLSearchParams(t))n=t.toString();else{var a=[];s.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),n=a.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},"321f":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("de66"),r=Object(s["k"])([73,68,51]),n=function(e,t){void 0===t&&(t=0),e=Object(s["k"])(e);var i=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],n=(16&i)>>4;return n?r+20:r+10},a=function e(t,i){return void 0===i&&(i=0),t=Object(s["k"])(t),t.length-i<10||!Object(s["a"])(t,r,{offset:i})?i:(i+=n(t,i),e(t,i))}},3380:function(e,t,i){"use strict";i("c020")},"342f":function(e,t,i){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(e,t,i){"use strict";var s=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw s("Maximum allowed index exceeded");return e}},3603:function(e,t,i){"use strict";var s=i("be09"),r=i("a559"),n=i("8362");u.httpHandler=i("8c00");
|
1
|
+
module.exports=function(e){var t={};function i(s){if(t[s])return t[s].exports;var r=t[s]={i:s,l:!1,exports:{}};return e[s].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,s){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(i.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(s,r,function(t){return e[t]}.bind(null,r));return s},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s="fb15")}({0:function(e,t){},"0071":function(e,t,i){"use strict";i("ee0a")},"02a3":function(e,t,i){(function(t,i){e.exports=i()})(0,(function(){"use strict";function e(e){return null!==e&&"object"===typeof e&&"constructor"in e&&e.constructor===Object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={}),Object.keys(s).forEach((function(r){"undefined"===typeof i[r]?i[r]=s[r]:e(s[r])&&e(i[r])&&Object.keys(s[r]).length>0&&t(i[r],s[r])}))}var i="undefined"!==typeof document?document:{},s={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};t(i,s);var r="undefined"!==typeof window?window:{},n={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}};t(r,n);var a=function(e){for(var t=this,i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this};function o(e,t){var s=[],n=0;if(e&&!t&&e instanceof a)return e;if(e)if("string"===typeof e){var o,l,d=e.trim();if(d.indexOf("<")>=0&&d.indexOf(">")>=0){var u="div";for(0===d.indexOf("<li")&&(u="ul"),0===d.indexOf("<tr")&&(u="tbody"),0!==d.indexOf("<td")&&0!==d.indexOf("<th")||(u="tr"),0===d.indexOf("<tbody")&&(u="table"),0===d.indexOf("<option")&&(u="select"),l=i.createElement(u),l.innerHTML=d,n=0;n<l.childNodes.length;n+=1)s.push(l.childNodes[n])}else for(o=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||i).querySelectorAll(e.trim()):[i.getElementById(e.trim().split("#")[1])],n=0;n<o.length;n+=1)o[n]&&s.push(o[n])}else if(e.nodeType||e===r||e===i)s.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)s.push(e[n]);return new a(s)}function l(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function d(e){if("undefined"===typeof e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)"undefined"!==typeof this[s]&&"undefined"!==typeof this[s].classList&&this[s].classList.add(t[i]);return this}function u(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)"undefined"!==typeof this[s]&&"undefined"!==typeof this[s].classList&&this[s].classList.remove(t[i]);return this}function c(e){return!!this[0]&&this[0].classList.contains(e)}function h(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var s=0;s<this.length;s+=1)"undefined"!==typeof this[s]&&"undefined"!==typeof this[s].classList&&this[s].classList.toggle(t[i]);return this}function p(e,t){var i=arguments;if(1===arguments.length&&"string"===typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var s=0;s<this.length;s+=1)if(2===i.length)this[s].setAttribute(e,t);else for(var r in e)this[s][r]=e[r],this[s].setAttribute(r,e[r]);return this}function f(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function m(e,t){var i;if("undefined"!==typeof t){for(var s=0;s<this.length;s+=1)i=this[s],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0],i){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);return r||void 0}}function g(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function y(e){"string"!==typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this}function v(){var e,t=[],i=arguments.length;while(i--)t[i]=arguments[i];var s=t[0],r=t[1],n=t[2],a=t[3];function l(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),o(t).is(r))n.apply(t,i);else for(var s=o(t).parents(),a=0;a<s.length;a+=1)o(s[a]).is(r)&&n.apply(s[a],i)}}function d(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"===typeof t[1]&&(e=t,s=e[0],n=e[1],a=e[2],r=void 0),a||(a=!1);for(var u,c=s.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(r)for(u=0;u<c.length;u+=1){var f=c[u];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:n,proxyListener:l}),p.addEventListener(f,l,a)}else for(u=0;u<c.length;u+=1){var m=c[u];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:n,proxyListener:d}),p.addEventListener(m,d,a)}}return this}function b(){var e,t=[],i=arguments.length;while(i--)t[i]=arguments[i];var s=t[0],r=t[1],n=t[2],a=t[3];"function"===typeof t[1]&&(e=t,s=e[0],n=e[1],a=e[2],r=void 0),a||(a=!1);for(var o=s.split(" "),l=0;l<o.length;l+=1)for(var d=o[l],u=0;u<this.length;u+=1){var c=this[u],h=void 0;if(!r&&c.dom7Listeners?h=c.dom7Listeners[d]:r&&c.dom7LiveListeners&&(h=c.dom7LiveListeners[d]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];n&&f.listener===n||n&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===n?(c.removeEventListener(d,f.proxyListener,a),h.splice(p,1)):n||(c.removeEventListener(d,f.proxyListener,a),h.splice(p,1))}}return this}function _(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];for(var s=e[0].split(" "),n=e[1],a=0;a<s.length;a+=1)for(var o=s[a],l=0;l<this.length;l+=1){var d=this[l],u=void 0;try{u=new r.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(c){u=i.createEvent("Event"),u.initEvent(o,!0,!0),u.detail=n}d.dom7EventData=e.filter((function(e,t){return t>0})),d.dispatchEvent(u),d.dom7EventData=[],delete d.dom7EventData}return this}function T(e){var t,i=["webkitTransitionEnd","transitionend"],s=this;function r(n){if(n.target===this)for(e.call(this,n),t=0;t<i.length;t+=1)s.off(i[t],r)}if(e)for(t=0;t<i.length;t+=1)s.on(i[t],r);return this}function S(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function w(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function E(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),s=i.body,n=e.clientTop||s.clientTop||0,a=e.clientLeft||s.clientLeft||0,o=e===r?r.scrollY:e.scrollTop,l=e===r?r.scrollX:e.scrollLeft;return{top:t.top+o-n,left:t.left+l-a}}return null}function x(){return this[0]?r.getComputedStyle(this[0],null):{}}function C(e,t){var i;if(1===arguments.length){if("string"!==typeof e){for(i=0;i<this.length;i+=1)for(var s in e)this[i].style[s]=e[s];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"===typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this}function k(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this}function I(e){for(var t=[],i=this,s=0;s<i.length;s+=1)e.call(i[s],s,i[s])&&t.push(i[s]);return new a(t)}function P(e){if("undefined"===typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function O(e){if("undefined"===typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function L(e){var t,s,n=this[0];if(!n||"undefined"===typeof e)return!1;if("string"===typeof e){if(n.matches)return n.matches(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);for(t=o(e),s=0;s<t.length;s+=1)if(t[s]===n)return!0;return!1}if(e===i)return n===i;if(e===r)return n===r;if(e.nodeType||e instanceof a){for(t=e.nodeType?[e]:e,s=0;s<t.length;s+=1)if(t[s]===n)return!0;return!1}return!1}function A(){var e,t=this[0];if(t){e=0;while(null!==(t=t.previousSibling))1===t.nodeType&&(e+=1);return e}}function D(e){if("undefined"===typeof e)return this;var t,i=this.length;return e>i-1?new a([]):e<0?(t=i+e,new a(t<0?[]:[this[t]])):new a([this[e]])}function M(){var e,t=[],s=arguments.length;while(s--)t[s]=arguments[s];for(var r=0;r<t.length;r+=1){e=t[r];for(var n=0;n<this.length;n+=1)if("string"===typeof e){var o=i.createElement("div");o.innerHTML=e;while(o.firstChild)this[n].appendChild(o.firstChild)}else if(e instanceof a)for(var l=0;l<e.length;l+=1)this[n].appendChild(e[l]);else this[n].appendChild(e)}return this}function N(e){var t,s;for(t=0;t<this.length;t+=1)if("string"===typeof e){var r=i.createElement("div");for(r.innerHTML=e,s=r.childNodes.length-1;s>=0;s-=1)this[t].insertBefore(r.childNodes[s],this[t].childNodes[0])}else if(e instanceof a)for(s=0;s<e.length;s+=1)this[t].insertBefore(e[s],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function R(e){return this.length>0?e?this[0].nextElementSibling&&o(this[0].nextElementSibling).is(e)?new a([this[0].nextElementSibling]):new a([]):this[0].nextElementSibling?new a([this[0].nextElementSibling]):new a([]):new a([])}function U(e){var t=[],i=this[0];if(!i)return new a([]);while(i.nextElementSibling){var s=i.nextElementSibling;e?o(s).is(e)&&t.push(s):t.push(s),i=s}return new a(t)}function B(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&o(t.previousElementSibling).is(e)?new a([t.previousElementSibling]):new a([]):t.previousElementSibling?new a([t.previousElementSibling]):new a([])}return new a([])}function j(e){var t=[],i=this[0];if(!i)return new a([]);while(i.previousElementSibling){var s=i.previousElementSibling;e?o(s).is(e)&&t.push(s):t.push(s),i=s}return new a(t)}function F(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?o(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return o(l(t))}function q(e){for(var t=[],i=0;i<this.length;i+=1){var s=this[i].parentNode;while(s)e?o(s).is(e)&&t.push(s):t.push(s),s=s.parentNode}return o(l(t))}function $(e){var t=this;return"undefined"===typeof e?new a([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function H(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].querySelectorAll(e),r=0;r<s.length;r+=1)t.push(s[r]);return new a(t)}function z(e){for(var t=[],i=0;i<this.length;i+=1)for(var s=this[i].childNodes,r=0;r<s.length;r+=1)e?1===s[r].nodeType&&o(s[r]).is(e)&&t.push(s[r]):1===s[r].nodeType&&t.push(s[r]);return new a(l(t))}function V(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function G(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var i,s,r=this;for(i=0;i<e.length;i+=1){var n=o(e[i]);for(s=0;s<n.length;s+=1)r[r.length]=n[s],r.length+=1}return r}o.fn=a.prototype,o.Class=a,o.Dom7=a;var W={addClass:d,removeClass:u,hasClass:c,toggleClass:h,attr:p,removeAttr:f,data:m,transform:g,transition:y,on:v,off:b,trigger:_,transitionEnd:T,outerWidth:S,outerHeight:w,offset:E,css:C,each:k,html:P,text:O,is:L,index:A,eq:D,append:M,prepend:N,next:R,nextAll:U,prev:B,prevAll:j,parent:F,parents:q,closest:$,find:H,children:z,filter:I,remove:V,add:G,styles:x};Object.keys(W).forEach((function(e){o.fn[e]=o.fn[e]||W[e]}));var X={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(i){}try{delete t[e]}catch(i){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){var i,s,n;void 0===t&&(t="x");var a=r.getComputedStyle(e,null);return r.WebKitCSSMatrix?(s=a.transform||a.webkitTransform,s.split(",").length>6&&(s=s.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),n=new r.WebKitCSSMatrix("none"===s?"":s)):(n=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===t&&(s=r.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(s=r.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),s||0},parseUrlQuery:function(e){var t,i,s,n,a={},o=e||r.location.href;if("string"===typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",i=o.split("&").filter((function(e){return""!==e})),n=i.length,t=0;t<n;t+=1)s=i[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(s[0])]="undefined"===typeof s[1]?void 0:decodeURIComponent(s[1])||"";return a},isObject:function(e){return"object"===typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];for(var i=Object(e[0]),s=1;s<e.length;s+=1){var r=e[s];if(void 0!==r&&null!==r)for(var n=Object.keys(Object(r)),a=0,o=n.length;a<o;a+=1){var l=n[a],d=Object.getOwnPropertyDescriptor(r,l);void 0!==d&&d.enumerable&&(X.isObject(i[l])&&X.isObject(r[l])?X.extend(i[l],r[l]):!X.isObject(i[l])&&X.isObject(r[l])?(i[l]={},X.extend(i[l],r[l])):i[l]=r[l])}}return i}},Y=function(){return{touch:!!("ontouchstart"in r||r.DocumentTouch&&i instanceof r.DocumentTouch),pointerEvents:!!r.PointerEvent&&"maxTouchPoints"in r.navigator&&r.navigator.maxTouchPoints>=0,observer:function(){return"MutationObserver"in r||"WebkitMutationObserver"in r}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});r.addEventListener("testPassiveListener",null,t)}catch(i){}return e}(),gestures:function(){return"ongesturestart"in r}()}}(),J=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))},K={components:{configurable:!0}};function Q(){var e,t,i=this,s=i.$el;e="undefined"!==typeof i.params.width?i.params.width:s[0].clientWidth,t="undefined"!==typeof i.params.height?i.params.height:s[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(s.css("padding-left"),10)-parseInt(s.css("padding-right"),10),t=t-parseInt(s.css("padding-top"),10)-parseInt(s.css("padding-bottom"),10),X.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function Z(){var e=this,t=e.params,i=e.$wrapperEl,s=e.size,n=e.rtlTranslate,a=e.wrongRTL,o=e.virtual&&t.virtual.enabled,l=o?e.virtual.slides.length:e.slides.length,d=i.children("."+e.params.slideClass),u=o?e.virtual.slides.length:d.length,c=[],h=[],p=[];function f(e){return!t.cssMode||e!==d.length-1}var m=t.slidesOffsetBefore;"function"===typeof m&&(m=t.slidesOffsetBefore.call(e));var g=t.slidesOffsetAfter;"function"===typeof g&&(g=t.slidesOffsetAfter.call(e));var y=e.snapGrid.length,v=e.snapGrid.length,b=t.spaceBetween,_=-m,T=0,S=0;if("undefined"!==typeof s){var w,E;"string"===typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*s),e.virtualSize=-b,n?d.css({marginLeft:"",marginTop:""}):d.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(w=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(w=Math.max(w,t.slidesPerView*t.slidesPerColumn)));for(var x,C=t.slidesPerColumn,k=w/C,I=Math.floor(u/t.slidesPerColumn),P=0;P<u;P+=1){E=0;var O=d.eq(P);if(t.slidesPerColumn>1){var L=void 0,A=void 0,D=void 0;if("row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){var M=Math.floor(P/(t.slidesPerGroup*t.slidesPerColumn)),N=P-t.slidesPerColumn*t.slidesPerGroup*M,R=0===M?t.slidesPerGroup:Math.min(Math.ceil((u-M*C*t.slidesPerGroup)/C),t.slidesPerGroup);D=Math.floor(N/R),A=N-D*R+M*t.slidesPerGroup,L=A+D*w/C,O.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===t.slidesPerColumnFill?(A=Math.floor(P/C),D=P-A*C,(A>I||A===I&&D===C-1)&&(D+=1,D>=C&&(D=0,A+=1))):(D=Math.floor(P/k),A=P-D*k);O.css("margin-"+(e.isHorizontal()?"top":"left"),0!==D&&t.spaceBetween&&t.spaceBetween+"px")}if("none"!==O.css("display")){if("auto"===t.slidesPerView){var U=r.getComputedStyle(O[0],null),B=O[0].style.transform,j=O[0].style.webkitTransform;if(B&&(O[0].style.transform="none"),j&&(O[0].style.webkitTransform="none"),t.roundLengths)E=e.isHorizontal()?O.outerWidth(!0):O.outerHeight(!0);else if(e.isHorizontal()){var F=parseFloat(U.getPropertyValue("width")),q=parseFloat(U.getPropertyValue("padding-left")),$=parseFloat(U.getPropertyValue("padding-right")),H=parseFloat(U.getPropertyValue("margin-left")),z=parseFloat(U.getPropertyValue("margin-right")),V=U.getPropertyValue("box-sizing");E=V&&"border-box"===V?F+H+z:F+q+$+H+z}else{var G=parseFloat(U.getPropertyValue("height")),W=parseFloat(U.getPropertyValue("padding-top")),Y=parseFloat(U.getPropertyValue("padding-bottom")),J=parseFloat(U.getPropertyValue("margin-top")),K=parseFloat(U.getPropertyValue("margin-bottom")),Q=U.getPropertyValue("box-sizing");E=Q&&"border-box"===Q?G+J+K:G+W+Y+J+K}B&&(O[0].style.transform=B),j&&(O[0].style.webkitTransform=j),t.roundLengths&&(E=Math.floor(E))}else E=(s-(t.slidesPerView-1)*b)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),d[P]&&(e.isHorizontal()?d[P].style.width=E+"px":d[P].style.height=E+"px");d[P]&&(d[P].swiperSlideSize=E),p.push(E),t.centeredSlides?(_=_+E/2+T/2+b,0===T&&0!==P&&(_=_-s/2-b),0===P&&(_=_-s/2-b),Math.abs(_)<.001&&(_=0),t.roundLengths&&(_=Math.floor(_)),S%t.slidesPerGroup===0&&c.push(_),h.push(_)):(t.roundLengths&&(_=Math.floor(_)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup===0&&c.push(_),h.push(_),_=_+E+b),e.virtualSize+=E+b,T=E,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+g,n&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),t.setWrapperSize&&(e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(E+t.spaceBetween)*w,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){x=[];for(var Z=0;Z<c.length;Z+=1){var ee=c[Z];t.roundLengths&&(ee=Math.floor(ee)),c[Z]<e.virtualSize+c[0]&&x.push(ee)}c=x}if(!t.centeredSlides){x=[];for(var te=0;te<c.length;te+=1){var ie=c[te];t.roundLengths&&(ie=Math.floor(ie)),c[te]<=e.virtualSize-s&&x.push(ie)}c=x,Math.floor(e.virtualSize-s)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-s)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?n?d.filter(f).css({marginLeft:b+"px"}):d.filter(f).css({marginRight:b+"px"}):d.filter(f).css({marginBottom:b+"px"})),t.centeredSlides&&t.centeredSlidesBounds){var se=0;p.forEach((function(e){se+=e+(t.spaceBetween?t.spaceBetween:0)})),se-=t.spaceBetween;var re=se-s;c=c.map((function(e){return e<0?-m:e>re?re+g:e}))}if(t.centerInsufficientSlides){var ne=0;if(p.forEach((function(e){ne+=e+(t.spaceBetween?t.spaceBetween:0)})),ne-=t.spaceBetween,ne<s){var ae=(s-ne)/2;c.forEach((function(e,t){c[t]=e-ae})),h.forEach((function(e,t){h[t]=e+ae}))}}X.extend(e,{slides:d,snapGrid:c,slidesGrid:h,slidesSizesGrid:p}),u!==l&&e.emit("slidesLengthChange"),c.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==v&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function ee(e){var t,i=this,s=[],r=0;if("number"===typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)if(i.params.centeredSlides)i.visibleSlides.each((function(e,t){s.push(t)}));else for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var n=i.activeIndex+t;if(n>i.slides.length)break;s.push(i.slides.eq(n)[0])}else s.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<s.length;t+=1)if("undefined"!==typeof s[t]){var a=s[t].offsetHeight;r=a>r?a:r}r&&i.$wrapperEl.css("height",r+"px")}function te(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop}function ie(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,s=t.slides,r=t.rtlTranslate;if(0!==s.length){"undefined"===typeof s[0].swiperSlideOffset&&t.updateSlidesOffset();var n=-e;r&&(n=e),s.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var a=0;a<s.length;a+=1){var l=s[a],d=(n+(i.centeredSlides?t.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility||i.centeredSlides&&i.autoHeight){var u=-(n-l.swiperSlideOffset),c=u+t.slidesSizesGrid[a],h=u>=0&&u<t.size-1||c>1&&c<=t.size||u<=0&&c>=t.size;h&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(a),s.eq(a).addClass(i.slideVisibleClass))}l.progress=r?-d:d}t.visibleSlides=o(t.visibleSlides)}}function se(e){var t=this;if("undefined"===typeof e){var i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}var s=t.params,r=t.maxTranslate()-t.minTranslate(),n=t.progress,a=t.isBeginning,o=t.isEnd,l=a,d=o;0===r?(n=0,a=!0,o=!0):(n=(e-t.minTranslate())/r,a=n<=0,o=n>=1),X.extend(t,{progress:n,isBeginning:a,isEnd:o}),(s.watchSlidesProgress||s.watchSlidesVisibility||s.centeredSlides&&s.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!d&&t.emit("reachEnd toEdge"),(l&&!a||d&&!o)&&t.emit("fromEdge"),t.emit("progress",n)}function re(){var e,t=this,i=t.slides,s=t.params,r=t.$wrapperEl,n=t.activeIndex,a=t.realIndex,o=t.virtual&&s.virtual.enabled;i.removeClass(s.slideActiveClass+" "+s.slideNextClass+" "+s.slidePrevClass+" "+s.slideDuplicateActiveClass+" "+s.slideDuplicateNextClass+" "+s.slideDuplicatePrevClass),e=o?t.$wrapperEl.find("."+s.slideClass+'[data-swiper-slide-index="'+n+'"]'):i.eq(n),e.addClass(s.slideActiveClass),s.loop&&(e.hasClass(s.slideDuplicateClass)?r.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(s.slideDuplicateActiveClass):r.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(s.slideDuplicateActiveClass));var l=e.nextAll("."+s.slideClass).eq(0).addClass(s.slideNextClass);s.loop&&0===l.length&&(l=i.eq(0),l.addClass(s.slideNextClass));var d=e.prevAll("."+s.slideClass).eq(0).addClass(s.slidePrevClass);s.loop&&0===d.length&&(d=i.eq(-1),d.addClass(s.slidePrevClass)),s.loop&&(l.hasClass(s.slideDuplicateClass)?r.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicateNextClass):r.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicateNextClass),d.hasClass(s.slideDuplicateClass)?r.children("."+s.slideClass+":not(."+s.slideDuplicateClass+')[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicatePrevClass):r.children("."+s.slideClass+"."+s.slideDuplicateClass+'[data-swiper-slide-index="'+d.attr("data-swiper-slide-index")+'"]').addClass(s.slideDuplicatePrevClass))}function ne(e){var t,i=this,s=i.rtlTranslate?i.translate:-i.translate,r=i.slidesGrid,n=i.snapGrid,a=i.params,o=i.activeIndex,l=i.realIndex,d=i.snapIndex,u=e;if("undefined"===typeof u){for(var c=0;c<r.length;c+=1)"undefined"!==typeof r[c+1]?s>=r[c]&&s<r[c+1]-(r[c+1]-r[c])/2?u=c:s>=r[c]&&s<r[c+1]&&(u=c+1):s>=r[c]&&(u=c);a.normalizeSlideIndex&&(u<0||"undefined"===typeof u)&&(u=0)}if(n.indexOf(s)>=0)t=n.indexOf(s);else{var h=Math.min(a.slidesPerGroupSkip,u);t=h+Math.floor((u-h)/a.slidesPerGroup)}if(t>=n.length&&(t=n.length-1),u!==o){var p=parseInt(i.slides.eq(u).attr("data-swiper-slide-index")||u,10);X.extend(i,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:u}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),(i.initialized||i.params.runCallbacksOnInit)&&i.emit("slideChange")}else t!==d&&(i.snapIndex=t,i.emit("snapIndexChange"))}function ae(e){var t=this,i=t.params,s=o(e.target).closest("."+i.slideClass)[0],r=!1;if(s)for(var n=0;n<t.slides.length;n+=1)t.slides[n]===s&&(r=!0);if(!s||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=s,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(o(s).attr("data-swiper-slide-index"),10):t.clickedIndex=o(s).index(),i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}J.prototype.on=function(e,t,i){var s=this;if("function"!==typeof t)return s;var r=i?"unshift":"push";return e.split(" ").forEach((function(e){s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][r](t)})),s},J.prototype.once=function(e,t,i){var s=this;if("function"!==typeof t)return s;function r(){var i=[],n=arguments.length;while(n--)i[n]=arguments[n];s.off(e,r),r.f7proxy&&delete r.f7proxy,t.apply(s,i)}return r.f7proxy=t,s.on(e,r,i)},J.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach((function(e){"undefined"===typeof t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach((function(s,r){(s===t||s.f7proxy&&s.f7proxy===t)&&i.eventsListeners[e].splice(r,1)}))})),i):i},J.prototype.emit=function(){var e=[],t=arguments.length;while(t--)e[t]=arguments[t];var i,s,r,n=this;if(!n.eventsListeners)return n;"string"===typeof e[0]||Array.isArray(e[0])?(i=e[0],s=e.slice(1,e.length),r=n):(i=e[0].events,s=e[0].data,r=e[0].context||n);var a=Array.isArray(i)?i:i.split(" ");return a.forEach((function(e){if(n.eventsListeners&&n.eventsListeners[e]){var t=[];n.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(r,s)}))}})),n},J.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i];s.params&&X.extend(e,s.params)}))},J.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var s=t.modules[i],r=e[i]||{};s.instance&&Object.keys(s.instance).forEach((function(e){var i=s.instance[e];t[e]="function"===typeof i?i.bind(t):i})),s.on&&t.on&&Object.keys(s.on).forEach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(r)}))},K.components.set=function(e){var t=this;t.use&&t.use(e)},J.installModule=function(e){var t=[],i=arguments.length-1;while(i-- >0)t[i]=arguments[i+1];var s=this;s.prototype.modules||(s.prototype.modules={});var r=e.name||Object.keys(s.prototype.modules).length+"_"+X.now();return s.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach((function(t){s.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){s[t]=e.static[t]})),e.install&&e.install.apply(s,t),s},J.use=function(e){var t=[],i=arguments.length-1;while(i-- >0)t[i]=arguments[i+1];var s=this;return Array.isArray(e)?(e.forEach((function(e){return s.installModule(e)})),s):s.installModule.apply(s,[e].concat(t))},Object.defineProperties(J,K);var oe={updateSize:Q,updateSlides:Z,updateAutoHeight:ee,updateSlidesOffset:te,updateSlidesProgress:ie,updateProgress:se,updateSlidesClasses:re,updateActiveIndex:ne,updateClickedSlide:ae};function le(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,i=t.params,s=t.rtlTranslate,r=t.translate,n=t.$wrapperEl;if(i.virtualTranslate)return s?-r:r;if(i.cssMode)return r;var a=X.getTranslate(n[0],e);return s&&(a=-a),a||0}function de(e,t){var i,s=this,r=s.rtlTranslate,n=s.params,a=s.$wrapperEl,o=s.wrapperEl,l=s.progress,d=0,u=0,c=0;s.isHorizontal()?d=r?-e:e:u=e,n.roundLengths&&(d=Math.floor(d),u=Math.floor(u)),n.cssMode?o[s.isHorizontal()?"scrollLeft":"scrollTop"]=s.isHorizontal()?-d:-u:n.virtualTranslate||a.transform("translate3d("+d+"px, "+u+"px, "+c+"px)"),s.previousTranslate=s.translate,s.translate=s.isHorizontal()?d:u;var h=s.maxTranslate()-s.minTranslate();i=0===h?0:(e-s.minTranslate())/h,i!==l&&s.updateProgress(e),s.emit("setTranslate",s.translate,t)}function ue(){return-this.snapGrid[0]}function ce(){return-this.snapGrid[this.snapGrid.length-1]}function he(e,t,i,s,r){var n;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);var a=this,o=a.params,l=a.wrapperEl;if(a.animating&&o.preventInteractionOnTransition)return!1;var d,u=a.minTranslate(),c=a.maxTranslate();if(d=s&&e>u?u:s&&e<c?c:e,a.updateProgress(d),o.cssMode){var h=a.isHorizontal();return 0===t?l[h?"scrollLeft":"scrollTop"]=-d:l.scrollTo?l.scrollTo((n={},n[h?"left":"top"]=-d,n.behavior="smooth",n)):l[h?"scrollLeft":"scrollTop"]=-d,!0}return 0===t?(a.setTransition(0),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,i&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}var pe={getTranslate:le,setTranslate:de,minTranslate:ue,maxTranslate:ce,translateTo:he};function fe(e,t){var i=this;i.params.cssMode||i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function me(e,t){void 0===e&&(e=!0);var i=this,s=i.activeIndex,r=i.params,n=i.previousIndex;if(!r.cssMode){r.autoHeight&&i.updateAutoHeight();var a=t;if(a||(a=s>n?"next":s<n?"prev":"reset"),i.emit("transitionStart"),e&&s!==n){if("reset"===a)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===a?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}}function ge(e,t){void 0===e&&(e=!0);var i=this,s=i.activeIndex,r=i.previousIndex,n=i.params;if(i.animating=!1,!n.cssMode){i.setTransition(0);var a=t;if(a||(a=s>r?"next":s<r?"prev":"reset"),i.emit("transitionEnd"),e&&s!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}}var ye={setTransition:fe,transitionStart:me,transitionEnd:ge};function ve(e,t,i,s){var r;void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var n=this,a=e;a<0&&(a=0);var o=n.params,l=n.snapGrid,d=n.slidesGrid,u=n.previousIndex,c=n.activeIndex,h=n.rtlTranslate,p=n.wrapperEl;if(n.animating&&o.preventInteractionOnTransition)return!1;var f=Math.min(n.params.slidesPerGroupSkip,a),m=f+Math.floor((a-f)/n.params.slidesPerGroup);m>=l.length&&(m=l.length-1),(c||o.initialSlide||0)===(u||0)&&i&&n.emit("beforeSlideChangeStart");var g,y=-l[m];if(n.updateProgress(y),o.normalizeSlideIndex)for(var v=0;v<d.length;v+=1)-Math.floor(100*y)>=Math.floor(100*d[v])&&(a=v);if(n.initialized&&a!==c){if(!n.allowSlideNext&&y<n.translate&&y<n.minTranslate())return!1;if(!n.allowSlidePrev&&y>n.translate&&y>n.maxTranslate()&&(c||0)!==a)return!1}if(g=a>c?"next":a<c?"prev":"reset",h&&-y===n.translate||!h&&y===n.translate)return n.updateActiveIndex(a),o.autoHeight&&n.updateAutoHeight(),n.updateSlidesClasses(),"slide"!==o.effect&&n.setTranslate(y),"reset"!==g&&(n.transitionStart(i,g),n.transitionEnd(i,g)),!1;if(o.cssMode){var b=n.isHorizontal(),_=-y;return h&&(_=p.scrollWidth-p.offsetWidth-_),0===t?p[b?"scrollLeft":"scrollTop"]=_:p.scrollTo?p.scrollTo((r={},r[b?"left":"top"]=_,r.behavior="smooth",r)):p[b?"scrollLeft":"scrollTop"]=_,!0}return 0===t?(n.setTransition(0),n.setTranslate(y),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,g),n.transitionEnd(i,g)):(n.setTransition(t),n.setTranslate(y),n.updateActiveIndex(a),n.updateSlidesClasses(),n.emit("beforeTransitionStart",t,s),n.transitionStart(i,g),n.animating||(n.animating=!0,n.onSlideToWrapperTransitionEnd||(n.onSlideToWrapperTransitionEnd=function(e){n&&!n.destroyed&&e.target===this&&(n.$wrapperEl[0].removeEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].removeEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd),n.onSlideToWrapperTransitionEnd=null,delete n.onSlideToWrapperTransitionEnd,n.transitionEnd(i,g))}),n.$wrapperEl[0].addEventListener("transitionend",n.onSlideToWrapperTransitionEnd),n.$wrapperEl[0].addEventListener("webkitTransitionEnd",n.onSlideToWrapperTransitionEnd))),!0}function be(e,t,i,s){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,n=e;return r.params.loop&&(n+=r.loopedSlides),r.slideTo(n,t,i,s)}function _e(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,r=s.params,n=s.animating,a=s.activeIndex<r.slidesPerGroupSkip?1:r.slidesPerGroup;if(r.loop){if(n)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}return s.slideTo(s.activeIndex+a,e,t,i)}function Te(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,r=s.params,n=s.animating,a=s.snapGrid,o=s.slidesGrid,l=s.rtlTranslate;if(r.loop){if(n)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}var d=l?s.translate:-s.translate;function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var c,h=u(d),p=a.map((function(e){return u(e)})),f=(o.map((function(e){return u(e)})),a[p.indexOf(h)],a[p.indexOf(h)-1]);return"undefined"===typeof f&&r.cssMode&&a.forEach((function(e){!f&&h>=e&&(f=e)})),"undefined"!==typeof f&&(c=o.indexOf(f),c<0&&(c=s.activeIndex-1)),s.slideTo(c,e,t,i)}function Se(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this;return s.slideTo(s.activeIndex,e,t,i)}function we(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var r=this,n=r.activeIndex,a=Math.min(r.params.slidesPerGroupSkip,n),o=a+Math.floor((n-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){var d=r.snapGrid[o],u=r.snapGrid[o+1];l-d>(u-d)*s&&(n+=r.params.slidesPerGroup)}else{var c=r.snapGrid[o-1],h=r.snapGrid[o];l-c<=(h-c)*s&&(n-=r.params.slidesPerGroup)}return n=Math.max(n,0),n=Math.min(n,r.slidesGrid.length-1),r.slideTo(n,e,t,i)}function Ee(){var e,t=this,i=t.params,s=t.$wrapperEl,r="auto"===i.slidesPerView?t.slidesPerViewDynamic():i.slidesPerView,n=t.clickedIndex;if(i.loop){if(t.animating)return;e=parseInt(o(t.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?n<t.loopedSlides-r/2||n>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),X.nextTick((function(){t.slideTo(n)}))):t.slideTo(n):n>t.slides.length-r?(t.loopFix(),n=s.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),X.nextTick((function(){t.slideTo(n)}))):t.slideTo(n)}else t.slideTo(n)}var xe={slideTo:ve,slideToLoop:be,slideNext:_e,slidePrev:Te,slideReset:Se,slideToClosest:we,slideToClickedSlide:Ee};function Ce(){var e=this,t=e.params,s=e.$wrapperEl;s.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var r=s.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var n=t.slidesPerGroup-r.length%t.slidesPerGroup;if(n!==t.slidesPerGroup){for(var a=0;a<n;a+=1){var l=o(i.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);s.append(l)}r=s.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);var d=[],u=[];r.each((function(t,i){var s=o(i);t<e.loopedSlides&&u.push(i),t<r.length&&t>=r.length-e.loopedSlides&&d.push(i),s.attr("data-swiper-slide-index",t)}));for(var c=0;c<u.length;c+=1)s.append(o(u[c].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var h=d.length-1;h>=0;h-=1)s.prepend(o(d[h].cloneNode(!0)).addClass(t.slideDuplicateClass))}function ke(){var e=this;e.emit("beforeLoopFix");var t,i=e.activeIndex,s=e.slides,r=e.loopedSlides,n=e.allowSlidePrev,a=e.allowSlideNext,o=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var d=-o[i],u=d-e.getTranslate();if(i<r){t=s.length-3*r+i,t+=r;var c=e.slideTo(t,0,!1,!0);c&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)}else if(i>=s.length-r){t=-s.length+i+r,t+=r;var h=e.slideTo(t,0,!1,!0);h&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)}e.allowSlidePrev=n,e.allowSlideNext=a,e.emit("loopFix")}function Ie(){var e=this,t=e.$wrapperEl,i=e.params,s=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),s.removeAttr("data-swiper-slide-index")}var Pe={loopCreate:Ce,loopFix:ke,loopDestroy:Ie};function Oe(e){var t=this;if(!(Y.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)){var i=t.el;i.style.cursor="move",i.style.cursor=e?"-webkit-grabbing":"-webkit-grab",i.style.cursor=e?"-moz-grabbin":"-moz-grab",i.style.cursor=e?"grabbing":"grab"}}function Le(){var e=this;Y.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.el.style.cursor="")}var Ae={setGrabCursor:Oe,unsetGrabCursor:Le};function De(e){var t=this,i=t.$wrapperEl,s=t.params;if(s.loop&&t.loopDestroy(),"object"===typeof e&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);s.loop&&t.loopCreate(),s.observer&&Y.observer||t.update()}function Me(e){var t=this,i=t.params,s=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var n=r+1;if("object"===typeof e&&"length"in e){for(var a=0;a<e.length;a+=1)e[a]&&s.prepend(e[a]);n=r+e.length}else s.prepend(e);i.loop&&t.loopCreate(),i.observer&&Y.observer||t.update(),t.slideTo(n,0,!1)}function Ne(e,t){var i=this,s=i.$wrapperEl,r=i.params,n=i.activeIndex,a=n;r.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.slides=s.children("."+r.slideClass));var o=i.slides.length;if(e<=0)i.prependSlide(t);else if(e>=o)i.appendSlide(t);else{for(var l=a>e?a+1:a,d=[],u=o-1;u>=e;u-=1){var c=i.slides.eq(u);c.remove(),d.unshift(c)}if("object"===typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&s.append(t[h]);l=a>e?a+t.length:a}else s.append(t);for(var p=0;p<d.length;p+=1)s.append(d[p]);r.loop&&i.loopCreate(),r.observer&&Y.observer||i.update(),r.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}}function Re(e){var t=this,i=t.params,s=t.$wrapperEl,r=t.activeIndex,n=r;i.loop&&(n-=t.loopedSlides,t.loopDestroy(),t.slides=s.children("."+i.slideClass));var a,o=n;if("object"===typeof e&&"length"in e){for(var l=0;l<e.length;l+=1)a=e[l],t.slides[a]&&t.slides.eq(a).remove(),a<o&&(o-=1);o=Math.max(o,0)}else a=e,t.slides[a]&&t.slides.eq(a).remove(),a<o&&(o-=1),o=Math.max(o,0);i.loop&&t.loopCreate(),i.observer&&Y.observer||t.update(),i.loop?t.slideTo(o+t.loopedSlides,0,!1):t.slideTo(o,0,!1)}function Ue(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}var Be={appendSlide:De,prependSlide:Me,addSlide:Ne,removeSlide:Re,removeAllSlides:Ue},je=function(){var e=r.navigator.platform,t=r.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!r.cordova&&!r.phonegap),phonegap:!(!r.cordova&&!r.phonegap),electron:!1},s=r.screen.width,n=r.screen.height,a=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),l=t.match(/(iPod)(.*OS\s([\d_]+))?/),d=!o&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),u=t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0,c=t.indexOf("Edge/")>=0,h=t.indexOf("Gecko/")>=0&&t.indexOf("Firefox/")>=0,p="Win32"===e,f=t.toLowerCase().indexOf("electron")>=0,m="MacIntel"===e;return!o&&m&&Y.touch&&(1024===s&&1366===n||834===s&&1194===n||834===s&&1112===n||768===s&&1024===n)&&(o=t.match(/(Version)\/([\d.]+)/),m=!1),i.ie=u,i.edge=c,i.firefox=h,a&&!p&&(i.os="android",i.osVersion=a[2],i.android=!0,i.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(o||d||l)&&(i.os="ios",i.ios=!0),d&&!l&&(i.osVersion=d[2].replace(/_/g,"."),i.iphone=!0),o&&(i.osVersion=o[2].replace(/_/g,"."),i.ipad=!0),l&&(i.osVersion=l[3]?l[3].replace(/_/g,"."):null,i.ipod=!0),i.ios&&i.osVersion&&t.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),i.webView=!(!(d||o||l)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!r.navigator.standalone)||r.matchMedia&&r.matchMedia("(display-mode: standalone)").matches,i.webview=i.webView,i.standalone=i.webView,i.desktop=!(i.ios||i.android)||f,i.desktop&&(i.electron=f,i.macos=m,i.windows=p,i.macos&&(i.os="macos"),i.windows&&(i.os="windows")),i.pixelRatio=r.devicePixelRatio||1,i}();function Fe(e){var t=this,s=t.touchEventsData,n=t.params,a=t.touches;if(!t.animating||!n.preventInteractionOnTransition){var l=e;l.originalEvent&&(l=l.originalEvent);var d=o(l.target);if(("wrapper"!==n.touchEventsTarget||d.closest(t.wrapperEl).length)&&(s.isTouchEvent="touchstart"===l.type,(s.isTouchEvent||!("which"in l)||3!==l.which)&&!(!s.isTouchEvent&&"button"in l&&l.button>0)&&(!s.isTouched||!s.isMoved)))if(n.noSwiping&&d.closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])t.allowClick=!0;else if(!n.swipeHandler||d.closest(n.swipeHandler)[0]){a.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,a.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var u=a.currentX,c=a.currentY,h=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,p=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!h||!(u<=p||u>=r.screen.width-p)){if(X.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=u,a.startY=c,s.touchStartTime=X.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(s.allowThresholdMove=!1),"touchstart"!==l.type){var f=!0;d.is(s.formElements)&&(f=!1),i.activeElement&&o(i.activeElement).is(s.formElements)&&i.activeElement!==d[0]&&i.activeElement.blur();var m=f&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||m)&&l.preventDefault()}t.emit("touchStart",l)}}}}function qe(e){var t=this,s=t.touchEventsData,r=t.params,n=t.touches,a=t.rtlTranslate,l=e;if(l.originalEvent&&(l=l.originalEvent),s.isTouched){if(!s.isTouchEvent||"touchmove"===l.type){var d="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),u="touchmove"===l.type?d.pageX:l.pageX,c="touchmove"===l.type?d.pageY:l.pageY;if(l.preventedByNestedSwiper)return n.startX=u,void(n.startY=c);if(!t.allowTouchMove)return t.allowClick=!1,void(s.isTouched&&(X.extend(n,{startX:u,startY:c,currentX:u,currentY:c}),s.touchStartTime=X.now()));if(s.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(c<n.startY&&t.translate<=t.maxTranslate()||c>n.startY&&t.translate>=t.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else if(u<n.startX&&t.translate<=t.maxTranslate()||u>n.startX&&t.translate>=t.minTranslate())return;if(s.isTouchEvent&&i.activeElement&&l.target===i.activeElement&&o(l.target).is(s.formElements))return s.isMoved=!0,void(t.allowClick=!1);if(s.allowTouchCallbacks&&t.emit("touchMove",l),!(l.targetTouches&&l.targetTouches.length>1)){n.currentX=u,n.currentY=c;var h=n.currentX-n.startX,p=n.currentY-n.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(h,2)+Math.pow(p,2))<t.params.threshold)){var f;if("undefined"===typeof s.isScrolling)t.isHorizontal()&&n.currentY===n.startY||t.isVertical()&&n.currentX===n.startX?s.isScrolling=!1:h*h+p*p>=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(h))/Math.PI,s.isScrolling=t.isHorizontal()?f>r.touchAngle:90-f>r.touchAngle);if(s.isScrolling&&t.emit("touchMoveOpposite",l),"undefined"===typeof s.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(s.startMoving=!0)),s.isScrolling)s.isTouched=!1;else if(s.startMoving){t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),s.isMoved||(r.loop&&t.loopFix(),s.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),s.allowMomentumBounce=!1,!r.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),s.isMoved=!0;var m=t.isHorizontal()?h:p;n.diff=m,m*=r.touchRatio,a&&(m=-m),t.swipeDirection=m>0?"prev":"next",s.currentTranslate=m+s.startTranslate;var g=!0,y=r.resistanceRatio;if(r.touchReleaseOnEdges&&(y=0),m>0&&s.currentTranslate>t.minTranslate()?(g=!1,r.resistance&&(s.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+s.startTranslate+m,y))):m<0&&s.currentTranslate<t.maxTranslate()&&(g=!1,r.resistance&&(s.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-s.startTranslate-m,y))),g&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),r.threshold>0){if(!(Math.abs(m)>r.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,s.currentTranslate=s.startTranslate,void(n.diff=t.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&(0===s.velocities.length&&s.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:s.touchStartTime}),s.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:X.now()})),t.updateProgress(s.currentTranslate),t.setTranslate(s.currentTranslate))}}}}}else s.startMoving&&s.isScrolling&&t.emit("touchMoveOpposite",l)}function $e(e){var t=this,i=t.touchEventsData,s=t.params,r=t.touches,n=t.rtlTranslate,a=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,d=e;if(d.originalEvent&&(d=d.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",d),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&s.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);s.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var u,c=X.now(),h=c-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(d),t.emit("tap click",d),h<300&&c-i.lastClickTime<300&&t.emit("doubleTap doubleClick",d)),i.lastClickTime=X.now(),X.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=s.followFinger?n?t.translate:-t.translate:-i.currentTranslate,!s.cssMode)if(s.freeMode){if(u<-t.minTranslate())return void t.slideTo(t.activeIndex);if(u>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(s.freeModeMomentum){if(i.velocities.length>1){var p=i.velocities.pop(),f=i.velocities.pop(),m=p.position-f.position,g=p.time-f.time;t.velocity=m/g,t.velocity/=2,Math.abs(t.velocity)<s.freeModeMinimumVelocity&&(t.velocity=0),(g>150||X.now()-p.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeModeMomentumVelocityRatio,i.velocities.length=0;var y=1e3*s.freeModeMomentumRatio,v=t.velocity*y,b=t.translate+v;n&&(b=-b);var _,T,S=!1,w=20*Math.abs(t.velocity)*s.freeModeMomentumBounceRatio;if(b<t.maxTranslate())s.freeModeMomentumBounce?(b+t.maxTranslate()<-w&&(b=t.maxTranslate()-w),_=t.maxTranslate(),S=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(b>t.minTranslate())s.freeModeMomentumBounce?(b-t.minTranslate()>w&&(b=t.minTranslate()+w),_=t.minTranslate(),S=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),s.loop&&s.centeredSlides&&(T=!0);else if(s.freeModeSticky){for(var E,x=0;x<l.length;x+=1)if(l[x]>-b){E=x;break}b=Math.abs(l[E]-b)<Math.abs(l[E-1]-b)||"next"===t.swipeDirection?l[E]:l[E-1],b=-b}if(T&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity){if(y=n?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity),s.freeModeSticky){var C=Math.abs((n?-b:b)-t.translate),k=t.slidesSizesGrid[t.activeIndex];y=C<k?s.speed:C<2*k?1.5*s.speed:2.5*s.speed}}else if(s.freeModeSticky)return void t.slideToClosest();s.freeModeMomentumBounce&&S?(t.updateProgress(_),t.setTransition(y),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(s.speed),setTimeout((function(){t.setTranslate(_),a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(t.updateProgress(b),t.setTransition(y),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(s.freeModeSticky)return void t.slideToClosest();(!s.freeModeMomentum||h>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var I=0,P=t.slidesSizesGrid[0],O=0;O<o.length;O+=O<s.slidesPerGroupSkip?1:s.slidesPerGroup){var L=O<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;"undefined"!==typeof o[O+L]?u>=o[O]&&u<o[O+L]&&(I=O,P=o[O+L]-o[O]):u>=o[O]&&(I=O,P=o[o.length-1]-o[o.length-2])}var A=(u-o[I])/P,D=I<s.slidesPerGroupSkip-1?1:s.slidesPerGroup;if(h>s.longSwipesMs){if(!s.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(A>=s.longSwipesRatio?t.slideTo(I+D):t.slideTo(I)),"prev"===t.swipeDirection&&(A>1-s.longSwipesRatio?t.slideTo(I+D):t.slideTo(I))}else{if(!s.shortSwipes)return void t.slideTo(t.activeIndex);var M=t.navigation&&(d.target===t.navigation.nextEl||d.target===t.navigation.prevEl);M?d.target===t.navigation.nextEl?t.slideTo(I+D):t.slideTo(I):("next"===t.swipeDirection&&t.slideTo(I+D),"prev"===t.swipeDirection&&t.slideTo(I))}}}function He(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var s=e.allowSlideNext,r=e.allowSlidePrev,n=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=s,e.params.watchOverflow&&n!==e.snapGrid&&e.checkOverflow()}}function ze(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Ve(){var e,t=this,i=t.wrapperEl,s=t.rtlTranslate;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=s?i.scrollWidth-i.offsetWidth-i.scrollLeft:-i.scrollLeft:t.translate=-i.scrollTop,-0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();var r=t.maxTranslate()-t.minTranslate();e=0===r?0:(t.translate-t.minTranslate())/r,e!==t.progress&&t.updateProgress(s?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}var Ge=!1;function We(){}function Xe(){var e=this,t=e.params,s=e.touchEvents,r=e.el,n=e.wrapperEl;e.onTouchStart=Fe.bind(e),e.onTouchMove=qe.bind(e),e.onTouchEnd=$e.bind(e),t.cssMode&&(e.onScroll=Ve.bind(e)),e.onClick=ze.bind(e);var a=!!t.nested;if(!Y.touch&&Y.pointerEvents)r.addEventListener(s.start,e.onTouchStart,!1),i.addEventListener(s.move,e.onTouchMove,a),i.addEventListener(s.end,e.onTouchEnd,!1);else{if(Y.touch){var o=!("touchstart"!==s.start||!Y.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(s.start,e.onTouchStart,o),r.addEventListener(s.move,e.onTouchMove,Y.passiveListener?{passive:!1,capture:a}:a),r.addEventListener(s.end,e.onTouchEnd,o),s.cancel&&r.addEventListener(s.cancel,e.onTouchEnd,o),Ge||(i.addEventListener("touchstart",We),Ge=!0)}(t.simulateTouch&&!je.ios&&!je.android||t.simulateTouch&&!Y.touch&&je.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),i.addEventListener("mousemove",e.onTouchMove,a),i.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0),t.cssMode&&n.addEventListener("scroll",e.onScroll),t.updateOnWindowResize?e.on(je.ios||je.android?"resize orientationchange observerUpdate":"resize observerUpdate",He,!0):e.on("observerUpdate",He,!0)}function Ye(){var e=this,t=e.params,s=e.touchEvents,r=e.el,n=e.wrapperEl,a=!!t.nested;if(!Y.touch&&Y.pointerEvents)r.removeEventListener(s.start,e.onTouchStart,!1),i.removeEventListener(s.move,e.onTouchMove,a),i.removeEventListener(s.end,e.onTouchEnd,!1);else{if(Y.touch){var o=!("onTouchStart"!==s.start||!Y.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(s.start,e.onTouchStart,o),r.removeEventListener(s.move,e.onTouchMove,a),r.removeEventListener(s.end,e.onTouchEnd,o),s.cancel&&r.removeEventListener(s.cancel,e.onTouchEnd,o)}(t.simulateTouch&&!je.ios&&!je.android||t.simulateTouch&&!Y.touch&&je.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),i.removeEventListener("mousemove",e.onTouchMove,a),i.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0),t.cssMode&&n.removeEventListener("scroll",e.onScroll),e.off(je.ios||je.android?"resize orientationchange observerUpdate":"resize observerUpdate",He)}var Je={attachEvents:Xe,detachEvents:Ye};function Ke(){var e=this,t=e.activeIndex,i=e.initialized,s=e.loopedSlides;void 0===s&&(s=0);var r=e.params,n=e.$el,a=r.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var o=e.getBreakpoint(a);if(o&&e.currentBreakpoint!==o){var l=o in a?a[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=l[e];"undefined"!==typeof t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var d=l||e.originalParams,u=r.slidesPerColumn>1,c=d.slidesPerColumn>1;u&&!c?n.removeClass(r.containerModifierClass+"multirow "+r.containerModifierClass+"multirow-column"):!u&&c&&(n.addClass(r.containerModifierClass+"multirow"),"column"===d.slidesPerColumnFill&&n.addClass(r.containerModifierClass+"multirow-column"));var h=d.direction&&d.direction!==r.direction,p=r.loop&&(d.slidesPerView!==r.slidesPerView||h);h&&i&&e.changeDirection(),X.extend(e.params,d),X.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,p&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-s+e.loopedSlides,0,!1)),e.emit("breakpoint",d)}}}function Qe(e){if(e){var t=!1,i=Object.keys(e).map((function(e){if("string"===typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1)),i=r.innerHeight*t;return{value:i,point:e}}return{value:e,point:e}}));i.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var s=0;s<i.length;s+=1){var n=i[s],a=n.point,o=n.value;o<=r.innerWidth&&(t=a)}return t||"max"}}var Ze={setBreakpoint:Ke,getBreakpoint:Qe};function et(){var e=this,t=e.classNames,i=e.params,s=e.rtl,r=e.$el,n=[];n.push("initialized"),n.push(i.direction),i.freeMode&&n.push("free-mode"),i.autoHeight&&n.push("autoheight"),s&&n.push("rtl"),i.slidesPerColumn>1&&(n.push("multirow"),"column"===i.slidesPerColumnFill&&n.push("multirow-column")),je.android&&n.push("android"),je.ios&&n.push("ios"),i.cssMode&&n.push("css-mode"),n.forEach((function(e){t.push(i.containerModifierClass+e)})),r.addClass(t.join(" "))}function tt(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}var it={addClasses:et,removeClasses:tt};function st(e,t,i,s,n,a){var l;function d(){a&&a()}var u=o(e).parent("picture")[0];u||e.complete&&n?d():t?(l=new r.Image,l.onload=d,l.onerror=d,s&&(l.sizes=s),i&&(l.srcset=i),t&&(l.src=t)):d()}function rt(){var e=this;function t(){"undefined"!==typeof e&&null!==e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var s=e.imagesToLoad[i];e.loadImage(s,s.currentSrc||s.getAttribute("src"),s.srcset||s.getAttribute("srcset"),s.sizes||s.getAttribute("sizes"),!0,t)}}var nt={loadImage:st,preloadImages:rt};function at(){var e=this,t=e.params,i=e.isLocked,s=e.slides.length>0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&s?e.isLocked=s<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,i!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),i&&i!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}var ot={checkOverflow:at},lt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},dt={update:oe,translate:pe,transition:ye,slide:xe,loop:Pe,grabCursor:Ae,manipulation:Be,events:Je,breakpoints:Ze,checkOverflow:ot,classes:it,images:nt},ut={},ct=function(e){function t(){var i,s,r,n=[],a=arguments.length;while(a--)n[a]=arguments[a];1===n.length&&n[0].constructor&&n[0].constructor===Object?r=n[0]:(i=n,s=i[0],r=i[1]),r||(r={}),r=X.extend({},r),s&&!r.el&&(r.el=s),e.call(this,r),Object.keys(dt).forEach((function(e){Object.keys(dt[e]).forEach((function(i){t.prototype[i]||(t.prototype[i]=dt[e][i])}))}));var l=this;"undefined"===typeof l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var i=Object.keys(t.params)[0],s=t.params[i];if("object"!==typeof s||null===s)return;if(!(i in r)||!("enabled"in s))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!==typeof r[i]||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}}));var d=X.extend({},lt);l.useModulesParams(d),l.params=X.extend({},d,ut,r),l.originalParams=X.extend({},l.params),l.passedParams=X.extend({},r),l.$=o;var u=o(l.params.el);if(s=u[0],s){if(u.length>1){var c=[];return u.each((function(e,i){var s=X.extend({},r,{el:i});c.push(new t(s))})),c}var h;return s.swiper=l,u.data("swiper",l),s&&s.shadowRoot&&s.shadowRoot.querySelector?(h=o(s.shadowRoot.querySelector("."+l.params.wrapperClass)),h.children=function(e){return u.children(e)}):h=u.children("."+l.params.wrapperClass),X.extend(l,{$el:u,el:s,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:o(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===s.dir.toLowerCase()||"rtl"===u.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===u.css("direction")),wrongRTL:"-webkit-box"===h.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend","touchcancel"],t=["mousedown","mousemove","mouseup"];return Y.pointerEvents&&(t=["pointerdown","pointermove","pointerup"]),l.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},Y.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:X.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,s=e.slidesGrid,r=e.size,n=e.activeIndex,a=1;if(t.centeredSlides){for(var o,l=i[n].swiperSlideSize,d=n+1;d<i.length;d+=1)i[d]&&!o&&(l+=i[d].swiperSlideSize,a+=1,l>r&&(o=!0));for(var u=n-1;u>=0;u-=1)i[u]&&!o&&(l+=i[u].swiperSlideSize,a+=1,l>r&&(o=!0))}else for(var c=n+1;c<i.length;c+=1)s[c]-s[n]<r&&(a+=1);return a},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t,i=e.snapGrid,s=e.params;s.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(t=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),t||r()),s.watchOverflow&&i!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(""+i.params.containerModifierClass+s).addClass(""+i.params.containerModifierClass+e),i.params.direction=e,i.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""})),i.emit("changeDirection"),t&&i.update()),i},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,s=i.params,r=i.$el,n=i.$wrapperEl,a=i.slides;return"undefined"===typeof i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),n.removeAttr("style"),a&&a.length&&a.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),X.deleteProps(i)),i.destroyed=!0),null},t.extendDefaults=function(e){X.extend(ut,e)},i.extendedDefaults.get=function(){return ut},i.defaults.get=function(){return lt},i.Class.get=function(){return e},i.$.get=function(){return o},Object.defineProperties(t,i),t}(J),ht={name:"device",proto:{device:je},static:{device:je}},pt={name:"support",proto:{support:Y},static:{support:Y}},ft=function(){function e(){var e=r.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isEdge:!!r.navigator.userAgent.match(/Edge/g),isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(r.navigator.userAgent)}}(),mt={name:"browser",proto:{browser:ft},static:{browser:ft}},gt={name:"resize",create:function(){var e=this;X.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;r.addEventListener("resize",e.resize.resizeHandler),r.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;r.removeEventListener("resize",e.resize.resizeHandler),r.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},yt={func:r.MutationObserver||r.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,s=yt.func,n=new s((function(e){if(1!==e.length){var t=function(){i.emit("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}else i.emit("observerUpdate",e[0])}));n.observe(e,{attributes:"undefined"===typeof t.attributes||t.attributes,childList:"undefined"===typeof t.childList||t.childList,characterData:"undefined"===typeof t.characterData||t.characterData}),i.observer.observers.push(n)},init:function(){var e=this;if(Y.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach((function(e){e.disconnect()})),e.observer.observers=[]}},vt={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;X.extend(e,{observer:{init:yt.init.bind(e),attach:yt.attach.bind(e),destroy:yt.destroy.bind(e),observers:[]}})},on:{init:function(){var e=this;e.observer.init()},destroy:function(){var e=this;e.observer.destroy()}}},bt={update:function(e){var t=this,i=t.params,s=i.slidesPerView,r=i.slidesPerGroup,n=i.centeredSlides,a=t.params.virtual,o=a.addSlidesBefore,l=a.addSlidesAfter,d=t.virtual,u=d.from,c=d.to,h=d.slides,p=d.slidesGrid,f=d.renderSlide,m=d.offset;t.updateActiveIndex();var g,y,v,b=t.activeIndex||0;g=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",n?(y=Math.floor(s/2)+r+o,v=Math.floor(s/2)+r+l):(y=s+(r-1)+o,v=r+l);var _=Math.max((b||0)-v,0),T=Math.min((b||0)+y,h.length-1),S=(t.slidesGrid[_]||0)-(t.slidesGrid[0]||0);function w(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(X.extend(t.virtual,{from:_,to:T,offset:S,slidesGrid:t.slidesGrid}),u===_&&c===T&&!e)return t.slidesGrid!==p&&S!==m&&t.slides.css(g,S+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:S,from:_,to:T,slides:function(){for(var e=[],t=_;t<=T;t+=1)e.push(h[t]);return e}()}),void w();var E=[],x=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var C=u;C<=c;C+=1)(C<_||C>T)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var k=0;k<h.length;k+=1)k>=_&&k<=T&&("undefined"===typeof c||e?x.push(k):(k>c&&x.push(k),k<u&&E.push(k)));x.forEach((function(e){t.$wrapperEl.append(f(h[e],e))})),E.sort((function(e,t){return t-e})).forEach((function(e){t.$wrapperEl.prepend(f(h[e],e))})),t.$wrapperEl.children(".swiper-slide").css(g,S+"px"),w()},renderSlide:function(e,t){var i=this,s=i.params.virtual;if(s.cache&&i.virtual.cache[t])return i.virtual.cache[t];var r=s.renderSlide?o(s.renderSlide.call(i,e,t)):o('<div class="'+i.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),s.cache&&(i.virtual.cache[t]=r),r},appendSlide:function(e){var t=this;if("object"===typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,i=t.activeIndex,s=i+1,r=1;if(Array.isArray(e)){for(var n=0;n<e.length;n+=1)e[n]&&t.virtual.slides.unshift(e[n]);s=i+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var a=t.virtual.cache,o={};Object.keys(a).forEach((function(e){var t=a[e],i=t.attr("data-swiper-slide-index");i&&t.attr("data-swiper-slide-index",parseInt(i,10)+1),o[parseInt(e,10)+r]=t})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(s,0)},removeSlide:function(e){var t=this;if("undefined"!==typeof e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var s=e.length-1;s>=0;s-=1)t.virtual.slides.splice(e[s],1),t.params.virtual.cache&&delete t.virtual.cache[e[s]],e[s]<i&&(i-=1),i=Math.max(i,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<i&&(i-=1),i=Math.max(i,0);t.virtual.update(!0),t.slideTo(i,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},_t={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;X.extend(e,{virtual:{update:bt.update.bind(e),appendSlide:bt.appendSlide.bind(e),prependSlide:bt.prependSlide.bind(e),removeSlide:bt.removeSlide.bind(e),removeAllSlides:bt.removeAllSlides.bind(e),renderSlide:bt.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};X.extend(e.params,t),X.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},Tt={handle:function(e){var t=this,s=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var a=n.keyCode||n.charCode,o=t.params.keyboard.pageUpDown,l=o&&33===a,d=o&&34===a,u=37===a,c=39===a,h=38===a,p=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&c||t.isVertical()&&p||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&h||l))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey)&&(!i.activeElement||!i.activeElement.nodeName||"input"!==i.activeElement.nodeName.toLowerCase()&&"textarea"!==i.activeElement.nodeName.toLowerCase())){if(t.params.keyboard.onlyInViewport&&(l||d||u||c||h||p)){var f=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var m=r.innerWidth,g=r.innerHeight,y=t.$el.offset();s&&(y.left-=t.$el[0].scrollLeft);for(var v=[[y.left,y.top],[y.left+t.width,y.top],[y.left,y.top+t.height],[y.left+t.width,y.top+t.height]],b=0;b<v.length;b+=1){var _=v[b];_[0]>=0&&_[0]<=m&&_[1]>=0&&_[1]<=g&&(f=!0)}if(!f)return}t.isHorizontal()?((l||d||u||c)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((d||c)&&!s||(l||u)&&s)&&t.slideNext(),((l||u)&&!s||(d||c)&&s)&&t.slidePrev()):((l||d||h||p)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(d||p)&&t.slideNext(),(l||h)&&t.slidePrev()),t.emit("keyPress",a)}},enable:function(){var e=this;e.keyboard.enabled||(o(i).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(o(i).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},St={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create:function(){var e=this;X.extend(e,{keyboard:{enabled:!1,enable:Tt.enable.bind(e),disable:Tt.disable.bind(e),handle:Tt.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function wt(){var e="onwheel",t=e in i;if(!t){var s=i.createElement("div");s.setAttribute(e,"return;"),t="function"===typeof s[e]}return!t&&i.implementation&&i.implementation.hasFeature&&!0!==i.implementation.hasFeature("","")&&(t=i.implementation.hasFeature("Events.wheel","3.0")),t}var Et={lastScrollTime:X.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:function(){return r.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":wt()?"wheel":"mousewheel"},normalize:function(e){var t=10,i=40,s=800,r=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(r=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(r=n,n=0),a=r*t,o=n*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),e.shiftKey&&!a&&(a=o,o=0),(a||o)&&e.deltaMode&&(1===e.deltaMode?(a*=i,o*=i):(a*=s,o*=s)),a&&!r&&(r=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:r,spinY:n,pixelX:a,pixelY:o}},handleMouseEnter:function(){var e=this;e.mouseEntered=!0},handleMouseLeave:function(){var e=this;e.mouseEntered=!1},handle:function(e){var t=e,i=this,s=i.params.mousewheel;i.params.cssMode&&t.preventDefault();var r=i.$el;if("container"!==i.params.mousewheel.eventsTarged&&(r=o(i.params.mousewheel.eventsTarged)),!i.mouseEntered&&!r[0].contains(t.target)&&!s.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var n=0,a=i.rtlTranslate?-1:1,l=Et.normalize(t);if(s.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(l.pixelX)>Math.abs(l.pixelY)))return!0;n=-l.pixelX*a}else{if(!(Math.abs(l.pixelY)>Math.abs(l.pixelX)))return!0;n=-l.pixelY}else n=Math.abs(l.pixelX)>Math.abs(l.pixelY)?-l.pixelX*a:-l.pixelY;if(0===n)return!0;if(s.invert&&(n=-n),i.params.freeMode){var d={time:X.now(),delta:Math.abs(n),direction:Math.sign(n)},u=i.mousewheel,c=u.lastEventBeforeSnap,h=c&&d.time<c.time+500&&d.delta<=c.delta&&d.direction===c.direction;if(!h){i.mousewheel.lastEventBeforeSnap=void 0,i.params.loop&&i.loopFix();var p=i.getTranslate()+n*s.sensitivity,f=i.isBeginning,m=i.isEnd;if(p>=i.minTranslate()&&(p=i.minTranslate()),p<=i.maxTranslate()&&(p=i.maxTranslate()),i.setTransition(0),i.setTranslate(p),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!f&&i.isBeginning||!m&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky){clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var g=i.mousewheel.recentWheelEvents;g.length>=15&&g.shift();var y=g.length?g[g.length-1]:void 0,v=g[0];if(g.push(d),y&&(d.delta>y.delta||d.direction!==y.direction))g.splice(0);else if(g.length>=15&&d.time-v.time<500&&v.delta-d.delta>=1&&d.delta<=6){var b=n>0?.8:.2;i.mousewheel.lastEventBeforeSnap=d,g.splice(0),i.mousewheel.timeout=X.nextTick((function(){i.slideToClosest(i.params.speed,!0,void 0,b)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=X.nextTick((function(){var e=.5;i.mousewheel.lastEventBeforeSnap=d,g.splice(0),i.slideToClosest(i.params.speed,!0,void 0,e)}),500))}if(h||i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),p===i.minTranslate()||p===i.maxTranslate())return!0}}else{var _={time:X.now(),delta:Math.abs(n),direction:Math.sign(n),raw:e},T=i.mousewheel.recentWheelEvents;T.length>=2&&T.shift();var S=T.length?T[T.length-1]:void 0;if(T.push(_),S?(_.direction!==S.direction||_.delta>S.delta||_.time>S.time+150)&&i.mousewheel.animateSlider(_):i.mousewheel.animateSlider(_),i.mousewheel.releaseScroll(_))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider:function(e){var t=this;return e.delta>=6&&X.now()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new r.Date).getTime(),!1)},releaseScroll:function(e){var t=this,i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1},enable:function(){var e=this,t=Et.event();if(e.params.cssMode)return e.wrapperEl.removeEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;var i=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(i=o(e.params.mousewheel.eventsTarged)),i.on("mouseenter",e.mousewheel.handleMouseEnter),i.on("mouseleave",e.mousewheel.handleMouseLeave),i.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this,t=Et.event();if(e.params.cssMode)return e.wrapperEl.addEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;var i=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(i=o(e.params.mousewheel.eventsTarged)),i.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},xt={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;X.extend(e,{mousewheel:{enabled:!1,enable:Et.enable.bind(e),disable:Et.disable.bind(e),handle:Et.handle.bind(e),handleMouseEnter:Et.handleMouseEnter.bind(e),handleMouseLeave:Et.handleMouseLeave.bind(e),animateSlider:Et.animateSlider.bind(e),releaseScroll:Et.releaseScroll.bind(e),lastScrollTime:X.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init:function(){var e=this;!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}},Ct={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,s=i.$nextEl,r=i.$prevEl;r&&r.length>0&&(e.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),s&&s.length>0&&(e.isEnd?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,i=this,s=i.params.navigation;(s.nextEl||s.prevEl)&&(s.nextEl&&(e=o(s.nextEl),i.params.uniqueNavElements&&"string"===typeof s.nextEl&&e.length>1&&1===i.$el.find(s.nextEl).length&&(e=i.$el.find(s.nextEl))),s.prevEl&&(t=o(s.prevEl),i.params.uniqueNavElements&&"string"===typeof s.prevEl&&t.length>1&&1===i.$el.find(s.prevEl).length&&(t=i.$el.find(s.prevEl))),e&&e.length>0&&e.on("click",i.navigation.onNextClick),t&&t.length>0&&t.on("click",i.navigation.onPrevClick),X.extend(i.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,s=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),s&&s.length&&(s.off("click",e.navigation.onPrevClick),s.removeClass(e.params.navigation.disabledClass))}},kt={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;X.extend(e,{navigation:{init:Ct.init.bind(e),update:Ct.update.bind(e),destroy:Ct.destroy.bind(e),onNextClick:Ct.onNextClick.bind(e),onPrevClick:Ct.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){var e=this;e.navigation.update()},fromEdge:function(){var e=this;e.navigation.update()},destroy:function(){var e=this;e.navigation.destroy()},click:function(e){var t,i=this,s=i.navigation,r=s.$nextEl,n=s.$prevEl;!i.params.navigation.hideOnClick||o(e.target).is(n)||o(e.target).is(r)||(r?t=r.hasClass(i.params.navigation.hiddenClass):n&&(t=n.hasClass(i.params.navigation.hiddenClass)),!0===t?i.emit("navigationShow",i):i.emit("navigationHide",i),r&&r.toggleClass(i.params.navigation.hiddenClass),n&&n.toggleClass(i.params.navigation.hiddenClass))}}},It={update:function(){var e=this,t=e.rtl,i=e.params.pagination;if(i.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var s,r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,a=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(s=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),s>r-1-2*e.loopedSlides&&(s-=r-2*e.loopedSlides),s>a-1&&(s-=a),s<0&&"bullets"!==e.params.paginationType&&(s=a+s)):s="undefined"!==typeof e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var l,d,u,c=e.pagination.bullets;if(i.dynamicBullets&&(e.pagination.bulletSize=c.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=s-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=s-e.pagination.dynamicBulletIndex,d=l+(Math.min(c.length,i.dynamicMainBullets)-1),u=(d+l)/2),c.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),n.length>1)c.each((function(e,t){var r=o(t),n=r.index();n===s&&r.addClass(i.bulletActiveClass),i.dynamicBullets&&(n>=l&&n<=d&&r.addClass(i.bulletActiveClass+"-main"),n===l&&r.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),n===d&&r.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))}));else{var h=c.eq(s),p=h.index();if(h.addClass(i.bulletActiveClass),i.dynamicBullets){for(var f=c.eq(l),m=c.eq(d),g=l;g<=d;g+=1)c.eq(g).addClass(i.bulletActiveClass+"-main");if(e.params.loop)if(p>=c.length-i.dynamicMainBullets){for(var y=i.dynamicMainBullets;y>=0;y-=1)c.eq(c.length-y).addClass(i.bulletActiveClass+"-main");c.eq(c.length-i.dynamicMainBullets-1).addClass(i.bulletActiveClass+"-prev")}else f.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),m.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next");else f.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),m.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}if(i.dynamicBullets){var v=Math.min(c.length,i.dynamicMainBullets+4),b=(e.pagination.bulletSize*v-e.pagination.bulletSize)/2-u*e.pagination.bulletSize,_=t?"right":"left";c.css(e.isHorizontal()?_:"top",b+"px")}}if("fraction"===i.type&&(n.find("."+i.currentClass).text(i.formatFractionCurrent(s+1)),n.find("."+i.totalClass).text(i.formatFractionTotal(a))),"progressbar"===i.type){var T;T=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var S=(s+1)/a,w=1,E=1;"horizontal"===T?w=S:E=S,n.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+E+")").transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(n.html(i.renderCustom(e,s+1,a)),e.emit("paginationRender",e,n[0])):e.emit("paginationUpdate",e,n[0]),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](i.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,s=e.pagination.$el,r="";if("bullets"===t.type){for(var n=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,a=0;a<n;a+=1)t.renderBullet?r+=t.renderBullet.call(e,a,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";s.html(r),e.pagination.bullets=s.find("."+t.bulletClass)}"fraction"===t.type&&(r=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',s.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',s.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=o(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"===typeof t.el&&i.length>1&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addClass(t.clickableClass),i.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(i.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.addClass(t.progressbarOppositeClass),t.clickable&&i.on("click","."+t.bulletClass,(function(t){t.preventDefault();var i=o(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)})),X.extend(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass)}}},Pt={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;X.extend(e,{pagination:{init:It.init.bind(e),render:It.render.bind(e),update:It.update.bind(e),destroy:It.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;(e.params.loop||"undefined"===typeof e.snapIndex)&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){var e=this;e.pagination.destroy()},click:function(e){var t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!o(e.target).hasClass(t.params.pagination.bulletClass)){var i=t.pagination.$el.hasClass(t.params.pagination.hiddenClass);!0===i?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},Ot={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,s=e.progress,r=t.dragSize,n=t.trackSize,a=t.$dragEl,o=t.$el,l=e.params.scrollbar,d=r,u=(n-r)*s;i?(u=-u,u>0?(d=r-u,u=0):-u+r>n&&(d=n+u)):u<0?(d=r+u,u=0):u+r>n&&(d=n-u),e.isHorizontal()?(a.transform("translate3d("+u+"px, 0, 0)"),a[0].style.width=d+"px"):(a.transform("translate3d(0px, "+u+"px, 0)"),a[0].style.height=d+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=t.$dragEl,s=t.$el;i[0].style.width="",i[0].style.height="";var r,n=e.isHorizontal()?s[0].offsetWidth:s[0].offsetHeight,a=e.size/e.virtualSize,o=a*(n/e.size);r="auto"===e.params.scrollbar.dragSize?n*a:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",s[0].style.display=a>=1?"none":"",e.params.scrollbar.hide&&(s[0].style.opacity=0),X.extend(t,{trackSize:n,divider:a,moveDivider:o,dragSize:r}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){var t=this;return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition:function(e){var t,i=this,s=i.scrollbar,r=i.rtlTranslate,n=s.$el,a=s.dragSize,o=s.trackSize,l=s.dragStartPos;t=(s.getPointerPosition(e)-n.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:a/2))/(o-a),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var d=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(d),i.setTranslate(d),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,s=t.scrollbar,r=t.$wrapperEl,n=s.$el,a=s.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===a[0]||e.target===a?s.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),a.transition(100),s.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),n.transition(0),i.hide&&n.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,s=t.$wrapperEl,r=i.$el,n=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),s.transition(0),r.transition(0),n.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,s=t.scrollbar,r=t.$wrapperEl,n=s.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),r.transition("")),i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=X.nextTick((function(){n.css("opacity",0),n.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,s=e.touchEventsTouch,r=e.touchEventsDesktop,n=e.params,a=t.$el,o=a[0],l=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},d=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};Y.touch?(o.addEventListener(s.start,e.scrollbar.onDragStart,l),o.addEventListener(s.move,e.scrollbar.onDragMove,l),o.addEventListener(s.end,e.scrollbar.onDragEnd,d)):(o.addEventListener(r.start,e.scrollbar.onDragStart,l),i.addEventListener(r.move,e.scrollbar.onDragMove,l),i.addEventListener(r.end,e.scrollbar.onDragEnd,d))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,s=e.touchEventsTouch,r=e.touchEventsDesktop,n=e.params,a=t.$el,o=a[0],l=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},d=!(!Y.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};Y.touch?(o.removeEventListener(s.start,e.scrollbar.onDragStart,l),o.removeEventListener(s.move,e.scrollbar.onDragMove,l),o.removeEventListener(s.end,e.scrollbar.onDragEnd,d)):(o.removeEventListener(r.start,e.scrollbar.onDragStart,l),i.removeEventListener(r.move,e.scrollbar.onDragMove,l),i.removeEventListener(r.end,e.scrollbar.onDragEnd,d))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.$el,s=e.params.scrollbar,r=o(s.el);e.params.uniqueNavElements&&"string"===typeof s.el&&r.length>1&&1===i.find(s.el).length&&(r=i.find(s.el));var n=r.find("."+e.params.scrollbar.dragClass);0===n.length&&(n=o('<div class="'+e.params.scrollbar.dragClass+'"></div>'),r.append(n)),X.extend(t,{$el:r,el:r[0],$dragEl:n,dragEl:n[0]}),s.draggable&&t.enableDraggable()}},destroy:function(){var e=this;e.scrollbar.disableDraggable()}},Lt={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;X.extend(e,{scrollbar:{init:Ot.init.bind(e),destroy:Ot.destroy.bind(e),updateSize:Ot.updateSize.bind(e),setTranslate:Ot.setTranslate.bind(e),setTransition:Ot.setTransition.bind(e),enableDraggable:Ot.enableDraggable.bind(e),disableDraggable:Ot.disableDraggable.bind(e),setDragPosition:Ot.setDragPosition.bind(e),getPointerPosition:Ot.getPointerPosition.bind(e),onDragStart:Ot.onDragStart.bind(e),onDragMove:Ot.onDragMove.bind(e),onDragEnd:Ot.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){var e=this;e.scrollbar.updateSize()},resize:function(){var e=this;e.scrollbar.updateSize()},observerUpdate:function(){var e=this;e.scrollbar.updateSize()},setTranslate:function(){var e=this;e.scrollbar.setTranslate()},setTransition:function(e){var t=this;t.scrollbar.setTransition(e)},destroy:function(){var e=this;e.scrollbar.destroy()}}},At={setTransform:function(e,t){var i=this,s=i.rtl,r=o(e),n=s?-1:1,a=r.attr("data-swiper-parallax")||"0",l=r.attr("data-swiper-parallax-x"),d=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(l||d?(l=l||"0",d=d||"0"):i.isHorizontal()?(l=a,d="0"):(d=a,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*t*n+"%":l*t*n+"px",d=d.indexOf("%")>=0?parseInt(d,10)*t+"%":d*t+"px","undefined"!==typeof c&&null!==c){var h=c-(c-1)*(1-Math.abs(t));r[0].style.opacity=h}if("undefined"===typeof u||null===u)r.transform("translate3d("+l+", "+d+", 0px)");else{var p=u-(u-1)*(1-Math.abs(t));r.transform("translate3d("+l+", "+d+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,s=e.progress,r=e.snapGrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,s)})),i.each((function(t,i){var n=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(n+=Math.ceil(t/2)-s*(r.length-1)),n=Math.min(Math.max(n,-1),1),o(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){e.parallax.setTransform(i,n)}))}))},setTransition:function(e){void 0===e&&(e=this.params.speed);var t=this,i=t.$el;i.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t,i){var s=o(i),r=parseInt(s.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),s.transition(r)}))}},Dt={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;X.extend(e,{parallax:{setTransform:At.setTransform.bind(e),setTranslate:At.setTranslate.bind(e),setTransition:At.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax.enabled&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax.enabled&&t.parallax.setTransition(e)}}},Mt={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,s=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY,n=Math.sqrt(Math.pow(s-t,2)+Math.pow(r-i,2));return n},onGestureStart:function(e){var t=this,i=t.params.zoom,s=t.zoom,r=s.gesture;if(s.fakeGestureTouched=!1,s.fakeGestureMoved=!1,!Y.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;s.fakeGestureTouched=!0,r.scaleStart=Mt.getDistanceBetweenTouches(e)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=o(e.target).closest("."+t.params.slideClass),0===r.$slideEl.length&&(r.$slideEl=t.slides.eq(t.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl&&r.$imageEl.transition(0),t.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(e){var t=this,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!Y.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;s.fakeGestureMoved=!0,r.scaleMove=Mt.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(Y.gestures?s.scale=e.scale*s.currentScale:s.scale=r.scaleMove/r.scaleStart*s.currentScale,s.scale>r.maxRatio&&(s.scale=r.maxRatio-1+Math.pow(s.scale-r.maxRatio+1,.5)),s.scale<i.minRatio&&(s.scale=i.minRatio+1-Math.pow(i.minRatio-s.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+s.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,s=t.zoom,r=s.gesture;if(!Y.gestures){if(!s.fakeGestureTouched||!s.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!je.android)return;s.fakeGestureTouched=!1,s.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(s.scale=Math.max(Math.min(s.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+s.scale+")"),s.currentScale=s.scale,s.isScaling=!1,1===s.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,s=i.gesture,r=i.image;s.$imageEl&&0!==s.$imageEl.length&&(r.isTouched||(je.android&&e.cancelable&&e.preventDefault(),r.isTouched=!0,r.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,i=t.zoom,s=i.gesture,r=i.image,n=i.velocity;if(s.$imageEl&&0!==s.$imageEl.length&&(t.allowClick=!1,r.isTouched&&s.$slideEl)){r.isMoved||(r.width=s.$imageEl[0].offsetWidth,r.height=s.$imageEl[0].offsetHeight,r.startX=X.getTranslate(s.$imageWrapEl[0],"x")||0,r.startY=X.getTranslate(s.$imageWrapEl[0],"y")||0,s.slideWidth=s.$slideEl[0].offsetWidth,s.slideHeight=s.$slideEl[0].offsetHeight,s.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var a=r.width*i.scale,o=r.height*i.scale;if(!(a<s.slideWidth&&o<s.slideHeight)){if(r.minX=Math.min(s.slideWidth/2-a/2,0),r.maxX=-r.minX,r.minY=Math.min(s.slideHeight/2-o/2,0),r.maxY=-r.minY,r.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,r.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!r.isMoved&&!i.isScaling){if(t.isHorizontal()&&(Math.floor(r.minX)===Math.floor(r.startX)&&r.touchesCurrent.x<r.touchesStart.x||Math.floor(r.maxX)===Math.floor(r.startX)&&r.touchesCurrent.x>r.touchesStart.x))return void(r.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(r.minY)===Math.floor(r.startY)&&r.touchesCurrent.y<r.touchesStart.y||Math.floor(r.maxY)===Math.floor(r.startY)&&r.touchesCurrent.y>r.touchesStart.y))return void(r.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),r.isMoved=!0,r.currentX=r.touchesCurrent.x-r.touchesStart.x+r.startX,r.currentY=r.touchesCurrent.y-r.touchesStart.y+r.startY,r.currentX<r.minX&&(r.currentX=r.minX+1-Math.pow(r.minX-r.currentX+1,.8)),r.currentX>r.maxX&&(r.currentX=r.maxX-1+Math.pow(r.currentX-r.maxX+1,.8)),r.currentY<r.minY&&(r.currentY=r.minY+1-Math.pow(r.minY-r.currentY+1,.8)),r.currentY>r.maxY&&(r.currentY=r.maxY-1+Math.pow(r.currentY-r.maxY+1,.8)),n.prevPositionX||(n.prevPositionX=r.touchesCurrent.x),n.prevPositionY||(n.prevPositionY=r.touchesCurrent.y),n.prevTime||(n.prevTime=Date.now()),n.x=(r.touchesCurrent.x-n.prevPositionX)/(Date.now()-n.prevTime)/2,n.y=(r.touchesCurrent.y-n.prevPositionY)/(Date.now()-n.prevTime)/2,Math.abs(r.touchesCurrent.x-n.prevPositionX)<2&&(n.x=0),Math.abs(r.touchesCurrent.y-n.prevPositionY)<2&&(n.y=0),n.prevPositionX=r.touchesCurrent.x,n.prevPositionY=r.touchesCurrent.y,n.prevTime=Date.now(),s.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,s=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!s.isTouched||!s.isMoved)return s.isTouched=!1,void(s.isMoved=!1);s.isTouched=!1,s.isMoved=!1;var n=300,a=300,o=r.x*n,l=s.currentX+o,d=r.y*a,u=s.currentY+d;0!==r.x&&(n=Math.abs((l-s.currentX)/r.x)),0!==r.y&&(a=Math.abs((u-s.currentY)/r.y));var c=Math.max(n,a);s.currentX=l,s.currentY=u;var h=s.width*t.scale,p=s.height*t.scale;s.minX=Math.min(i.slideWidth/2-h/2,0),s.maxX=-s.minX,s.minY=Math.min(i.slideHeight/2-p/2,0),s.maxY=-s.minY,s.currentX=Math.max(Math.min(s.currentX,s.maxX),s.minX),s.currentY=Math.max(Math.min(s.currentY,s.maxY),s.minY),i.$imageWrapEl.transition(c).transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl&&i.$imageEl.transform("translate3d(0,0,0) scale(1)"),i.$imageWrapEl&&i.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,i.$slideEl=void 0,i.$imageEl=void 0,i.$imageWrapEl=void 0)},toggle:function(e){var t=this,i=t.zoom;i.scale&&1!==i.scale?i.out():i.in(e)},in:function(e){var t,i,s,r,n,a,o,l,d,u,c,h,p,f,m,g,y,v,b=this,_=b.zoom,T=b.params.zoom,S=_.gesture,w=_.image;(S.$slideEl||(b.params.virtual&&b.params.virtual.enabled&&b.virtual?S.$slideEl=b.$wrapperEl.children("."+b.params.slideActiveClass):S.$slideEl=b.slides.eq(b.activeIndex),S.$imageEl=S.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),S.$imageWrapEl=S.$imageEl.parent("."+T.containerClass)),S.$imageEl&&0!==S.$imageEl.length)&&(S.$slideEl.addClass(""+T.zoomedSlideClass),"undefined"===typeof w.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,i="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=w.touchesStart.x,i=w.touchesStart.y),_.scale=S.$imageWrapEl.attr("data-swiper-zoom")||T.maxRatio,_.currentScale=S.$imageWrapEl.attr("data-swiper-zoom")||T.maxRatio,e?(y=S.$slideEl[0].offsetWidth,v=S.$slideEl[0].offsetHeight,s=S.$slideEl.offset().left,r=S.$slideEl.offset().top,n=s+y/2-t,a=r+v/2-i,d=S.$imageEl[0].offsetWidth,u=S.$imageEl[0].offsetHeight,c=d*_.scale,h=u*_.scale,p=Math.min(y/2-c/2,0),f=Math.min(v/2-h/2,0),m=-p,g=-f,o=n*_.scale,l=a*_.scale,o<p&&(o=p),o>m&&(o=m),l<f&&(l=f),l>g&&(l=g)):(o=0,l=0),S.$imageWrapEl.transition(300).transform("translate3d("+o+"px, "+l+"px,0)"),S.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+_.scale+")"))},out:function(){var e=this,t=e.zoom,i=e.params.zoom,s=t.gesture;s.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?s.$slideEl=e.$wrapperEl.children("."+e.params.slideActiveClass):s.$slideEl=e.slides.eq(e.activeIndex),s.$imageEl=s.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),s.$imageWrapEl=s.$imageEl.parent("."+i.containerClass)),s.$imageEl&&0!==s.$imageEl.length&&(t.scale=1,t.currentScale=1,s.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),s.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),s.$slideEl.removeClass(""+i.zoomedSlideClass),s.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!Y.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},s=!Y.passiveListener||{passive:!1,capture:!0},r="."+e.params.slideClass;Y.gestures?(e.$wrapperEl.on("gesturestart",r,t.onGestureStart,i),e.$wrapperEl.on("gesturechange",r,t.onGestureChange,i),e.$wrapperEl.on("gestureend",r,t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,r,t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,r,t.onGestureChange,s),e.$wrapperEl.on(e.touchEvents.end,r,t.onGestureEnd,i),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,r,t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove,s)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!Y.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},s=!Y.passiveListener||{passive:!1,capture:!0},r="."+e.params.slideClass;Y.gestures?(e.$wrapperEl.off("gesturestart",r,t.onGestureStart,i),e.$wrapperEl.off("gesturechange",r,t.onGestureChange,i),e.$wrapperEl.off("gestureend",r,t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,r,t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,r,t.onGestureChange,s),e.$wrapperEl.off(e.touchEvents.end,r,t.onGestureEnd,i),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,r,t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove,s)}}},Nt={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){t[i]=Mt[i].bind(e)})),X.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,s,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){var e=this;e.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}},Rt={loadInSlide:function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.lazy;if("undefined"!==typeof e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled,n=r?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),a=n.find("."+s.elementClass+":not(."+s.loadedClass+"):not(."+s.loadingClass+")");!n.hasClass(s.elementClass)||n.hasClass(s.loadedClass)||n.hasClass(s.loadingClass)||(a=a.add(n[0])),0!==a.length&&a.each((function(e,r){var a=o(r);a.addClass(s.loadingClass);var l=a.attr("data-background"),d=a.attr("data-src"),u=a.attr("data-srcset"),c=a.attr("data-sizes"),h=a.parent("picture");i.loadImage(a[0],d||l,u,c,!1,(function(){if("undefined"!==typeof i&&null!==i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeAttr("data-background")):(u&&(a.attr("srcset",u),a.removeAttr("data-srcset")),c&&(a.attr("sizes",c),a.removeAttr("data-sizes")),h.length&&h.children("source").each((function(e,t){var i=o(t);i.attr("data-srcset")&&(i.attr("srcset",i.attr("data-srcset")),i.removeAttr("data-srcset"))})),d&&(a.attr("src",d),a.removeAttr("data-src"))),a.addClass(s.loadedClass).removeClass(s.loadingClass),n.find("."+s.preloaderClass).remove(),i.params.loop&&t){var e=n.attr("data-swiper-slide-index");if(n.hasClass(i.params.slideDuplicateClass)){var r=i.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(r.index(),!1)}else{var p=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(p.index(),!1)}}i.emit("lazyImageReady",n[0],a[0]),i.params.autoHeight&&i.updateAutoHeight()}})),i.emit("lazyImageLoad",n[0],a[0])}))}},load:function(){var e=this,t=e.$wrapperEl,i=e.params,s=e.slides,r=e.activeIndex,n=e.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesPerView;function d(e){if(n){if(t.children("."+i.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function u(e){return n?o(e).attr("data-swiper-slide-index"):o(e).index()}if("auto"===l&&(l=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+i.slideVisibleClass).each((function(t,i){var s=n?o(i).attr("data-swiper-slide-index"):o(i).index();e.lazy.loadInSlide(s)}));else if(l>1)for(var c=r;c<r+l;c+=1)d(c)&&e.lazy.loadInSlide(c);else e.lazy.loadInSlide(r);if(a.loadPrevNext)if(l>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var h=a.loadPrevNextAmount,p=l,f=Math.min(r+p+Math.max(h,p),s.length),m=Math.max(r-Math.max(p,h),0),g=r+l;g<f;g+=1)d(g)&&e.lazy.loadInSlide(g);for(var y=m;y<r;y+=1)d(y)&&e.lazy.loadInSlide(y)}else{var v=t.children("."+i.slideNextClass);v.length>0&&e.lazy.loadInSlide(u(v));var b=t.children("."+i.slidePrevClass);b.length>0&&e.lazy.loadInSlide(u(b))}}},Ut={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;X.extend(e,{lazy:{initialImageLoaded:!1,load:Rt.load.bind(e),loadInSlide:Rt.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange:function(){var e=this;e.params.lazy.enabled&&e.params.cssMode&&e.lazy.load()}}},Bt={LinearSpline:function(e,t){var i,s,r=function(){var e,t,i;return function(s,r){t=-1,e=s.length;while(e-t>1)i=e+t>>1,s[i]<=r?t=i:e=i;return e}}();return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(s=r(this.x,e),i=s-1,(e-this.x[i])*(this.y[s]-this.y[i])/(this.x[s]-this.x[i])+this.y[i]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Bt.LinearSpline(t.slidesGrid,e.slidesGrid):new Bt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var i,s,r=this,n=r.controller.control;function a(e){var t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),s=-r.controller.spline.interpolate(-t)),s&&"container"!==r.params.controller.by||(i=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),s=(t-r.minTranslate())*i+e.minTranslate()),r.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(var o=0;o<n.length;o+=1)n[o]!==t&&n[o]instanceof ct&&a(n[o]);else n instanceof ct&&t!==n&&a(n)},setTransition:function(e,t){var i,s=this,r=s.controller.control;function n(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&X.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){r&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof ct&&n(r[i]);else r instanceof ct&&t!==r&&n(r)}},jt={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;X.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Bt.getInterpolateFunction.bind(e),setTranslate:Bt.setTranslate.bind(e),setTransition:Bt.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var i=this;i.controller.control&&i.controller.setTranslate(e,t)},setTransition:function(e,t){var i=this;i.controller.control&&i.controller.setTransition(e,t)}}},Ft={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},makeElNotFocusable:function(e){return e.attr("tabIndex","-1"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){var t=this,i=t.params.a11y;if(13===e.keyCode){var s=o(e.target);t.navigation&&t.navigation.$nextEl&&s.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(i.lastSlideMessage):t.a11y.notify(i.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&s.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(i.firstSlideMessage):t.a11y.notify(i.prevSlideMessage)),t.pagination&&s.is("."+t.params.pagination.bulletClass)&&s[0].click()}},notify:function(e){var t=this,i=t.a11y.liveRegion;0!==i.length&&(i.html(""),i.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop&&e.navigation){var t=e.navigation,i=t.$nextEl,s=t.$prevEl;s&&s.length>0&&(e.isBeginning?(e.a11y.disableEl(s),e.a11y.makeElNotFocusable(s)):(e.a11y.enableEl(s),e.a11y.makeElFocusable(s))),i&&i.length>0&&(e.isEnd?(e.a11y.disableEl(i),e.a11y.makeElNotFocusable(i)):(e.a11y.enableEl(i),e.a11y.makeElFocusable(i)))}},updatePagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i,s){var r=o(s);e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.paginationBulletMessage.replace(/\{\{index\}\}/,r.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,s=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,s.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,s.prevSlideMessage),i.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,i=this;i.a11y.liveRegion&&i.a11y.liveRegion.length>0&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(e=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(t=i.navigation.$prevEl),e&&e.off("keydown",i.a11y.onEnterKey),t&&t.off("keydown",i.a11y.onEnterKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown","."+i.params.pagination.bulletClass,i.a11y.onEnterKey)}},qt={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var e=this;X.extend(e,{a11y:{liveRegion:o('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Ft).forEach((function(t){e.a11y[t]=Ft[t].bind(e)}))},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},$t={init:function(){var e=this;if(e.params.history){if(!r.history||!r.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=$t.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||r.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||r.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=$t.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=r.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length,i=e[t-2],s=e[t-1];return{key:i,value:s}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var s=i.slides.eq(t),n=$t.slugify(s.attr("data-history"));r.location.pathname.includes(e)||(n=e+"/"+n);var a=r.history.state;a&&a.value===n||(i.params.history.replaceState?r.history.replaceState({value:n},null,n):r.history.pushState({value:n},null,n))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var s=this;if(t)for(var r=0,n=s.slides.length;r<n;r+=1){var a=s.slides.eq(r),o=$t.slugify(a.attr("data-history"));if(o===t&&!a.hasClass(s.params.slideDuplicateClass)){var l=a.index();s.slideTo(l,e,i)}}else s.slideTo(0,e,i)}},Ht={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;X.extend(e,{history:{init:$t.init.bind(e),setHistory:$t.setHistory.bind(e),setHistoryPopState:$t.setHistoryPopState.bind(e),scrollToSlide:$t.scrollToSlide.bind(e),destroy:$t.destroy.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange:function(){var e=this;e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},zt={onHashCange:function(){var e=this;e.emit("hashChange");var t=i.location.hash.replace("#",""),s=e.slides.eq(e.activeIndex).attr("data-hash");if(t!==s){var r=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if("undefined"===typeof r)return;e.slideTo(r)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&r.history&&r.history.replaceState)r.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||!1),e.emit("hashSet");else{var t=e.slides.eq(e.activeIndex),s=t.attr("data-hash")||t.attr("data-history");i.location.hash=s||"",e.emit("hashSet")}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=i.location.hash.replace("#","");if(t)for(var s=0,n=0,a=e.slides.length;n<a;n+=1){var l=e.slides.eq(n),d=l.attr("data-hash")||l.attr("data-history");if(d===t&&!l.hasClass(e.params.slideDuplicateClass)){var u=l.index();e.slideTo(u,s,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&o(r).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&o(r).off("hashchange",e.hashNavigation.onHashCange)}},Vt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;X.extend(e,{hashNavigation:{initialized:!1,init:zt.init.bind(e),destroy:zt.destroy.bind(e),setHash:zt.setHash.bind(e),onHashCange:zt.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange:function(){var e=this;e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}},Gt={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=X.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()}),i)},start:function(){var e=this;return"undefined"===typeof e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&("undefined"!==typeof e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Wt={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;X.extend(e,{autoplay:{running:!1,paused:!1,run:Gt.run.bind(e),start:Gt.start.bind(e),stop:Gt.stop.bind(e),pause:Gt.pause.bind(e),onVisibilityChange:function(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&(e.autoplay.start(),document.addEventListener("visibilitychange",e.autoplay.onVisibilityChange))},beforeTransitionStart:function(e,t){var i=this;i.autoplay.running&&(t||!i.params.autoplay.disableOnInteraction?i.autoplay.pause(e):i.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd:function(){var e=this;e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop(),document.removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}},Xt={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var s=e.slides.eq(i),r=s[0].swiperSlideOffset,n=-r;e.params.virtualTranslate||(n-=e.translate);var a=0;e.isHorizontal()||(a=n,n=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(s[0].progress),0):1+Math.min(Math.max(s[0].progress,-1),0);s.css({opacity:o}).transform("translate3d("+n+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,s=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var r=!1;i.transitionEnd((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)s.trigger(e[i])}}))}}},Yt={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;X.extend(e,{fadeEffect:{setTranslate:Xt.setTranslate.bind(e),setTransition:Xt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};X.extend(e.params,t),X.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},Jt={setTranslate:function(){var e,t=this,i=t.$el,s=t.$wrapperEl,r=t.slides,n=t.width,a=t.height,l=t.rtlTranslate,d=t.size,u=t.params.cubeEffect,c=t.isHorizontal(),h=t.virtual&&t.params.virtual.enabled,p=0;u.shadow&&(c?(e=s.find(".swiper-cube-shadow"),0===e.length&&(e=o('<div class="swiper-cube-shadow"></div>'),s.append(e)),e.css({height:n+"px"})):(e=i.find(".swiper-cube-shadow"),0===e.length&&(e=o('<div class="swiper-cube-shadow"></div>'),i.append(e))));for(var f=0;f<r.length;f+=1){var m=r.eq(f),g=f;h&&(g=parseInt(m.attr("data-swiper-slide-index"),10));var y=90*g,v=Math.floor(y/360);l&&(y=-y,v=Math.floor(-y/360));var b=Math.max(Math.min(m[0].progress,1),-1),_=0,T=0,S=0;g%4===0?(_=4*-v*d,S=0):(g-1)%4===0?(_=0,S=4*-v*d):(g-2)%4===0?(_=d+4*v*d,S=d):(g-3)%4===0&&(_=-d,S=3*d+4*d*v),l&&(_=-_),c||(T=_,_=0);var w="rotateX("+(c?0:-y)+"deg) rotateY("+(c?y:0)+"deg) translate3d("+_+"px, "+T+"px, "+S+"px)";if(b<=1&&b>-1&&(p=90*g+90*b,l&&(p=90*-g-90*b)),m.transform(w),u.slideShadows){var E=c?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),x=c?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===E.length&&(E=o('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),m.append(E)),0===x.length&&(x=o('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),m.append(x)),E.length&&(E[0].style.opacity=Math.max(-b,0)),x.length&&(x[0].style.opacity=Math.max(b,0))}}if(s.css({"-webkit-transform-origin":"50% 50% -"+d/2+"px","-moz-transform-origin":"50% 50% -"+d/2+"px","-ms-transform-origin":"50% 50% -"+d/2+"px","transform-origin":"50% 50% -"+d/2+"px"}),u.shadow)if(c)e.transform("translate3d(0px, "+(n/2+u.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var C=Math.abs(p)-90*Math.floor(Math.abs(p)/90),k=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),I=u.shadowScale,P=u.shadowScale/k,O=u.shadowOffset;e.transform("scale3d("+I+", 1, "+P+") translate3d(0px, "+(a/2+O)+"px, "+-a/2/P+"px) rotateX(-90deg)")}var L=ft.isSafari||ft.isWebView?-d/2:0;s.transform("translate3d(0px,0,"+L+"px) rotateX("+(t.isHorizontal()?0:p)+"deg) rotateY("+(t.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el,s=t.slides;s.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&i.find(".swiper-cube-shadow").transition(e)}},Kt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;X.extend(e,{cubeEffect:{setTranslate:Jt.setTranslate.bind(e),setTransition:Jt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};X.extend(e.params,t),X.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},Qt={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,s=0;s<t.length;s+=1){var r=t.eq(s),n=r[0].progress;e.params.flipEffect.limitRotation&&(n=Math.max(Math.min(r[0].progress,1),-1));var a=r[0].swiperSlideOffset,l=-180*n,d=l,u=0,c=-a,h=0;if(e.isHorizontal()?i&&(d=-d):(h=c,c=0,u=-d,d=0),r[0].style.zIndex=-Math.abs(Math.round(n))+t.length,e.params.flipEffect.slideShadows){var p=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),f=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===p.length&&(p=o('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),r.append(p)),0===f.length&&(f=o('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),r.append(f)),p.length&&(p[0].style.opacity=Math.max(-n,0)),f.length&&(f[0].style.opacity=Math.max(n,0))}r.transform("translate3d("+c+"px, "+h+"px, 0px) rotateX("+u+"deg) rotateY("+d+"deg)")}},setTransition:function(e){var t=this,i=t.slides,s=t.activeIndex,r=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var n=!1;i.eq(s).transitionEnd((function(){if(!n&&t&&!t.destroyed){n=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}}))}}},Zt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;X.extend(e,{flipEffect:{setTranslate:Qt.setTranslate.bind(e),setTransition:Qt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};X.extend(e.params,t),X.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},ei={setTranslate:function(){for(var e=this,t=e.width,i=e.height,s=e.slides,r=e.$wrapperEl,n=e.slidesSizesGrid,a=e.params.coverflowEffect,l=e.isHorizontal(),d=e.translate,u=l?t/2-d:i/2-d,c=l?a.rotate:-a.rotate,h=a.depth,p=0,f=s.length;p<f;p+=1){var m=s.eq(p),g=n[p],y=m[0].swiperSlideOffset,v=(u-y-g/2)/g*a.modifier,b=l?c*v:0,_=l?0:c*v,T=-h*Math.abs(v),S=a.stretch;"string"===typeof S&&-1!==S.indexOf("%")&&(S=parseFloat(a.stretch)/100*g);var w=l?0:S*v,E=l?S*v:0,x=1-(1-a.scale)*Math.abs(v);Math.abs(E)<.001&&(E=0),Math.abs(w)<.001&&(w=0),Math.abs(T)<.001&&(T=0),Math.abs(b)<.001&&(b=0),Math.abs(_)<.001&&(_=0),Math.abs(x)<.001&&(x=0);var C="translate3d("+E+"px,"+w+"px,"+T+"px) rotateX("+_+"deg) rotateY("+b+"deg) scale("+x+")";if(m.transform(C),m[0].style.zIndex=1-Math.abs(Math.round(v)),a.slideShadows){var k=l?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),I=l?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===k.length&&(k=o('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),m.append(k)),0===I.length&&(I=o('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),m.append(I)),k.length&&(k[0].style.opacity=v>0?v:0),I.length&&(I[0].style.opacity=-v>0?-v:0)}}if(Y.pointerEvents||Y.prefixedPointerEvents){var P=r[0].style;P.perspectiveOrigin=u+"px 50%"}},setTransition:function(e){var t=this;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ti={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create:function(){var e=this;X.extend(e,{coverflowEffect:{setTranslate:ei.setTranslate.bind(e),setTransition:ei.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},ii={init:function(){var e=this,t=e.params,i=t.thumbs,s=e.constructor;i.swiper instanceof s?(e.thumbs.swiper=i.swiper,X.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),X.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):X.isObject(i.swiper)&&(e.thumbs.swiper=new s(X.extend({},i.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var e=this,t=e.thumbs.swiper;if(t){var i=t.clickedIndex,s=t.clickedSlide;if((!s||!o(s).hasClass(e.params.thumbs.slideThumbActiveClass))&&"undefined"!==typeof i&&null!==i){var r;if(r=t.params.loop?parseInt(o(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){var n=e.activeIndex;e.slides.eq(n).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,n=e.activeIndex);var a=e.slides.eq(n).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),l=e.slides.eq(n).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r="undefined"===typeof a?l:"undefined"===typeof l?a:l-n<n-a?l:a}e.slideTo(r)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView,r=t.params.thumbs.autoScrollOffset,n=r&&!i.params.loop;if(t.realIndex!==i.realIndex||n){var a,o,l=i.activeIndex;if(i.params.loop){i.slides.eq(l).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,l=i.activeIndex);var d=i.slides.eq(l).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),u=i.slides.eq(l).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();a="undefined"===typeof d?u:"undefined"===typeof u?d:u-l===l-d?l:u-l<l-d?u:d,o=t.activeIndex>t.previousIndex?"next":"prev"}else a=t.realIndex,o=a>t.previousIndex?"next":"prev";n&&(a+="next"===o?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>l?a-Math.floor(s/2)+1:a+Math.floor(s/2)-1:a>l&&(a=a-s+1),i.slideTo(a,e?0:void 0))}var c=1,h=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(c=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(c=1),c=Math.floor(c),i.slides.removeClass(h),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(var p=0;p<c;p+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+p)+'"]').addClass(h);else for(var f=0;f<c;f+=1)i.slides.eq(t.realIndex+f).addClass(h)}}},si={name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;X.extend(e,{thumbs:{swiper:null,init:ii.init.bind(e),update:ii.update.bind(e),onThumbClick:ii.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params,i=t.thumbs;i&&i.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},update:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},resize:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e){var t=this,i=t.thumbs.swiper;i&&i.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}},ri=[ht,pt,mt,gt,vt,_t,St,xt,kt,Pt,Lt,Dt,Nt,Ut,jt,qt,Ht,Vt,Wt,Yt,Kt,Zt,ti,si];return"undefined"===typeof ct.use&&(ct.use=ct.Class.use,ct.installModule=ct.Class.installModule),ct.use(ri),ct}))},"0326":function(e,t,i){},"04f8":function(e,t,i){"use strict";var s=i("2d00"),r=i("d039"),n=i("da84"),a=n.String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},"06cf":function(e,t,i){"use strict";var s=i("83ab"),r=i("c65b"),n=i("d1e7"),a=i("5c6c"),o=i("fc6a"),l=i("a04b"),d=i("1a2d"),u=i("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=s?c:function(e,t){if(e=o(e),t=l(t),u)try{return c(e,t)}catch(i){}if(d(e,t))return a(!r(n.f,e,t),e[t])}},"070b":function(e,t,i){"use strict";i("945e")},"07fa":function(e,t,i){"use strict";var s=i("50c4");e.exports=function(e){return s(e.length)}},"0a06":function(e,t,i){"use strict";var s=i("c532"),r=i("30b5"),n=i("f6b4"),a=i("5270"),o=i("4a7b"),l=i("848b"),d=l.validators;function u(e){this.defaults=e,this.interceptors={request:new n,response:new n}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=o(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:d.transitional(d.boolean,"1.0.0"),forcedJSONParsing:d.transitional(d.boolean,"1.0.0"),clarifyTimeoutError:d.transitional(d.boolean,"1.0.0")},!1);var i=[],s=!0;this.interceptors.request.forEach((function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,i.unshift(t.fulfilled,t.rejected))}));var r,n=[];if(this.interceptors.response.forEach((function(e){n.push(e.fulfilled,e.rejected)})),!s){var u=[a,void 0];Array.prototype.unshift.apply(u,i),u=u.concat(n),r=Promise.resolve(e);while(u.length)r=r.then(u.shift(),u.shift());return r}var c=e;while(i.length){var h=i.shift(),p=i.shift();try{c=h(c)}catch(f){p(f);break}}try{r=a(c)}catch(f){return Promise.reject(f)}while(n.length)r=r.then(n.shift(),n.shift());return r},u.prototype.getUri=function(e){return e=o(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},s.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,i){return this.request(o(i||{},{method:e,url:t,data:(i||{}).data}))}})),s.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,i,s){return this.request(o(s||{},{method:e,url:t,data:i}))}})),e.exports=u},"0cfb":function(e,t,i){"use strict";var s=i("83ab"),r=i("d039"),n=i("cc12");e.exports=!s&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,i){"use strict";var s=String;e.exports=function(e){try{return s(e)}catch(t){return"Object"}}},"0df6":function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"13d2":function(e,t,i){"use strict";var s=i("e330"),r=i("d039"),n=i("1626"),a=i("1a2d"),o=i("83ab"),l=i("5e77").CONFIGURABLE,d=i("8925"),u=i("69f3"),c=u.enforce,h=u.get,p=String,f=Object.defineProperty,m=s("".slice),g=s("".replace),y=s([].join),v=o&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,i){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),v&&i&&a(i,"arity")&&e.length!==i.arity&&f(e,"length",{value:i.arity});try{i&&a(i,"constructor")&&i.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(r){}var s=c(e);return a(s,"source")||(s.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return n(this)&&h(this).source||d(this)}),"toString")},"13d5":function(e,t,i){"use strict";var s=i("23e7"),r=i("d58f").left,n=i("a640"),a=i("2d00"),o=i("605d"),l=!o&&a>79&&a<83,d=l||!n("reduce");s({target:"Array",proto:!0,forced:d},{reduce:function(e){var t=arguments.length;return r(this,e,t,t>1?arguments[1]:void 0)}})},"14d9":function(e,t,i){"use strict";var s=i("23e7"),r=i("7b0b"),n=i("07fa"),a=i("3a34"),o=i("3511"),l=i("d039"),d=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}},c=d||!u();s({target:"Array",proto:!0,arity:1,forced:c},{push:function(e){var t=r(this),i=n(t),s=arguments.length;o(i+s);for(var l=0;l<s;l++)t[i]=arguments[l],i++;return a(t,i),i}})},1501:function(e,t,i){"use strict";i("9f8c")},1626:function(e,t,i){"use strict";var s="object"==typeof document&&document.all;e.exports="undefined"==typeof s&&void 0!==s?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},"17a3":function(e,t,i){"use strict";i.d(t,"i",(function(){return l})),i.d(t,"h",(function(){return d})),i.d(t,"d",(function(){return u})),i.d(t,"f",(function(){return c})),i.d(t,"e",(function(){return p})),i.d(t,"c",(function(){return f})),i.d(t,"g",(function(){return m})),i.d(t,"a",(function(){return g})),i.d(t,"b",(function(){return y}));var s=i("be09"),r=i.n(s),n={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},a=["video","audio","text"],o=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,i){var s=("00"+Number(t).toString(16)).slice(-2),r=("00"+Number(i).toString(16)).slice(-2);return"avc1."+s+"00"+r})):e},d=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach((function(e){var t;e=e.trim(),a.forEach((function(s){var r=n[s].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=s;var a=e.substring(0,r[1].length),o=e.replace(a,"");i.push({type:a,details:o,mediaType:s})}})),t||i.push({type:e,details:"",mediaType:"unknown"})})),i},u=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var s in i){var r=i[s];if(r.default&&r.playlists)return d(r.playlists[0].attributes.CODECS)}return null},c=function(e){return void 0===e&&(e=""),n.audio.test(e.trim().toLowerCase())},h=function(e){return void 0===e&&(e=""),n.text.test(e.trim().toLowerCase())},p=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),i="video";1===t.length&&c(t[0])?i="audio":1===t.length&&h(t[0])&&(i="application");var s="mp4";return t.every((function(e){return n.mp4.test(e)}))?s="mp4":t.every((function(e){return n.webm.test(e)}))?s="webm":t.every((function(e){return n.ogg.test(e)}))&&(s="ogg"),i+"/"+s+';codecs="'+e+'"'}},f=function(e){return void 0===e&&(e=""),r.a.MediaSource&&r.a.MediaSource.isTypeSupported&&r.a.MediaSource.isTypeSupported(p(e))||!1},m=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<o.length;t++){var i=o[t];if(n["muxer"+i].test(e))return!0}return!1}))},g="mp4a.40.2",y="avc1.4d400d"},"1a2d":function(e,t,i){"use strict";var s=i("e330"),r=i("7b0b"),n=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return n(r(e),t)}},"1d2b":function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];return e.apply(t,i)}}},"1d80":function(e,t,i){"use strict";var s=i("7234"),r=TypeError;e.exports=function(e){if(s(e))throw new r("Can't call method on "+e);return e}},"1e09":function(e,t,i){},"1e83":function(e,t,i){"use strict";i("7f74")},"1fb5":function(e,t,i){"use strict";t.byteLength=u,t.toByteArray=h,t.fromByteArray=m;for(var s=[],r=[],n="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,l=a.length;o<l;++o)s[o]=a[o],r[a.charCodeAt(o)]=o;function d(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var s=i===t?0:4-i%4;return[i,s]}function u(e){var t=d(e),i=t[0],s=t[1];return 3*(i+s)/4-s}function c(e,t,i){return 3*(t+i)/4-i}function h(e){var t,i,s=d(e),a=s[0],o=s[1],l=new n(c(e,a,o)),u=0,h=o>0?a-4:a;for(i=0;i<h;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===o&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===o&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function p(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[63&e]}function f(e,t,i){for(var s,r=[],n=t;n<i;n+=3)s=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(255&e[n+2]),r.push(p(s));return r.join("")}function m(e){for(var t,i=e.length,r=i%3,n=[],a=16383,o=0,l=i-r;o<l;o+=a)n.push(f(e,o,o+a>l?l:o+a));return 1===r?(t=e[i-1],n.push(s[t>>2]+s[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"=")),n.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"210b":function(e,t,i){var s=i("e1c8");t.DOMImplementation=s.DOMImplementation,t.XMLSerializer=s.XMLSerializer,t.DOMParser=i("b074").DOMParser},"23cb":function(e,t,i){"use strict";var s=i("5926"),r=Math.max,n=Math.min;e.exports=function(e,t){var i=s(e);return i<0?r(i+t,0):n(i,t)}},"23e7":function(e,t,i){"use strict";var s=i("da84"),r=i("06cf").f,n=i("9112"),a=i("cb2d"),o=i("6374"),l=i("e893"),d=i("94ca");e.exports=function(e,t){var i,u,c,h,p,f,m=e.target,g=e.global,y=e.stat;if(u=g?s:y?s[m]||o(m,{}):s[m]&&s[m].prototype,u)for(c in t){if(p=t[c],e.dontCallGetSet?(f=r(u,c),h=f&&f.value):h=u[c],i=d(g?c:m+(y?".":"#")+c,e.forced),!i&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&n(p,"sham",!0),a(u,c,p,e)}}},"241c":function(e,t,i){"use strict";var s=i("ca84"),r=i("7839"),n=r.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},2444:function(e,t,i){"use strict";(function(t){var s=i("c532"),r=i("c8af"),n=i("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function o(e,t){!s.isUndefined(e)&&s.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=i("b50d")),e}function d(e,t,i){if(s.isString(e))try{return(t||JSON.parse)(e),s.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(i||JSON.stringify)(e)}var u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return r(t,"Accept"),r(t,"Content-Type"),s.isFormData(e)||s.isArrayBuffer(e)||s.isBuffer(e)||s.isStream(e)||s.isFile(e)||s.isBlob(e)?e:s.isArrayBufferView(e)?e.buffer:s.isURLSearchParams(e)?(o(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):s.isObject(e)||t&&"application/json"===t["Content-Type"]?(o(t,"application/json"),d(e)):e}],transformResponse:[function(e){var t=this.transitional,i=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,a=!i&&"json"===this.responseType;if(a||r&&s.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a){if("SyntaxError"===o.name)throw n(o,this,"E_JSON_PARSE");throw o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};s.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),s.forEach(["post","put","patch"],(function(e){u.headers[e]=s.merge(a)})),e.exports=u}).call(this,i("4362"))},2733:function(e,t,i){"use strict";i("7a4c")},"2b8c":function(e,t,i){var s=i("be09"),r=e.exports={WebVTT:i("d02c"),VTTCue:i("b03c"),VTTRegion:i("f97d")};s.vttjs=r,s.WebVTT=r.WebVTT;var n=r.VTTCue,a=r.VTTRegion,o=s.VTTCue,l=s.VTTRegion;r.shim=function(){s.VTTCue=n,s.VTTRegion=a},r.restore=function(){s.VTTCue=o,s.VTTRegion=l},s.VTTCue||r.shim()},"2d00":function(e,t,i){"use strict";var s,r,n=i("da84"),a=i("342f"),o=n.process,l=n.Deno,d=o&&o.versions||l&&l.version,u=d&&d.v8;u&&(s=u.split("."),r=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!r&&a&&(s=a.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=a.match(/Chrome\/(\d+)/),s&&(r=+s[1]))),e.exports=r},"2d83":function(e,t,i){"use strict";var s=i("387f");e.exports=function(e,t,i,r,n){var a=new Error(e);return s(a,t,i,r,n)}},"2e67":function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,i){"use strict";var s=i("c532");function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var n;if(i)n=i(t);else if(s.isURLSearchParams(t))n=t.toString();else{var a=[];s.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(s.isArray(e)?t+="[]":e=[e],s.forEach(e,(function(e){s.isDate(e)?e=e.toISOString():s.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),n=a.join("&")}if(n){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},"321f":function(e,t,i){"use strict";i.d(t,"a",(function(){return a}));var s=i("de66"),r=Object(s["k"])([73,68,51]),n=function(e,t){void 0===t&&(t=0),e=Object(s["k"])(e);var i=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],n=(16&i)>>4;return n?r+20:r+10},a=function e(t,i){return void 0===i&&(i=0),t=Object(s["k"])(t),t.length-i<10||!Object(s["a"])(t,r,{offset:i})?i:(i+=n(t,i),e(t,i))}},3380:function(e,t,i){"use strict";i("c020")},"342f":function(e,t,i){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(e,t,i){"use strict";var s=TypeError,r=9007199254740991;e.exports=function(e){if(e>r)throw s("Maximum allowed index exceeded");return e}},3603:function(e,t,i){"use strict";var s=i("be09"),r=i("a559"),n=i("8362");u.httpHandler=i("8c00");
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
|
@@ -6,25 +6,25 @@ module.exports=function(e){var t={};function i(s){if(t[s])return t[s].exports;va
|
|
6
6
|
* Available under the MIT license
|
7
7
|
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
|
8
8
|
*/
|
9
|
-
var a=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),s=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();"undefined"===typeof t[s]?t[s]=r:Array.isArray(t[s])?t[s].push(r):t[s]=[t[s],r]})),t):t};function o(e,t){for(var i=0;i<e.length;i++)t(e[i])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function d(e,t,i){var s=e;return n(t)?(i=t,"string"===typeof e&&(s={uri:e})):s=r({},t,{uri:e}),s.callback=i,s}function u(e,t,i){return t=d(e,t,i),c(t)}function c(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,i=function(i,s,r){t||(t=!0,e.callback(i,s,r))};function s(){4===p.readyState&&setTimeout(o,0)}function r(){var e=void 0;if(e=p.response?p.response:p.responseText||h(p),_)try{e=JSON.parse(e)}catch(t){}return e}function n(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,i(e,T)}function o(){if(!c){var t;clearTimeout(f),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var s=T,n=null;return 0!==t?(s={body:r(),statusCode:t,method:g,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(s.headers=a(p.getAllResponseHeaders()))):n=new Error("Internal XMLHttpRequest Error"),i(n,s,s.body)}}var d,c,p=e.xhr||null;p||(p=e.cors||e.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f,m=p.url=e.uri||e.url,g=p.method=e.method||"GET",y=e.body||e.data,v=p.headers=e.headers||{},b=!!e.sync,_=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(_=!0,v["accept"]||v["Accept"]||(v["Accept"]="application/json"),"GET"!==g&&"HEAD"!==g&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),p.onreadystatechange=s,p.onload=o,p.onerror=n,p.onprogress=function(){},p.onabort=function(){c=!0},p.ontimeout=n,p.open(g,m,!b,e.username,e.password),b||(p.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!c){c=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",n(e)}}),e.timeout)),p.setRequestHeader)for(d in v)v.hasOwnProperty(d)&&p.setRequestHeader(d,v[d]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(y||null),p}function h(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(i){}return null}function p(){}e.exports=u,e.exports.default=u,u.XMLHttpRequest=s.XMLHttpRequest||p,u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:s.XDomainRequest,o(["get","put","post","patch","head","delete"],(function(e){u["delete"===e?"del":e]=function(t,i,s){return i=d(t,i,s),i.method=e.toUpperCase(),c(i)}}))},"36c6":function(e,t){var i,s,r,n,a,o,l,d=9e4;i=function(e){return e*d},s=function(e,t){return e*t},r=function(e){return e/d},n=function(e,t){return e/t},a=function(e,t){return i(n(e,t))},o=function(e,t){return s(r(e),t)},l=function(e,t,i){return r(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:d,secondsToVideoTs:i,secondsToAudioTs:s,videoTsToSeconds:r,audioTsToSeconds:n,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:l}},"383a":function(e,t,i){"use strict";i("dc6a")},"387f":function(e,t,i){"use strict";e.exports=function(e,t,i,s,r){return e.config=t,i&&(e.code=i),e.request=s,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,i){"use strict";var s=i("c532");e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var s=e;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=s.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},"3a34":function(e,t,i){"use strict";var s=i("83ab"),r=i("e8b5"),n=TypeError,a=Object.getOwnPropertyDescriptor,o=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(r(e)&&!a(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,i){"use strict";var s=i("e330");e.exports=s({}.isPrototypeOf)},"40d5":function(e,t,i){"use strict";var s=i("d039");e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4362:function(e,t,i){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,s="/";t.cwd=function(){return s},t.chdir=function(t){e||(e=i("df7c")),s=e.resolve(t,s)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,i){"use strict";var s=i("e330"),r=i("d039"),n=i("c6b6"),a=Object,o=s("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):a(e)}:a},"467f":function(e,t,i){"use strict";var s=i("2d83");e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(s("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},"485a":function(e,t,i){"use strict";var s=i("c65b"),r=i("1626"),n=i("861d"),a=TypeError;e.exports=function(e,t){var i,o;if("string"===t&&r(i=e.toString)&&!n(o=s(i,e)))return o;if(r(i=e.valueOf)&&!n(o=s(i,e)))return o;if("string"!==t&&r(i=e.toString)&&!n(o=s(i,e)))return o;throw new a("Can't convert object to primitive value")}},"48ec":function(e,t,i){},"4a0c":function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","C:\\\\Users\\\\Lemon.Ge\\\\Desktop\\\\cms"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"C:\\\\Users\\\\Lemon.Ge\\\\Desktop\\\\cms","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a7b":function(e,t,i){"use strict";var s=i("c532");e.exports=function(e,t){t=t||{};var i={},r=["url","method","data"],n=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function d(r){s.isUndefined(t[r])?s.isUndefined(e[r])||(i[r]=l(void 0,e[r])):i[r]=l(e[r],t[r])}s.forEach(r,(function(e){s.isUndefined(t[e])||(i[e]=l(void 0,t[e]))})),s.forEach(n,d),s.forEach(a,(function(r){s.isUndefined(t[r])?s.isUndefined(e[r])||(i[r]=l(void 0,e[r])):i[r]=l(void 0,t[r])})),s.forEach(o,(function(s){s in t?i[s]=l(e[s],t[s]):s in e&&(i[s]=l(void 0,e[s]))}));var u=r.concat(n).concat(a).concat(o),c=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return s.forEach(c,d),i}},"4d64":function(e,t,i){"use strict";var s=i("fc6a"),r=i("23cb"),n=i("07fa"),a=function(e){return function(t,i,a){var o,l=s(t),d=n(l),u=r(a,d);if(e&&i!==i){while(d>u)if(o=l[u++],o!==o)return!0}else for(;d>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4e9a":function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return a}));var s=i("be09"),r=i.n(s),n=function(t){return r.a.atob?r.a.atob(t):e.from(t,"base64").toString("binary")};function a(e){for(var t=n(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}}).call(this,i("b639").Buffer)},"50c4":function(e,t,i){"use strict";var s=i("5926"),r=Math.min;e.exports=function(e){var t=s(e);return t>0?r(t,9007199254740991):0}},5213:function(e,t,i){"use strict";i("eb7c")},5270:function(e,t,i){"use strict";var s=i("c532"),r=i("c401"),n=i("2e67"),a=i("2444");function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return n(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5692:function(e,t,i){"use strict";var s=i("c430"),r=i("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,i){"use strict";var s=i("d066"),r=i("e330"),n=i("241c"),a=i("7418"),o=i("825a"),l=r([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=n.f(o(e)),i=a.f;return i?l(t,i(e)):t}},5848:function(e,t,i){"use strict";i("6ebe")},5926:function(e,t,i){"use strict";var s=i("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:s(t)}},"59ed":function(e,t,i){"use strict";var s=i("1626"),r=i("0d51"),n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not a function")}},"5b9b":function(e,t,i){"use strict";i("0326")},"5c6c":function(e,t,i){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e77":function(e,t,i){"use strict";var s=i("83ab"),r=i("1a2d"),n=Function.prototype,a=s&&Object.getOwnPropertyDescriptor,o=r(n,"name"),l=o&&"something"===function(){}.name,d=o&&(!s||s&&a(n,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:d}},"5f02":function(e,t,i){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"605d":function(e,t,i){"use strict";var s=i("da84"),r=i("c6b6");e.exports="process"===r(s.process)},6374:function(e,t,i){"use strict";var s=i("da84"),r=Object.defineProperty;e.exports=function(e,t){try{r(s,e,{value:t,configurable:!0,writable:!0})}catch(i){s[e]=t}return t}},"63ec":function(e,t,i){"use strict";var s=i("d136"),r=i.n(s),n=i("be09"),a=i.n(n),o="http://example.com",l=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=a.a.location&&a.a.location.href||"");var i="function"===typeof a.a.URL,s=/^\/\//.test(e),n=!a.a.location&&!/\/\//i.test(e);if(i?e=new a.a.URL(e,a.a.location||o):/\/\//i.test(e)||(e=r.a.buildAbsoluteURL(a.a.location&&a.a.location.href||"",e)),i){var l=new URL(t,e);return n?l.href.slice(o.length):s?l.href.slice(l.protocol.length):l.href}return r.a.buildAbsoluteURL(e,t)};t["a"]=l},"69f3":function(e,t,i){"use strict";var s,r,n,a=i("cdce"),o=i("da84"),l=i("861d"),d=i("9112"),u=i("1a2d"),c=i("c6cd"),h=i("f772"),p=i("d012"),f="Object already initialized",m=o.TypeError,g=o.WeakMap,y=function(e){return n(e)?r(e):s(e,{})},v=function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}};if(a||c.state){var b=c.state||(c.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,s=function(e,t){if(b.has(e))throw new m(f);return t.facade=e,b.set(e,t),t},r=function(e){return b.get(e)||{}},n=function(e){return b.has(e)}}else{var _=h("state");p[_]=!0,s=function(e,t){if(u(e,_))throw new m(f);return t.facade=e,d(e,_,t),t},r=function(e){return u(e,_)?e[_]:{}},n=function(e){return u(e,_)}}e.exports={set:s,get:r,has:n,enforce:y,getterFor:v}},"6ebe":function(e,t,i){},7234:function(e,t,i){"use strict";e.exports=function(e){return null===e||void 0===e}},7418:function(e,t,i){"use strict";t.f=Object.getOwnPropertySymbols},"77ed":function(e,t,i){},7839:function(e,t,i){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a77":function(e,t,i){"use strict";function s(e){this.message=e}s.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},s.prototype.__CANCEL__=!0,e.exports=s},"7aac":function(e,t,i){"use strict";var s=i("c532");e.exports=s.isStandardBrowserEnv()?function(){return{write:function(e,t,i,r,n,a){var o=[];o.push(e+"="+encodeURIComponent(t)),s.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),s.isString(r)&&o.push("path="+r),s.isString(n)&&o.push("domain="+n),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,i){"use strict";var s=i("1d80"),r=Object;e.exports=function(e){return r(s(e))}},"7f74":function(e,t,i){},"81c0":function(e,t,i){var s=i("a968").getUint64,r=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=t.getUint32(r),i.firstOffset=t.getUint32(r+4),r+=8):(i.earliestPresentationTime=s(e.subarray(r)),i.firstOffset=s(e.subarray(r+8)),r+=16),r+=2;var n=t.getUint16(r);for(r+=2;n>0;r+=12,n--)i.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return i};e.exports=r},"825a":function(e,t,i){"use strict";var s=i("861d"),r=String,n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not an object")}},8362:function(e,t){e.exports=s;var i=Object.prototype.toString;function s(e){if(!e)return!1;var t=i.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},"83ab":function(e,t,i){"use strict";var s=i("d039");e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,i){"use strict";var s=i("d925"),r=i("e683");e.exports=function(e,t){return e&&!s(t)?r(e,t):t}},"846e":function(e,t,i){"use strict";i("9919")},8484:function(e,t,i){"use strict";i.d(t,"a",(function(){return x})),i.d(t,"b",(function(){return M})),i.d(t,"c",(function(){return Ie})),i.d(t,"d",(function(){return Pe}));var s=i("63ec"),r=i("be09"),n=i.n(r),a=function(e,t,i){t.forEach((function(t){for(var s in e.mediaGroups[t])for(var r in e.mediaGroups[t][s]){var n=e.mediaGroups[t][s][r];i(n,t,s,r)}}))},o=i("ffdf"),l=i("210b");const d=e=>!!e&&"object"===typeof e,u=(...e)=>e.reduce((e,t)=>("object"!==typeof t||Object.keys(t).forEach(i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):d(e[i])&&d(t[i])?e[i]=u(e[i],t[i]):e[i]=t[i]}),e),{}),c=e=>Object.keys(e).map(t=>e[t]),h=(e,t)=>{const i=[];for(let s=e;s<t;s++)i.push(s);return i},p=e=>e.reduce((e,t)=>e.concat(t),[]),f=e=>{if(!e.length)return[];const t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t},m=(e,t)=>e.reduce((e,i,s)=>(i[t]&&e.push(s),e),[]),g=(e,t)=>c(e.reduce((e,i)=>(i.forEach(i=>{e[t(i)]=i}),e),{}));var y={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const v=({baseUrl:e="",source:t="",range:i="",indexRange:r=""})=>{const a={uri:t,resolvedUri:Object(s["a"])(e||"",t)};if(i||r){const e=i||r,t=e.split("-");let s,o=n.a.BigInt?n.a.BigInt(t[0]):parseInt(t[0],10),l=n.a.BigInt?n.a.BigInt(t[1]):parseInt(t[1],10);o<Number.MAX_SAFE_INTEGER&&"bigint"===typeof o&&(o=Number(o)),l<Number.MAX_SAFE_INTEGER&&"bigint"===typeof l&&(l=Number(l)),s="bigint"===typeof l||"bigint"===typeof o?n.a.BigInt(l)-n.a.BigInt(o)+n.a.BigInt(1):l-o+1,"bigint"===typeof s&&s<Number.MAX_SAFE_INTEGER&&(s=Number(s)),a.byterange={length:s,offset:o}}return a},b=e=>{let t;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?n.a.BigInt(e.offset)+n.a.BigInt(e.length)-n.a.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},_=e=>(e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),T={static(e){const{duration:t,timescale:i=1,sourceDuration:s,periodDuration:r}=e,n=_(e.endNumber),a=t/i;return"number"===typeof n?{start:0,end:n}:"number"===typeof r?{start:0,end:r/a}:{start:0,end:s/a}},dynamic(e){const{NOW:t,clientOffset:i,availabilityStartTime:s,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,d=_(e.endNumber),u=(t+i)/1e3,c=s+a,h=u+o,p=h-c,f=Math.ceil(p*r/n),m=Math.floor((u-c-l)*r/n),g=Math.floor((u-c)*r/n);return{start:Math.max(0,m),end:"number"===typeof d?d:Math.min(f,g)}}},S=e=>t=>{const{duration:i,timescale:s=1,periodStart:r,startNumber:n=1}=e;return{number:n+t,duration:i/s,timeline:r,time:t*i}},w=e=>{const{type:t,duration:i,timescale:s=1,periodDuration:r,sourceDuration:n}=e,{start:a,end:o}=T[t](e),l=h(a,o).map(S(e));if("static"===t){const e=l.length-1,t="number"===typeof r?r:n;l[e].duration=t-i/s*e}return l},E=e=>{const{baseUrl:t,initialization:i={},sourceDuration:s,indexRange:r="",periodStart:n,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error(y.NO_BASE_URL);const d=v({baseUrl:t,source:i.sourceURL,range:i.range}),u=v({baseUrl:t,source:t,indexRange:r});if(u.map=d,l){const t=w(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else s&&(u.duration=s,u.timeline=n);return u.presentationTime=a||n,u.number=o,[u]},x=(e,t,i)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,l=o.offset+o.length,d=t.timescale,u=t.references.filter(e=>1!==e.referenceType),c=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline;let f,m=p,g=e.mediaSequence||0;f="bigint"===typeof t.firstOffset?n.a.BigInt(l)+t.firstOffset:l+t.firstOffset;for(let y=0;y<u.length;y++){const e=t.references[y],o=e.referencedSize,l=e.subsegmentDuration;let u;u="bigint"===typeof f?f+n.a.BigInt(o)-n.a.BigInt(1):f+o-1;const v=`${f}-${u}`,b={baseUrl:i,timescale:d,timeline:a,periodStart:p,presentationTime:m,number:g,duration:l,sourceDuration:r,indexRange:v,type:h},_=E(b)[0];s&&(_.map=s),c.push(_),f+="bigint"===typeof f?n.a.BigInt(o):o,m+=l/d,g++}return e.segments=c,e},C=["AUDIO","SUBTITLES"],k=1/60,I=e=>g(e,({timeline:e})=>e).sort((e,t)=>e.timeline>t.timeline?1:-1),P=(e,t)=>{for(let i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null},O=e=>{let t=[];return a(e,C,(e,i,s,r)=>{t=t.concat(e.playlists||[])}),t},L=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,i)=>{t.number=e.mediaSequence+i})},A=({oldPlaylists:e,newPlaylists:t,timelineStarts:i})=>{t.forEach(t=>{t.discontinuitySequence=i.findIndex((function({timeline:e}){return e===t.timeline}));const s=P(e,t.attributes.NAME);if(!s)return;if(t.sidx)return;const r=t.segments[0],n=s.segments.findIndex((function(e){return Math.abs(e.presentationTime-r.presentationTime)<k}));if(-1===n)return L({playlist:t,mediaSequence:s.mediaSequence+s.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!s.segments.length&&t.timeline>s.timeline||s.segments.length&&t.timeline>s.segments[s.segments.length-1].timeline)&&t.discontinuitySequence--);const a=s.segments[n];a.discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),L({playlist:t,mediaSequence:s.segments[n].number})})},D=({oldManifest:e,newManifest:t})=>{const i=e.playlists.concat(O(e)),s=t.playlists.concat(O(t));return t.timelineStarts=I([e.timelineStarts,t.timelineStarts]),A({oldPlaylists:i,newPlaylists:s,timelineStarts:t.timelineStarts}),t},M=e=>e&&e.uri+"-"+b(e.byterange),N=e=>{const t=e.reduce((function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e}),{});let i=[];return Object.values(t).forEach(e=>{const t=c(e.reduce((e,t)=>{const i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[i].segments.push(...t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));i=i.concat(t)}),i.map(e=>(e.discontinuityStarts=m(e.segments||[],"discontinuity"),e))},R=(e,t)=>{const i=M(e.sidx),s=i&&t[i]&&t[i].sidx;return s&&x(e,s,e.sidx.resolvedUri),e},U=(e,t={})=>{if(!Object.keys(t).length)return e;for(const i in e)e[i]=R(e[i],t);return e},B=({attributes:e,segments:t,sidx:i,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:n},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,["PROGRAM-ID"]:1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),i&&(o.sidx=i),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},j=({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:r})=>{"undefined"===typeof t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const n={NAME:e.id,BANDWIDTH:e.bandwidth,["PROGRAM-ID"]:1};e.codecs&&(n.CODECS=e.codecs);const a={attributes:n,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:r,mediaSequence:i,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a},F=(e,t={},i=!1)=>{let s;const r=e.reduce((e,r)=>{const n=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"";let o=r.attributes.label||"main";if(a&&!r.attributes.label){const e=n?` (${n})`:"";o=`${r.attributes.lang}${e}`}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===n,playlists:[],uri:""});const l=R(B(r,i),t);return e[o].playlists.push(l),"undefined"===typeof s&&"main"===n&&(s=r,s.default=!0),e},{});if(!s){const e=Object.keys(r)[0];r[e].default=!0}return r},q=(e,t={})=>e.reduce((e,i)=>{const s=i.attributes.label||i.attributes.lang||"text";return e[s]||(e[s]={language:s,default:!1,autoselect:!1,playlists:[],uri:""}),e[s].playlists.push(R(j(i),t)),e},{}),$=e=>e.reduce((e,t)=>t?(t.forEach(t=>{const{channel:i,language:s}=t;e[s]={autoselect:!1,default:!1,instreamId:i,language:s},t.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[s].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[s]["3D"]=t["3D"])}),e):e,{}),H=({attributes:e,segments:t,sidx:i,discontinuityStarts:s})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,["PROGRAM-ID"]:1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),i&&(r.sidx=i),r},z=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,V=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,G=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,W=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex((function({timeline:t}){return t===e.timeline})),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},X=e=>e?Object.keys(e).reduce((t,i)=>{const s=e[i];return t.concat(s.playlists)},[]):[],Y=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:s={},previousManifest:r,eventStream:n})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:d}=e[0].attributes,u=N(e.filter(z)).map(H),c=N(e.filter(V)),h=N(e.filter(G)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},["CLOSED-CAPTIONS"]:{},SUBTITLES:{}},uri:"",duration:a,playlists:U(u,s)};d>=0&&(f.minimumUpdatePeriod=1e3*d),t&&(f.locations=t),i&&(f.contentSteering=i),"dynamic"===o&&(f.suggestedPresentationDelay=l),n&&n.length>0&&(f.eventStream=n);const m=0===f.playlists.length,g=c.length?F(c,s,m):null,y=h.length?q(h,s):null,v=u.concat(X(g),X(y)),b=v.map(({timelineStarts:e})=>e);return f.timelineStarts=I(b),W(v,f.timelineStarts),g&&(f.mediaGroups.AUDIO.audio=g),y&&(f.mediaGroups.SUBTITLES.subs=y),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=$(p)),r?D({oldManifest:r,newManifest:f}):f},J=(e,t,i)=>{const{NOW:s,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,d=(s+r)/1e3,u=n+o,c=d+l,h=c-u;return Math.ceil((h*a-t)/i)},K=(e,t)=>{const{type:i,minimumUpdatePeriod:s=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:l}=e,d=[];let u=-1;for(let c=0;c<t.length;c++){const h=t[c],p=h.d,f=h.r||0,m=h.t||0;let g;if(u<0&&(u=m),m&&m>u&&(u=m),f<0){const o=c+1;g=o===t.length?"dynamic"===i&&s>0&&r.indexOf("$Number$")>0?J(e,u,p):(n*a-u)/p:(t[o].t-u)/p}else g=f+1;const y=o+d.length+g;let v=o+d.length;while(v<y)d.push({number:v,duration:p/a,time:u,timeline:l}),u+=p,v++}return d},Q=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Z=e=>(t,i,s,r)=>{if("$$"===t)return"$";if("undefined"===typeof e[i])return t;const n=""+e[i];return"RepresentationID"===i?n:(r=s?parseInt(r,10):1,n.length>=r?n:`${new Array(r-n.length+1).join("0")}${n}`)},ee=(e,t)=>e.replace(Q,Z(t)),te=(e,t)=>e.duration||t?e.duration?w(e):K(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}],ie=(e,t)=>{const i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:r={sourceURL:"",range:""}}=e,n=v({baseUrl:e.baseUrl,source:ee(r.sourceURL,i),range:r.range}),a=te(e,t);return a.map(t=>{i.Number=t.number,i.Time=t.time;const r=ee(e.media||"",i),a=e.timescale||1,o=e.presentationTimeOffset||0,l=e.periodStart+(t.time-o)/a,d={uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:Object(s["a"])(e.baseUrl||"",r),map:n,number:t.number,presentationTime:l};return d})},se=(e,t)=>{const{baseUrl:i,initialization:s={}}=e,r=v({baseUrl:i,source:s.sourceURL,range:s.range}),n=v({baseUrl:i,source:t.media,range:t.mediaRange});return n.map=r,n},re=(e,t)=>{const{duration:i,segmentUrls:s=[],periodStart:r}=e;if(!i&&!t||i&&t)throw new Error(y.SEGMENT_TIME_UNSPECIFIED);const n=s.map(t=>se(e,t));let a;i&&(a=w(e)),t&&(a=K(e,t));const o=a.map((t,i)=>{if(n[i]){const s=n[i],a=e.timescale||1,o=e.presentationTimeOffset||0;return s.timeline=t.timeline,s.duration=t.duration,s.number=t.number,s.presentationTime=r+(t.time-o)/a,s}}).filter(e=>e);return o},ne=({attributes:e,segmentInfo:t})=>{let i,s;t.template?(s=ie,i=u(e,t.template)):t.base?(s=E,i=u(e,t.base)):t.list&&(s=re,i=u(e,t.list));const r={attributes:e};if(!s)return r;const n=s(i,t.segmentTimeline);if(i.duration){const{duration:e,timescale:t=1}=i;i.duration=e/t}else n.length?i.duration=n.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):i.duration=0;return r.attributes=i,r.segments=n,t.base&&i.indexRange&&(r.sidx=n[0],r.segments=[]),r},ae=e=>e.map(ne),oe=(e,t)=>f(e.childNodes).filter(({tagName:e})=>e===t),le=e=>e.textContent.trim(),de=e=>parseFloat(e.split("/").reduce((e,t)=>e/t)),ue=e=>{const t=31536e3,i=2592e3,s=86400,r=3600,n=60,a=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,o=a.exec(e);if(!o)return 0;const[l,d,u,c,h,p]=o.slice(1);return parseFloat(l||0)*t+parseFloat(d||0)*i+parseFloat(u||0)*s+parseFloat(c||0)*r+parseFloat(h||0)*n+parseFloat(p||0)},ce=e=>{const t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},he={mediaPresentationDuration(e){return ue(e)},availabilityStartTime(e){return ce(e)/1e3},minimumUpdatePeriod(e){return ue(e)},suggestedPresentationDelay(e){return ue(e)},type(e){return e},timeShiftBufferDepth(e){return ue(e)},start(e){return ue(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return de(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){const t=parseInt(e,10);return isNaN(t)?ue(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},DEFAULT(e){return e}},pe=e=>e&&e.attributes?f(e.attributes).reduce((e,t)=>{const i=he[t.name]||he.DEFAULT;return e[t.name]=i(t.value),e},{}):{},fe={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},me=(e,t)=>t.length?p(e.map((function(e){return t.map((function(t){const i=le(t),r=Object(s["a"])(e.baseUrl,i),n=u(pe(t),{baseUrl:r});return r!==i&&!n.serviceLocation&&e.serviceLocation&&(n.serviceLocation=e.serviceLocation),n}))}))):e,ge=e=>{const t=oe(e,"SegmentTemplate")[0],i=oe(e,"SegmentList")[0],s=i&&oe(i,"SegmentURL").map(e=>u({tag:"SegmentURL"},pe(e))),r=oe(e,"SegmentBase")[0],n=i||t,a=n&&oe(n,"SegmentTimeline")[0],o=i||r||t,l=o&&oe(o,"Initialization")[0],d=t&&pe(t);d&&l?d.initialization=l&&pe(l):d&&d.initialization&&(d.initialization={sourceURL:d.initialization});const c={template:d,segmentTimeline:a&&oe(a,"S").map(e=>pe(e)),list:i&&u(pe(i),{segmentUrls:s,initialization:pe(l)}),base:r&&u(pe(r),{initialization:pe(l)})};return Object.keys(c).forEach(e=>{c[e]||delete c[e]}),c},ye=(e,t,i)=>s=>{const r=oe(s,"BaseURL"),n=me(t,r),a=u(e,pe(s)),o=ge(s);return n.map(e=>({segmentInfo:u(i,o),attributes:u(a,e)}))},ve=e=>e.reduce((e,t)=>{const i=pe(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const s=fe[i.schemeIdUri];if(s){e[s]={attributes:i};const r=oe(t,"cenc:pssh")[0];if(r){const t=le(r);e[s].pssh=t&&Object(o["a"])(t)}}return e},{}),be=e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){const t="string"!==typeof e.value?[]:e.value.split(";");return t.map(e=>{let t,i;return i=e,/^CC\d=/.test(e)?[t,i]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:i}})}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){const t="string"!==typeof e.value?[]:e.value.split(";");return t.map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,s=""]=e.split("=");t.channel=i,t.language=e,s.split(",").forEach(e=>{const[i,s]=e.split(":");"lang"===i?t.language=s:"er"===i?t.easyReader=Number(s):"war"===i?t.aspectRatio=Number(s):"3D"===i&&(t["3D"]=Number(s))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})}},_e=e=>p(oe(e.node,"EventStream").map(t=>{const i=pe(t),s=i.schemeIdUri;return oe(t,"Event").map(t=>{const r=pe(t),n=r.presentationTime||0,a=i.timescale||1,o=r.duration||0,l=n/a+e.attributes.start;return{schemeIdUri:s,value:i.value,id:r.id,start:l,end:l+o/a,messageData:le(t)||r.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})})),Te=(e,t,i)=>s=>{const r=pe(s),n=me(t,oe(s,"BaseURL")),a=oe(s,"Role")[0],o={role:pe(a)};let l=u(e,r,o);const d=oe(s,"Accessibility")[0],c=be(pe(d));c&&(l=u(l,{captionServices:c}));const h=oe(s,"Label")[0];if(h&&h.childNodes.length){const e=h.childNodes[0].nodeValue.trim();l=u(l,{label:e})}const f=ve(oe(s,"ContentProtection"));Object.keys(f).length&&(l=u(l,{contentProtection:f}));const m=ge(s),g=oe(s,"Representation"),y=u(i,m);return p(g.map(ye(l,n,y)))},Se=(e,t)=>(i,s)=>{const r=me(t,oe(i.node,"BaseURL")),n=u(e,{periodStart:i.attributes.start});"number"===typeof i.attributes.duration&&(n.periodDuration=i.attributes.duration);const a=oe(i.node,"AdaptationSet"),o=ge(i.node);return p(a.map(Te(n,r,o)))},we=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const i=u({serverURL:le(e[0])},pe(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},Ee=({attributes:e,priorPeriodAttributes:t,mpdType:i})=>"number"===typeof e.start?e.start:t&&"number"===typeof t.start&&"number"===typeof t.duration?t.start+t.duration:t||"static"!==i?null:0,xe=(e,t={})=>{const{manifestUri:i="",NOW:s=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=t,a=oe(e,"Period");if(!a.length)throw new Error(y.INVALID_NUMBER_OF_PERIOD);const o=oe(e,"Location"),l=pe(e),d=me([{baseUrl:i}],oe(e,"BaseURL")),u=oe(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=r,o.length&&(l.locations=o.map(le));const c=[];return a.forEach((e,t)=>{const i=pe(e),s=c[t-1];i.start=Ee({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:l.type}),c.push({node:e,attributes:i})}),{locations:l.locations,contentSteeringInfo:we(u,n),representationInfo:p(c.map(Se(l,d))),eventStream:p(c.map(_e))}},Ce=e=>{if(""===e)throw new Error(y.DASH_EMPTY_MANIFEST);const t=new l["DOMParser"];let i,s;try{i=t.parseFromString(e,"application/xml"),s=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(r){}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error(y.DASH_INVALID_XML);return s},ke=e=>{const t=oe(e,"UTCTiming")[0];if(!t)return null;const i=pe(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(y.UNSUPPORTED_UTC_TIMING_SCHEME)}return i},Ie=(e,t={})=>{const i=xe(Ce(e),t),s=ae(i.representationInfo);return Y({dashPlaylists:s,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})},Pe=e=>ke(Ce(e))},"848b":function(e,t,i){"use strict";var s=i("4a0c"),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var n={},a=s.version.split(".");function o(e,t){for(var i=t?t.split("."):a,s=e.split("."),r=0;r<3;r++){if(i[r]>s[r])return!0;if(i[r]<s[r])return!1}return!1}function l(e,t,i){if("object"!==typeof e)throw new TypeError("options must be an object");var s=Object.keys(e),r=s.length;while(r-- >0){var n=s[r],a=t[n];if(a){var o=e[n],l=void 0===o||a(o,n,e);if(!0!==l)throw new TypeError("option "+n+" must be "+l)}else if(!0!==i)throw Error("Unknown option "+n)}}r.transitional=function(e,t,i){var r=t&&o(t);function a(e,t){return"[Axios v"+s.version+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,s,o){if(!1===e)throw new Error(a(s," has been removed in "+t));return r&&!n[s]&&(n[s]=!0,console.warn(a(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,s,o)}},e.exports={isOlderVersion:o,assertOptions:l,validators:r}},"861d":function(e,t,i){"use strict";var s=i("1626");e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},"88f3":function(e,t,i){},8925:function(e,t,i){"use strict";var s=i("e330"),r=i("1626"),n=i("c6cd"),a=s(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return a(e)}),e.exports=n.inspectSource},"89a7":function(e,t,i){"use strict";function s(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"===typeof i.find)return i.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var r=e[s];if(t.call(void 0,r,s,e))return r}}function r(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}function n(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}var a=r({HTML:"text/html",isHTML:function(e){return e===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=n,t.find=s,t.freeze=r,t.MIME_TYPE=a,t.NAMESPACE=o},"8a69":function(e,t,i){"use strict";i("f955")},"8b53":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,n=function(e){return s.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},"8c00":function(e,t,i){"use strict";var s=i("be09"),r=function(e,t){return void 0===t&&(t=!1),function(i,r,a){if(i)e(i);else if(r.statusCode>=400&&r.statusCode<=599){var o=a;if(t)if(s.TextDecoder){var l=n(r.headers&&r.headers["content-type"]);try{o=new TextDecoder(l).decode(a)}catch(d){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o})}else e(null,a)}};function n(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){var i=t.split("="),s=i[0],r=i[1];return"charset"===s.trim()?r.trim():e}),"utf-8")}e.exports=r},"8c10":function(e,t){function i(e,t){var i,s=null;try{i=JSON.parse(e,t)}catch(r){s=r}return[s,i]}e.exports=i},"8df4":function(e,t,i){"use strict";var s=i("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;e((function(e){i.reason||(i.reason=new s(e),t(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"90b1":function(e,t,i){"use strict";i("9e9f")},"90e3":function(e,t,i){"use strict";var s=i("e330"),r=0,n=Math.random(),a=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+n,36)}},9112:function(e,t,i){"use strict";var s=i("83ab"),r=i("9bf2"),n=i("5c6c");e.exports=s?function(e,t,i){return r.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},9152:function(e,t){
|
9
|
+
var a=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var i=e.indexOf(":"),s=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();"undefined"===typeof t[s]?t[s]=r:Array.isArray(t[s])?t[s].push(r):t[s]=[t[s],r]})),t):t};function o(e,t){for(var i=0;i<e.length;i++)t(e[i])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function d(e,t,i){var s=e;return n(t)?(i=t,"string"===typeof e&&(s={uri:e})):s=r({},t,{uri:e}),s.callback=i,s}function u(e,t,i){return t=d(e,t,i),c(t)}function c(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,i=function(i,s,r){t||(t=!0,e.callback(i,s,r))};function s(){4===p.readyState&&setTimeout(o,0)}function r(){var e=void 0;if(e=p.response?p.response:p.responseText||h(p),_)try{e=JSON.parse(e)}catch(t){}return e}function n(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,i(e,T)}function o(){if(!c){var t;clearTimeout(f),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var s=T,n=null;return 0!==t?(s={body:r(),statusCode:t,method:g,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(s.headers=a(p.getAllResponseHeaders()))):n=new Error("Internal XMLHttpRequest Error"),i(n,s,s.body)}}var d,c,p=e.xhr||null;p||(p=e.cors||e.useXDR?new u.XDomainRequest:new u.XMLHttpRequest);var f,m=p.url=e.uri||e.url,g=p.method=e.method||"GET",y=e.body||e.data,v=p.headers=e.headers||{},b=!!e.sync,_=!1,T={body:void 0,headers:{},statusCode:0,method:g,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(_=!0,v["accept"]||v["Accept"]||(v["Accept"]="application/json"),"GET"!==g&&"HEAD"!==g&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),p.onreadystatechange=s,p.onload=o,p.onerror=n,p.onprogress=function(){},p.onabort=function(){c=!0},p.ontimeout=n,p.open(g,m,!b,e.username,e.password),b||(p.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!c){c=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",n(e)}}),e.timeout)),p.setRequestHeader)for(d in v)v.hasOwnProperty(d)&&p.setRequestHeader(d,v[d]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(y||null),p}function h(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(i){}return null}function p(){}e.exports=u,e.exports.default=u,u.XMLHttpRequest=s.XMLHttpRequest||p,u.XDomainRequest="withCredentials"in new u.XMLHttpRequest?u.XMLHttpRequest:s.XDomainRequest,o(["get","put","post","patch","head","delete"],(function(e){u["delete"===e?"del":e]=function(t,i,s){return i=d(t,i,s),i.method=e.toUpperCase(),c(i)}}))},"36c6":function(e,t){var i,s,r,n,a,o,l,d=9e4;i=function(e){return e*d},s=function(e,t){return e*t},r=function(e){return e/d},n=function(e,t){return e/t},a=function(e,t){return i(n(e,t))},o=function(e,t){return s(r(e),t)},l=function(e,t,i){return r(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:d,secondsToVideoTs:i,secondsToAudioTs:s,videoTsToSeconds:r,audioTsToSeconds:n,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:l}},"383a":function(e,t,i){"use strict";i("dc6a")},"387f":function(e,t,i){"use strict";e.exports=function(e,t,i,s,r){return e.config=t,i&&(e.code=i),e.request=s,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},3934:function(e,t,i){"use strict";var s=i("c532");e.exports=s.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function r(e){var s=e;return t&&(i.setAttribute("href",s),s=i.href),i.setAttribute("href",s),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=r(window.location.href),function(t){var i=s.isString(t)?r(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},"3a34":function(e,t,i){"use strict";var s=i("83ab"),r=i("e8b5"),n=TypeError,a=Object.getOwnPropertyDescriptor,o=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(r(e)&&!a(e,"length").writable)throw new n("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},"3a9b":function(e,t,i){"use strict";var s=i("e330");e.exports=s({}.isPrototypeOf)},"40d5":function(e,t,i){"use strict";var s=i("d039");e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4362:function(e,t,i){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,s="/";t.cwd=function(){return s},t.chdir=function(t){e||(e=i("df7c")),s=e.resolve(t,s)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"44ad":function(e,t,i){"use strict";var s=i("e330"),r=i("d039"),n=i("c6b6"),a=Object,o=s("".split);e.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===n(e)?o(e,""):a(e)}:a},"467f":function(e,t,i){"use strict";var s=i("2d83");e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(s("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},"485a":function(e,t,i){"use strict";var s=i("c65b"),r=i("1626"),n=i("861d"),a=TypeError;e.exports=function(e,t){var i,o;if("string"===t&&r(i=e.toString)&&!n(o=s(i,e)))return o;if(r(i=e.valueOf)&&!n(o=s(i,e)))return o;if("string"!==t&&r(i=e.toString)&&!n(o=s(i,e)))return o;throw new a("Can't convert object to primitive value")}},"48ec":function(e,t,i){},"4a0c":function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","C:\\\\Users\\\\Lemon.Ge\\\\Desktop\\\\cms"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"C:\\\\Users\\\\Lemon.Ge\\\\Desktop\\\\cms","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},"4a7b":function(e,t,i){"use strict";var s=i("c532");e.exports=function(e,t){t=t||{};var i={},r=["url","method","data"],n=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(e,t){return s.isPlainObject(e)&&s.isPlainObject(t)?s.merge(e,t):s.isPlainObject(t)?s.merge({},t):s.isArray(t)?t.slice():t}function d(r){s.isUndefined(t[r])?s.isUndefined(e[r])||(i[r]=l(void 0,e[r])):i[r]=l(e[r],t[r])}s.forEach(r,(function(e){s.isUndefined(t[e])||(i[e]=l(void 0,t[e]))})),s.forEach(n,d),s.forEach(a,(function(r){s.isUndefined(t[r])?s.isUndefined(e[r])||(i[r]=l(void 0,e[r])):i[r]=l(void 0,t[r])})),s.forEach(o,(function(s){s in t?i[s]=l(e[s],t[s]):s in e&&(i[s]=l(void 0,e[s]))}));var u=r.concat(n).concat(a).concat(o),c=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return s.forEach(c,d),i}},"4d64":function(e,t,i){"use strict";var s=i("fc6a"),r=i("23cb"),n=i("07fa"),a=function(e){return function(t,i,a){var o,l=s(t),d=n(l),u=r(a,d);if(e&&i!==i){while(d>u)if(o=l[u++],o!==o)return!0}else for(;d>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4e9a":function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return a}));var s=i("be09"),r=i.n(s),n=function(t){return r.a.atob?r.a.atob(t):e.from(t,"base64").toString("binary")};function a(e){for(var t=n(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}}).call(this,i("b639").Buffer)},"50c4":function(e,t,i){"use strict";var s=i("5926"),r=Math.min;e.exports=function(e){var t=s(e);return t>0?r(t,9007199254740991):0}},5213:function(e,t,i){"use strict";i("eb7c")},5270:function(e,t,i){"use strict";var s=i("c532"),r=i("c401"),n=i("2e67"),a=i("2444");function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=s.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),s.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return n(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5692:function(e,t,i){"use strict";var s=i("c430"),r=i("c6cd");(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(e,t,i){"use strict";var s=i("d066"),r=i("e330"),n=i("241c"),a=i("7418"),o=i("825a"),l=r([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=n.f(o(e)),i=a.f;return i?l(t,i(e)):t}},5848:function(e,t,i){"use strict";i("6ebe")},5926:function(e,t,i){"use strict";var s=i("b42e");e.exports=function(e){var t=+e;return t!==t||0===t?0:s(t)}},"59ed":function(e,t,i){"use strict";var s=i("1626"),r=i("0d51"),n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not a function")}},"5b9b":function(e,t,i){"use strict";i("0326")},"5c6c":function(e,t,i){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e77":function(e,t,i){"use strict";var s=i("83ab"),r=i("1a2d"),n=Function.prototype,a=s&&Object.getOwnPropertyDescriptor,o=r(n,"name"),l=o&&"something"===function(){}.name,d=o&&(!s||s&&a(n,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:d}},"5f02":function(e,t,i){"use strict";e.exports=function(e){return"object"===typeof e&&!0===e.isAxiosError}},"605d":function(e,t,i){"use strict";var s=i("da84"),r=i("c6b6");e.exports="process"===r(s.process)},6374:function(e,t,i){"use strict";var s=i("da84"),r=Object.defineProperty;e.exports=function(e,t){try{r(s,e,{value:t,configurable:!0,writable:!0})}catch(i){s[e]=t}return t}},"63ec":function(e,t,i){"use strict";var s=i("d136"),r=i.n(s),n=i("be09"),a=i.n(n),o="http://example.com",l=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=a.a.location&&a.a.location.href||"");var i="function"===typeof a.a.URL,s=/^\/\//.test(e),n=!a.a.location&&!/\/\//i.test(e);if(i?e=new a.a.URL(e,a.a.location||o):/\/\//i.test(e)||(e=r.a.buildAbsoluteURL(a.a.location&&a.a.location.href||"",e)),i){var l=new URL(t,e);return n?l.href.slice(o.length):s?l.href.slice(l.protocol.length):l.href}return r.a.buildAbsoluteURL(e,t)};t["a"]=l},"69f3":function(e,t,i){"use strict";var s,r,n,a=i("cdce"),o=i("da84"),l=i("861d"),d=i("9112"),u=i("1a2d"),c=i("c6cd"),h=i("f772"),p=i("d012"),f="Object already initialized",m=o.TypeError,g=o.WeakMap,y=function(e){return n(e)?r(e):s(e,{})},v=function(e){return function(t){var i;if(!l(t)||(i=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return i}};if(a||c.state){var b=c.state||(c.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,s=function(e,t){if(b.has(e))throw new m(f);return t.facade=e,b.set(e,t),t},r=function(e){return b.get(e)||{}},n=function(e){return b.has(e)}}else{var _=h("state");p[_]=!0,s=function(e,t){if(u(e,_))throw new m(f);return t.facade=e,d(e,_,t),t},r=function(e){return u(e,_)?e[_]:{}},n=function(e){return u(e,_)}}e.exports={set:s,get:r,has:n,enforce:y,getterFor:v}},"6ebe":function(e,t,i){},7234:function(e,t,i){"use strict";e.exports=function(e){return null===e||void 0===e}},7418:function(e,t,i){"use strict";t.f=Object.getOwnPropertySymbols},"77ed":function(e,t,i){},7839:function(e,t,i){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7a4c":function(e,t,i){},"7a77":function(e,t,i){"use strict";function s(e){this.message=e}s.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},s.prototype.__CANCEL__=!0,e.exports=s},"7aac":function(e,t,i){"use strict";var s=i("c532");e.exports=s.isStandardBrowserEnv()?function(){return{write:function(e,t,i,r,n,a){var o=[];o.push(e+"="+encodeURIComponent(t)),s.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),s.isString(r)&&o.push("path="+r),s.isString(n)&&o.push("domain="+n),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,i){"use strict";var s=i("1d80"),r=Object;e.exports=function(e){return r(s(e))}},"7f74":function(e,t,i){},"81c0":function(e,t,i){var s=i("a968").getUint64,r=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===i.version?(i.earliestPresentationTime=t.getUint32(r),i.firstOffset=t.getUint32(r+4),r+=8):(i.earliestPresentationTime=s(e.subarray(r)),i.firstOffset=s(e.subarray(r+8)),r+=16),r+=2;var n=t.getUint16(r);for(r+=2;n>0;r+=12,n--)i.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return i};e.exports=r},"825a":function(e,t,i){"use strict";var s=i("861d"),r=String,n=TypeError;e.exports=function(e){if(s(e))return e;throw new n(r(e)+" is not an object")}},8362:function(e,t){e.exports=s;var i=Object.prototype.toString;function s(e){if(!e)return!1;var t=i.call(e);return"[object Function]"===t||"function"===typeof e&&"[object RegExp]"!==t||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},"83ab":function(e,t,i){"use strict";var s=i("d039");e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,i){"use strict";var s=i("d925"),r=i("e683");e.exports=function(e,t){return e&&!s(t)?r(e,t):t}},8484:function(e,t,i){"use strict";i.d(t,"a",(function(){return x})),i.d(t,"b",(function(){return M})),i.d(t,"c",(function(){return Ie})),i.d(t,"d",(function(){return Pe}));var s=i("63ec"),r=i("be09"),n=i.n(r),a=function(e,t,i){t.forEach((function(t){for(var s in e.mediaGroups[t])for(var r in e.mediaGroups[t][s]){var n=e.mediaGroups[t][s][r];i(n,t,s,r)}}))},o=i("ffdf"),l=i("210b");const d=e=>!!e&&"object"===typeof e,u=(...e)=>e.reduce((e,t)=>("object"!==typeof t||Object.keys(t).forEach(i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):d(e[i])&&d(t[i])?e[i]=u(e[i],t[i]):e[i]=t[i]}),e),{}),c=e=>Object.keys(e).map(t=>e[t]),h=(e,t)=>{const i=[];for(let s=e;s<t;s++)i.push(s);return i},p=e=>e.reduce((e,t)=>e.concat(t),[]),f=e=>{if(!e.length)return[];const t=[];for(let i=0;i<e.length;i++)t.push(e[i]);return t},m=(e,t)=>e.reduce((e,i,s)=>(i[t]&&e.push(s),e),[]),g=(e,t)=>c(e.reduce((e,i)=>(i.forEach(i=>{e[t(i)]=i}),e),{}));var y={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"};const v=({baseUrl:e="",source:t="",range:i="",indexRange:r=""})=>{const a={uri:t,resolvedUri:Object(s["a"])(e||"",t)};if(i||r){const e=i||r,t=e.split("-");let s,o=n.a.BigInt?n.a.BigInt(t[0]):parseInt(t[0],10),l=n.a.BigInt?n.a.BigInt(t[1]):parseInt(t[1],10);o<Number.MAX_SAFE_INTEGER&&"bigint"===typeof o&&(o=Number(o)),l<Number.MAX_SAFE_INTEGER&&"bigint"===typeof l&&(l=Number(l)),s="bigint"===typeof l||"bigint"===typeof o?n.a.BigInt(l)-n.a.BigInt(o)+n.a.BigInt(1):l-o+1,"bigint"===typeof s&&s<Number.MAX_SAFE_INTEGER&&(s=Number(s)),a.byterange={length:s,offset:o}}return a},b=e=>{let t;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?n.a.BigInt(e.offset)+n.a.BigInt(e.length)-n.a.BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`},_=e=>(e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),T={static(e){const{duration:t,timescale:i=1,sourceDuration:s,periodDuration:r}=e,n=_(e.endNumber),a=t/i;return"number"===typeof n?{start:0,end:n}:"number"===typeof r?{start:0,end:r/a}:{start:0,end:s/a}},dynamic(e){const{NOW:t,clientOffset:i,availabilityStartTime:s,timescale:r=1,duration:n,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,d=_(e.endNumber),u=(t+i)/1e3,c=s+a,h=u+o,p=h-c,f=Math.ceil(p*r/n),m=Math.floor((u-c-l)*r/n),g=Math.floor((u-c)*r/n);return{start:Math.max(0,m),end:"number"===typeof d?d:Math.min(f,g)}}},S=e=>t=>{const{duration:i,timescale:s=1,periodStart:r,startNumber:n=1}=e;return{number:n+t,duration:i/s,timeline:r,time:t*i}},w=e=>{const{type:t,duration:i,timescale:s=1,periodDuration:r,sourceDuration:n}=e,{start:a,end:o}=T[t](e),l=h(a,o).map(S(e));if("static"===t){const e=l.length-1,t="number"===typeof r?r:n;l[e].duration=t-i/s*e}return l},E=e=>{const{baseUrl:t,initialization:i={},sourceDuration:s,indexRange:r="",periodStart:n,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error(y.NO_BASE_URL);const d=v({baseUrl:t,source:i.sourceURL,range:i.range}),u=v({baseUrl:t,source:t,indexRange:r});if(u.map=d,l){const t=w(e);t.length&&(u.duration=t[0].duration,u.timeline=t[0].timeline)}else s&&(u.duration=s,u.timeline=n);return u.presentationTime=a||n,u.number=o,[u]},x=(e,t,i)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,o=e.sidx.byterange,l=o.offset+o.length,d=t.timescale,u=t.references.filter(e=>1!==e.referenceType),c=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline;let f,m=p,g=e.mediaSequence||0;f="bigint"===typeof t.firstOffset?n.a.BigInt(l)+t.firstOffset:l+t.firstOffset;for(let y=0;y<u.length;y++){const e=t.references[y],o=e.referencedSize,l=e.subsegmentDuration;let u;u="bigint"===typeof f?f+n.a.BigInt(o)-n.a.BigInt(1):f+o-1;const v=`${f}-${u}`,b={baseUrl:i,timescale:d,timeline:a,periodStart:p,presentationTime:m,number:g,duration:l,sourceDuration:r,indexRange:v,type:h},_=E(b)[0];s&&(_.map=s),c.push(_),f+="bigint"===typeof f?n.a.BigInt(o):o,m+=l/d,g++}return e.segments=c,e},C=["AUDIO","SUBTITLES"],k=1/60,I=e=>g(e,({timeline:e})=>e).sort((e,t)=>e.timeline>t.timeline?1:-1),P=(e,t)=>{for(let i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null},O=e=>{let t=[];return a(e,C,(e,i,s,r)=>{t=t.concat(e.playlists||[])}),t},L=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,i)=>{t.number=e.mediaSequence+i})},A=({oldPlaylists:e,newPlaylists:t,timelineStarts:i})=>{t.forEach(t=>{t.discontinuitySequence=i.findIndex((function({timeline:e}){return e===t.timeline}));const s=P(e,t.attributes.NAME);if(!s)return;if(t.sidx)return;const r=t.segments[0],n=s.segments.findIndex((function(e){return Math.abs(e.presentationTime-r.presentationTime)<k}));if(-1===n)return L({playlist:t,mediaSequence:s.mediaSequence+s.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!s.segments.length&&t.timeline>s.timeline||s.segments.length&&t.timeline>s.segments[s.segments.length-1].timeline)&&t.discontinuitySequence--);const a=s.segments[n];a.discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),L({playlist:t,mediaSequence:s.segments[n].number})})},D=({oldManifest:e,newManifest:t})=>{const i=e.playlists.concat(O(e)),s=t.playlists.concat(O(t));return t.timelineStarts=I([e.timelineStarts,t.timelineStarts]),A({oldPlaylists:i,newPlaylists:s,timelineStarts:t.timelineStarts}),t},M=e=>e&&e.uri+"-"+b(e.byterange),N=e=>{const t=e.reduce((function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e}),{});let i=[];return Object.values(t).forEach(e=>{const t=c(e.reduce((e,t)=>{const i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[i].segments.push(...t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));i=i.concat(t)}),i.map(e=>(e.discontinuityStarts=m(e.segments||[],"discontinuity"),e))},R=(e,t)=>{const i=M(e.sidx),s=i&&t[i]&&t[i].sidx;return s&&x(e,s,e.sidx.resolvedUri),e},U=(e,t={})=>{if(!Object.keys(t).length)return e;for(const i in e)e[i]=R(e[i],t);return e},B=({attributes:e,segments:t,sidx:i,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:n},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,["PROGRAM-ID"]:1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:n,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),i&&(o.sidx=i),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},j=({attributes:e,segments:t,mediaSequence:i,discontinuityStarts:s,discontinuitySequence:r})=>{"undefined"===typeof t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const n={NAME:e.id,BANDWIDTH:e.bandwidth,["PROGRAM-ID"]:1};e.codecs&&(n.CODECS=e.codecs);const a={attributes:n,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:r,mediaSequence:i,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a},F=(e,t={},i=!1)=>{let s;const r=e.reduce((e,r)=>{const n=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"";let o=r.attributes.label||"main";if(a&&!r.attributes.label){const e=n?` (${n})`:"";o=`${r.attributes.lang}${e}`}e[o]||(e[o]={language:a,autoselect:!0,default:"main"===n,playlists:[],uri:""});const l=R(B(r,i),t);return e[o].playlists.push(l),"undefined"===typeof s&&"main"===n&&(s=r,s.default=!0),e},{});if(!s){const e=Object.keys(r)[0];r[e].default=!0}return r},q=(e,t={})=>e.reduce((e,i)=>{const s=i.attributes.label||i.attributes.lang||"text";return e[s]||(e[s]={language:s,default:!1,autoselect:!1,playlists:[],uri:""}),e[s].playlists.push(R(j(i),t)),e},{}),$=e=>e.reduce((e,t)=>t?(t.forEach(t=>{const{channel:i,language:s}=t;e[s]={autoselect:!1,default:!1,instreamId:i,language:s},t.hasOwnProperty("aspectRatio")&&(e[s].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[s].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[s]["3D"]=t["3D"])}),e):e,{}),H=({attributes:e,segments:t,sidx:i,discontinuityStarts:s})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,["PROGRAM-ID"]:1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),i&&(r.sidx=i),r},z=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,V=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,G=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,W=(e,t)=>{e.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=t.findIndex((function({timeline:t}){return t===e.timeline})),e.segments&&e.segments.forEach((e,t)=>{e.number=t})})},X=e=>e?Object.keys(e).reduce((t,i)=>{const s=e[i];return t.concat(s.playlists)},[]):[],Y=({dashPlaylists:e,locations:t,contentSteering:i,sidxMapping:s={},previousManifest:r,eventStream:n})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:d}=e[0].attributes,u=N(e.filter(z)).map(H),c=N(e.filter(V)),h=N(e.filter(G)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},["CLOSED-CAPTIONS"]:{},SUBTITLES:{}},uri:"",duration:a,playlists:U(u,s)};d>=0&&(f.minimumUpdatePeriod=1e3*d),t&&(f.locations=t),i&&(f.contentSteering=i),"dynamic"===o&&(f.suggestedPresentationDelay=l),n&&n.length>0&&(f.eventStream=n);const m=0===f.playlists.length,g=c.length?F(c,s,m):null,y=h.length?q(h,s):null,v=u.concat(X(g),X(y)),b=v.map(({timelineStarts:e})=>e);return f.timelineStarts=I(b),W(v,f.timelineStarts),g&&(f.mediaGroups.AUDIO.audio=g),y&&(f.mediaGroups.SUBTITLES.subs=y),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=$(p)),r?D({oldManifest:r,newManifest:f}):f},J=(e,t,i)=>{const{NOW:s,clientOffset:r,availabilityStartTime:n,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,d=(s+r)/1e3,u=n+o,c=d+l,h=c-u;return Math.ceil((h*a-t)/i)},K=(e,t)=>{const{type:i,minimumUpdatePeriod:s=0,media:r="",sourceDuration:n,timescale:a=1,startNumber:o=1,periodStart:l}=e,d=[];let u=-1;for(let c=0;c<t.length;c++){const h=t[c],p=h.d,f=h.r||0,m=h.t||0;let g;if(u<0&&(u=m),m&&m>u&&(u=m),f<0){const o=c+1;g=o===t.length?"dynamic"===i&&s>0&&r.indexOf("$Number$")>0?J(e,u,p):(n*a-u)/p:(t[o].t-u)/p}else g=f+1;const y=o+d.length+g;let v=o+d.length;while(v<y)d.push({number:v,duration:p/a,time:u,timeline:l}),u+=p,v++}return d},Q=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Z=e=>(t,i,s,r)=>{if("$$"===t)return"$";if("undefined"===typeof e[i])return t;const n=""+e[i];return"RepresentationID"===i?n:(r=s?parseInt(r,10):1,n.length>=r?n:`${new Array(r-n.length+1).join("0")}${n}`)},ee=(e,t)=>e.replace(Q,Z(t)),te=(e,t)=>e.duration||t?e.duration?w(e):K(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}],ie=(e,t)=>{const i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:r={sourceURL:"",range:""}}=e,n=v({baseUrl:e.baseUrl,source:ee(r.sourceURL,i),range:r.range}),a=te(e,t);return a.map(t=>{i.Number=t.number,i.Time=t.time;const r=ee(e.media||"",i),a=e.timescale||1,o=e.presentationTimeOffset||0,l=e.periodStart+(t.time-o)/a,d={uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:Object(s["a"])(e.baseUrl||"",r),map:n,number:t.number,presentationTime:l};return d})},se=(e,t)=>{const{baseUrl:i,initialization:s={}}=e,r=v({baseUrl:i,source:s.sourceURL,range:s.range}),n=v({baseUrl:i,source:t.media,range:t.mediaRange});return n.map=r,n},re=(e,t)=>{const{duration:i,segmentUrls:s=[],periodStart:r}=e;if(!i&&!t||i&&t)throw new Error(y.SEGMENT_TIME_UNSPECIFIED);const n=s.map(t=>se(e,t));let a;i&&(a=w(e)),t&&(a=K(e,t));const o=a.map((t,i)=>{if(n[i]){const s=n[i],a=e.timescale||1,o=e.presentationTimeOffset||0;return s.timeline=t.timeline,s.duration=t.duration,s.number=t.number,s.presentationTime=r+(t.time-o)/a,s}}).filter(e=>e);return o},ne=({attributes:e,segmentInfo:t})=>{let i,s;t.template?(s=ie,i=u(e,t.template)):t.base?(s=E,i=u(e,t.base)):t.list&&(s=re,i=u(e,t.list));const r={attributes:e};if(!s)return r;const n=s(i,t.segmentTimeline);if(i.duration){const{duration:e,timescale:t=1}=i;i.duration=e/t}else n.length?i.duration=n.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):i.duration=0;return r.attributes=i,r.segments=n,t.base&&i.indexRange&&(r.sidx=n[0],r.segments=[]),r},ae=e=>e.map(ne),oe=(e,t)=>f(e.childNodes).filter(({tagName:e})=>e===t),le=e=>e.textContent.trim(),de=e=>parseFloat(e.split("/").reduce((e,t)=>e/t)),ue=e=>{const t=31536e3,i=2592e3,s=86400,r=3600,n=60,a=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,o=a.exec(e);if(!o)return 0;const[l,d,u,c,h,p]=o.slice(1);return parseFloat(l||0)*t+parseFloat(d||0)*i+parseFloat(u||0)*s+parseFloat(c||0)*r+parseFloat(h||0)*n+parseFloat(p||0)},ce=e=>{const t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},he={mediaPresentationDuration(e){return ue(e)},availabilityStartTime(e){return ce(e)/1e3},minimumUpdatePeriod(e){return ue(e)},suggestedPresentationDelay(e){return ue(e)},type(e){return e},timeShiftBufferDepth(e){return ue(e)},start(e){return ue(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return de(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){const t=parseInt(e,10);return isNaN(t)?ue(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},DEFAULT(e){return e}},pe=e=>e&&e.attributes?f(e.attributes).reduce((e,t)=>{const i=he[t.name]||he.DEFAULT;return e[t.name]=i(t.value),e},{}):{},fe={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},me=(e,t)=>t.length?p(e.map((function(e){return t.map((function(t){const i=le(t),r=Object(s["a"])(e.baseUrl,i),n=u(pe(t),{baseUrl:r});return r!==i&&!n.serviceLocation&&e.serviceLocation&&(n.serviceLocation=e.serviceLocation),n}))}))):e,ge=e=>{const t=oe(e,"SegmentTemplate")[0],i=oe(e,"SegmentList")[0],s=i&&oe(i,"SegmentURL").map(e=>u({tag:"SegmentURL"},pe(e))),r=oe(e,"SegmentBase")[0],n=i||t,a=n&&oe(n,"SegmentTimeline")[0],o=i||r||t,l=o&&oe(o,"Initialization")[0],d=t&&pe(t);d&&l?d.initialization=l&&pe(l):d&&d.initialization&&(d.initialization={sourceURL:d.initialization});const c={template:d,segmentTimeline:a&&oe(a,"S").map(e=>pe(e)),list:i&&u(pe(i),{segmentUrls:s,initialization:pe(l)}),base:r&&u(pe(r),{initialization:pe(l)})};return Object.keys(c).forEach(e=>{c[e]||delete c[e]}),c},ye=(e,t,i)=>s=>{const r=oe(s,"BaseURL"),n=me(t,r),a=u(e,pe(s)),o=ge(s);return n.map(e=>({segmentInfo:u(i,o),attributes:u(a,e)}))},ve=e=>e.reduce((e,t)=>{const i=pe(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());const s=fe[i.schemeIdUri];if(s){e[s]={attributes:i};const r=oe(t,"cenc:pssh")[0];if(r){const t=le(r);e[s].pssh=t&&Object(o["a"])(t)}}return e},{}),be=e=>{if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){const t="string"!==typeof e.value?[]:e.value.split(";");return t.map(e=>{let t,i;return i=e,/^CC\d=/.test(e)?[t,i]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:i}})}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){const t="string"!==typeof e.value?[]:e.value.split(";");return t.map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[i,s=""]=e.split("=");t.channel=i,t.language=e,s.split(",").forEach(e=>{const[i,s]=e.split(":");"lang"===i?t.language=s:"er"===i?t.easyReader=Number(s):"war"===i?t.aspectRatio=Number(s):"3D"===i&&(t["3D"]=Number(s))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})}},_e=e=>p(oe(e.node,"EventStream").map(t=>{const i=pe(t),s=i.schemeIdUri;return oe(t,"Event").map(t=>{const r=pe(t),n=r.presentationTime||0,a=i.timescale||1,o=r.duration||0,l=n/a+e.attributes.start;return{schemeIdUri:s,value:i.value,id:r.id,start:l,end:l+o/a,messageData:le(t)||r.messageData,contentEncoding:i.contentEncoding,presentationTimeOffset:i.presentationTimeOffset||0}})})),Te=(e,t,i)=>s=>{const r=pe(s),n=me(t,oe(s,"BaseURL")),a=oe(s,"Role")[0],o={role:pe(a)};let l=u(e,r,o);const d=oe(s,"Accessibility")[0],c=be(pe(d));c&&(l=u(l,{captionServices:c}));const h=oe(s,"Label")[0];if(h&&h.childNodes.length){const e=h.childNodes[0].nodeValue.trim();l=u(l,{label:e})}const f=ve(oe(s,"ContentProtection"));Object.keys(f).length&&(l=u(l,{contentProtection:f}));const m=ge(s),g=oe(s,"Representation"),y=u(i,m);return p(g.map(ye(l,n,y)))},Se=(e,t)=>(i,s)=>{const r=me(t,oe(i.node,"BaseURL")),n=u(e,{periodStart:i.attributes.start});"number"===typeof i.attributes.duration&&(n.periodDuration=i.attributes.duration);const a=oe(i.node,"AdaptationSet"),o=ge(i.node);return p(a.map(Te(n,r,o)))},we=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const i=u({serverURL:le(e[0])},pe(e[0]));return i.queryBeforeStart="true"===i.queryBeforeStart,i},Ee=({attributes:e,priorPeriodAttributes:t,mpdType:i})=>"number"===typeof e.start?e.start:t&&"number"===typeof t.start&&"number"===typeof t.duration?t.start+t.duration:t||"static"!==i?null:0,xe=(e,t={})=>{const{manifestUri:i="",NOW:s=Date.now(),clientOffset:r=0,eventHandler:n=function(){}}=t,a=oe(e,"Period");if(!a.length)throw new Error(y.INVALID_NUMBER_OF_PERIOD);const o=oe(e,"Location"),l=pe(e),d=me([{baseUrl:i}],oe(e,"BaseURL")),u=oe(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=r,o.length&&(l.locations=o.map(le));const c=[];return a.forEach((e,t)=>{const i=pe(e),s=c[t-1];i.start=Ee({attributes:i,priorPeriodAttributes:s?s.attributes:null,mpdType:l.type}),c.push({node:e,attributes:i})}),{locations:l.locations,contentSteeringInfo:we(u,n),representationInfo:p(c.map(Se(l,d))),eventStream:p(c.map(_e))}},Ce=e=>{if(""===e)throw new Error(y.DASH_EMPTY_MANIFEST);const t=new l["DOMParser"];let i,s;try{i=t.parseFromString(e,"application/xml"),s=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(r){}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error(y.DASH_INVALID_XML);return s},ke=e=>{const t=oe(e,"UTCTiming")[0];if(!t)return null;const i=pe(t);switch(i.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":i.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":i.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":i.method="DIRECT",i.value=Date.parse(i.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(y.UNSUPPORTED_UTC_TIMING_SCHEME)}return i},Ie=(e,t={})=>{const i=xe(Ce(e),t),s=ae(i.representationInfo);return Y({dashPlaylists:s,locations:i.locations,contentSteering:i.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:i.eventStream})},Pe=e=>ke(Ce(e))},"848b":function(e,t,i){"use strict";var s=i("4a0c"),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}}));var n={},a=s.version.split(".");function o(e,t){for(var i=t?t.split("."):a,s=e.split("."),r=0;r<3;r++){if(i[r]>s[r])return!0;if(i[r]<s[r])return!1}return!1}function l(e,t,i){if("object"!==typeof e)throw new TypeError("options must be an object");var s=Object.keys(e),r=s.length;while(r-- >0){var n=s[r],a=t[n];if(a){var o=e[n],l=void 0===o||a(o,n,e);if(!0!==l)throw new TypeError("option "+n+" must be "+l)}else if(!0!==i)throw Error("Unknown option "+n)}}r.transitional=function(e,t,i){var r=t&&o(t);function a(e,t){return"[Axios v"+s.version+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return function(i,s,o){if(!1===e)throw new Error(a(s," has been removed in "+t));return r&&!n[s]&&(n[s]=!0,console.warn(a(s," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,s,o)}},e.exports={isOlderVersion:o,assertOptions:l,validators:r}},"861d":function(e,t,i){"use strict";var s=i("1626");e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},"88f3":function(e,t,i){},8925:function(e,t,i){"use strict";var s=i("e330"),r=i("1626"),n=i("c6cd"),a=s(Function.toString);r(n.inspectSource)||(n.inspectSource=function(e){return a(e)}),e.exports=n.inspectSource},"89a7":function(e,t,i){"use strict";function s(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"===typeof i.find)return i.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var r=e[s];if(t.call(void 0,r,s,e))return r}}function r(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}function n(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}var a=r({HTML:"text/html",isHTML:function(e){return e===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.assign=n,t.find=s,t.freeze=r,t.MIME_TYPE=a,t.NAMESPACE=o},"8b53":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var s=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,n=function(e){return s.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},"8c00":function(e,t,i){"use strict";var s=i("be09"),r=function(e,t){return void 0===t&&(t=!1),function(i,r,a){if(i)e(i);else if(r.statusCode>=400&&r.statusCode<=599){var o=a;if(t)if(s.TextDecoder){var l=n(r.headers&&r.headers["content-type"]);try{o=new TextDecoder(l).decode(a)}catch(d){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o})}else e(null,a)}};function n(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){var i=t.split("="),s=i[0],r=i[1];return"charset"===s.trim()?r.trim():e}),"utf-8")}e.exports=r},"8c10":function(e,t){function i(e,t){var i,s=null;try{i=JSON.parse(e,t)}catch(r){s=r}return[s,i]}e.exports=i},"8df4":function(e,t,i){"use strict";var s=i("7a77");function r(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var i=this;e((function(e){i.reason||(i.reason=new s(e),t(i.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r((function(t){e=t}));return{token:t,cancel:e}},e.exports=r},"90e3":function(e,t,i){"use strict";var s=i("e330"),r=0,n=Math.random(),a=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++r+n,36)}},9112:function(e,t,i){"use strict";var s=i("83ab"),r=i("9bf2"),n=i("5c6c");e.exports=s?function(e,t,i){return r.f(e,t,n(1,i))}:function(e,t,i){return e[t]=i,e}},9152:function(e,t){
|
10
10
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
11
|
-
t.read=function(e,t,i,s,r){var n,a,o=8*r-s-1,l=(1<<o)-1,d=l>>1,u=-7,c=i?r-1:0,h=i?-1:1,p=e[t+c];for(c+=h,n=p&(1<<-u)-1,p>>=-u,u+=o;u>0;n=256*n+e[t+c],c+=h,u-=8);for(a=n&(1<<-u)-1,n>>=-u,u+=s;u>0;a=256*a+e[t+c],c+=h,u-=8);if(0===n)n=1-d;else{if(n===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,s),n-=d}return(p?-1:1)*a*Math.pow(2,n-s)},t.write=function(e,t,i,s,r,n){var a,o,l,d=8*n-r-1,u=(1<<d)-1,c=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=s?0:n-1,f=s?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+c>=1?h/l:h*Math.pow(2,1-c),t*l>=2&&(a++,l/=2),a+c>=u?(o=0,a=u):a+c>=1?(o=(t*l-1)*Math.pow(2,r),a+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;e[i+p]=255&o,p+=f,o/=256,r-=8);for(a=a<<r|o,d+=r;d>0;e[i+p]=255&a,p+=f,a/=256,d-=8);e[i+p-f]|=128*m}},"945e":function(e,t,i){},"94ca":function(e,t,i){"use strict";var s=i("d039"),r=i("1626"),n=/#|\.prototype\./,a=function(e,t){var i=l[o(e)];return i===u||i!==d&&(r(t)?s(t):!!t)},o=a.normalize=function(e){return String(e).replace(n,".").toLowerCase()},l=a.data={},d=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},9527:function(e,t,i){"use strict";i("88f3")},9919:function(e,t,i){},"9bf2":function(e,t,i){"use strict";var s=i("83ab"),r=i("0cfb"),n=i("aed9"),a=i("825a"),o=i("a04b"),l=TypeError,d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",h="configurable",p="writable";t.f=s?n?function(e,t,i){if(a(e),t=o(t),a(i),"function"===typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var s=u(e,t);s&&s[p]&&(e[t]=i.value,i={configurable:h in i?i[h]:s[h],enumerable:c in i?i[c]:s[c],writable:!1})}return d(e,t,i)}:d:function(e,t,i){if(a(e),t=o(t),a(i),r)try{return d(e,t,i)}catch(s){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},"9e9f":function(e,t,i){},a04b:function(e,t,i){"use strict";var s=i("c04e"),r=i("d9b5");e.exports=function(e){var t=s(e,"string");return r(t)?t:t+""}},a559:function(e,t){function i(){return e.exports=i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.exports.__esModule=!0,e.exports["default"]=e.exports,i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},a640:function(e,t,i){"use strict";var s=i("d039");e.exports=function(e,t){var i=[][e];return!!i&&s((function(){i.call(null,t||function(){return 1},1)}))}},a7a3:function(e,t,i){},a968:function(e,t){var i=Math.pow(2,32),s=function(e){var t,s=new DataView(e.buffer,e.byteOffset,e.byteLength);return s.getBigUint64?(t=s.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):s.getUint32(0)*i+s.getUint32(4)};e.exports={getUint64:s,MAX_UINT32:i}},ac5f:function(e,t,i){"use strict";i("c1e7")},ae4e:function(e,t,i){"use strict";i("48ec")},aed9:function(e,t,i){"use strict";var s=i("83ab"),r=i("d039");e.exports=s&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},b03c:function(e,t){var i="auto",s={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(e){if("string"!==typeof e)return!1;var t=s[e.toLowerCase()];return!!t&&e.toLowerCase()}function a(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e,t,s){this.hasBeenReset=!1;var r="",o=!1,l=e,d=t,u=s,c=null,h="",p=!0,f="auto",m="start",g="auto",y="auto",v=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return d},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=n(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!==typeof e&&e!==i)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=a(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return y},set:function(e){var t=a(e);t?(y=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=a(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},b05d:function(e,t,i){},b074:function(e,t,i){var s=i("89a7"),r=i("e1c8"),n=i("b30f"),a=i("e003"),o=r.DOMImplementation,l=s.NAMESPACE,d=a.ParseError,u=a.XMLReader;function c(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(e,t,i){if(!e){if(t instanceof f)return t;e=t}var s={},r=e instanceof Function;function n(t){var n=e[t];!n&&r&&(n=2==e.length?function(i){e(t,i)}:e),s[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+g(i))}||function(){}}return i=i||{},n("warning"),n("error"),n("fatalError"),s}function f(){this.cdata=!1}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function y(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var i=this.options,s=new u,r=i.domBuilder||new f,a=i.errorHandler,o=i.locator,d=i.xmlns||{},h=/\/x?html?$/.test(t),m=h?n.HTML_ENTITIES:n.XML_ENTITIES;o&&r.setDocumentLocator(o),s.errorHandler=p(a,r,o),s.domBuilder=i.domBuilder||r,h&&(d[""]=l.HTML),d.xml=d.xml||l.XML;var g=i.normalizeLineEndings||c;return e&&"string"===typeof e?s.parse(g(e),d,m):s.errorHandler.error("invalid doc source"),r.doc},f.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,s){var r=this.doc,n=r.createElementNS(e,i||t),a=s.length;v(this,n),this.currentElement=n,this.locator&&m(this.locator,n);for(var o=0;o<a;o++){e=s.getURI(o);var l=s.getValue(o),d=(i=s.getQName(o),r.createAttributeNS(e,i));this.locator&&m(s.getLocator(o),d),d.value=d.nodeValue=l,n.setAttributeNode(d)}},endElement:function(e,t,i){var s=this.currentElement;s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&m(this.locator,i),v(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=y.apply(this,arguments),e){if(this.cdata)var s=this.doc.createCDATASection(e);else s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&m(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=y.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&m(this.locator,s),v(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var r=s.createDocumentType(e,t,i);this.locator&&m(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,g(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,g(this.locator))},fatalError:function(e){throw new d(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.__DOMHandler=f,t.normalizeLineEndings=c,t.DOMParser=h},b30f:function(e,t,i){"use strict";var s=i("89a7").freeze;t.XML_ENTITIES=s({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=s({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES},b42e:function(e,t,i){"use strict";var s=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:s)(t)}},b50d:function(e,t,i){"use strict";var s=i("c532"),r=i("467f"),n=i("7aac"),a=i("30b5"),o=i("83b9"),l=i("c345"),d=i("3934"),u=i("2d83");e.exports=function(e){return new Promise((function(t,i){var c=e.data,h=e.headers,p=e.responseType;s.isFormData(c)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var y=o(e.baseURL,e.url);function v(){if(f){var s="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,n=p&&"text"!==p&&"json"!==p?f.response:f.responseText,a={data:n,status:f.status,statusText:f.statusText,headers:s,config:e,request:f};r(t,i,a),f=null}}if(f.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(i(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){i(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},s.isStandardBrowserEnv()){var b=(e.withCredentials||d(y))&&e.xsrfCookieName?n.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&s.forEach(h,(function(e,t){"undefined"===typeof c&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),i(e),f=null)})),c||(c=null),f.send(c)}))}},b622:function(e,t,i){"use strict";var s=i("da84"),r=i("5692"),n=i("1a2d"),a=i("90e3"),o=i("04f8"),l=i("fdbf"),d=s.Symbol,u=r("wks"),c=l?d["for"]||d:d&&d.withoutSetter||a;e.exports=function(e){return n(u,e)||(u[e]=o&&n(d,e)?d[e]:c("Symbol."+e)),u[e]}},b639:function(e,t,i){"use strict";(function(e){
|
11
|
+
t.read=function(e,t,i,s,r){var n,a,o=8*r-s-1,l=(1<<o)-1,d=l>>1,u=-7,c=i?r-1:0,h=i?-1:1,p=e[t+c];for(c+=h,n=p&(1<<-u)-1,p>>=-u,u+=o;u>0;n=256*n+e[t+c],c+=h,u-=8);for(a=n&(1<<-u)-1,n>>=-u,u+=s;u>0;a=256*a+e[t+c],c+=h,u-=8);if(0===n)n=1-d;else{if(n===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,s),n-=d}return(p?-1:1)*a*Math.pow(2,n-s)},t.write=function(e,t,i,s,r,n){var a,o,l,d=8*n-r-1,u=(1<<d)-1,c=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=s?0:n-1,f=s?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+c>=1?h/l:h*Math.pow(2,1-c),t*l>=2&&(a++,l/=2),a+c>=u?(o=0,a=u):a+c>=1?(o=(t*l-1)*Math.pow(2,r),a+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,r),a=0));r>=8;e[i+p]=255&o,p+=f,o/=256,r-=8);for(a=a<<r|o,d+=r;d>0;e[i+p]=255&a,p+=f,a/=256,d-=8);e[i+p-f]|=128*m}},"945e":function(e,t,i){},"94ca":function(e,t,i){"use strict";var s=i("d039"),r=i("1626"),n=/#|\.prototype\./,a=function(e,t){var i=l[o(e)];return i===u||i!==d&&(r(t)?s(t):!!t)},o=a.normalize=function(e){return String(e).replace(n,".").toLowerCase()},l=a.data={},d=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},9527:function(e,t,i){"use strict";i("88f3")},"9bf2":function(e,t,i){"use strict";var s=i("83ab"),r=i("0cfb"),n=i("aed9"),a=i("825a"),o=i("a04b"),l=TypeError,d=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c="enumerable",h="configurable",p="writable";t.f=s?n?function(e,t,i){if(a(e),t=o(t),a(i),"function"===typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]){var s=u(e,t);s&&s[p]&&(e[t]=i.value,i={configurable:h in i?i[h]:s[h],enumerable:c in i?i[c]:s[c],writable:!1})}return d(e,t,i)}:d:function(e,t,i){if(a(e),t=o(t),a(i),r)try{return d(e,t,i)}catch(s){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},"9e75":function(e,t,i){"use strict";i("af93")},"9f8c":function(e,t,i){},a04b:function(e,t,i){"use strict";var s=i("c04e"),r=i("d9b5");e.exports=function(e){var t=s(e,"string");return r(t)?t:t+""}},a559:function(e,t){function i(){return e.exports=i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.exports.__esModule=!0,e.exports["default"]=e.exports,i.apply(this,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},a640:function(e,t,i){"use strict";var s=i("d039");e.exports=function(e,t){var i=[][e];return!!i&&s((function(){i.call(null,t||function(){return 1},1)}))}},a7a3:function(e,t,i){},a968:function(e,t){var i=Math.pow(2,32),s=function(e){var t,s=new DataView(e.buffer,e.byteOffset,e.byteLength);return s.getBigUint64?(t=s.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):s.getUint32(0)*i+s.getUint32(4)};e.exports={getUint64:s,MAX_UINT32:i}},ac5f:function(e,t,i){"use strict";i("c1e7")},ae4e:function(e,t,i){"use strict";i("48ec")},aed9:function(e,t,i){"use strict";var s=i("83ab"),r=i("d039");e.exports=s&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af93:function(e,t,i){},b03c:function(e,t){var i="auto",s={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function n(e){if("string"!==typeof e)return!1;var t=s[e.toLowerCase()];return!!t&&e.toLowerCase()}function a(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e,t,s){this.hasBeenReset=!1;var r="",o=!1,l=e,d=t,u=s,c=null,h="",p=!0,f="auto",m="start",g="auto",y="auto",v=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return r},set:function(e){r=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return d},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=n(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!==typeof e&&e!==i)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=a(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return g},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");g=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return y},set:function(e){var t=a(e);t?(y=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=a(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},b074:function(e,t,i){var s=i("89a7"),r=i("e1c8"),n=i("b30f"),a=i("e003"),o=r.DOMImplementation,l=s.NAMESPACE,d=a.ParseError,u=a.XMLReader;function c(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(e,t,i){if(!e){if(t instanceof f)return t;e=t}var s={},r=e instanceof Function;function n(t){var n=e[t];!n&&r&&(n=2==e.length?function(i){e(t,i)}:e),s[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+g(i))}||function(){}}return i=i||{},n("warning"),n("error"),n("fatalError"),s}function f(){this.cdata=!1}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function y(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var i=this.options,s=new u,r=i.domBuilder||new f,a=i.errorHandler,o=i.locator,d=i.xmlns||{},h=/\/x?html?$/.test(t),m=h?n.HTML_ENTITIES:n.XML_ENTITIES;o&&r.setDocumentLocator(o),s.errorHandler=p(a,r,o),s.domBuilder=i.domBuilder||r,h&&(d[""]=l.HTML),d.xml=d.xml||l.XML;var g=i.normalizeLineEndings||c;return e&&"string"===typeof e?s.parse(g(e),d,m):s.errorHandler.error("invalid doc source"),r.doc},f.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,s){var r=this.doc,n=r.createElementNS(e,i||t),a=s.length;v(this,n),this.currentElement=n,this.locator&&m(this.locator,n);for(var o=0;o<a;o++){e=s.getURI(o);var l=s.getValue(o),d=(i=s.getQName(o),r.createAttributeNS(e,i));this.locator&&m(s.getLocator(o),d),d.value=d.nodeValue=l,n.setAttributeNode(d)}},endElement:function(e,t,i){var s=this.currentElement;s.tagName;this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&m(this.locator,i),v(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=y.apply(this,arguments),e){if(this.cdata)var s=this.doc.createCDATASection(e);else s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&m(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=y.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&m(this.locator,s),v(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var s=this.doc.implementation;if(s&&s.createDocumentType){var r=s.createDocumentType(e,t,i);this.locator&&m(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,g(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,g(this.locator))},fatalError:function(e){throw new d(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.__DOMHandler=f,t.normalizeLineEndings=c,t.DOMParser=h},b30f:function(e,t,i){"use strict";var s=i("89a7").freeze;t.XML_ENTITIES=s({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=s({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),t.entityMap=t.HTML_ENTITIES},b42e:function(e,t,i){"use strict";var s=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?r:s)(t)}},b50d:function(e,t,i){"use strict";var s=i("c532"),r=i("467f"),n=i("7aac"),a=i("30b5"),o=i("83b9"),l=i("c345"),d=i("3934"),u=i("2d83");e.exports=function(e){return new Promise((function(t,i){var c=e.data,h=e.headers,p=e.responseType;s.isFormData(c)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var y=o(e.baseURL,e.url);function v(){if(f){var s="getAllResponseHeaders"in f?l(f.getAllResponseHeaders()):null,n=p&&"text"!==p&&"json"!==p?f.response:f.responseText,a={data:n,status:f.status,statusText:f.statusText,headers:s,config:e,request:f};r(t,i,a),f=null}}if(f.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(i(u("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){i(u("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},s.isStandardBrowserEnv()){var b=(e.withCredentials||d(y))&&e.xsrfCookieName?n.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}"setRequestHeader"in f&&s.forEach(h,(function(e,t){"undefined"===typeof c&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),s.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),p&&"json"!==p&&(f.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),i(e),f=null)})),c||(c=null),f.send(c)}))}},b622:function(e,t,i){"use strict";var s=i("da84"),r=i("5692"),n=i("1a2d"),a=i("90e3"),o=i("04f8"),l=i("fdbf"),d=s.Symbol,u=r("wks"),c=l?d["for"]||d:d&&d.withoutSetter||a;e.exports=function(e){return n(u,e)||(u[e]=o&&n(d,e)?d[e]:c("Symbol."+e)),u[e]}},b639:function(e,t,i){"use strict";(function(e){
|
12
12
|
/*!
|
13
13
|
* The buffer module from node.js, for the browser.
|
14
14
|
*
|
15
15
|
* @author Feross Aboukhadijeh <http://feross.org>
|
16
16
|
* @license MIT
|
17
17
|
*/
|
18
|
-
var s=i("1fb5"),r=i("9152"),n=i("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function o(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=d.prototype):(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,i){if(!d.TYPED_ARRAY_SUPPORT&&!(this instanceof d))return new d(e,t,i);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,i)}function u(e,t,i,s){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,i,s):"string"===typeof t?f(e,t,i):y(e,t)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,i,s){return c(t),t<=0?l(e,t):void 0!==i?"string"===typeof s?l(e,t).fill(i,s):l(e,t).fill(i):l(e,t)}function p(e,t){if(c(t),e=l(e,t<0?0:0|v(t)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function f(e,t,i){if("string"===typeof i&&""!==i||(i="utf8"),!d.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var s=0|_(t,i);e=l(e,s);var r=e.write(t,i);return r!==s&&(e=e.slice(0,r)),e}function m(e,t){var i=t.length<0?0:0|v(t.length);e=l(e,i);for(var s=0;s<i;s+=1)e[s]=255&t[s];return e}function g(e,t,i,s){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(s||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===s?new Uint8Array(t):void 0===s?new Uint8Array(t,i):new Uint8Array(t,i,s),d.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=d.prototype):e=m(e,t),e}function y(e,t){if(d.isBuffer(t)){var i=0|v(t.length);return e=l(e,i),0===e.length?e:(t.copy(e,0,0,i),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&n(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),d.alloc(+e)}function _(e,t){if(d.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Z(e).length;default:if(s)return J(e).length;t=(""+t).toLowerCase(),s=!0}}function T(e,t,i){var s=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,i);case"utf8":case"utf-8":return A(this,t,i);case"ascii":return N(this,t,i);case"latin1":case"binary":return R(this,t,i);case"base64":return L(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,i);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function S(e,t,i){var s=e[t];e[t]=e[i],e[i]=s}function w(e,t,i,s,r){if(0===e.length)return-1;if("string"===typeof i?(s=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof t&&(t=d.from(t,s)),d.isBuffer(t))return 0===t.length?-1:E(e,t,i,s,r);if("number"===typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):E(e,[t],i,s,r);throw new TypeError("val must be string, number or Buffer")}function E(e,t,i,s,r){var n,a=1,o=e.length,l=t.length;if(void 0!==s&&(s=String(s).toLowerCase(),"ucs2"===s||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,i/=2}function d(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(n=i;n<o;n++)if(d(e,n)===d(t,-1===u?0:n-u)){if(-1===u&&(u=n),n-u+1===l)return u*a}else-1!==u&&(n-=n-u),u=-1}else for(i+l>o&&(i=o-l),n=i;n>=0;n--){for(var c=!0,h=0;h<l;h++)if(d(e,n+h)!==d(t,h)){c=!1;break}if(c)return n}return-1}function x(e,t,i,s){i=Number(i)||0;var r=e.length-i;s?(s=Number(s),s>r&&(s=r)):s=r;var n=t.length;if(n%2!==0)throw new TypeError("Invalid hex string");s>n/2&&(s=n/2);for(var a=0;a<s;++a){var o=parseInt(t.substr(2*a,2),16);if(isNaN(o))return a;e[i+a]=o}return a}function C(e,t,i,s){return ee(J(t,e.length-i),e,i,s)}function k(e,t,i,s){return ee(K(t),e,i,s)}function I(e,t,i,s){return k(e,t,i,s)}function P(e,t,i,s){return ee(Z(t),e,i,s)}function O(e,t,i,s){return ee(Q(t,e.length-i),e,i,s)}function L(e,t,i){return 0===t&&i===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(t,i))}function A(e,t,i){i=Math.min(e.length,i);var s=[],r=t;while(r<i){var n,a,o,l,d=e[r],u=null,c=d>239?4:d>223?3:d>191?2:1;if(r+c<=i)switch(c){case 1:d<128&&(u=d);break;case 2:n=e[r+1],128===(192&n)&&(l=(31&d)<<6|63&n,l>127&&(u=l));break;case 3:n=e[r+1],a=e[r+2],128===(192&n)&&128===(192&a)&&(l=(15&d)<<12|(63&n)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:n=e[r+1],a=e[r+2],o=e[r+3],128===(192&n)&&128===(192&a)&&128===(192&o)&&(l=(15&d)<<18|(63&n)<<12|(63&a)<<6|63&o,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,c=1):u>65535&&(u-=65536,s.push(u>>>10&1023|55296),u=56320|1023&u),s.push(u),r+=c}return M(s)}t.Buffer=d,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=o(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,t,i){return u(null,e,t,i)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,t,i){return h(null,e,t,i)},d.allocUnsafe=function(e){return p(null,e)},d.allocUnsafeSlow=function(e){return p(null,e)},d.isBuffer=function(e){return!(null==e||!e._isBuffer)},d.compare=function(e,t){if(!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,s=t.length,r=0,n=Math.min(i,s);r<n;++r)if(e[r]!==t[r]){i=e[r],s=t[r];break}return i<s?-1:s<i?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!n(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var s=d.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var a=e[i];if(!d.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,r),r+=a.length}return s},d.byteLength=_,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):T.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,t,i,s,r){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===s&&(s=0),void 0===r&&(r=this.length),t<0||i>e.length||s<0||r>this.length)throw new RangeError("out of range index");if(s>=r&&t>=i)return 0;if(s>=r)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,s>>>=0,r>>>=0,this===e)return 0;for(var n=r-s,a=i-t,o=Math.min(n,a),l=this.slice(s,r),u=e.slice(t,i),c=0;c<o;++c)if(l[c]!==u[c]){n=l[c],a=u[c];break}return n<a?-1:a<n?1:0},d.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},d.prototype.indexOf=function(e,t,i){return w(this,e,t,i,!0)},d.prototype.lastIndexOf=function(e,t,i){return w(this,e,t,i,!1)},d.prototype.write=function(e,t,i,s){if(void 0===t)s="utf8",i=this.length,t=0;else if(void 0===i&&"string"===typeof t)s=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===s&&(s="utf8")):(s=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var n=!1;;)switch(s){case"hex":return x(this,e,t,i);case"utf8":case"utf-8":return C(this,e,t,i);case"ascii":return k(this,e,t,i);case"latin1":case"binary":return I(this,e,t,i);case"base64":return P(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,i);default:if(n)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),n=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function M(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var i="",s=0;while(s<t)i+=String.fromCharCode.apply(String,e.slice(s,s+=D));return i}function N(e,t,i){var s="";i=Math.min(e.length,i);for(var r=t;r<i;++r)s+=String.fromCharCode(127&e[r]);return s}function R(e,t,i){var s="";i=Math.min(e.length,i);for(var r=t;r<i;++r)s+=String.fromCharCode(e[r]);return s}function U(e,t,i){var s=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>s)&&(i=s);for(var r="",n=t;n<i;++n)r+=Y(e[n]);return r}function B(e,t,i){for(var s=e.slice(t,i),r="",n=0;n<s.length;n+=2)r+=String.fromCharCode(s[n]+256*s[n+1]);return r}function j(e,t,i){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,i,s,r,n){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<n)throw new RangeError('"value" argument is out of bounds');if(i+s>e.length)throw new RangeError("Index out of range")}function q(e,t,i,s){t<0&&(t=65535+t+1);for(var r=0,n=Math.min(e.length-i,2);r<n;++r)e[i+r]=(t&255<<8*(s?r:1-r))>>>8*(s?r:1-r)}function $(e,t,i,s){t<0&&(t=4294967295+t+1);for(var r=0,n=Math.min(e.length-i,4);r<n;++r)e[i+r]=t>>>8*(s?r:3-r)&255}function H(e,t,i,s,r,n){if(i+s>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function z(e,t,i,s,n){return n||H(e,t,i,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,i,s,23,4),i+4}function V(e,t,i,s,n){return n||H(e,t,i,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,i,s,52,8),i+8}d.prototype.slice=function(e,t){var i,s=this.length;if(e=~~e,t=void 0===t?s:~~t,e<0?(e+=s,e<0&&(e=0)):e>s&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<e&&(t=e),d.TYPED_ARRAY_SUPPORT)i=this.subarray(e,t),i.__proto__=d.prototype;else{var r=t-e;i=new d(r,void 0);for(var n=0;n<r;++n)i[n]=this[n+e]}return i},d.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=this[e],r=1,n=0;while(++n<t&&(r*=256))s+=this[e+n]*r;return s},d.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=this[e+--t],r=1;while(t>0&&(r*=256))s+=this[e+--t]*r;return s},d.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=this[e],r=1,n=0;while(++n<t&&(r*=256))s+=this[e+n]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*t)),s},d.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=t,r=1,n=this[e+--s];while(s>0&&(r*=256))n+=this[e+--s]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},d.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},d.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},d.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,i,s){if(e=+e,t|=0,i|=0,!s){var r=Math.pow(2,8*i)-1;F(this,e,t,i,r,0)}var n=1,a=0;this[t]=255&e;while(++a<i&&(n*=256))this[t+a]=e/n&255;return t+i},d.prototype.writeUIntBE=function(e,t,i,s){if(e=+e,t|=0,i|=0,!s){var r=Math.pow(2,8*i)-1;F(this,e,t,i,r,0)}var n=i-1,a=1;this[t+n]=255&e;while(--n>=0&&(a*=256))this[t+n]=e/a&255;return t+i},d.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,i,s){if(e=+e,t|=0,!s){var r=Math.pow(2,8*i-1);F(this,e,t,i,r-1,-r)}var n=0,a=1,o=0;this[t]=255&e;while(++n<i&&(a*=256))e<0&&0===o&&0!==this[t+n-1]&&(o=1),this[t+n]=(e/a>>0)-o&255;return t+i},d.prototype.writeIntBE=function(e,t,i,s){if(e=+e,t|=0,!s){var r=Math.pow(2,8*i-1);F(this,e,t,i,r-1,-r)}var n=i-1,a=1,o=0;this[t+n]=255&e;while(--n>=0&&(a*=256))e<0&&0===o&&0!==this[t+n+1]&&(o=1),this[t+n]=(e/a>>0)-o&255;return t+i},d.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,i){return z(this,e,t,!0,i)},d.prototype.writeFloatBE=function(e,t,i){return z(this,e,t,!1,i)},d.prototype.writeDoubleLE=function(e,t,i){return V(this,e,t,!0,i)},d.prototype.writeDoubleBE=function(e,t,i){return V(this,e,t,!1,i)},d.prototype.copy=function(e,t,i,s){if(i||(i=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<i&&(s=i),s===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-i&&(s=e.length-t+i);var r,n=s-i;if(this===e&&i<t&&t<s)for(r=n-1;r>=0;--r)e[r+t]=this[r+i];else if(n<1e3||!d.TYPED_ARRAY_SUPPORT)for(r=0;r<n;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+n),t);return n},d.prototype.fill=function(e,t,i,s){if("string"===typeof e){if("string"===typeof t?(s=t,t=0,i=this.length):"string"===typeof i&&(s=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==s&&"string"!==typeof s)throw new TypeError("encoding must be a string");if("string"===typeof s&&!d.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var n;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"===typeof e)for(n=t;n<i;++n)this[n]=e;else{var a=d.isBuffer(e)?e:J(new d(e,s).toString()),o=a.length;for(n=0;n<i-t;++n)this[n+t]=a[n%o]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function W(e){if(e=X(e).replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var i;t=t||1/0;for(var s=e.length,r=null,n=[],a=0;a<s;++a){if(i=e.charCodeAt(a),i>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(a+1===s){(t-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&n.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;n.push(i)}else if(i<2048){if((t-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;n.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function K(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}function Q(e,t){for(var i,s,r,n=[],a=0;a<e.length;++a){if((t-=2)<0)break;i=e.charCodeAt(a),s=i>>8,r=i%256,n.push(r),n.push(s)}return n}function Z(e){return s.toByteArray(W(e))}function ee(e,t,i,s){for(var r=0;r<s;++r){if(r+i>=t.length||r>=e.length)break;t[r+i]=e[r]}return r}function te(e){return e!==e}}).call(this,i("c8ba"))},bc3a:function(e,t,i){e.exports=i("cee4")},be09:function(e,t,i){(function(t){var i;i="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=i}).call(this,i("c8ba"))},be35:function(e,t,i){},c020:function(e,t,i){},c04e:function(e,t,i){"use strict";var s=i("c65b"),r=i("861d"),n=i("d9b5"),a=i("dc4a"),o=i("485a"),l=i("b622"),d=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!r(e)||n(e))return e;var i,l=a(e,u);if(l){if(void 0===t&&(t="default"),i=s(l,e,t),!r(i)||n(i))return i;throw new d("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},c1e7:function(e,t,i){},c345:function(e,t,i){"use strict";var s=i("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,n,a={};return e?(s.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=s.trim(e.substr(0,n)).toLowerCase(),i=s.trim(e.substr(n+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},c401:function(e,t,i){"use strict";var s=i("c532"),r=i("2444");e.exports=function(e,t,i){var n=this||r;return s.forEach(i,(function(i){e=i.call(n,e,t)})),e}},c430:function(e,t,i){"use strict";e.exports=!1},c532:function(e,t,i){"use strict";var s=i("1d2b"),r=Object.prototype.toString;function n(e){return"[object Array]"===r.call(e)}function a(e){return"undefined"===typeof e}function o(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function d(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function c(e){return"string"===typeof e}function h(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===r.call(e)}function g(e){return"[object File]"===r.call(e)}function y(e){return"[object Blob]"===r.call(e)}function v(e){return"[object Function]"===r.call(e)}function b(e){return p(e)&&v(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function T(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),n(e))for(var i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function E(){var e={};function t(t,i){f(e[i])&&f(t)?e[i]=E(e[i],t):f(t)?e[i]=E({},t):n(t)?e[i]=t.slice():e[i]=t}for(var i=0,s=arguments.length;i<s;i++)w(arguments[i],t);return e}function x(e,t,i){return w(t,(function(t,r){e[r]=i&&"function"===typeof t?s(t,i):t})),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:n,isArrayBuffer:l,isBuffer:o,isFormData:d,isArrayBufferView:u,isString:c,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:y,isFunction:v,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:S,forEach:w,merge:E,extend:x,trim:T,stripBOM:C}},c65b:function(e,t,i){"use strict";var s=i("40d5"),r=Function.prototype.call;e.exports=s?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(e,t,i){"use strict";var s=i("e330"),r=s({}.toString),n=s("".slice);e.exports=function(e){return n(r(e),8,-1)}},c6cd:function(e,t,i){"use strict";var s=i("da84"),r=i("6374"),n="__core-js_shared__",a=s[n]||r(n,{});e.exports=a},c8af:function(e,t,i){"use strict";var s=i("c532");e.exports=function(e,t){s.forEach(e,(function(i,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[s])}))}},c8ba:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(s){"object"===typeof window&&(i=window)}e.exports=i},ca84:function(e,t,i){"use strict";var s=i("e330"),r=i("1a2d"),n=i("fc6a"),a=i("4d64").indexOf,o=i("d012"),l=s([].push);e.exports=function(e,t){var i,s=n(e),d=0,u=[];for(i in s)!r(o,i)&&r(s,i)&&l(u,i);while(t.length>d)r(s,i=t[d++])&&(~a(u,i)||l(u,i));return u}},cb2d:function(e,t,i){"use strict";var s=i("1626"),r=i("9bf2"),n=i("13d2"),a=i("6374");e.exports=function(e,t,i,o){o||(o={});var l=o.enumerable,d=void 0!==o.name?o.name:t;if(s(i)&&n(i,d,o),o.global)l?e[t]=i:a(t,i);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=i:r.f(e,t,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},cb7e:function(e,t,i){"use strict";i("b05d")},cc12:function(e,t,i){"use strict";var s=i("da84"),r=i("861d"),n=s.document,a=r(n)&&r(n.createElement);e.exports=function(e){return a?n.createElement(e):{}}},cdce:function(e,t,i){"use strict";var s=i("da84"),r=i("1626"),n=s.WeakMap;e.exports=r(n)&&/native code/.test(String(n))},cee4:function(e,t,i){"use strict";var s=i("c532"),r=i("1d2b"),n=i("0a06"),a=i("4a7b"),o=i("2444");function l(e){var t=new n(e),i=r(n.prototype.request,t);return s.extend(i,n.prototype,t),s.extend(i,t),i}var d=l(o);d.Axios=n,d.create=function(e){return l(a(d.defaults,e))},d.Cancel=i("7a77"),d.CancelToken=i("8df4"),d.isCancel=i("2e67"),d.all=function(e){return Promise.all(e)},d.spread=i("0df6"),d.isAxiosError=i("5f02"),e.exports=d,e.exports.default=d},d012:function(e,t,i){"use strict";e.exports={}},d02c:function(e,t,i){var s=i("ef34"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+(0|s)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function o(){this.values=r(null)}function l(e,t,i,s){var r=s?e.split(s):[e];for(var n in r)if("string"===typeof r[n]){var a=r[n].split(i);if(2===a.length){var o=a[0].trim(),l=a[1].trim();t(o,l)}}}function d(e,t,i){var s=e;function r(){var t=a(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function d(e,t){var s=new o;l(e,(function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){s.set(e,i[r].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),a=n[0];s.integer(e,a),s.percent(e,a)&&s.set("snapToLines",!1),s.alt(e,a,["auto"]),2===n.length&&s.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),s.percent(e,n[0]),2===n.length&&s.alt("positionAlign",n[1],["start","center","end"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start","center","end","left","right"]);break}}),/:/,/\s/),t.region=s.get("region",null),t.vertical=s.get("vertical","");try{t.line=s.get("line","auto")}catch(r){}t.lineAlign=s.get("lineAlign","start"),t.snapToLines=s.get("snapToLines",!0),t.size=s.get("size",100);try{t.align=s.get("align","center")}catch(r){t.align=s.get("align","middle")}try{t.position=s.get("position","auto")}catch(r){t.position=s.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=s.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=r(),u(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.substr(3),u(),t.endTime=r(),u(),d(e,t)}n.prototype=r(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var s=0;s<i.length;++s)if(t===i[s]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var u=s.createElement&&s.createElement("textarea"),c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function i(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var i=t.match(/^([^<]*)(<[^>]*>?)?/);return e(i[1]?i[1]:i[2])}function s(e){return u.innerHTML=e,e=u.textContent,u.textContent="",e}function r(e,t){return!f[t.localName]||f[t.localName]===e.localName}function n(t,i){var s=c[t];if(!s)return null;var r=e.document.createElement(s),n=p[t];return n&&i&&(r[n]=i.trim()),r}var o,l=e.document.createElement("div"),d=l,m=[];while(null!==(o=i()))if("<"!==o[0])d.appendChild(e.document.createTextNode(s(o)));else{if("/"===o[1]){m.length&&m[m.length-1]===o.substr(2).replace(">","")&&(m.pop(),d=d.parentNode);continue}var g,y=a(o.substr(1,o.length-2));if(y){g=e.document.createProcessingInstruction("timestamp",y),d.appendChild(g);continue}var v=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(g=n(v[1],v[3]),!g)continue;if(!r(d,g))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(h.hasOwnProperty(i)){var s=t?"background-color":"color",r=h[i];g.style[s]=r}})),g.className=b.join(" ")}m.push(v[1]),d.appendChild(g),d=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(e){for(var t=0;t<g.length;t++){var i=g[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function v(e){var t,i=[],s="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function n(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(e.length=0,s[0]):i}return"ruby"===t.tagName?n(e):t.childNodes?(r(e,t),n(e)):void 0}r(i,e);while(s=n(i))for(var a=0;a<s.length;a++)if(t=s.charCodeAt(a),y(t))return"rtl";return"ltr"}function b(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,s=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&s++;return-1*++s}function _(){}function T(e,t,i){_.call(this),this.cue=t,this.cueDiv=m(e,t.text);var s={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={direction:v(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(s),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function S(e){var t,i,s,r;if(e.div){i=e.div.offsetHeight,s=e.div.offsetWidth,r=e.div.offsetTop;var n=(n=e.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects();e=e.div.getBoundingClientRect(),t=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||s,this.lineHeight=void 0!==t?t:e.lineHeight}function w(e,t,i,s){function r(e,t){for(var r,n=new S(e),a=1,o=0;o<t.length;o++){while(e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(s))e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);a>l&&(r=new S(e),a=l),e=new S(n)}return r||n}var n=new S(t),a=t.cue,o=b(a),l=[];if(a.snapToLines){var d;switch(a.vertical){case"":l=["+y","-y"],d="height";break;case"rl":l=["+x","-x"],d="width";break;case"lr":l=["-x","+x"],d="width";break}var u=n.lineHeight,c=u*Math.round(o),h=i[d]+u,p=l[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),o<0&&(c+=""===a.vertical?i.height:i.width,l=l.reverse()),n.move(p,c)}else{var f=n.lineHeight/i.height*100;switch(a.lineAlign){case"center":o-=f/2;break;case"end":o-=f;break}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],n=new S(t)}var m=r(n,l);t.move(m.toCSSCompatValues(i))}function E(){}_.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},T.prototype=r(_.prototype),T.prototype.constructor=T,S.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},S.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},S.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},S.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},S.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},S.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),i=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),s=t*i;return s/(this.height*this.width)},S.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},S.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,s=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||s,height:e.height||t,bottom:e.bottom||s+(e.height||t),width:e.width||i};return r},E.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},E.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};var x=.05,C="sans-serif",k="1.5%";E.processCues=function(e,t,i){if(!e||!t||!i)return null;while(i.firstChild)i.removeChild(i.firstChild);var s=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin=k,i.appendChild(s),r(t)){var n=[],a=S.getSimpleBoxPosition(s),o=Math.round(a.height*x*100)/100,l={font:o+"px "+C};(function(){for(var i,r,o=0;o<t.length;o++)r=t[o],i=new T(e,r,l),s.appendChild(i.div),w(e,i,a,n),r.displayState=i.div,n.push(S.getSimpleBoxPosition(i))})()}else for(var d=0;d<t.length;d++)s.appendChild(t[d].displayState)},E.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},E.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function i(){var e=t.buffer,i=0;while(i<e.length&&"\r"!==e[i]&&"\n"!==e[i])++i;var s=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),s}function s(e){var i=new o;if(l(e,(function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var s=t.split(",");if(2!==s.length)break;var r=new o;if(r.percent("x",s[0]),r.percent("y",s[1]),!r.has("x")||!r.has("y"))break;i.set(e+"X",r.get("x")),i.set(e+"Y",r.get("y"));break;case"scroll":i.alt(e,t,["up"]);break}}),/=/,/\s/),i.has("id")){var s=new(t.vttjs.VTTRegion||t.window.VTTRegion);s.width=i.get("width",100),s.lines=i.get("lines",3),s.regionAnchorX=i.get("regionanchorX",0),s.regionAnchorY=i.get("regionanchorY",100),s.viewportAnchorX=i.get("viewportanchorX",0),s.viewportAnchorY=i.get("viewportanchorY",100),s.scroll=i.get("scroll",""),t.onregion&&t.onregion(s),t.regionList.push({id:i.get("id"),region:s})}}function r(e){var i=new o;l(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",a(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}function u(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":r(t);break}}),/=/):l(e,(function(e,t){switch(e){case"Region":s(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;c=i();var h=c.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new n(n.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:c=i(),t.state){case"HEADER":/:/.test(c)?u(c):c||(t.state="ID");continue;case"NOTE":c||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){t.state="NOTE";break}if(!c)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(m){t.cue.align="middle"}if(t.state="CUE",-1===c.indexOf("--\x3e")){t.cue.id=c;continue}case"CUE":try{d(c,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==c.indexOf("--\x3e");if(!c||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=c.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":c||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=E},d039:function(e,t,i){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,i){"use strict";var s=i("da84"),r=i("1626"),n=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?n(s[e]):s[e]&&s[e][t]}},d136:function(e,t,i){(function(t){var i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,s=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),t=t.trim(),!t){if(!i.alwaysNormalize)return e;var r=a.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var n=a.parseURL(t);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return i.alwaysNormalize?(n.path=a.normalizePath(n.path),a.buildURLFromParts(n)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=s.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var d={scheme:o.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};if(!n.netLoc&&(d.netLoc=o.netLoc,"/"!==n.path[0]))if(n.path){var u=o.path,c=u.substring(0,u.lastIndexOf("/")+1)+n.path;d.path=a.normalizePath(c)}else d.path=o.path,n.params||(d.params=o.params,n.query||(d.query=o.query));return null===d.path&&(d.path=i.alwaysNormalize?a.normalizePath(n.path):n.path),a.buildURLFromParts(d)},parseURL:function(e){var t=i.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(r,"");while(e.length!==(e=e.replace(n,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=a})()},d1e7:function(e,t,i){"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},d58f:function(e,t,i){"use strict";var s=i("59ed"),r=i("7b0b"),n=i("44ad"),a=i("07fa"),o=TypeError,l=function(e){return function(t,i,l,d){var u=r(t),c=n(u),h=a(u);s(i);var p=e?h-1:0,f=e?-1:1;if(l<2)while(1){if(p in c){d=c[p],p+=f;break}if(p+=f,e?p<0:h<=p)throw new o("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=f)p in c&&(d=i(d,c[p],p,u));return d}};e.exports={left:l(!1),right:l(!0)}},d749:function(e,t,i){"use strict";i.d(t,"a",(function(){return g}));var s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(),r=i("a559"),n=i.n(r),a=i("4e9a");
|
18
|
+
var s=i("1fb5"),r=i("9152"),n=i("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function o(){return d.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return d.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=d.prototype):(null===e&&(e=new d(t)),e.length=t),e}function d(e,t,i){if(!d.TYPED_ARRAY_SUPPORT&&!(this instanceof d))return new d(e,t,i);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return u(this,e,t,i)}function u(e,t,i,s){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,i,s):"string"===typeof t?f(e,t,i):y(e,t)}function c(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t,i,s){return c(t),t<=0?l(e,t):void 0!==i?"string"===typeof s?l(e,t).fill(i,s):l(e,t).fill(i):l(e,t)}function p(e,t){if(c(t),e=l(e,t<0?0:0|v(t)),!d.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function f(e,t,i){if("string"===typeof i&&""!==i||(i="utf8"),!d.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var s=0|_(t,i);e=l(e,s);var r=e.write(t,i);return r!==s&&(e=e.slice(0,r)),e}function m(e,t){var i=t.length<0?0:0|v(t.length);e=l(e,i);for(var s=0;s<i;s+=1)e[s]=255&t[s];return e}function g(e,t,i,s){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(s||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===s?new Uint8Array(t):void 0===s?new Uint8Array(t,i):new Uint8Array(t,i,s),d.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=d.prototype):e=m(e,t),e}function y(e,t){if(d.isBuffer(t)){var i=0|v(t.length);return e=l(e,i),0===e.length?e:(t.copy(e,0,0,i),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?l(e,0):m(e,t);if("Buffer"===t.type&&n(t.data))return m(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function v(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),d.alloc(+e)}function _(e,t){if(d.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var s=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return Z(e).length;default:if(s)return J(e).length;t=(""+t).toLowerCase(),s=!0}}function T(e,t,i){var s=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if(i>>>=0,t>>>=0,i<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return U(this,t,i);case"utf8":case"utf-8":return A(this,t,i);case"ascii":return N(this,t,i);case"latin1":case"binary":return R(this,t,i);case"base64":return L(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,i);default:if(s)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),s=!0}}function S(e,t,i){var s=e[t];e[t]=e[i],e[i]=s}function w(e,t,i,s,r){if(0===e.length)return-1;if("string"===typeof i?(s=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=r?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(r)return-1;i=e.length-1}else if(i<0){if(!r)return-1;i=0}if("string"===typeof t&&(t=d.from(t,s)),d.isBuffer(t))return 0===t.length?-1:E(e,t,i,s,r);if("number"===typeof t)return t&=255,d.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):E(e,[t],i,s,r);throw new TypeError("val must be string, number or Buffer")}function E(e,t,i,s,r){var n,a=1,o=e.length,l=t.length;if(void 0!==s&&(s=String(s).toLowerCase(),"ucs2"===s||"ucs-2"===s||"utf16le"===s||"utf-16le"===s)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,i/=2}function d(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(n=i;n<o;n++)if(d(e,n)===d(t,-1===u?0:n-u)){if(-1===u&&(u=n),n-u+1===l)return u*a}else-1!==u&&(n-=n-u),u=-1}else for(i+l>o&&(i=o-l),n=i;n>=0;n--){for(var c=!0,h=0;h<l;h++)if(d(e,n+h)!==d(t,h)){c=!1;break}if(c)return n}return-1}function x(e,t,i,s){i=Number(i)||0;var r=e.length-i;s?(s=Number(s),s>r&&(s=r)):s=r;var n=t.length;if(n%2!==0)throw new TypeError("Invalid hex string");s>n/2&&(s=n/2);for(var a=0;a<s;++a){var o=parseInt(t.substr(2*a,2),16);if(isNaN(o))return a;e[i+a]=o}return a}function C(e,t,i,s){return ee(J(t,e.length-i),e,i,s)}function k(e,t,i,s){return ee(K(t),e,i,s)}function I(e,t,i,s){return k(e,t,i,s)}function P(e,t,i,s){return ee(Z(t),e,i,s)}function O(e,t,i,s){return ee(Q(t,e.length-i),e,i,s)}function L(e,t,i){return 0===t&&i===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(t,i))}function A(e,t,i){i=Math.min(e.length,i);var s=[],r=t;while(r<i){var n,a,o,l,d=e[r],u=null,c=d>239?4:d>223?3:d>191?2:1;if(r+c<=i)switch(c){case 1:d<128&&(u=d);break;case 2:n=e[r+1],128===(192&n)&&(l=(31&d)<<6|63&n,l>127&&(u=l));break;case 3:n=e[r+1],a=e[r+2],128===(192&n)&&128===(192&a)&&(l=(15&d)<<12|(63&n)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:n=e[r+1],a=e[r+2],o=e[r+3],128===(192&n)&&128===(192&a)&&128===(192&o)&&(l=(15&d)<<18|(63&n)<<12|(63&a)<<6|63&o,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,c=1):u>65535&&(u-=65536,s.push(u>>>10&1023|55296),u=56320|1023&u),s.push(u),r+=c}return M(s)}t.Buffer=d,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,d.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=o(),d.poolSize=8192,d._augment=function(e){return e.__proto__=d.prototype,e},d.from=function(e,t,i){return u(null,e,t,i)},d.TYPED_ARRAY_SUPPORT&&(d.prototype.__proto__=Uint8Array.prototype,d.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&d[Symbol.species]===d&&Object.defineProperty(d,Symbol.species,{value:null,configurable:!0})),d.alloc=function(e,t,i){return h(null,e,t,i)},d.allocUnsafe=function(e){return p(null,e)},d.allocUnsafeSlow=function(e){return p(null,e)},d.isBuffer=function(e){return!(null==e||!e._isBuffer)},d.compare=function(e,t){if(!d.isBuffer(e)||!d.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,s=t.length,r=0,n=Math.min(i,s);r<n;++r)if(e[r]!==t[r]){i=e[r],s=t[r];break}return i<s?-1:s<i?1:0},d.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.concat=function(e,t){if(!n(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return d.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var s=d.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var a=e[i];if(!d.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(s,r),r+=a.length}return s},d.byteLength=_,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)S(this,t,t+1);return this},d.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)S(this,t,t+3),S(this,t+1,t+2);return this},d.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)S(this,t,t+7),S(this,t+1,t+6),S(this,t+2,t+5),S(this,t+3,t+4);return this},d.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):T.apply(this,arguments)},d.prototype.equals=function(e){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===d.compare(this,e)},d.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},d.prototype.compare=function(e,t,i,s,r){if(!d.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===s&&(s=0),void 0===r&&(r=this.length),t<0||i>e.length||s<0||r>this.length)throw new RangeError("out of range index");if(s>=r&&t>=i)return 0;if(s>=r)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,s>>>=0,r>>>=0,this===e)return 0;for(var n=r-s,a=i-t,o=Math.min(n,a),l=this.slice(s,r),u=e.slice(t,i),c=0;c<o;++c)if(l[c]!==u[c]){n=l[c],a=u[c];break}return n<a?-1:a<n?1:0},d.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},d.prototype.indexOf=function(e,t,i){return w(this,e,t,i,!0)},d.prototype.lastIndexOf=function(e,t,i){return w(this,e,t,i,!1)},d.prototype.write=function(e,t,i,s){if(void 0===t)s="utf8",i=this.length,t=0;else if(void 0===i&&"string"===typeof t)s=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===s&&(s="utf8")):(s=i,i=void 0)}var r=this.length-t;if((void 0===i||i>r)&&(i=r),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");s||(s="utf8");for(var n=!1;;)switch(s){case"hex":return x(this,e,t,i);case"utf8":case"utf-8":return C(this,e,t,i);case"ascii":return k(this,e,t,i);case"latin1":case"binary":return I(this,e,t,i);case"base64":return P(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,i);default:if(n)throw new TypeError("Unknown encoding: "+s);s=(""+s).toLowerCase(),n=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function M(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var i="",s=0;while(s<t)i+=String.fromCharCode.apply(String,e.slice(s,s+=D));return i}function N(e,t,i){var s="";i=Math.min(e.length,i);for(var r=t;r<i;++r)s+=String.fromCharCode(127&e[r]);return s}function R(e,t,i){var s="";i=Math.min(e.length,i);for(var r=t;r<i;++r)s+=String.fromCharCode(e[r]);return s}function U(e,t,i){var s=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>s)&&(i=s);for(var r="",n=t;n<i;++n)r+=Y(e[n]);return r}function B(e,t,i){for(var s=e.slice(t,i),r="",n=0;n<s.length;n+=2)r+=String.fromCharCode(s[n]+256*s[n+1]);return r}function j(e,t,i){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,i,s,r,n){if(!d.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<n)throw new RangeError('"value" argument is out of bounds');if(i+s>e.length)throw new RangeError("Index out of range")}function q(e,t,i,s){t<0&&(t=65535+t+1);for(var r=0,n=Math.min(e.length-i,2);r<n;++r)e[i+r]=(t&255<<8*(s?r:1-r))>>>8*(s?r:1-r)}function $(e,t,i,s){t<0&&(t=4294967295+t+1);for(var r=0,n=Math.min(e.length-i,4);r<n;++r)e[i+r]=t>>>8*(s?r:3-r)&255}function H(e,t,i,s,r,n){if(i+s>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function z(e,t,i,s,n){return n||H(e,t,i,4,34028234663852886e22,-34028234663852886e22),r.write(e,t,i,s,23,4),i+4}function V(e,t,i,s,n){return n||H(e,t,i,8,17976931348623157e292,-17976931348623157e292),r.write(e,t,i,s,52,8),i+8}d.prototype.slice=function(e,t){var i,s=this.length;if(e=~~e,t=void 0===t?s:~~t,e<0?(e+=s,e<0&&(e=0)):e>s&&(e=s),t<0?(t+=s,t<0&&(t=0)):t>s&&(t=s),t<e&&(t=e),d.TYPED_ARRAY_SUPPORT)i=this.subarray(e,t),i.__proto__=d.prototype;else{var r=t-e;i=new d(r,void 0);for(var n=0;n<r;++n)i[n]=this[n+e]}return i},d.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=this[e],r=1,n=0;while(++n<t&&(r*=256))s+=this[e+n]*r;return s},d.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=this[e+--t],r=1;while(t>0&&(r*=256))s+=this[e+--t]*r;return s},d.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},d.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},d.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},d.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},d.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},d.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=this[e],r=1,n=0;while(++n<t&&(r*=256))s+=this[e+n]*r;return r*=128,s>=r&&(s-=Math.pow(2,8*t)),s},d.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||j(e,t,this.length);var s=t,r=1,n=this[e+--s];while(s>0&&(r*=256))n+=this[e+--s]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},d.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},d.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},d.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},d.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},d.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},d.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!0,23,4)},d.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),r.read(this,e,!1,23,4)},d.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!0,52,8)},d.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),r.read(this,e,!1,52,8)},d.prototype.writeUIntLE=function(e,t,i,s){if(e=+e,t|=0,i|=0,!s){var r=Math.pow(2,8*i)-1;F(this,e,t,i,r,0)}var n=1,a=0;this[t]=255&e;while(++a<i&&(n*=256))this[t+a]=e/n&255;return t+i},d.prototype.writeUIntBE=function(e,t,i,s){if(e=+e,t|=0,i|=0,!s){var r=Math.pow(2,8*i)-1;F(this,e,t,i,r,0)}var n=i-1,a=1;this[t+n]=255&e;while(--n>=0&&(a*=256))this[t+n]=e/a&255;return t+i},d.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,1,255,0),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},d.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},d.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,65535,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},d.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):$(this,e,t,!0),t+4},d.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,4294967295,0),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},d.prototype.writeIntLE=function(e,t,i,s){if(e=+e,t|=0,!s){var r=Math.pow(2,8*i-1);F(this,e,t,i,r-1,-r)}var n=0,a=1,o=0;this[t]=255&e;while(++n<i&&(a*=256))e<0&&0===o&&0!==this[t+n-1]&&(o=1),this[t+n]=(e/a>>0)-o&255;return t+i},d.prototype.writeIntBE=function(e,t,i,s){if(e=+e,t|=0,!s){var r=Math.pow(2,8*i-1);F(this,e,t,i,r-1,-r)}var n=i-1,a=1,o=0;this[t+n]=255&e;while(--n>=0&&(a*=256))e<0&&0===o&&0!==this[t+n+1]&&(o=1),this[t+n]=(e/a>>0)-o&255;return t+i},d.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,1,127,-128),d.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},d.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},d.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,2,32767,-32768),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},d.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,2147483647,-2147483648),d.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):$(this,e,t,!0),t+4},d.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),d.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):$(this,e,t,!1),t+4},d.prototype.writeFloatLE=function(e,t,i){return z(this,e,t,!0,i)},d.prototype.writeFloatBE=function(e,t,i){return z(this,e,t,!1,i)},d.prototype.writeDoubleLE=function(e,t,i){return V(this,e,t,!0,i)},d.prototype.writeDoubleBE=function(e,t,i){return V(this,e,t,!1,i)},d.prototype.copy=function(e,t,i,s){if(i||(i=0),s||0===s||(s=this.length),t>=e.length&&(t=e.length),t||(t=0),s>0&&s<i&&(s=i),s===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(s<0)throw new RangeError("sourceEnd out of bounds");s>this.length&&(s=this.length),e.length-t<s-i&&(s=e.length-t+i);var r,n=s-i;if(this===e&&i<t&&t<s)for(r=n-1;r>=0;--r)e[r+t]=this[r+i];else if(n<1e3||!d.TYPED_ARRAY_SUPPORT)for(r=0;r<n;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+n),t);return n},d.prototype.fill=function(e,t,i,s){if("string"===typeof e){if("string"===typeof t?(s=t,t=0,i=this.length):"string"===typeof i&&(s=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==s&&"string"!==typeof s)throw new TypeError("encoding must be a string");if("string"===typeof s&&!d.isEncoding(s))throw new TypeError("Unknown encoding: "+s)}else"number"===typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var n;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"===typeof e)for(n=t;n<i;++n)this[n]=e;else{var a=d.isBuffer(e)?e:J(new d(e,s).toString()),o=a.length;for(n=0;n<i-t;++n)this[n+t]=a[n%o]}return this};var G=/[^+\/0-9A-Za-z-_]/g;function W(e){if(e=X(e).replace(G,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function X(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Y(e){return e<16?"0"+e.toString(16):e.toString(16)}function J(e,t){var i;t=t||1/0;for(var s=e.length,r=null,n=[],a=0;a<s;++a){if(i=e.charCodeAt(a),i>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(a+1===s){(t-=3)>-1&&n.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&n.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&n.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;n.push(i)}else if(i<2048){if((t-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;n.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function K(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}function Q(e,t){for(var i,s,r,n=[],a=0;a<e.length;++a){if((t-=2)<0)break;i=e.charCodeAt(a),s=i>>8,r=i%256,n.push(r),n.push(s)}return n}function Z(e){return s.toByteArray(W(e))}function ee(e,t,i,s){for(var r=0;r<s;++r){if(r+i>=t.length||r>=e.length)break;t[r+i]=e[r]}return r}function te(e){return e!==e}}).call(this,i("c8ba"))},bc3a:function(e,t,i){e.exports=i("cee4")},be09:function(e,t,i){(function(t){var i;i="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=i}).call(this,i("c8ba"))},be35:function(e,t,i){},c020:function(e,t,i){},c04e:function(e,t,i){"use strict";var s=i("c65b"),r=i("861d"),n=i("d9b5"),a=i("dc4a"),o=i("485a"),l=i("b622"),d=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!r(e)||n(e))return e;var i,l=a(e,u);if(l){if(void 0===t&&(t="default"),i=s(l,e,t),!r(i)||n(i))return i;throw new d("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},c1e7:function(e,t,i){},c345:function(e,t,i){"use strict";var s=i("c532"),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,n,a={};return e?(s.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=s.trim(e.substr(0,n)).toLowerCase(),i=s.trim(e.substr(n+1)),t){if(a[t]&&r.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([i]):a[t]?a[t]+", "+i:i}})),a):a}},c401:function(e,t,i){"use strict";var s=i("c532"),r=i("2444");e.exports=function(e,t,i){var n=this||r;return s.forEach(i,(function(i){e=i.call(n,e,t)})),e}},c430:function(e,t,i){"use strict";e.exports=!1},c532:function(e,t,i){"use strict";var s=i("1d2b"),r=Object.prototype.toString;function n(e){return"[object Array]"===r.call(e)}function a(e){return"undefined"===typeof e}function o(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function l(e){return"[object ArrayBuffer]"===r.call(e)}function d(e){return"undefined"!==typeof FormData&&e instanceof FormData}function u(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t}function c(e){return"string"===typeof e}function h(e){return"number"===typeof e}function p(e){return null!==e&&"object"===typeof e}function f(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function m(e){return"[object Date]"===r.call(e)}function g(e){return"[object File]"===r.call(e)}function y(e){return"[object Blob]"===r.call(e)}function v(e){return"[object Function]"===r.call(e)}function b(e){return p(e)&&v(e.pipe)}function _(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams}function T(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function S(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),n(e))for(var i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function E(){var e={};function t(t,i){f(e[i])&&f(t)?e[i]=E(e[i],t):f(t)?e[i]=E({},t):n(t)?e[i]=t.slice():e[i]=t}for(var i=0,s=arguments.length;i<s;i++)w(arguments[i],t);return e}function x(e,t,i){return w(t,(function(t,r){e[r]=i&&"function"===typeof t?s(t,i):t})),e}function C(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:n,isArrayBuffer:l,isBuffer:o,isFormData:d,isArrayBufferView:u,isString:c,isNumber:h,isObject:p,isPlainObject:f,isUndefined:a,isDate:m,isFile:g,isBlob:y,isFunction:v,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:S,forEach:w,merge:E,extend:x,trim:T,stripBOM:C}},c65b:function(e,t,i){"use strict";var s=i("40d5"),r=Function.prototype.call;e.exports=s?r.bind(r):function(){return r.apply(r,arguments)}},c6b6:function(e,t,i){"use strict";var s=i("e330"),r=s({}.toString),n=s("".slice);e.exports=function(e){return n(r(e),8,-1)}},c6cd:function(e,t,i){"use strict";var s=i("da84"),r=i("6374"),n="__core-js_shared__",a=s[n]||r(n,{});e.exports=a},c8af:function(e,t,i){"use strict";var s=i("c532");e.exports=function(e,t){s.forEach(e,(function(i,s){s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[s])}))}},c8ba:function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(s){"object"===typeof window&&(i=window)}e.exports=i},ca84:function(e,t,i){"use strict";var s=i("e330"),r=i("1a2d"),n=i("fc6a"),a=i("4d64").indexOf,o=i("d012"),l=s([].push);e.exports=function(e,t){var i,s=n(e),d=0,u=[];for(i in s)!r(o,i)&&r(s,i)&&l(u,i);while(t.length>d)r(s,i=t[d++])&&(~a(u,i)||l(u,i));return u}},cb2d:function(e,t,i){"use strict";var s=i("1626"),r=i("9bf2"),n=i("13d2"),a=i("6374");e.exports=function(e,t,i,o){o||(o={});var l=o.enumerable,d=void 0!==o.name?o.name:t;if(s(i)&&n(i,d,o),o.global)l?e[t]=i:a(t,i);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(u){}l?e[t]=i:r.f(e,t,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},cc12:function(e,t,i){"use strict";var s=i("da84"),r=i("861d"),n=s.document,a=r(n)&&r(n.createElement);e.exports=function(e){return a?n.createElement(e):{}}},cdce:function(e,t,i){"use strict";var s=i("da84"),r=i("1626"),n=s.WeakMap;e.exports=r(n)&&/native code/.test(String(n))},cee4:function(e,t,i){"use strict";var s=i("c532"),r=i("1d2b"),n=i("0a06"),a=i("4a7b"),o=i("2444");function l(e){var t=new n(e),i=r(n.prototype.request,t);return s.extend(i,n.prototype,t),s.extend(i,t),i}var d=l(o);d.Axios=n,d.create=function(e){return l(a(d.defaults,e))},d.Cancel=i("7a77"),d.CancelToken=i("8df4"),d.isCancel=i("2e67"),d.all=function(e){return Promise.all(e)},d.spread=i("0df6"),d.isAxiosError=i("5f02"),e.exports=d,e.exports.default=d},d012:function(e,t,i){"use strict";e.exports={}},d02c:function(e,t,i){var s=i("ef34"),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+(0|s)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function o(){this.values=r(null)}function l(e,t,i,s){var r=s?e.split(s):[e];for(var n in r)if("string"===typeof r[n]){var a=r[n].split(i);if(2===a.length){var o=a[0].trim(),l=a[1].trim();t(o,l)}}}function d(e,t,i){var s=e;function r(){var t=a(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function d(e,t){var s=new o;l(e,(function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){s.set(e,i[r].region);break}break;case"vertical":s.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),a=n[0];s.integer(e,a),s.percent(e,a)&&s.set("snapToLines",!1),s.alt(e,a,["auto"]),2===n.length&&s.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),s.percent(e,n[0]),2===n.length&&s.alt("positionAlign",n[1],["start","center","end"]);break;case"size":s.percent(e,t);break;case"align":s.alt(e,t,["start","center","end","left","right"]);break}}),/:/,/\s/),t.region=s.get("region",null),t.vertical=s.get("vertical","");try{t.line=s.get("line","auto")}catch(r){}t.lineAlign=s.get("lineAlign","start"),t.snapToLines=s.get("snapToLines",!0),t.size=s.get("size",100);try{t.align=s.get("align","center")}catch(r){t.align=s.get("align","middle")}try{t.position=s.get("position","auto")}catch(r){t.position=s.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=s.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=r(),u(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+s);e=e.substr(3),u(),t.endTime=r(),u(),d(e,t)}n.prototype=r(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var s=0;s<i.length;++s)if(t===i[s]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var u=s.createElement&&s.createElement("textarea"),c={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function i(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var i=t.match(/^([^<]*)(<[^>]*>?)?/);return e(i[1]?i[1]:i[2])}function s(e){return u.innerHTML=e,e=u.textContent,u.textContent="",e}function r(e,t){return!f[t.localName]||f[t.localName]===e.localName}function n(t,i){var s=c[t];if(!s)return null;var r=e.document.createElement(s),n=p[t];return n&&i&&(r[n]=i.trim()),r}var o,l=e.document.createElement("div"),d=l,m=[];while(null!==(o=i()))if("<"!==o[0])d.appendChild(e.document.createTextNode(s(o)));else{if("/"===o[1]){m.length&&m[m.length-1]===o.substr(2).replace(">","")&&(m.pop(),d=d.parentNode);continue}var g,y=a(o.substr(1,o.length-2));if(y){g=e.document.createProcessingInstruction("timestamp",y),d.appendChild(g);continue}var v=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!v)continue;if(g=n(v[1],v[3]),!g)continue;if(!r(d,g))continue;if(v[2]){var b=v[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(h.hasOwnProperty(i)){var s=t?"background-color":"color",r=h[i];g.style[s]=r}})),g.className=b.join(" ")}m.push(v[1]),d.appendChild(g),d=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function y(e){for(var t=0;t<g.length;t++){var i=g[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function v(e){var t,i=[],s="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function n(e){if(!e||!e.length)return null;var t=e.pop(),i=t.textContent||t.innerText;if(i){var s=i.match(/^.*(\n|\r)/);return s?(e.length=0,s[0]):i}return"ruby"===t.tagName?n(e):t.childNodes?(r(e,t),n(e)):void 0}r(i,e);while(s=n(i))for(var a=0;a<s.length;a++)if(t=s.charCodeAt(a),y(t))return"rtl";return"ltr"}function b(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,s=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&s++;return-1*++s}function _(){}function T(e,t,i){_.call(this),this.cue=t,this.cueDiv=m(e,t.text);var s={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={direction:v(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(s),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function S(e){var t,i,s,r;if(e.div){i=e.div.offsetHeight,s=e.div.offsetWidth,r=e.div.offsetTop;var n=(n=e.div.childNodes)&&(n=n[0])&&n.getClientRects&&n.getClientRects();e=e.div.getBoundingClientRect(),t=n?Math.max(n[0]&&n[0].height||0,e.height/n.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||i,this.bottom=e.bottom||r+(e.height||i),this.width=e.width||s,this.lineHeight=void 0!==t?t:e.lineHeight}function w(e,t,i,s){function r(e,t){for(var r,n=new S(e),a=1,o=0;o<t.length;o++){while(e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(s))e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);a>l&&(r=new S(e),a=l),e=new S(n)}return r||n}var n=new S(t),a=t.cue,o=b(a),l=[];if(a.snapToLines){var d;switch(a.vertical){case"":l=["+y","-y"],d="height";break;case"rl":l=["+x","-x"],d="width";break;case"lr":l=["-x","+x"],d="width";break}var u=n.lineHeight,c=u*Math.round(o),h=i[d]+u,p=l[0];Math.abs(c)>h&&(c=c<0?-1:1,c*=Math.ceil(h/u)*u),o<0&&(c+=""===a.vertical?i.height:i.width,l=l.reverse()),n.move(p,c)}else{var f=n.lineHeight/i.height*100;switch(a.lineAlign){case"center":o-=f/2;break;case"end":o-=f;break}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],n=new S(t)}var m=r(n,l);t.move(m.toCSSCompatValues(i))}function E(){}_.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},T.prototype=r(_.prototype),T.prototype.constructor=T,S.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},S.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},S.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},S.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},S.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},S.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),i=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),s=t*i;return s/(this.height*this.width)},S.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},S.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,s=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||s,height:e.height||t,bottom:e.bottom||s+(e.height||t),width:e.width||i};return r},E.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},E.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};var x=.05,C="sans-serif",k="1.5%";E.processCues=function(e,t,i){if(!e||!t||!i)return null;while(i.firstChild)i.removeChild(i.firstChild);var s=e.document.createElement("div");function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin=k,i.appendChild(s),r(t)){var n=[],a=S.getSimpleBoxPosition(s),o=Math.round(a.height*x*100)/100,l={font:o+"px "+C};(function(){for(var i,r,o=0;o<t.length;o++)r=t[o],i=new T(e,r,l),s.appendChild(i.div),w(e,i,a,n),r.displayState=i.div,n.push(S.getSimpleBoxPosition(i))})()}else for(var d=0;d<t.length;d++)s.appendChild(t[d].displayState)},E.Parser=function(e,t,i){i||(i=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]},E.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function i(){var e=t.buffer,i=0;while(i<e.length&&"\r"!==e[i]&&"\n"!==e[i])++i;var s=e.substr(0,i);return"\r"===e[i]&&++i,"\n"===e[i]&&++i,t.buffer=e.substr(i),s}function s(e){var i=new o;if(l(e,(function(e,t){switch(e){case"id":i.set(e,t);break;case"width":i.percent(e,t);break;case"lines":i.integer(e,t);break;case"regionanchor":case"viewportanchor":var s=t.split(",");if(2!==s.length)break;var r=new o;if(r.percent("x",s[0]),r.percent("y",s[1]),!r.has("x")||!r.has("y"))break;i.set(e+"X",r.get("x")),i.set(e+"Y",r.get("y"));break;case"scroll":i.alt(e,t,["up"]);break}}),/=/,/\s/),i.has("id")){var s=new(t.vttjs.VTTRegion||t.window.VTTRegion);s.width=i.get("width",100),s.lines=i.get("lines",3),s.regionAnchorX=i.get("regionanchorX",0),s.regionAnchorY=i.get("regionanchorY",100),s.viewportAnchorX=i.get("viewportanchorX",0),s.viewportAnchorY=i.get("viewportanchorY",100),s.scroll=i.get("scroll",""),t.onregion&&t.onregion(s),t.regionList.push({id:i.get("id"),region:s})}}function r(e){var i=new o;l(e,(function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",a(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")})}function u(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":r(t);break}}),/=/):l(e,(function(e,t){switch(e){case"Region":s(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var c;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;c=i();var h=c.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new n(n.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:c=i(),t.state){case"HEADER":/:/.test(c)?u(c):c||(t.state="ID");continue;case"NOTE":c||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(c)){t.state="NOTE";break}if(!c)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(m){t.cue.align="middle"}if(t.state="CUE",-1===c.indexOf("--\x3e")){t.cue.id=c;continue}case"CUE":try{d(c,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==c.indexOf("--\x3e");if(!c||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=c.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":c||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=E},d039:function(e,t,i){"use strict";e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,i){"use strict";var s=i("da84"),r=i("1626"),n=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?n(s[e]):s[e]&&s[e][t]}},d136:function(e,t,i){(function(t){var i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,s=/^(?=([^\/?#]*))\1([^]*)$/,r=/(?:\/|^)\.(?=\/)/g,n=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),t=t.trim(),!t){if(!i.alwaysNormalize)return e;var r=a.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var n=a.parseURL(t);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return i.alwaysNormalize?(n.path=a.normalizePath(n.path),a.buildURLFromParts(n)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=s.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var d={scheme:o.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};if(!n.netLoc&&(d.netLoc=o.netLoc,"/"!==n.path[0]))if(n.path){var u=o.path,c=u.substring(0,u.lastIndexOf("/")+1)+n.path;d.path=a.normalizePath(c)}else d.path=o.path,n.params||(d.params=o.params,n.query||(d.query=o.query));return null===d.path&&(d.path=i.alwaysNormalize?a.normalizePath(n.path):n.path),a.buildURLFromParts(d)},parseURL:function(e){var t=i.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(r,"");while(e.length!==(e=e.replace(n,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=a})()},d1e7:function(e,t,i){"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},d58f:function(e,t,i){"use strict";var s=i("59ed"),r=i("7b0b"),n=i("44ad"),a=i("07fa"),o=TypeError,l=function(e){return function(t,i,l,d){var u=r(t),c=n(u),h=a(u);s(i);var p=e?h-1:0,f=e?-1:1;if(l<2)while(1){if(p in c){d=c[p],p+=f;break}if(p+=f,e?p<0:h<=p)throw new o("Reduce of empty array with no initial value")}for(;e?p>=0:h>p;p+=f)p in c&&(d=i(d,c[p],p,u));return d}};e.exports={left:l(!1),right:l(!0)}},d749:function(e,t,i){"use strict";i.d(t,"a",(function(){return g}));var s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(),r=i("a559"),n=i.n(r),a=i("4e9a");
|
19
19
|
/*! @name m3u8-parser @version 7.1.0 @license Apache-2.0 */
|
20
20
|
class o extends s{constructor(){super(),this.buffer=""}push(e){let t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const l=String.fromCharCode(9),d=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),i={};return t[1]&&(i.length=parseInt(t[1],10)),t[2]&&(i.offset=parseInt(t[2],10)),i},u=function(){const e="[^=]*",t='"[^"]*"|[^,]*',i="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+i+")")},c=function(e){const t={};if(!e)return t;const i=e.split(u());let s,r=i.length;while(r--)""!==i[r]&&(s=/([^=]*)=(.*)/.exec(i[r]).slice(1),s[0]=s[0].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^\s+|\s+$/g,""),s[1]=s[1].replace(/^['"](.*)['"]$/g,"$1"),t[s[0]]=s[1]);return t};class h extends s{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;if(e=e.trim(),0===e.length)return;if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});const s=this.tagMappers.reduce((t,i)=>{const s=i(e);return s===e?t:t.concat([s])},[e]);s.forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),void this.trigger("data",i);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),void this.trigger("data",i);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),void this.trigger("data",i);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return i=n()(d(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",i);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(i={type:"tag",tagType:"map"},t[1]){const e=c(t[1]);e.URI&&(i.uri=e.URI),e.BYTERANGE&&(i.byterange=d(e.BYTERANGE))}this.trigger("data",i)}else if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t){if(i={type:"tag",tagType:"stream-inf"},t[1]){if(i.attributes=c(t[1]),i.attributes.RESOLUTION){const e=i.attributes.RESOLUTION.split("x"),t={};e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),i.attributes.RESOLUTION=t}i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))}this.trigger("data",i)}else{if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return i={type:"tag",tagType:"media"},t[1]&&(i.attributes=c(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return i={type:"tag",tagType:"program-date-time"},t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),void this.trigger("data",i);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return i={type:"tag",tagType:"key"},t[1]&&(i.attributes=c(t[1]),i.attributes.IV&&("0x"===i.attributes.IV.substring(0,2).toLowerCase()&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=parseInt(i.attributes.IV[2],16),i.attributes.IV[3]=parseInt(i.attributes.IV[3],16),i.attributes.IV=new Uint32Array(i.attributes.IV))),void this.trigger("data",i);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return i={type:"tag",tagType:"start"},t[1]&&(i.attributes=c(t[1]),i.attributes["TIME-OFFSET"]=parseFloat(i.attributes["TIME-OFFSET"]),i.attributes.PRECISE=/YES/.test(i.attributes.PRECISE)),void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out-cont"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-out"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-CUE-IN:(.*)?$/.exec(e),t)return i={type:"tag",tagType:"cue-in"},t[1]?i.data=t[1]:i.data="",void this.trigger("data",i);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"skip"},i.attributes=c(t[1]),i.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(i.attributes["SKIPPED-SEGMENTS"]=parseInt(i.attributes["SKIPPED-SEGMENTS"],10)),i.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(i.attributes["RECENTLY-REMOVED-DATERANGES"]=i.attributes["RECENTLY-REMOVED-DATERANGES"].split(l)),void this.trigger("data",i);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part"},i.attributes=c(t[1]),["DURATION"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))})),i.attributes.hasOwnProperty("BYTERANGE")&&(i.attributes.byterange=d(i.attributes.BYTERANGE)),void this.trigger("data",i);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"server-control"},i.attributes=c(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/.test(i.attributes[e]))})),void this.trigger("data",i);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"part-inf"},i.attributes=c(t[1]),["PART-TARGET"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))})),void this.trigger("data",i);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"preload-hint"},i.attributes=c(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(i.attributes.hasOwnProperty(e)){i.attributes[e]=parseInt(i.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";i.attributes.byterange=i.attributes.byterange||{},i.attributes.byterange[t]=i.attributes[e],delete i.attributes[e]}})),void this.trigger("data",i);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return i={type:"tag",tagType:"rendition-report"},i.attributes=c(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseInt(i.attributes[e],10))})),void this.trigger("data",i);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){i={type:"tag",tagType:"daterange"},i.attributes=c(t[1]),["ID","CLASS"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=String(i.attributes[e]))})),["START-DATE","END-DATE"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=new Date(i.attributes[e]))})),["DURATION","PLANNED-DURATION"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=parseFloat(i.attributes[e]))})),["END-ON-NEXT"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=/YES/i.test(i.attributes[e]))})),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach((function(e){i.attributes.hasOwnProperty(e)&&(i.attributes[e]=i.attributes[e].toString(16))}));const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in i.attributes){if(!e.test(t))continue;const s=/[0-9A-Fa-f]{6}/g.test(i.attributes[t]),r=/^\d+(\.\d+)?$/.test(i.attributes[t]);i.attributes[t]=s?i.attributes[t].toString(16):r?parseFloat(i.attributes[t]):String(i.attributes[t])}this.trigger("data",i)}else if(t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t)this.trigger("data",{type:"tag",tagType:"independent-segments"});else{if(t=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(e),t)return i={type:"tag",tagType:"content-steering"},i.attributes=c(t[1]),void this.trigger("data",i);this.trigger("data",{type:"tag",data:e.slice(4)})}}}}else this.trigger("data",{type:"comment",text:e.slice(1)})})}addParser({expression:e,customType:t,dataParser:i,segment:s}){"function"!==typeof i&&(i=e=>e),this.customParsers.push(r=>{const n=e.exec(r);if(n)return this.trigger("data",{type:"custom",data:i(r),customType:t,segment:s}),!0})}addTagMapper({expression:e,map:t}){const i=i=>e.test(i)?t(i):i;this.tagMappers.push(i)}}const p=e=>e.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase()),f=function(e){const t={};return Object.keys(e).forEach((function(i){t[p(i)]=e[i]})),t},m=function(e){const{serverControl:t,targetDuration:i,partTargetDuration:s}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",n="holdBack",a="partHoldBack",o=i&&3*i,l=s&&2*s;i&&!t.hasOwnProperty(n)&&(t[n]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[n]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[n]}) to targetDuration * 3 (${o})`}),t[n]=o),s&&!t.hasOwnProperty(a)&&(t[a]=3*s,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),s&&t[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class g extends s{constructor(){super(),this.lineStream=new o,this.parseStream=new h,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;const e=this,t=[];let i,s,r={},l=!1;const d=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},c="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let p=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let g=0,y=0;const v={};this.on("end",()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&i&&(r.map=i),!r.key&&s&&(r.key=s),r.timeline||"number"!==typeof p||(r.timeline=p),this.manifest.preloadSegment=r)}),this.parseStream.on("data",(function(o){let h,b;({tag(){({version(){o.version&&(this.manifest.version=o.version)},"allow-cache"(){this.manifest.allowCache=o.allowed,"allowed"in o||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const e={};"length"in o&&(r.byterange=e,e.length=o.length,"offset"in o||(o.offset=g)),"offset"in o&&(r.byterange=e,e.offset=o.offset),g=e.offset+e.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),o.title&&(r.title=o.title),o.duration>0&&(r.duration=o.duration),0===o.duration&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=t},key(){if(o.attributes)if("NONE"!==o.attributes.METHOD)if(o.attributes.URI){if("com.apple.streamingkeydelivery"===o.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:o.attributes});if("com.microsoft.playready"===o.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:o.attributes.URI});if(o.attributes.KEYFORMAT===c){const e=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];return-1===e.indexOf(o.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===o.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==o.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):o.attributes.KEYID&&"0x"===o.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:o.attributes.KEYFORMAT,keyId:o.attributes.KEYID.substring(2)},pssh:Object(a["a"])(o.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}o.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),s={method:o.attributes.METHOD||"AES-128",uri:o.attributes.URI},"undefined"!==typeof o.attributes.IV&&(s.iv=o.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else s=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence"(){isFinite(o.number)?this.manifest.mediaSequence=o.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+o.number})},"discontinuity-sequence"(){isFinite(o.number)?(this.manifest.discontinuitySequence=o.number,p=o.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+o.number})},"playlist-type"(){/VOD|EVENT/.test(o.playlistType)?this.manifest.playlistType=o.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+o.playlist})},map(){i={},o.uri&&(i.uri=o.uri),o.byterange&&(i.byterange=o.byterange),s&&(i.key=s)},"stream-inf"(){this.manifest.playlists=t,this.manifest.mediaGroups=this.manifest.mediaGroups||u,o.attributes?(r.attributes||(r.attributes={}),n()(r.attributes,o.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,!(o.attributes&&o.attributes.TYPE&&o.attributes["GROUP-ID"]&&o.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const e=this.manifest.mediaGroups[o.attributes.TYPE];e[o.attributes["GROUP-ID"]]=e[o.attributes["GROUP-ID"]]||{},h=e[o.attributes["GROUP-ID"]],b={default:/yes/i.test(o.attributes.DEFAULT)},b.default?b.autoselect=!0:b.autoselect=/yes/i.test(o.attributes.AUTOSELECT),o.attributes.LANGUAGE&&(b.language=o.attributes.LANGUAGE),o.attributes.URI&&(b.uri=o.attributes.URI),o.attributes["INSTREAM-ID"]&&(b.instreamId=o.attributes["INSTREAM-ID"]),o.attributes.CHARACTERISTICS&&(b.characteristics=o.attributes.CHARACTERISTICS),o.attributes.FORCED&&(b.forced=/yes/i.test(o.attributes.FORCED)),h[o.attributes.NAME]=b},discontinuity(){p+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(t.length)},"program-date-time"(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=o.dateTimeString,this.manifest.dateTimeObject=o.dateTimeObject),r.dateTimeString=o.dateTimeString,r.dateTimeObject=o.dateTimeObject;const{lastProgramDateTime:e}=this;this.lastProgramDateTime=new Date(o.dateTimeString).getTime(),null===e&&this.manifest.segments.reduceRight((e,t)=>(t.programDateTime=e-1e3*t.duration,t.programDateTime),this.lastProgramDateTime)},targetduration(){!isFinite(o.duration)||o.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+o.duration}):(this.manifest.targetDuration=o.duration,m.call(this,this.manifest))},start(){o.attributes&&!isNaN(o.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:o.attributes["TIME-OFFSET"],precise:o.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){r.cueOut=o.data},"cue-out-cont"(){r.cueOutCont=o.data},"cue-in"(){r.cueIn=o.data},skip(){this.manifest.skip=f(o.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",o.attributes,["SKIPPED-SEGMENTS"])},part(){l=!0;const e=this.manifest.segments.length,t=f(o.attributes);r.parts=r.parts||[],r.parts.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=y),y=t.byterange.offset+t.byterange.length);const i=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${i} for segment #${e}`,o.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){const e=this.manifest.serverControl=f(o.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),m.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const e=this.manifest.segments.length,t=f(o.attributes),i=t.type&&"PART"===t.type;r.preloadHints=r.preloadHints||[],r.preloadHints.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=i?y:0,i&&(y=t.byterange.offset+t.byterange.length)));const s=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${s} for segment #${e}`,o.attributes,["TYPE","URI"]),t.type)for(let n=0;n<r.preloadHints.length-1;n++){const i=r.preloadHints[n];i.type&&(i.type===t.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${s} for segment #${e} has the same TYPE ${t.type} as preload hint #${n}`}))}},"rendition-report"(){const e=f(o.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);const t=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];l&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+t,o.attributes,i)},"part-inf"(){this.manifest.partInf=f(o.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",o.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),m.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(f(o.attributes));const e=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_("#EXT-X-DATERANGE #"+e,o.attributes,["ID","START-DATE"]);const t=this.manifest.dateRanges[e];t.endDate&&t.startDate&&new Date(t.endDate)<new Date(t.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),t.duration&&t.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),t.plannedDuration&&t.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const i=!!t.endOnNext;if(i&&!t.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),i&&(t.duration||t.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),t.duration&&t.endDate){const i=t.startDate,s=i.getTime()+1e3*t.duration;this.manifest.dateRanges[e].endDate=new Date(s)}if(v[t.id]){for(const i in v[t.id])if(t[i]&&JSON.stringify(v[t.id][i])!==JSON.stringify(t[i])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const e=this.manifest.dateRanges.findIndex(e=>e.id===t.id);this.manifest.dateRanges[e]=n()(this.manifest.dateRanges[e],t),v[t.id]=n()(v[t.id],t),this.manifest.dateRanges.pop()}else v[t.id]=t},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=f(o.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",o.attributes,["SERVER-URI"])}}[o.tagType]||d).call(e)},uri(){r.uri=o.uri,t.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),s&&(r.key=s),r.timeline=p,i&&(r.map=i),y=0,null!==this.lastProgramDateTime&&(r.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=1e3*r.duration),r={}},comment(){},custom(){o.segment?(r.custom=r.custom||{},r.custom[o.customType]=o.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[o.customType]=o.data)}})[o.type].call(e)}))}warnOnMissingAttributes_(e,t,i){const s=[];i.forEach((function(e){t.hasOwnProperty(e)||s.push(e)})),s.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${s.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.manifest.dateRanges.length&&null===this.lastProgramDateTime&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}},d925:function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},d9b5:function(e,t,i){"use strict";var s=i("d066"),r=i("1626"),n=i("3a9b"),a=i("fdbf"),o=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return r(t)&&n(t.prototype,o(e))}},da84:function(e,t,i){"use strict";(function(t){var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof t&&t)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,i("c8ba"))},dc4a:function(e,t,i){"use strict";var s=i("59ed"),r=i("7234");e.exports=function(e,t){var i=e[t];return r(i)?void 0:s(i)}},dc6a:function(e,t,i){},de66:function(e,t,i){"use strict";i.d(t,"g",(function(){return l})),i.d(t,"e",(function(){return d})),i.d(t,"k",(function(){return c})),i.d(t,"j",(function(){return h})),i.d(t,"i",(function(){return p})),i.d(t,"b",(function(){return g})),i.d(t,"f",(function(){return y})),i.d(t,"c",(function(){return v})),i.d(t,"h",(function(){return b})),i.d(t,"d",(function(){return _})),i.d(t,"a",(function(){return T}));var s=i("be09"),r=i.n(s),n=function(e,t){var i="";while(t--)i+=e;return i},a=function(e){return e.toString(2).length},o=function(e){return Math.ceil(a(e)/8)},l=function(e,t,i){return void 0===i&&(i=" "),(n(i,t)+e.toString()).slice(-t)},d=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},u=function(e){return d(e)},c=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||u(e)||e instanceof ArrayBuffer||(e="number"!==typeof e||"number"===typeof e&&e!==e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},h=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(16),2,"0");return t},p=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(2),8,"0");return t},f=r.a.BigInt||Number,m=[f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000")],g=(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}(),function(e,t){var i=void 0===t?{}:t,s=i.signed,r=void 0!==s&&s,n=i.le,a=void 0!==n&&n;e=c(e);var o=a?"reduce":"reduceRight",l=e[o]?e[o]:Array.prototype[o],d=l.call(e,(function(t,i,s){var r=a?s:Math.abs(s+1-e.length);return t+f(i)*m[r]}),f(0));if(r){var u=m[e.length]/f(2)-f(1);d=f(d),d>u&&(d-=u,d-=u,d-=f(2))}return Number(d)}),y=function(e,t){var i=void 0===t?{}:t,s=i.le,r=void 0!==s&&s;("bigint"!==typeof e&&"number"!==typeof e||"number"===typeof e&&e!==e)&&(e=0),e=f(e);for(var n=o(e),a=new Uint8Array(new ArrayBuffer(n)),l=0;l<n;l++){var d=r?l:Math.abs(l+1-a.length);a[d]=Number(e/m[l]&f(255)),e<0&&(a[d]=Math.abs(~a[d]),a[d]-=0===l?1:2)}return a},v=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,c(e));try{return decodeURIComponent(escape(t))}catch(i){}return t},b=function(e,t){if("string"!==typeof e&&e&&"function"===typeof e.toString&&(e=e.toString()),"string"!==typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),s=0;s<e.length;s++)i[s]=e.charCodeAt(s);return i},_=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!==typeof e})),t.length<=1)return c(t[0]);var s=t.reduce((function(e,t,i){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(s),n=0;return t.forEach((function(e){e=c(e),r.set(e,n),n+=e.byteLength})),r},T=function(e,t,i){var s=void 0===i?{}:i,r=s.offset,n=void 0===r?0:r,a=s.mask,o=void 0===a?[]:a;e=c(e),t=c(t);var l=t.every?t.every:Array.prototype.every;return t.length&&e.length-n>=t.length&&l.call(t,(function(t,i){var s=o[i]?o[i]&e[n+i]:e[n+i];return t===s}))}},df33:function(e,t){function i(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"===typeof e)return a[e];var i=String(e),n=s[i.toLowerCase()];if(n)return n;n=r[i.toLowerCase()];return n||(1===i.length?i.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"===typeof e){var i=e.which||e.keyCode||e.charCode;if(null===i||void 0===i)return!1;if("string"===typeof t){var n=s[t.toLowerCase()];if(n)return n===i;n=r[t.toLowerCase()];if(n)return n===i}else if("number"===typeof t)return t===i;return!1}},t=e.exports=i;var s=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
|
21
21
|
/*!
|
22
22
|
* Programatically add the following
|
23
23
|
*/
|
24
|
-
for(n=97;n<123;n++)s[String.fromCharCode(n)]=n-32;for(var n=48;n<58;n++)s[n-48]=n;for(n=1;n<13;n++)s["f"+n]=n+111;for(n=0;n<10;n++)s["numpad "+n]=n+96;var a=t.names=t.title={};for(n in s)a[s[n]]=n;for(var o in r)s[o]=r[o]},df7c:function(e,t,i){(function(e){function i(e,t){for(var i=0,s=e.length-1;s>=0;s--){var r=e[s];"."===r?e.splice(s,1):".."===r?(e.splice(s,1),i++):i&&(e.splice(s,1),i--)}if(t)for(;i--;i)e.unshift("..");return e}function s(e){"string"!==typeof e&&(e+="");var t,i=0,s=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){i=t+1;break}}else-1===s&&(r=!1,s=t+1);return-1===s?"":e.slice(i,s)}function r(e,t){if(e.filter)return e.filter(t);for(var i=[],s=0;s<e.length;s++)t(e[s],s,e)&&i.push(e[s]);return i}t.resolve=function(){for(var t="",s=!1,n=arguments.length-1;n>=-1&&!s;n--){var a=n>=0?arguments[n]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,s="/"===a.charAt(0))}return t=i(r(t.split("/"),(function(e){return!!e})),!s).join("/"),(s?"/":"")+t||"."},t.normalize=function(e){var s=t.isAbsolute(e),a="/"===n(e,-1);return e=i(r(e.split("/"),(function(e){return!!e})),!s).join("/"),e||s||(e="."),e&&a&&(e+="/"),(s?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,i){function s(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var i=e.length-1;i>=0;i--)if(""!==e[i])break;return t>i?[]:e.slice(t,i-t+1)}e=t.resolve(e).substr(1),i=t.resolve(i).substr(1);for(var r=s(e.split("/")),n=s(i.split("/")),a=Math.min(r.length,n.length),o=a,l=0;l<a;l++)if(r[l]!==n[l]){o=l;break}var d=[];for(l=o;l<r.length;l++)d.push("..");return d=d.concat(n.slice(o)),d.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,s=-1,r=!0,n=e.length-1;n>=1;--n)if(t=e.charCodeAt(n),47===t){if(!r){s=n;break}}else r=!1;return-1===s?i?"/":".":i&&1===s?"/":e.slice(0,s)},t.basename=function(e,t){var i=s(e);return t&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,i=0,s=-1,r=!0,n=0,a=e.length-1;a>=0;--a){var o=e.charCodeAt(a);if(47!==o)-1===s&&(r=!1,s=a+1),46===o?-1===t?t=a:1!==n&&(n=1):-1!==t&&(n=-1);else if(!r){i=a+1;break}}return-1===t||-1===s||0===n||1===n&&t===s-1&&t===i+1?"":e.slice(t,s)};var n="b"==="ab".substr(-1)?function(e,t,i){return e.substr(t,i)}:function(e,t,i){return t<0&&(t=e.length+t),e.substr(t,i)}}).call(this,i("4362"))},e003:function(e,t,i){var s=i("89a7").NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+r.source+n.source+"*(?::"+r.source+n.source+"*)?$"),o=0,l=1,d=2,u=3,c=4,h=5,p=6,f=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function y(e,t,i,r,n){function a(e){if(e>65535){e-=65536;var t=55296+(e>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(n.error("entity not found:"+e),e)}function l(t){if(t>y){var i=e.substring(y,t).replace(/&#?\w+;/g,o);p&&d(y),r.characters(i,0,t-y),y=t}}function d(t,i){while(t>=c&&(i=h.exec(e)))u=i.index,c=u+i[0].length,p.lineNumber++;p.columnNumber=t-u+1}var u=0,c=0,h=/.*(?:\r\n?|\n)|.*$/g,p=r.locator,f=[{currentNSMap:t}],g={},y=0;while(1){try{var w=e.indexOf("<",y);if(w<0){if(!e.substr(y).match(/^\s*$/)){var k=r.doc,I=k.createTextNode(e.substr(y));k.appendChild(I),r.currentElement=I}return}switch(w>y&&l(w),e.charAt(w+1)){case"/":var P=e.indexOf(">",w+3),O=e.substring(w+2,P).replace(/[ \t\n\r]+$/g,""),L=f.pop();P<0?(O=e.substring(w+2).replace(/[\s<].*/,""),n.error("end tag name: "+O+" is not complete:"+L.tagName),P=w+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),n.error("end tag name: "+O+" maybe not complete"),P=w+1+O.length);var A=L.localNSMap,D=L.tagName==O,M=D||L.tagName&&L.tagName.toLowerCase()==O.toLowerCase();if(M){if(r.endElement(L.uri,L.localName,O),A)for(var N in A)Object.prototype.hasOwnProperty.call(A,N)&&r.endPrefixMapping(N);D||n.fatalError("end tag name: "+O+" is not match the current start tagName:"+L.tagName)}else f.push(L);P++;break;case"?":p&&d(w),P=x(e,w,r);break;case"!":p&&d(w),P=E(e,w,r,n);break;default:p&&d(w);var R=new C,U=f[f.length-1].currentNSMap,B=(P=b(e,w,R,U,o,n),R.length);if(!R.closed&&S(e,P,R.tagName,g)&&(R.closed=!0,i.nbsp||n.warning("unclosed xml attribute")),p&&B){for(var j=v(p,{}),F=0;F<B;F++){var q=R[F];d(q.offset),q.locator=v(p,{})}r.locator=j,_(R,r,U)&&f.push(R),r.locator=p}else _(R,r,U)&&f.push(R);s.isHTML(R.uri)&&!R.closed?P=T(e,P,R.tagName,o,r):P++}}catch($){if($ instanceof m)throw $;n.error("element parse error: "+$),P=-1}P>y?y=P:l(Math.max(w,y)+1)}}function v(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,i,r,n,a){function m(e,t,s){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),s)}var g,y=++t,v=o;while(1){var b=e.charAt(y);switch(b){case"=":if(v===l)g=e.slice(t,y),v=u;else{if(v!==d)throw new Error("attribute equal must after attrName");v=u}break;case"'":case'"':if(v===u||v===l){if(v===l&&(a.warning('attribute value must after "="'),g=e.slice(t,y)),t=y+1,y=e.indexOf(b,t),!(y>0))throw new Error("attribute value no end '"+b+"' match");_=e.slice(t,y),m(g,_,t-1),v=h}else{if(v!=c)throw new Error('attribute value must after "="');_=e.slice(t,y),m(g,_,t),a.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=y+1,v=h}break;case"/":switch(v){case o:i.setTagName(e.slice(t,y));case h:case p:case f:v=f,i.closed=!0;case c:case l:break;case d:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),v==o&&i.setTagName(e.slice(t,y)),y;case">":switch(v){case o:i.setTagName(e.slice(t,y));case h:case p:case f:break;case c:case l:_=e.slice(t,y),"/"===_.slice(-1)&&(i.closed=!0,_=_.slice(0,-1));case d:v===d&&(_=g),v==c?(a.warning('attribute "'+_+'" missed quot(")!'),m(g,_,t)):(s.isHTML(r[""])&&_.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,t));break;case u:throw new Error("attribute value missed!!")}return y;case"":b=" ";default:if(b<=" ")switch(v){case o:i.setTagName(e.slice(t,y)),v=p;break;case l:g=e.slice(t,y),v=d;break;case c:var _=e.slice(t,y);a.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,t);case h:v=p;break}else switch(v){case d:i.tagName;s.isHTML(r[""])&&g.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=y,v=l;break;case h:a.warning('attribute space is required"'+g+'"!!');case p:v=l,t=y;break;case u:v=c,t=y;break;case f:throw new Error("elements closed character '/' and '>' must be connected to")}}y++}}function _(e,t,i){var r=e.tagName,n=null,a=e.length;while(a--){var o=e[a],l=o.qName,d=o.value,u=l.indexOf(":");if(u>0)var c=o.prefix=l.slice(0,u),h=l.slice(u+1),p="xmlns"===c&&h;else h=l,c=null,p="xmlns"===l&&"";o.localName=h,!1!==p&&(null==n&&(n={},w(i,i={})),i[p]=n[p]=d,o.uri=s.XMLNS,t.startPrefixMapping(p,d))}a=e.length;while(a--){o=e[a];c=o.prefix;c&&("xml"===c&&(o.uri=s.XML),"xmlns"!==c&&(o.uri=i[c||""]))}u=r.indexOf(":");u>0?(c=e.prefix=r.slice(0,u),h=e.localName=r.slice(u+1)):(c=null,h=e.localName=r);var f=e.uri=i[c||""];if(t.startElement(f,h,r,e),!e.closed)return e.currentNSMap=i,e.localNSMap=n,!0;if(t.endElement(f,h,r),n)for(c in n)Object.prototype.hasOwnProperty.call(n,c)&&t.endPrefixMapping(c)}function T(e,t,i,s,r){if(/^(?:script|textarea)$/i.test(i)){var n=e.indexOf("</"+i+">",t),a=e.substring(t+1,n);if(/[&<]/.test(a))return/^script$/i.test(i)?(r.characters(a,0,a.length),n):(a=a.replace(/&#?\w+;/g,s),r.characters(a,0,a.length),n)}return t+1}function S(e,t,i,s){var r=s[i];return null==r&&(r=e.lastIndexOf("</"+i+">"),r<t&&(r=e.lastIndexOf("</"+i)),s[i]=r),r<t}function w(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function E(e,t,i,s){var r=e.charAt(t+2);switch(r){case"-":if("-"===e.charAt(t+3)){var n=e.indexOf("--\x3e",t+4);return n>t?(i.comment(e,t+4,n-t-4),n+3):(s.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){n=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,n-t-9),i.endCDATA(),n+3}var a=k(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var l=a[1][0],d=!1,u=!1;o>3&&(/^public$/i.test(a[2][0])?(d=a[3][0],u=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var c=a[o-1];return i.startDTD(l,d,u),i.endDTD(),c.index+c[0].length}}return-1}function x(e,t,i){var s=e.indexOf("?>",t);if(s){var r=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return i.processingInstruction(r[1],r[2]),s+2}return-1}return-1}function C(){this.attributeNames={}}function k(e,t){var i,s=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);while(i=r.exec(e))if(s.push(i),i[1])return s}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,i){var s=this.domBuilder;s.startDocument(),w(t,t={}),y(e,t,i,s,this.errorHandler),s.endDocument()}},C.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},e1c8:function(e,t,i){var s=i("89a7"),r=s.find,n=s.NAMESPACE;function a(e){return""!==e}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function l(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function d(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(l,{}))}function u(e){return function(t){return e&&-1!==e.indexOf(t)}}function c(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function h(e,t){var i=e.prototype;if(!(i instanceof t)){function s(){}s.prototype=t.prototype,s=new s,c(i,s),e.prototype=i=s}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}var p={},f=p.ELEMENT_NODE=1,m=p.ATTRIBUTE_NODE=2,g=p.TEXT_NODE=3,y=p.CDATA_SECTION_NODE=4,v=p.ENTITY_REFERENCE_NODE=5,b=p.ENTITY_NODE=6,_=p.PROCESSING_INSTRUCTION_NODE=7,T=p.COMMENT_NODE=8,S=p.DOCUMENT_NODE=9,w=p.DOCUMENT_TYPE_NODE=10,E=p.DOCUMENT_FRAGMENT_NODE=11,x=p.NOTATION_NODE=12,C={},k={},I=(C.INDEX_SIZE_ERR=(k[1]="Index size error",1),C.DOMSTRING_SIZE_ERR=(k[2]="DOMString size error",2),C.HIERARCHY_REQUEST_ERR=(k[3]="Hierarchy request error",3)),P=(C.WRONG_DOCUMENT_ERR=(k[4]="Wrong document",4),C.INVALID_CHARACTER_ERR=(k[5]="Invalid character",5),C.NO_DATA_ALLOWED_ERR=(k[6]="No data allowed",6),C.NO_MODIFICATION_ALLOWED_ERR=(k[7]="No modification allowed",7),C.NOT_FOUND_ERR=(k[8]="Not found",8)),O=(C.NOT_SUPPORTED_ERR=(k[9]="Not supported",9),C.INUSE_ATTRIBUTE_ERR=(k[10]="Attribute in use",10));C.INVALID_STATE_ERR=(k[11]="Invalid state",11),C.SYNTAX_ERR=(k[12]="Syntax error",12),C.INVALID_MODIFICATION_ERR=(k[13]="Invalid modification",13),C.NAMESPACE_ERR=(k[14]="Invalid namespace",14),C.INVALID_ACCESS_ERR=(k[15]="Invalid access",15);function L(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,k[e]),this.message=k[e],Error.captureStackTrace&&Error.captureStackTrace(this,L);return i.code=e,t&&(this.message=this.message+": "+t),i}function A(){}function D(e,t){this._node=e,this._refresh=t,M(this)}function M(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(xe(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var s=i.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];c(i,e),e._inc=t}}function N(){}function R(e,t){var i=e.length;while(i--)if(e[i]===t)return i}function U(e,t,i,s){if(s?t[R(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(s&&V(r,e,s),z(r,e,i))}}function B(e,t,i){var s=R(t,i);if(!(s>=0))throw new L(P,new Error(e.tagName+"@"+i));var r=t.length-1;while(s<r)t[s]=t[++s];if(t.length=r,e){var n=e.ownerDocument;n&&(V(n,e,i),i.ownerElement=null)}}function j(){}function F(){}function q(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function $(e,t){if(t(e))return!0;if(e=e.firstChild)do{if($(e,t))return!0}while(e=e.nextSibling)}function H(){this.ownerDocument=this}function z(e,t,i){e&&e._inc++;var s=i.namespaceURI;s===n.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function V(e,t,i,s){e&&e._inc++;var r=i.namespaceURI;r===n.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function G(e,t,i){if(e&&e._inc){e._inc++;var s=t.childNodes;if(i)s[s.length++]=i;else{var r=t.firstChild,n=0;while(r)s[n++]=r,r=r.nextSibling;s.length=n,delete s[s.length]}}}function W(e,t){var i=t.previousSibling,s=t.nextSibling;return i?i.nextSibling=s:e.firstChild=s,s?s.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,G(e.ownerDocument,e),t}function X(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}function Y(e){return e&&(K(e)||Q(e)||J(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}function J(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function K(e){return e&&e.nodeType===F.ELEMENT_NODE}function Q(e){return e&&e.nodeType===F.TEXT_NODE}function Z(e,t){var i=e.childNodes||[];if(r(i,K)||J(t))return!1;var s=r(i,J);return!(t&&s&&i.indexOf(s)>i.indexOf(t))}function ee(e,t){var i=e.childNodes||[];function s(e){return K(e)&&e!==t}if(r(i,s))return!1;var n=r(i,J);return!(t&&n&&i.indexOf(n)>i.indexOf(t))}function te(e,t,i){if(!X(e))throw new L(I,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new L(P,"child not in parent");if(!Y(t)||J(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new L(I,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ie(e,t,i){var s=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=n.filter(K);if(a.length>1||r(n,Q))throw new L(I,"More than one element or text in fragment");if(1===a.length&&!Z(e,i))throw new L(I,"Element in fragment can not be inserted before doctype")}if(K(t)&&!Z(e,i))throw new L(I,"Only one element can be added and only after doctype");if(J(t)){if(r(s,J))throw new L(I,"Only one doctype is allowed");var o=r(s,K);if(i&&s.indexOf(o)<s.indexOf(i))throw new L(I,"Doctype can only be inserted before an element");if(!i&&o)throw new L(I,"Doctype can not be appended since element is present")}}function se(e,t,i){var s=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=n.filter(K);if(a.length>1||r(n,Q))throw new L(I,"More than one element or text in fragment");if(1===a.length&&!ee(e,i))throw new L(I,"Element in fragment can not be inserted before doctype")}if(K(t)&&!ee(e,i))throw new L(I,"Only one element can be added and only after doctype");if(J(t)){function o(e){return J(e)&&e!==i}if(r(s,o))throw new L(I,"Only one doctype is allowed");var l=r(s,K);if(i&&s.indexOf(l)<s.indexOf(i))throw new L(I,"Doctype can only be inserted before an element")}}function re(e,t,i,s){te(e,t,i),e.nodeType===F.DOCUMENT_NODE&&(s||ie)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===E){var n=t.firstChild;if(null==n)return t;var a=t.lastChild}else n=a=t;var o=i?i.previousSibling:e.lastChild;n.previousSibling=o,a.nextSibling=i,o?o.nextSibling=n:e.firstChild=n,null==i?e.lastChild=a:i.previousSibling=a;do{n.parentNode=e}while(n!==a&&(n=n.nextSibling));return G(e.ownerDocument||e,e),t.nodeType==E&&(t.firstChild=t.lastChild=null),t}function ne(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,G(e.ownerDocument,e,t),t}function ae(){this._nsMap={}}function oe(){}function le(){}function de(){}function ue(){}function ce(){}function he(){}function pe(){}function fe(){}function me(){}function ge(){}function ye(){}function ve(){}function be(e,t){var i=[],s=9==this.nodeType&&this.documentElement||this,r=s.prefix,n=s.namespaceURI;if(n&&null==r){r=s.lookupPrefix(n);if(null==r)var a=[{namespace:n,prefix:null}]}return Se(this,i,e,t,a),i.join("")}function _e(e,t,i){var s=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===s&&r===n.XML||r===n.XMLNS)return!1;var a=i.length;while(a--){var o=i[a];if(o.prefix===s)return o.namespace!==r}return!0}function Te(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,q),'"')}function Se(e,t,i,s,r){if(r||(r=[]),s){if(e=s(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case f:var a=e.attributes,o=a.length,l=e.firstChild,d=e.tagName;i=n.isHTML(e.namespaceURI)||i;var u=d;if(!i&&!e.prefix&&e.namespaceURI){for(var c,h=0;h<a.length;h++)if("xmlns"===a.item(h).name){c=a.item(h).value;break}if(!c)for(var p=r.length-1;p>=0;p--){var b=r[p];if(""===b.prefix&&b.namespace===e.namespaceURI){c=b.namespace;break}}if(c!==e.namespaceURI)for(p=r.length-1;p>=0;p--){b=r[p];if(b.namespace===e.namespaceURI){b.prefix&&(u=b.prefix+":"+d);break}}}t.push("<",u);for(var x=0;x<o;x++){var C=a.item(x);"xmlns"==C.prefix?r.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&r.push({prefix:"",namespace:C.value})}for(x=0;x<o;x++){C=a.item(x);if(_e(C,i,r)){var k=C.prefix||"",I=C.namespaceURI;Te(t,k?"xmlns:"+k:"xmlns",I),r.push({prefix:k,namespace:I})}Se(C,t,i,s,r)}if(d===u&&_e(e,i,r)){k=e.prefix||"",I=e.namespaceURI;Te(t,k?"xmlns:"+k:"xmlns",I),r.push({prefix:k,namespace:I})}if(l||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(t.push(">"),i&&/^script$/i.test(d))while(l)l.data?t.push(l.data):Se(l,t,i,s,r.slice()),l=l.nextSibling;else while(l)Se(l,t,i,s,r.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case S:case E:l=e.firstChild;while(l)Se(l,t,i,s,r.slice()),l=l.nextSibling;return;case m:return Te(t,e.name,e.value);case g:return t.push(e.data.replace(/[<&>]/g,q));case y:return t.push("<![CDATA[",e.data,"]]>");case T:return t.push("\x3c!--",e.data,"--\x3e");case w:var P=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),P)t.push(" PUBLIC ",P),O&&"."!=O&&t.push(" ",O),t.push(">");else if(O&&"."!=O)t.push(" SYSTEM ",O,">");else{var L=e.internalSubset;L&&t.push(" [",L,"]"),t.push(">")}return;case _:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function we(e,t,i){var s;switch(t.nodeType){case f:s=t.cloneNode(!1),s.ownerDocument=e;case E:break;case m:i=!0;break}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,i){var r=t.firstChild;while(r)s.appendChild(we(e,r,i)),r=r.nextSibling}return s}function Ee(e,t,i){var s=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];"object"!=typeof n&&n!=s[r]&&(s[r]=n)}switch(t.childNodes&&(s.childNodes=new A),s.ownerDocument=e,s.nodeType){case f:var a=t.attributes,o=s.attributes=new N,l=a.length;o._ownerElement=s;for(var d=0;d<l;d++)s.setAttributeNode(Ee(e,a.item(d),!0));break;case m:i=!0}if(i){var u=t.firstChild;while(u)s.appendChild(Ee(e,u,i)),u=u.nextSibling}return s}function xe(e,t,i){e[t]=i}L.prototype=Error.prototype,c(C,L),A.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],s=0;s<this.length;s++)Se(this[s],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},D.prototype.item=function(e){return M(this),this[e]||null},h(D,A),N.prototype={length:0,item:A.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new L(O);var i=this.getNamedItem(e.nodeName);return U(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new L(O);return t=this.getNamedItemNS(e.namespaceURI,e.localName),U(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return B(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){var i=this.length;while(i--){var s=this[i];if(s.localName==t&&s.namespaceURI==e)return s}return null}},j.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var s=new H;if(s.implementation=this,s.childNodes=new A,s.doctype=i||null,i&&s.appendChild(i),t){var r=s.createElementNS(e,t);s.appendChild(r)}return s},createDocumentType:function(e,t,i){var s=new he;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=i||"",s}},F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return re(this,e,t)},replaceChild:function(e,t){re(this,e,t,se),t&&this.removeChild(t)},removeChild:function(e){return W(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ee(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==g&&e.nodeType==g?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var i=t._nsMap;if(i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===e)return s;t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},c(p,F),c(p,F.prototype),H.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==E){var i=e.firstChild;while(i){var s=i.nextSibling;this.insertBefore(i,t),i=s}return e}return re(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===f&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),W(this,e)},replaceChild:function(e,t){re(this,e,t,se),e.ownerDocument=this,t&&this.removeChild(t),K(e)&&(this.documentElement=e)},importNode:function(e,t){return we(this,e,t)},getElementById:function(e){var t=null;return $(this.documentElement,(function(i){if(i.nodeType==f&&i.getAttribute("id")==e)return t=i,!0})),t},getElementsByClassName:function(e){var t=d(e);return new D(this,(function(i){var s=[];return t.length>0&&$(i.documentElement,(function(r){if(r!==i&&r.nodeType===f){var n=r.getAttribute("class");if(n){var a=e===n;if(!a){var o=d(n);a=t.every(u(o))}a&&s.push(r)}}})),s}))},createElement:function(e){var t=new ae;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new A;var i=t.attributes=new N;return i._ownerElement=t,t},createDocumentFragment:function(){var e=new ge;return e.ownerDocument=this,e.childNodes=new A,e},createTextNode:function(e){var t=new de;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ce;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new ye;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new oe;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new me;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new ae,s=t.split(":"),r=i.attributes=new N;return i.childNodes=new A,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new oe,s=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,i}},h(H,F),ae.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===E?this.insertBefore(e,null):ne(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new D(this,(function(t){var i=[];return $(t,(function(s){s===t||s.nodeType!=f||"*"!==e&&s.tagName!=e||i.push(s)})),i}))},getElementsByTagNameNS:function(e,t){return new D(this,(function(i){var s=[];return $(i,(function(r){r===i||r.nodeType!==f||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||s.push(r)})),s}))}},H.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,h(ae,F),oe.prototype.nodeType=m,h(oe,F),le.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(k[I])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){var s=this.data.substring(0,e),r=this.data.substring(e+t);i=s+i+r,this.nodeValue=this.data=i,this.length=i.length}},h(le,F),de.prototype={nodeName:"#text",nodeType:g,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},h(de,le),ue.prototype={nodeName:"#comment",nodeType:T},h(ue,le),ce.prototype={nodeName:"#cdata-section",nodeType:y},h(ce,le),he.prototype.nodeType=w,h(he,F),pe.prototype.nodeType=x,h(pe,F),fe.prototype.nodeType=b,h(fe,F),me.prototype.nodeType=v,h(me,F),ge.prototype.nodeName="#document-fragment",ge.prototype.nodeType=E,h(ge,F),ye.prototype.nodeType=_,h(ye,F),ve.prototype.serializeToString=function(e,t,i){return be.call(e,t,i)},F.prototype.toString=be;try{if(Object.defineProperty){function Ce(e){switch(e.nodeType){case f:case E:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(Ce(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(D.prototype,"length",{get:function(){return M(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return Ce(this)},set:function(e){switch(this.nodeType){case f:case E:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),xe=function(e,t,i){e["$$"+t]=i}}}catch(ke){}t.DocumentType=he,t.DOMException=L,t.DOMImplementation=j,t.Element=ae,t.Node=F,t.NodeList=A,t.XMLSerializer=ve},e330:function(e,t,i){"use strict";var s=i("40d5"),r=Function.prototype,n=r.call,a=s&&r.bind.bind(n,n);e.exports=s?a:function(e){return function(){return n.apply(e,arguments)}}},e3db:function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},e40e:function(e,t,i){},e683:function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e893:function(e,t,i){"use strict";var s=i("1a2d"),r=i("56ef"),n=i("06cf"),a=i("9bf2");e.exports=function(e,t,i){for(var o=r(t),l=a.f,d=n.f,u=0;u<o.length;u++){var c=o[u];s(e,c)||i&&s(i,c)||l(e,c,d(t,c))}}},e8b5:function(e,t,i){"use strict";var s=i("c6b6");e.exports=Array.isArray||function(e){return"Array"===s(e)}},eb7c:function(e,t,i){},ee0a:function(e,t,i){},ef34:function(e,t,i){(function(t){var s,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},n=i(0);"undefined"!==typeof document?s=document:(s=r["__GLOBAL_DOCUMENT_CACHE@4"],s||(s=r["__GLOBAL_DOCUMENT_CACHE@4"]=n)),e.exports=s}).call(this,i("c8ba"))},f0e2:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return xn}));var s=i("be09"),r=i.n(s),n=i("ef34"),a=i.n(n),o=i("df33"),l=i.n(o),d=i("8c10"),u=i.n(d),c=i("3603"),h=i.n(c),p=i("2b8c"),f=i.n(p),m=i("a559"),g=i.n(m),y=i("63ec"),v=i("d749"),b=i("17a3"),_=i("8b53"),T=i("de66"),S=i("8484"),w=i("81c0"),E=i.n(w),x=i("321f"),C=i("f8a8"),k=i("36c6"),I="8.10.0";const P={},O=function(e,t){return P[e]=P[e]||[],t&&(P[e]=P[e].concat(t)),P[e]},L=function(e,t){O(e,t)},A=function(e,t){const i=O(e).indexOf(t);return!(i<=-1)&&(P[e]=P[e].slice(),P[e].splice(i,1),!0)},D=function(e,t){O(e,[].concat(t).map(t=>{const i=(...s)=>(A(e,i),t(...s));return i}))},M={prefixed:!0},N=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],R=N[0];let U;for(let t=0;t<N.length;t++)if(N[t][1]in a.a){U=N[t];break}if(U){for(let e=0;e<U.length;e++)M[R[e]]=U[e];M.prefixed=U[0]!==R[0]}let B=[];const j=(e,t,i)=>(s,n,a)=>{const o=t.levels[n],l=new RegExp(`^(${o})$`);let d=e;if("log"!==s&&a.unshift(s.toUpperCase()+":"),i&&(d="%c"+e,a.unshift(i)),a.unshift(d+":"),B){B.push([].concat(a));const e=B.length-1e3;B.splice(0,e>0?e:0)}if(!r.a.console)return;let u=r.a.console[s];u||"debug"!==s||(u=r.a.console.info||r.a.console.log),u&&o&&l.test(s)&&u[Array.isArray(a)?"apply":"call"](r.a.console,a)};function F(e,t=":",i=""){let s,r="info";const n=function(...e){s("log",r,e)};return s=j(e,n,i),n.createLogger=(s,r,n)=>{const a=void 0!==r?r:t,o=void 0!==n?n:i,l=`${e} ${a} ${s}`;return F(l,a,o)},n.createNewLogger=(e,t,i)=>F(e,t,i),n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},n.level=e=>{if("string"===typeof e){if(!n.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);r=e}return r},n.history=()=>B?[].concat(B):[],n.history.filter=e=>(B||[]).filter(t=>new RegExp(`.*${e}.*`).test(t[0])),n.history.clear=()=>{B&&(B.length=0)},n.history.disable=()=>{null!==B&&(B.length=0,B=null)},n.history.enable=()=>{null===B&&(B=[])},n.error=(...e)=>s("error",r,e),n.warn=(...e)=>s("warn",r,e),n.debug=(...e)=>s("debug",r,e),n}const q=F("VIDEOJS"),$=q.createLogger,H=Object.prototype.toString,z=function(e){return W(e)?Object.keys(e):[]};function V(e,t){z(e).forEach(i=>t(e[i],i))}function G(e,t,i=0){return z(e).reduce((i,s)=>t(i,e[s],s),i)}function W(e){return!!e&&"object"===typeof e}function X(e){return W(e)&&"[object Object]"===H.call(e)&&e.constructor===Object}function Y(...e){const t={};return e.forEach(e=>{e&&V(e,(e,i)=>{X(e)?(X(t[i])||(t[i]={}),t[i]=Y(t[i],e)):t[i]=e})}),t}function J(e={}){const t=[];for(const i in e)if(e.hasOwnProperty(i)){const s=e[i];t.push(s)}return t}function K(e,t,i,s=!0){const r=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const e=i();return r(e),e}};return s&&(n.set=r),Object.defineProperty(e,t,n)}var Q=Object.freeze({__proto__:null,each:V,reduce:G,isObject:W,isPlain:X,merge:Y,values:J,defineLazyProperty:K});let Z,ee=!1,te=null,ie=!1,se=!1,re=!1,ne=!1,ae=!1,oe=null,le=null,de=null,ue=!1,ce=!1,he=!1,pe=!1;const fe=Boolean(Te()&&("ontouchstart"in r.a||r.a.navigator.maxTouchPoints||r.a.DocumentTouch&&r.a.document instanceof r.a.DocumentTouch)),me=r.a.navigator&&r.a.navigator.userAgentData;if(me&&me.platform&&me.brands&&(ie="Android"===me.platform,re=Boolean(me.brands.find(e=>"Microsoft Edge"===e.brand)),ne=Boolean(me.brands.find(e=>"Chromium"===e.brand)),ae=!re&&ne,oe=le=(me.brands.find(e=>"Chromium"===e.brand)||{}).version||null,ce="Windows"===me.platform),!ne){const e=r.a.navigator&&r.a.navigator.userAgent||"";ee=/iPod/i.test(e),te=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),ie=/Android/i.test(e),Z=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const i=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return i&&s?parseFloat(t[1]+"."+t[2]):i||null}(),se=/Firefox/i.test(e),re=/Edg/i.test(e),ne=/Chrome/i.test(e)||/CriOS/i.test(e),ae=!re&&ne,oe=le=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),de=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let i=t&&parseFloat(t[1]);return!i&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(i=11),i}(),ue=/Safari/i.test(e)&&!ae&&!ie&&!re,ce=/Windows/i.test(e),he=/iPad/i.test(e)||ue&&fe&&!/iPhone/i.test(e),pe=/iPhone/i.test(e)&&!he}const ge=pe||he||ee,ye=(ue||ge)&&!ae;var ve=Object.freeze({__proto__:null,get IS_IPOD(){return ee},get IOS_VERSION(){return te},get IS_ANDROID(){return ie},get ANDROID_VERSION(){return Z},get IS_FIREFOX(){return se},get IS_EDGE(){return re},get IS_CHROMIUM(){return ne},get IS_CHROME(){return ae},get CHROMIUM_VERSION(){return oe},get CHROME_VERSION(){return le},get IE_VERSION(){return de},get IS_SAFARI(){return ue},get IS_WINDOWS(){return ce},get IS_IPAD(){return he},get IS_IPHONE(){return pe},TOUCH_ENABLED:fe,IS_IOS:ge,IS_ANY_SAFARI:ye});function be(e){return"string"===typeof e&&Boolean(e.trim())}function _e(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Te(){return a.a===r.a.document}function Se(e){return W(e)&&1===e.nodeType}function we(){try{return r.a.parent!==r.a.self}catch(e){return!0}}function Ee(e){return function(t,i){if(!be(t))return a.a[e](null);be(i)&&(i=a.a.querySelector(i));const s=Se(i)?i:a.a;return s[e]&&s[e](t)}}function xe(e="div",t={},i={},s){const r=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){const i=t[e];"textContent"===e?Ce(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){r.setAttribute(e,i[e])})),s&&Ve(r,s),r}function Ce(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function ke(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Ie(e,t){return _e(t),e.classList.contains(t)}function Pe(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function Oe(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(q.warn("removeClass was called with an element that doesn't exist"),null)}function Le(e,t,i){return"function"===typeof i&&(i=i(e,t)),"boolean"!==typeof i&&(i=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,i)),e}function Ae(e,t){Object.getOwnPropertyNames(t).forEach((function(i){const s=t[i];null===s||"undefined"===typeof s||!1===s?e.removeAttribute(i):e.setAttribute(i,!0===s?"":s)}))}function De(e){const t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let e=s.length-1;e>=0;e--){const r=s[e].name;let n=s[e].value;i.includes(r)&&(n=null!==n),t[r]=n}}return t}function Me(e,t){return e.getAttribute(t)}function Ne(e,t,i){e.setAttribute(t,i)}function Re(e,t){e.removeAttribute(t)}function Ue(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function Be(){a.a.onselectstart=function(){return!0}}function je(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(Je(e,"height"))),i.width||(i.width=parseFloat(Je(e,"width"))),i}}function Fe(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,i=e.offsetHeight;let s=0,r=0;while(e.offsetParent&&e!==a.a[M.fullscreenElement])s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:i}}function qe(e,t){const i={x:0,y:0};if(ge){let t=e;while(t&&"html"!==t.nodeName.toLowerCase()){const e=Je(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);i.x+=t[4],i.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);i.x+=t[12],i.y+=t[13]}t=t.parentNode}}const s={},r=Fe(t.target),n=Fe(e),a=n.width,o=n.height;let l=t.offsetY-(n.top-r.top),d=t.offsetX-(n.left-r.left);return t.changedTouches&&(d=t.changedTouches[0].pageX-n.left,l=t.changedTouches[0].pageY+n.top,ge&&(d-=i.x,l-=i.y)),s.y=1-Math.max(0,Math.min(1,l/o)),s.x=Math.max(0,Math.min(1,d/a)),s}function $e(e){return W(e)&&3===e.nodeType}function He(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function ze(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"===typeof e&&(e=e()),Se(e)||$e(e)?e:"string"===typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0)).filter(e=>e)}function Ve(e,t){return ze(t).forEach(t=>e.appendChild(t)),e}function Ge(e,t){return Ve(He(e),t)}function We(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}const Xe=Ee("querySelector"),Ye=Ee("querySelectorAll");function Je(e,t){if(!e||!t)return"";if("function"===typeof r.a.getComputedStyle){let s;try{s=r.a.getComputedStyle(e)}catch(i){return""}return s?s.getPropertyValue(t)||s[t]:""}return""}function Ke(e){[...a.a.styleSheets].forEach(t=>{try{const i=[...t.cssRules].map(e=>e.cssText).join(""),s=a.a.createElement("style");s.textContent=i,e.document.head.appendChild(s)}catch(i){const s=a.a.createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}})}var Qe=Object.freeze({__proto__:null,isReal:Te,isEl:Se,isInFrame:we,createEl:xe,textContent:Ce,prependTo:ke,hasClass:Ie,addClass:Pe,removeClass:Oe,toggleClass:Le,setAttributes:Ae,getAttributes:De,getAttribute:Me,setAttribute:Ne,removeAttribute:Re,blockTextSelection:Ue,unblockTextSelection:Be,getBoundingClientRect:je,findPosition:Fe,getPointerPosition:qe,isTextNode:$e,emptyEl:He,normalizeContent:ze,appendContent:Ve,insertContent:Ge,isSingleLeftClick:We,$:Xe,$$:Ye,computedStyle:Je,copyStyleSheetsToWindow:Ke});let Ze,et=!1;const tt=function(){if(!1===Ze.options.autoSetup)return;const e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),s=e.concat(t,i);if(s&&s.length>0)for(let r=0,n=s.length;r<n;r++){const e=s[r];if(!e||!e.getAttribute){it(1);break}if(void 0===e.player){const t=e.getAttribute("data-setup");null!==t&&Ze(e)}}else et||it(1)};function it(e,t){Te()&&(t&&(Ze=t),r.a.setTimeout(tt,e))}function st(){et=!0,r.a.removeEventListener("load",st)}Te()&&("complete"===a.a.readyState?st():r.a.addEventListener("load",st));const rt=function(e){const t=a.a.createElement("style");return t.className=e,t},nt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var at=new WeakMap;const ot=3;let lt,dt=ot;function ut(){return dt++}function ct(e,t){if(!at.has(e))return;const i=at.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&at.delete(e)}function ht(e,t,i,s){i.forEach((function(i){e(t,i,s)}))}function pt(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||r.a.event;e={};for(const t in s)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&"webkitMovementX"!==t&&"webkitMovementY"!==t&&"path"!==t&&("returnValue"===t&&s.preventDefault||(e[t]=s[t]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=a.a.documentElement,i=a.a.body;e.pageX=e.clientX+(t&&t.scrollLeft||i&&i.scrollLeft||0)-(t&&t.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||i&&i.scrollTop||0)-(t&&t.clientTop||i&&i.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const ft=function(){if("boolean"!==typeof lt){lt=!1;try{const e=Object.defineProperty({},"passive",{get(){lt=!0}});r.a.addEventListener("test",null,e),r.a.removeEventListener("test",null,e)}catch(e){}}return lt},mt=["touchstart","touchmove"];function gt(e,t,i){if(Array.isArray(t))return ht(gt,e,t,i);at.has(e)||at.set(e,{});const s=at.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),i.guid||(i.guid=ut()),s.handlers[t].push(i),s.dispatcher||(s.disabled=!1,s.dispatcher=function(t,i){if(s.disabled)return;t=pt(t);const r=s.handlers[t.type];if(r){const s=r.slice(0);for(let r=0,a=s.length;r<a;r++){if(t.isImmediatePropagationStopped())break;try{s[r].call(e,t,i)}catch(n){q.error(n)}}}}),1===s.handlers[t].length)if(e.addEventListener){let i=!1;ft()&&mt.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,s.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function yt(e,t,i){if(!at.has(e))return;const s=at.get(e);if(!s.handlers)return;if(Array.isArray(t))return ht(yt,e,t,i);const r=function(e,t){s.handlers[t]=[],ct(e,t)};if(void 0===t){for(const t in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},t)&&r(e,t);return}const n=s.handlers[t];if(n)if(i){if(i.guid)for(let e=0;e<n.length;e++)n[e].guid===i.guid&&n.splice(e--,1);ct(e,t)}else r(e,t)}function vt(e,t,i){const s=at.has(e)?at.get(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=pt(t),s.dispatcher&&s.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)vt.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){at.has(t.target)||at.set(t.target,{});const e=at.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function bt(e,t,i){if(Array.isArray(t))return ht(bt,e,t,i);const s=function(){yt(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||ut(),gt(e,t,s)}function _t(e,t,i){const s=function(){yt(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||ut(),gt(e,t,s)}var Tt=Object.freeze({__proto__:null,fixEvent:pt,on:gt,off:yt,trigger:vt,one:bt,any:_t});const St=30,wt=function(e,t,i){t.guid||(t.guid=ut());const s=t.bind(e);return s.guid=i?i+"_"+t.guid:t.guid,s},Et=function(e,t){let i=r.a.performance.now();const s=function(...s){const n=r.a.performance.now();n-i>=t&&(e(...s),i=n)};return s},xt=function(e,t,i,s=r.a){let n;const a=()=>{s.clearTimeout(n),n=null},o=function(){const r=this,a=arguments;let o=function(){n=null,o=null,i||e.apply(r,a)};!n&&i&&e.apply(r,a),s.clearTimeout(n),n=s.setTimeout(o,t)};return o.cancel=a,o};var Ct=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:St,bind_:wt,throttle:Et,debounce:xt});let kt;class It{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},gt(this,e,t),this.addEventListener=i}off(e,t){yt(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},bt(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},_t(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"===typeof e&&(e={type:t}),e=pt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),vt(this,e)}queueTrigger(e){kt||(kt=new Map);const t=e.type||e;let i=kt.get(this);i||(i=new Map,kt.set(this,i));const s=i.get(t);i.delete(t),r.a.clearTimeout(s);const n=r.a.setTimeout(()=>{i.delete(t),0===i.size&&(i=null,kt.delete(this)),this.trigger(e)},0);i.set(t,n)}}It.prototype.allowedEvents_={},It.prototype.addEventListener=It.prototype.on,It.prototype.removeEventListener=It.prototype.off,It.prototype.dispatchEvent=It.prototype.trigger;const Pt=e=>"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,Ot=e=>e instanceof It||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"===typeof e[t]),Lt=(e,t)=>{Ot(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},At=e=>"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Dt=(e,t,i)=>{if(!e||!e.nodeName&&!Ot(e))throw new Error(`Invalid target for ${Pt(t)}#${i}; must be a DOM node or evented object.`)},Mt=(e,t,i)=>{if(!At(e))throw new Error(`Invalid event type for ${Pt(t)}#${i}; must be a non-empty string or array.`)},Nt=(e,t,i)=>{if("function"!==typeof e)throw new Error(`Invalid listener for ${Pt(t)}#${i}; must be a function.`)},Rt=(e,t,i)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,n,a;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[n,a]=t):[r,n,a]=t,Dt(r,e,i),Mt(n,e,i),Nt(a,e,i),a=wt(e,a),{isTargetingSelf:s,target:r,type:n,listener:a}},Ut=(e,t,i,s)=>{Dt(e,e,t),e.nodeName?Tt[t](e,i,s):e[t](i,s)},Bt={on(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Rt(this,e,"on");if(Ut(i,"on",s,r),!t){const e=()=>this.off(i,s,r);e.guid=r.guid;const t=()=>this.off("dispose",e);t.guid=r.guid,Ut(this,"on","dispose",e),Ut(i,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Rt(this,e,"one");if(t)Ut(i,"one",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Ut(i,"one",s,e)}},any(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Rt(this,e,"any");if(t)Ut(i,"any",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Ut(i,"any",s,e)}},off(e,t,i){if(!e||At(e))yt(this.eventBusEl_,e,t);else{const s=e,r=t;Dt(s,this,"off"),Mt(r,this,"off"),Nt(i,this,"off"),i=wt(this,i),this.off("dispose",i),s.nodeName?(yt(s,r,i),yt(s,"dispose",i)):Ot(s)&&(s.off(r,i),s.off("dispose",i))}},trigger(e,t){Dt(this.eventBusEl_,this,"trigger");const i=e&&"string"!==typeof e?e.type:e;if(!At(i))throw new Error(`Invalid event type for ${Pt(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return vt(this.eventBusEl_,e,t)}};function jt(e,t={}){const{eventBusKey:i}=t;if(i){if(!e[i].nodeName)throw new Error(`The eventBusKey "${i}" does not refer to an element.`);e.eventBusEl_=e[i]}else e.eventBusEl_=xe("span",{className:"vjs-event-bus"});return Object.assign(e,Bt),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&at.has(e)&&at.delete(e)})),r.a.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const Ft={state:{},setState(e){let t;return"function"===typeof e&&(e=e()),V(e,(e,i)=>{this.state[i]!==e&&(t=t||{},t[i]={from:this.state[i],to:e}),this.state[i]=e}),t&&Ot(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function qt(e,t){return Object.assign(e,Ft),e.state=Object.assign({},e.state,t),"function"===typeof e.handleStateChanged&&Ot(e)&&e.on("statechanged",e.handleStateChanged),e}const $t=function(e){return"string"!==typeof e?e:e.replace(/./,e=>e.toLowerCase())},Ht=function(e){return"string"!==typeof e?e:e.replace(/./,e=>e.toUpperCase())},zt=function(e,t){return Ht(e)===Ht(t)};var Vt=Object.freeze({__proto__:null,toLowerCase:$t,toTitleCase:Ht,titleCaseEquals:zt});class Gt{constructor(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Y({},this.options_),t=this.options_=Y(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${ut()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(jt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),qt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=Y(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return xe(e,t,i)}localize(e,t,i=e){const s=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),n=r&&r[s],a=s&&s.split("-")[0],o=r&&r[a];let l=i;return n&&n[e]?l=n[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,i){const s=t[i-1];let r=s;return"undefined"===typeof s&&(r=e),r}))),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",s=xe("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=a.a.createElementNS(i,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const n=a.a.createElementNS(i,"use");return r.appendChild(n),n.setAttributeNS(null,"href","#vjs-icon-"+e),s.appendChild(r),this.iconIsSet_?t.replaceChild(s,t.querySelector(".vjs-icon-placeholder")):t.appendChild(s),this.iconIsSet_=!0,s}addChild(e,t={},i=this.children_.length){let s,r;if("string"===typeof e){r=Ht(e);const i=t.componentClass||r;t.name=r;const n=Gt.getComponent(i);if(!n)throw new Error(`Component ${i} does not exist`);if("function"!==typeof n)return null;s=new n(this.player_||this,t)}else s=e;if(s.parentComponent_&&s.parentComponent_.removeChild(s),this.children_.splice(i,0,s),s.parentComponent_=this,"function"===typeof s.id&&(this.childIndex_[s.id()]=s),r=r||s.name&&Ht(s.name()),r&&(this.childNameIndex_[r]=s,this.childNameIndex_[$t(r)]=s),"function"===typeof s.el&&s.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:Se(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(s.el(),e)}return s}removeChild(e){if("string"===typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let s=this.children_.length-1;s>=0;s--)if(this.children_[s]===e){t=!0,this.children_.splice(s,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Ht(e.name())]=null,this.childNameIndex_[$t(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=e=>{const i=e.name;let s=e.opts;if(void 0!==t[i]&&(s=t[i]),!1===s)return;!0===s&&(s={}),s.playerOptions=this.options_.playerOptions;const r=this.addChild(i,s);r&&(this[i]=r)};let s;const r=Gt.getComponent("Tech");s=Array.isArray(e)?e:Object.keys(e),s.concat(Object.keys(this.options_).filter((function(e){return!s.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map(t=>{let i,s;return"string"===typeof t?(i=t,s=e[i]||this.options_[i]||{}):(i=t.name,s=t),{name:i,opts:s}}).filter(e=>{const t=Gt.getComponent(e.opts.componentClass||Ht(e.name));return t&&!r.isTech(t)}).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout((function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)}$(e,t){return Xe(e,t||this.contentEl())}$$(e,t){return Ye(e,t||this.contentEl())}hasClass(e){return Ie(this.el_,e)}addClass(...e){Pe(this.el_,...e)}removeClass(...e){Oe(this.el_,...e)}toggleClass(e,t){Le(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Me(this.el_,e)}setAttribute(e,t){Ne(this.el_,e,t)}removeAttribute(e){Re(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;const s=this.el_.style[e],r=s.indexOf("px");return-1!==r?parseInt(s.slice(0,r),10):parseInt(this.el_["offset"+Ht(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Je(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i="offset"+Ht(e);t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(l.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null;const i=10,s=200;let n;this.on("touchstart",(function(i){1===i.touches.length&&(t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=r.a.performance.now(),n=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)n=!1;else if(t){const s=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY,a=Math.sqrt(s*s+r*r);a>i&&(n=!1)}}));const a=function(){n=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",(function(i){if(t=null,!0===n){const t=r.a.performance.now()-e;t<s&&(i.preventDefault(),this.trigger("tap"))}}))}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=wt(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));const i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=wt(this,e),this.clearTimersOnDispose_(),i=r.a.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),r.a.clearTimeout(e)),e}setInterval(e,t){e=wt(this,e),this.clearTimersOnDispose_();const i=r.a.setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),r.a.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=wt(this,e),t=r.a.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=wt(this,t);const i=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),r.a.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((e,i)=>this[t](i))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,t){if("string"!==typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=Gt.getComponent("Tech"),s=i&&i.isTech(t),r=Gt===t||Gt.prototype.isPrototypeOf(t.prototype);if(s||!r){let t;throw t=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Ht(e),Gt.components_||(Gt.components_={});const n=Gt.getComponent("Player");if("Player"===e&&n&&n.players){const e=n.players,t=Object.keys(e);if(e&&t.length>0&&t.map(t=>e[t]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Gt.components_[e]=t,Gt.components_[$t(e)]=t,t}static getComponent(e){if(e&&Gt.components_)return Gt.components_[e]}}function Wt(e,t,i){if("number"!==typeof t||t<0||t>i)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${i}).`)}function Xt(e,t,i,s){return Wt(e,s,i.length-1),i[s][t]}function Yt(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Xt.bind(null,"start",0,e),end:Xt.bind(null,"end",1,e)},r.a.Symbol&&r.a.Symbol.iterator&&(t[r.a.Symbol.iterator]=()=>(e||[]).values()),t}function Jt(e,t){return Array.isArray(e)?Yt(e):void 0===e||void 0===t?Yt():Yt([[e,t]])}Gt.registerComponent("Component",Gt);const Kt=function(e,t){e=e<0?0:e;let i=Math.floor(e%60),s=Math.floor(e/60%60),r=Math.floor(e/3600);const n=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=i="-"),r=r>0||a>0?r+":":"",s=((r||n>=10)&&s<10?"0"+s:s)+":",i=i<10?"0"+i:i,r+s+i};let Qt=Kt;function Zt(e){Qt=e}function ei(){Qt=Kt}function ti(e,t=e){return Qt(e,t)}var ii=Object.freeze({__proto__:null,createTimeRanges:Jt,createTimeRange:Jt,setFormatTime:Zt,resetFormatTime:ei,formatTime:ti});function si(e,t){let i,s,r=0;if(!t)return 0;e&&e.length||(e=Jt(0,0));for(let n=0;n<e.length;n++)i=e.start(n),s=e.end(n),s>t&&(s=t),r+=s-i;return r/t}function ri(e){if(e instanceof ri)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:W(e)&&("number"===typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=ri.defaultMessages[this.code]||"")}ri.prototype.code=0,ri.prototype.message="",ri.prototype.status=null,ri.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ri.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let t=0;t<ri.errorTypes.length;t++)ri[ri.errorTypes[t]]=t,ri.prototype[ri.errorTypes[t]]=t;function ni(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function ai(e){ni(e)&&e.then(null,e=>{})}const oi=function(e){const t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,i,s)=>(e[i]&&(t[i]=e[i]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},li=function(e){const t=e.$$("track"),i=Array.prototype.map.call(t,e=>e.track),s=Array.prototype.map.call(t,(function(e){const t=oi(e.track);return e.src&&(t.src=e.src),t}));return s.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===i.indexOf(e)})).map(oi))},di=function(e,t){return e.forEach((function(e){const i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>i.addCue(e))})),t.textTracks()};var ui={textTracksToJson:li,jsonToTextTracks:di,trackToJson_:oi};const ci="vjs-modal-dialog";class hi extends Gt{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=xe("div",{className:ci+"-content"},{role:"document"}),this.descEl_=xe("p",{className:ci+"-description vjs-control-text",id:this.el().getAttribute("aria-describedby")}),Ce(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ci} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"===typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const e=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,s=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),Ge(t,e),this.trigger("modalfill"),s?i.insertBefore(t,s):i.appendChild(t);const r=this.getChild("closeButton");r&&i.appendChild(r.el_)}empty(){this.trigger("beforemodalempty"),He(this.contentEl()),this.trigger("modalempty")}content(e){return"undefined"!==typeof e&&(this.content_=e),this.content_}conditionalFocus_(){const e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),l.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(!l.a.isEventKey(e,"Tab"))return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let s;for(let r=0;r<t.length;r++)if(i===t[r]){s=r;break}a.a.activeElement===this.el_&&(s=0),e.shiftKey&&0===s?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||s!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof r.a.HTMLAnchorElement||e instanceof r.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof r.a.HTMLInputElement||e instanceof r.a.HTMLSelectElement||e instanceof r.a.HTMLTextAreaElement||e instanceof r.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof r.a.HTMLIFrameElement||e instanceof r.a.HTMLObjectElement||e instanceof r.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}hi.prototype.options_={pauseOnOpen:!0,temporary:!0},Gt.registerComponent("ModalDialog",hi);class pi extends It{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Ot(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}pi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const t in pi.prototype.allowedEvents_)pi.prototype["on"+t]=null;const fi=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)};class mi extends pi{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){fi(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&fi(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,fi(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const gi=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)};class yi extends pi{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){gi(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&gi(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,gi(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class vi extends pi{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_);const t=["metadata","chapters"];-1===t.indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class bi{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,s=this.trackElements_.length;i<s;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"===typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"===typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}}class _i{constructor(e){_i.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const s=e.length;this.cues_=e,this.length_=e.length;const r=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<s)for(i=t;i<s;i++)r.call(this,i)}getCueById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}const Ti={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Si={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},wi={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ei={disabled:"disabled",hidden:"hidden",showing:"showing"};class xi extends It{constructor(e={}){super();const t={id:e.id||"vjs_track_"+ut(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const s in t)Object.defineProperty(this,s,{get(){return t[s]},set(){}});Object.defineProperty(this,"label",{get(){return i},set(e){e!==i&&(i=e,this.trigger("labelchange"))}})}}const Ci=function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],i=a.a.createElement("a");i.href=e;const s={};for(let r=0;r<t.length;r++)s[t[r]]=i[t[r]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=r.a.location.protocol),s.host||(s.host=r.a.location.host),s},ki=function(e){if(!e.match(/^https?:\/\//)){const t=a.a.createElement("a");t.href=e,e=t.href}return e},Ii=function(e){if("string"===typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,i=t.exec(e);if(i)return i.pop().toLowerCase()}return""},Pi=function(e,t=r.a.location){const i=Ci(e),s=":"===i.protocol?t.protocol:i.protocol,n=s+i.host!==t.protocol+t.host;return n};var Oi=Object.freeze({__proto__:null,parseUrl:Ci,getAbsoluteURL:ki,getFileExtension:Ii,isCrossOrigin:Pi});const Li=function(e,t){const i=new r.a.WebVTT.Parser(r.a,r.a.vttjs,r.a.WebVTT.StringDecoder()),s=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){s.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),s.length>0&&(r.a.console&&r.a.console.groupCollapsed&&r.a.console.groupCollapsed("Text Track parsing errors for "+t.src),s.forEach(e=>q.error(e)),r.a.console&&r.a.console.groupEnd&&r.a.console.groupEnd()),i.flush()},Ai=function(e,t){const i={uri:e},s=Pi(e);s&&(i.cors=s);const n="use-credentials"===t.tech_.crossOrigin();n&&(i.withCredentials=n),h()(i,wt(this,(function(e,i,s){if(e)return q.error(e,i);t.loaded_=!0,"function"!==typeof r.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"!==e.type)return Li(s,t);q.error("vttjs failed to load, stopping trying to process "+t.src)}):Li(s,t)})))};class Di extends xi{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=Y(e,{kind:wi[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=Ei[t.mode]||"disabled";const s=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new _i(this.cues_),n=new _i(this.activeCues_);let a=!1;this.timeupdateHandler=wt(this,(function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));const o=()=>{this.stopTracking()};this.tech_.one("dispose",o),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get(){return s},set(){}},mode:{get(){return i},set(e){Ei[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Ai(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return n;const e=this.tech_.currentTime(),t=[];for(let i=0,s=this.cues.length;i<s;i++){const s=this.cues[i];s.startTime<=e&&s.endTime>=e&&t.push(s)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(let i=0;i<t.length;i++)-1===this.activeCues_.indexOf(t[i])&&(a=!0);return this.activeCues_=t,n.setCues_(this.activeCues_),n},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Ai(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new r.a.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let s=0;s<i.length;s++)i[s]!==this&&i[s].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;while(t--){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Di.prototype.allowedEvents_={cuechange:"cuechange"};class Mi extends xi{constructor(e={}){const t=Y(e,{kind:Si[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get(){return i},set(e){"boolean"===typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class Ni extends xi{constructor(e={}){const t=Y(e,{kind:Ti[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get(){return i},set(e){"boolean"===typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class Ri extends It{constructor(e={}){let t;super();const i=new Di(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get(){return t}},track:{get(){return i}}}),t=Ri.NONE,i.addEventListener("loadeddata",()=>{t=Ri.LOADED,this.trigger({type:"load",target:this})})}}Ri.prototype.allowedEvents_={load:"load"},Ri.NONE=0,Ri.LOADING=1,Ri.LOADED=2,Ri.ERROR=3;const Ui={audio:{ListClass:mi,TrackClass:Mi,capitalName:"Audio"},video:{ListClass:yi,TrackClass:Ni,capitalName:"Video"},text:{ListClass:vi,TrackClass:Di,capitalName:"Text"}};Object.keys(Ui).forEach((function(e){Ui[e].getterName=e+"Tracks",Ui[e].privateName=e+"Tracks_"}));const Bi={remoteText:{ListClass:vi,TrackClass:Di,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:bi,TrackClass:Ri,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ji=Object.assign({},Ui,Bi);function Fi(e,t,i,s,r={}){const n=e.textTracks();r.kind=t,i&&(r.label=i),s&&(r.language=s),r.tech=e;const a=new ji.text.TrackClass(r);return n.addTrack(a),a}Bi.names=Object.keys(Bi),Ui.names=Object.keys(Ui),ji.names=[].concat(Bi.names).concat(Ui.names);class qi extends Gt{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",(function(){this.hasStarted_=!0})),this.on("loadstart",(function(){this.hasStarted_=!1})),ji.names.forEach(t=>{const i=ji[t];e&&e[i.getterName]&&(this[i.privateName]=e[i.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new ji.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(wt(this,(function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return Jt(0,0)}bufferedPercent(){return si(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Ui.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(e=>{const t=this[e+"Tracks"]()||[];let i=t.length;while(i--){const s=t[i];"text"===e&&this.removeRemoteTextTrack(s),t.removeTrack(s)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;while(t--){const i=e[t];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new ri(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?Jt(0,0):Jt()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){Ui.names.forEach(e=>{const t=Ui[e],i=()=>{this.trigger(e+"trackchange")},s=this[t.getterName]();s.addEventListener("removetrack",i),s.addEventListener("addtrack",i),this.on("dispose",()=>{s.removeEventListener("removetrack",i),s.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!r.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&X(f.a)&&Object.keys(f.a).length>0)return void this.trigger("vttjsloaded");const e=a.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),r.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=t=>e.addTrack(t.track),s=t=>e.removeTrack(t.track);t.on("addtrack",i),t.on("removetrack",s),this.addWebVttScript_();const r=()=>this.trigger("texttrackchange"),n=()=>{r();for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",r),"showing"===i.mode&&i.addEventListener("cuechange",r)}};n(),e.addEventListener("change",n),e.addEventListener("addtrack",n),e.addEventListener("removetrack",n),this.on("dispose",(function(){t.off("addtrack",i),t.off("removetrack",s),e.removeEventListener("change",n),e.removeEventListener("addtrack",n),e.removeEventListener("removetrack",n);for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",r)}}))}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return Fi(this,e,t,i)}createRemoteTextTrack(e){const t=Y(e,{tech:this});return new Bi.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!==typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=ut();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return qi.canPlayType(e.type)}static isTech(e){return e.prototype instanceof qi||e instanceof qi||e===qi}static registerTech(e,t){if(qi.techs_||(qi.techs_={}),!qi.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!qi.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!qi.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Ht(e),qi.techs_[e]=t,qi.techs_[$t(e)]=t,"Tech"!==e&&qi.defaultTechOrder_.push(e),t}static getTech(e){if(e)return qi.techs_&&qi.techs_[e]?qi.techs_[e]:(e=Ht(e),r.a&&r.a.videojs&&r.a.videojs[e]?(q.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),r.a.videojs[e]):void 0)}}ji.names.forEach((function(e){const t=ji[e];qi.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),qi.prototype.featuresVolumeControl=!0,qi.prototype.featuresMuteControl=!0,qi.prototype.featuresFullscreenResize=!1,qi.prototype.featuresPlaybackRate=!1,qi.prototype.featuresProgressEvents=!1,qi.prototype.featuresSourceset=!1,qi.prototype.featuresTimeupdateEvents=!1,qi.prototype.featuresNativeTextTracks=!1,qi.prototype.featuresVideoFrameCallback=!1,qi.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){let s=e.sourceHandlers;s||(s=e.sourceHandlers=[]),void 0===i&&(i=s.length),s.splice(i,0,t)},e.canPlayType=function(t){const i=e.sourceHandlers||[];let s;for(let e=0;e<i.length;e++)if(s=i[e].canPlayType(t),s)return s;return""},e.selectSourceHandler=function(t,i){const s=e.sourceHandlers||[];let r;for(let e=0;e<s.length;e++)if(r=s[e].canHandleSource(t,i),r)return s[e];return null},e.canPlaySource=function(t,i){const s=e.selectSourceHandler(t,i);return s?s.canHandleSource(t,i):""};const t=["seekable","seeking","duration"];t.forEach((function(e){const t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){let i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:q.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Gt.registerComponent("Tech",qi),qi.registerTech("Tech",qi),qi.defaultTechOrder_=[];const $i={},Hi={},zi={};function Vi(e,t){$i[e]=$i[e]||[],$i[e].push(t)}function Gi(e,t,i){e.setTimeout(()=>rs(t,$i[t.type],i,e),1)}function Wi(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}function Xi(e,t,i){return e.reduceRight(es(i),t[i]())}function Yi(e,t,i,s){return t[i](e.reduce(es(i),s))}function Ji(e,t,i,s=null){const r="call"+Ht(i),n=e.reduce(es(r),s),a=n===zi,o=a?null:t[i](n);return ts(e,i,o,a),o}const Ki={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qi={setCurrentTime:1,setMuted:1,setVolume:1},Zi={play:1,pause:1};function es(e){return(t,i)=>t===zi?zi:i[e]?i[e](t):t}function ts(e,t,i,s){for(let r=e.length-1;r>=0;r--){const n=e[r];n[t]&&n[t](s,i)}}function is(e){Hi[e.id()]=null}function ss(e,t){const i=Hi[e.id()];let s=null;if(void 0===i||null===i)return s=t(e),Hi[e.id()]=[[t,s]],s;for(let r=0;r<i.length;r++){const[e,n]=i[r];e===t&&(s=n)}return null===s&&(s=t(e),i.push([t,s])),s}function rs(e={},t=[],i,s,r=[],n=!1){const[a,...o]=t;if("string"===typeof a)rs(e,$i[a],i,s,r,n);else if(a){const t=ss(s,a);if(!t.setSource)return r.push(t),rs(e,o,i,s,r,n);t.setSource(Object.assign({},e),(function(a,l){if(a)return rs(e,o,i,s,r,n);r.push(t),rs(l,e.type===l.type?o:$i[l.type],i,s,r,n)}))}else o.length?rs(e,o,i,s,r,n):n?i(e,r):rs(e,$i["*"],i,s,r,!0)}const ns={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},as=function(e=""){const t=Ii(e),i=ns[t.toLowerCase()];return i||""},os=(e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const i=e.cache_.sources.filter(e=>e.src===t);if(i.length)return i[0].type;const s=e.$$("source");for(let r=0;r<s.length;r++){const e=s[r];if(e.type&&e.src&&e.src===t)return e.type}return as(t)},ls=function(e){if(Array.isArray(e)){let t=[];e.forEach((function(e){e=ls(e),Array.isArray(e)?t=t.concat(e):W(e)&&t.push(e)})),e=t}else e="string"===typeof e&&e.trim()?[ds({src:e})]:W(e)&&"string"===typeof e.src&&e.src&&e.src.trim()?[ds(e)]:[];return e};function ds(e){if(!e.type){const t=as(e.src);t&&(e.type=t)}return e}var us='<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-twitter">\n <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>';class cs extends Gt{constructor(e,t,i){const s=Y({createEl:!1},t);if(super(e,s,i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let r=0,n=t.playerOptions.techOrder;r<n.length;r++){const t=Ht(n[r]);let i=qi.getTech(t);if(t||(i=Gt.getComponent(t)),i&&i.isSupported()){e.loadTech_(t);break}}}}Gt.registerComponent("MediaLoader",cs);class hs extends Gt{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&q.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const s=xe(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=xe("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Ce(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}buildCSSClass(){return"vjs-control vjs-button "+super.buildCSSClass()}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){l.a.isEventKey(e,"Space")||l.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Gt.registerComponent("ClickableComponent",hs);class ps extends hs{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return xe("div",{className:"vjs-poster"})}crossOrigin(e){if("undefined"===typeof e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(xe("picture",{className:"vjs-poster",tabIndex:-1},{},xe("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ai(this.player_.play()):this.player_.pause())}}ps.prototype.crossorigin=ps.prototype.crossOrigin,Gt.registerComponent("PosterImage",ps);const fs="#222",ms="#ccc",gs={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ys(e,t){let i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function vs(e,t,i){try{e.style[t]=i}catch(s){return}}function bs(e){return e?e+"px":""}class _s extends Gt{constructor(e,t,i){super(e,t,i);const s=e=>this.updateDisplay(e),n=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("texttrackchange",s),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(wt(this,(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",n),e.on("playerresize",n);const t=r.a.screen.orientation||r.a,i=r.a.screen.orientation?"change":"orientationchange";t.addEventListener(i,n),e.on("dispose",()=>t.removeEventListener(i,n));const s=this.options_.playerOptions.tracks||[];for(let e=0;e<s.length;e++)this.player_.addRemoteTextTrack(s[e],!0);this.preselectTrack()})))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let s,r,n;for(let a=0;a<t.length;a++){const o=t[a];i&&i.enabled&&i.language&&i.language===o.language&&o.kind in e?o.kind===i.kind?n=o:n||(n=o):i&&!i.enabled?(n=null,s=null,r=null):o.default&&("descriptions"!==o.kind||s?o.kind in e&&!r&&(r=o):s=o)}n?n.mode="showing":r?r.mode="showing":s&&(s.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"===typeof r.a.WebVTT&&r.a.WebVTT.processCues(r.a,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let i=0;i<e.length;++i){const s=e[i];"showing"===s.mode&&t.push(s)}return void this.updateForTrack(t)}let i=null,s=null,r=e.length;while(r--){const t=e[r];"showing"===t.mode&&("descriptions"===t.kind?i=t:s=t)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!r.a.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,s=this.player_.videoWidth()/this.player_.videoHeight();let n=0,a=0;Math.abs(i-s)>.1&&(i>s?n=Math.round((e-t*s)/2):a=Math.round((t-e/s)/2)),vs(this.el_,"insetInline",bs(n)),vs(this.el_,"insetBlock",bs(a))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let s=i.length;while(s--){const e=i[s];if(!e)continue;const n=e.displayState;if(t.color&&(n.firstChild.style.color=t.color),t.textOpacity&&vs(n.firstChild,"color",ys(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(n.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&vs(n.firstChild,"backgroundColor",ys(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?vs(n,"backgroundColor",ys(t.windowColor,t.windowOpacity)):n.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?n.firstChild.style.textShadow=`2px 2px 3px ${fs}, 2px 2px 4px ${fs}, 2px 2px 5px ${fs}`:"raised"===t.edgeStyle?n.firstChild.style.textShadow=`1px 1px ${fs}, 2px 2px ${fs}, 3px 3px ${fs}`:"depressed"===t.edgeStyle?n.firstChild.style.textShadow=`1px 1px ${ms}, 0 1px ${ms}, -1px -1px ${fs}, 0 -1px ${fs}`:"uniform"===t.edgeStyle&&(n.firstChild.style.textShadow=`0 0 4px ${fs}, 0 0 4px ${fs}, 0 0 4px ${fs}, 0 0 4px ${fs}`)),t.fontPercent&&1!==t.fontPercent){const e=r.a.parseFloat(n.style.fontSize);n.style.fontSize=e*t.fontPercent+"px",n.style.height="auto",n.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?n.firstChild.style.fontVariant="small-caps":n.firstChild.style.fontFamily=gs[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!==typeof r.a.WebVTT||e.every(e=>!e.activeCues))return;const t=[];for(let i=0;i<e.length;++i){const s=e[i];for(let e=0;e<s.activeCues.length;++e)t.push(s.activeCues[e])}r.a.WebVTT.processCues(r.a,t,this.el_);for(let i=0;i<e.length;++i){const t=e[i];for(let e=0;e<t.activeCues.length;++e){const s=t.activeCues[e].displayState;Pe(s,"vjs-text-track-cue","vjs-text-track-cue-"+(t.language?t.language:i)),t.language&&Ne(s,"lang",t.language)}this.player_.textTrackSettings&&this.updateDisplayState(t)}}}Gt.registerComponent("TextTrackDisplay",_s);class Ts extends Gt{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=xe("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),s=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(i),s}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}Gt.registerComponent("LoadingSpinner",Ts);class Ss extends hs{createEl(e,t={},i={}){e="button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i);const s=xe(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}addChild(e,t={}){const i=this.constructor.name;return q.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),Gt.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){l.a.isEventKey(e,"Space")||l.a.isEventKey(e,"Enter")?e.stopPropagation():super.handleKeyDown(e)}}Gt.registerComponent("Button",Ss);class ws extends Ss{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return ai(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),s=i&&i.getChild("playToggle");if(!s)return void this.player_.tech(!0).focus();const r=()=>s.focus();ni(t)?t.then(r,()=>{}):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}ws.prototype.controlText_="Play Video",Gt.registerComponent("BigPlayButton",ws);class Es extends Ss{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return"vjs-close-button "+super.buildCSSClass()}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){l.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Gt.registerComponent("CloseButton",Es);class xs extends Ss{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return"vjs-play-control "+super.buildCSSClass()}handleClick(e){this.player_.paused()?ai(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}xs.prototype.controlText_="Play",Gt.registerComponent("PlayToggle",xs);class Cs extends Gt{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:e+" vjs-time-control vjs-control"}),i=xe("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return t.appendChild(i),this.contentEl_=xe("span",{className:e+"-display"},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=ti(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,q.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=a.a.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Cs.prototype.labelText_="Time",Cs.prototype.controlText_="Time",Gt.registerComponent("TimeDisplay",Cs);class ks extends Cs{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}ks.prototype.labelText_="Current Time",ks.prototype.controlText_="Current Time",Gt.registerComponent("CurrentTimeDisplay",ks);class Is extends Cs{constructor(e,t){super(e,t);const i=e=>this.updateContent(e);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}Is.prototype.labelText_="Duration",Is.prototype.controlText_="Duration",Gt.registerComponent("DurationDisplay",Is);class Ps extends Gt{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}}Gt.registerComponent("TimeDivider",Ps);class Os extends Cs{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(xe("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!==typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}Os.prototype.labelText_="Remaining Time",Os.prototype.controlText_="Remaining Time",Gt.registerComponent("RemainingTimeDisplay",Os);class Ls extends Gt{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=xe("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(xe("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(a.a.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}Gt.registerComponent("LiveDisplay",Ls);class As extends Ss{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=xe("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function Ds(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}As.prototype.controlText_="Seek to live, currently playing live",Gt.registerComponent("SeekToLive",As);var Ms=Object.freeze({__proto__:null,clamp:Ds});class Ns extends Gt{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||ae||e.preventDefault(),Ue(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Be(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(Ds(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=qe(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){l.a.isEventKey(e,"Left")||l.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):l.a.isEventKey(e,"Right")||l.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Gt.registerComponent("Slider",Ns);const Rs=(e,t)=>Ds(e/t*100,0,100).toFixed(2)+"%";class Us extends Gt{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=xe("span",{className:"vjs-control-text"}),i=xe("span",{textContent:this.localize("Loaded")}),s=a.a.createTextNode(": ");return this.percentageEl_=xe("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(s),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),r=this.partEls_,n=Rs(s,i);this.percent_!==n&&(this.el_.style.width=n,Ce(this.percentageEl_,n),this.percent_=n);for(let a=0;a<t.length;a++){const e=t.start(a),i=t.end(a);let n=r[a];n||(n=this.el_.appendChild(xe()),r[a]=n),n.dataset.start===e&&n.dataset.end===i||(n.dataset.start=e,n.dataset.end=i,n.style.left=Rs(e,s),n.style.width=Rs(i-e,s))}for(let a=r.length;a>t.length;a--)this.el_.removeChild(r[a-1]);r.length=t.length})}}Gt.registerComponent("LoadProgressBar",Us);class Bs extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const s=Fe(this.el_),r=je(this.player_.el()),n=e.width*t;if(!r||!s)return;const a=e.left-r.left+n,o=e.width-n+(r.right-e.right);let l=s.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>s.width&&(l=s.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(i)}write(e){Ce(this.el_,e)}updateTime(e,t,i,s){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let r;const n=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),i=e-t*e;r=(i<1?"":"-")+ti(i,e)}else r=ti(i,n);this.update(e,t,r),s&&s()})}}Gt.registerComponent("TimeTooltip",Bs);class js extends Gt{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const i=this.getChild("timeTooltip");if(!i)return;const s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,s)}}js.prototype.options_={children:[]},ge||ie||js.prototype.options_.children.push("timeTooltip"),Gt.registerComponent("PlayProgressBar",js);class Fs extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,()=>{this.el_.style.left=e.width*t+"px"})}}Fs.prototype.options_={children:["timeTooltip"]},Gt.registerComponent("MouseTimeDisplay",Fs);const qs=5,$s=12;class Hs extends Ns{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=wt(this,this.update),this.update=Et(this.update_,St),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===a.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,St))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===a.a.visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),i=this.player_.liveTracker;let s=this.player_.duration();i&&i.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===s||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ti(e,s),ti(s,s)],"{1} of {2}")),this.currentTime_=e,this.duration_=s),this.bar&&this.bar.update(je(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){We(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!We(e)||isNaN(this.player_.duration()))return;let i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const s=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(s>=.99)return void r.seekToLiveEdge();const e=r.seekableStart(),t=r.liveCurrentTime();if(i=e+s*r.liveWindow(),i>=t&&(i=t),i<=e&&(i=e+.1),i===1/0)return}else i=s*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ai(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+qs)}stepBack(){this.userSeek_(this.player_.currentTime()-qs)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(l.a.isEventKey(e,"Space")||l.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(l.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(l.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(l()(e))){e.preventDefault(),e.stopPropagation();const i=10*(l.a.codes[l()(e)]-l.a.codes["0"])/100;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else l.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-qs*$s)):l.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+qs*$s)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in a.a&&"visibilityState"in a.a&&this.off(a.a,"visibilitychange",this.toggleVisibility_),super.dispose()}}Hs.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ge||ie||Hs.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Gt.registerComponent("SeekBar",Hs);class zs extends Gt{constructor(e,t){super(e,t),this.handleMouseMove=Et(wt(this,this.handleMouseMove),St),this.throttledHandleMouseSeek=Et(wt(this,this.handleMouseSeek),St),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),s=t.getChild("mouseTimeDisplay");if(!i&&!s)return;const r=t.el(),n=Fe(r);let a=qe(r,e).x;a=Ds(a,0,1),s&&s.update(n,a),i&&i.update(n,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ai(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}zs.prototype.options_={children:["seekBar"]},Gt.registerComponent("ProgressControl",zs);class Vs extends Ss{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return"vjs-picture-in-picture-control vjs-hidden "+super.buildCSSClass()}handlePictureInPictureAudioModeChange(){const e="audio"===this.player_.currentType().substring(0,5),t=e||this.player_.audioPosterMode()||this.player_.audioOnlyMode();t?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){a.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in r.a?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"===typeof a.a.exitPictureInPicture&&super.show()}}Vs.prototype.controlText_="Picture-in-Picture",Gt.registerComponent("PictureInPictureToggle",Vs);class Gs extends Ss{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===a.a[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return"vjs-fullscreen-control "+super.buildCSSClass()}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Gs.prototype.controlText_="Fullscreen",Gt.registerComponent("FullscreenToggle",Gs);const Ws=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))};class Xs extends Gt{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}Gt.registerComponent("VolumeLevel",Xs);class Ys extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,s){if(!i){const i=je(this.el_),s=je(this.player_.el()),r=e.width*t;if(!s||!i)return;const n=e.left-s.left+r,a=e.width-r+(s.right-e.right);let o=i.width/2;n<o?o+=o-n:a<o&&(o=a),o<0?o=0:o>i.width&&(o=i.width),this.el_.style.right=`-${o}px`}this.write(s+"%")}write(e){Ce(this.el_,e)}updateVolume(e,t,i,s,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,i,s.toFixed(0)),r&&r()})}}Gt.registerComponent("VolumeLevelTooltip",Ys);class Js extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const s=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,s,()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}Js.prototype.options_={children:["volumeLevelTooltip"]},Gt.registerComponent("MouseVolumeLevelDisplay",Js);class Ks extends Ns{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){We(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),s=je(i),r=this.vertical();let n=qe(i,e);n=r?n.y:n.x,n=Ds(n,0,1),t.update(s,n,r)}We(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}Ks.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ge||ie||Ks.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ks.prototype.playerEvent="volumechange",Gt.registerComponent("VolumeBar",Ks);class Qs extends Gt{constructor(e,t={}){t.vertical=t.vertical||!1,("undefined"===typeof t.volumeBar||X(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),Ws(this,e),this.throttledHandleMouseMove=Et(wt(this,this.handleMouseMove),St),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:"vjs-volume-control vjs-control "+e})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}Qs.prototype.options_={children:["volumeBar"]},Gt.registerComponent("VolumeControl",Qs);const Zs=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))};class er extends Ss{constructor(e,t){super(e,t),Zs(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return"vjs-mute-control "+super.buildCSSClass()}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){const e=i<.1?.1:i;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),ge&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),Oe(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),Pe(this.el_,"vjs-vol-"+t)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}}er.prototype.controlText_="Mute",Gt.registerComponent("MuteToggle",er);class tr extends Gt{constructor(e,t={}){"undefined"!==typeof t.inline?t.inline=t.inline:t.inline=!0,("undefined"===typeof t.volumeControl||X(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:"vjs-volume-panel vjs-control "+e})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){l.a.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),gt(a.a,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),yt(a.a,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){l.a.isEventKey(e,"Esc")&&this.handleMouseOut()}}tr.prototype.options_={children:["muteToggle","volumeControl"]},Gt.registerComponent("VolumePanel",tr);class ir extends Ss{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon("forward-"+this.skipTime),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()?i.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=s?t+this.skipTime:s,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}ir.prototype.controlText_="Skip Forward",Gt.registerComponent("SkipForward",ir);class sr extends Ss{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon("replay-"+this.skipTime),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()&&i.seekableStart();let r;r=s&&t-this.skipTime<=s?s:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}sr.prototype.controlText_="Skip Backward",Gt.registerComponent("SkipBackward",sr);class rr extends Gt{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof Gt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Gt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"===typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=xe(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),gt(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||a.a.activeElement;if(!this.children().some(e=>e.el()===t)){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter(t=>t.el()===e.target)[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){l.a.isEventKey(e,"Left")||l.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(l.a.isEventKey(e,"Right")||l.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice(),i=t.length&&t[0].hasClass("vjs-menu-title");i&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}Gt.registerComponent("Menu",rr);class nr extends Gt{constructor(e,t={}){super(e,t),this.menuButton_=new Ss(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=Ss.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const s=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",s),this.on(this.menuButton_,"click",s),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),gt(a.a,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new rr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=xe("li",{className:"vjs-menu-title",textContent:Ht(this.options_.title),tabIndex:-1}),i=new Gt(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";const t=Ss.prototype.buildCSSClass();return`vjs-menu-button ${e} ${t} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),yt(a.a,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){l.a.isEventKey(e,"Esc")||l.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),l.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(l.a.isEventKey(e,"Up")||l.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(l.a.isEventKey(e,"Esc")||l.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(l.a.isEventKey(e,"Esc")||l.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),l.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ge&&we())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Gt.registerComponent("MenuButton",nr);class ar extends nr{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const s=wt(this,this.update);i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),i.addEventListener("labelchange",s),this.player_.on("ready",s),this.player_.on("dispose",(function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s),i.removeEventListener("labelchange",s)}))}}Gt.registerComponent("TrackButton",ar);const or=["Tab","Esc","Up","Down","Right","Left"];class lr extends hs{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,i){this.nonIconControl=!0;const s=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),r=xe("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?s.appendChild(r):s.replaceChild(r,s.querySelector(".vjs-icon-placeholder")),s}handleKeyDown(e){or.some(t=>l.a.isEventKey(e,t))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Gt.registerComponent("MenuItem",lr);class dr extends lr{constructor(e,t){const i=t.track,s=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const n=(...e)=>{this.handleTracksChange.apply(this,e)},o=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],n),s.addEventListener("change",n),s.addEventListener("selectedlanguagechange",o),this.on("dispose",(function(){e.off(["loadstart","texttrackchange"],n),s.removeEventListener("change",n),s.removeEventListener("selectedlanguagechange",o)})),void 0===s.onchange){let e;this.on(["tap","click"],(function(){if("object"!==typeof r.a.Event)try{e=new r.a.Event("change")}catch(t){}e||(e=a.a.createEvent("Event"),e.initEvent("change",!0,!0)),s.dispatchEvent(e)}))}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let s=0;s<i.length;s++){const e=i[s];-1!==this.kinds.indexOf(e.kind)&&(e===t?"showing"!==e.mode&&(e.mode="showing"):"disabled"!==e.mode&&(e.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Gt.registerComponent("TextTrackMenuItem",dr);class ur extends dr{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(this.options_.kinds.indexOf(e.kind)>-1&&"showing"===e.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(["captions","descriptions","subtitles"].indexOf(e.kind)>-1&&"showing"===e.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Gt.registerComponent("OffTextTrackMenuItem",ur);class cr extends ar{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=dr){let i;this.label_&&(i=this.label_+" off"),e.push(new ur(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let r=0;r<s.length;r++){const i=s[r];if(this.kinds_.indexOf(i.kind)>-1){const s=new t(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass(`vjs-${i.kind}-menu-item`),e.push(s)}}return e}}Gt.registerComponent("TextTrackButton",cr);class hr extends lr{constructor(e,t){const i=t.track,s=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=s.text,t.selected=s.startTime<=r&&r<s.endTime,super(e,t),this.track=i,this.cue=s}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Gt.registerComponent("ChaptersTrackMenuItem",hr);class pr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return"vjs-chapters-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-chapters-button "+super.buildWrapperCSSClass()}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Ht(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,s=t.length;i<s;i++){const s=t[i],r=new hr(this.player_,{track:this.track_,cue:s});e.push(r)}return e}}pr.prototype.kind_="chapters",pr.prototype.controlText_="Chapters",Gt.registerComponent("ChaptersButton",pr);class fr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const s=e.textTracks(),r=wt(this,this.handleTracksChange);s.addEventListener("change",r),this.on("dispose",(function(){s.removeEventListener("change",r)}))}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(e.kind!==this.kind_&&"showing"===e.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return"vjs-descriptions-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-descriptions-button "+super.buildWrapperCSSClass()}}fr.prototype.kind_="descriptions",fr.prototype.controlText_="Descriptions",Gt.registerComponent("DescriptionsButton",fr);class mr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return"vjs-subtitles-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-subtitles-button "+super.buildWrapperCSSClass()}}mr.prototype.kind_="subtitles",mr.prototype.controlText_="Subtitles",Gt.registerComponent("SubtitlesButton",mr);class gr extends dr{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Gt.registerComponent("CaptionSettingsMenuItem",gr);class yr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return"vjs-captions-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-captions-button "+super.buildWrapperCSSClass()}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new gr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}yr.prototype.kind_="captions",yr.prototype.controlText_="Captions",Gt.registerComponent("CaptionsButton",yr);class vr extends dr{createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",s):r.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(xe("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),s}}Gt.registerComponent("SubsCapsMenuItem",vr);class br extends cr{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Ht(this.label_))}buildCSSClass(){return"vjs-subs-caps-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-subs-caps-button "+super.buildWrapperCSSClass()}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new gr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,vr),e}}br.prototype.kinds_=["captions","subtitles"],br.prototype.controlText_="Subtitles",Gt.registerComponent("SubsCapsButton",br);class _r extends lr{constructor(e,t){const i=t.track,s=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const r=(...e)=>{this.handleTracksChange.apply(this,e)};s.addEventListener("change",r),this.on("dispose",()=>{s.removeEventListener("change",r)})}createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(xe("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const i=e[t];i!==this.track&&(i.enabled=i===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}Gt.registerComponent("AudioTrackMenuItem",_r);class Tr extends ar{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return"vjs-audio-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-audio-button "+super.buildWrapperCSSClass()}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const s=t[i];e.push(new _r(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return e}}Tr.prototype.controlText_="Audio Track",Gt.registerComponent("AudioTrackButton",Tr);class Sr extends lr{constructor(e,t){const i=t.rate,s=parseFloat(i,10);t.label=i,t.selected=s===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=s,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}Sr.prototype.contentElType="button",Gt.registerComponent("PlaybackRateMenuItem",Sr);class wr extends nr{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=xe("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return"vjs-playback-rate "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-playback-rate "+super.buildWrapperCSSClass()}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new Sr(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}wr.prototype.controlText_="Playback Rate",Gt.registerComponent("PlaybackRateMenuButton",wr);class Er extends Gt{buildCSSClass(){return"vjs-spacer "+super.buildCSSClass()}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}Gt.registerComponent("Spacer",Er);class xr extends Er{buildCSSClass(){return"vjs-custom-control-spacer "+super.buildCSSClass()}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Gt.registerComponent("CustomControlSpacer",xr);class Cr extends Gt{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}Cr.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Gt.registerComponent("ControlBar",Cr);class kr extends hi{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.close(),this.open(e)})}buildCSSClass(){return"vjs-error-display "+super.buildCSSClass()}content(){const e=this.player().error();return e?this.localize(e.message):""}}kr.prototype.options_=Object.assign({},hi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Gt.registerComponent("ErrorDisplay",kr);const Ir="vjs-text-track-settings",Pr=["#000","Black"],Or=["#00F","Blue"],Lr=["#0FF","Cyan"],Ar=["#0F0","Green"],Dr=["#F0F","Magenta"],Mr=["#F00","Red"],Nr=["#FFF","White"],Rr=["#FF0","Yellow"],Ur=["1","Opaque"],Br=["0.5","Semi-Transparent"],jr=["0","Transparent"],Fr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Pr,Nr,Mr,Ar,Or,Rr,Dr,Lr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[Ur,Br,jr]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Nr,Pr,Mr,Ar,Or,Rr,Dr,Lr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[Ur,Br]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[jr,Br,Ur]}};function qr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function $r(e,t){const i=e.options[e.options.selectedIndex].value;return qr(i,t)}function Hr(e,t,i){if(t)for(let s=0;s<e.options.length;s++)if(qr(e.options[s].value,i)===t){e.selectedIndex=s;break}}Fr.windowColor.options=Fr.backgroundColor.options;class zr extends hi{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=xe("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),V(Fr,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,t="",i="label"){const s=Fr[e],r=s.id.replace("%s",this.id_),n=[t,r].join(" ").trim(),a="vjs_select_"+ut();return[`<${i} id="${r}"${"label"===i?` for="${a}" class="vjs-label"`:""}>`,this.localize(s.label),`</${i}>`,`<select aria-labelledby="${n}" id="${a}">`].concat(s.options.map(e=>{const t=r+"-"+e[1].replace(/\W+/g,"");return[`<option id="${t}" value="${e[0]}" `,`aria-labelledby="${n} ${t}">`,this.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e="captions-background-"+this.id_;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e="captions-window-"+this.id_;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return xe("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return xe("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return xe("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return G(Fr,(e,t,i)=>{const s=$r(this.$(t.selector),t.parser);return void 0!==s&&(e[i]=s),e},{})}setValues(e){V(Fr,(t,i)=>{Hr(this.$(t.selector),e[i],t.parser)})}setDefaults(){V(Fr,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(r.a.localStorage.getItem(Ir))}catch(t){q.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?r.a.localStorage.setItem(Ir,JSON.stringify(e)):r.a.localStorage.removeItem(Ir)}catch(t){q.warn(t)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()}handleLanguagechange(){this.fill()}}Gt.registerComponent("TextTrackSettings",zr);class Vr extends Gt{constructor(e,t){let i=t.ResizeObserver||r.a.ResizeObserver;null===t.ResizeObserver&&(i=!1);const s=Y({createEl:!i,reportTouchActivity:!1},t);super(e,s),this.ResizeObserver=t.ResizeObserver||r.a.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=xt(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){yt(this,"resize",e),yt(this,"unload",t),t=null};gt(this.el_.contentWindow,"unload",t),gt(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}Gt.registerComponent("ResizeManager",Vr);const Gr={trackingThreshold:20,liveTolerance:15};class Wr extends Gt{constructor(e,t){const i=Y(Gr,t,{createEl:!1});super(e,i),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(r.a.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const s=this.liveCurrentTime(),n=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-n)>this.options_.liveTolerance;this.timeupdateSeen_&&s!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,St),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;while(i--)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;while(i--)t.push(e.start(i));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"===typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}Gt.registerComponent("LiveTracker",Wr);class Xr extends Gt{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:xe("div",{className:"vjs-title-bar-title",id:"vjs-title-bar-title-"+ut()}),description:xe("div",{className:"vjs-title-bar-description",id:"vjs-title-bar-description-"+ut()})},xe("div",{className:"vjs-title-bar"},{},J(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{const s=this.state[e],r=this.els[e],n=i[e];He(r),s&&Ce(r,s),t&&(t.removeAttribute(n),s&&t.setAttribute(n,r.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}Gt.registerComponent("TitleBar",Xr);const Yr=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const i=e.$$("source"),s=[];let r="";if(!i.length)return!1;for(let n=0;n<i.length;n++){const e=i[n].src;e&&-1===s.indexOf(e)&&s.push(e)}return!!s.length&&(1===s.length&&(r=s[0]),e.triggerSourceset(r),!0)},Jr=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const i=a.a.createDocumentFragment();while(t.childNodes.length)i.appendChild(t.childNodes[0]);return this.innerText="",r.a.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Kr=(e,t)=>{let i={};for(let s=0;s<e.length;s++)if(i=Object.getOwnPropertyDescriptor(e[s],t),i&&i.set&&i.get)break;return i.enumerable=!0,i.configurable=!0,i},Qr=e=>Kr([e.el(),r.a.HTMLMediaElement.prototype,r.a.Element.prototype,Jr],"innerHTML"),Zr=function(e){const t=e.el();if(t.resetSourceWatch_)return;const i={},s=Qr(e),r=i=>(...s)=>{const r=i.apply(t,s);return Yr(e),r};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",Y(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(i).forEach(e=>{t[e]=i[e]}),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},en=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?ki(r.a.Element.prototype.getAttribute.call(this,"src")):""},set(e){return r.a.Element.prototype.setAttribute.call(this,"src",e),e}}),tn=e=>Kr([e.el(),r.a.HTMLMediaElement.prototype,en],"src"),sn=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const i=tn(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Y(i,{set:s=>{const r=i.set.call(t,s);return e.triggerSourceset(t.src),r}})),t.setAttribute=(i,r)=>{const n=s.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),n},t.load=()=>{const i=r.call(t);return Yr(e)||(e.triggerSourceset(""),Zr(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):Yr(e)||Zr(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}};class rn extends qi{constructor(e,t){super(e,t);const i=e.source;let s=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const i=[];while(t--){const r=e[t],n=r.nodeName.toLowerCase();"track"===n&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),this.textTracks().addTrack(r.track),s||this.el_.hasAttribute("crossorigin")||!Pi(r.src)||(s=!0)):i.push(r))}for(let s=0;s<i.length;s++)this.el_.removeChild(i[s])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&s&&q.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(fe||pe)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),rn.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){sn(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let i=0;i<e.length;i++){const s=e[i];"metadata"===s.kind&&t.push({track:s,storedMode:s.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const s=()=>{for(let e=0;e<t.length;e++){const i=t[e];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",s),e.addEventListener("change",s)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",s)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(e=>{const t=this.el()[i+"Tracks"];t.removeEventListener(e,this[i+"TracksListeners_"][e])}),this[`featuresNative${e}Tracks`]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=Ui[e],i=this.el()[t.getterName],s=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const r={change:t=>{const i={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(i),"text"===e&&this[Bi.remoteText.getterName]().trigger(i)},addtrack(e){s.addTrack(e.track)},removetrack(e){s.removeTrack(e.track)}},n=function(){const e=[];for(let t=0;t<s.length;t++){let r=!1;for(let e=0;e<i.length;e++)if(i[e]===s[t]){r=!0;break}r||e.push(s[t])}while(e.length)s.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach(e=>{const t=r[e];i.addEventListener(e,t),this.on("dispose",s=>i.removeEventListener(e,t))}),this.on("loadstart",n),this.on("dispose",e=>this.off("loadstart",n))}proxyNativeTracks_(){Ui.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),rn.disposeMediaElement(e),e=t}else{e=a.a.createElement("video");const t=this.options_.tag&&De(this.options_.tag),i=Y({},t);fe&&!0===this.options_.nativeControlsForTouch||delete i.controls,Ae(e,Object.assign(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&Ne(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const s=t[i],r=this.options_[s];"undefined"!==typeof r&&(r?Ne(e,s,s):Re(e,s),e[s]=r)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")}))}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready((function(){t.forEach((function(e){this.trigger(e)}),this)}))}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&ye?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){q(t,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&ie&&ae&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"===typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ai(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){rn.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=a.a.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;while(i--)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r.a.performance&&(e.creationTime=r.a.performance.now()),e}}K(rn,"TEST_VID",(function(){if(!Te())return;const e=a.a.createElement("video"),t=a.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),rn.isSupported=function(){try{rn.TEST_VID.volume=.5}catch(e){return!1}return!(!rn.TEST_VID||!rn.TEST_VID.canPlayType)},rn.canPlayType=function(e){return rn.TEST_VID.canPlayType(e)},rn.canPlaySource=function(e,t){return rn.canPlayType(e.type)},rn.canControlVolume=function(){try{const e=rn.TEST_VID.volume;rn.TEST_VID.volume=e/2+.1;const t=e!==rn.TEST_VID.volume;return t&&ge?(r.a.setTimeout(()=>{rn&&rn.prototype&&(rn.prototype.featuresVolumeControl=e!==rn.TEST_VID.volume)}),!1):t}catch(e){return!1}},rn.canMuteVolume=function(){try{const e=rn.TEST_VID.muted;return rn.TEST_VID.muted=!e,rn.TEST_VID.muted?Ne(rn.TEST_VID,"muted","muted"):Re(rn.TEST_VID,"muted","muted"),e!==rn.TEST_VID.muted}catch(e){return!1}},rn.canControlPlaybackRate=function(){if(ie&&ae&&le<58)return!1;try{const e=rn.TEST_VID.playbackRate;return rn.TEST_VID.playbackRate=e/2+.1,e!==rn.TEST_VID.playbackRate}catch(e){return!1}},rn.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},rn.supportsNativeTextTracks=function(){return ye||ge&&ae},rn.supportsNativeVideoTracks=function(){return!(!rn.TEST_VID||!rn.TEST_VID.videoTracks)},rn.supportsNativeAudioTracks=function(){return!(!rn.TEST_VID||!rn.TEST_VID.audioTracks)},rn.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function([e,t]){K(rn.prototype,e,()=>rn[t](),!0)})),rn.prototype.featuresVolumeControl=rn.canControlVolume(),rn.prototype.movingMediaElementInDOM=!ge,rn.prototype.featuresFullscreenResize=!0,rn.prototype.featuresProgressEvents=!0,rn.prototype.featuresTimeupdateEvents=!0,rn.prototype.featuresVideoFrameCallback=!(!rn.TEST_VID||!rn.TEST_VID.requestVideoFrameCallback),rn.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},rn.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let i=t.length;while(i--)e.removeChild(t[i]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){rn.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){rn.prototype["set"+Ht(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){rn.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){rn.prototype["set"+Ht(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){rn.prototype[e]=function(){return this.el_[e]()}})),qi.withSourceHandlers(rn),rn.nativeSourceHandler={},rn.nativeSourceHandler.canPlayType=function(e){try{return rn.TEST_VID.canPlayType(e)}catch(t){return""}},rn.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return rn.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=Ii(e.src);return rn.nativeSourceHandler.canPlayType("video/"+t)}return""},rn.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},rn.nativeSourceHandler.dispose=function(){},rn.registerSourceHandler(rn.nativeSourceHandler),qi.registerTech("Html5",rn);const nn=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],an={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},on=["tiny","xsmall","small","medium","large","xlarge","huge"],ln={};on.forEach(e=>{const t="x"===e.charAt(0)?"x-"+e.substring(1):e;ln[e]="vjs-layout-"+t});const dn={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class un extends Gt{constructor(e,t,i){if(e.id=e.id||t.id||"vjs_video_"+ut(),t=Object.assign(un.getTagSettings(e),t),t.initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const i=e.closest("[lang]");i&&(t.language=i.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.isFullscreen_=!1,this.log=$(this.id_),this.fsApi_=M,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&De(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach((function(i){e[i.toLowerCase()]=t.languages[i]})),this.languages_=e}else this.languages_=un.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!==typeof this[e])throw new Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),jt(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(gt(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=Y(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=new r.a.DOMParser,t=e.parseFromString(us,"image/svg+xml"),i=t.querySelector("parsererror");if(i)q.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const e=t.documentElement;e.style.display="none",this.el_.appendChild(e),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),fe&&this.addClass("vjs-touch-enabled"),ge||this.addClass("vjs-workinghover"),un.players[this.id_]=this;const n=I.split(".")[0];this.addClass("vjs-v"+n),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),yt(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),yt(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),un.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),is(this),ji.names.forEach(e=>{const t=ji[e],i=this[t.getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const s="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=t.parentNode:s||(e=this.el_=super.createEl("div"));const n=De(t);if(s){e=this.el_=t,t=this.tag=a.a.createElement("video");while(e.children.length)t.appendChild(e.firstChild);Ie(e,"video-js")||Pe(e,"video-js"),e.appendChild(t),i=this.playerElIngest_=e,Object.keys(e).forEach(i=>{try{t[i]=e[i]}catch(s){}})}if(t.setAttribute("tabindex","-1"),n.tabindex="-1",ae&&ce&&(t.setAttribute("role","application"),n.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in n&&delete n.width,"height"in n&&delete n.height,Object.getOwnPropertyNames(n).forEach((function(i){s&&"class"===i||e.setAttribute(i,n[i]),s&&t.setAttribute(i,n[i])})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused"),!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=rt("vjs-styles-dimensions");const e=Xe(".vjs-styles-defaults"),t=Xe("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const o=t.getElementsByTagName("a");for(let r=0;r<o.length;r++){const e=o.item(r);Pe(e,"vjs-hidden"),e.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(e,t),ke(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if("undefined"===typeof e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):q.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const s=parseFloat(t);isNaN(s)?q.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=s,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Ot(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),Lt(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===r.a.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"===typeof this.width_?this.width_:this.options_.width,t="number"===typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(e>=0&&(i.width=e),t>=0&&(i.height=t)))}let e,t,i,s;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const n=i.split(":"),a=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),nt(this.styleEl_,`\n .${s} {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${s}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*a}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Ht(e),s=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(qi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let r=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const n={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${s}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};ji.names.forEach(e=>{const t=ji[e];n[t.getterName]=this[t.privateName]}),Object.assign(n,this.options_[i]),Object.assign(n,this.options_[s]),Object.assign(n,this.options_[e.toLowerCase()]),this.tag&&(n.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime);const a=qi.getTech(e);if(!a)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new a(n),this.tech_.ready(wt(this,this.handleTechReady_),!0),ui.jsonToTextTracks(this.textTracksJson_||[],this.tech_),nn.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${Ht(e)}_`](t))}),Object.keys(an).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${an[e]}_`].bind(this),event:t}):this[`handleTech${an[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||ke(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){ji.names.forEach(e=>{const t=ji[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=ui.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&q.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":I}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!==typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const i=this.play();if(ni(i))return i.catch(e=>{throw t(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),ni(i)&&(i=i.catch(t))),ni(i)?i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,i="";"string"!==typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=os(this,t)),this.cache_.source=Y({},e,{src:t,type:i});const s=this.cache_.sources.filter(e=>e.src&&e.src===t),r=[],n=this.$$("source"),a=[];for(let o=0;o<n.length;o++){const e=De(n[o]);r.push(e),e.src&&e.src===t&&a.push(e.src)}a.length&&!s.length?this.cache_.sources=r:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const i=this.currentSource().src,s=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(s)&&(!this.lastSource_||this.lastSource_.tech!==s&&this.lastSource_.player!==i)&&(t=()=>{}),t(s),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?ai(this.play()):this.pause()))}handleTechDoubleClick_(e){if(!this.controls_)return;const t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target));t||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let s=a.a[this.fsApi_.fullscreenElement]===i;!s&&i.matches&&(s=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready((function(){if(e in Qi)return Yi(this.middleware_,this.tech_,e,t);if(e in Zi)return Ji(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(i){throw q(i),i}}),!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Ki)return Xi(this.middleware_,this.tech_,e);if(e in Zi)return Ji(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw q(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw q(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw q(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=ai){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(ye||ge);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const s=this.techGet_("play"),r=i&&this.hasClass("vjs-ended");r&&this.resetProgressBar_(),null===s?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||Jt(0,0)}scrubbing(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=Jt(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=Jt(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return si(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((i,s)=>{function r(){t.off("fullscreenerror",a),t.off("fullscreenchange",n)}function n(){r(),i()}function a(e,t){r(),s(t)}t.one("fullscreenchange",n),t.one("fullscreenerror",a);const o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(i,s))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,i)=>{function s(){e.off("fullscreenerror",n),e.off("fullscreenchange",r)}function r(){s(),t()}function n(e,t){s(),i(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",n);const a=e.exitFullscreenHelper_();a&&(a.then(s,s),a.then(t,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=a.a[this.fsApi_.exitFullscreen]();return e&&ai(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,gt(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",Pe(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){l.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,yt(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,Oe(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&r.a.documentPictureInPicture){const e=a.a.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(xe("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),r.a.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(Ke(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),t.addEventListener("pagehide",t=>{const i=t.target.querySelector(".video-js");e.parentNode.replaceChild(i,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in a.a&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return r.a.documentPictureInPicture&&r.a.documentPictureInPicture.window?(r.a.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in a.a?a.a.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;if(!t||!t.hotkeys)return;const i=e=>{const t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;const i=["button","checkbox","hidden","radio","reset","submit"];if("input"===t)return-1===i.indexOf(e.type);const s=["textarea"];return-1!==s.indexOf(t)};i(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=(e=>l.a.isEventKey(e,"f")),muteKey:s=(e=>l.a.isEventKey(e,"m")),playPauseKey:r=(e=>l.a.isEventKey(e,"k")||l.a.isEventKey(e,"Space"))}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gt.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else if(s.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gt.getComponent("MuteToggle");t.prototype.handleClick.call(this,e)}else if(r.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gt.getComponent("PlayToggle");t.prototype.handleClick.call(this,e)}}canPlayType(e){let t;for(let i=0,s=this.options_.techOrder;i<s.length;i++){const r=s[i];let n=qi.getTech(r);if(n||(n=Gt.getComponent(r)),n){if(n.isSupported()&&(t=n.canPlayType(e),t))return t}else q.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(e=>[e,qi.getTech(e)]).filter(([e,t])=>t?t.isSupported():(q.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(e,t,i){let s;return e.some(e=>t.some(t=>{if(s=i(e,t),s)return!0})),s};let s;const r=e=>(t,i)=>e(i,t),n=([e,t],i)=>{if(t.canPlaySource(i,this.options_[e.toLowerCase()]))return{source:i,tech:e}};return s=this.options_.sourceOrder?i(e,t,r(n)):i(t,e,n),s||!1}handleSrc_(e,t){if("undefined"===typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=ls(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Gi(this,i[0],(e,s)=>{this.middleware_=s,t||(this.cache_.sources=i),this.updateSourceCaches_(e);const r=this.src_(e);if(r)return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void this.triggerReady());Wi(s,this.tech_)}),i.length>1){const e=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(zt(t.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const e=this.play();ai(e.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ot(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:s}=this.controlBar||{},{seekBar:r}=i||{};e&&e.updateContent(),t&&t.updateContent(),s&&s.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"===typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"===typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(O("beforeerror").forEach(t=>{const i=t(this,e);W(i)&&!Array.isArray(i)||"string"===typeof i||"number"===typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new ri(e),this.addClass("vjs-error"),q.error(`(CODE:${this.error_.code} ${ri.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),O("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,i;const s=wt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,s())},n=function(){s(),this.clearInterval(e),e=this.setInterval(s,250)},a=function(t){s(),this.clearInterval(e)};this.on("mousedown",n),this.on("mousemove",r),this.on("mouseup",a),this.on("mouseleave",a);const o=this.getChild("controlBar");let l;!o||ge||ie||(o.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),o.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",s),this.on("keyup",s);const d=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);const e=this.options_.inactivityTimeout;e<=0||(l=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))};this.setInterval(d,250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!==typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){const e=this.tech_&&this.tech_;e.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){const e=this.tech_&&this.tech_;e.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){if("boolean"!==typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){const e=this.audioOnlyMode(!1);return e.then(()=>{this.enablePosterModeUI_()})}return Promise.resolve().then(()=>{this.enablePosterModeUI_()})}return Promise.resolve().then(()=>{this.disablePosterModeUI_()})}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ot(this)&&this.trigger("languagechange"))}languages(){return Y(un.prototype.options_.languages,this.languages_)}toJSON(){const e=Y(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let s=t[i];s=Y(s),s.player=void 0,e.tracks[i]=s}return e}createModal(e,t){t=t||{},t.content=e||"";const i=new hi(this,t);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<on.length;i++){const s=on[i],r=this.breakpoints_[s];if(t<=r){if(e===s)return;e&&this.removeClass(ln[e]),this.addClass(ln[s]),this.breakpoint_=s;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},dn,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;e=Boolean(e);const t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return ln[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!==typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=Y(e);const{artist:s,artwork:r,description:n,poster:a,src:o,textTracks:l,title:d}=this.cache_.media;!r&&a&&(this.cache_.media.artwork=[{src:a,type:as(a)}]),i&&this.crossOrigin(i),o&&this.src(o),a&&this.poster(a),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:d,description:n||s||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src})),s={src:t,textTracks:i};return e&&(s.poster=e,s.artwork=[{src:s.poster,type:as(s.poster)}]),s}return Y(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=De(e),s=i["data-setup"];if(Ie(e,"vjs-fill")&&(i.fill=!0),Ie(e,"vjs-fluid")&&(i.fluid=!0),null!==s){const[e,t]=u()(s||"{}");e&&q.error(e),Object.assign(i,t)}if(Object.assign(t,i),e.hasChildNodes()){const i=e.childNodes;for(let e=0,s=i.length;e<s;e++){const s=i[e],r=s.nodeName.toLowerCase();"source"===r?t.sources.push(De(s)):"track"===r&&t.tracks.push(De(s))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"===typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}ji.names.forEach((function(e){const t=ji[e];un.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),un.prototype.crossorigin=un.prototype.crossOrigin,un.players={};const cn=r.a.navigator;un.prototype.options_={techOrder:qi.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:cn&&(cn.languages&&cn.languages[0]||cn.userLanguage||cn.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1},nn.forEach((function(e){un.prototype[`handleTech${Ht(e)}_`]=function(){return this.trigger(e)}})),Gt.registerComponent("Player",un);const hn="plugin",pn="activePlugins_",fn={},mn=e=>fn.hasOwnProperty(e),gn=e=>mn(e)?fn[e]:void 0,yn=(e,t)=>{e[pn]=e[pn]||{},e[pn][t]=!0},vn=(e,t,i)=>{const s=(i?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},bn=function(e,t){const i=function(){vn(this,{name:e,plugin:t,instance:null},!0);const i=t.apply(this,arguments);return yn(this,e),vn(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach((function(e){i[e]=t[e]})),i},_n=(e,t)=>(t.prototype.name=e,function(...i){vn(this,{name:e,plugin:t,instance:null},!0);const s=new t(...[this,...i]);return this[e]=()=>s,vn(this,s.getEventHash()),s});class Tn{constructor(e){if(this.constructor===Tn)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),jt(this),delete this.trigger,qt(this,this.constructor.defaultState),yn(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return vt(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[pn][e]=!1,this.player=this.state=null,t[e]=_n(e,fn[e])}static isBasic(e){const t="string"===typeof e?gn(e):e;return"function"===typeof t&&!Tn.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!==typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(mn(e))q.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(un.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!==typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return fn[e]=t,e!==hn&&(Tn.isBasic(t)?un.prototype[e]=bn(e,t):un.prototype[e]=_n(e,t)),t}static deregisterPlugin(e){if(e===hn)throw new Error("Cannot de-register base plugin.");mn(e)&&(delete fn[e],delete un.prototype[e])}static getPlugins(e=Object.keys(fn)){let t;return e.forEach(e=>{const i=gn(e);i&&(t=t||{},t[e]=i)}),t}static getPluginVersion(e){const t=gn(e);return t&&t.VERSION||""}}function Sn(e,t){let i=!1;return function(...s){return i||q.warn(e),i=!0,t.apply(this,s)}}function wn(e,t,i,s){return Sn(`${t} is deprecated and will be removed in ${e}.0; please use ${i} instead.`,s)}Tn.getPlugin=gn,Tn.BASE_PLUGIN_NAME=hn,Tn.registerPlugin(hn,Tn),un.prototype.usingPlugin=function(e){return!!this[pn]&&!0===this[pn][e]},un.prototype.hasPlugin=function(e){return!!mn(e)};const En=e=>0===e.indexOf("#")?e.slice(1):e;function xn(e,t,i){let s=xn.getPlayer(e);if(s)return t&&q.warn(`Player "${e}" is already initialised. Options will not be applied.`),i&&s.ready(i),s;const n="string"===typeof e?Xe("#"+En(e)):e;if(!Se(n))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a="getRootNode"in n&&n.getRootNode()instanceof r.a.ShadowRoot,o=a?n.getRootNode():n.ownerDocument.body;n.ownerDocument.defaultView&&o.contains(n)||q.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(n.parentNode&&n.parentNode.hasAttribute("data-vjs-player")?n.parentNode:n).cloneNode(!0)),O("beforesetup").forEach(e=>{const i=e(n,Y(t));W(i)&&!Array.isArray(i)?t=Y(t,i):q.error("please return an object in beforesetup hooks")});const l=Gt.getComponent("Player");return s=new l(n,t,i),O("setup").forEach(e=>e(s)),s}if(xn.hooks_=P,xn.hooks=O,xn.hook=L,xn.hookOnce=D,xn.removeHook=A,!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE&&Te()){let e=Xe(".vjs-styles-defaults");if(!e){e=rt("vjs-styles-defaults");const t=Xe("head");t&&t.insertBefore(e,t.firstChild),nt(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}it(1,xn),xn.VERSION=I,xn.options=un.prototype.options_,xn.getPlayers=()=>un.players,xn.getPlayer=e=>{const t=un.players;let i;if("string"===typeof e){const s=En(e),r=t[s];if(r)return r;i=Xe("#"+s)}else i=e;if(Se(i)){const{player:e,playerId:s}=i;if(e||t[s])return e||t[s]}},xn.getAllPlayers=()=>Object.keys(un.players).map(e=>un.players[e]).filter(Boolean),xn.players=un.players,xn.getComponent=Gt.getComponent,xn.registerComponent=(e,t)=>(qi.isTech(t)&&q.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Gt.registerComponent.call(Gt,e,t)),xn.getTech=qi.getTech,xn.registerTech=qi.registerTech,xn.use=Vi,Object.defineProperty(xn,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(xn.middleware,"TERMINATOR",{value:zi,writeable:!1,enumerable:!0}),xn.browser=ve,xn.obj=Q,xn.mergeOptions=wn(9,"videojs.mergeOptions","videojs.obj.merge",Y),xn.defineLazyProperty=wn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",K),xn.bind=wn(9,"videojs.bind","native Function.prototype.bind",wt),xn.registerPlugin=Tn.registerPlugin,xn.deregisterPlugin=Tn.deregisterPlugin,xn.plugin=(e,t)=>(q.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Tn.registerPlugin(e,t)),xn.getPlugins=Tn.getPlugins,xn.getPlugin=Tn.getPlugin,xn.getPluginVersion=Tn.getPluginVersion,xn.addLanguage=function(e,t){return e=(""+e).toLowerCase(),xn.options.languages=Y(xn.options.languages,{[e]:t}),xn.options.languages[e]},xn.log=q,xn.createLogger=$,xn.time=ii,xn.createTimeRange=wn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Jt),xn.createTimeRanges=wn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Jt),xn.formatTime=wn(9,"videojs.formatTime","videojs.time.formatTime",ti),xn.setFormatTime=wn(9,"videojs.setFormatTime","videojs.time.setFormatTime",Zt),xn.resetFormatTime=wn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",ei),xn.parseUrl=wn(9,"videojs.parseUrl","videojs.url.parseUrl",Ci),xn.isCrossOrigin=wn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Pi),xn.EventTarget=It,xn.any=_t,xn.on=gt,xn.one=bt,xn.off=yt,xn.trigger=vt,xn.xhr=h.a,xn.TextTrack=Di,xn.AudioTrack=Mi,xn.VideoTrack=Ni,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{xn[e]=function(){return q.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),Qe[e].apply(null,arguments)}}),xn.computedStyle=wn(9,"videojs.computedStyle","videojs.dom.computedStyle",Je),xn.dom=Qe,xn.fn=Ct,xn.num=Ms,xn.str=Vt,xn.url=Oi;
|
24
|
+
for(n=97;n<123;n++)s[String.fromCharCode(n)]=n-32;for(var n=48;n<58;n++)s[n-48]=n;for(n=1;n<13;n++)s["f"+n]=n+111;for(n=0;n<10;n++)s["numpad "+n]=n+96;var a=t.names=t.title={};for(n in s)a[s[n]]=n;for(var o in r)s[o]=r[o]},df7c:function(e,t,i){(function(e){function i(e,t){for(var i=0,s=e.length-1;s>=0;s--){var r=e[s];"."===r?e.splice(s,1):".."===r?(e.splice(s,1),i++):i&&(e.splice(s,1),i--)}if(t)for(;i--;i)e.unshift("..");return e}function s(e){"string"!==typeof e&&(e+="");var t,i=0,s=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){i=t+1;break}}else-1===s&&(r=!1,s=t+1);return-1===s?"":e.slice(i,s)}function r(e,t){if(e.filter)return e.filter(t);for(var i=[],s=0;s<e.length;s++)t(e[s],s,e)&&i.push(e[s]);return i}t.resolve=function(){for(var t="",s=!1,n=arguments.length-1;n>=-1&&!s;n--){var a=n>=0?arguments[n]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,s="/"===a.charAt(0))}return t=i(r(t.split("/"),(function(e){return!!e})),!s).join("/"),(s?"/":"")+t||"."},t.normalize=function(e){var s=t.isAbsolute(e),a="/"===n(e,-1);return e=i(r(e.split("/"),(function(e){return!!e})),!s).join("/"),e||s||(e="."),e&&a&&(e+="/"),(s?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,i){function s(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var i=e.length-1;i>=0;i--)if(""!==e[i])break;return t>i?[]:e.slice(t,i-t+1)}e=t.resolve(e).substr(1),i=t.resolve(i).substr(1);for(var r=s(e.split("/")),n=s(i.split("/")),a=Math.min(r.length,n.length),o=a,l=0;l<a;l++)if(r[l]!==n[l]){o=l;break}var d=[];for(l=o;l<r.length;l++)d.push("..");return d=d.concat(n.slice(o)),d.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,s=-1,r=!0,n=e.length-1;n>=1;--n)if(t=e.charCodeAt(n),47===t){if(!r){s=n;break}}else r=!1;return-1===s?i?"/":".":i&&1===s?"/":e.slice(0,s)},t.basename=function(e,t){var i=s(e);return t&&i.substr(-1*t.length)===t&&(i=i.substr(0,i.length-t.length)),i},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,i=0,s=-1,r=!0,n=0,a=e.length-1;a>=0;--a){var o=e.charCodeAt(a);if(47!==o)-1===s&&(r=!1,s=a+1),46===o?-1===t?t=a:1!==n&&(n=1):-1!==t&&(n=-1);else if(!r){i=a+1;break}}return-1===t||-1===s||0===n||1===n&&t===s-1&&t===i+1?"":e.slice(t,s)};var n="b"==="ab".substr(-1)?function(e,t,i){return e.substr(t,i)}:function(e,t,i){return t<0&&(t=e.length+t),e.substr(t,i)}}).call(this,i("4362"))},e003:function(e,t,i){var s=i("89a7").NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,n=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+r.source+n.source+"*(?::"+r.source+n.source+"*)?$"),o=0,l=1,d=2,u=3,c=4,h=5,p=6,f=7;function m(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,m)}function g(){}function y(e,t,i,r,n){function a(e){if(e>65535){e-=65536;var t=55296+(e>>10),i=56320+(1023&e);return String.fromCharCode(t,i)}return String.fromCharCode(e)}function o(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?a(parseInt(t.substr(1).replace("x","0x"))):(n.error("entity not found:"+e),e)}function l(t){if(t>y){var i=e.substring(y,t).replace(/&#?\w+;/g,o);p&&d(y),r.characters(i,0,t-y),y=t}}function d(t,i){while(t>=c&&(i=h.exec(e)))u=i.index,c=u+i[0].length,p.lineNumber++;p.columnNumber=t-u+1}var u=0,c=0,h=/.*(?:\r\n?|\n)|.*$/g,p=r.locator,f=[{currentNSMap:t}],g={},y=0;while(1){try{var w=e.indexOf("<",y);if(w<0){if(!e.substr(y).match(/^\s*$/)){var k=r.doc,I=k.createTextNode(e.substr(y));k.appendChild(I),r.currentElement=I}return}switch(w>y&&l(w),e.charAt(w+1)){case"/":var P=e.indexOf(">",w+3),O=e.substring(w+2,P).replace(/[ \t\n\r]+$/g,""),L=f.pop();P<0?(O=e.substring(w+2).replace(/[\s<].*/,""),n.error("end tag name: "+O+" is not complete:"+L.tagName),P=w+1+O.length):O.match(/\s</)&&(O=O.replace(/[\s<].*/,""),n.error("end tag name: "+O+" maybe not complete"),P=w+1+O.length);var A=L.localNSMap,D=L.tagName==O,M=D||L.tagName&&L.tagName.toLowerCase()==O.toLowerCase();if(M){if(r.endElement(L.uri,L.localName,O),A)for(var N in A)Object.prototype.hasOwnProperty.call(A,N)&&r.endPrefixMapping(N);D||n.fatalError("end tag name: "+O+" is not match the current start tagName:"+L.tagName)}else f.push(L);P++;break;case"?":p&&d(w),P=x(e,w,r);break;case"!":p&&d(w),P=E(e,w,r,n);break;default:p&&d(w);var R=new C,U=f[f.length-1].currentNSMap,B=(P=b(e,w,R,U,o,n),R.length);if(!R.closed&&S(e,P,R.tagName,g)&&(R.closed=!0,i.nbsp||n.warning("unclosed xml attribute")),p&&B){for(var j=v(p,{}),F=0;F<B;F++){var q=R[F];d(q.offset),q.locator=v(p,{})}r.locator=j,_(R,r,U)&&f.push(R),r.locator=p}else _(R,r,U)&&f.push(R);s.isHTML(R.uri)&&!R.closed?P=T(e,P,R.tagName,o,r):P++}}catch($){if($ instanceof m)throw $;n.error("element parse error: "+$),P=-1}P>y?y=P:l(Math.max(w,y)+1)}}function v(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function b(e,t,i,r,n,a){function m(e,t,s){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,n),s)}var g,y=++t,v=o;while(1){var b=e.charAt(y);switch(b){case"=":if(v===l)g=e.slice(t,y),v=u;else{if(v!==d)throw new Error("attribute equal must after attrName");v=u}break;case"'":case'"':if(v===u||v===l){if(v===l&&(a.warning('attribute value must after "="'),g=e.slice(t,y)),t=y+1,y=e.indexOf(b,t),!(y>0))throw new Error("attribute value no end '"+b+"' match");_=e.slice(t,y),m(g,_,t-1),v=h}else{if(v!=c)throw new Error('attribute value must after "="');_=e.slice(t,y),m(g,_,t),a.warning('attribute "'+g+'" missed start quot('+b+")!!"),t=y+1,v=h}break;case"/":switch(v){case o:i.setTagName(e.slice(t,y));case h:case p:case f:v=f,i.closed=!0;case c:case l:break;case d:i.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),v==o&&i.setTagName(e.slice(t,y)),y;case">":switch(v){case o:i.setTagName(e.slice(t,y));case h:case p:case f:break;case c:case l:_=e.slice(t,y),"/"===_.slice(-1)&&(i.closed=!0,_=_.slice(0,-1));case d:v===d&&(_=g),v==c?(a.warning('attribute "'+_+'" missed quot(")!'),m(g,_,t)):(s.isHTML(r[""])&&_.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+_+'" missed value!! "'+_+'" instead!!'),m(_,_,t));break;case u:throw new Error("attribute value missed!!")}return y;case"":b=" ";default:if(b<=" ")switch(v){case o:i.setTagName(e.slice(t,y)),v=p;break;case l:g=e.slice(t,y),v=d;break;case c:var _=e.slice(t,y);a.warning('attribute "'+_+'" missed quot(")!!'),m(g,_,t);case h:v=p;break}else switch(v){case d:i.tagName;s.isHTML(r[""])&&g.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),m(g,g,t),t=y,v=l;break;case h:a.warning('attribute space is required"'+g+'"!!');case p:v=l,t=y;break;case u:v=c,t=y;break;case f:throw new Error("elements closed character '/' and '>' must be connected to")}}y++}}function _(e,t,i){var r=e.tagName,n=null,a=e.length;while(a--){var o=e[a],l=o.qName,d=o.value,u=l.indexOf(":");if(u>0)var c=o.prefix=l.slice(0,u),h=l.slice(u+1),p="xmlns"===c&&h;else h=l,c=null,p="xmlns"===l&&"";o.localName=h,!1!==p&&(null==n&&(n={},w(i,i={})),i[p]=n[p]=d,o.uri=s.XMLNS,t.startPrefixMapping(p,d))}a=e.length;while(a--){o=e[a];c=o.prefix;c&&("xml"===c&&(o.uri=s.XML),"xmlns"!==c&&(o.uri=i[c||""]))}u=r.indexOf(":");u>0?(c=e.prefix=r.slice(0,u),h=e.localName=r.slice(u+1)):(c=null,h=e.localName=r);var f=e.uri=i[c||""];if(t.startElement(f,h,r,e),!e.closed)return e.currentNSMap=i,e.localNSMap=n,!0;if(t.endElement(f,h,r),n)for(c in n)Object.prototype.hasOwnProperty.call(n,c)&&t.endPrefixMapping(c)}function T(e,t,i,s,r){if(/^(?:script|textarea)$/i.test(i)){var n=e.indexOf("</"+i+">",t),a=e.substring(t+1,n);if(/[&<]/.test(a))return/^script$/i.test(i)?(r.characters(a,0,a.length),n):(a=a.replace(/&#?\w+;/g,s),r.characters(a,0,a.length),n)}return t+1}function S(e,t,i,s){var r=s[i];return null==r&&(r=e.lastIndexOf("</"+i+">"),r<t&&(r=e.lastIndexOf("</"+i)),s[i]=r),r<t}function w(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function E(e,t,i,s){var r=e.charAt(t+2);switch(r){case"-":if("-"===e.charAt(t+3)){var n=e.indexOf("--\x3e",t+4);return n>t?(i.comment(e,t+4,n-t-4),n+3):(s.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){n=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,n-t-9),i.endCDATA(),n+3}var a=k(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var l=a[1][0],d=!1,u=!1;o>3&&(/^public$/i.test(a[2][0])?(d=a[3][0],u=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var c=a[o-1];return i.startDTD(l,d,u),i.endDTD(),c.index+c[0].length}}return-1}function x(e,t,i){var s=e.indexOf("?>",t);if(s){var r=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return i.processingInstruction(r[1],r[2]),s+2}return-1}return-1}function C(){this.attributeNames={}}function k(e,t){var i,s=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);while(i=r.exec(e))if(s.push(i),i[1])return s}m.prototype=new Error,m.prototype.name=m.name,g.prototype={parse:function(e,t,i){var s=this.domBuilder;s.startDocument(),w(t,t={}),y(e,t,i,s,this.errorHandler),s.endDocument()}},C.prototype={setTagName:function(e){if(!a.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!a.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=g,t.ParseError=m},e1c8:function(e,t,i){var s=i("89a7"),r=s.find,n=s.NAMESPACE;function a(e){return""!==e}function o(e){return e?e.split(/[\t\n\f\r ]+/).filter(a):[]}function l(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function d(e){if(!e)return[];var t=o(e);return Object.keys(t.reduce(l,{}))}function u(e){return function(t){return e&&-1!==e.indexOf(t)}}function c(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function h(e,t){var i=e.prototype;if(!(i instanceof t)){function s(){}s.prototype=t.prototype,s=new s,c(i,s),e.prototype=i=s}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}var p={},f=p.ELEMENT_NODE=1,m=p.ATTRIBUTE_NODE=2,g=p.TEXT_NODE=3,y=p.CDATA_SECTION_NODE=4,v=p.ENTITY_REFERENCE_NODE=5,b=p.ENTITY_NODE=6,_=p.PROCESSING_INSTRUCTION_NODE=7,T=p.COMMENT_NODE=8,S=p.DOCUMENT_NODE=9,w=p.DOCUMENT_TYPE_NODE=10,E=p.DOCUMENT_FRAGMENT_NODE=11,x=p.NOTATION_NODE=12,C={},k={},I=(C.INDEX_SIZE_ERR=(k[1]="Index size error",1),C.DOMSTRING_SIZE_ERR=(k[2]="DOMString size error",2),C.HIERARCHY_REQUEST_ERR=(k[3]="Hierarchy request error",3)),P=(C.WRONG_DOCUMENT_ERR=(k[4]="Wrong document",4),C.INVALID_CHARACTER_ERR=(k[5]="Invalid character",5),C.NO_DATA_ALLOWED_ERR=(k[6]="No data allowed",6),C.NO_MODIFICATION_ALLOWED_ERR=(k[7]="No modification allowed",7),C.NOT_FOUND_ERR=(k[8]="Not found",8)),O=(C.NOT_SUPPORTED_ERR=(k[9]="Not supported",9),C.INUSE_ATTRIBUTE_ERR=(k[10]="Attribute in use",10));C.INVALID_STATE_ERR=(k[11]="Invalid state",11),C.SYNTAX_ERR=(k[12]="Syntax error",12),C.INVALID_MODIFICATION_ERR=(k[13]="Invalid modification",13),C.NAMESPACE_ERR=(k[14]="Invalid namespace",14),C.INVALID_ACCESS_ERR=(k[15]="Invalid access",15);function L(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,k[e]),this.message=k[e],Error.captureStackTrace&&Error.captureStackTrace(this,L);return i.code=e,t&&(this.message=this.message+": "+t),i}function A(){}function D(e,t){this._node=e,this._refresh=t,M(this)}function M(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var i=e._refresh(e._node);if(xe(e,"length",i.length),!e.$$length||i.length<e.$$length)for(var s=i.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];c(i,e),e._inc=t}}function N(){}function R(e,t){var i=e.length;while(i--)if(e[i]===t)return i}function U(e,t,i,s){if(s?t[R(t,s)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(s&&V(r,e,s),z(r,e,i))}}function B(e,t,i){var s=R(t,i);if(!(s>=0))throw new L(P,new Error(e.tagName+"@"+i));var r=t.length-1;while(s<r)t[s]=t[++s];if(t.length=r,e){var n=e.ownerDocument;n&&(V(n,e,i),i.ownerElement=null)}}function j(){}function F(){}function q(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function $(e,t){if(t(e))return!0;if(e=e.firstChild)do{if($(e,t))return!0}while(e=e.nextSibling)}function H(){this.ownerDocument=this}function z(e,t,i){e&&e._inc++;var s=i.namespaceURI;s===n.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function V(e,t,i,s){e&&e._inc++;var r=i.namespaceURI;r===n.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function G(e,t,i){if(e&&e._inc){e._inc++;var s=t.childNodes;if(i)s[s.length++]=i;else{var r=t.firstChild,n=0;while(r)s[n++]=r,r=r.nextSibling;s.length=n,delete s[s.length]}}}function W(e,t){var i=t.previousSibling,s=t.nextSibling;return i?i.nextSibling=s:e.firstChild=s,s?s.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,G(e.ownerDocument,e),t}function X(e){return e&&(e.nodeType===F.DOCUMENT_NODE||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.ELEMENT_NODE)}function Y(e){return e&&(K(e)||Q(e)||J(e)||e.nodeType===F.DOCUMENT_FRAGMENT_NODE||e.nodeType===F.COMMENT_NODE||e.nodeType===F.PROCESSING_INSTRUCTION_NODE)}function J(e){return e&&e.nodeType===F.DOCUMENT_TYPE_NODE}function K(e){return e&&e.nodeType===F.ELEMENT_NODE}function Q(e){return e&&e.nodeType===F.TEXT_NODE}function Z(e,t){var i=e.childNodes||[];if(r(i,K)||J(t))return!1;var s=r(i,J);return!(t&&s&&i.indexOf(s)>i.indexOf(t))}function ee(e,t){var i=e.childNodes||[];function s(e){return K(e)&&e!==t}if(r(i,s))return!1;var n=r(i,J);return!(t&&n&&i.indexOf(n)>i.indexOf(t))}function te(e,t,i){if(!X(e))throw new L(I,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new L(P,"child not in parent");if(!Y(t)||J(t)&&e.nodeType!==F.DOCUMENT_NODE)throw new L(I,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ie(e,t,i){var s=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=n.filter(K);if(a.length>1||r(n,Q))throw new L(I,"More than one element or text in fragment");if(1===a.length&&!Z(e,i))throw new L(I,"Element in fragment can not be inserted before doctype")}if(K(t)&&!Z(e,i))throw new L(I,"Only one element can be added and only after doctype");if(J(t)){if(r(s,J))throw new L(I,"Only one doctype is allowed");var o=r(s,K);if(i&&s.indexOf(o)<s.indexOf(i))throw new L(I,"Doctype can only be inserted before an element");if(!i&&o)throw new L(I,"Doctype can not be appended since element is present")}}function se(e,t,i){var s=e.childNodes||[],n=t.childNodes||[];if(t.nodeType===F.DOCUMENT_FRAGMENT_NODE){var a=n.filter(K);if(a.length>1||r(n,Q))throw new L(I,"More than one element or text in fragment");if(1===a.length&&!ee(e,i))throw new L(I,"Element in fragment can not be inserted before doctype")}if(K(t)&&!ee(e,i))throw new L(I,"Only one element can be added and only after doctype");if(J(t)){function o(e){return J(e)&&e!==i}if(r(s,o))throw new L(I,"Only one doctype is allowed");var l=r(s,K);if(i&&s.indexOf(l)<s.indexOf(i))throw new L(I,"Doctype can only be inserted before an element")}}function re(e,t,i,s){te(e,t,i),e.nodeType===F.DOCUMENT_NODE&&(s||ie)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===E){var n=t.firstChild;if(null==n)return t;var a=t.lastChild}else n=a=t;var o=i?i.previousSibling:e.lastChild;n.previousSibling=o,a.nextSibling=i,o?o.nextSibling=n:e.firstChild=n,null==i?e.lastChild=a:i.previousSibling=a;do{n.parentNode=e}while(n!==a&&(n=n.nextSibling));return G(e.ownerDocument||e,e),t.nodeType==E&&(t.firstChild=t.lastChild=null),t}function ne(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,G(e.ownerDocument,e,t),t}function ae(){this._nsMap={}}function oe(){}function le(){}function de(){}function ue(){}function ce(){}function he(){}function pe(){}function fe(){}function me(){}function ge(){}function ye(){}function ve(){}function be(e,t){var i=[],s=9==this.nodeType&&this.documentElement||this,r=s.prefix,n=s.namespaceURI;if(n&&null==r){r=s.lookupPrefix(n);if(null==r)var a=[{namespace:n,prefix:null}]}return Se(this,i,e,t,a),i.join("")}function _e(e,t,i){var s=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===s&&r===n.XML||r===n.XMLNS)return!1;var a=i.length;while(a--){var o=i[a];if(o.prefix===s)return o.namespace!==r}return!0}function Te(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,q),'"')}function Se(e,t,i,s,r){if(r||(r=[]),s){if(e=s(e),!e)return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case f:var a=e.attributes,o=a.length,l=e.firstChild,d=e.tagName;i=n.isHTML(e.namespaceURI)||i;var u=d;if(!i&&!e.prefix&&e.namespaceURI){for(var c,h=0;h<a.length;h++)if("xmlns"===a.item(h).name){c=a.item(h).value;break}if(!c)for(var p=r.length-1;p>=0;p--){var b=r[p];if(""===b.prefix&&b.namespace===e.namespaceURI){c=b.namespace;break}}if(c!==e.namespaceURI)for(p=r.length-1;p>=0;p--){b=r[p];if(b.namespace===e.namespaceURI){b.prefix&&(u=b.prefix+":"+d);break}}}t.push("<",u);for(var x=0;x<o;x++){var C=a.item(x);"xmlns"==C.prefix?r.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&r.push({prefix:"",namespace:C.value})}for(x=0;x<o;x++){C=a.item(x);if(_e(C,i,r)){var k=C.prefix||"",I=C.namespaceURI;Te(t,k?"xmlns:"+k:"xmlns",I),r.push({prefix:k,namespace:I})}Se(C,t,i,s,r)}if(d===u&&_e(e,i,r)){k=e.prefix||"",I=e.namespaceURI;Te(t,k?"xmlns:"+k:"xmlns",I),r.push({prefix:k,namespace:I})}if(l||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(t.push(">"),i&&/^script$/i.test(d))while(l)l.data?t.push(l.data):Se(l,t,i,s,r.slice()),l=l.nextSibling;else while(l)Se(l,t,i,s,r.slice()),l=l.nextSibling;t.push("</",u,">")}else t.push("/>");return;case S:case E:l=e.firstChild;while(l)Se(l,t,i,s,r.slice()),l=l.nextSibling;return;case m:return Te(t,e.name,e.value);case g:return t.push(e.data.replace(/[<&>]/g,q));case y:return t.push("<![CDATA[",e.data,"]]>");case T:return t.push("\x3c!--",e.data,"--\x3e");case w:var P=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),P)t.push(" PUBLIC ",P),O&&"."!=O&&t.push(" ",O),t.push(">");else if(O&&"."!=O)t.push(" SYSTEM ",O,">");else{var L=e.internalSubset;L&&t.push(" [",L,"]"),t.push(">")}return;case _:return t.push("<?",e.target," ",e.data,"?>");case v:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function we(e,t,i){var s;switch(t.nodeType){case f:s=t.cloneNode(!1),s.ownerDocument=e;case E:break;case m:i=!0;break}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,i){var r=t.firstChild;while(r)s.appendChild(we(e,r,i)),r=r.nextSibling}return s}function Ee(e,t,i){var s=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var n=t[r];"object"!=typeof n&&n!=s[r]&&(s[r]=n)}switch(t.childNodes&&(s.childNodes=new A),s.ownerDocument=e,s.nodeType){case f:var a=t.attributes,o=s.attributes=new N,l=a.length;o._ownerElement=s;for(var d=0;d<l;d++)s.setAttributeNode(Ee(e,a.item(d),!0));break;case m:i=!0}if(i){var u=t.firstChild;while(u)s.appendChild(Ee(e,u,i)),u=u.nextSibling}return s}function xe(e,t,i){e[t]=i}L.prototype=Error.prototype,c(C,L),A.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var i=[],s=0;s<this.length;s++)Se(this[s],i,e,t);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},D.prototype.item=function(e){return M(this),this[e]||null},h(D,A),N.prototype={length:0,item:A.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new L(O);var i=this.getNamedItem(e.nodeName);return U(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new L(O);return t=this.getNamedItemNS(e.namespaceURI,e.localName),U(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return B(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return B(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){var i=this.length;while(i--){var s=this[i];if(s.localName==t&&s.namespaceURI==e)return s}return null}},j.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var s=new H;if(s.implementation=this,s.childNodes=new A,s.doctype=i||null,i&&s.appendChild(i),t){var r=s.createElementNS(e,t);s.appendChild(r)}return s},createDocumentType:function(e,t,i){var s=new he;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=i||"",s}},F.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return re(this,e,t)},replaceChild:function(e,t){re(this,e,t,se),t&&this.removeChild(t)},removeChild:function(e){return W(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ee(this.ownerDocument||this,this,e)},normalize:function(){var e=this.firstChild;while(e){var t=e.nextSibling;t&&t.nodeType==g&&e.nodeType==g?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var i=t._nsMap;if(i)for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&i[s]===e)return s;t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==m?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},c(p,F),c(p,F.prototype),H.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==E){var i=e.firstChild;while(i){var s=i.nextSibling;this.insertBefore(i,t),i=s}return e}return re(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===f&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),W(this,e)},replaceChild:function(e,t){re(this,e,t,se),e.ownerDocument=this,t&&this.removeChild(t),K(e)&&(this.documentElement=e)},importNode:function(e,t){return we(this,e,t)},getElementById:function(e){var t=null;return $(this.documentElement,(function(i){if(i.nodeType==f&&i.getAttribute("id")==e)return t=i,!0})),t},getElementsByClassName:function(e){var t=d(e);return new D(this,(function(i){var s=[];return t.length>0&&$(i.documentElement,(function(r){if(r!==i&&r.nodeType===f){var n=r.getAttribute("class");if(n){var a=e===n;if(!a){var o=d(n);a=t.every(u(o))}a&&s.push(r)}}})),s}))},createElement:function(e){var t=new ae;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new A;var i=t.attributes=new N;return i._ownerElement=t,t},createDocumentFragment:function(){var e=new ge;return e.ownerDocument=this,e.childNodes=new A,e},createTextNode:function(e){var t=new de;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new ce;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new ye;return i.ownerDocument=this,i.tagName=i.nodeName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new oe;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new me;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new ae,s=t.split(":"),r=i.attributes=new N;return i.childNodes=new A,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new oe,s=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==s.length?(i.prefix=s[0],i.localName=s[1]):i.localName=t,i}},h(H,F),ae.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+t,this.setAttributeNode(i)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===E?this.insertBefore(e,null):ne(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);i&&this.removeAttributeNode(i)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var i=this.getAttributeNodeNS(e,t);return i&&i.value||""},setAttributeNS:function(e,t,i){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+i,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new D(this,(function(t){var i=[];return $(t,(function(s){s===t||s.nodeType!=f||"*"!==e&&s.tagName!=e||i.push(s)})),i}))},getElementsByTagNameNS:function(e,t){return new D(this,(function(i){var s=[];return $(i,(function(r){r===i||r.nodeType!==f||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||s.push(r)})),s}))}},H.prototype.getElementsByTagName=ae.prototype.getElementsByTagName,H.prototype.getElementsByTagNameNS=ae.prototype.getElementsByTagNameNS,h(ae,F),oe.prototype.nodeType=m,h(oe,F),le.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(k[I])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){var s=this.data.substring(0,e),r=this.data.substring(e+t);i=s+i+r,this.nodeValue=this.data=i,this.length=i.length}},h(le,F),de.prototype={nodeName:"#text",nodeType:g,splitText:function(e){var t=this.data,i=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}},h(de,le),ue.prototype={nodeName:"#comment",nodeType:T},h(ue,le),ce.prototype={nodeName:"#cdata-section",nodeType:y},h(ce,le),he.prototype.nodeType=w,h(he,F),pe.prototype.nodeType=x,h(pe,F),fe.prototype.nodeType=b,h(fe,F),me.prototype.nodeType=v,h(me,F),ge.prototype.nodeName="#document-fragment",ge.prototype.nodeType=E,h(ge,F),ye.prototype.nodeType=_,h(ye,F),ve.prototype.serializeToString=function(e,t,i){return be.call(e,t,i)},F.prototype.toString=be;try{if(Object.defineProperty){function Ce(e){switch(e.nodeType){case f:case E:var t=[];e=e.firstChild;while(e)7!==e.nodeType&&8!==e.nodeType&&t.push(Ce(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(D.prototype,"length",{get:function(){return M(this),this.$$length}}),Object.defineProperty(F.prototype,"textContent",{get:function(){return Ce(this)},set:function(e){switch(this.nodeType){case f:case E:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),xe=function(e,t,i){e["$$"+t]=i}}}catch(ke){}t.DocumentType=he,t.DOMException=L,t.DOMImplementation=j,t.Element=ae,t.Node=F,t.NodeList=A,t.XMLSerializer=ve},e330:function(e,t,i){"use strict";var s=i("40d5"),r=Function.prototype,n=r.call,a=s&&r.bind.bind(n,n);e.exports=s?a:function(e){return function(){return n.apply(e,arguments)}}},e3db:function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},e40e:function(e,t,i){},e683:function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e893:function(e,t,i){"use strict";var s=i("1a2d"),r=i("56ef"),n=i("06cf"),a=i("9bf2");e.exports=function(e,t,i){for(var o=r(t),l=a.f,d=n.f,u=0;u<o.length;u++){var c=o[u];s(e,c)||i&&s(i,c)||l(e,c,d(t,c))}}},e8b5:function(e,t,i){"use strict";var s=i("c6b6");e.exports=Array.isArray||function(e){return"Array"===s(e)}},eb7c:function(e,t,i){},ece4:function(e,t,i){},ee0a:function(e,t,i){},ef34:function(e,t,i){(function(t){var s,r="undefined"!==typeof t?t:"undefined"!==typeof window?window:{},n=i(0);"undefined"!==typeof document?s=document:(s=r["__GLOBAL_DOCUMENT_CACHE@4"],s||(s=r["__GLOBAL_DOCUMENT_CACHE@4"]=n)),e.exports=s}).call(this,i("c8ba"))},f0e2:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return xn}));var s=i("be09"),r=i.n(s),n=i("ef34"),a=i.n(n),o=i("df33"),l=i.n(o),d=i("8c10"),u=i.n(d),c=i("3603"),h=i.n(c),p=i("2b8c"),f=i.n(p),m=i("a559"),g=i.n(m),y=i("63ec"),v=i("d749"),b=i("17a3"),_=i("8b53"),T=i("de66"),S=i("8484"),w=i("81c0"),E=i.n(w),x=i("321f"),C=i("f8a8"),k=i("36c6"),I="8.10.0";const P={},O=function(e,t){return P[e]=P[e]||[],t&&(P[e]=P[e].concat(t)),P[e]},L=function(e,t){O(e,t)},A=function(e,t){const i=O(e).indexOf(t);return!(i<=-1)&&(P[e]=P[e].slice(),P[e].splice(i,1),!0)},D=function(e,t){O(e,[].concat(t).map(t=>{const i=(...s)=>(A(e,i),t(...s));return i}))},M={prefixed:!0},N=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],R=N[0];let U;for(let t=0;t<N.length;t++)if(N[t][1]in a.a){U=N[t];break}if(U){for(let e=0;e<U.length;e++)M[R[e]]=U[e];M.prefixed=U[0]!==R[0]}let B=[];const j=(e,t,i)=>(s,n,a)=>{const o=t.levels[n],l=new RegExp(`^(${o})$`);let d=e;if("log"!==s&&a.unshift(s.toUpperCase()+":"),i&&(d="%c"+e,a.unshift(i)),a.unshift(d+":"),B){B.push([].concat(a));const e=B.length-1e3;B.splice(0,e>0?e:0)}if(!r.a.console)return;let u=r.a.console[s];u||"debug"!==s||(u=r.a.console.info||r.a.console.log),u&&o&&l.test(s)&&u[Array.isArray(a)?"apply":"call"](r.a.console,a)};function F(e,t=":",i=""){let s,r="info";const n=function(...e){s("log",r,e)};return s=j(e,n,i),n.createLogger=(s,r,n)=>{const a=void 0!==r?r:t,o=void 0!==n?n:i,l=`${e} ${a} ${s}`;return F(l,a,o)},n.createNewLogger=(e,t,i)=>F(e,t,i),n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},n.level=e=>{if("string"===typeof e){if(!n.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);r=e}return r},n.history=()=>B?[].concat(B):[],n.history.filter=e=>(B||[]).filter(t=>new RegExp(`.*${e}.*`).test(t[0])),n.history.clear=()=>{B&&(B.length=0)},n.history.disable=()=>{null!==B&&(B.length=0,B=null)},n.history.enable=()=>{null===B&&(B=[])},n.error=(...e)=>s("error",r,e),n.warn=(...e)=>s("warn",r,e),n.debug=(...e)=>s("debug",r,e),n}const q=F("VIDEOJS"),$=q.createLogger,H=Object.prototype.toString,z=function(e){return W(e)?Object.keys(e):[]};function V(e,t){z(e).forEach(i=>t(e[i],i))}function G(e,t,i=0){return z(e).reduce((i,s)=>t(i,e[s],s),i)}function W(e){return!!e&&"object"===typeof e}function X(e){return W(e)&&"[object Object]"===H.call(e)&&e.constructor===Object}function Y(...e){const t={};return e.forEach(e=>{e&&V(e,(e,i)=>{X(e)?(X(t[i])||(t[i]={}),t[i]=Y(t[i],e)):t[i]=e})}),t}function J(e={}){const t=[];for(const i in e)if(e.hasOwnProperty(i)){const s=e[i];t.push(s)}return t}function K(e,t,i,s=!0){const r=i=>Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0}),n={configurable:!0,enumerable:!0,get(){const e=i();return r(e),e}};return s&&(n.set=r),Object.defineProperty(e,t,n)}var Q=Object.freeze({__proto__:null,each:V,reduce:G,isObject:W,isPlain:X,merge:Y,values:J,defineLazyProperty:K});let Z,ee=!1,te=null,ie=!1,se=!1,re=!1,ne=!1,ae=!1,oe=null,le=null,de=null,ue=!1,ce=!1,he=!1,pe=!1;const fe=Boolean(Te()&&("ontouchstart"in r.a||r.a.navigator.maxTouchPoints||r.a.DocumentTouch&&r.a.document instanceof r.a.DocumentTouch)),me=r.a.navigator&&r.a.navigator.userAgentData;if(me&&me.platform&&me.brands&&(ie="Android"===me.platform,re=Boolean(me.brands.find(e=>"Microsoft Edge"===e.brand)),ne=Boolean(me.brands.find(e=>"Chromium"===e.brand)),ae=!re&&ne,oe=le=(me.brands.find(e=>"Chromium"===e.brand)||{}).version||null,ce="Windows"===me.platform),!ne){const e=r.a.navigator&&r.a.navigator.userAgent||"";ee=/iPod/i.test(e),te=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),ie=/Android/i.test(e),Z=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const i=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return i&&s?parseFloat(t[1]+"."+t[2]):i||null}(),se=/Firefox/i.test(e),re=/Edg/i.test(e),ne=/Chrome/i.test(e)||/CriOS/i.test(e),ae=!re&&ne,oe=le=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),de=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let i=t&&parseFloat(t[1]);return!i&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(i=11),i}(),ue=/Safari/i.test(e)&&!ae&&!ie&&!re,ce=/Windows/i.test(e),he=/iPad/i.test(e)||ue&&fe&&!/iPhone/i.test(e),pe=/iPhone/i.test(e)&&!he}const ge=pe||he||ee,ye=(ue||ge)&&!ae;var ve=Object.freeze({__proto__:null,get IS_IPOD(){return ee},get IOS_VERSION(){return te},get IS_ANDROID(){return ie},get ANDROID_VERSION(){return Z},get IS_FIREFOX(){return se},get IS_EDGE(){return re},get IS_CHROMIUM(){return ne},get IS_CHROME(){return ae},get CHROMIUM_VERSION(){return oe},get CHROME_VERSION(){return le},get IE_VERSION(){return de},get IS_SAFARI(){return ue},get IS_WINDOWS(){return ce},get IS_IPAD(){return he},get IS_IPHONE(){return pe},TOUCH_ENABLED:fe,IS_IOS:ge,IS_ANY_SAFARI:ye});function be(e){return"string"===typeof e&&Boolean(e.trim())}function _e(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Te(){return a.a===r.a.document}function Se(e){return W(e)&&1===e.nodeType}function we(){try{return r.a.parent!==r.a.self}catch(e){return!0}}function Ee(e){return function(t,i){if(!be(t))return a.a[e](null);be(i)&&(i=a.a.querySelector(i));const s=Se(i)?i:a.a;return s[e]&&s[e](t)}}function xe(e="div",t={},i={},s){const r=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){const i=t[e];"textContent"===e?Ce(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)})),Object.getOwnPropertyNames(i).forEach((function(e){r.setAttribute(e,i[e])})),s&&Ve(r,s),r}function Ce(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function ke(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Ie(e,t){return _e(t),e.classList.contains(t)}function Pe(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function Oe(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(q.warn("removeClass was called with an element that doesn't exist"),null)}function Le(e,t,i){return"function"===typeof i&&(i=i(e,t)),"boolean"!==typeof i&&(i=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,i)),e}function Ae(e,t){Object.getOwnPropertyNames(t).forEach((function(i){const s=t[i];null===s||"undefined"===typeof s||!1===s?e.removeAttribute(i):e.setAttribute(i,!0===s?"":s)}))}function De(e){const t={},i=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let e=s.length-1;e>=0;e--){const r=s[e].name;let n=s[e].value;i.includes(r)&&(n=null!==n),t[r]=n}}return t}function Me(e,t){return e.getAttribute(t)}function Ne(e,t,i){e.setAttribute(t,i)}function Re(e,t){e.removeAttribute(t)}function Ue(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function Be(){a.a.onselectstart=function(){return!0}}function je(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(Je(e,"height"))),i.width||(i.width=parseFloat(Je(e,"width"))),i}}function Fe(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,i=e.offsetHeight;let s=0,r=0;while(e.offsetParent&&e!==a.a[M.fullscreenElement])s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:i}}function qe(e,t){const i={x:0,y:0};if(ge){let t=e;while(t&&"html"!==t.nodeName.toLowerCase()){const e=Je(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);i.x+=t[4],i.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);i.x+=t[12],i.y+=t[13]}t=t.parentNode}}const s={},r=Fe(t.target),n=Fe(e),a=n.width,o=n.height;let l=t.offsetY-(n.top-r.top),d=t.offsetX-(n.left-r.left);return t.changedTouches&&(d=t.changedTouches[0].pageX-n.left,l=t.changedTouches[0].pageY+n.top,ge&&(d-=i.x,l-=i.y)),s.y=1-Math.max(0,Math.min(1,l/o)),s.x=Math.max(0,Math.min(1,d/a)),s}function $e(e){return W(e)&&3===e.nodeType}function He(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function ze(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"===typeof e&&(e=e()),Se(e)||$e(e)?e:"string"===typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0)).filter(e=>e)}function Ve(e,t){return ze(t).forEach(t=>e.appendChild(t)),e}function Ge(e,t){return Ve(He(e),t)}function We(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}const Xe=Ee("querySelector"),Ye=Ee("querySelectorAll");function Je(e,t){if(!e||!t)return"";if("function"===typeof r.a.getComputedStyle){let s;try{s=r.a.getComputedStyle(e)}catch(i){return""}return s?s.getPropertyValue(t)||s[t]:""}return""}function Ke(e){[...a.a.styleSheets].forEach(t=>{try{const i=[...t.cssRules].map(e=>e.cssText).join(""),s=a.a.createElement("style");s.textContent=i,e.document.head.appendChild(s)}catch(i){const s=a.a.createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}})}var Qe=Object.freeze({__proto__:null,isReal:Te,isEl:Se,isInFrame:we,createEl:xe,textContent:Ce,prependTo:ke,hasClass:Ie,addClass:Pe,removeClass:Oe,toggleClass:Le,setAttributes:Ae,getAttributes:De,getAttribute:Me,setAttribute:Ne,removeAttribute:Re,blockTextSelection:Ue,unblockTextSelection:Be,getBoundingClientRect:je,findPosition:Fe,getPointerPosition:qe,isTextNode:$e,emptyEl:He,normalizeContent:ze,appendContent:Ve,insertContent:Ge,isSingleLeftClick:We,$:Xe,$$:Ye,computedStyle:Je,copyStyleSheetsToWindow:Ke});let Ze,et=!1;const tt=function(){if(!1===Ze.options.autoSetup)return;const e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),s=e.concat(t,i);if(s&&s.length>0)for(let r=0,n=s.length;r<n;r++){const e=s[r];if(!e||!e.getAttribute){it(1);break}if(void 0===e.player){const t=e.getAttribute("data-setup");null!==t&&Ze(e)}}else et||it(1)};function it(e,t){Te()&&(t&&(Ze=t),r.a.setTimeout(tt,e))}function st(){et=!0,r.a.removeEventListener("load",st)}Te()&&("complete"===a.a.readyState?st():r.a.addEventListener("load",st));const rt=function(e){const t=a.a.createElement("style");return t.className=e,t},nt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var at=new WeakMap;const ot=3;let lt,dt=ot;function ut(){return dt++}function ct(e,t){if(!at.has(e))return;const i=at.get(e);0===i.handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&at.delete(e)}function ht(e,t,i,s){i.forEach((function(i){e(t,i,s)}))}function pt(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||r.a.event;e={};for(const t in s)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&"webkitMovementX"!==t&&"webkitMovementY"!==t&&"path"!==t&&("returnValue"===t&&s.preventDefault||(e[t]=s[t]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){const t=a.a.documentElement,i=a.a.body;e.pageX=e.clientX+(t&&t.scrollLeft||i&&i.scrollLeft||0)-(t&&t.clientLeft||i&&i.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||i&&i.scrollTop||0)-(t&&t.clientTop||i&&i.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const ft=function(){if("boolean"!==typeof lt){lt=!1;try{const e=Object.defineProperty({},"passive",{get(){lt=!0}});r.a.addEventListener("test",null,e),r.a.removeEventListener("test",null,e)}catch(e){}}return lt},mt=["touchstart","touchmove"];function gt(e,t,i){if(Array.isArray(t))return ht(gt,e,t,i);at.has(e)||at.set(e,{});const s=at.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),i.guid||(i.guid=ut()),s.handlers[t].push(i),s.dispatcher||(s.disabled=!1,s.dispatcher=function(t,i){if(s.disabled)return;t=pt(t);const r=s.handlers[t.type];if(r){const s=r.slice(0);for(let r=0,a=s.length;r<a;r++){if(t.isImmediatePropagationStopped())break;try{s[r].call(e,t,i)}catch(n){q.error(n)}}}}),1===s.handlers[t].length)if(e.addEventListener){let i=!1;ft()&&mt.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,s.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function yt(e,t,i){if(!at.has(e))return;const s=at.get(e);if(!s.handlers)return;if(Array.isArray(t))return ht(yt,e,t,i);const r=function(e,t){s.handlers[t]=[],ct(e,t)};if(void 0===t){for(const t in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},t)&&r(e,t);return}const n=s.handlers[t];if(n)if(i){if(i.guid)for(let e=0;e<n.length;e++)n[e].guid===i.guid&&n.splice(e--,1);ct(e,t)}else r(e,t)}function vt(e,t,i){const s=at.has(e)?at.get(e):{},r=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=pt(t),s.dispatcher&&s.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)vt.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){at.has(t.target)||at.set(t.target,{});const e=at.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function bt(e,t,i){if(Array.isArray(t))return ht(bt,e,t,i);const s=function(){yt(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||ut(),gt(e,t,s)}function _t(e,t,i){const s=function(){yt(e,t,s),i.apply(this,arguments)};s.guid=i.guid=i.guid||ut(),gt(e,t,s)}var Tt=Object.freeze({__proto__:null,fixEvent:pt,on:gt,off:yt,trigger:vt,one:bt,any:_t});const St=30,wt=function(e,t,i){t.guid||(t.guid=ut());const s=t.bind(e);return s.guid=i?i+"_"+t.guid:t.guid,s},Et=function(e,t){let i=r.a.performance.now();const s=function(...s){const n=r.a.performance.now();n-i>=t&&(e(...s),i=n)};return s},xt=function(e,t,i,s=r.a){let n;const a=()=>{s.clearTimeout(n),n=null},o=function(){const r=this,a=arguments;let o=function(){n=null,o=null,i||e.apply(r,a)};!n&&i&&e.apply(r,a),s.clearTimeout(n),n=s.setTimeout(o,t)};return o.cancel=a,o};var Ct=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:St,bind_:wt,throttle:Et,debounce:xt});let kt;class It{on(e,t){const i=this.addEventListener;this.addEventListener=()=>{},gt(this,e,t),this.addEventListener=i}off(e,t){yt(this,e,t)}one(e,t){const i=this.addEventListener;this.addEventListener=()=>{},bt(this,e,t),this.addEventListener=i}any(e,t){const i=this.addEventListener;this.addEventListener=()=>{},_t(this,e,t),this.addEventListener=i}trigger(e){const t=e.type||e;"string"===typeof e&&(e={type:t}),e=pt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),vt(this,e)}queueTrigger(e){kt||(kt=new Map);const t=e.type||e;let i=kt.get(this);i||(i=new Map,kt.set(this,i));const s=i.get(t);i.delete(t),r.a.clearTimeout(s);const n=r.a.setTimeout(()=>{i.delete(t),0===i.size&&(i=null,kt.delete(this)),this.trigger(e)},0);i.set(t,n)}}It.prototype.allowedEvents_={},It.prototype.addEventListener=It.prototype.on,It.prototype.removeEventListener=It.prototype.off,It.prototype.dispatchEvent=It.prototype.trigger;const Pt=e=>"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,Ot=e=>e instanceof It||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"===typeof e[t]),Lt=(e,t)=>{Ot(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},At=e=>"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,Dt=(e,t,i)=>{if(!e||!e.nodeName&&!Ot(e))throw new Error(`Invalid target for ${Pt(t)}#${i}; must be a DOM node or evented object.`)},Mt=(e,t,i)=>{if(!At(e))throw new Error(`Invalid event type for ${Pt(t)}#${i}; must be a non-empty string or array.`)},Nt=(e,t,i)=>{if("function"!==typeof e)throw new Error(`Invalid listener for ${Pt(t)}#${i}; must be a function.`)},Rt=(e,t,i)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,n,a;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[n,a]=t):[r,n,a]=t,Dt(r,e,i),Mt(n,e,i),Nt(a,e,i),a=wt(e,a),{isTargetingSelf:s,target:r,type:n,listener:a}},Ut=(e,t,i,s)=>{Dt(e,e,t),e.nodeName?Tt[t](e,i,s):e[t](i,s)},Bt={on(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Rt(this,e,"on");if(Ut(i,"on",s,r),!t){const e=()=>this.off(i,s,r);e.guid=r.guid;const t=()=>this.off("dispose",e);t.guid=r.guid,Ut(this,"on","dispose",e),Ut(i,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Rt(this,e,"one");if(t)Ut(i,"one",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Ut(i,"one",s,e)}},any(...e){const{isTargetingSelf:t,target:i,type:s,listener:r}=Rt(this,e,"any");if(t)Ut(i,"any",s,r);else{const e=(...t)=>{this.off(i,s,e),r.apply(null,t)};e.guid=r.guid,Ut(i,"any",s,e)}},off(e,t,i){if(!e||At(e))yt(this.eventBusEl_,e,t);else{const s=e,r=t;Dt(s,this,"off"),Mt(r,this,"off"),Nt(i,this,"off"),i=wt(this,i),this.off("dispose",i),s.nodeName?(yt(s,r,i),yt(s,"dispose",i)):Ot(s)&&(s.off(r,i),s.off("dispose",i))}},trigger(e,t){Dt(this.eventBusEl_,this,"trigger");const i=e&&"string"!==typeof e?e.type:e;if(!At(i))throw new Error(`Invalid event type for ${Pt(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return vt(this.eventBusEl_,e,t)}};function jt(e,t={}){const{eventBusKey:i}=t;if(i){if(!e[i].nodeName)throw new Error(`The eventBusKey "${i}" does not refer to an element.`);e.eventBusEl_=e[i]}else e.eventBusEl_=xe("span",{className:"vjs-event-bus"});return Object.assign(e,Bt),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&at.has(e)&&at.delete(e)})),r.a.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const Ft={state:{},setState(e){let t;return"function"===typeof e&&(e=e()),V(e,(e,i)=>{this.state[i]!==e&&(t=t||{},t[i]={from:this.state[i],to:e}),this.state[i]=e}),t&&Ot(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function qt(e,t){return Object.assign(e,Ft),e.state=Object.assign({},e.state,t),"function"===typeof e.handleStateChanged&&Ot(e)&&e.on("statechanged",e.handleStateChanged),e}const $t=function(e){return"string"!==typeof e?e:e.replace(/./,e=>e.toLowerCase())},Ht=function(e){return"string"!==typeof e?e:e.replace(/./,e=>e.toUpperCase())},zt=function(e,t){return Ht(e)===Ht(t)};var Vt=Object.freeze({__proto__:null,toLowerCase:$t,toTitleCase:Ht,titleCaseEquals:zt});class Gt{constructor(e,t,i){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Y({},this.options_),t=this.options_=Y(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${ut()}`}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach(e=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(jt(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),qt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=Y(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,i){return xe(e,t,i)}localize(e,t,i=e){const s=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),n=r&&r[s],a=s&&s.split("-")[0],o=r&&r[a];let l=i;return n&&n[e]?l=n[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,i){const s=t[i-1];let r=s;return"undefined"===typeof s&&(r=e),r}))),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let i=0;i<e.length;i++)if(t=t.getChild(e[i]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const i="http://www.w3.org/2000/svg",s=xe("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=a.a.createElementNS(i,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const n=a.a.createElementNS(i,"use");return r.appendChild(n),n.setAttributeNS(null,"href","#vjs-icon-"+e),s.appendChild(r),this.iconIsSet_?t.replaceChild(s,t.querySelector(".vjs-icon-placeholder")):t.appendChild(s),this.iconIsSet_=!0,s}addChild(e,t={},i=this.children_.length){let s,r;if("string"===typeof e){r=Ht(e);const i=t.componentClass||r;t.name=r;const n=Gt.getComponent(i);if(!n)throw new Error(`Component ${i} does not exist`);if("function"!==typeof n)return null;s=new n(this.player_||this,t)}else s=e;if(s.parentComponent_&&s.parentComponent_.removeChild(s),this.children_.splice(i,0,s),s.parentComponent_=this,"function"===typeof s.id&&(this.childIndex_[s.id()]=s),r=r||s.name&&Ht(s.name()),r&&(this.childNameIndex_[r]=s,this.childNameIndex_[$t(r)]=s),"function"===typeof s.el&&s.el()){let e=null;this.children_[i+1]&&(this.children_[i+1].el_?e=this.children_[i+1].el_:Se(this.children_[i+1])&&(e=this.children_[i+1])),this.contentEl().insertBefore(s.el(),e)}return s}removeChild(e){if("string"===typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let s=this.children_.length-1;s>=0;s--)if(this.children_[s]===e){t=!0,this.children_.splice(s,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Ht(e.name())]=null,this.childNameIndex_[$t(e.name())]=null;const i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,i=e=>{const i=e.name;let s=e.opts;if(void 0!==t[i]&&(s=t[i]),!1===s)return;!0===s&&(s={}),s.playerOptions=this.options_.playerOptions;const r=this.addChild(i,s);r&&(this[i]=r)};let s;const r=Gt.getComponent("Tech");s=Array.isArray(e)?e:Object.keys(e),s.concat(Object.keys(this.options_).filter((function(e){return!s.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map(t=>{let i,s;return"string"===typeof t?(i=t,s=e[i]||this.options_[i]||{}):(i=t.name,s=t),{name:i,opts:s}}).filter(e=>{const t=Gt.getComponent(e.opts.componentClass||Ht(e.name));return t&&!r.isTech(t)}).forEach(i)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout((function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)}$(e,t){return Xe(e,t||this.contentEl())}$$(e,t){return Ye(e,t||this.contentEl())}hasClass(e){return Ie(this.el_,e)}addClass(...e){Pe(this.el_,...e)}removeClass(...e){Oe(this.el_,...e)}toggleClass(e,t){Le(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return Me(this.el_,e)}setAttribute(e,t){Ne(this.el_,e,t)}removeAttribute(e){Re(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(e,t,i){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;const s=this.el_.style[e],r=s.indexOf("px");return-1!==r?parseInt(s.slice(0,r),10):parseInt(this.el_["offset"+Ht(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Je(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const i="offset"+Ht(e);t=this.el_[i]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(l.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let e=0,t=null;const i=10,s=200;let n;this.on("touchstart",(function(i){1===i.touches.length&&(t={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},e=r.a.performance.now(),n=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)n=!1;else if(t){const s=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY,a=Math.sqrt(s*s+r*r);a>i&&(n=!1)}}));const a=function(){n=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",(function(i){if(t=null,!0===n){const t=r.a.performance.now()-e;t<s&&(i.preventDefault(),this.trigger("tap"))}}))}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=wt(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",(function(){e(),this.clearInterval(t),t=this.setInterval(e,250)}));const i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}setTimeout(e,t){var i;return e=wt(this,e),this.clearTimersOnDispose_(),i=r.a.setTimeout(()=>{this.setTimeoutIds_.has(i)&&this.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),r.a.clearTimeout(e)),e}setInterval(e,t){e=wt(this,e),this.clearTimersOnDispose_();const i=r.a.setInterval(e,t);return this.setIntervalIds_.add(i),i}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),r.a.clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=wt(this,e),t=r.a.requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=wt(this,t);const i=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,i),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),r.a.cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([e,t])=>{this[e].forEach((e,i)=>this[t](i))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,t){if("string"!==typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const i=Gt.getComponent("Tech"),s=i&&i.isTech(t),r=Gt===t||Gt.prototype.isPrototypeOf(t.prototype);if(s||!r){let t;throw t=s?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=Ht(e),Gt.components_||(Gt.components_={});const n=Gt.getComponent("Player");if("Player"===e&&n&&n.players){const e=n.players,t=Object.keys(e);if(e&&t.length>0&&t.map(t=>e[t]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Gt.components_[e]=t,Gt.components_[$t(e)]=t,t}static getComponent(e){if(e&&Gt.components_)return Gt.components_[e]}}function Wt(e,t,i){if("number"!==typeof t||t<0||t>i)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${i}).`)}function Xt(e,t,i,s){return Wt(e,s,i.length-1),i[s][t]}function Yt(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Xt.bind(null,"start",0,e),end:Xt.bind(null,"end",1,e)},r.a.Symbol&&r.a.Symbol.iterator&&(t[r.a.Symbol.iterator]=()=>(e||[]).values()),t}function Jt(e,t){return Array.isArray(e)?Yt(e):void 0===e||void 0===t?Yt():Yt([[e,t]])}Gt.registerComponent("Component",Gt);const Kt=function(e,t){e=e<0?0:e;let i=Math.floor(e%60),s=Math.floor(e/60%60),r=Math.floor(e/3600);const n=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=i="-"),r=r>0||a>0?r+":":"",s=((r||n>=10)&&s<10?"0"+s:s)+":",i=i<10?"0"+i:i,r+s+i};let Qt=Kt;function Zt(e){Qt=e}function ei(){Qt=Kt}function ti(e,t=e){return Qt(e,t)}var ii=Object.freeze({__proto__:null,createTimeRanges:Jt,createTimeRange:Jt,setFormatTime:Zt,resetFormatTime:ei,formatTime:ti});function si(e,t){let i,s,r=0;if(!t)return 0;e&&e.length||(e=Jt(0,0));for(let n=0;n<e.length;n++)i=e.start(n),s=e.end(n),s>t&&(s=t),r+=s-i;return r/t}function ri(e){if(e instanceof ri)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:W(e)&&("number"===typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=ri.defaultMessages[this.code]||"")}ri.prototype.code=0,ri.prototype.message="",ri.prototype.status=null,ri.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],ri.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(let t=0;t<ri.errorTypes.length;t++)ri[ri.errorTypes[t]]=t,ri.prototype[ri.errorTypes[t]]=t;function ni(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function ai(e){ni(e)&&e.then(null,e=>{})}const oi=function(e){const t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,i,s)=>(e[i]&&(t[i]=e[i]),t),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},li=function(e){const t=e.$$("track"),i=Array.prototype.map.call(t,e=>e.track),s=Array.prototype.map.call(t,(function(e){const t=oi(e.track);return e.src&&(t.src=e.src),t}));return s.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===i.indexOf(e)})).map(oi))},di=function(e,t){return e.forEach((function(e){const i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>i.addCue(e))})),t.textTracks()};var ui={textTracksToJson:li,jsonToTextTracks:di,trackToJson_:oi};const ci="vjs-modal-dialog";class hi extends Gt{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=xe("div",{className:ci+"-content"},{role:"document"}),this.descEl_=xe("p",{className:ci+"-description vjs-control-text",id:this.el().getAttribute("aria-describedby")}),Ce(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ci} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(e){if("boolean"===typeof e){const t=this.closeable_=!!e;let i=this.getChild("closeButton");if(t&&!i){const e=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),i=t.parentNode,s=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),Ge(t,e),this.trigger("modalfill"),s?i.insertBefore(t,s):i.appendChild(t);const r=this.getChild("closeButton");r&&i.appendChild(r.el_)}empty(){this.trigger("beforemodalempty"),He(this.contentEl()),this.trigger("modalempty")}content(e){return"undefined"!==typeof e&&(this.content_=e),this.content_}conditionalFocus_(){const e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),l.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(!l.a.isEventKey(e,"Tab"))return;const t=this.focusableEls_(),i=this.el_.querySelector(":focus");let s;for(let r=0;r<t.length;r++)if(i===t[r]){s=r;break}a.a.activeElement===this.el_&&(s=0),e.shiftKey&&0===s?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||s!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(e instanceof r.a.HTMLAnchorElement||e instanceof r.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof r.a.HTMLInputElement||e instanceof r.a.HTMLSelectElement||e instanceof r.a.HTMLTextAreaElement||e instanceof r.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof r.a.HTMLIFrameElement||e instanceof r.a.HTMLObjectElement||e instanceof r.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable"))}}hi.prototype.options_={pauseOnOpen:!0,temporary:!0},Gt.registerComponent("ModalDialog",hi);class pi extends It{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},Ot(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this[i],t.off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}pi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const t in pi.prototype.allowedEvents_)pi.prototype["on"+t]=null;const fi=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)};class mi extends pi{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){fi(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&fi(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,fi(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}const gi=function(e,t){for(let i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)};class yi extends pi{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){gi(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&gi(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,gi(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}class vi extends pi{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_);const t=["metadata","chapters"];-1===t.indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class bi{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let i=0,s=this.trackElements_.length;i<s;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}removeTrackElement_(e){for(let t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"===typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"===typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}}}class _i{constructor(e){_i.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let i=0;const s=e.length;this.cues_=e,this.length_=e.length;const r=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<s)for(i=t;i<s;i++)r.call(this,i)}getCueById(e){let t=null;for(let i=0,s=this.length;i<s;i++){const s=this[i];if(s.id===e){t=s;break}}return t}}const Ti={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Si={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},wi={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ei={disabled:"disabled",hidden:"hidden",showing:"showing"};class xi extends It{constructor(e={}){super();const t={id:e.id||"vjs_track_"+ut(),kind:e.kind||"",language:e.language||""};let i=e.label||"";for(const s in t)Object.defineProperty(this,s,{get(){return t[s]},set(){}});Object.defineProperty(this,"label",{get(){return i},set(e){e!==i&&(i=e,this.trigger("labelchange"))}})}}const Ci=function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],i=a.a.createElement("a");i.href=e;const s={};for(let r=0;r<t.length;r++)s[t[r]]=i[t[r]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=r.a.location.protocol),s.host||(s.host=r.a.location.host),s},ki=function(e){if(!e.match(/^https?:\/\//)){const t=a.a.createElement("a");t.href=e,e=t.href}return e},Ii=function(e){if("string"===typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,i=t.exec(e);if(i)return i.pop().toLowerCase()}return""},Pi=function(e,t=r.a.location){const i=Ci(e),s=":"===i.protocol?t.protocol:i.protocol,n=s+i.host!==t.protocol+t.host;return n};var Oi=Object.freeze({__proto__:null,parseUrl:Ci,getAbsoluteURL:ki,getFileExtension:Ii,isCrossOrigin:Pi});const Li=function(e,t){const i=new r.a.WebVTT.Parser(r.a,r.a.vttjs,r.a.WebVTT.StringDecoder()),s=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){s.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),s.length>0&&(r.a.console&&r.a.console.groupCollapsed&&r.a.console.groupCollapsed("Text Track parsing errors for "+t.src),s.forEach(e=>q.error(e)),r.a.console&&r.a.console.groupEnd&&r.a.console.groupEnd()),i.flush()},Ai=function(e,t){const i={uri:e},s=Pi(e);s&&(i.cors=s);const n="use-credentials"===t.tech_.crossOrigin();n&&(i.withCredentials=n),h()(i,wt(this,(function(e,i,s){if(e)return q.error(e,i);t.loaded_=!0,"function"!==typeof r.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"!==e.type)return Li(s,t);q.error("vttjs failed to load, stopping trying to process "+t.src)}):Li(s,t)})))};class Di extends xi{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=Y(e,{kind:wi[e.kind]||"subtitles",language:e.language||e.srclang||""});let i=Ei[t.mode]||"disabled";const s=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(i="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new _i(this.cues_),n=new _i(this.activeCues_);let a=!1;this.timeupdateHandler=wt(this,(function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,a&&(this.trigger("cuechange"),a=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));const o=()=>{this.stopTracking()};this.tech_.one("dispose",o),"disabled"!==i&&this.startTracking(),Object.defineProperties(this,{default:{get(){return s},set(){}},mode:{get(){return i},set(e){Ei[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Ai(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return n;const e=this.tech_.currentTime(),t=[];for(let i=0,s=this.cues.length;i<s;i++){const s=this.cues[i];s.startTime<=e&&s.endTime>=e&&t.push(s)}if(a=!1,t.length!==this.activeCues_.length)a=!0;else for(let i=0;i<t.length;i++)-1===this.activeCues_.indexOf(t[i])&&(a=!0);return this.activeCues_=t,n.setCues_(this.activeCues_),n},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&Ai(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new r.a.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}const i=this.tech_.textTracks();for(let s=0;s<i.length;s++)i[s]!==this&&i[s].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;while(t--){const i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}Di.prototype.allowedEvents_={cuechange:"cuechange"};class Mi extends xi{constructor(e={}){const t=Y(e,{kind:Si[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"enabled",{get(){return i},set(e){"boolean"===typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class Ni extends xi{constructor(e={}){const t=Y(e,{kind:Ti[e.kind]||""});super(t);let i=!1;Object.defineProperty(this,"selected",{get(){return i},set(e){"boolean"===typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class Ri extends It{constructor(e={}){let t;super();const i=new Di(e);this.kind=i.kind,this.src=i.src,this.srclang=i.language,this.label=i.label,this.default=i.default,Object.defineProperties(this,{readyState:{get(){return t}},track:{get(){return i}}}),t=Ri.NONE,i.addEventListener("loadeddata",()=>{t=Ri.LOADED,this.trigger({type:"load",target:this})})}}Ri.prototype.allowedEvents_={load:"load"},Ri.NONE=0,Ri.LOADING=1,Ri.LOADED=2,Ri.ERROR=3;const Ui={audio:{ListClass:mi,TrackClass:Mi,capitalName:"Audio"},video:{ListClass:yi,TrackClass:Ni,capitalName:"Video"},text:{ListClass:vi,TrackClass:Di,capitalName:"Text"}};Object.keys(Ui).forEach((function(e){Ui[e].getterName=e+"Tracks",Ui[e].privateName=e+"Tracks_"}));const Bi={remoteText:{ListClass:vi,TrackClass:Di,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:bi,TrackClass:Ri,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},ji=Object.assign({},Ui,Bi);function Fi(e,t,i,s,r={}){const n=e.textTracks();r.kind=t,i&&(r.label=i),s&&(r.language=s),r.tech=e;const a=new ji.text.TrackClass(r);return n.addTrack(a),a}Bi.names=Object.keys(Bi),Ui.names=Object.keys(Ui),ji.names=[].concat(Bi.names).concat(Ui.names);class qi extends Gt{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",(function(){this.hasStarted_=!0})),this.on("loadstart",(function(){this.hasStarted_=!1})),ji.names.forEach(t=>{const i=ji[t];e&&e[i.getterName]&&(this[i.privateName]=e[i.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new ji.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(wt(this,(function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return Jt(0,0)}bufferedPercent(){return si(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Ui.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(e){e=[].concat(e),e.forEach(e=>{const t=this[e+"Tracks"]()||[];let i=t.length;while(i--){const s=t[i];"text"===e&&this.removeRemoteTextTrack(s),t.removeTrack(s)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;while(t--){const i=e[t];this.removeRemoteTextTrack(i)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new ri(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?Jt(0,0):Jt()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){Ui.names.forEach(e=>{const t=Ui[e],i=()=>{this.trigger(e+"trackchange")},s=this[t.getterName]();s.addEventListener("removetrack",i),s.addEventListener("addtrack",i),this.on("dispose",()=>{s.removeEventListener("removetrack",i),s.removeEventListener("addtrack",i)})})}addWebVttScript_(){if(!r.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&X(f.a)&&Object.keys(f.a).length>0)return void this.trigger("vttjsloaded");const e=a.a.createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),r.a.WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),i=t=>e.addTrack(t.track),s=t=>e.removeTrack(t.track);t.on("addtrack",i),t.on("removetrack",s),this.addWebVttScript_();const r=()=>this.trigger("texttrackchange"),n=()=>{r();for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",r),"showing"===i.mode&&i.addEventListener("cuechange",r)}};n(),e.addEventListener("change",n),e.addEventListener("addtrack",n),e.addEventListener("removetrack",n),this.on("dispose",(function(){t.off("addtrack",i),t.off("removetrack",s),e.removeEventListener("change",n),e.removeEventListener("addtrack",n),e.removeEventListener("removetrack",n);for(let t=0;t<e.length;t++){const i=e[t];i.removeEventListener("cuechange",r)}}))}addTextTrack(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return Fi(this,e,t,i)}createRemoteTextTrack(e){const t=Y(e,{tech:this});return new Bi.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const i=this.createRemoteTextTrack(e);return"boolean"!==typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(i.track)),i}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=ut();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return qi.canPlayType(e.type)}static isTech(e){return e.prototype instanceof qi||e instanceof qi||e===qi}static registerTech(e,t){if(qi.techs_||(qi.techs_={}),!qi.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!qi.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!qi.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Ht(e),qi.techs_[e]=t,qi.techs_[$t(e)]=t,"Tech"!==e&&qi.defaultTechOrder_.push(e),t}static getTech(e){if(e)return qi.techs_&&qi.techs_[e]?qi.techs_[e]:(e=Ht(e),r.a&&r.a.videojs&&r.a.videojs[e]?(q.warn(`The ${e} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),r.a.videojs[e]):void 0)}}ji.names.forEach((function(e){const t=ji[e];qi.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),qi.prototype.featuresVolumeControl=!0,qi.prototype.featuresMuteControl=!0,qi.prototype.featuresFullscreenResize=!1,qi.prototype.featuresPlaybackRate=!1,qi.prototype.featuresProgressEvents=!1,qi.prototype.featuresSourceset=!1,qi.prototype.featuresTimeupdateEvents=!1,qi.prototype.featuresNativeTextTracks=!1,qi.prototype.featuresVideoFrameCallback=!1,qi.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){let s=e.sourceHandlers;s||(s=e.sourceHandlers=[]),void 0===i&&(i=s.length),s.splice(i,0,t)},e.canPlayType=function(t){const i=e.sourceHandlers||[];let s;for(let e=0;e<i.length;e++)if(s=i[e].canPlayType(t),s)return s;return""},e.selectSourceHandler=function(t,i){const s=e.sourceHandlers||[];let r;for(let e=0;e<s.length;e++)if(r=s[e].canHandleSource(t,i),r)return s[e];return null},e.canPlaySource=function(t,i){const s=e.selectSourceHandler(t,i);return s?s.canHandleSource(t,i):""};const t=["seekable","seeking","duration"];t.forEach((function(e){const t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){let i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:q.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),i!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=i.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Gt.registerComponent("Tech",qi),qi.registerTech("Tech",qi),qi.defaultTechOrder_=[];const $i={},Hi={},zi={};function Vi(e,t){$i[e]=$i[e]||[],$i[e].push(t)}function Gi(e,t,i){e.setTimeout(()=>rs(t,$i[t.type],i,e),1)}function Wi(e,t){e.forEach(e=>e.setTech&&e.setTech(t))}function Xi(e,t,i){return e.reduceRight(es(i),t[i]())}function Yi(e,t,i,s){return t[i](e.reduce(es(i),s))}function Ji(e,t,i,s=null){const r="call"+Ht(i),n=e.reduce(es(r),s),a=n===zi,o=a?null:t[i](n);return ts(e,i,o,a),o}const Ki={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Qi={setCurrentTime:1,setMuted:1,setVolume:1},Zi={play:1,pause:1};function es(e){return(t,i)=>t===zi?zi:i[e]?i[e](t):t}function ts(e,t,i,s){for(let r=e.length-1;r>=0;r--){const n=e[r];n[t]&&n[t](s,i)}}function is(e){Hi[e.id()]=null}function ss(e,t){const i=Hi[e.id()];let s=null;if(void 0===i||null===i)return s=t(e),Hi[e.id()]=[[t,s]],s;for(let r=0;r<i.length;r++){const[e,n]=i[r];e===t&&(s=n)}return null===s&&(s=t(e),i.push([t,s])),s}function rs(e={},t=[],i,s,r=[],n=!1){const[a,...o]=t;if("string"===typeof a)rs(e,$i[a],i,s,r,n);else if(a){const t=ss(s,a);if(!t.setSource)return r.push(t),rs(e,o,i,s,r,n);t.setSource(Object.assign({},e),(function(a,l){if(a)return rs(e,o,i,s,r,n);r.push(t),rs(l,e.type===l.type?o:$i[l.type],i,s,r,n)}))}else o.length?rs(e,o,i,s,r,n):n?i(e,r):rs(e,$i["*"],i,s,r,!0)}const ns={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},as=function(e=""){const t=Ii(e),i=ns[t.toLowerCase()];return i||""},os=(e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const i=e.cache_.sources.filter(e=>e.src===t);if(i.length)return i[0].type;const s=e.$$("source");for(let r=0;r<s.length;r++){const e=s[r];if(e.type&&e.src&&e.src===t)return e.type}return as(t)},ls=function(e){if(Array.isArray(e)){let t=[];e.forEach((function(e){e=ls(e),Array.isArray(e)?t=t.concat(e):W(e)&&t.push(e)})),e=t}else e="string"===typeof e&&e.trim()?[ds({src:e})]:W(e)&&"string"===typeof e.src&&e.src&&e.src.trim()?[ds(e)]:[];return e};function ds(e){if(!e.type){const t=as(e.src);t&&(e.type=t)}return e}var us='<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-twitter">\n <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>';class cs extends Gt{constructor(e,t,i){const s=Y({createEl:!1},t);if(super(e,s,i),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let r=0,n=t.playerOptions.techOrder;r<n.length;r++){const t=Ht(n[r]);let i=qi.getTech(t);if(t||(i=Gt.getComponent(t)),i&&i.isSupported()){e.loadTech_(t);break}}}}Gt.registerComponent("MediaLoader",cs);class hs extends Gt{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},i={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&q.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),i=Object.assign({role:"button"},i),this.tabIndex_=t.tabIndex;const s=xe(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=xe("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const i=this.localize(e);this.controlText_=e,Ce(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}buildCSSClass(){return"vjs-control vjs-button "+super.buildCSSClass()}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){l.a.isEventKey(e,"Space")||l.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Gt.registerComponent("ClickableComponent",hs);class ps extends hs{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return xe("div",{className:"vjs-poster"})}crossOrigin(e){if("undefined"===typeof e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(xe("picture",{className:"vjs-poster",tabIndex:-1},{},xe("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ai(this.player_.play()):this.player_.pause())}}ps.prototype.crossorigin=ps.prototype.crossOrigin,Gt.registerComponent("PosterImage",ps);const fs="#222",ms="#ccc",gs={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ys(e,t){let i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function vs(e,t,i){try{e.style[t]=i}catch(s){return}}function bs(e){return e?e+"px":""}class _s extends Gt{constructor(e,t,i){super(e,t,i);const s=e=>this.updateDisplay(e),n=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("texttrackchange",s),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(wt(this,(function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",n),e.on("playerresize",n);const t=r.a.screen.orientation||r.a,i=r.a.screen.orientation?"change":"orientationchange";t.addEventListener(i,n),e.on("dispose",()=>t.removeEventListener(i,n));const s=this.options_.playerOptions.tracks||[];for(let e=0;e<s.length;e++)this.player_.addRemoteTextTrack(s[e],!0);this.preselectTrack()})))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage;let s,r,n;for(let a=0;a<t.length;a++){const o=t[a];i&&i.enabled&&i.language&&i.language===o.language&&o.kind in e?o.kind===i.kind?n=o:n||(n=o):i&&!i.enabled?(n=null,s=null,r=null):o.default&&("descriptions"!==o.kind||s?o.kind in e&&!r&&(r=o):s=o)}n?n.mode="showing":r?r.mode="showing":s&&(s.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"===typeof r.a.WebVTT&&r.a.WebVTT.processCues(r.a,[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let i=0;i<e.length;++i){const s=e[i];"showing"===s.mode&&t.push(s)}return void this.updateForTrack(t)}let i=null,s=null,r=e.length;while(r--){const t=e[r];"showing"===t.mode&&("descriptions"===t.kind?i=t:s=t)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):i&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(i))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!r.a.CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),i=e/t,s=this.player_.videoWidth()/this.player_.videoHeight();let n=0,a=0;Math.abs(i-s)>.1&&(i>s?n=Math.round((e-t*s)/2):a=Math.round((t-e/s)/2)),vs(this.el_,"insetInline",bs(n)),vs(this.el_,"insetBlock",bs(a))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),i=e.activeCues;let s=i.length;while(s--){const e=i[s];if(!e)continue;const n=e.displayState;if(t.color&&(n.firstChild.style.color=t.color),t.textOpacity&&vs(n.firstChild,"color",ys(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(n.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&vs(n.firstChild,"backgroundColor",ys(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?vs(n,"backgroundColor",ys(t.windowColor,t.windowOpacity)):n.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?n.firstChild.style.textShadow=`2px 2px 3px ${fs}, 2px 2px 4px ${fs}, 2px 2px 5px ${fs}`:"raised"===t.edgeStyle?n.firstChild.style.textShadow=`1px 1px ${fs}, 2px 2px ${fs}, 3px 3px ${fs}`:"depressed"===t.edgeStyle?n.firstChild.style.textShadow=`1px 1px ${ms}, 0 1px ${ms}, -1px -1px ${fs}, 0 -1px ${fs}`:"uniform"===t.edgeStyle&&(n.firstChild.style.textShadow=`0 0 4px ${fs}, 0 0 4px ${fs}, 0 0 4px ${fs}, 0 0 4px ${fs}`)),t.fontPercent&&1!==t.fontPercent){const e=r.a.parseFloat(n.style.fontSize);n.style.fontSize=e*t.fontPercent+"px",n.style.height="auto",n.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?n.firstChild.style.fontVariant="small-caps":n.firstChild.style.fontFamily=gs[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!==typeof r.a.WebVTT||e.every(e=>!e.activeCues))return;const t=[];for(let i=0;i<e.length;++i){const s=e[i];for(let e=0;e<s.activeCues.length;++e)t.push(s.activeCues[e])}r.a.WebVTT.processCues(r.a,t,this.el_);for(let i=0;i<e.length;++i){const t=e[i];for(let e=0;e<t.activeCues.length;++e){const s=t.activeCues[e].displayState;Pe(s,"vjs-text-track-cue","vjs-text-track-cue-"+(t.language?t.language:i)),t.language&&Ne(s,"lang",t.language)}this.player_.textTrackSettings&&this.updateDisplayState(t)}}}Gt.registerComponent("TextTrackDisplay",_s);class Ts extends Gt{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"Video Player"),i=xe("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),s=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return s.appendChild(i),s}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}Gt.registerComponent("LoadingSpinner",Ts);class Ss extends hs{createEl(e,t={},i={}){e="button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i);const s=xe(e,t,i);return this.player_.options_.experimentalSvgIcons||s.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(s),s}addChild(e,t={}){const i=this.constructor.name;return q.warn(`Adding an actionable (user controllable) child to a Button (${i}) is not supported; use a ClickableComponent instead.`),Gt.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){l.a.isEventKey(e,"Space")||l.a.isEventKey(e,"Enter")?e.stopPropagation():super.handleKeyDown(e)}}Gt.registerComponent("Button",Ss);class ws extends Ss{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return ai(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const i=this.player_.getChild("controlBar"),s=i&&i.getChild("playToggle");if(!s)return void this.player_.tech(!0).focus();const r=()=>s.focus();ni(t)?t.then(r,()=>{}):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}ws.prototype.controlText_="Play Video",Gt.registerComponent("BigPlayButton",ws);class Es extends Ss{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return"vjs-close-button "+super.buildCSSClass()}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){l.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}Gt.registerComponent("CloseButton",Es);class xs extends Ss{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return"vjs-play-control "+super.buildCSSClass()}handleClick(e){this.player_.paused()?ai(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}xs.prototype.controlText_="Play",Gt.registerComponent("PlayToggle",xs);class Cs extends Gt{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended","seeking"],e=>this.update(e)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:e+" vjs-time-control vjs-control"}),i=xe("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return t.appendChild(i),this.contentEl_=xe("span",{className:e+"-display"},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(e){(this.player_.options_.enableSmoothSeeking||"seeking"!==e.type)&&this.updateContent(e)}updateTextNode_(e=0){e=ti(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,q.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=a.a.createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}Cs.prototype.labelText_="Time",Cs.prototype.controlText_="Time",Gt.registerComponent("TimeDisplay",Cs);class ks extends Cs{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}ks.prototype.labelText_="Current Time",ks.prototype.controlText_="Current Time",Gt.registerComponent("CurrentTimeDisplay",ks);class Is extends Cs{constructor(e,t){super(e,t);const i=e=>this.updateContent(e);this.on(e,"durationchange",i),this.on(e,"loadstart",i),this.on(e,"loadedmetadata",i)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}Is.prototype.labelText_="Duration",Is.prototype.controlText_="Duration",Gt.registerComponent("DurationDisplay",Is);class Ps extends Gt{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),i=super.createEl("span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e}}Gt.registerComponent("TimeDivider",Ps);class Os extends Cs{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(xe("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!==typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}Os.prototype.labelText_="Remaining Time",Os.prototype.controlText_="Remaining Time",Gt.registerComponent("RemainingTimeDisplay",Os);class Ls extends Gt{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=xe("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(xe("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(a.a.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}}Gt.registerComponent("LiveDisplay",Ls);class As extends Ss{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=xe("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function Ds(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}As.prototype.controlText_="Seek to live, currently playing live",Gt.registerComponent("SeekToLive",As);var Ms=Object.freeze({__proto__:null,clamp:Ds});class Ns extends Gt{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(e,t={},i={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),i=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},i),super.createEl(e,t,i)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||ae||e.preventDefault(),Ue(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;Be(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(Ds(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=qe(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){l.a.isEventKey(e,"Left")||l.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):l.a.isEventKey(e,"Right")||l.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Gt.registerComponent("Slider",Ns);const Rs=(e,t)=>Ds(e/t*100,0,100).toFixed(2)+"%";class Us extends Gt{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=xe("span",{className:"vjs-control-text"}),i=xe("span",{textContent:this.localize("Loaded")}),s=a.a.createTextNode(": ");return this.percentageEl_=xe("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(s),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():this.player_.duration(),s=this.player_.bufferedEnd(),r=this.partEls_,n=Rs(s,i);this.percent_!==n&&(this.el_.style.width=n,Ce(this.percentageEl_,n),this.percent_=n);for(let a=0;a<t.length;a++){const e=t.start(a),i=t.end(a);let n=r[a];n||(n=this.el_.appendChild(xe()),r[a]=n),n.dataset.start===e&&n.dataset.end===i||(n.dataset.start=e,n.dataset.end=i,n.style.left=Rs(e,s),n.style.width=Rs(i-e,s))}for(let a=r.length;a>t.length;a--)this.el_.removeChild(r[a-1]);r.length=t.length})}}Gt.registerComponent("LoadProgressBar",Us);class Bs extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,i){const s=Fe(this.el_),r=je(this.player_.el()),n=e.width*t;if(!r||!s)return;const a=e.left-r.left+n,o=e.width-n+(r.right-e.right);let l=s.width/2;a<l?l+=l-a:o<l&&(l=o),l<0?l=0:l>s.width&&(l=s.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(i)}write(e){Ce(this.el_,e)}updateTime(e,t,i,s){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let r;const n=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),i=e-t*e;r=(i<1?"":"-")+ti(i,e)}else r=ti(i,n);this.update(e,t,r),s&&s()})}}Gt.registerComponent("TimeTooltip",Bs);class js extends Gt{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const i=this.getChild("timeTooltip");if(!i)return;const s=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,s)}}js.prototype.options_={children:[]},ge||ie||js.prototype.options_.children.push("timeTooltip"),Gt.registerComponent("PlayProgressBar",js);class Fs extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,()=>{this.el_.style.left=e.width*t+"px"})}}Fs.prototype.options_={children:["timeTooltip"]},Gt.registerComponent("MouseTimeDisplay",Fs);const qs=5,$s=12;class Hs extends Ns{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=wt(this,this.update),this.update=Et(this.update_,St),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===a.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,St))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===a.a.visibilityState)return;const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),i=this.player_.liveTracker;let s=this.player_.duration();i&&i.isLive()&&(s=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===s||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ti(e,s),ti(s,s)],"{1} of {2}")),this.currentTime_=e,this.duration_=s),this.bar&&this.bar.update(je(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){We(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!We(e)||isNaN(this.player_.duration()))return;let i;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const s=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(s>=.99)return void r.seekToLiveEdge();const e=r.seekableStart(),t=r.liveCurrentTime();if(i=e+s*r.liveWindow(),i>=t&&(i=t),i<=e&&(i=e+.1),i===1/0)return}else i=s*this.player_.duration(),i===this.player_.duration()&&(i-=.1);this.userSeek_(i),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ai(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+qs)}stepBack(){this.userSeek_(this.player_.currentTime()-qs)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(l.a.isEventKey(e,"Space")||l.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(l.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(l.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(l()(e))){e.preventDefault(),e.stopPropagation();const i=10*(l.a.codes[l()(e)]-l.a.codes["0"])/100;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else l.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-qs*$s)):l.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+qs*$s)):super.handleKeyDown(e)}dispose(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in a.a&&"visibilityState"in a.a&&this.off(a.a,"visibilitychange",this.toggleVisibility_),super.dispose()}}Hs.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},ge||ie||Hs.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Gt.registerComponent("SeekBar",Hs);class zs extends Gt{constructor(e,t){super(e,t),this.handleMouseMove=Et(wt(this,this.handleMouseMove),St),this.throttledHandleMouseSeek=Et(wt(this,this.handleMouseSeek),St),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const i=t.getChild("playProgressBar"),s=t.getChild("mouseTimeDisplay");if(!i&&!s)return;const r=t.el(),n=Fe(r);let a=qe(r,e).x;a=Ds(a,0,1),s&&s.update(n,a),i&&i.update(n,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}disable(){if(this.children().forEach(e=>e.disable&&e.disable()),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ai(this.player_.play())}}enable(){this.children().forEach(e=>e.enable&&e.enable()),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)}handleMouseDown(e){const t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}zs.prototype.options_={children:["seekBar"]},Gt.registerComponent("ProgressControl",zs);class Vs extends Ss{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return"vjs-picture-in-picture-control vjs-hidden "+super.buildCSSClass()}handlePictureInPictureAudioModeChange(){const e="audio"===this.player_.currentType().substring(0,5),t=e||this.player_.audioPosterMode()||this.player_.audioOnlyMode();t?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){a.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in r.a?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"===typeof a.a.exitPictureInPicture&&super.show()}}Vs.prototype.controlText_="Picture-in-Picture",Gt.registerComponent("PictureInPictureToggle",Vs);class Gs extends Ss{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===a.a[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return"vjs-fullscreen-control "+super.buildCSSClass()}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}Gs.prototype.controlText_="Fullscreen",Gt.registerComponent("FullscreenToggle",Gs);const Ws=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))};class Xs extends Gt{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}Gt.registerComponent("VolumeLevel",Xs);class Ys extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,i,s){if(!i){const i=je(this.el_),s=je(this.player_.el()),r=e.width*t;if(!s||!i)return;const n=e.left-s.left+r,a=e.width-r+(s.right-e.right);let o=i.width/2;n<o?o+=o-n:a<o&&(o=a),o<0?o=0:o>i.width&&(o=i.width),this.el_.style.right=`-${o}px`}this.write(s+"%")}write(e){Ce(this.el_,e)}updateVolume(e,t,i,s,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,i,s.toFixed(0)),r&&r()})}}Gt.registerComponent("VolumeLevelTooltip",Ys);class Js extends Gt{constructor(e,t){super(e,t),this.update=Et(wt(this,this.update),St)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,i){const s=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,s,()=>{i?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}Js.prototype.options_={children:["volumeLevelTooltip"]},Gt.registerComponent("MouseVolumeLevelDisplay",Js);class Ks extends Ns{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){We(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const i=this.el(),s=je(i),r=this.vertical();let n=qe(i,e);n=r?n.y:n.x,n=Ds(n,0,1),t.update(s,n,r)}We(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}Ks.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},ge||ie||Ks.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ks.prototype.playerEvent="volumechange",Gt.registerComponent("VolumeBar",Ks);class Qs extends Gt{constructor(e,t={}){t.vertical=t.vertical||!1,("undefined"===typeof t.volumeBar||X(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),Ws(this,e),this.throttledHandleMouseMove=Et(wt(this,this.handleMouseMove),St),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:"vjs-volume-control vjs-control "+e})}handleMouseDown(e){const t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)}handleMouseUp(e){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}Qs.prototype.options_={children:["volumeBar"]},Gt.registerComponent("VolumeControl",Qs);const Zs=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))};class er extends Ss{constructor(e,t){super(e,t),Zs(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return"vjs-mute-control "+super.buildCSSClass()}handleClick(e){const t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){const e=i<.1?.1:i;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),ge&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),Oe(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),Pe(this.el_,"vjs-vol-"+t)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}}er.prototype.controlText_="Mute",Gt.registerComponent("MuteToggle",er);class tr extends Gt{constructor(e,t={}){"undefined"!==typeof t.inline?t.inline=t.inline:t.inline=!0,("undefined"===typeof t.volumeControl||X(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:"vjs-volume-panel vjs-control "+e})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){l.a.isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),gt(a.a,"keyup",this.handleKeyPressHandler_)}handleMouseOut(e){this.removeClass("vjs-hover"),yt(a.a,"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){l.a.isEventKey(e,"Esc")&&this.handleMouseOut()}}tr.prototype.options_={children:["muteToggle","volumeControl"]},Gt.registerComponent("VolumePanel",tr);class ir extends Ss{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon("forward-"+this.skipTime),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()?i.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=s?t+this.skipTime:s,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}ir.prototype.controlText_="Skip Forward",Gt.registerComponent("SkipForward",ir);class sr extends Ss{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon("replay-"+this.skipTime),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),i=this.player_.liveTracker,s=i&&i.isLive()&&i.seekableStart();let r;r=s&&t-this.skipTime<=s?s:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}sr.prototype.controlText_="Skip Backward",Gt.registerComponent("SkipBackward",sr);class rr extends Gt{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof Gt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof Gt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"===typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=xe(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),gt(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||a.a.activeElement;if(!this.children().some(e=>e.el()===t)){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const i=t.filter(t=>t.el()===e.target)[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}handleKeyDown(e){l.a.isEventKey(e,"Left")||l.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(l.a.isEventKey(e,"Right")||l.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const t=this.children().slice(),i=t.length&&t[0].hasClass("vjs-menu-title");i&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}Gt.registerComponent("Menu",rr);class nr extends Gt{constructor(e,t={}){super(e,t),this.menuButton_=new Ss(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const i=Ss.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+i,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const s=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",s),this.on(this.menuButton_,"click",s),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),gt(a.a,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){const e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const e=new rr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=xe("li",{className:"vjs-menu-title",textContent:Ht(this.options_.title),tabIndex:-1}),i=new Gt(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";!0===this.options_.inline?e+="-inline":e+="-popup";const t=Ss.prototype.buildCSSClass();return`vjs-menu-button ${e} ${t} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),yt(a.a,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){l.a.isEventKey(e,"Esc")||l.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),l.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(l.a.isEventKey(e,"Up")||l.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(l.a.isEventKey(e,"Esc")||l.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(l.a.isEventKey(e,"Esc")||l.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),l.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),ge&&we())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Gt.registerComponent("MenuButton",nr);class ar extends nr{constructor(e,t){const i=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!i)return;const s=wt(this,this.update);i.addEventListener("removetrack",s),i.addEventListener("addtrack",s),i.addEventListener("labelchange",s),this.player_.on("ready",s),this.player_.on("dispose",(function(){i.removeEventListener("removetrack",s),i.removeEventListener("addtrack",s),i.removeEventListener("labelchange",s)}))}}Gt.registerComponent("TrackButton",ar);const or=["Tab","Esc","Up","Down","Right","Left"];class lr extends hs{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,i){this.nonIconControl=!0;const s=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),i),r=xe("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?s.appendChild(r):s.replaceChild(r,s.querySelector(".vjs-icon-placeholder")),s}handleKeyDown(e){or.some(t=>l.a.isEventKey(e,t))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Gt.registerComponent("MenuItem",lr);class dr extends lr{constructor(e,t){const i=t.track,s=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,super(e,t),this.track=i,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const n=(...e)=>{this.handleTracksChange.apply(this,e)},o=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],n),s.addEventListener("change",n),s.addEventListener("selectedlanguagechange",o),this.on("dispose",(function(){e.off(["loadstart","texttrackchange"],n),s.removeEventListener("change",n),s.removeEventListener("selectedlanguagechange",o)})),void 0===s.onchange){let e;this.on(["tap","click"],(function(){if("object"!==typeof r.a.Event)try{e=new r.a.Event("change")}catch(t){}e||(e=a.a.createEvent("Event"),e.initEvent("change",!0,!0)),s.dispatchEvent(e)}))}this.handleTracksChange()}handleClick(e){const t=this.track,i=this.player_.textTracks();if(super.handleClick(e),i)for(let s=0;s<i.length;s++){const e=i[s];-1!==this.kinds.indexOf(e.kind)&&(e===t?"showing"!==e.mode&&(e.mode="showing"):"disabled"!==e.mode&&(e.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Gt.registerComponent("TextTrackMenuItem",dr);class ur extends dr{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let i=!0;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(this.options_.kinds.indexOf(e.kind)>-1&&"showing"===e.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let i=!0;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(["captions","descriptions","subtitles"].indexOf(e.kind)>-1&&"showing"===e.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Gt.registerComponent("OffTextTrackMenuItem",ur);class cr extends ar{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=dr){let i;this.label_&&(i=this.label_+" off"),e.push(new ur(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;const s=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let r=0;r<s.length;r++){const i=s[r];if(this.kinds_.indexOf(i.kind)>-1){const s=new t(this.player_,{track:i,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass(`vjs-${i.kind}-menu-item`),e.push(s)}}return e}}Gt.registerComponent("TextTrackButton",cr);class hr extends lr{constructor(e,t){const i=t.track,s=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=s.text,t.selected=s.startTime<=r&&r<s.endTime,super(e,t),this.track=i,this.cue=s}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Gt.registerComponent("ChaptersTrackMenuItem",hr);class pr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return"vjs-chapters-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-chapters-button "+super.buildWrapperCSSClass()}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update()}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const i=e[t];if(i.kind===this.kind_)return i}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(Ht(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let i=0,s=t.length;i<s;i++){const s=t[i],r=new hr(this.player_,{track:this.track_,cue:s});e.push(r)}return e}}pr.prototype.kind_="chapters",pr.prototype.controlText_="Chapters",Gt.registerComponent("ChaptersButton",pr);class fr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("audio-description");const s=e.textTracks(),r=wt(this,this.handleTracksChange);s.addEventListener("change",r),this.on("dispose",(function(){s.removeEventListener("change",r)}))}handleTracksChange(e){const t=this.player().textTracks();let i=!1;for(let s=0,r=t.length;s<r;s++){const e=t[s];if(e.kind!==this.kind_&&"showing"===e.mode){i=!0;break}}i?this.disable():this.enable()}buildCSSClass(){return"vjs-descriptions-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-descriptions-button "+super.buildWrapperCSSClass()}}fr.prototype.kind_="descriptions",fr.prototype.controlText_="Descriptions",Gt.registerComponent("DescriptionsButton",fr);class mr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("subtitles")}buildCSSClass(){return"vjs-subtitles-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-subtitles-button "+super.buildWrapperCSSClass()}}mr.prototype.kind_="subtitles",mr.prototype.controlText_="Subtitles",Gt.registerComponent("SubtitlesButton",mr);class gr extends dr{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Gt.registerComponent("CaptionSettingsMenuItem",gr);class yr extends cr{constructor(e,t,i){super(e,t,i),this.setIcon("captions")}buildCSSClass(){return"vjs-captions-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-captions-button "+super.buildWrapperCSSClass()}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new gr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}yr.prototype.kind_="captions",yr.prototype.controlText_="Captions",Gt.registerComponent("CaptionsButton",yr);class vr extends dr{createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",s):r.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(xe("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),s}}Gt.registerComponent("SubsCapsMenuItem",vr);class br extends cr{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(Ht(this.label_))}buildCSSClass(){return"vjs-subs-caps-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-subs-caps-button "+super.buildWrapperCSSClass()}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new gr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,vr),e}}br.prototype.kinds_=["captions","subtitles"],br.prototype.controlText_="Subtitles",Gt.registerComponent("SubsCapsButton",br);class _r extends lr{constructor(e,t){const i=t.track,s=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,super(e,t),this.track=i,this.addClass(`vjs-${i.kind}-menu-item`);const r=(...e)=>{this.handleTracksChange.apply(this,e)};s.addEventListener("change",r),this.on("dispose",()=>{s.removeEventListener("change",r)})}createEl(e,t,i){const s=super.createEl(e,t,i),r=s.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(xe("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(xe("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),s}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const i=e[t];i!==this.track&&(i.enabled=i===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}Gt.registerComponent("AudioTrackMenuItem",_r);class Tr extends ar{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return"vjs-audio-button "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-audio-button "+super.buildWrapperCSSClass()}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let i=0;i<t.length;i++){const s=t[i];e.push(new _r(this.player_,{track:s,selectable:!0,multiSelectable:!1}))}return e}}Tr.prototype.controlText_="Audio Track",Gt.registerComponent("AudioTrackButton",Tr);class Sr extends lr{constructor(e,t){const i=t.rate,s=parseFloat(i,10);t.label=i,t.selected=s===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=i,this.rate=s,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}Sr.prototype.contentElType="button",Gt.registerComponent("PlaybackRateMenuItem",Sr);class wr extends nr{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=xe("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return"vjs-playback-rate "+super.buildCSSClass()}buildWrapperCSSClass(){return"vjs-playback-rate "+super.buildWrapperCSSClass()}createItems(){const e=this.playbackRates(),t=[];for(let i=e.length-1;i>=0;i--)t.push(new Sr(this.player(),{rate:e[i]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}wr.prototype.controlText_="Playback Rate",Gt.registerComponent("PlaybackRateMenuButton",wr);class Er extends Gt{buildCSSClass(){return"vjs-spacer "+super.buildCSSClass()}createEl(e="div",t={},i={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,i)}}Gt.registerComponent("Spacer",Er);class xr extends Er{buildCSSClass(){return"vjs-custom-control-spacer "+super.buildCSSClass()}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Gt.registerComponent("CustomControlSpacer",xr);class Cr extends Gt{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}Cr.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},Gt.registerComponent("ControlBar",Cr);class kr extends hi{constructor(e,t){super(e,t),this.on(e,"error",e=>{this.close(),this.open(e)})}buildCSSClass(){return"vjs-error-display "+super.buildCSSClass()}content(){const e=this.player().error();return e?this.localize(e.message):""}}kr.prototype.options_=Object.assign({},hi.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Gt.registerComponent("ErrorDisplay",kr);const Ir="vjs-text-track-settings",Pr=["#000","Black"],Or=["#00F","Blue"],Lr=["#0FF","Cyan"],Ar=["#0F0","Green"],Dr=["#F0F","Magenta"],Mr=["#F00","Red"],Nr=["#FFF","White"],Rr=["#FF0","Yellow"],Ur=["1","Opaque"],Br=["0.5","Semi-Transparent"],jr=["0","Transparent"],Fr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Pr,Nr,Mr,Ar,Or,Rr,Dr,Lr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[Ur,Br,jr]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Nr,Pr,Mr,Ar,Or,Rr,Dr,Lr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[Ur,Br]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[jr,Br,Ur]}};function qr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function $r(e,t){const i=e.options[e.options.selectedIndex].value;return qr(i,t)}function Hr(e,t,i){if(t)for(let s=0;s<e.options.length;s++)if(qr(e.options[s].value,i)===t){e.selectedIndex=s;break}}Fr.windowColor.options=Fr.backgroundColor.options;class zr extends hi{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=xe("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),V(Fr,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,t="",i="label"){const s=Fr[e],r=s.id.replace("%s",this.id_),n=[t,r].join(" ").trim(),a="vjs_select_"+ut();return[`<${i} id="${r}"${"label"===i?` for="${a}" class="vjs-label"`:""}>`,this.localize(s.label),`</${i}>`,`<select aria-labelledby="${n}" id="${a}">`].concat(s.options.map(e=>{const t=r+"-"+e[1].replace(/\W+/g,"");return[`<option id="${t}" value="${e[0]}" `,`aria-labelledby="${n} ${t}">`,this.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e="captions-background-"+this.id_;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e="captions-window-"+this.id_;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return xe("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return xe("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return xe("div",{className:"vjs-track-settings-controls",innerHTML:[`<button type="button" class="vjs-default-button" title="${e}">`,this.localize("Reset"),`<span class="vjs-control-text"> ${e}</span>`,"</button>",`<button type="button" class="vjs-done-button">${this.localize("Done")}</button>`].join("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return G(Fr,(e,t,i)=>{const s=$r(this.$(t.selector),t.parser);return void 0!==s&&(e[i]=s),e},{})}setValues(e){V(Fr,(t,i)=>{Hr(this.$(t.selector),e[i],t.parser)})}setDefaults(){V(Fr,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(r.a.localStorage.getItem(Ir))}catch(t){q.warn(t)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?r.a.localStorage.setItem(Ir,JSON.stringify(e)):r.a.localStorage.removeItem(Ir)}catch(t){q.warn(t)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()}handleLanguagechange(){this.fill()}}Gt.registerComponent("TextTrackSettings",zr);class Vr extends Gt{constructor(e,t){let i=t.ResizeObserver||r.a.ResizeObserver;null===t.ResizeObserver&&(i=!1);const s=Y({createEl:!i,reportTouchActivity:!1},t);super(e,s),this.ResizeObserver=t.ResizeObserver||r.a.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=xt(()=>{this.resizeHandler()},100,!1,this),i?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){yt(this,"resize",e),yt(this,"unload",t),t=null};gt(this.el_.contentWindow,"unload",t),gt(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}Gt.registerComponent("ResizeManager",Vr);const Gr={trackingThreshold:20,liveTolerance:15};class Wr extends Gt{constructor(e,t){const i=Y(Gr,t,{createEl:!1});super(e,i),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(r.a.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;const s=this.liveCurrentTime(),n=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(s-n)>this.options_.liveTolerance;this.timeupdateSeen_&&s!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,St),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;while(i--)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let i=e?e.length:0;while(i--)t.push(e.start(i));return t.length?t.sort()[0]:0}liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"===typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}Gt.registerComponent("LiveTracker",Wr);class Xr extends Gt{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:xe("div",{className:"vjs-title-bar-title",id:"vjs-title-bar-title-"+ut()}),description:xe("div",{className:"vjs-title-bar-description",id:"vjs-title-bar-description-"+ut()})},xe("div",{className:"vjs-title-bar"},{},J(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,i={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{const s=this.state[e],r=this.els[e],n=i[e];He(r),s&&Ce(r,s),t&&(t.removeAttribute(n),s&&t.setAttribute(n,r.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}Gt.registerComponent("TitleBar",Xr);const Yr=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const i=e.$$("source"),s=[];let r="";if(!i.length)return!1;for(let n=0;n<i.length;n++){const e=i[n].src;e&&-1===s.indexOf(e)&&s.push(e)}return!!s.length&&(1===s.length&&(r=s[0]),e.triggerSourceset(r),!0)},Jr=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const i=a.a.createDocumentFragment();while(t.childNodes.length)i.appendChild(t.childNodes[0]);return this.innerText="",r.a.Element.prototype.appendChild.call(this,i),this.innerHTML}}),Kr=(e,t)=>{let i={};for(let s=0;s<e.length;s++)if(i=Object.getOwnPropertyDescriptor(e[s],t),i&&i.set&&i.get)break;return i.enumerable=!0,i.configurable=!0,i},Qr=e=>Kr([e.el(),r.a.HTMLMediaElement.prototype,r.a.Element.prototype,Jr],"innerHTML"),Zr=function(e){const t=e.el();if(t.resetSourceWatch_)return;const i={},s=Qr(e),r=i=>(...s)=>{const r=i.apply(t,s);return Yr(e),r};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",Y(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(i).forEach(e=>{t[e]=i[e]}),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},en=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?ki(r.a.Element.prototype.getAttribute.call(this,"src")):""},set(e){return r.a.Element.prototype.setAttribute.call(this,"src",e),e}}),tn=e=>Kr([e.el(),r.a.HTMLMediaElement.prototype,en],"src"),sn=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const i=tn(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Y(i,{set:s=>{const r=i.set.call(t,s);return e.triggerSourceset(t.src),r}})),t.setAttribute=(i,r)=>{const n=s.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),n},t.load=()=>{const i=r.call(t);return Yr(e)||(e.triggerSourceset(""),Zr(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):Yr(e)||Zr(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}};class rn extends qi{constructor(e,t){super(e,t);const i=e.source;let s=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,i&&(this.el_.currentSrc!==i.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(i):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const i=[];while(t--){const r=e[t],n=r.nodeName.toLowerCase();"track"===n&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),this.textTracks().addTrack(r.track),s||this.el_.hasAttribute("crossorigin")||!Pi(r.src)||(s=!0)):i.push(r))}for(let s=0;s<i.length;s++)this.el_.removeChild(i[s])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&s&&q.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(fe||pe)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),rn.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){sn(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let i=0;i<e.length;i++){const s=e[i];"metadata"===s.kind&&t.push({track:s,storedMode:s.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const s=()=>{for(let e=0;e<t.length;e++){const i=t[e];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}e.removeEventListener("change",s)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",s),e.addEventListener("change",s)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",s)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach(e=>{const t=this.el()[i+"Tracks"];t.removeEventListener(e,this[i+"TracksListeners_"][e])}),this[`featuresNative${e}Tracks`]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=Ui[e],i=this.el()[t.getterName],s=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const r={change:t=>{const i={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(i),"text"===e&&this[Bi.remoteText.getterName]().trigger(i)},addtrack(e){s.addTrack(e.track)},removetrack(e){s.removeTrack(e.track)}},n=function(){const e=[];for(let t=0;t<s.length;t++){let r=!1;for(let e=0;e<i.length;e++)if(i[e]===s[t]){r=!0;break}r||e.push(s[t])}while(e.length)s.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach(e=>{const t=r[e];i.addEventListener(e,t),this.on("dispose",s=>i.removeEventListener(e,t))}),this.on("loadstart",n),this.on("dispose",e=>this.off("loadstart",n))}proxyNativeTracks_(){Ui.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),rn.disposeMediaElement(e),e=t}else{e=a.a.createElement("video");const t=this.options_.tag&&De(this.options_.tag),i=Y({},t);fe&&!0===this.options_.nativeControlsForTouch||delete i.controls,Ae(e,Object.assign(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&Ne(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const s=t[i],r=this.options_[s];"undefined"!==typeof r&&(r?Ne(e,s,s):Re(e,s),e[s]=r)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const i=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",t),this.off("loadedmetadata",i),e||this.trigger("loadstart")}))}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready((function(){t.forEach((function(e){this.trigger(e)}),this)}))}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&ye?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){q(t,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&ie&&ae&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"===typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ai(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){rn.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):super.addTextTrack(e,t,i)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=a.a.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const i=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(i),i}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let i=t.length;while(i--)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])}}getVideoPlaybackQuality(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r.a.performance&&(e.creationTime=r.a.performance.now()),e}}K(rn,"TEST_VID",(function(){if(!Te())return;const e=a.a.createElement("video"),t=a.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e})),rn.isSupported=function(){try{rn.TEST_VID.volume=.5}catch(e){return!1}return!(!rn.TEST_VID||!rn.TEST_VID.canPlayType)},rn.canPlayType=function(e){return rn.TEST_VID.canPlayType(e)},rn.canPlaySource=function(e,t){return rn.canPlayType(e.type)},rn.canControlVolume=function(){try{const e=rn.TEST_VID.volume;rn.TEST_VID.volume=e/2+.1;const t=e!==rn.TEST_VID.volume;return t&&ge?(r.a.setTimeout(()=>{rn&&rn.prototype&&(rn.prototype.featuresVolumeControl=e!==rn.TEST_VID.volume)}),!1):t}catch(e){return!1}},rn.canMuteVolume=function(){try{const e=rn.TEST_VID.muted;return rn.TEST_VID.muted=!e,rn.TEST_VID.muted?Ne(rn.TEST_VID,"muted","muted"):Re(rn.TEST_VID,"muted","muted"),e!==rn.TEST_VID.muted}catch(e){return!1}},rn.canControlPlaybackRate=function(){if(ie&&ae&&le<58)return!1;try{const e=rn.TEST_VID.playbackRate;return rn.TEST_VID.playbackRate=e/2+.1,e!==rn.TEST_VID.playbackRate}catch(e){return!1}},rn.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},rn.supportsNativeTextTracks=function(){return ye||ge&&ae},rn.supportsNativeVideoTracks=function(){return!(!rn.TEST_VID||!rn.TEST_VID.videoTracks)},rn.supportsNativeAudioTracks=function(){return!(!rn.TEST_VID||!rn.TEST_VID.audioTracks)},rn.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function([e,t]){K(rn.prototype,e,()=>rn[t](),!0)})),rn.prototype.featuresVolumeControl=rn.canControlVolume(),rn.prototype.movingMediaElementInDOM=!ge,rn.prototype.featuresFullscreenResize=!0,rn.prototype.featuresProgressEvents=!0,rn.prototype.featuresTimeupdateEvents=!0,rn.prototype.featuresVideoFrameCallback=!(!rn.TEST_VID||!rn.TEST_VID.requestVideoFrameCallback),rn.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},rn.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let i=t.length;while(i--)e.removeChild(t[i]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){rn.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){rn.prototype["set"+Ht(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){rn.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){rn.prototype["set"+Ht(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){rn.prototype[e]=function(){return this.el_[e]()}})),qi.withSourceHandlers(rn),rn.nativeSourceHandler={},rn.nativeSourceHandler.canPlayType=function(e){try{return rn.TEST_VID.canPlayType(e)}catch(t){return""}},rn.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return rn.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=Ii(e.src);return rn.nativeSourceHandler.canPlayType("video/"+t)}return""},rn.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},rn.nativeSourceHandler.dispose=function(){},rn.registerSourceHandler(rn.nativeSourceHandler),qi.registerTech("Html5",rn);const nn=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],an={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},on=["tiny","xsmall","small","medium","large","xlarge","huge"],ln={};on.forEach(e=>{const t="x"===e.charAt(0)?"x-"+e.substring(1):e;ln[e]="vjs-layout-"+t});const dn={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class un extends Gt{constructor(e,t,i){if(e.id=e.id||t.id||"vjs_video_"+ut(),t=Object.assign(un.getTagSettings(e),t),t.initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const i=e.closest("[lang]");i&&(t.language=i.getAttribute("lang"))}if(super(null,t,i),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.isFullscreen_=!1,this.log=$(this.id_),this.fsApi_=M,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=e,this.tagAttributes=e&&De(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach((function(i){e[i.toLowerCase()]=t.languages[i]})),this.languages_=e}else this.languages_=un.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!==typeof this[e])throw new Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),jt(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(gt(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const s=Y(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=s,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=new r.a.DOMParser,t=e.parseFromString(us,"image/svg+xml"),i=t.querySelector("parsererror");if(i)q.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const e=t.documentElement;e.style.display="none",this.el_.appendChild(e),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),fe&&this.addClass("vjs-touch-enabled"),ge||this.addClass("vjs-workinghover"),un.players[this.id_]=this;const n=I.split(".")[0];this.addClass("vjs-v"+n),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),yt(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),yt(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),un.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),is(this),ji.names.forEach(e=>{const t=ji[e],i=this[t.getterName]();i&&i.off&&i.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,i=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const s="video-js"===this.tag.tagName.toLowerCase();i?e=this.el_=t.parentNode:s||(e=this.el_=super.createEl("div"));const n=De(t);if(s){e=this.el_=t,t=this.tag=a.a.createElement("video");while(e.children.length)t.appendChild(e.firstChild);Ie(e,"video-js")||Pe(e,"video-js"),e.appendChild(t),i=this.playerElIngest_=e,Object.keys(e).forEach(i=>{try{t[i]=e[i]}catch(s){}})}if(t.setAttribute("tabindex","-1"),n.tabindex="-1",ae&&ce&&(t.setAttribute("role","application"),n.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in n&&delete n.width,"height"in n&&delete n.height,Object.getOwnPropertyNames(n).forEach((function(i){s&&"class"===i||e.setAttribute(i,n[i]),s&&t.setAttribute(i,n[i])})),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused"),!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=rt("vjs-styles-dimensions");const e=Xe(".vjs-styles-defaults"),t=Xe("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const o=t.getElementsByTagName("a");for(let r=0;r<o.length;r++){const e=o.item(r);Pe(e,"vjs-hidden"),e.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!i&&t.parentNode.insertBefore(e,t),ke(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if("undefined"===typeof e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):q.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();const s=parseFloat(t);isNaN(s)?q.error(`Improper value "${t}" supplied for for ${e}`):(this[i]=s,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Ot(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),Lt(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(!0===r.a.VIDEOJS_NO_DYNAMIC_STYLE){const e="number"===typeof this.width_?this.width_:this.options_.width,t="number"===typeof this.height_?this.height_:this.options_.height,i=this.tech_&&this.tech_.el();return void(i&&(e>=0&&(i.width=e),t>=0&&(i.height=t)))}let e,t,i,s;i=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const n=i.split(":"),a=n[1]/n[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),nt(this.styleEl_,`\n .${s} {\n width: ${e}px;\n height: ${t}px;\n }\n\n .${s}.vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: ${100*a}%;\n }\n `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=Ht(e),s=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(qi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let r=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const n={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${s}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};ji.names.forEach(e=>{const t=ji[e];n[t.getterName]=this[t.privateName]}),Object.assign(n,this.options_[i]),Object.assign(n,this.options_[s]),Object.assign(n,this.options_[e.toLowerCase()]),this.tag&&(n.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(n.startTime=this.cache_.currentTime);const a=qi.getTech(e);if(!a)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new a(n),this.tech_.ready(wt(this,this.handleTechReady_),!0),ui.jsonToTextTracks(this.textTracksJson_||[],this.tech_),nn.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${Ht(e)}_`](t))}),Object.keys(an).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${an[e]}_`].bind(this),event:t}):this[`handleTech${an[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||ke(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){ji.names.forEach(e=>{const t=ji[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=ui.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&q.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}version(){return{"video.js":I}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!==typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const i=this.play();if(ni(i))return i.catch(e=>{throw t(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};let i;return"any"!==e||this.muted()?i="muted"!==e||this.muted()?this.play():t():(i=this.play(),ni(i)&&(i=i.catch(t))),ni(i)?i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let t=e,i="";"string"!==typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=os(this,t)),this.cache_.source=Y({},e,{src:t,type:i});const s=this.cache_.sources.filter(e=>e.src&&e.src===t),r=[],n=this.$$("source"),a=[];for(let o=0;o<n.length;o++){const e=De(n[o]);r.push(e),e.src&&e.src===t&&a.push(e.src)}a.length&&!s.length?this.cache_.sources=r:s.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const i=this.currentSource().src,s=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(s)&&(!this.lastSource_||this.lastSource_.tech!==s&&this.lastSource_.player!==i)&&(t=()=>{}),t(s),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?ai(this.play()):this.pause()))}handleTechDoubleClick_(e){if(!this.controls_)return;const t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>t.contains(e.target));t||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const i=this.el();let s=a.a[this.fsApi_.fullscreenElement]===i;!s&&i.matches&&(s=i.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(s)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(e,t){this.ready((function(){if(e in Qi)return Yi(this.middleware_,this.tech_,e,t);if(e in Zi)return Ji(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(i){throw q(i),i}}),!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in Ki)return Xi(this.middleware_,this.tech_,e);if(e in Zi)return Ji(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw q(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw q(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw q(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=ai){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(ye||ge);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&i&&this.load());const s=this.techGet_("play"),r=i&&this.hasClass("vjs-ended");r&&this.resetProgressBar_(),null===s?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(s)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||Jt(0,0)}scrubbing(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=Jt(0,0)),e}seekable(){let e=this.techGet_("seekable");return e&&e.length||(e=Jt(0,0)),e}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return si(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let i=e.end(e.length-1);return i>t&&(i=t),i}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((i,s)=>{function r(){t.off("fullscreenerror",a),t.off("fullscreenchange",n)}function n(){r(),i()}function a(e,t){r(),s(t)}t.one("fullscreenchange",n),t.one("fullscreenerror",a);const o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(i,s))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,i)=>{function s(){e.off("fullscreenerror",n),e.off("fullscreenchange",r)}function r(){s(),t()}function n(e,t){s(),i(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",n);const a=e.exitFullscreenHelper_();a&&(a.then(s,s),a.then(t,i))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=a.a[this.fsApi_.exitFullscreen]();return e&&ai(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,gt(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",Pe(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){l.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,yt(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,Oe(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&r.a.documentPictureInPicture){const e=a.a.createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(xe("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),r.a.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(Ke(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),t.addEventListener("pagehide",t=>{const i=t.target.querySelector(".video-js");e.parentNode.replaceChild(i,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in a.a&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return r.a.documentPictureInPicture&&r.a.documentPictureInPicture.window?(r.a.documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in a.a?a.a.exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;if(!t||!t.hotkeys)return;const i=e=>{const t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;const i=["button","checkbox","hidden","radio","reset","submit"];if("input"===t)return-1===i.indexOf(e.type);const s=["textarea"];return-1!==s.indexOf(t)};i(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:i=(e=>l.a.isEventKey(e,"f")),muteKey:s=(e=>l.a.isEventKey(e,"m")),playPauseKey:r=(e=>l.a.isEventKey(e,"k")||l.a.isEventKey(e,"Space"))}=t;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gt.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else if(s.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gt.getComponent("MuteToggle");t.prototype.handleClick.call(this,e)}else if(r.call(this,e)){e.preventDefault(),e.stopPropagation();const t=Gt.getComponent("PlayToggle");t.prototype.handleClick.call(this,e)}}canPlayType(e){let t;for(let i=0,s=this.options_.techOrder;i<s.length;i++){const r=s[i];let n=qi.getTech(r);if(n||(n=Gt.getComponent(r)),n){if(n.isSupported()&&(t=n.canPlayType(e),t))return t}else q.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(e=>[e,qi.getTech(e)]).filter(([e,t])=>t?t.isSupported():(q.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),i=function(e,t,i){let s;return e.some(e=>t.some(t=>{if(s=i(e,t),s)return!0})),s};let s;const r=e=>(t,i)=>e(i,t),n=([e,t],i)=>{if(t.canPlaySource(i,this.options_[e.toLowerCase()]))return{source:i,tech:e}};return s=this.options_.sourceOrder?i(e,t,r(n)):i(t,e,n),s||!1}handleSrc_(e,t){if("undefined"===typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const i=ls(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Gi(this,i[0],(e,s)=>{this.middleware_=s,t||(this.cache_.sources=i),this.updateSourceCaches_(e);const r=this.src_(e);if(r)return i.length>1?this.handleSrc_(i.slice(1)):(this.changingSrc_=!1,this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void this.triggerReady());Wi(s,this.tech_)}),i.length>1){const e=()=>{this.error(null),this.handleSrc_(i.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(zt(t.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const e=this.play();ai(e.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ot(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:i,remainingTimeDisplay:s}=this.controlBar||{},{seekBar:r}=i||{};e&&e.updateContent(),t&&t.updateContent(),s&&s.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let t;"string"===typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"===typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(e){if(void 0===e)return this.error_||null;if(O("beforeerror").forEach(t=>{const i=t(this,e);W(i)&&!Array.isArray(i)||"string"===typeof i||"number"===typeof i||null===i?e=i:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new ri(e),this.addClass("vjs-error"),q.error(`(CODE:${this.error_.code} ${ri.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),O("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let e,t,i;const s=wt(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,s())},n=function(){s(),this.clearInterval(e),e=this.setInterval(s,250)},a=function(t){s(),this.clearInterval(e)};this.on("mousedown",n),this.on("mousemove",r),this.on("mouseup",a),this.on("mouseleave",a);const o=this.getChild("controlBar");let l;!o||ge||ie||(o.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),o.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",s),this.on("keyup",s);const d=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);const e=this.options_.inactivityTimeout;e<=0||(l=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))};this.setInterval(d,250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),i=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!==typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){const e=this.tech_&&this.tech_;e.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){const e=this.tech_&&this.tech_;e.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){if("boolean"!==typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){const e=this.audioOnlyMode(!1);return e.then(()=>{this.enablePosterModeUI_()})}return Promise.resolve().then(()=>{this.enablePosterModeUI_()})}return Promise.resolve().then(()=>{this.disablePosterModeUI_()})}addTextTrack(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ot(this)&&this.trigger("languagechange"))}languages(){return Y(un.prototype.options_.languages,this.languages_)}toJSON(){const e=Y(this.options_),t=e.tracks;e.tracks=[];for(let i=0;i<t.length;i++){let s=t[i];s=Y(s),s.player=void 0,e.tracks[i]=s}return e}createModal(e,t){t=t||{},t.content=e||"";const i=new hi(this,t);return this.addChild(i),i.on("dispose",()=>{this.removeChild(i)}),i.open(),i}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let i=0;i<on.length;i++){const s=on[i],r=this.breakpoints_[s];if(t<=r){if(e===s)return;e&&this.removeClass(ln[e]),this.addClass(ln[s]),this.breakpoint_=s;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},dn,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(e){if(void 0===e)return this.responsive_;e=Boolean(e);const t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return ln[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!==typeof e)return;const i=this.crossOrigin();this.reset(),this.cache_.media=Y(e);const{artist:s,artwork:r,description:n,poster:a,src:o,textTracks:l,title:d}=this.cache_.media;!r&&a&&(this.cache_.media.artwork=[{src:a,type:as(a)}]),i&&this.crossOrigin(i),o&&this.src(o),a&&this.poster(a),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:d,description:n||s||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src})),s={src:t,textTracks:i};return e&&(s.poster=e,s.artwork=[{src:s.poster,type:as(s.poster)}]),s}return Y(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},i=De(e),s=i["data-setup"];if(Ie(e,"vjs-fill")&&(i.fill=!0),Ie(e,"vjs-fluid")&&(i.fluid=!0),null!==s){const[e,t]=u()(s||"{}");e&&q.error(e),Object.assign(i,t)}if(Object.assign(t,i),e.hasChildNodes()){const i=e.childNodes;for(let e=0,s=i.length;e<s;e++){const s=i[e],r=s.nodeName.toLowerCase();"source"===r?t.sources.push(De(s)):"track"===r&&t.tracks.push(De(s))}}return t}debug(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"===typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}ji.names.forEach((function(e){const t=ji[e];un.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),un.prototype.crossorigin=un.prototype.crossOrigin,un.players={};const cn=r.a.navigator;un.prototype.options_={techOrder:qi.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:cn&&(cn.languages&&cn.languages[0]||cn.userLanguage||cn.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,enableSmoothSeeking:!1},nn.forEach((function(e){un.prototype[`handleTech${Ht(e)}_`]=function(){return this.trigger(e)}})),Gt.registerComponent("Player",un);const hn="plugin",pn="activePlugins_",fn={},mn=e=>fn.hasOwnProperty(e),gn=e=>mn(e)?fn[e]:void 0,yn=(e,t)=>{e[pn]=e[pn]||{},e[pn][t]=!0},vn=(e,t,i)=>{const s=(i?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},bn=function(e,t){const i=function(){vn(this,{name:e,plugin:t,instance:null},!0);const i=t.apply(this,arguments);return yn(this,e),vn(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach((function(e){i[e]=t[e]})),i},_n=(e,t)=>(t.prototype.name=e,function(...i){vn(this,{name:e,plugin:t,instance:null},!0);const s=new t(...[this,...i]);return this[e]=()=>s,vn(this,s.getEventHash()),s});class Tn{constructor(e){if(this.constructor===Tn)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),jt(this),delete this.trigger,qt(this,this.constructor.defaultState),yn(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return vt(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[pn][e]=!1,this.player=this.state=null,t[e]=_n(e,fn[e])}static isBasic(e){const t="string"===typeof e?gn(e):e;return"function"===typeof t&&!Tn.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!==typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(mn(e))q.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(un.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!==typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return fn[e]=t,e!==hn&&(Tn.isBasic(t)?un.prototype[e]=bn(e,t):un.prototype[e]=_n(e,t)),t}static deregisterPlugin(e){if(e===hn)throw new Error("Cannot de-register base plugin.");mn(e)&&(delete fn[e],delete un.prototype[e])}static getPlugins(e=Object.keys(fn)){let t;return e.forEach(e=>{const i=gn(e);i&&(t=t||{},t[e]=i)}),t}static getPluginVersion(e){const t=gn(e);return t&&t.VERSION||""}}function Sn(e,t){let i=!1;return function(...s){return i||q.warn(e),i=!0,t.apply(this,s)}}function wn(e,t,i,s){return Sn(`${t} is deprecated and will be removed in ${e}.0; please use ${i} instead.`,s)}Tn.getPlugin=gn,Tn.BASE_PLUGIN_NAME=hn,Tn.registerPlugin(hn,Tn),un.prototype.usingPlugin=function(e){return!!this[pn]&&!0===this[pn][e]},un.prototype.hasPlugin=function(e){return!!mn(e)};const En=e=>0===e.indexOf("#")?e.slice(1):e;function xn(e,t,i){let s=xn.getPlayer(e);if(s)return t&&q.warn(`Player "${e}" is already initialised. Options will not be applied.`),i&&s.ready(i),s;const n="string"===typeof e?Xe("#"+En(e)):e;if(!Se(n))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a="getRootNode"in n&&n.getRootNode()instanceof r.a.ShadowRoot,o=a?n.getRootNode():n.ownerDocument.body;n.ownerDocument.defaultView&&o.contains(n)||q.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(n.parentNode&&n.parentNode.hasAttribute("data-vjs-player")?n.parentNode:n).cloneNode(!0)),O("beforesetup").forEach(e=>{const i=e(n,Y(t));W(i)&&!Array.isArray(i)?t=Y(t,i):q.error("please return an object in beforesetup hooks")});const l=Gt.getComponent("Player");return s=new l(n,t,i),O("setup").forEach(e=>e(s)),s}if(xn.hooks_=P,xn.hooks=O,xn.hook=L,xn.hookOnce=D,xn.removeHook=A,!0!==r.a.VIDEOJS_NO_DYNAMIC_STYLE&&Te()){let e=Xe(".vjs-styles-defaults");if(!e){e=rt("vjs-styles-defaults");const t=Xe("head");t&&t.insertBefore(e,t.firstChild),nt(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}it(1,xn),xn.VERSION=I,xn.options=un.prototype.options_,xn.getPlayers=()=>un.players,xn.getPlayer=e=>{const t=un.players;let i;if("string"===typeof e){const s=En(e),r=t[s];if(r)return r;i=Xe("#"+s)}else i=e;if(Se(i)){const{player:e,playerId:s}=i;if(e||t[s])return e||t[s]}},xn.getAllPlayers=()=>Object.keys(un.players).map(e=>un.players[e]).filter(Boolean),xn.players=un.players,xn.getComponent=Gt.getComponent,xn.registerComponent=(e,t)=>(qi.isTech(t)&&q.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Gt.registerComponent.call(Gt,e,t)),xn.getTech=qi.getTech,xn.registerTech=qi.registerTech,xn.use=Vi,Object.defineProperty(xn,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(xn.middleware,"TERMINATOR",{value:zi,writeable:!1,enumerable:!0}),xn.browser=ve,xn.obj=Q,xn.mergeOptions=wn(9,"videojs.mergeOptions","videojs.obj.merge",Y),xn.defineLazyProperty=wn(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",K),xn.bind=wn(9,"videojs.bind","native Function.prototype.bind",wt),xn.registerPlugin=Tn.registerPlugin,xn.deregisterPlugin=Tn.deregisterPlugin,xn.plugin=(e,t)=>(q.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Tn.registerPlugin(e,t)),xn.getPlugins=Tn.getPlugins,xn.getPlugin=Tn.getPlugin,xn.getPluginVersion=Tn.getPluginVersion,xn.addLanguage=function(e,t){return e=(""+e).toLowerCase(),xn.options.languages=Y(xn.options.languages,{[e]:t}),xn.options.languages[e]},xn.log=q,xn.createLogger=$,xn.time=ii,xn.createTimeRange=wn(9,"videojs.createTimeRange","videojs.time.createTimeRanges",Jt),xn.createTimeRanges=wn(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",Jt),xn.formatTime=wn(9,"videojs.formatTime","videojs.time.formatTime",ti),xn.setFormatTime=wn(9,"videojs.setFormatTime","videojs.time.setFormatTime",Zt),xn.resetFormatTime=wn(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",ei),xn.parseUrl=wn(9,"videojs.parseUrl","videojs.url.parseUrl",Ci),xn.isCrossOrigin=wn(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Pi),xn.EventTarget=It,xn.any=_t,xn.on=gt,xn.one=bt,xn.off=yt,xn.trigger=vt,xn.xhr=h.a,xn.TextTrack=Di,xn.AudioTrack=Mi,xn.VideoTrack=Ni,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{xn[e]=function(){return q.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),Qe[e].apply(null,arguments)}}),xn.computedStyle=wn(9,"videojs.computedStyle","videojs.dom.computedStyle",Je),xn.dom=Qe,xn.fn=Ct,xn.num=Ms,xn.str=Vt,xn.url=Oi;
|
25
25
|
/*! @name videojs-contrib-quality-levels @version 4.0.0 @license Apache-2.0 */
|
26
26
|
class Cn{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get(){return t.enabled_()},set(e){t.enabled_(e)}}),t}}class kn extends xn.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new Cn(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,s=this.length;i<s;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const i=this[t];if(i.id===e)return i}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}kn.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const t in kn.prototype.allowedEvents_)kn.prototype["on"+t]=null;var In="4.0.0";const Pn=function(e,t){const i=e.qualityLevels,s=new kn,r=function(){s.dispose(),e.qualityLevels=i,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>s,e.qualityLevels.VERSION=In,s},On=function(e){return Pn(this,xn.obj.merge({},e))};xn.registerPlugin("qualityLevels",On),On.VERSION=In;
|
27
27
|
/*! @name @videojs/http-streaming @version 3.10.0 @license Apache-2.0 */
|
28
28
|
const Ln=y["a"],An=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,Dn=e=>xn.log.debug?xn.log.debug.bind(xn,"VHS:",e+" >"):function(){};function Mn(...e){const t=xn.obj||xn,i=t.merge||t.mergeOptions;return i.apply(t,e)}function Nn(...e){const t=xn.time||xn,i=t.createTimeRanges||t.createTimeRanges;return i.apply(t,e)}const Rn=1/30,Un=3*Rn,Bn=function(e,t){const i=[];let s;if(e&&e.length)for(s=0;s<e.length;s++)t(e.start(s),e.end(s))&&i.push([e.start(s),e.end(s)]);return Nn(i)},jn=function(e,t){return Bn(e,(function(e,i){return e-Un<=t&&i+Un>=t}))},Fn=function(e,t){return Bn(e,(function(e){return e-Rn>=t}))},qn=function(e){if(e.length<2)return Nn();const t=[];for(let i=1;i<e.length;i++){const s=e.end(i-1),r=e.start(i);t.push([s,r])}return Nn(t)},$n=function(e,t){let i=null,s=null,r=0;const n=[],a=[];if(!e||!e.length||!t||!t.length)return Nn();let o=e.length;while(o--)n.push({time:e.start(o),type:"start"}),n.push({time:e.end(o),type:"end"});o=t.length;while(o--)n.push({time:t.start(o),type:"start"}),n.push({time:t.end(o),type:"end"});for(n.sort((function(e,t){return e.time-t.time})),o=0;o<n.length;o++)"start"===n[o].type?(r++,2===r&&(i=n[o].time)):"end"===n[o].type&&(r--,1===r&&(s=n[o].time)),null!==i&&null!==s&&(a.push([i,s]),i=null,s=null);return Nn(a)},Hn=e=>{const t=[];if(!e||!e.length)return"";for(let i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},zn=function(e,t,i=1){const s=e.length?e.end(e.length-1):0;return(s-t)/i},Vn=e=>{const t=[];for(let i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},Gn=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(let i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1},Wn=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Xn=function(e,t){let i=0;if(!e||!e.length)return i;for(let s=0;s<e.length;s++){const r=e.start(s),n=e.end(s);t>n||(i+=t>r&&t<=n?n-t:n-r)}return i},Yn=(e,t)=>{if(!t.preload)return t.duration;let i=0;return(t.parts||[]).forEach((function(e){i+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(i+=e.partTargetDuration)})),i},Jn=e=>(e.segments||[]).reduce((e,t,i)=>(t.parts?t.parts.forEach((function(s,r){e.push({duration:s.duration,segmentIndex:i,partIndex:r,part:s,segment:t})})):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e),[]),Kn=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Qn=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:i}=e;let s=(i||[]).reduce((e,t)=>e+("PART"===t.type?1:0),0);return s+=t&&t.length?t.length:0,s},Zn=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const i=Kn(t).length>0;return i&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:i&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},ea=function(e,t){let i=0,s=t-e.mediaSequence,r=e.segments[s];if(r){if("undefined"!==typeof r.start)return{result:r.start,precise:!0};if("undefined"!==typeof r.end)return{result:r.end-r.duration,precise:!0}}while(s--){if(r=e.segments[s],"undefined"!==typeof r.end)return{result:i+r.end,precise:!0};if(i+=Yn(e,r),"undefined"!==typeof r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}},ta=function(e,t){let i,s=0,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(i=e.segments[r],"undefined"!==typeof i.start)return{result:i.start-s,precise:!0};if(s+=Yn(e,i),"undefined"!==typeof i.end)return{result:i.end-s,precise:!0}}return{result:-1,precise:!1}},ia=function(e,t,i){if("undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=ea(e,t);if(s.precise)return s.result;const r=ta(e,t);return r.precise?r.result:s.result+i},sa=function(e,t,i){if(!e)return 0;if("number"!==typeof i&&(i=0),"undefined"===typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return r.a.Infinity}return ia(e,t,i)},ra=function({defaultDuration:e,durationList:t,startIndex:i,endIndex:s}){let r=0;if(i>s&&([i,s]=[s,i]),i<0){for(let t=i;t<Math.min(0,s);t++)r+=e;i=0}for(let n=i;n<s;n++)r+=t[n].duration;return r},na=function(e,t,i,s){if(!e||!e.segments)return null;if(e.endList)return sa(e);if(null===t)return null;t=t||0;let r=ia(e,e.mediaSequence+e.segments.length,t);return i&&(s="number"===typeof s?s:Zn(null,e),r-=s),Math.max(0,r)},aa=function(e,t,i){const s=!0,r=t||0;let n=na(e,t,s,i);return null===n?Nn():(n<r&&(n=r),Nn(r,n))},oa=function({playlist:e,currentTime:t,startingSegmentIndex:i,startingPartIndex:s,startTime:r,exactManifestTimings:n}){let a=t-r;const o=Jn(e);let l=0;for(let d=0;d<o.length;d++){const e=o[d];if(i===e.segmentIndex&&("number"!==typeof s||"number"!==typeof e.partIndex||s===e.partIndex)){l=d;break}}if(a<0){if(l>0)for(let t=l-1;t>=0;t--){const i=o[t];if(a+=i.duration,n){if(a<0)continue}else if(a+Rn<=0)continue;return{partIndex:i.partIndex,segmentIndex:i.segmentIndex,startTime:r-ra({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:t})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let i=l;i<0;i++)if(a-=e.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let d=l;d<o.length;d++){const t=o[d];a-=t.duration;const i=t.duration>Rn,s=0===a,u=i&&a+Rn>=0;if(!s&&!u||d===o.length-1){if(n){if(a>0)continue}else if(a-Rn>=0)continue;return{partIndex:t.partIndex,segmentIndex:t.segmentIndex,startTime:r+ra({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:d})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},la=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},da=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ua=function(e){const t=la(e);return!e.disabled&&!t},ca=function(e){return e.disabled},ha=function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},pa=function(e,t){return t.attributes&&t.attributes[e]},fa=function(e,t,i,s=0){if(!pa("BANDWIDTH",i))return NaN;const r=e*i.attributes.BANDWIDTH;return(r-8*s)/t},ma=(e,t)=>{if(1===e.playlists.length)return!0;const i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!ua(e)&&(e.attributes.BANDWIDTH||0)<i).length},ga=(e,t)=>!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri)))),ya=function(e,t){const i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let s=!1;for(const r in i){for(const e in i[r])if(s=t(i[r][e]),s)break;if(s)break}return!!s},va=e=>{if(!e||!e.playlists||!e.playlists.length){const t=ya(e,e=>e.playlists&&e.playlists.length||e.uri);return t}for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t],s=i.attributes&&i.attributes.CODECS;if(s&&s.split(",").every(e=>Object(b["f"])(e)))continue;const r=ya(e,e=>ga(i,e));if(!r)return!1}return!0};var ba={liveEdgeDelay:Zn,duration:sa,seekable:aa,getMediaInfoForTime:oa,isEnabled:ua,isDisabled:ca,isExcluded:la,isIncompatible:da,playlistEnd:na,isAes:ha,hasAttribute:pa,estimateSegmentRequestTime:fa,isLowestEnabledRendition:ma,isAudioOnly:va,playlistMatch:ga,segmentDurationWithParts:Yn};const{log:_a}=xn,Ta=(e,t)=>`${e}-${t}`,Sa=(e,t,i)=>`placeholder-uri-${e}-${t}-${i}`,wa=({onwarn:e,oninfo:t,manifestString:i,customTagParsers:s=[],customTagMappers:r=[],llhls:n})=>{const a=new v["a"];e&&a.on("warn",e),t&&a.on("info",t),s.forEach(e=>a.addParser(e)),r.forEach(e=>a.addTagMapper(e)),a.push(i),a.end();const o=a.manifest;if(n||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){o.hasOwnProperty(e)&&delete o[e]})),o.segments&&o.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!o.targetDuration){let t=10;o.segments&&o.segments.length&&(t=o.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e({message:"manifest has no targetDuration defaulting to "+t}),o.targetDuration=t}const l=Kn(o);if(l.length&&!o.partTargetDuration){const t=l.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e({message:"manifest has no partTargetDuration defaulting to "+t}),_a.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=t}return o},Ea=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(i=>{if(e.mediaGroups[i])for(const s in e.mediaGroups[i])for(const r in e.mediaGroups[i][s]){const n=e.mediaGroups[i][s][r];t(n,i,s,r)}})},xa=({playlist:e,uri:t,id:i})=>{e.id=i,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},Ca=e=>{let t=e.playlists.length;while(t--){const i=e.playlists[t];xa({playlist:i,id:Ta(t,i.uri)}),i.resolvedUri=Ln(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||_a.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},ka=e=>{Ea(e,t=>{t.uri&&(t.resolvedUri=Ln(e.uri,t.uri))})},Ia=(e,t)=>{const i=Ta(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:r.a.location.href,resolvedUri:r.a.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return s.playlists[i]=s.playlists[0],s.playlists[t]=s.playlists[0],s},Pa=(e,t,i=Sa)=>{e.uri=t;for(let r=0;r<e.playlists.length;r++)if(!e.playlists[r].uri){const t="placeholder-uri-"+r;e.playlists[r].uri=t}const s=va(e);Ea(e,(t,r,n,a)=>{if(!t.playlists||!t.playlists.length){if(s&&"AUDIO"===r&&!t.uri)for(let t=0;t<e.playlists.length;t++){const i=e.playlists[t];if(i.attributes&&i.attributes.AUDIO&&i.attributes.AUDIO===n)return}t.playlists=[g()({},t)]}t.playlists.forEach((function(t,s){const o=i(r,n,a,t),l=Ta(s,o);t.uri?t.resolvedUri=t.resolvedUri||Ln(e.uri,t.uri):(t.uri=0===s?o:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))}),Ca(e),ka(e)};class Oa{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,i=t.startDate.getTime();this.trimProcessedDateRanges_(i),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((i,s)=>{if(!this.processedDateRanges_.has(s)&&(i.startTime=i.startDate.getTime()/1e3-this.offset_,i.processDateRange=()=>this.processDateRange(i),t.push(i),i.class))if(e[i.class]){const t=e[i.class].push(i);i.classListIndex=t-1}else e[i.class]=[i],i.classListIndex=0});for(const i of t){const t=e[i.class]||[];i.endDate?i.endTime=i.endDate.getTime()/1e3-this.offset_:i.endOnNext&&t[i.classListIndex+1]?i.endTime=t[i.classListIndex+1].startTime:i.duration?i.endTime=i.startTime+i.duration:i.plannedDuration?i.endTime=i.startTime+i.plannedDuration:i.endTime=i.startTime}return t}trimProcessedDateRanges_(e){const t=new Map(this.processedDateRanges_);t.forEach((t,i)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(i)})}}const{EventTarget:La}=xn,Aa=(e,t)=>{if(t.endList||!t.serverControl)return e;const i={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let s=t.mediaSequence+t.segments.length;if(e){const r=e.parts||[],n=Qn(t)-1;n>-1&&n!==r.length-1&&(i._HLS_part=n),(n>-1||r.length)&&s--}i._HLS_msn=s}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){const t=new r.a.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){i.hasOwnProperty(e)&&t.searchParams.set(e,i[e])})),e=t.toString()}return e},Da=(e,t)=>{if(!e)return t;const i=Mn(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(let s=0;s<t.parts.length;s++)e.parts&&e.parts[s]&&(i.parts[s]=Mn(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},Ma=(e,t,i)=>{const s=e.slice(),r=t.slice();i=i||0;const n=[];let a;for(let o=0;o<r.length;o++){const e=s[o+i],t=r[o];e?(a=e.map||a,n.push(Da(e,t))):(a&&!t.map&&(t.map=a),n.push(t))}return n},Na=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=Ln(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Ln(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Ln(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Ln(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=Ln(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=Ln(t,e.uri))})},Ra=function(e){const t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(let e=0;e<i.preloadHints.length;e++)if("MAP"===i.preloadHints[e].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},Ua=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,Ba=(e,t,i=Ua)=>{const s=Mn(e,{}),r=s.playlists[t.id];if(!r)return null;if(i(r,t))return null;t.segments=Ra(t);const n=Mn(r,t);if(n.preloadSegment&&!t.preloadSegment&&delete n.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}n.segments=Ma(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}n.segments.forEach(e=>{Na(e,n.resolvedUri)});for(let a=0;a<s.playlists.length;a++)s.playlists[a].id===t.id&&(s.playlists[a]=n);return s.playlists[t.id]=n,s.playlists[t.uri]=n,Ea(e,(e,i,s,r)=>{if(e.playlists)for(let a=0;a<e.playlists.length;a++)t.id===e.playlists[a].id&&(e.playlists[a]=n)}),s},ja=(e,t)=>{const i=e.segments||[],s=i[i.length-1],r=s&&s.parts&&s.parts[s.parts.length-1],n=r&&r.duration||s&&s.duration;return t&&n?1e3*n:500*(e.partTargetDuration||e.targetDuration||10)};class Fa extends La{constructor(e,t,i={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=Dn("PlaylistLoader");const{withCredentials:s=!1}=i;this.src=e,this.vhs_=t,this.withCredentials=s,this.addDateRangesToTextTrack_=i.addDateRangesToTextTrack;const r=t.options_;this.customTagParsers=r&&r.customTagParsers||[],this.customTagMappers=r&&r.customTagMappers||[],this.llhls=r&&r.llhls,this.dateRangesStorage_=new Oa,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=Ln(this.main.uri,e.uri);this.llhls&&(t=Aa(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials},(e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})})}playlistRequestError(e,t,i){const{uri:s,id:r}=t;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[r],status:e.status,message:`HLS playlist request error at URL: ${s}.`,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}parseManifest_({url:e,manifestString:t}){return wa({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}haveMetadata({playlistString:e,playlistObject:t,url:i,id:s}){this.request=null,this.state="HAVE_METADATA";const r=t||this.parseManifest_({url:i,manifestString:e});r.lastRequest=Date.now(),xa({playlist:r,uri:i,id:s});const n=Ba(this.main,r);this.targetDuration=r.partTargetDuration||r.targetDuration,this.pendingMedia_=null,n?(this.main=n,this.media_=this.main.playlists[s]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(ja(this.media(),!!n)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),r.a.clearTimeout(this.mediaUpdateTimeout),r.a.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new Oa,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof e){if(!this.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(r.a.clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=r.a.setTimeout(this.media.bind(this,e,!1),t))}const i=this.state,s=!this.media_||e.id!==this.media_.id,n=this.main.playlists[e.id];if(n&&n.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(ja(e,!0)),s){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(t,s)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=An(e.resolvedUri,s),t)return this.playlistRequestError(this.request,e,i);this.haveMetadata({playlistString:s.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===i?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){this.mediaUpdateTimeout&&(r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=r.a.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e)}else this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=r.a.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(this.started=!0,"object"===typeof this.src)return this.src.uri||(this.src.uri=r.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(e,t)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:t.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:t.responseText,code:2},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.src=An(this.src,t);const i=this.parseManifest_({manifestString:t.responseText,url:this.src});this.setupInitialPlaylist(i)})}srcUri(){return"string"===typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,Pa(this.main,this.srcUri()),e.playlists.forEach(e=>{e.segments=Ra(e),e.segments.forEach(t=>{Na(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||r.a.location.href;this.main=Ia(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(e,t){const i=this.main,s=e.ID;let r=i.playlists.length;while(r--){const n=i.playlists[r];if(n.attributes["PATHWAY-ID"]===s){const a=n.resolvedUri,o=n.id;if(t){const t=this.createCloneURI_(n.resolvedUri,e),a=Ta(s,t),o=this.createCloneAttributes_(s,n.attributes),l=this.createClonePlaylist_(n,a,e,o);i.playlists[r]=l,i.playlists[a]=l,i.playlists[t]=l}else i.playlists.splice(r,1);delete i.playlists[o],delete i.playlists[a]}}this.updateOrDeleteCloneMedia(e,t)}updateOrDeleteCloneMedia(e,t){const i=this.main,s=e.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{if(i.mediaGroups[e]&&i.mediaGroups[e][s])for(const t in i.mediaGroups[e])if(t===s){for(const s in i.mediaGroups[e][t]){const r=i.mediaGroups[e][t][s];r.playlists.forEach((e,t)=>{const s=i.playlists[e.id],r=s.id,n=s.resolvedUri;delete i.playlists[r],delete i.playlists[n]})}delete i.mediaGroups[e][t]}}),t&&this.createClonedMediaGroups_(e)}addClonePathway(e,t={}){const i=this.main,s=i.playlists.length,r=this.createCloneURI_(t.resolvedUri,e),n=Ta(e.ID,r),a=this.createCloneAttributes_(e.ID,t.attributes),o=this.createClonePlaylist_(t,n,e,a);i.playlists[s]=o,i.playlists[n]=o,i.playlists[r]=o,this.createClonedMediaGroups_(e)}createClonedMediaGroups_(e){const t=e.ID,i=e["BASE-ID"],s=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{if(s.mediaGroups[r]&&!s.mediaGroups[r][t])for(const n in s.mediaGroups[r])if(n===i){s.mediaGroups[r][t]={};for(const i in s.mediaGroups[r][n]){const a=s.mediaGroups[r][n][i];s.mediaGroups[r][t][i]=g()({},a);const o=s.mediaGroups[r][t][i],l=this.createCloneURI_(a.resolvedUri,e);o.resolvedUri=l,o.uri=l,o.playlists=[],a.playlists.forEach((n,a)=>{const l=s.playlists[n.id],d=Sa(r,t,i),u=Ta(t,d);if(l&&!s.playlists[u]){const t=this.createClonePlaylist_(l,u,e),i=t.resolvedUri;s.playlists[u]=t,s.playlists[i]=t}o.playlists[a]=this.createClonePlaylist_(n,u,e)})}}})}createClonePlaylist_(e,t,i,s){const r=this.createCloneURI_(e.resolvedUri,i),n={resolvedUri:r,uri:r,id:t};return e.segments&&(n.segments=[]),s&&(n.attributes=s),Mn(e,n)}createCloneURI_(e,t){const i=new URL(e);i.hostname=t["URI-REPLACEMENT"].HOST;const s=t["URI-REPLACEMENT"].PARAMS;for(const r of Object.keys(s))i.searchParams.set(r,s[r]);return i.href}createCloneAttributes_(e,t){const i={["PATHWAY-ID"]:e};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(s=>{t[s]&&(i[s]=e)}),i}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes.keyId;s&&t.add(s.toLowerCase())}return t}}}const{xhr:qa}=xn,$a=function(e,t,i,s){const r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===i.statusCode||206===i.statusCode||0===i.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),s(t,e)},Ha=(e,t)=>{if(!e||!e.size)return;let i=t;return e.forEach(e=>{i=e(i)}),i},za=(e,t,i,s)=>{e&&e.size&&e.forEach(e=>{e(t,i,s)})},Va=function(){const e=function e(t,i){t=Mn({timeout:45e3},t);const s=e.beforeRequest||xn.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||xn.Vhs.xhr._requestCallbackSet||new Set,n=e._responseCallbackSet||xn.Vhs.xhr._responseCallbackSet;s&&"function"===typeof s&&(xn.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(s));const a=!0===xn.Vhs.xhr.original?qa:xn.Vhs.xhr,o=Ha(r,t);r.delete(s);const l=a(o||t,(function(e,t){return za(n,l,e,t),$a(l,e,t,i)})),d=l.abort;return l.abort=function(){return l.aborted=!0,d.apply(l,arguments)},l.uri=t.uri,l.requestTime=Date.now(),l};return e.original=!0,e},Ga=function(e){let t;const i=e.offset;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?r.a.BigInt(e.offset)+r.a.BigInt(e.length)-r.a.BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t},Wa=function(e){const t={};return e.byterange&&(t.Range=Ga(e.byterange)),t},Xa=function(e,t){return e.start(t)+"-"+e.end(t)},Ya=function(e,t){const i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},Ja=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Ka=function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];Object(T["e"])(s)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s}),t},Qa=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Za=function(e){return e.resolvedUri},eo=e=>{const t=Array.prototype.slice.call(e),i=16;let s,r,n="";for(let a=0;a<t.length/i;a++)s=t.slice(a*i,a*i+i).map(Ya).join(""),r=t.slice(a*i,a*i+i).map(Ja).join(""),n+=s+" "+r+"\n";return n},to=({bytes:e})=>eo(e),io=e=>{let t,i="";for(t=0;t<e.length;t++)i+=Xa(e,t)+" ";return i};var so=Object.freeze({__proto__:null,createTransferableMessage:Ka,initSegmentId:Qa,segmentKeyId:Za,hexDump:eo,tagDump:to,textRanges:io});const ro=.25,no=(e,t)=>{if(!t.dateTimeObject)return null;const i=t.videoTimingInfo.transmuxerPrependedSeconds,s=t.videoTimingInfo.transmuxedPresentationStart,r=s+i,n=e-r;return new Date(t.dateTimeObject.getTime()+1e3*n)},ao=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,oo=(e,t)=>{let i;try{i=new Date(e)}catch(l){return null}if(!t||!t.segments||0===t.segments.length)return null;let s=t.segments[0];if(i<new Date(s.dateTimeObject))return null;for(let d=0;d<t.segments.length-1;d++){s=t.segments[d];const e=new Date(t.segments[d+1].dateTimeObject);if(i<e)break}const r=t.segments[t.segments.length-1],n=r.dateTimeObject,a=r.videoTimingInfo?ao(r.videoTimingInfo):r.duration+r.duration*ro,o=new Date(n.getTime()+1e3*a);return i>o?null:(i>new Date(n)&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:ba.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})},lo=(e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let i,s=0;for(let n=0;n<t.segments.length;n++)if(i=t.segments[n],s=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:s+i.duration,e<=s)break;const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>s){if(e>s+r.duration*ro)return null;i=r}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},uo=(e,t)=>{let i,s;try{i=new Date(e),s=new Date(t)}catch(a){}const r=i.getTime(),n=s.getTime();return(n-r)/1e3},co=e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++){const i=e.segments[t];if(!i.dateTimeObject)return!1}return!0},ho=({playlist:e,time:t,callback:i})=>{if(!i)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return i({message:"getProgramTime: playlist and time must be provided"});const s=lo(t,e);if(!s)return i({message:"valid programTime was not found"});if("estimate"===s.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});const r={mediaSeconds:t},n=no(t,s.segment);return n&&(r.programDateTime=n.toISOString()),i(null,r)},po=({programTime:e,playlist:t,retryCount:i=2,seekTo:s,pauseAfterSeek:r=!0,tech:n,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof e||!t||!s)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!n.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!co(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=oo(e,t);if(!o)return a({message:e+" was not found in the stream"});const l=o.segment,d=uo(l.dateTimeObject,e);if("estimate"===o.type)return 0===i?a({message:e+" is not buffered yet. Try again"}):(s(o.estimatedStart+d),void n.one("seeked",()=>{po({programTime:e,playlist:t,retryCount:i-1,seekTo:s,pauseAfterSeek:r,tech:n,callback:a})}));const u=l.start+d,c=()=>a(null,n.currentTime());n.one("seeked",c),r&&n.pause(),s(u)},fo=(e,t)=>{if(4===e.readyState)return t()},mo=(e,t,i)=>{let s,r=[],n=!1;const a=function(e,t,s,r){return t.abort(),n=!0,i(e,t,s,r)},o=function(e,t){if(n)return;if(e)return a(e,t,"",r);const i=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=Object(T["d"])(r,Object(T["h"])(i,!0)),s=s||Object(x["a"])(r),r.length<10||s&&r.length<s+2)return fo(t,()=>a(e,t,"",r));const o=Object(C["a"])(r);return"ts"===o&&r.length<188||!o&&r.length<376?fo(t,()=>a(e,t,"",r)):a(null,t,o,r)},l={uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function({total:t,loaded:i}){return $a(e,null,{statusCode:e.status},o)}))}},d=t(l,(function(e,t){return $a(d,e,t,o)}));return d},{EventTarget:go}=xn,yo=function(e,t){if(!Ua(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let i=0;i<e.segments.length;i++){const s=e.segments[i],r=t.segments[i];if(s.uri!==r.uri)return!1;if(!s.byterange&&!r.byterange)continue;const n=s.byterange,a=r.byterange;if(n&&!a||!n&&a)return!1;if(n.offset!==a.offset||n.length!==a.length)return!1}return!0},vo=(e,t,i,s)=>{const r=s.attributes.NAME||i;return`placeholder-uri-${e}-${t}-${r}`},bo=({mainXml:e,srcUrl:t,clientOffset:i,sidxMapping:s,previousManifest:r})=>{const n=Object(S["c"])(e,{manifestUri:t,clientOffset:i,sidxMapping:s,previousManifest:r});return Pa(n,t,vo),n},_o=(e,t)=>{Ea(e,(i,s,r,n)=>{n in t.mediaGroups[s][r]||delete e.mediaGroups[s][r][n]})},To=(e,t,i)=>{let s=!0,r=Mn(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let n=0;n<t.playlists.length;n++){const e=t.playlists[n];if(e.sidx){const t=Object(S["b"])(e.sidx);i&&i[t]&&i[t].sidx&&Object(S["a"])(e,i[t].sidx,e.sidx.resolvedUri)}const a=Ba(r,e,yo);a&&(r=a,s=!1)}return Ea(t,(e,t,i,n)=>{if(e.playlists&&e.playlists.length){const a=e.playlists[0].id,o=Ba(r,e.playlists[0],yo);o&&(r=o,n in r.mediaGroups[t][i]||(r.mediaGroups[t][i][n]=e),r.mediaGroups[t][i][n].playlists[0]=r.playlists[a],s=!1)}}),_o(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r},So=(e,t)=>{const i=Boolean(!e.map&&!t.map),s=i||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length);return s&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},wo=(e,t)=>{const i={};for(const s in e){const r=e[s],n=r.sidx;if(n){const e=Object(S["b"])(n);if(!t[e])break;const s=t[e].sidxInfo;So(s,n)&&(i[e]=t[e])}}return i},Eo=(e,t)=>{const i=wo(e.playlists,t);let s=i;return Ea(e,(e,i,r,n)=>{if(e.playlists&&e.playlists.length){const i=e.playlists;s=Mn(s,wo(i,t))}}),s};class xo extends go{constructor(e,t,i={},s){super(),this.mainPlaylistLoader_=s||this,s||(this.isMain_=!0);const{withCredentials:r=!1}=i;if(this.vhs_=t,this.withCredentials=r,this.addMetadataToTextTrack=i.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=Dn("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!==typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)}addSidxSegments_(e,t,i){const s=e.sidx&&Object(S["b"])(e.sidx);if(!e.sidx||!s||this.mainPlaylistLoader_.sidxMapping_[s])return void(this.mediaRequest_=r.a.setTimeout(()=>i(!1),0));const n=An(e.sidx.resolvedUri),a=(r,n)=>{if(this.requestErrored_(r,n,t))return;const a=this.mainPlaylistLoader_.sidxMapping_;let o;try{o=E()(Object(T["k"])(n.response).subarray(8))}catch(l){return void this.requestErrored_(l,n,t)}return a[s]={sidxInfo:e.sidx,sidx:o},Object(S["a"])(e,o,e.sidx.resolvedUri),i(!0)};this.request=mo(n,this.vhs_.xhr,(t,i,s,r)=>{if(t)return a(t,i);if(!s||"mp4"!==s)return a({status:i.status,message:`Unsupported ${s||"unknown"} container type for sidx segment at URL: ${n}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i);const{offset:o,length:l}=e.sidx.byterange;if(r.length>=l+o)return a(t,{response:r.subarray(o,o+l),status:i.status,uri:i.uri});this.request=this.vhs_.xhr({uri:n,responseType:"arraybuffer",headers:Wa({byterange:e.sidx.byterange})},a)})}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},r.a.clearTimeout(this.minimumUpdatePeriodTimeout_),r.a.clearTimeout(this.mediaRequest_),r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"===typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,i=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(r.a.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){r.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=r.a.setTimeout(()=>this.load(),e)}else this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){this.started=!0,this.isMain_?this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])}):this.mediaRequest_=r.a.setTimeout(()=>this.haveMain_(),0)}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(t,i)=>{if(this.requestErrored_(t,i))return void("HAVE_NOTHING"===this.state&&(this.started=!1));const s=i.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?this.mainLoaded_=Date.parse(i.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=An(this.mainPlaylistLoader_.srcUrl,i),s?(this.handleMain_(),void this.syncClientServerClock_(()=>e(i,s))):e(i,s)})}syncClientServerClock_(e){const t=Object(S["d"])(this.mainPlaylistLoader_.mainXml_);return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Ln(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials},(i,s)=>{if(!this.request)return;if(i)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let r;r="HEAD"===t.method?s.responseHeaders&&s.responseHeaders.date?Date.parse(s.responseHeaders.date):this.mainLoaded_:Date.parse(s.responseText),this.mainPlaylistLoader_.clientOffset_=r-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let t=bo({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=To(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;const i=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return i&&i!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=i),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(t),Boolean(t)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(r.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!==typeof t||t<=0?t<0&&this.logger_(`found invalid minimumUpdatePeriod of ${t}, not setting a timeout`):this.createMUPTimeout_(t)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=r.a.setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=Eo(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,i=!this.media_||this.media_!==t[e];if(i?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=r.a.setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},ja(this.media(),Boolean(i))))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(e){if(e.contentProtection){const t=new Set;for(const i in e.contentProtection){const s=e.contentProtection[i].attributes["cenc:default_KID"];s&&t.add(s.replace(/-/g,"").toLowerCase())}return t}}}var Co={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const ko=e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer},Io=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},Po=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(t){const i=new BlobBuilder;return i.append(e),URL.createObjectURL(i.getBlob())}},Oo=function(e){return function(){const t=Po(e),i=Io(new Worker(t));i.objURL=t;const s=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),s.call(this)},i}},Lo=function(e){return`var browserWorkerPolyFill = ${Io.toString()};\nbrowserWorkerPolyFill(self);\n`+e},Ao=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Do=Lo(Ao((function(){var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},i=function(){this.init=function(){var e={};this.on=function(t,i){e[t]||(e[t]=[]),e[t]=e[t].concat(i)},this.off=function(t,i){var s;return!!e[t]&&(s=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(s,1),s>-1)},this.trigger=function(t){var i,s,r,n;if(i=e[t],i)if(2===arguments.length)for(r=i.length,s=0;s<r;++s)i[s].call(this,arguments[1]);else{for(n=[],s=arguments.length,s=1;s<arguments.length;++s)n.push(arguments[s]);for(r=i.length,s=0;s<r;++s)i[s].apply(this,n)}},this.dispose=function(){e={}}}};i.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},i.prototype.push=function(e){this.trigger("data",e)},i.prototype.flush=function(e){this.trigger("done",e)},i.prototype.partialFlush=function(e){this.trigger("partialdone",e)},i.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},i.prototype.reset=function(e){this.trigger("reset",e)};var s,r,n,a,o,l,d,u,c,h,p,f,m,g,y,v,b,_,T,S,w,E,x,C,k,I,P,O,L,A,D,M,N,R,U,B,j=i,F=Math.pow(2,32),q=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):i.getUint32(0)*F+i.getUint32(4)},$={getUint64:q,MAX_UINT32:F},H=$.MAX_UINT32;(function(){var e;if(x={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(e in x)x.hasOwnProperty(e)&&(x[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),I=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),k=new Uint8Array([0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),O=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),L={video:P,audio:O},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0]),N=new Uint8Array([0,0,0,0,0,0,0,0]),R=N,U=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),B=N,A=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),s=function(e){var t,i,s,r=[],n=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);t=r.length;while(t--)n+=r[t].byteLength;for(i=new Uint8Array(n+8),s=new DataView(i.buffer,i.byteOffset,i.byteLength),s.setUint32(0,i.byteLength),i.set(e,4),t=0,n=8;t<r.length;t++)i.set(r[t],n),n+=r[t].byteLength;return i},r=function(){return s(x.dinf,s(x.dref,M))},n=function(e){return s(x.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},a=function(){return s(x.ftyp,C,k,C,I)},v=function(e){return s(x.hdlr,L[e])},o=function(e){return s(x.mdat,e)},y=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),s(x.mdhd,t)},g=function(e){return s(x.mdia,y(e),v(e.type),d(e))},l=function(e){return s(x.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},d=function(e){return s(x.minf,"video"===e.type?s(x.vmhd,A):s(x.smhd,D),r(),_(e))},u=function(e,t){var i=[],r=t.length;while(r--)i[r]=S(t[r]);return s.apply(null,[x.moof,l(e)].concat(i))},c=function(e){var t=e.length,i=[];while(t--)i[t]=f(e[t]);return s.apply(null,[x.moov,p(4294967295)].concat(i).concat(h(e)))},h=function(e){var t=e.length,i=[];while(t--)i[t]=w(e[t]);return s.apply(null,[x.mvex].concat(i))},p=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return s(x.mvhd,t)},b=function(e){var t,i,r=e.samples||[],n=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,n[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return s(x.sdtp,n)},_=function(e){return s(x.stbl,T(e),s(x.stts,B),s(x.stsc,R),s(x.stsz,U),s(x.stco,N))},function(){var e,t;T=function(i){return s(x.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===i.type?e(i):t(i))},e=function(e){var t,i,r=e.sps||[],n=e.pps||[],a=[],o=[];for(t=0;t<r.length;t++)a.push((65280&r[t].byteLength)>>>8),a.push(255&r[t].byteLength),a=a.concat(Array.prototype.slice.call(r[t]));for(t=0;t<n.length;t++)o.push((65280&n[t].byteLength)>>>8),o.push(255&n[t].byteLength),o=o.concat(Array.prototype.slice.call(n[t]));if(i=[x.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s(x.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],a,[n.length],o))),s(x.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],d=e.sarRatio[1];i.push(s(x.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&d)>>24,(16711680&d)>>16,(65280&d)>>8,255&d])))}return s.apply(null,i)},t=function(e){return s(x.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),n(e))}}(),m=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return s(x.tkhd,t)},S=function(e){var t,i,r,n,a,o,l;return t=s(x.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/H),l=Math.floor(e.baseMediaDecodeTime%H),i=s(x.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),a=92,"audio"===e.type?(r=E(e,a),s(x.traf,t,i,r)):(n=b(e),r=E(e,n.length+a),s(x.traf,t,i,r,n))},f=function(e){return e.duration=e.duration||4294967295,s(x.trak,m(e),g(e))},w=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),s(x.trex,t)},function(){var e,t,i;i=function(e,t){var i=0,s=0,r=0,n=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(s=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(n=8)),[0,0,i|s|r|n,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var r,n,a,o,l,d;for(o=e.samples||[],t+=20+16*o.length,a=i(o,t),n=new Uint8Array(a.length+16*o.length),n.set(a),r=a.length,d=0;d<o.length;d++)l=o[d],n[r++]=(4278190080&l.duration)>>>24,n[r++]=(16711680&l.duration)>>>16,n[r++]=(65280&l.duration)>>>8,n[r++]=255&l.duration,n[r++]=(4278190080&l.size)>>>24,n[r++]=(16711680&l.size)>>>16,n[r++]=(65280&l.size)>>>8,n[r++]=255&l.size,n[r++]=l.flags.isLeading<<2|l.flags.dependsOn,n[r++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,n[r++]=61440&l.flags.degradationPriority,n[r++]=15&l.flags.degradationPriority,n[r++]=(4278190080&l.compositionTimeOffset)>>>24,n[r++]=(16711680&l.compositionTimeOffset)>>>16,n[r++]=(65280&l.compositionTimeOffset)>>>8,n[r++]=255&l.compositionTimeOffset;return s(x.trun,n)},e=function(e,t){var r,n,a,o,l,d;for(o=e.samples||[],t+=20+8*o.length,a=i(o,t),r=new Uint8Array(a.length+8*o.length),r.set(a),n=a.length,d=0;d<o.length;d++)l=o[d],r[n++]=(4278190080&l.duration)>>>24,r[n++]=(16711680&l.duration)>>>16,r[n++]=(65280&l.duration)>>>8,r[n++]=255&l.duration,r[n++]=(4278190080&l.size)>>>24,r[n++]=(16711680&l.size)>>>16,r[n++]=(65280&l.size)>>>8,r[n++]=255&l.size;return s(x.trun,r)},E=function(i,s){return"audio"===i.type?e(i,s):t(i,s)}}();var z,V,G,W,X,Y,J,K,Q={ftyp:a,mdat:o,moof:u,moov:c,initSegment:function(e){var t,i=a(),s=c(e);return t=new Uint8Array(i.byteLength+s.byteLength),t.set(i),t.set(s,i.byteLength),t}},Z=function(e){var t,i,s=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,s.byteLength=0,t=0;t<e.length;t++)i=e[t],"access_unit_delimiter_rbsp"===i.nalUnitType?(s.length&&(s.duration=i.dts-s.dts,r.byteLength+=s.byteLength,r.nalCount+=s.length,r.duration+=s.duration,r.push(s)),s=[i],s.byteLength=i.data.byteLength,s.pts=i.pts,s.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(s.keyFrame=!0),s.duration=i.dts-s.dts,s.byteLength+=i.data.byteLength,s.push(i));return r.length&&(!s.duration||s.duration<=0)&&(s.duration=r[r.length-1].duration),r.byteLength+=s.byteLength,r.nalCount+=s.length,r.duration+=s.duration,r.push(s),r},ee=function(e){var t,i,s=[],r=[];for(s.byteLength=0,s.nalCount=0,s.duration=0,s.pts=e[0].pts,s.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)i=e[t],i.keyFrame?(s.length&&(r.push(s),r.byteLength+=s.byteLength,r.nalCount+=s.nalCount,r.duration+=s.duration),s=[i],s.nalCount=i.length,s.byteLength=i.byteLength,s.pts=i.pts,s.dts=i.dts,s.duration=i.duration):(s.duration+=i.duration,s.nalCount+=i.length,s.byteLength+=i.byteLength,s.push(i));return r.length&&s.duration<=0&&(s.duration=r[r.length-1].duration),r.byteLength+=s.byteLength,r.nalCount+=s.nalCount,r.duration+=s.duration,r.push(s),r},te=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},ie=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},se=function(e,t){var i=ie();return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i},re=function(e,t){var i,s,r,n,a,o=t||0,l=[];for(i=0;i<e.length;i++)for(n=e[i],s=0;s<n.length;s++)a=n[s],r=se(a,o),o+=r.size,l.push(r);return l},ne=function(e){var t,i,s,r,n,a,o=0,l=e.byteLength,d=e.nalCount,u=l+4*d,c=new Uint8Array(u),h=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(n=r[i],s=0;s<n.length;s++)a=n[s],h.setUint32(o,a.data.byteLength),o+=4,c.set(a.data,o),o+=a.data.byteLength;return c},ae=function(e,t){var i,s=t||0,r=[];return i=se(e,s),r.push(i),r},oe=function(e){var t,i,s=0,r=e.byteLength,n=e.length,a=r+4*n,o=new Uint8Array(a),l=new DataView(o.buffer);for(t=0;t<e.length;t++)i=e[t],l.setUint32(s,i.data.byteLength),s+=4,o.set(i.data,s),s+=i.data.byteLength;return o},le={groupNalsIntoFrames:Z,groupFramesIntoGops:ee,extendFirstKeyFrame:te,generateSampleTable:re,concatenateNalData:ne,generateSampleTableForFrame:ae,concatenateNalDataForFrame:oe},de=[33,16,5,32,164,27],ue=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ce=function(e){var t=[];while(e--)t.push(0);return t},he=function(e){return Object.keys(e).reduce((function(t,i){return t[i]=new Uint8Array(e[i].reduce((function(e,t){return e.concat(t)}),[])),t}),{})},pe=function(){if(!z){var e={96e3:[de,[227,64],ce(154),[56]],88200:[de,[231],ce(170),[56]],64e3:[de,[248,192],ce(240),[56]],48e3:[de,[255,192],ce(268),[55,148,128],ce(54),[112]],44100:[de,[255,192],ce(268),[55,163,128],ce(84),[112]],32e3:[de,[255,192],ce(268),[55,234],ce(226),[112]],24e3:[de,[255,192],ce(268),[55,255,128],ce(268),[111,112],ce(126),[224]],16e3:[de,[255,192],ce(268),[55,255,128],ce(268),[111,255],ce(269),[223,108],ce(195),[1,192]],12e3:[ue,ce(268),[3,127,248],ce(268),[6,255,240],ce(268),[13,255,224],ce(268),[27,253,128],ce(259),[56]],11025:[ue,ce(268),[3,127,248],ce(268),[6,255,240],ce(268),[13,255,224],ce(268),[27,255,192],ce(268),[55,175,128],ce(108),[112]],8e3:[ue,ce(268),[3,121,16],ce(47),[7]]};z=he(e)}return z},fe=9e4;V=function(e){return e*fe},G=function(e,t){return e*t},W=function(e){return e/fe},X=function(e,t){return e/t},Y=function(e,t){return V(X(e,t))},J=function(e,t){return G(W(e),t)},K=function(e,t,i){return W(i?e:e-t)};var me={ONE_SECOND_IN_TS:fe,secondsToVideoTs:V,secondsToAudioTs:G,videoTsToSeconds:W,audioTsToSeconds:X,audioTsToVideoTs:Y,videoTsToAudioTs:J,metadataTsToSeconds:K},ge=pe,ye=me,ve=function(e){var t,i,s=0;for(t=0;t<e.length;t++)i=e[t],s+=i.data.byteLength;return s},be=function(e,t,i,s){var r,n,a,o,l=0,d=0,u=0,c=0;if(t.length&&(r=ye.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(ye.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&s&&(d=r-Math.max(i,s),u=Math.floor(d/l),c=u*l),!(u<1||c>ye.ONE_SECOND_IN_TS/2))){for(n=ge()[e.samplerate],n||(n=t[0].data),a=0;a<u;a++)o=t[0],t.splice(0,0,{data:n,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(ye.videoTsToAudioTs(c,e.samplerate)),c}},_e=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},Te=function(e){var t,i,s=[];for(t=0;t<e.length;t++)i=e[t],s.push({size:i.data.byteLength,duration:1024});return s},Se=function(e){var t,i,s=0,r=new Uint8Array(ve(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,s),s+=i.data.byteLength;return r},we={prefixWithSilence:be,trimAdtsFramesByEarliestDts:_e,generateSampleTable:Te,concatenateFrameData:Se},Ee=me.ONE_SECOND_IN_TS,xe=function(e,t){"number"===typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"===typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Ce=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},ke=function(e,t){var i,s,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=r,i=Math.max(0,i),"audio"===e.type&&(s=e.samplerate/Ee,i*=s,i=Math.floor(i)),i},Ie={clearDtsInfo:Ce,calculateTrackBaseMediaDecodeTime:ke,collectDtsInfo:xe},Pe=4,Oe=128,Le=function(e){var t=0,i={payloadType:-1,payloadSize:0},s=0,r=0;while(t<e.byteLength){if(e[t]===Oe)break;while(255===e[t])s+=255,t++;s+=e[t++];while(255===e[t])r+=255,t++;if(r+=e[t++],!i.payload&&s===Pe){var n=String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6]);if("GA94"===n){i.payloadType=s,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,s=0,r=0}return i},Ae=function(e){return 181!==e.payload[0]||49!==(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},De=function(e,t){var i,s,r,n,a=[];if(!(64&t[0]))return a;for(s=31&t[0],i=0;i<s;i++)r=3*i,n={type:3&t[r+2],pts:e},4&t[r+2]&&(n.ccData=t[r+3]<<8|t[r+4],a.push(n));return a},Me=function(e){var t,i,s=e.byteLength,r=[],n=1;while(n<s-2)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;t=s-r.length,i=new Uint8Array(t);var a=0;for(n=0;n<t;a++,n++)a===r[0]&&(a++,r.shift()),i[n]=e[a];return i},Ne={parseSei:Le,parseUserData:Ae,parseCaptionPackets:De,discardEmulationPreventionBytes:Me,USER_DATA_REGISTERED_ITU_T_T35:Pe},Re=j,Ue=Ne,Be=function(e){e=e||{},Be.prototype.init.call(this),this.parse708captions_="boolean"!==typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Je(0,0),new Je(0,1),new Je(1,0),new Je(1,1)],this.parse708captions_&&(this.cc708Stream_=new ze({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Be.prototype=new Re,Be.prototype.push=function(e){var t,i,s;if("sei_rbsp"===e.nalUnitType&&(t=Ue.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Ue.USER_DATA_REGISTERED_ITU_T_T35&&(i=Ue.parseUserData(t),i)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));s=Ue.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(s),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Be.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Be.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Be.prototype.flush=function(){return this.flushStream("flush")},Be.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Be.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Be.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Be.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},Be.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)},Be.prototype.setsTextOrXDSActive=function(e){return 256===(28928&e.ccData)||4138===(30974&e.ccData)||6186===(30974&e.ccData)},Be.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var je={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Fe=function(e){var t=je[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},qe=function(e){return 32<=e&&e<=127||160<=e&&e<=255},$e=function(e){this.windowNum=e,this.reset()};$e.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},$e.prototype.getText=function(){return this.rows.join("\n")},$e.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},$e.prototype.newLine=function(e){this.rows.length>=this.virtualRowCount&&"function"===typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);while(this.rows.length>this.virtualRowCount)this.rows.shift(),this.rowIdx--},$e.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},$e.prototype.addText=function(e){this.rows[this.rowIdx]+=e},$e.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var He=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new $e(-1),this.windows=[],this.stream=i,"string"===typeof t&&this.createTextDecoder(t)};He.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new $e(i),"function"===typeof t&&(this.windows[i].beforeRowOverflow=t)},He.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},He.prototype.createTextDecoder=function(e){if("undefined"===typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var ze=function(e){e=e||{},ze.prototype.init.call(this);var t,i=this,s=e.captionServices||{},r={};Object.keys(s).forEach(e=>{t=s[e],/^SERVICE/.test(e)&&(r[e]=t.encoding)}),this.serviceEncodings=r,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};ze.prototype=new Re,ze.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},ze.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,s=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(s)},ze.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,s=null,r=0,n=t[r++];for(e.seq=n>>6,e.sizeCode=63&n;r<t.length;r++)n=t[r++],i=n>>5,s=31&n,7===i&&s>0&&(n=t[r++],i=n),this.pushServiceBlock(i,r,s),s>0&&(r+=s-1)},ze.prototype.pushServiceBlock=function(e,t,i){var s,r=t,n=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,r));r<t+i&&r<n.length;r++)s=n[r],qe(s)?r=this.handleText(r,a):24===s?r=this.multiByteCharacter(r,a):16===s?r=this.extendedCommands(r,a):128<=s&&s<=135?r=this.setCurrentWindow(r,a):152<=s&&s<=159?r=this.defineWindow(r,a):136===s?r=this.clearWindows(r,a):140===s?r=this.deleteWindows(r,a):137===s?r=this.displayWindows(r,a):138===s?r=this.hideWindows(r,a):139===s?r=this.toggleWindows(r,a):151===s?r=this.setWindowAttributes(r,a):144===s?r=this.setPenAttributes(r,a):145===s?r=this.setPenColor(r,a):146===s?r=this.setPenLocation(r,a):143===s?a=this.reset(r,a):8===s?a.currentWindow.backspace():12===s?a.currentWindow.clearText():13===s?a.currentWindow.pendingNewLine=!0:14===s?a.currentWindow.clearText():141===s&&r++},ze.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data,s=i[++e];return qe(s)&&(e=this.handleText(e,t,{isExtended:!0})),e},ze.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},ze.prototype.initService=function(e,t){var i,s="SERVICE"+e,r=this;return s in this.serviceEncodings&&(i=this.serviceEncodings[s]),this.services[e]=new He(e,i,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},ze.prototype.handleText=function(e,t,i){var s,r,n=i&&i.isExtended,a=i&&i.isMultiByte,o=this.current708Packet.data,l=n?4096:0,d=o[e],u=o[e+1],c=t.currentWindow;function h(e){return e.map(e=>("0"+(255&e).toString(16)).slice(-2)).join("")}if(a?(r=[d,u],e++):r=[d],t.textDecoder_&&!n)s=t.textDecoder_.decode(new Uint8Array(r));else if(a){const e=h(r);s=String.fromCharCode(parseInt(e,16))}else s=Fe(l|d);return c.pendingNewLine&&!c.isEmpty()&&c.newLine(this.getPts(e)),c.pendingNewLine=!1,c.addText(s),e},ze.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,s=i[e+1],r=i[e+2];return qe(s)&&qe(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},ze.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data,s=i[e],r=7&s;return t.setCurrentWindow(r),e},ze.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,s=i[e],r=7&s;t.setCurrentWindow(r);var n=t.currentWindow;return s=i[++e],n.visible=(32&s)>>5,n.rowLock=(16&s)>>4,n.columnLock=(8&s)>>3,n.priority=7&s,s=i[++e],n.relativePositioning=(128&s)>>7,n.anchorVertical=127&s,s=i[++e],n.anchorHorizontal=s,s=i[++e],n.anchorPoint=(240&s)>>4,n.rowCount=15&s,s=i[++e],n.columnCount=63&s,s=i[++e],n.windowStyle=(56&s)>>3,n.penStyle=7&s,n.virtualRowCount=n.rowCount+1,e},ze.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.winAttr;return s=i[++e],r.fillOpacity=(192&s)>>6,r.fillRed=(48&s)>>4,r.fillGreen=(12&s)>>2,r.fillBlue=3&s,s=i[++e],r.borderType=(192&s)>>6,r.borderRed=(48&s)>>4,r.borderGreen=(12&s)>>2,r.borderBlue=3&s,s=i[++e],r.borderType+=(128&s)>>5,r.wordWrap=(64&s)>>6,r.printDirection=(48&s)>>4,r.scrollDirection=(12&s)>>2,r.justify=3&s,s=i[++e],r.effectSpeed=(240&s)>>4,r.effectDirection=(12&s)>>2,r.displayEffect=3&s,e},ze.prototype.flushDisplayed=function(e,t){for(var i=[],s=0;s<8;s++)t.windows[s].visible&&!t.windows[s].isEmpty()&&i.push(t.windows[s].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},ze.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},ze.prototype.displayWindows=function(e,t){var i=this.current708Packet.data,s=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var n=0;n<8;n++)s&1<<n&&(t.windows[n].visible=1);return e},ze.prototype.hideWindows=function(e,t){var i=this.current708Packet.data,s=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var n=0;n<8;n++)s&1<<n&&(t.windows[n].visible=0);return e},ze.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data,s=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var n=0;n<8;n++)s&1<<n&&(t.windows[n].visible^=1);return e},ze.prototype.clearWindows=function(e,t){var i=this.current708Packet.data,s=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var n=0;n<8;n++)s&1<<n&&t.windows[n].clearText();return e},ze.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data,s=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var n=0;n<8;n++)s&1<<n&&t.windows[n].reset();return e},ze.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penAttr;return s=i[++e],r.textTag=(240&s)>>4,r.offset=(12&s)>>2,r.penSize=3&s,s=i[++e],r.italics=(128&s)>>7,r.underline=(64&s)>>6,r.edgeType=(56&s)>>3,r.fontStyle=7&s,e},ze.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penColor;return s=i[++e],r.fgOpacity=(192&s)>>6,r.fgRed=(48&s)>>4,r.fgGreen=(12&s)>>2,r.fgBlue=3&s,s=i[++e],r.bgOpacity=(192&s)>>6,r.bgRed=(48&s)>>4,r.bgGreen=(12&s)>>2,r.bgBlue=3&s,s=i[++e],r.edgeRed=(48&s)>>4,r.edgeGreen=(12&s)>>2,r.edgeBlue=3&s,e},ze.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,s=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,s=i[++e],r.row=15&s,s=i[++e],r.column=63&s,e},ze.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};var Ve={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ge=function(e){return null===e?"":(e=Ve[e]||e,String.fromCharCode(e))},We=14,Xe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ye=function(){var e=[],t=We+1;while(t--)e.push({text:"",indent:0,offset:0});return e},Je=function(e,t){Je.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,s,r,n;if(t=32639&e.ccData,t!==this.lastControlCode_){if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),s=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),i=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=i,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ye();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ye();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ye()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(s,r))s=(3&s)<<8,n=Ge(s|r),this[this.mode_](e.pts,n),this.column_++;else if(this.isExtCharacter(s,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),s=(3&s)<<8,n=Ge(s|r),this[this.mode_](e.pts,n),this.column_++;else if(this.isMidRowCode(s,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&r)&&this.addFormatting(e.pts,["i"]),1===(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(s,r)){const e=3&r;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(s,r)){var a=Xe.indexOf(7968&t);if("rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(r)&&14===(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(s)&&(0===r&&(r=null),n=Ge(s),n+=Ge(r),this[this.mode_](e.pts,n),this.column_+=n.length)}else this.lastControlCode_=null}};Je.prototype=new Re,Je.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},i=[];this.displayed_.forEach((e,s)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(r){t(s)}e.text.length&&i.push({text:e.text,line:s+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else void 0!==e&&null!==e||t(s)}),i.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:i,stream:this.name_})},Je.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ye(),this.nonDisplayed_=Ye(),this.lastControlCode_=null,this.column_=0,this.row_=We,this.rollUpRows_=2,this.formatting_=[]},Je.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Je.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Je.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Je.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Je.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Je.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Je.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Je.prototype.isNormalChar=function(e){return e>=32&&e<=127},Je.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=We,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ye(),this.displayed_=Ye()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Je.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var i=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,i)},Je.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},Je.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_].text;i+=t,this.nonDisplayed_[this.row_].text=i},Je.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i},Je.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<We+1;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},Je.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_].text;i+=t,this.displayed_[this.row_].text=i};var Ke={CaptionStream:Be,Cea608Stream:Je,Cea708Stream:ze},Qe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ze=j,et=8589934592,tt=4294967296,it="shared",st=function(e,t){var i=1;e>t&&(i=-1);while(Math.abs(t-e)>tt)e+=i*et;return e},rt=function(e){var t,i;rt.prototype.init.call(this),this.type_=e||it,this.push=function(e){"metadata"!==e.type?this.type_!==it&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=st(e.dts,i),e.pts=st(e.pts,i),t=e.dts,this.trigger("data",e)):this.trigger("data",e)},this.flush=function(){i=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};rt.prototype=new Ze;var nt,at={TimestampRolloverStream:rt,handleRollover:st},ot=(e,t,i)=>{if(!e)return-1;for(var s=i;s<e.length;s++)if(e[s]===t)return s;return-1},lt={typedArrayIndexOf:ot},dt=lt.typedArrayIndexOf,ut={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},ct=function(e,t,i){var s,r="";for(s=t;s<i;s++)r+="%"+("00"+e[s].toString(16)).slice(-2);return r},ht=function(e,t,i){return decodeURIComponent(ct(e,t,i))},pt=function(e,t,i){return unescape(ct(e,t,i))},ft=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},mt={APIC:function(e){var t,i,s=1,r="--\x3e";e.data[0]===ut.Utf8&&(t=dt(e.data,0,s),t<0||(e.mimeType=pt(e.data,s,t),s=t+1,e.pictureType=e.data[s],s++,i=dt(e.data,0,s),i<0||(e.description=ht(e.data,s,i),s=i+1,e.mimeType===r?e.url=pt(e.data,s,e.data.length):e.pictureData=e.data.subarray(s,e.data.length))))},"T*":function(e){e.data[0]===ut.Utf8&&(e.value=ht(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===ut.Utf8&&(t=dt(e.data,0,1),-1!==t&&(e.description=ht(e.data,1,t),e.value=ht(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value))},"W*":function(e){e.url=pt(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===ut.Utf8&&(t=dt(e.data,0,1),-1!==t&&(e.description=ht(e.data,1,t),e.url=pt(e.data,t+1,e.data.length).replace(/\0.*$/,"")))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=pt(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},gt=function(e){var t,i,s=10,r=0,n=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){r=ft(e.subarray(6,10)),r+=10;var a=64&e[5];a&&(s+=4,s+=ft(e.subarray(10,14)),r-=ft(e.subarray(16,20)));do{if(t=ft(e.subarray(s+4,s+8)),t<1)break;i=String.fromCharCode(e[s],e[s+1],e[s+2],e[s+3]);var o={id:i,data:e.subarray(s+10,s+t+10)};o.key=o.id,mt[o.id]?mt[o.id](o):"T"===o.id[0]?mt["T*"](o):"W"===o.id[0]&&mt["W*"](o),n.push(o),s+=10,s+=t}while(s<r);return n}},yt={parseId3Frames:gt,parseSyncSafeInteger:ft,frameParsers:mt},vt=j,bt=Qe,_t=yt;nt=function(e){var t,i={descriptor:e&&e.descriptor},s=0,r=[],n=0;if(nt.prototype.init.call(this),this.dispatchType=bt.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,a,o,l,d;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(n=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),n+=e.data.byteLength,1===r.length&&(s=_t.parseSyncSafeInteger(e.data.subarray(6,10)),s+=10),!(n<s)){for(t={data:new Uint8Array(s),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<s;)t.data.set(r[0].data.subarray(0,s-l),l),l+=r[0].data.byteLength,n-=r[0].data.byteLength,r.shift();i=10,64&t.data[5]&&(i+=4,i+=_t.parseSyncSafeInteger(t.data.subarray(10,14)),s-=_t.parseSyncSafeInteger(t.data.subarray(16,20)));do{if(a=_t.parseSyncSafeInteger(t.data.subarray(i+4,i+8)),a<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(d=String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),o={id:d,data:t.data.subarray(i+10,i+a+10)},o.key=o.id,_t.frameParsers[o.id]?_t.frameParsers[o.id](o):"T"===o.id[0]?_t.frameParsers["T*"](o):"W"===o.id[0]&&_t.frameParsers["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var u=o.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],o.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),i+=10,i+=a}while(i<s);this.trigger("data",t)}}},nt.prototype=new vt;var Tt,St,wt,Et=nt,xt=j,Ct=Ke,kt=Qe,It=at.TimestampRolloverStream,Pt=188,Ot=71;Tt=function(){var e=new Uint8Array(Pt),t=0;Tt.prototype.init.call(this),this.push=function(i){var s,r=0,n=Pt;t?(s=new Uint8Array(i.byteLength+t),s.set(e.subarray(0,t)),s.set(i,t),t=0):s=i;while(n<s.byteLength)s[r]!==Ot||s[n]!==Ot?(r++,n++):(this.trigger("data",s.subarray(r,n)),r+=Pt,n+=Pt);r<s.byteLength&&(e.set(s.subarray(r),0),t=s.byteLength-r)},this.flush=function(){t===Pt&&e[0]===Ot&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},Tt.prototype=new xt,St=function(){var e,t,i,s;St.prototype.init.call(this),s=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,s){var r=0;s.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===s.type?t(e.subarray(r),s):i(e.subarray(r),s)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},i=function(e,t){var i,r,n,a;if(1&e[5]){s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=(15&e[1])<<8|e[2],r=3+i-4,n=(15&e[10])<<8|e[11],a=12+n;while(a<r){var o=e[a],l=(31&e[a+1])<<8|e[a+2];o===kt.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=l:o===kt.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=l:o===kt.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][l]=o),a+=5+((15&e[a+3])<<8|e[a+4])}t.programMapTable=s.programMapTable}},this.push=function(t){var i={},s=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(s+=t[s]+1),0===i.pid)i.type="pat",e(t.subarray(s),i),this.trigger("data",i);else if(i.pid===this.pmtPid){i.type="pmt",e(t.subarray(s),i),this.trigger("data",i);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,s,i]):this.processPes_(t,s,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=kt.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=kt.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},St.prototype=new xt,St.STREAM_TYPES={h264:27,adts:15},wt=function(){var e,t=this,i=!1,s={data:[],size:0},r={data:[],size:0},n={data:[],size:0},a=function(e,t){var i;const s=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===s&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),i=e[7],192&i&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&i&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},o=function(e,i,s){var r,n=new Uint8Array(e.size),o={type:i},l=0,d=0,u=!1;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,l=0;l<e.data.length;l++)r=e.data[l],n.set(r.data,d),d+=r.data.byteLength;a(n,o),u="video"===i||o.packetLength<=e.size,(s||u)&&(e.size=0,e.data.length=0),u&&t.trigger("data",o)}};wt.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case kt.H264_STREAM_TYPE:e=s,t="video";break;case kt.ADTS_STREAM_TYPE:e=r,t="audio";break;case kt.METADATA_STREAM_TYPE:e=n,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var s={type:"metadata",tracks:[]};e=a.programMapTable,null!==e.video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",s)}})[a.type]()},this.reset=function(){s.size=0,s.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(s,"video"),o(r,"audio"),o(n,"timed-metadata")},this.flush=function(){if(!i&&e){var s={type:"metadata",tracks:[]};null!==e.video&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&s.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",s)}i=!1,this.flushStreams_(),this.trigger("done")}},wt.prototype=new xt;var Lt={PAT_PID:0,MP2T_PACKET_LENGTH:Pt,TransportPacketStream:Tt,TransportParseStream:St,ElementaryStream:wt,TimestampRolloverStream:It,CaptionStream:Ct.CaptionStream,Cea608Stream:Ct.Cea608Stream,Cea708Stream:Ct.Cea708Stream,MetadataStream:Et};for(var At in kt)kt.hasOwnProperty(At)&&(Lt[At]=kt[At]);var Dt,Mt=Lt,Nt=j,Rt=me.ONE_SECOND_IN_TS,Ut=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];Dt=function(e){var t,i=0;Dt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts skiping bytes ${e} to ${t} in frame ${i} outside syncword`})},this.push=function(s){var r,n,a,o,l,d=0;if(e||(i=0),"audio"===s.type){var u;t&&t.length?(a=t,t=new Uint8Array(a.byteLength+s.data.byteLength),t.set(a),t.set(s.data,a.byteLength)):t=s.data;while(d+7<t.length)if(255===t[d]&&240===(246&t[d+1])){if("number"===typeof u&&(this.skipWarn_(u,d),u=null),n=2*(1&~t[d+1]),r=(3&t[d+3])<<11|t[d+4]<<3|(224&t[d+5])>>5,o=1024*(1+(3&t[d+6])),l=o*Rt/Ut[(60&t[d+2])>>>2],t.byteLength-d<r)break;this.trigger("data",{pts:s.pts+i*l,dts:s.dts+i*l,sampleCount:o,audioobjecttype:1+(t[d+2]>>>6&3),channelcount:(1&t[d+2])<<2|(192&t[d+3])>>>6,samplerate:Ut[(60&t[d+2])>>>2],samplingfrequencyindex:(60&t[d+2])>>>2,samplesize:16,data:t.subarray(d+7+n,d+r)}),i++,d+=r}else"number"!==typeof u&&(u=d),d++;"number"===typeof u&&(this.skipWarn_(u,d),u=null),t=t.subarray(d)}},this.flush=function(){i=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},Dt.prototype=new Nt;var Bt,jt=Dt;Bt=function(e){var t=e.byteLength,i=0,s=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+s},this.loadWord=function(){var r=e.byteLength-t,n=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");n.set(e.subarray(r,r+a)),i=new DataView(n.buffer).getUint32(0),s=8*a,t-=a},this.skipBits=function(e){var r;s>e?(i<<=e,s-=e):(e-=s,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),i<<=e,s-=e)},this.readBits=function(e){var r=Math.min(s,e),n=i>>>32-r;return s-=r,s>0?i<<=r:t>0&&this.loadWord(),r=e-r,r>0?n<<r|this.readBits(r):n},this.skipLeadingZeros=function(){var e;for(e=0;e<s;++e)if(0!==(i&2147483648>>>e))return i<<=e,s-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var Ft,qt,$t,Ht=Bt,zt=j,Vt=Ht;qt=function(){var e,t,i=0;qt.prototype.init.call(this),this.push=function(s){var r;t?(r=new Uint8Array(t.byteLength+s.data.byteLength),r.set(t),r.set(s.data,t.byteLength),t=r):t=s.data;for(var n=t.byteLength;i<n-3;i++)if(1===t[i+2]){e=i+5;break}while(e<n)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}i+3!==e-2&&this.trigger("data",t.subarray(i+3,e-2));do{e++}while(1!==t[e]&&e<n);i=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(i+3,e-2)),i=e-2,e+=3;break;default:e+=3;break}t=t.subarray(i),e-=i,i=0},this.reset=function(){t=null,i=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(i+3)),t=null,i=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},qt.prototype=new zt,$t={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Ft=function(){var e,t,i,s,r,n,a,o=new qt;Ft.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,s=e.dts,o.push(e))},o.on("data",(function(a){var o={trackId:t,pts:i,dts:s,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=n(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp";break}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(e,t){var i,s,r=8,n=8;for(i=0;i<e;i++)0!==n&&(s=t.readExpGolomb(),n=(r+s+256)%256),r=0===n?r:n},r=function(e){var t,i,s=e.byteLength,r=[],n=1;while(n<s-2)0===e[n]&&0===e[n+1]&&3===e[n+2]?(r.push(n+2),n+=2):n++;if(0===r.length)return e;t=s-r.length,i=new Uint8Array(t);var a=0;for(n=0;n<t;a++,n++)a===r[0]&&(a++,r.shift()),i[n]=e[a];return i},n=function(e){var t,i,s,r,n,o,l,d,u,c,h,p,f,m=0,g=0,y=0,v=0,b=[1,1];if(t=new Vt(e),i=t.readUnsignedByte(),r=t.readUnsignedByte(),s=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),$t[i]&&(n=t.readUnsignedExpGolomb(),3===n&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==n?8:12,f=0;f<h;f++)t.readBoolean()&&a(f<6?16:64,t);if(t.skipUnsignedExpGolomb(),o=t.readUnsignedExpGolomb(),0===o)t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),f=0;f<l;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),d=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),c=t.readBits(1),0===c&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(p=t.readUnsignedByte(),p){case 1:b=[1,1];break;case 2:b=[12,11];break;case 3:b=[10,11];break;case 4:b=[16,11];break;case 5:b=[40,33];break;case 6:b=[24,11];break;case 7:b=[20,11];break;case 8:b=[32,11];break;case 9:b=[80,33];break;case 10:b=[18,11];break;case 11:b=[15,11];break;case 12:b=[64,33];break;case 13:b=[160,99];break;case 14:b=[4,3];break;case 15:b=[3,2];break;case 16:b=[2,1];break;case 255:b=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}b&&(b[0],b[1])}return{profileIdc:i,levelIdc:s,profileCompatibility:r,width:16*(d+1)-2*m-2*g,height:(2-c)*(u+1)*16-2*y-2*v,sarRatio:b}}},Ft.prototype=new zt;var Gt,Wt={H264Stream:Ft,NalByteStream:qt},Xt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Yt=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],s=e[t+5],r=(16&s)>>4;return i=i>=0?i:0,r?i+20:i+10},Jt=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=Yt(e,t),Jt(e,t))},Kt=function(e){var t=Jt(e,0);return e.length>=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},Qt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Zt=function(e,t,i){var s,r="";for(s=t;s<i;s++)r+="%"+("00"+e[s].toString(16)).slice(-2);return r},ei=function(e,t,i){return unescape(Zt(e,t,i))},ti=function(e,t){var i=(224&e[t+5])>>5,s=e[t+4]<<3,r=6144&e[t+3];return r|s|i},ii=function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},si=function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return Xt[(60&e[t+2])>>>2];t++}return null},ri=function(e){var t,i,s,r;t=10,64&e[5]&&(t+=4,t+=Qt(e.subarray(10,14)));do{if(i=Qt(e.subarray(t+4,t+8)),i<1)return null;if(r=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===r){s=e.subarray(t+10,t+i+10);for(var n=0;n<s.byteLength;n++)if(0===s[n]){var a=ei(s,0,n);if("com.apple.streaming.transportStreamTimestamp"===a){var o=s.subarray(n+1),l=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return l*=4,l+=3&o[7],l}break}}t+=10,t+=i}while(t<e.byteLength);return null},ni={isLikelyAacData:Kt,parseId3TagSize:Yt,parseAdtsSize:ti,parseType:ii,parseSampleRate:si,parseAacTimestamp:ri},ai=j,oi=ni;Gt=function(){var e=new Uint8Array,t=0;Gt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var s,r,n,a,o=0,l=0;e.length?(a=e.length,e=new Uint8Array(i.byteLength+a),e.set(e.subarray(0,a)),e.set(i,a)):e=i;while(e.length-l>=3)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!==(255&e[l])||240!==(240&e[l+1]))l++;else{if(e.length-l<7)break;if(o=oi.parseAdtsSize(e,l),l+o>e.length)break;n={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",n),l+=o}else{if(e.length-l<10)break;if(o=oi.parseId3TagSize(e,l),l+o>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}s=e.length-l,e=s>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Gt.prototype=new ai;var li,di,ui,ci,hi=Gt,pi=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],fi=pi,mi=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],gi=mi,yi=j,vi=Q,bi=le,_i=we,Ti=Ie,Si=Mt,wi=me,Ei=jt,xi=Wt.H264Stream,Ci=hi,ki=ni.isLikelyAacData,Ii=me.ONE_SECOND_IN_TS,Pi=fi,Oi=gi,Li=function(e,t){t.stream=e,this.trigger("log",t)},Ai=function(e,t){for(var i=Object.keys(t),s=0;s<i.length;s++){var r=i[s];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Li.bind(e,r))}},Di=function(e,t){var i;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},Mi=function(e,t,i,s,r,n){var a=i-t,o=s-t,l=r-i;return{start:{dts:e,pts:e+a},end:{dts:e+o,pts:e+l},prependedContentDuration:n,baseMediaDecodeTime:e}};di=function(e,t){var i,s=[],r=0,n=0,a=1/0;t=t||{},i=t.firstSequenceNumber||0,di.prototype.init.call(this),this.push=function(t){Ti.collectDtsInfo(e,t),e&&Pi.forEach((function(i){e[i]=t[i]})),s.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){n=e},this.flush=function(){var o,l,d,u,c,h,p;0!==s.length?(o=_i.trimAdtsFramesByEarliestDts(s,e,r),e.baseMediaDecodeTime=Ti.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=_i.prefixWithSilence(e,o,n,a),e.samples=_i.generateSampleTable(o),d=vi.mdat(_i.concatenateFrameData(o)),s=[],l=vi.moof(i,[e]),u=new Uint8Array(l.byteLength+d.byteLength),i++,u.set(l),u.set(d,l.byteLength),Ti.clearDtsInfo(e),c=Math.ceil(1024*Ii/e.samplerate),o.length&&(h=o.length*c,this.trigger("segmentTimingInfo",Mi(wi.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,p||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Ti.clearDtsInfo(e),s=[],this.trigger("reset")}},di.prototype=new yi,li=function(e,t){var i,s,r,n=[],a=[];t=t||{},i=t.firstSequenceNumber||0,li.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ti.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||s||(s=t.config,e.sps=[t.data],Oi.forEach((function(t){e[t]=s[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),n.push(t)},this.flush=function(){var s,r,o,l,d,u,c,h,p=0;while(n.length){if("access_unit_delimiter_rbsp"===n[0].nalUnitType)break;n.shift()}if(0===n.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(s=bi.groupNalsIntoFrames(n),o=bi.groupFramesIntoGops(s),o[0][0].keyFrame||(r=this.getGopForFusion_(n[0],e),r?(p=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=bi.extendFirstKeyFrame(o)),a.length){var f;if(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o),!f)return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),n=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Ti.clearDtsInfo(e),o=f}Ti.collectDtsInfo(e,o),e.samples=bi.generateSampleTable(o),d=vi.mdat(bi.concatenateNalData(o)),e.baseMediaDecodeTime=Ti.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),c=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",Mi(e.baseMediaDecodeTime,c.dts,c.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),n=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=vi.moof(i,[e]),u=new Uint8Array(l.byteLength+d.byteLength),i++,u.set(l),u.set(d,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),n=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){Ti.clearDtsInfo(e),s=void 0,r=void 0},this.getGopForFusion_=function(t){var i,s,r,n,a,o=45e3,l=1e4,d=1/0;for(a=0;a<this.gopCache_.length;a++)n=this.gopCache_[a],r=n.gop,e.pps&&Di(e.pps[0],n.pps[0])&&e.sps&&Di(e.sps[0],n.sps[0])&&(r.dts<e.timelineStartInfo.dts||(i=t.dts-r.dts-r.duration,i>=-l&&i<=o&&(!s||d>i)&&(s=n,d=i)));return s?s.gop:null},this.alignGopsAtStart_=function(e){var t,i,s,r,n,o,l,d;n=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;while(t<a.length&&i<e.length){if(s=a[t],r=e[i],s.pts===r.pts)break;r.pts>s.pts?t++:(i++,n-=r.byteLength,o-=r.nalCount,l-=r.duration)}return 0===i?e:i===e.length?null:(d=e.slice(i),d.byteLength=n,d.duration=l,d.nalCount=o,d.pts=d[0].pts,d.dts=d[0].dts,d)},this.alignGopsAtEnd_=function(e){var t,i,s,r,n,o,l;t=a.length-1,i=e.length-1,n=null,o=!1;while(t>=0&&i>=0){if(s=a[t],r=e[i],s.pts===r.pts){o=!0;break}s.pts>r.pts?t--:(t===a.length-1&&(n=i),i--)}if(!o&&null===n)return null;if(l=o?i:n,0===l)return e;var d=e.slice(l),u=d.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return d.byteLength=u.byteLength,d.duration=u.duration,d.nalCount=u.nalCount,d.pts=d[0].pts,d.dts=d[0].dts,d},this.alignGopsWith=function(e){a=e}},li.prototype=new yi,ci=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},"undefined"!==typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"===typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,ci.prototype.init.call(this),this.push=function(e){return e.content||e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},ci.prototype=new yi,ci.prototype.flush=function(e){var t,i,s,r,n=0,a={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Oi.forEach((function(e){a.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Pi.forEach((function(e){a.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,s=vi.initSegment(this.pendingTracks),a.initSegment=new Uint8Array(s.byteLength),a.initSegment.set(s),a.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)a.data.set(this.pendingBoxes[r],n),n+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)t=this.pendingCaptions[r],t.startTime=wi.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=wi.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)i=this.pendingMetadata[r],i.cueTime=wi.metadataTsToSeconds(i.pts,o,this.keepOriginalTimestamps),a.metadata.push(i);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),r=0;r<a.captions.length;r++)t=a.captions[r],this.trigger("caption",t);for(r=0;r<a.metadata.length;r++)i=a.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ci.prototype.setRemux=function(e){this.remuxTracks=e},ui=function(e){var t,i,s=this,r=!0;ui.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new Si.MetadataStream,r.aacStream=new Ci,r.audioTimestampRolloverStream=new Si.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Si.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Ei,r.coalesceStream=new ci(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(n){"timed-metadata"!==n.type&&"audio"!==n.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new di(i,e),r.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Ai(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new Si.MetadataStream,r.packetStream=new Si.TransportPacketStream,r.parseStream=new Si.TransportParseStream,r.elementaryStream=new Si.ElementaryStream,r.timestampRolloverStream=new Si.TimestampRolloverStream,r.adtsStream=new Ei,r.h264Stream=new xi,r.captionStream=new Si.CaptionStream(e),r.coalesceStream=new ci(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(n){var a;if("metadata"===n.type){a=n.tracks.length;while(a--)t||"video"!==n.tracks[a].type?i||"audio"!==n.tracks[a].type||(i=n.tracks[a],i.timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(t=n.tracks[a],t.timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime);t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new li(t,e),r.videoSegmentStream.on("log",s.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-s.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new di(i,e),r.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,s.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Ai(this,r)},this.setBaseMediaDecodeTime=function(s){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=s),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,Ti.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Ti.clearDtsInfo(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){i&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var i=this.transmuxPipeline_;e.remux=t,i&&i.coalesceStream&&i.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(i){i.stream=e,t.trigger("log",i)}},this.push=function(e){if(r){var t=ki(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},ui.prototype=new yi;var Ni,Ri={Transmuxer:ui,VideoSegmentStream:li,AudioSegmentStream:di,AUDIO_PROPERTIES:Pi,VIDEO_PROPERTIES:Oi,generateSegmentTimingInfo:Mi},Ui=function(e){return e>>>0},Bi=function(e){return("00"+e.toString(16)).slice(-2)},ji={toUnsigned:Ui,toHexString:Bi},Fi=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3]),t},qi=Fi,$i=ji.toUnsigned,Hi=qi,zi=function(e,t){var i,s,r,n,a,o=[];if(!t.length)return null;for(i=0;i<e.byteLength;)s=$i(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3]),r=Hi(e.subarray(i+4,i+8)),n=s>1?i+s:e.byteLength,r===t[0]&&(1===t.length?o.push(e.subarray(i+8,n)):(a=zi(e.subarray(i+8,n),t.slice(1)),a.length&&(o=o.concat(a)))),i=n;return o},Vi=zi,Gi=ji.toUnsigned,Wi=$.getUint64,Xi=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Wi(e.subarray(4)):t.baseMediaDecodeTime=Gi(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Yi=Xi,Ji=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Ki=Ji,Qi=Ki,Zi=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],n=4&i.flags[2],a=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],d=8&i.flags[1],u=s.getUint32(4),c=8;r&&(i.dataOffset=s.getInt32(c),c+=4),n&&u&&(t={flags:Qi(e.subarray(c,c+4))},c+=4,a&&(t.duration=s.getUint32(c),c+=4),o&&(t.size=s.getUint32(c),c+=4),d&&(1===i.version?t.compositionTimeOffset=s.getInt32(c):t.compositionTimeOffset=s.getUint32(c),c+=4),i.samples.push(t),u--);while(u--)t={},a&&(t.duration=s.getUint32(c),c+=4),o&&(t.size=s.getUint32(c),c+=4),l&&(t.flags=Qi(e.subarray(c,c+4)),c+=4),d&&(1===i.version?t.compositionTimeOffset=s.getInt32(c):t.compositionTimeOffset=s.getUint32(c),c+=4),i.samples.push(t);return i},es=Zi,ts=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),s={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&s.flags[2],n=2&s.flags[2],a=8&s.flags[2],o=16&s.flags[2],l=32&s.flags[2],d=65536&s.flags[0],u=131072&s.flags[0];return t=8,r&&(t+=4,s.baseDataOffset=i.getUint32(12),t+=4),n&&(s.sampleDescriptionIndex=i.getUint32(t),t+=4),a&&(s.defaultSampleDuration=i.getUint32(t),t+=4),o&&(s.defaultSampleSize=i.getUint32(t),t+=4),l&&(s.defaultSampleFlags=i.getUint32(t)),d&&(s.durationIsEmpty=!0),!r&&u&&(s.baseDataOffsetIsMoof=!0),s},is=ts;Ni="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{};var ss,rs,ns,as,os,ls,ds,us=Ni,cs=Ne.discardEmulationPreventionBytes,hs=Ke.CaptionStream,ps=Vi,fs=Yi,ms=es,gs=is,ys=us,vs=function(e,t){for(var i=e,s=0;s<t.length;s++){var r=t[s];if(i<r.size)return r;i-=r.size}return null},bs=function(e,t,i){var s,r,n,a,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=n)if(n=o.getUint32(r),r+=4,!(n<=0))switch(31&e[r]){case 6:var d=e.subarray(r+1,r+1+n),u=vs(r,t);if(s={nalUnitType:"sei_rbsp",size:n,data:d,escapedRBSP:cs(d),trackId:i},u)s.pts=u.pts,s.dts=u.dts,a=u;else{if(!a){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}s.pts=a.pts,s.dts=a.dts}l.seiNals.push(s);break}return l},_s=function(e,t,i){var s=t,r=i.defaultSampleDuration||0,n=i.defaultSampleSize||0,a=i.trackId,o=[];return e.forEach((function(e){var t=ms(e),i=t.samples;i.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=n),e.trackId=a,e.dts=s,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"===typeof s?(e.pts=s+ys.BigInt(e.compositionTimeOffset),s+=ys.BigInt(e.duration)):(e.pts=s+e.compositionTimeOffset,s+=e.duration)})),o=o.concat(i)})),o},Ts=function(e,t){var i=ps(e,["moof","traf"]),s=ps(e,["mdat"]),r={},n=[];return s.forEach((function(e,t){var s=i[t];n.push({mdat:e,traf:s})})),n.forEach((function(e){var i,s,n=e.mdat,a=e.traf,o=ps(a,["tfhd"]),l=gs(o[0]),d=l.trackId,u=ps(a,["tfdt"]),c=u.length>0?fs(u[0]).baseMediaDecodeTime:0,h=ps(a,["trun"]);t===d&&h.length>0&&(i=_s(h,c,l),s=bs(n,i,d),r[d]||(r[d]={seiNals:[],logs:[]}),r[d].seiNals=r[d].seiNals.concat(s.seiNals),r[d].logs=r[d].logs.concat(s.logs))})),r},Ss=function(e,t,i){var s;if(null===t)return null;s=Ts(e,t);var r=s[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:i}},ws=function(){var e,t,i,s,r,n,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new hs,a=!0,n=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/s,e.endTime=e.endPts/s,r.captions.push(e),r.captionStreams[e.stream]=!0})),e.on("log",(function(e){r.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"===typeof t&&0===Object.keys(t).length)&&(i!==e[0]||s!==t[i])},this.parse=function(e,n,a){var o;if(!this.isInitialized())return null;if(!n||!a)return null;if(this.isNewInit(n,a))i=n[0],s=a[i];else if(null===i||!s)return t.push(e),null;while(t.length>0){var l=t.shift();this.parse(l,n,a)}return o=Ss(e,i,s),o&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;n?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],i=null,s=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Es=ws,xs=function(e){var t=0,i=String.fromCharCode(e[t]),s="";while("\0"!==i)s+=i,t++,i=String.fromCharCode(e[t]);return s+=i,s},Cs={uint8ToCString:xs},ks=Cs.uint8ToCString,Is=$.getUint64,Ps=function(e){var t,i,s,r,n,a,o,l,d=4,u=e[0];if(0===u){t=ks(e.subarray(d)),d+=t.length,i=ks(e.subarray(d)),d+=i.length;var c=new DataView(e.buffer);s=c.getUint32(d),d+=4,n=c.getUint32(d),d+=4,a=c.getUint32(d),d+=4,o=c.getUint32(d),d+=4}else if(1===u){c=new DataView(e.buffer);s=c.getUint32(d),d+=4,r=Is(e.subarray(d)),d+=8,a=c.getUint32(d),d+=4,o=c.getUint32(d),d+=4,t=ks(e.subarray(d)),d+=t.length,i=ks(e.subarray(d)),d+=i.length}l=new Uint8Array(e.subarray(d,e.byteLength));var h={scheme_id_uri:t,value:i,timescale:s||1,presentation_time:r,presentation_time_delta:n,event_duration:a,id:o,message_data:l};return Ls(u,h)?h:void 0},Os=function(e,t,i,s){return e||0===e?e/t:s+i/t},Ls=function(e,t){var i="\0"!==t.scheme_id_uri,s=0===e&&As(t.presentation_time_delta)&&i,r=1===e&&As(t.presentation_time)&&i;return!(e>1)&&s||r},As=function(e){return void 0!==e||null!==e},Ds={parseEmsgBox:Ps,scaleTime:Os},Ms=ji.toUnsigned,Ns=ji.toHexString,Rs=Vi,Us=qi,Bs=Ds,js=is,Fs=es,qs=Yi,$s=$.getUint64,Hs=us,zs=yt.parseId3Frames;ss=function(e){var t={},i=Rs(e,["moov","trak"]);return i.reduce((function(e,t){var i,s,r,n,a;return i=Rs(t,["tkhd"])[0],i?(s=i[0],r=0===s?12:20,n=Ms(i[r]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]),a=Rs(t,["mdia","mdhd"])[0],a?(s=a[0],r=0===s?12:20,e[n]=Ms(a[r]<<24|a[r+1]<<16|a[r+2]<<8|a[r+3]),e):null):null}),t)},rs=function(e,t){var i;i=Rs(t,["moof","traf"]);var s=i.reduce((function(t,i){var s,r=Rs(i,["tfhd"])[0],n=Ms(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),a=e[n]||9e4,o=Rs(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);let d;return s=1===o[0]?$s(o.subarray(4,12)):l.getUint32(4),"bigint"===typeof s?d=s/Hs.BigInt(a):"number"!==typeof s||isNaN(s)||(d=s/a),d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),d<t&&(t=d),t}),1/0);return"bigint"===typeof s||isFinite(s)?s:0},ns=function(e,t){var i,s=Rs(t,["moof","traf"]),r=0,n=0;if(s&&s.length){var a=Rs(s[0],["tfhd"])[0],o=Rs(s[0],["trun"])[0],l=Rs(s[0],["tfdt"])[0];if(a){var d=js(a);i=d.trackId}if(l){var u=qs(l);r=u.baseMediaDecodeTime}if(o){var c=Fs(o);c.samples&&c.samples.length&&(n=c.samples[0].compositionTimeOffset||0)}}var h=e[i]||9e4;"bigint"===typeof r&&(n=Hs.BigInt(n),h=Hs.BigInt(h));var p=(r+n)/h;return"bigint"===typeof p&&p<Number.MAX_SAFE_INTEGER&&(p=Number(p)),p},as=function(e){var t=Rs(e,["moov","trak"]),i=[];return t.forEach((function(e){var t=Rs(e,["mdia","hdlr"]),s=Rs(e,["tkhd"]);t.forEach((function(e,t){var r,n,a,o=Us(e.subarray(8,12)),l=s[t];"vide"===o&&(r=new DataView(l.buffer,l.byteOffset,l.byteLength),n=r.getUint8(0),a=0===n?r.getUint32(12):r.getUint32(20),i.push(a))}))})),i},ls=function(e){var t=e[0],i=0===t?12:20;return Ms(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])},os=function(e){var t=Rs(e,["moov","trak"]),i=[];return t.forEach((function(e){var t,s,r={},n=Rs(e,["tkhd"])[0];n&&(t=new DataView(n.buffer,n.byteOffset,n.byteLength),s=t.getUint8(0),r.id=0===s?t.getUint32(12):t.getUint32(20));var a=Rs(e,["mdia","hdlr"])[0];if(a){var o=Us(a.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=Rs(e,["mdia","minf","stbl","stsd"])[0];if(l){var d=l.subarray(8);r.codec=Us(d.subarray(4,8));var u,c,h=Rs(d,[r.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(r.codec)?(u=h.subarray(78),c=Us(u.subarray(4,8)),"avcC"===c&&u.length>11?(r.codec+=".",r.codec+=Ns(u[9]),r.codec+=Ns(u[10]),r.codec+=Ns(u[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(u=h.subarray(28),c=Us(u.subarray(4,8)),"esds"===c&&u.length>20&&0!==u[19]?(r.codec+="."+Ns(u[19]),r.codec+="."+Ns(u[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var p=Rs(e,["mdia","mdhd"])[0];p&&(r.timescale=ls(p)),i.push(r)})),i},ds=function(e,t=0){var i=Rs(e,["emsg"]);return i.map(e=>{var i=Bs.parseEmsgBox(new Uint8Array(e)),s=zs(i.message_data);return{cueTime:Bs.scaleTime(i.presentation_time,i.timescale,i.presentation_time_delta,t),duration:Bs.scaleTime(i.event_duration,i.timescale),frames:s}})};var Vs={findBox:Rs,parseType:Us,timescale:ss,startTime:rs,compositionStartTime:ns,videoTrackIds:as,tracks:os,getTimescaleFromMediaHeader:ls,getEmsgID3:ds},Gs=Qe,Ws=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},Xs=function(e){return!!(64&e[1])},Ys=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Js=function(e,t){var i=Ws(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},Ks=function(e){var t=Xs(e),i=4+Ys(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},Qs=function(e){var t={},i=Xs(e),s=4+Ys(e);if(i&&(s+=e[s]+1),1&e[s+5]){var r,n,a;r=(15&e[s+1])<<8|e[s+2],n=3+r-4,a=(15&e[s+10])<<8|e[s+11];var o=12+a;while(o<n){var l=s+o;t[(31&e[l+1])<<8|e[l+2]]=e[l],o+=5+((15&e[l+3])<<8|e[l+4])}return t}},Zs=function(e,t){var i=Ws(e),s=t[i];switch(s){case Gs.H264_STREAM_TYPE:return"video";case Gs.ADTS_STREAM_TYPE:return"audio";case Gs.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},er=function(e){var t=Xs(e);if(!t)return null;var i=4+Ys(e);if(i>=e.byteLength)return null;var s,r=null;return s=e[i+7],192&s&&(r={},r.pts=(14&e[i+9])<<27|(255&e[i+10])<<20|(254&e[i+11])<<12|(255&e[i+12])<<5|(254&e[i+13])>>>3,r.pts*=4,r.pts+=(6&e[i+13])>>>1,r.dts=r.pts,64&s&&(r.dts=(14&e[i+14])<<27|(255&e[i+15])<<20|(254&e[i+16])<<12|(255&e[i+17])<<5|(254&e[i+18])>>>3,r.dts*=4,r.dts+=(6&e[i+18])>>>1)),r},tr=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},ir=function(e){for(var t,i=4+Ys(e),s=e.subarray(i),r=0,n=0,a=!1;n<s.byteLength-3;n++)if(1===s[n+2]){r=n+5;break}while(r<s.byteLength)switch(s[r]){case 0:if(0!==s[r-1]){r+=2;break}if(0!==s[r-2]){r++;break}n+3!==r-2&&(t=tr(31&s[n+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(a=!0));do{r++}while(1!==s[r]&&r<s.length);n=r-2,r+=3;break;case 1:if(0!==s[r-1]||0!==s[r-2]){r+=3;break}t=tr(31&s[n+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(a=!0),n=r-2,r+=3;break;default:r+=3;break}return s=s.subarray(n),r-=n,n=0,s&&s.byteLength>3&&(t=tr(31&s[n+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(a=!0)),a},sr={parseType:Js,parsePat:Ks,parsePmt:Qs,parsePayloadUnitStartIndicator:Xs,parsePesType:Zs,parsePesTime:er,videoPacketContainsKeyFrame:ir},rr=Qe,nr=at.handleRollover,ar={};ar.ts=sr,ar.aac=ni;var or=me.ONE_SECOND_IN_TS,lr=188,dr=71,ur=function(e,t){var i,s,r=0,n=lr;while(n<e.byteLength)if(e[r]!==dr||e[n]!==dr)r++,n++;else{switch(i=e.subarray(r,n),s=ar.ts.parseType(i,t.pid),s){case"pat":t.pid=ar.ts.parsePat(i);break;case"pmt":var a=ar.ts.parsePmt(i);t.table=t.table||{},Object.keys(a).forEach((function(e){t.table[e]=a[e]}));break}r+=lr,n+=lr}},cr=function(e,t,i){var s,r,n,a,o,l=0,d=lr,u=!1;while(d<=e.byteLength)if(e[l]!==dr||e[d]!==dr&&d!==e.byteLength)l++,d++;else{switch(s=e.subarray(l,d),r=ar.ts.parseType(s,t.pid),r){case"pes":n=ar.ts.parsePesType(s,t.table),a=ar.ts.parsePayloadUnitStartIndicator(s),"audio"===n&&a&&(o=ar.ts.parsePesTime(s),o&&(o.type="audio",i.audio.push(o),u=!0));break}if(u)break;l+=lr,d+=lr}d=e.byteLength,l=d-lr,u=!1;while(l>=0)if(e[l]!==dr||e[d]!==dr&&d!==e.byteLength)l--,d--;else{switch(s=e.subarray(l,d),r=ar.ts.parseType(s,t.pid),r){case"pes":n=ar.ts.parsePesType(s,t.table),a=ar.ts.parsePayloadUnitStartIndicator(s),"audio"===n&&a&&(o=ar.ts.parsePesTime(s),o&&(o.type="audio",i.audio.push(o),u=!0));break}if(u)break;l-=lr,d-=lr}},hr=function(e,t,i){var s,r,n,a,o,l,d,u,c=0,h=lr,p=!1,f={data:[],size:0};while(h<e.byteLength)if(e[c]!==dr||e[h]!==dr)c++,h++;else{switch(s=e.subarray(c,h),r=ar.ts.parseType(s,t.pid),r){case"pes":if(n=ar.ts.parsePesType(s,t.table),a=ar.ts.parsePayloadUnitStartIndicator(s),"video"===n&&(a&&!p&&(o=ar.ts.parsePesTime(s),o&&(o.type="video",i.video.push(o),p=!0)),!i.firstKeyFrame)){if(a&&0!==f.size){l=new Uint8Array(f.size),d=0;while(f.data.length)u=f.data.shift(),l.set(u,d),d+=u.byteLength;if(ar.ts.videoPacketContainsKeyFrame(l)){var m=ar.ts.parsePesTime(l);m?(i.firstKeyFrame=m,i.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(s),f.size+=s.byteLength}break}if(p&&i.firstKeyFrame)break;c+=lr,h+=lr}h=e.byteLength,c=h-lr,p=!1;while(c>=0)if(e[c]!==dr||e[h]!==dr)c--,h--;else{switch(s=e.subarray(c,h),r=ar.ts.parseType(s,t.pid),r){case"pes":n=ar.ts.parsePesType(s,t.table),a=ar.ts.parsePayloadUnitStartIndicator(s),"video"===n&&a&&(o=ar.ts.parsePesTime(s),o&&(o.type="video",i.video.push(o),p=!0));break}if(p)break;c-=lr,h-=lr}},pr=function(e,t){if(e.audio&&e.audio.length){var i=t;("undefined"===typeof i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach((function(e){e.dts=nr(e.dts,i),e.pts=nr(e.pts,i),e.dtsTime=e.dts/or,e.ptsTime=e.pts/or}))}if(e.video&&e.video.length){var s=t;if(("undefined"===typeof s||isNaN(s))&&(s=e.video[0].dts),e.video.forEach((function(e){e.dts=nr(e.dts,s),e.pts=nr(e.pts,s),e.dtsTime=e.dts/or,e.ptsTime=e.pts/or})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=nr(r.dts,s),r.pts=nr(r.pts,s),r.dtsTime=r.dts/or,r.ptsTime=r.pts/or}}},fr=function(e){var t,i=!1,s=0,r=null,n=null,a=0,o=0;while(e.length-o>=3){var l=ar.aac.parseType(e,o);switch(l){case"timed-metadata":if(e.length-o<10){i=!0;break}if(a=ar.aac.parseId3TagSize(e,o),a>e.length){i=!0;break}null===n&&(t=e.subarray(o,o+a),n=ar.aac.parseAacTimestamp(t)),o+=a;break;case"audio":if(e.length-o<7){i=!0;break}if(a=ar.aac.parseAdtsSize(e,o),a>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+a),r=ar.aac.parseSampleRate(t)),s++,o+=a;break;default:o++;break}if(i)return null}if(null===r||null===n)return null;var d=or/r,u={audio:[{type:"audio",dts:n,pts:n},{type:"audio",dts:n+1024*s*d,pts:n+1024*s*d}]};return u},mr=function(e){var t={pid:null,table:null},i={};for(var s in ur(e,t),t.table)if(t.table.hasOwnProperty(s)){var r=t.table[s];switch(r){case rr.H264_STREAM_TYPE:i.video=[],hr(e,t,i),0===i.video.length&&delete i.video;break;case rr.ADTS_STREAM_TYPE:i.audio=[],cr(e,t,i),0===i.audio.length&&delete i.audio;break}}return i},gr=function(e,t){var i,s=ar.aac.isLikelyAacData(e);return i=s?fr(e):mr(e),i&&(i.audio||i.video)?(pr(i,t),i):null},yr={inspect:gr,parseAudioPes_:cr};const vr=function(e,t){t.on("data",(function(t){const i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};const s=t.data;t.data=s.buffer,e.postMessage({action:"data",segment:t,byteOffset:s.byteOffset,byteLength:s.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){const i={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})})),t.on("audioSegmentTimingInfo",(function(t){const i={start:{decode:me.videoTsToSeconds(t.start.dts),presentation:me.videoTsToSeconds(t.start.pts)},end:{decode:me.videoTsToSeconds(t.end.dts),presentation:me.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:me.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=me.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:i})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:me.videoTsToSeconds(t.start),end:me.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))};class br{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Ri.Transmuxer(this.options),vr(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new Es,this.captionParser.init());const t=new Uint8Array(e.data,e.byteOffset,e.byteLength),i=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:i&&i.captions||[],logs:i&&i.logs||[],data:t.buffer},[t.buffer])}probeMp4StartTime({timescales:e,data:t}){const i=Vs.startTime(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=Vs.tracks(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const i=Vs.getEmsgID3(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:i,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const i="number"!==typeof t||isNaN(t)?void 0:t*me.ONE_SECOND_IN_TS,s=yr.inspect(e,i);let r=null;s&&(r={hasVideo:s.video&&2===s.video.length||!1,hasAudio:s.audio&&2===s.audio.length||!1},r.hasVideo&&(r.videoStart=s.video[0].ptsTime),r.hasAudio&&(r.audioStart=s.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(me.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(me.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new br(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new br(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})));var Mo=Oo(Do);const No=(e,t,i)=>{const{type:s,initSegment:r,captions:n,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:d}=e.data.segment;t.buffer.push({captions:n,captionStreams:a,metadata:o});const u=e.data.segment.boxes||{data:e.data.segment.data},c={type:s,data:new Uint8Array(u.data,u.data.byteOffset,u.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};"undefined"!==typeof l&&(c.videoFrameDtsTime=l),"undefined"!==typeof d&&(c.videoFramePtsTime=d),i(c)},Ro=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},Uo=(e,t)=>{t.gopInfo=e.data.gopInfo},Bo=e=>{const{transmuxer:t,bytes:i,audioAppendStart:s,gopsToAlignWith:r,remux:n,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:d,onVideoSegmentTimingInfo:u,onAudioSegmentTimingInfo:c,onId3:h,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:y}=e,v={buffer:[]};let b=y;const _=i=>{t.currentTransmux===e&&("data"===i.data.action&&No(i,v,a),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&Uo(i,v),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&d(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&u(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&h([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&p(i.data.caption),"endedtimeline"===i.data.action&&(b=!1,m()),"log"===i.data.action&&g(i.data.log),"transmuxed"===i.data.type&&(b||(t.onmessage=null,Ro({transmuxedData:v,callback:f}),jo(t))))};if(t.onmessage=_,s&&t.postMessage({action:"setAudioAppendStart",appendStart:s}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!==typeof n&&t.postMessage({action:"setRemux",remux:n}),i.byteLength){const e=i instanceof ArrayBuffer?i:i.buffer,s=i instanceof ArrayBuffer?0:i.byteOffset;t.postMessage({action:"push",data:e,byteOffset:s,byteLength:i.byteLength},[e])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},jo=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"===typeof e.currentTransmux?e.currentTransmux():Bo(e.currentTransmux))},Fo=(e,t)=>{e.postMessage({action:t}),jo(e)},qo=(e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void Fo(t,e);t.transmuxQueue.push(Fo.bind(null,t,e))},$o=e=>{qo("reset",e)},Ho=e=>{qo("endTimeline",e)},zo=e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Bo(e);e.transmuxer.transmuxQueue.push(e)},Vo=e=>{const t=new Mo;t.currentTransmux=null,t.transmuxQueue=[];const i=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)),t.postMessage({action:"init",options:e}),t};var Go={reset:$o,endTimeline:Ho,transmux:zo,createTransmuxer:Vo};const Wo=function(e){const t=e.transmuxer,i=e.endAction||e.action,s=e.callback,r=g()({},e,{endAction:null,transmuxer:null,callback:null}),n=r=>{r.data.action===i&&(t.removeEventListener("message",n),r.data.data&&(r.data.data=new Uint8Array(r.data.data,e.byteOffset||0,e.byteLength||r.data.data.byteLength),e.data&&(e.data=r.data.data)),s(r.data))};if(t.addEventListener("message",n),e.data){const i=e.data instanceof ArrayBuffer;r.byteOffset=i?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const s=[i?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},Xo={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Yo=e=>{e.forEach(e=>{e.abort()})},Jo=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),Ko=e=>{const t=e.target,i=Date.now()-t.requestTime,s={bandwidth:1/0,bytesReceived:0,roundTripTime:i||0};return s.bytesReceived=e.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s},Qo=(e,t)=>t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Xo.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Xo.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Xo.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Xo.FAILURE,xhr:t}:null,Zo=(e,t,i)=>(s,r)=>{const n=r.response,a=Qo(s,r);if(a)return i(a,e);if(16!==n.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Xo.FAILURE,xhr:r},e);const o=new DataView(n),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=l;return i(null,e)},el=(e,t)=>{const i=Object(C["a"])(e.map.bytes);if("mp4"!==i){const s=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:`Found unsupported ${i||"unknown"} container for initialization segment at URL: ${s}`,code:Xo.FAILURE})}Wo({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:i,data:s})=>(e.map.bytes=s,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"===typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null))})},tl=({segment:e,finishProcessingFn:t})=>(i,s)=>{const r=Qo(i,s);if(r)return t(r,e);const n=new Uint8Array(s.response);if(e.map.key)return e.map.encryptedBytes=n,t(null,e);e.map.bytes=n,el(e,(function(i){if(i)return i.xhr=s,i.status=s.status,t(i,e);t(null,e)}))},il=({segment:e,finishProcessingFn:t,responseType:i})=>(s,r)=>{const n=Qo(s,r);if(n)return t(n,e);const a="arraybuffer"!==i&&r.responseText?ko(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=Jo(r),e.key?e.encryptedBytes=new Uint8Array(a):e.bytes=new Uint8Array(a),t(null,e)},sl=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})=>{const p=e.map&&e.map.tracks||{},f=Boolean(p.audio&&p.video);let m=s.bind(null,e,"audio","start");const g=s.bind(null,e,"audio","end");let y=s.bind(null,e,"video","start");const v=s.bind(null,e,"video","end"),b=()=>zo({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:f,onData:t=>{t.type="combined"===t.type?"video":t.type,u(e,t)},onTrackInfo:t=>{i&&(f&&(t.isMuxed=!0),i(e,t))},onAudioTimingInfo:e=>{m&&"undefined"!==typeof e.start&&(m(e.start),m=null),g&&"undefined"!==typeof e.end&&g(e.end)},onVideoTimingInfo:e=>{y&&"undefined"!==typeof e.start&&(y(e.start),y=null),v&&"undefined"!==typeof e.end&&v(e.end)},onVideoSegmentTimingInfo:e=>{r(e)},onAudioSegmentTimingInfo:e=>{n(e)},onId3:(t,i)=>{a(e,t,i)},onCaptions:t=>{o(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{d()},onTransmuxerLog:h,onDone:t=>{c&&(t.type="combined"===t.type?"video":t.type,c(null,e,t))}});Wo({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:s=>{e.bytes=t=s.data;const r=s.result;r&&(i(e,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:f}),i=null),b()}})},rl=({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})=>{let p=new Uint8Array(t);if(Object(C["b"])(p)){e.isFmp4=!0;const{tracks:r}=e.map,n={isFmp4:!0,hasVideo:!!r.video,hasAudio:!!r.audio};r.audio&&r.audio.codec&&"enca"!==r.audio.codec&&(n.audioCodec=r.audio.codec),r.video&&r.video.codec&&"encv"!==r.video.codec&&(n.videoCodec=r.video.codec),r.video&&r.audio&&(n.isMuxed=!0),i(e,n);const l=(t,i)=>{u(e,{data:p,type:n.hasAudio&&!n.isMuxed?"audio":"video"}),i&&i.length&&a(e,i),t&&t.length&&o(e,t),c(null,e,{})};Wo({action:"probeMp4StartTime",timescales:e.map.timescales,data:p,transmuxer:e.transmuxer,callback:({data:i,startTime:a})=>{t=i.buffer,e.bytes=p=i,n.hasAudio&&!n.isMuxed&&s(e,"audio","start",a),n.hasVideo&&s(e,"video","start",a),Wo({action:"probeEmsgID3",data:p,transmuxer:e.transmuxer,offset:a,callback:({emsgData:i,id3Frames:s})=>{t=i.buffer,e.bytes=p=i,r.video&&i.byteLength&&e.transmuxer?Wo({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:p,timescales:e.map.timescales,trackIds:[r.video.id],callback:i=>{t=i.data.buffer,e.bytes=p=i.data,i.logs.forEach((function(e){h(Mn(e,{stream:"mp4CaptionParser"}))})),l(i.captions,s)}}):l(void 0,s)}})}})}else if(e.transmuxer){if("undefined"===typeof e.container&&(e.container=Object(C["a"])(p)),"ts"!==e.container&&"aac"!==e.container)return i(e,{hasAudio:!1,hasVideo:!1}),void c(null,e,{});sl({segment:e,bytes:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})}else c(null,e,{})},nl=function({id:e,key:t,encryptedBytes:i,decryptionWorker:s},r){const n=t=>{if(t.data.source===e){s.removeEventListener("message",n);const e=t.data.decrypted;r(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let a;s.addEventListener("message",n),a=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(Ka({source:e,encrypted:i,key:a,iv:t.iv}),[i.buffer,a.buffer])},al=({decryptionWorker:e,segment:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})=>{nl({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e},e=>{t.bytes=e,rl({segment:t,bytes:t.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})})},ol=({activeXhrs:e,decryptionWorker:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})=>{let p=0,f=!1;return(m,g)=>{if(!f){if(m)return f=!0,Yo(e),c(m,g);if(p+=1,p===e.length){const p=function(){if(g.encryptedBytes)return al({decryptionWorker:t,segment:g,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h});rl({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u,doneFn:c,onTransmuxerLog:h})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return nl({decryptionWorker:t,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},t=>{g.map.bytes=t,el(g,t=>{if(t)return Yo(e),c(t,g);p()})});p()}}}},ll=({loadendState:e,abortFn:t})=>i=>{const s=i.target;s.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},dl=({segment:e,progressFn:t,trackInfoFn:i,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:n,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:d,dataFn:u})=>i=>{const s=i.target;if(!s.aborted)return e.stats=Mn(e.stats,Ko(i)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(i,e)},ul=({xhr:e,xhrOptions:t,decryptionWorker:i,segment:s,abortFn:r,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:d,id3Fn:u,captionsFn:c,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g})=>{const y=[],v=ol({activeXhrs:y,decryptionWorker:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:d,id3Fn:u,captionsFn:c,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g});if(s.key&&!s.key.bytes){const i=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&i.push(s.map.key);const r=Mn(t,{uri:s.key.resolvedUri,responseType:"arraybuffer"}),n=Zo(s,i,v),a=e(r,n);y.push(a)}if(s.map&&!s.map.bytes){const i=s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri);if(i){const i=Mn(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer"}),r=Zo(s,[s.map.key],v),n=e(i,r);y.push(n)}const r=Mn(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:Wa(s.map)}),n=tl({segment:s,finishProcessingFn:v}),a=e(r,n);y.push(a)}const b=Mn(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:Wa(s)}),_=il({segment:s,finishProcessingFn:v,responseType:b.responseType}),T=e(b,_);T.addEventListener("progress",dl({segment:s,progressFn:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:d,id3Fn:u,captionsFn:c,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),y.push(T);const S={};return y.forEach(e=>{e.addEventListener("loadend",ll({loadendState:S,abortFn:r}))}),()=>Yo(y)},cl=Dn("CodecUtils"),hl=function(e){const t=e.attributes||{};if(t.CODECS)return Object(b["h"])(t.CODECS)},pl=(e,t)=>{const i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},fl=(e,t)=>{if(!pl(e,t))return!0;const i=t.attributes||{},s=e.mediaGroups.AUDIO[i.AUDIO];for(const r in s)if(!s[r].uri&&!s[r].playlists)return!0;return!1},ml=function(e){const t={};return e.forEach(({mediaType:e,type:i,details:s})=>{t[e]=t[e]||[],t[e].push(Object(b["i"])(`${i}${s}`))}),Object.keys(t).forEach((function(e){if(t[e].length>1)return cl(`multiple ${e} codecs found as attributes: ${t[e].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),void(t[e]=null);t[e]=t[e][0]})),t},gl=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},yl=function(e,t){const i=t.attributes||{},s=ml(hl(t)||[]);if(pl(e,t)&&!s.audio&&!fl(e,t)){const t=ml(Object(b["d"])(e,i.AUDIO)||[]);t.audio&&(s.audio=t.audio)}return s},vl=Dn("PlaylistSelector"),bl=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},_l=function(e,t){if(!e)return"";const i=r.a.getComputedStyle(e);return i?i[t]:""},Tl=function(e,t){const i=e.slice();e.sort((function(e,s){const r=t(e,s);return 0===r?i.indexOf(e)-i.indexOf(s):r}))},Sl=function(e,t){let i,s;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||r.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||r.a.Number.MAX_VALUE,i-s},wl=function(e,t){let i,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||r.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||r.a.Number.MAX_VALUE,i===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-s};let El=function(e,t,i,s,n,a){if(!e)return;const o={bandwidth:t,width:i,height:s,limitRenditionByPlayerDimensions:n};let l=e.playlists;ba.isAudioOnly(e)&&(l=a.getAudioTrackPlaylists_(),o.audioOnly=!0);let d=l.map(e=>{let t;const i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,s=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||r.a.Number.MAX_VALUE,{bandwidth:t,width:i,height:s,playlist:e}});Tl(d,(e,t)=>e.bandwidth-t.bandwidth),d=d.filter(e=>!ba.isIncompatible(e.playlist));let u=d.filter(e=>ba.isEnabled(e.playlist));u.length||(u=d.filter(e=>!ba.isDisabled(e.playlist)));const c=u.filter(e=>e.bandwidth*Co.BANDWIDTH_VARIANCE<t);let h=c[c.length-1];const p=c.filter(e=>e.bandwidth===h.bandwidth)[0];if(!1===n){const e=p||u[0]||d[0];if(e&&e.playlist){let t="sortedPlaylistReps";return p&&(t="bandwidthBestRep"),u[0]&&(t="enabledPlaylistReps"),vl(`choosing ${bl(e)} using ${t} with options`,o),e.playlist}return vl("could not choose a playlist with options",o),null}const f=c.filter(e=>e.width&&e.height);Tl(f,(e,t)=>e.width-t.width);const m=f.filter(e=>e.width===i&&e.height===s);h=m[m.length-1];const g=m.filter(e=>e.bandwidth===h.bandwidth)[0];let y,v,b,_;if(g||(y=f.filter(e=>e.width>i||e.height>s),v=y.filter(e=>e.width===y[0].width&&e.height===y[0].height),h=v[v.length-1],b=v.filter(e=>e.bandwidth===h.bandwidth)[0]),a.leastPixelDiffSelector){const e=f.map(e=>(e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-s),e));Tl(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),_=e[0]}const T=_||b||g||p||u[0]||d[0];if(T&&T.playlist){let e="sortedPlaylistReps";return _?e="leastPixelDiffRep":b?e="resolutionPlusOneRep":g?e="resolutionBestRep":p?e="bandwidthBestRep":u[0]&&(e="enabledPlaylistReps"),vl(`choosing ${bl(T)} using ${e} with options`,o),T.playlist}return vl("could not choose a playlist with options",o),null};const xl=function(){const e=this.useDevicePixelRatio&&r.a.devicePixelRatio||1;return El(this.playlists.main,this.systemBandwidth,parseInt(_l(this.tech_.el(),"width"),10)*e,parseInt(_l(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},Cl=function(e){let t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const s=this.useDevicePixelRatio&&r.a.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,i=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==i&&(t=e*this.systemBandwidth+(1-e)*t,i=this.systemBandwidth),El(this.playlists.main,t,parseInt(_l(this.tech_.el(),"width"),10)*s,parseInt(_l(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)}},kl=function(e){const{main:t,currentTime:i,bandwidth:s,duration:r,segmentDuration:n,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=e,d=t.playlists.filter(e=>!ba.isIncompatible(e));let u=d.filter(ba.isEnabled);u.length||(u=d.filter(e=>!ba.isDisabled(e)));const c=u.filter(ba.hasAttribute.bind(null,"BANDWIDTH")),h=c.map(e=>{const t=l.getSyncPoint(e,r,o,i),d=t?1:2,u=ba.estimateSegmentRequestTime(n,s,e),c=u*d-a;return{playlist:e,rebufferingImpact:c}}),p=h.filter(e=>e.rebufferingImpact<=0);return Tl(p,(e,t)=>Sl(t.playlist,e.playlist)),p.length?p[0]:(Tl(h,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),h[0]||null)},Il=function(){const e=this.playlists.main.playlists.filter(ba.isEnabled);Tl(e,(e,t)=>Sl(e,t));const t=e.filter(e=>!!yl(this.playlists.main,e).video);return t[0]||null},Pl=e=>{let t,i=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(e=>{t.set(e,i),i+=e.byteLength})),t},Ol=function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});let s=i;/^cc708_/.test(i)&&(s="SERVICE"+i.split("_")[1]);const r=t.textTracks().getTrackById(s);if(r)e[i]=r;else{const r=t.options_.vhs&&t.options_.vhs.captionServices||{};let n=i,a=i,o=!1;const l=r[s];l&&(n=l.label,a=l.language,o=l.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:s,default:o,label:n,language:a},!1).track}}},Ll=function({inbandTextTracks:e,captionArray:t,timestampOffset:i}){if(!t)return;const s=r.a.WebKitDataCue||r.a.VTTCue;t.forEach(t=>{const r=t.stream;t.content?t.content.forEach(n=>{const a=new s(t.startTime+i,t.endTime+i,n.text);a.line=n.line,a.align="left",a.position=n.position,a.positionAlign="line-left",e[r].addCue(a)}):e[r].addCue(new s(t.startTime+i,t.endTime+i,t.text))})},Al=function(e){Object.defineProperties(e.frame,{id:{get(){return xn.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get(){return xn.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get(){return xn.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},Dl=({inbandTextTracks:e,metadataArray:t,timestampOffset:i,videoDuration:s})=>{if(!t)return;const n=r.a.WebKitDataCue||r.a.VTTCue,a=e.metadataTrack_;if(!a)return;if(t.forEach(e=>{const t=e.cueTime+i;!("number"!==typeof t||r.a.isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach(e=>{const i=new n(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,Al(i),a.addCue(i)})}),!a.cues||!a.cues.length)return;const o=a.cues,l=[];for(let r=0;r<o.length;r++)o[r]&&l.push(o[r]);const d=l.reduce((e,t)=>{const i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),u=Object.keys(d).sort((e,t)=>Number(e)-Number(t));u.forEach((e,t)=>{const i=d[e],r=isFinite(s)?s:e,n=Number(u[t+1])||r;i.forEach(e=>{e.endTime=n})})},Ml={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},Nl=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),Rl=({inbandTextTracks:e,dateRanges:t})=>{const i=e.metadataTrack_;if(!i)return;const s=r.a.WebKitDataCue||r.a.VTTCue;t.forEach(e=>{for(const t of Object.keys(e)){if(Nl.has(t))continue;const r=new s(e.startTime,e.endTime,"");r.id=e.id,r.type="com.apple.quicktime.HLS",r.value={key:Ml[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(r.value.data=new Uint8Array(r.value.data.match(/[\da-f]{2}/gi)).buffer),i.addCue(r)}e.processDateRange()})},Ul=(e,t,i)=>{e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,xn.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},Bl=function(e,t,i){let s,r;if(i&&i.cues){s=i.cues.length;while(s--)r=i.cues[s],r.startTime>=e&&r.endTime<=t&&i.removeCue(r)}},jl=function(e){const t=e.cues;if(!t)return;const i={};for(let s=t.length-1;s>=0;s--){const r=t[s],n=`${r.startTime}-${r.endTime}-${r.text}`;i[n]?e.removeCue(r):i[n]=r}},Fl=(e,t,i)=>{if("undefined"===typeof t||null===t||!e.length)return[];const s=Math.ceil((t-i+3)*k["ONE_SECOND_IN_TS"]);let r;for(r=0;r<e.length;r++)if(e[r].pts>s)break;return e.slice(r)},ql=(e,t,i)=>{if(!t.length)return e;if(i)return t.slice();const s=t[0].pts;let r=0;for(r;r<e.length;r++)if(e[r].pts>=s)break;return e.slice(0,r).concat(t)},$l=(e,t,i,s)=>{const r=Math.ceil((t-s)*k["ONE_SECOND_IN_TS"]),n=Math.ceil((i-s)*k["ONE_SECOND_IN_TS"]),a=e.slice();let o=e.length;while(o--)if(e[o].pts<=n)break;if(-1===o)return a;let l=o+1;while(l--)if(e[l].pts<=r)break;return l=Math.max(l,0),a.splice(l,o-l+1),a},Hl=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const i=Object.keys(e).sort(),s=Object.keys(t).sort();if(i.length!==s.length)return!1;for(let r=0;r<i.length;r++){const n=i[r];if(n!==s[r])return!1;if(e[n]!==t[n])return!1}return!0},zl=22,Vl=function(e,t,i){t=t||[];const s=[];let r=0;for(let n=0;n<t.length;n++){const a=t[n];if(e===a.timeline&&(s.push(n),r+=a.duration,r>i))return n}return 0===s.length?0:s[s.length-1]},Gl=1,Wl=500,Xl=e=>"number"===typeof e&&isFinite(e),Yl=1/60,Jl=(e,t,i)=>"main"===e&&t&&i?i.hasAudio||i.hasVideo?t.hasVideo&&!i.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&i.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null,Kl=(e,t,i)=>{let s=t-Co.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-i;return Math.min(r,s)},Ql=e=>{const{startOfSegment:t,duration:i,segment:s,part:r,playlist:{mediaSequence:n,id:a,segments:o=[]},mediaIndex:l,partIndex:d,timeline:u}=e,c=o.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=" with independent "+e.independent);const p="number"===typeof d,f=e.segment.uri?"segment":"pre-segment",m=p?Qn({preloadSegment:s})-1:0;return`${f} [${n+l}/${n+c}]`+(p?` part [${d}/${m}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}]`+` duration [${i}]`+` timeline [${u}]`+` selected by [${h}]`+` playlist [${a}]`},Zl=e=>e+"TimingInfo",ed=({segmentTimeline:e,currentTimeline:t,startOfSegment:i,buffered:s,overrideCheck:r})=>r||e!==t?e<t?i:s.length?s.end(s.length-1):i:null,td=({timelineChangeController:e,currentTimeline:t,segmentTimeline:i,loaderType:s,audioDisabled:r})=>{if(t===i)return!1;if("audio"===s){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==i}if("main"===s&&r){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==i}return!1},id=e=>{let t=0;return["video","audio"].forEach((function(i){const s=e[i+"TimingInfo"];if(!s)return;const{start:n,end:a}=s;let o;"bigint"===typeof n||"bigint"===typeof a?o=r.a.BigInt(a)-r.a.BigInt(n):"number"===typeof n&&"number"===typeof a&&(o=a-n),"undefined"!==typeof o&&o>t&&(t=o)})),"bigint"===typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},sd=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+Rn,rd=(e,t)=>{if("hls"!==t)return null;const i=id({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;const s=e.playlist.targetDuration,r=sd({segmentDuration:i,maxDuration:2*s}),n=sd({segmentDuration:i,maxDuration:s}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${i} when the reported duration is ${e.duration} and the target duration is ${s}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||n?{severity:r?"warn":"info",message:a}:null};class nd extends xn.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!==typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=Dn(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"main"===this.loaderType_&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return Go.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&r.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,r.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return"undefined"!==typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&Go.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Nn();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:i,isMuxed:s}=e;if(i&&t&&!this.audioDisabled_&&!s)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const i=Qa(e);let s=this.initSegments_[i];return t&&!s&&e.bytes&&(this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),s||e}segmentKey(e,t=!1){if(!e)return null;const i=Za(e);let s=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!s&&e.bytes&&(this.keyCache_[i]=s={resolvedUri:e.resolvedUri,bytes:e.bytes});const r={resolvedUri:(s||e).resolvedUri};return s&&(r.bytes=s.bytes),r}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;const i=this.playlist_,s=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));let r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_(`playlist update [${r} => ${e.id||e.uri}]`),this.syncController_.updateMediaSequenceMap(e,this.currentTime_(),this.loaderType_),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){if(null!==this.mediaIndex){const t=!e.endList&&"number"===typeof e.partTargetDuration;t?this.resetLoader():this.resyncLoader()}return this.currentMediaInfo_=void 0,void this.trigger("playlistupdate")}const n=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${n}]`),null!==this.mediaIndex)if(this.mediaIndex-=n,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}s&&(s.mediaIndex-=n,s.mediaIndex<0?(s.mediaIndex=null,s.partIndex=null):(s.mediaIndex>=0&&(s.segment=e.segments[s.mediaIndex]),s.partIndex>=0&&s.segment.parts&&(s.part=s.segment.parts[s.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(r.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&Go.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.shouldForceTimestampOffsetAfterResync_=!0,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=(()=>{}),s=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let r=1;const n=()=>{r--,0===r&&i()};!s&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,n)),(s||"main"===this.loaderType_)&&(this.gopBuffer_=$l(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,n));for(const a in this.inbandTextTracks_)Bl(e,t,this.inbandTextTracks_[a]);Bl(e,t,this.segmentMetadataTrack_),n()}monitorBuffer_(){this.checkBufferTimeout_&&r.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r.a.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&r.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r.a.setTimeout(this.monitorBufferTick_.bind(this),Wl)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();e&&("number"===typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const s="number"===typeof e&&t.segments[e],r=e+1===t.segments.length,n=!s||!s.parts||i+1===s.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&n}chooseNextRequest_(){const e=this.buffered_(),t=Wn(e)||0,i=Xn(e,this.currentTime_()),s=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),n=this.playlist_.segments;if(!n.length||s||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const a={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(a.isSyncRequest)a.mediaIndex=Vl(this.currentTimeline_,n,t),this.logger_("choose next request. Can not find sync point. Fallback to media Index: "+a.mediaIndex);else if(null!==this.mediaIndex){const e=n[this.mediaIndex],i="number"===typeof this.partIndex?this.partIndex:-1;a.startOfSegment=e.end?e.end:t,e.parts&&e.parts[i+1]?(a.mediaIndex=this.mediaIndex,a.partIndex=i+1):a.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:e,startTime:i,partIndex:s}=ba.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});a.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),a.mediaIndex=e,a.startOfSegment=i,a.partIndex=s,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${a.mediaIndex} `)}const o=n[a.mediaIndex];let l=o&&"number"===typeof a.partIndex&&o.parts&&o.parts[a.partIndex];if(!o||"number"===typeof a.partIndex&&!l)return null;"number"!==typeof a.partIndex&&o.parts&&(a.partIndex=0,l=o.parts[0]);const d=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&l&&!d&&!l.independent)if(0===a.partIndex){const e=n[a.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(a.mediaIndex-=1,a.partIndex=e.parts.length-1,a.independent="previous segment")}else o.parts[a.partIndex-1].independent&&(a.partIndex-=1,a.independent="previous part");const u=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return a.mediaIndex>=n.length-1&&u&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,a.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(a))}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:s,startOfSegment:r,isSyncRequest:n,partIndex:a,forceTimestampOffset:o,getMediaInfoForTime:l}=e,d=i.segments[s],u="number"===typeof a&&d.parts[a],c={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||d.resolvedUri,mediaIndex:s,partIndex:u?a:null,isSyncRequest:n,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:d.timeline,duration:u&&u.duration||d.duration,segment:d,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h="undefined"!==typeof o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:d.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});const p=Wn(this.sourceUpdater_.audioBuffered());return"number"===typeof p&&(c.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=Fl(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c}timestampOffsetForSegment_(e){return ed(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),i=e.bandwidth,s=this.pendingSegment_.duration,r=ba.estimateSegmentRequestTime(s,i,this.playlist_,e.bytesReceived),n=zn(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(r<=n)return;const a=kl({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:s,timeUntilRebuffer:n,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!a)return;const o=r-n,l=o-a.rebufferingImpact;let d=.5;n<=Rn&&(d=1),!a.playlist||a.playlist.uri===this.playlist_.uri||l<d||(this.bandwidth=a.playlist.attributes.BANDWIDTH*Co.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_("Aborting "+Ql(e)),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},Hl(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))}handleTimingInfo_(e,t,i,s){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const r=this.pendingSegment_,n=Zl(t);r[n]=r[n]||{},r[n][i]=s,this.logger_(`timinginfo: ${t} - ${i} - ${s}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");const i=this.pendingSegment_;if(!i.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const s=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(e=>{r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+s),t.endTime=Math.max(t.endTime,e.endTime+s),t.captions.push(e)}),Object.keys(r).forEach(e=>{const{startTime:t,endTime:i,captions:n}=r[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${i} for ${e}`),Ol(a,this.vhs_.tech_,e),Bl(t,i,a[e]),Ll({captionArray:n,inbandTextTracks:a,timestampOffset:s})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const s=this.pendingSegment_;s.hasAppendedData_?this.addMetadataToTextTrack(i,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!td({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:i,hasVideo:s,isMuxed:r}=t;return!(s&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!td({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));const i=this.pendingSegment_;if(this.setTimeMapping_(i.timeline),this.updateMediaSecondsLoaded_(i.part||i.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),i.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),i.isFmp4=e.isFmp4,i.timingInfo=i.timingInfo||{},i.isFmp4)this.trigger("fmp4"),i.timingInfo.start=i[Zl(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let s;t&&(s=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,firstVideoFrameTimeForData:s,videoTimingInfo:i.videoTimingInfo,audioTimingInfo:i.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(i,t.type),this.updateSourceBufferTimestampOffset_(i),i.isSyncRequest){this.updateTimingInfoEnd_(i),this.syncController_.saveSegmentTimingInfo({segmentInfo:i,shouldSaveTimelineMapping:"main"===this.loaderType_});const e=this.chooseNextRequest_();if(e.mediaIndex!==i.mediaIndex||e.partIndex!==i.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}i.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(i,t)}}updateAppendInitSegmentStatus(e,t){"main"!==this.loaderType_||"number"!==typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:i,playlist:s}){if(i){const e=Qa(i);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=s,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i},s){const n=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();n.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Vn(n).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Vn(a).join(", "));const o=n.length?n.start(0):0,l=n.length?n.end(n.length-1):0,d=a.length?a.start(0):0,u=a.length?a.end(a.length-1):0;if(l-o<=Gl&&u-d<=Gl)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${i.byteLength}, audio buffer: ${Vn(n).join(", ")}, video buffer: ${Vn(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:e,type:t,bytes:i}));const c=this.currentTime_(),h=c-Gl;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${Gl}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=r.a.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3*Gl)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:i},s){s&&(s.code!==zl?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",s),this.error(`${t} append of ${i.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:i}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:i,data:s,bytes:r}){if(!r){const e=[s];let t=s.byteLength;i&&(e.unshift(i),t+=i.byteLength),r=Pl({bytes:t,segments:e})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:r},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:r}))}handleSegmentTimingInfo_(e,t,i){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const s=this.pendingSegment_.segment,r=e+"TimingInfo";s[r]||(s[r]={}),s[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,s[r].transmuxedPresentationStart=i.start.presentation,s[r].transmuxedDecodeStart=i.start.decode,s[r].transmuxedPresentationEnd=i.end.presentation,s[r].transmuxedDecodeEnd=i.end.decode,s[r].baseMediaDecodeTime=i.baseMediaDecodeTime}appendData_(e,t){const{type:i,data:s}=t;if(!s||!s.byteLength)return;if("audio"===i&&this.audioDisabled_)return;const r=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:r,data:s})}loadSegment_(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"===typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push(()=>{const t=g()({},e,{forceTimestampOffset:!0});g()(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)})}updateTransmuxerAndRequestSegment_(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));const t=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),s=null!==this.mediaIndex,r=e.timeline!==this.currentTimeline_&&e.timeline>0,n=i||s&&r;this.logger_("Requesting "+Ql(e)),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=ul({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:n,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:i,stream:s})=>{this.logger_(`${Ql(e)} logged from transmuxer stream ${s} as a ${i}: ${t}`)}})}trimBackBuffer_(e){const t=Kl(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,s={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?s.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(s.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){const i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);s.key=this.segmentKey(t.key),s.key.iv=i}return t.map&&(s.map=this.initSegmentForMap(t.map)),s}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Yl?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+Yl):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Xo.ABORTED)return;return this.pause(),e.code===Xo.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),s.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=ql(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(s)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"===typeof e.start&&"number"===typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:s,currentVideoTimestampOffset:r,useVideoTimingInfo:n,videoTimingInfo:a,audioTimingInfo:o}){if("undefined"!==typeof e)return e;if(!n)return o.start;const l=t.segments[i-1];return 0!==i&&l&&"undefined"!==typeof l.start&&l.end===s+r?a.start:s}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:i,hasVideo:s,isMuxed:r}=t,n="main"===this.loaderType_&&s,a=!this.audioDisabled_&&i&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!==typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,a&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=Jl(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!==typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:i}){return this.useDtsForTimestampOffset_?e&&"number"===typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"===typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i.start:i.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo,s=i&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;s&&(e.timingInfo.end="number"===typeof s.end?s.end:s.start+e.duration)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=rd(e,this.sourceType_);if(t&&("warn"===t.severity?xn.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_("Throwing away un-appended sync request "+Ql(e));this.logger_("Appended "+Ql(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");const i=e.segment,s=e.part,r=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,n=s&&s.end&&this.currentTime_()-s.end>3*e.playlist.partTargetDuration;if(r||n)return this.logger_(`bad ${r?"segment":"part"} ${Ql(e)}`),void this.resetEverything();const a=null!==this.mediaIndex;a&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<Yl)return void this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+Yl);const t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,s=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(s-t)/++this.throughput.count}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,i=t.start,s=t.end;if(!Xl(i)||!Xl(s))return;Bl(i,s,this.segmentMetadataTrack_);const n=r.a.WebKitDataCue||r.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:s},o=JSON.stringify(a),l=new n(i,s,o);l.value=a,this.segmentMetadataTrack_.addCue(l)}}function ad(){}const od=function(e){return"string"!==typeof e?e:e.replace(/./,e=>e.toUpperCase())},ld=["video","audio"],dd=(e,t)=>{const i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]},ud=(e,t)=>{for(let i=0;i<t.length;i++){const s=t[i];if("mediaSource"===s.type)return null;if(s.type===e)return i}return null},cd=(e,t)=>{if(0===t.queue.length)return;let i=0,s=t.queue[i];if("mediaSource"!==s.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!dd(e,t)){if(s.type!==e){if(i=ud(e,t.queue),null===i)return;s=t.queue[i]}return t.queue.splice(i,1),t.queuePending[e]=s,s.action(e,t),s.doneFn?void 0:(t.queuePending[e]=null,void cd(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),s.action(t),s.doneFn&&s.doneFn(),cd("audio",t),cd("video",t))},hd=(e,t)=>{const i=t[e+"Buffer"],s=od(e);i&&(i.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),i.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[e+"Buffer"]=null)},pd=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),fd={appendBuffer:(e,t,i)=>(s,r)=>{const n=r[s+"Buffer"];if(pd(r.mediaSource,n)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{n.appendBuffer(e)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===zl?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),r.queuePending[s]=null,i(a)}}},remove:(e,t)=>(i,s)=>{const r=s[i+"Buffer"];if(pd(s.mediaSource,r)){s.logger_(`Removing ${e} to ${t} from ${i}Buffer`);try{r.remove(e,t)}catch(n){s.logger_(`Remove ${e} to ${t} from ${i}Buffer failed`)}}},timestampOffset:e=>(t,i)=>{const s=i[t+"Buffer"];pd(i.mediaSource,s)&&(i.logger_(`Setting ${t}timestampOffset to ${e}`),s.timestampOffset=e)},callback:e=>(t,i)=>{e()},endOfStream:e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(i){xn.log.warn("Failed to call media source endOfStream",i)}}},duration:e=>t=>{t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(i){xn.log.warn("Failed to set media source duration",i)}},abort:()=>(e,t)=>{if("open"!==t.mediaSource.readyState)return;const i=t[e+"Buffer"];if(pd(t.mediaSource,i)){t.logger_(`calling abort on ${e}Buffer`);try{i.abort()}catch(s){xn.log.warn(`Failed to abort on ${e}Buffer`,s)}}},addSourceBuffer:(e,t)=>i=>{const s=od(e),r=Object(b["e"])(t);i.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const n=i.mediaSource.addSourceBuffer(r);n.addEventListener("updateend",i[`on${s}UpdateEnd_`]),n.addEventListener("error",i[`on${s}Error_`]),i.codecs[e]=t,i[e+"Buffer"]=n},removeSourceBuffer:e=>t=>{const i=t[e+"Buffer"];if(hd(e,t),pd(t.mediaSource,i)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(i)}catch(s){xn.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,s)}}},changeType:e=>(t,i)=>{const s=i[t+"Buffer"],r=Object(b["e"])(e);if(pd(i.mediaSource,s)&&i.codecs[t]!==e){i.logger_(`changing ${t}Buffer codec from ${i.codecs[t]} to ${e}`);try{s.changeType(r),i.codecs[t]=e}catch(n){xn.log.warn(`Failed to changeType on ${t}Buffer`,n)}}}},md=({type:e,sourceUpdater:t,action:i,doneFn:s,name:r})=>{t.queue.push({type:e,action:i,doneFn:s,name:r}),cd(e,t)},gd=(e,t)=>i=>{if(t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}cd(e,t)};class yd extends xn.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>cd("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=Dn("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=gd("video",this),this.onAudioUpdateEnd_=gd("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){md({type:"mediaSource",sourceUpdater:this,action:fd.addSourceBuffer(e,t),name:"addSourceBuffer"})}abort(e){md({type:e,sourceUpdater:this,action:fd.abort(e),name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?md({type:"mediaSource",sourceUpdater:this,action:fd.removeSourceBuffer(e),name:"removeSourceBuffer"}):xn.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!xn.browser.IS_FIREFOX&&r.a.MediaSource&&r.a.MediaSource.prototype&&"function"===typeof r.a.MediaSource.prototype.removeSourceBuffer}static canChangeType(){return r.a.SourceBuffer&&r.a.SourceBuffer.prototype&&"function"===typeof r.a.SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?md({type:e,sourceUpdater:this,action:fd.changeType(t),name:"changeType"}):xn.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!==typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const i=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,i);this.canChangeType()&&this.changeType(t,i)})}appendBuffer(e,t){const{segmentInfo:i,type:s,bytes:r}=e;if(this.processedAppend_=!0,"audio"===s&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${r.length} until video append`);const n=t;if(md({type:s,sourceUpdater:this,action:fd.appendBuffer(r,i||{mediaIndex:-1},n),doneFn:t,name:"appendBuffer"}),"video"===s){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return pd(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Nn()}videoBuffered(){return pd(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Nn()}buffered(){const e=pd(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=pd(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():$n(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=ad){md({type:"mediaSource",sourceUpdater:this,action:fd.duration(e),name:"duration",doneFn:t})}endOfStream(e=null,t=ad){"string"!==typeof e&&(e=void 0),md({type:"mediaSource",sourceUpdater:this,action:fd.endOfStream(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,i=ad){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?md({type:"audio",sourceUpdater:this,action:fd.remove(e,t),doneFn:i,name:"remove"}):i()}removeVideo(e,t,i=ad){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?md({type:"video",sourceUpdater:this,action:fd.remove(e,t),doneFn:i,name:"remove"}):i()}updating(){return!(!dd("audio",this)&&!dd("video",this))}audioTimestampOffset(e){return"undefined"!==typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(md({type:"audio",sourceUpdater:this,action:fd.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return"undefined"!==typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(md({type:"video",sourceUpdater:this,action:fd.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&md({type:"audio",sourceUpdater:this,action:fd.callback(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&md({type:"video",sourceUpdater:this,action:fd.callback(e),name:"callback"})}dispose(){this.trigger("dispose"),ld.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[e+"QueueCallback"](()=>hd(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const vd=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),bd=e=>{const t=new Uint8Array(e);return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")},_d=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));class Td extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Sd extends nd{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Nn();const e=this.subtitlesTrack_.cues,t=e[0].startTime,i=e[e.length-1].startTime;return Nn([[t,i]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=Qa(e);let s=this.initSegments_[i];if(t&&!s&&e.bytes){const t=_d.byteLength+e.bytes.byteLength,r=new Uint8Array(t);r.set(e.bytes),r.set(_d,e.bytes.byteLength),this.initSegments_[i]=s={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return s||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){Bl(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){while(e&&e.segment.empty){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Xo.TIMEOUT&&this.handleTimeout_(),e.code===Xo.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const s=this.pendingSegment_;this.saveBandwidthRelatedStats_(s.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const n=s.segment;if(n.map&&(n.map.bytes=t.map.bytes),s.bytes=t.bytes,"function"!==typeof r.a.WebVTT&&"function"===typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,i),()=>this.stopForError({message:"Error loading vtt.js"}));n.requested=!0;try{this.parseVTTCues_(s)}catch(a){return void this.stopForError({message:a.message})}if(this.updateTimeMapping_(s,this.syncController_.timelines[s.timeline],this.playlist_),s.cues.length?s.timingInfo={start:s.cues[0].startTime,end:s.cues[s.cues.length-1].endTime}:s.timingInfo={start:s.startOfSegment,end:s.startOfSegment+s.duration},s.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");s.byteLength=s.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,s.cues.forEach(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new r.a.VTTCue(e.startTime,e.endTime,e.text):e)}),jl(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,i=!1;if("function"!==typeof r.a.WebVTT)throw new Td;"function"===typeof r.a.TextDecoder?t=new r.a.TextDecoder("utf8"):(t=r.a.WebVTT.StringDecoder(),i=!0);const s=new r.a.WebVTT.Parser(r.a,r.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},s.oncue=e.cues.push.bind(e.cues),s.ontimestampmap=t=>{e.timestampmap=t},s.onparsingerror=e=>{xn.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;i&&(t=vd(t)),s.parse(t)}let n=e.bytes;i&&(n=vd(n)),s.parse(n),s.flush()}updateTimeMapping_(e,t,i){const s=e.segment;if(!t)return;if(!e.cues.length)return void(s.empty=!0);const{MPEGTS:r,LOCAL:n}=e.timestampmap,a=r/k["ONE_SECOND_IN_TS"],o=a-n+t.mapping;if(e.cues.forEach(e=>{const i=e.endTime-e.startTime,s=0===r?e.startTime+o:this.handleRollover_(e.startTime+o,t.time);e.startTime=Math.max(s,0),e.endTime=Math.max(s+i,0)}),!i.syncInfo){const t=e.cues[0].startTime,r=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(t,r-s.duration)}}}handleRollover_(e,t){if(null===t)return e;let i=e*k["ONE_SECOND_IN_TS"];const s=t*k["ONE_SECOND_IN_TS"];let r;r=s<i?-8589934592:8589934592;while(Math.abs(i-s)>4294967296)i+=r;return i/k["ONE_SECOND_IN_TS"]}}const wd=function(e,t){const i=e.cues;for(let s=0;s<i.length;s++){const e=i[s];if(t>=e.adStartTime&&t<=e.adEndTime)return e}return null},Ed=function(e,t,i=0){if(!e.segments)return;let s,n=i;for(let a=0;a<e.segments.length;a++){const i=e.segments[a];if(s||(s=wd(t,n+i.duration/2)),s){if("cueIn"in i){s.endTime=n,s.adEndTime=n,n+=i.duration,s=null;continue}if(n<s.endTime){n+=i.duration;continue}s.endTime+=i.duration}else if("cueOut"in i&&(s=new r.a.VTTCue(n,n+i.duration,i.cueOut),s.adStartTime=n,s.adEndTime=n+parseFloat(i.cueOut),t.addCue(s)),"cueOutCont"in i){const[e,a]=i.cueOutCont.split("/").map(parseFloat);s=new r.a.VTTCue(n,n+i.duration,""),s.adStartTime=n-e,s.adEndTime=s.adStartTime+a,t.addCue(s)}n+=i.duration}},xd=86400,Cd=[{name:"VOD",run:(e,t,i,s,r)=>{if(i!==1/0){const e={time:0,segmentIndex:0,partIndex:null};return e}return null}},{name:"MediaSequence",run:(e,t,i,s,r,n)=>{if(!n)return null;const a=e.getMediaSequenceMap(n);if(!a||0===a.size)return null;if(void 0===t.mediaSequence||!Array.isArray(t.segments)||!t.segments.length)return null;let o=t.mediaSequence,l=0;for(const d of t.segments){const e=a.get(o);if(!e)break;if(r>=e.start&&r<e.end){if(Array.isArray(d.parts)&&d.parts.length){let t=e.start,i=0;for(const s of d.parts){const n=t,a=n+s.duration;if(r>=n&&r<a)return{time:e.start,segmentIndex:l,partIndex:i};i++,t=a}}return{time:e.start,segmentIndex:l,partIndex:null}}l++,o++}return null}},{name:"ProgramDateTime",run:(e,t,i,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let n=null,a=null;const o=Jn(t);r=r||0;for(let l=0;l<o.length;l++){const i=t.endList||0===r?l:o.length-(l+1),s=o[i],d=s.segment,u=e.timelineToDatetimeMappings[d.timeline];if(!u||!d.dateTimeObject)continue;const c=d.dateTimeObject.getTime()/1e3;let h=c+u;if(d.parts&&"number"===typeof s.partIndex)for(let e=0;e<s.partIndex;e++)h+=d.parts[e].duration;const p=Math.abs(r-h);if(null!==a&&(0===p||a<p))break;a=p,n={time:h,segmentIndex:s.segmentIndex,partIndex:s.partIndex}}return n}},{name:"Segment",run:(e,t,i,s,r)=>{let n=null,a=null;r=r||0;const o=Jn(t);for(let l=0;l<o.length;l++){const e=t.endList||0===r?l:o.length-(l+1),i=o[e],d=i.segment,u=i.part&&i.part.start||d&&d.start;if(d.timeline===s&&"undefined"!==typeof u){const e=Math.abs(r-u);if(null!==a&&a<e)break;(!n||null===a||a>=e)&&(a=e,n={time:u,segmentIndex:i.segmentIndex,partIndex:i.partIndex})}}return n}},{name:"Discontinuity",run:(e,t,i,s,r)=>{let n=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let i=null;for(let s=0;s<t.discontinuityStarts.length;s++){const a=t.discontinuityStarts[s],o=t.discontinuitySequence+s+1,l=e.discontinuities[o];if(l){const e=Math.abs(r-l.time);if(null!==i&&i<e)break;(!n||null===i||i>=e)&&(i=e,n={time:l.time,segmentIndex:a,partIndex:null})}}}return n}},{name:"Playlist",run:(e,t,i,s,r)=>{if(t.syncInfo){const e={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null};return e}return null}}];class kd extends xn.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.mediaSequenceStorage_=new Map,this.logger_=Dn("SyncController")}getMediaSequenceMap(e){return this.mediaSequenceStorage_.get(e)}updateMediaSequenceMap(e,t,i){if(void 0===e.mediaSequence||!Array.isArray(e.segments)||!e.segments.length)return;const s=this.getMediaSequenceMap(i),r=new Map;let n,a=e.mediaSequence;s?s.has(e.mediaSequence)?n=s.get(e.mediaSequence).start:(this.logger_(`MediaSequence sync for ${i} segment loader - received a gap between playlists.\nFallback base time to: ${t}.\nReceived media sequence: ${a}.\nCurrent map: `,s),n=t):n=0,this.logger_(`MediaSequence sync for ${i} segment loader.\nReceived media sequence: ${a}.\nbase time is ${n}\nCurrent map: `,s),e.segments.forEach(e=>{const t=n,i=t+e.duration,s={start:t,end:i};r.set(a,s),a++,n=i}),this.mediaSequenceStorage_.set(i,r)}getSyncPoint(e,t,i,s,r){if(t!==1/0){const i=Cd.find(({name:e})=>"VOD"===e);return i.run(this,e,t)}const n=this.runStrategies_(e,t,i,s,r);if(!n.length)return null;for(const a of n){const{syncPoint:t,strategy:i}=a,{segmentIndex:r,time:n}=t;if(r<0)continue;const o=e.segments[r],l=n,d=l+o.duration;if(this.logger_(`Strategy: ${i}. Current time: ${s}. selected segment: ${r}. Time: [${l} -> ${d}]}`),s>=l&&s<d)return this.logger_("Found sync point with exact match: ",t),t}return this.selectSyncPoint_(n,{key:"time",value:s})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0,"main");if(!i.length)return null;const s=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+ra({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:s.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,s,r){const n=[];for(let a=0;a<Cd.length;a++){const o=Cd[a],l=o.run(this,e,t,i,s,r);l&&(l.strategy=o.name,n.push({strategy:o.name,syncPoint:l}))}return n}selectSyncPoint_(e,t){let i=e[0].syncPoint,s=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy;for(let n=1;n<e.length;n++){const a=Math.abs(e[n].syncPoint[t.key]-t.value);a<s&&(s=a,i=e[n].syncPoint,r=e[n].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${r}]: [time:${i.time}, segmentIndex:`+i.segmentIndex+("number"===typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i}saveExpiredSegmentInfo(e,t){const i=t.mediaSequence-e.mediaSequence;if(i>xd)xn.log.warn(`Not saving expired segment info. Media sequence gap ${i} is too large.`);else for(let s=i-1;s>=0;s--){const i=e.segments[s];if(i&&"undefined"!==typeof i.start){t.syncInfo={mediaSequence:e.mediaSequence+s,time:i.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const i=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),s=e.segment;i&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:s.start}));const r=s.dateTimeObject;s.discontinuity&&t&&r&&(this.timelineToDatetimeMappings[s.timeline]=-r.getTime()/1e3)}timestampOffsetForTimeline(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,i){const s=e.segment,r=e.part;let n,a,o=this.timelines[e.timeline];if("number"===typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),n=e.startOfSegment,a=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,a=t.end+o.mapping}return r&&(r.start=n,r.end=a),(!s.start||n<s.start)&&(s.start=n),s.end=a,!0}saveDiscontinuitySyncInfo_(e){const t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(let s=0;s<t.discontinuityStarts.length;s++){const r=t.discontinuityStarts[s],n=t.discontinuitySequence+s+1,a=r-e.mediaIndex,o=Math.abs(a);if(!this.discontinuities[n]||this.discontinuities[n].accuracy>o){let s;s=a<0?i.start-ra({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+ra({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[n]={time:s,accuracy:o}}}}dispose(){this.trigger("dispose"),this.off()}}class Id extends xn.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:i}){return"number"===typeof t&&"number"===typeof i&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:i}){return"number"===typeof t&&"number"===typeof i&&(this.lastTimelineChanges_[e]={type:e,from:t,to:i},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Pd=Lo(Ao((function(){var t=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var i=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(i,1),i>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,s=0;s<i;++s)t[s].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),n=t.length,a=0;a<n;++a)t[a].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();
|
29
29
|
/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function i(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}
|
30
|
-
/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const s=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],s=t[4],r=i[4];let n,a,o;const l=[],d=[];let u,c,h,p,f,m;for(n=0;n<256;n++)d[(l[n]=n<<1^283*(n>>7))^n]=n;for(a=o=0;!s[a];a^=u||1,o=d[o]||1)for(p=o^o<<1^o<<2^o<<3^o<<4,p=p>>8^255&p^99,s[a]=p,r[p]=a,h=l[c=l[u=l[a]]],m=16843009*h^65537*c^257*u^16843008*a,f=257*l[p]^16843008*p,n=0;n<4;n++)t[n][a]=f=f<<24^f>>>8,i[n][p]=m=m<<24^m>>>8;for(n=0;n<5;n++)t[n]=t[n].slice(0),i[n]=i[n].slice(0);return e};let r=null;class n{constructor(e){let t,i,n;r||(r=s()),this._tables=[[r[0][0].slice(),r[0][1].slice(),r[0][2].slice(),r[0][3].slice(),r[0][4].slice()],[r[1][0].slice(),r[1][1].slice(),r[1][2].slice(),r[1][3].slice(),r[1][4].slice()]];const a=this._tables[0][4],o=this._tables[1],l=e.length;let d=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");const u=e.slice(0),c=[];for(this._key=[u,c],t=l;t<4*l+28;t++)n=u[t-1],(t%l===0||8===l&&t%l===4)&&(n=a[n>>>24]<<24^a[n>>16&255]<<16^a[n>>8&255]<<8^a[255&n],t%l===0&&(n=n<<8^n>>>24^d<<24,d=d<<1^283*(d>>7))),u[t]=u[t-l]^n;for(i=0;t;i++,t--)n=u[3&i?t:t-4],c[i]=t<=4||i<4?n:o[0][a[n>>>24]]^o[1][a[n>>16&255]]^o[2][a[n>>8&255]]^o[3][a[255&n]]}decrypt(e,t,i,s,r,n){const a=this._key[1];let o,l,d,u=e^a[0],c=s^a[1],h=i^a[2],p=t^a[3];const f=a.length/4-2;let m,g=4;const y=this._tables[1],v=y[0],b=y[1],_=y[2],T=y[3],S=y[4];for(m=0;m<f;m++)o=v[u>>>24]^b[c>>16&255]^_[h>>8&255]^T[255&p]^a[g],l=v[c>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&u]^a[g+1],d=v[h>>>24]^b[p>>16&255]^_[u>>8&255]^T[255&c]^a[g+2],p=v[p>>>24]^b[u>>16&255]^_[c>>8&255]^T[255&h]^a[g+3],g+=4,u=o,c=l,h=d;for(m=0;m<4;m++)r[(3&-m)+n]=S[u>>>24]<<24^S[c>>16&255]<<16^S[h>>8&255]<<8^S[255&p]^a[g++],o=u,u=c,c=h,h=p,p=o}}class a extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const o=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},l=function(e,t,i){const s=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new n(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),l=new Int32Array(a.buffer);let d,u,c,h,p,f,m,g,y;for(d=i[0],u=i[1],c=i[2],h=i[3],y=0;y<s.length;y+=4)p=o(s[y]),f=o(s[y+1]),m=o(s[y+2]),g=o(s[y+3]),r.decrypt(p,f,m,g,l,y),l[y]=o(l[y]^d),l[y+1]=o(l[y+1]^u),l[y+2]=o(l[y+2]^c),l[y+3]=o(l[y+3]^h),d=p,u=f,c=m,h=g;return a};class d{constructor(e,t,s,r){const n=d.STEP,l=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength);let c=0;for(this.asyncStream_=new a,this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+n),t,s,u)),c=n;c<l.length;c+=n)s=new Uint32Array([o(l[c-4]),o(l[c-3]),o(l[c-2]),o(l[c-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+n),t,s,u));this.asyncStream_.push((function(){r(null,i(u))}))}static get STEP(){return 32e3}decryptChunk_(e,t,i,s){return function(){const r=l(e,t,i);s.set(r,e.byteOffset)}}}var u,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};u="undefined"!==typeof window?window:"undefined"!==typeof c?c:"undefined"!==typeof self?self:{};var h=u,p=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},f=h.BigInt||Number;f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();const m=function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];p(s)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s}),t};self.onmessage=function(e){const t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),s=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new d(i,s,r,(function(e,i){self.postMessage(m({source:t.source,decrypted:i}),[i.buffer])}))}})));var Od=Oo(Pd);const Ld=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Ad=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Dd=(e,t)=>{t.activePlaylistLoader=e,e.load()},Md=(e,t)=>()=>{const{segmentLoaders:{[e]:i,main:s},mediaTypes:{[e]:r}}=t,n=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;a&&l&&a.id===l.id||(r.lastGroup_=a,r.lastTrack_=n,Ad(i,r),a&&!a.isMainPlaylist&&(a.playlistLoader?(i.resyncLoader(),Dd(a.playlistLoader,r)):o&&s.resetEverything()))},Nd=(e,t)=>()=>{const{segmentLoaders:{[e]:i},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,i.abort(),i.pause()},Rd=(e,t)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:n}}=t,a=n.activeTrack(),o=n.getActiveGroup(),l=n.activePlaylistLoader,d=n.lastTrack_;if((!d||!a||d.id!==a.id)&&(n.lastGroup_=o,n.lastTrack_=a,Ad(s,n),o)){if(o.isMainPlaylist){if(!a||!d||a.id===d.id)return;const e=t.vhs.playlistController_,s=e.selectPlaylist();if(e.media()===s)return;return n.logger_(`track change. Switching main audio from ${d.id} to ${a.id}`),i.pause(),r.resetEverything(),void e.fastQualityChange_(s)}if("AUDIO"===e){if(!o.playlistLoader)return r.setAudio(!0),void r.resetEverything();s.setAudio(!0),r.setAudio(!1)}l!==o.playlistLoader?(s.track&&s.track(a),s.resetEverything(),Dd(o.playlistLoader,n)):Dd(o.playlistLoader,n)}},Ud={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:i},excludePlaylist:s}=t,r=i.activeTrack(),n=i.activeGroup(),a=(n.filter(e=>e.default)[0]||n[0]).id,o=i.tracks[a];if(r!==o){xn.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in i.tracks)i.tracks[e].enabled=i.tracks[e]===o;i.onTrackChanged()}else s({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:i}}=t;xn.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=i.activeTrack();s&&(s.mode="disabled"),i.onTrackChanged()}},Bd={AUDIO:(e,t,i)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:n}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Ud[e](e,i))},SUBTITLES:(e,t,i)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:n},mediaTypes:{[e]:a}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),n.track(a.activeTrack()),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Ud[e](e,i))}},jd={AUDIO:(e,t)=>{const{vhs:i,sourceType:s,segmentLoaders:{[e]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:d}},mainPlaylistLoader:u}=t,c=va(u.main);a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}},c&&(a[e].main.default.playlists=u.main.playlists));for(const h in a[e]){o[h]||(o[h]=[]);for(const r in a[e][h]){let p,f=a[e][h][r];if(c?(d(`AUDIO group '${h}' label '${r}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===s&&f.playlists?new Fa(f.playlists[0],i,n):f.resolvedUri?new Fa(f.resolvedUri,i,n):f.playlists&&"dash"===s?new xo(f.playlists[0],i,n,u):null,f=Mn({id:r,playlistLoader:p},f),Bd[e](e,f.playlistLoader,t),o[h].push(f),"undefined"===typeof l[r]){const e=new xn.AudioTrack({id:r,kind:Ld(f),enabled:!1,language:f.language,default:f.default,label:r});l[r]=e}}}r.on("error",Ud[e](e,t))},SUBTITLES:(e,t)=>{const{tech:i,vhs:s,sourceType:r,segmentLoaders:{[e]:n},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:d}},mainPlaylistLoader:u}=t;for(const c in o[e]){l[c]||(l[c]=[]);for(const n in o[e][c]){if(!s.options_.useForcedSubtitles&&o[e][c][n].forced)continue;let h,p=o[e][c][n];if("hls"===r)h=new Fa(p.resolvedUri,s,a);else if("dash"===r){const e=p.playlists.filter(e=>e.excludeUntil!==1/0);if(!e.length)return;h=new xo(p.playlists[0],s,a,u)}else"vhs-json"===r&&(h=new Fa(p.playlists?p.playlists[0]:p.resolvedUri,s,a));if(p=Mn({id:n,playlistLoader:h},p),Bd[e](e,p.playlistLoader,t),l[c].push(p),"undefined"===typeof d[n]){const e=i.addRemoteTextTrack({id:n,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:n},!1).track;d[n]=e}}}n.on("error",Ud[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:i,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:n}}}=t;for(const a in s[e]){r[a]||(r[a]=[]);for(const t in s[e][a]){const o=s[e][a][t];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;const l=i.options_.vhs&&i.options_.vhs.captionServices||{};let d={label:t,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[d.instreamId]&&(d=Mn(d,l[d.instreamId])),void 0===d.default&&delete d.default,r[a].push(Mn({id:t},o)),"undefined"===typeof n[t]){const e=i.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;n[t]=e}}}}},Fd=(e,t)=>{for(let i=0;i<e.length;i++){if(ga(t,e[i]))return!0;if(e[i].playlists&&Fd(e[i].playlists,t))return!0}return!1},qd=(e,t)=>i=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,n=s.media();if(!n)return null;let a=null;n.attributes[e]&&(a=r[n.attributes[e]]);const o=Object.keys(r);if(!a)if("AUDIO"===e&&o.length>1&&va(t.main))for(let e=0;e<o.length;e++){const t=r[o[e]];if(Fd(t,n)){a=t;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return"undefined"===typeof i?a:null!==i&&a&&a.filter(e=>e.id===i.id)[0]||null},$d={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if(i[e].enabled)return i[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if("showing"===i[e].mode||"hidden"===i[e].mode)return i[e];return null}},Hd=(e,{mediaTypes:t})=>()=>{const i=t[e].activeTrack();return i?t[e].activeGroup(i):null},zd=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{jd[t](t,e)});const{mediaTypes:t,mainPlaylistLoader:i,tech:s,vhs:r,segmentLoaders:{["AUDIO"]:n,main:a}}=e;["AUDIO","SUBTITLES"].forEach(i=>{t[i].activeGroup=qd(i,e),t[i].activeTrack=$d[i](i,e),t[i].onGroupChanged=Md(i,e),t[i].onGroupChanging=Nd(i,e),t[i].onTrackChanged=Rd(i,e),t[i].getActiveGroup=Hd(i,e)});const o=t.AUDIO.activeGroup();if(o){const e=(o.filter(e=>e.default)[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();const i=t.AUDIO.getActiveGroup();i.playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}i.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),i.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),s.clearTracks("audio");for(const d in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[d])},Vd=()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ad,activeTrack:ad,getActiveGroup:ad,onGroupChanged:ad,onTrackChanged:ad,lastTrack_:null,logger_:Dn(`MediaGroups[${t}]`)}}),e};class Gd{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=Ln(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Wd extends xn.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Gd,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Dn("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=Ln(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();this.request_=this.xhr_({uri:i},(e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===t.status){const i=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${i} seconds.`),void this.startTTLTimeout_(parseInt(i,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}const s=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(s),this.startTTLTimeout_()})}setProxyServerUrl_(e){const t=new r.a.URL(e),i=new r.a.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(r.a.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new r.a.URL(e),i=this.getPathway(),s=this.getBandwidth_();if(i){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,i)}if(s){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,s)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const t=e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]},i=t(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const i=this.setProxyServerUrl_(e);if(!t(i))return i}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=r.a.setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){r.a.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Gd}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(Ln(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const Xd=10;let Yd;const Jd=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Kd=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Qd=function({currentPlaylist:e,buffered:t,currentTime:i,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:o,log:l}){if(!s)return xn.log.warn("We received no playlist to switch to. Please check your stream."),!1;const d=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(d+" as current playlist is not set"),!0;if(s.id===e.id)return!1;const u=Boolean(jn(t,i).length);if(!e.endList)return u||"number"!==typeof e.partTargetDuration?(l(d+" as current playlist is live"),!0):(l(`not ${d} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const c=Xn(t,i),h=o?Co.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Co.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${d} as duration < max low water line (${a} < ${h})`),!0;const p=s.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!o||c<n)){let e=`${d} as next bandwidth < current bandwidth (${p} < ${f})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${c} < ${n})`),l(e),!0}if((!o||p>f)&&c>=r){let e=`${d} as forwardBuffer >= bufferLowWaterLine (${c} >= ${r})`;return o&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${d} as no switching criteria met`),!1};class Zd extends xn.EventTarget{constructor(e){super();const{src:t,withCredentials:i,tech:s,bandwidth:n,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:d,sourceType:u,cacheEncryptionKeys:c,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:f}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:m}=e;null!==m&&"undefined"!==typeof m||(m=1/0),Yd=a,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=i,this.tech_=s,this.vhs_=s.vhs,this.sourceType_=u,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=d,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:m,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=Vd(),this.mediaSource=new r.a.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=Nn(),this.hasPlayed_=!1,this.syncController_=new kd(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Od,this.sourceUpdater_=new yd(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Id,this.keyStatusMap_=new Map;const g={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:f,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:n,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:c,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new xo(t,this.vhs_,Mn(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new Fa(t,this.vhs_,Mn(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new nd(Mn(g,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new nd(Mn(g,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Sd(Mn(g,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>{function i(){s.off("vttjserror",r),e()}function r(){s.off("vttjsloaded",i),t()}s.one("vttjsloaded",i),s.one("vttjserror",r),s.addWebVttScript_()})}),e);const y=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new Wd(this.vhs_.xhr,y),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),Jd.forEach(e=>{this[e+"_"]=Kd.bind(this,e)}),this.logger_=Dn("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const v="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(v,()=>{const e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const s=this.media(),r=s&&(s.id||s.uri),n=e&&(e.id||e.uri);r&&r!==n&&(this.logger_(`switch media ${r} -> ${n} from ${t}`),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,s=this.contentSteeringController_.getPathway();if(i&&s){const t=i.length?i[0].playlists:i.playlists,r=t.filter(e=>e.attributes.serviceLocation===s);r.length&&this.mediaTypes_[e].activePlaylistLoader.media(r[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=r.a.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(r.a.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,s=Object.keys(i);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const e=i.main||s.length&&i[s[0]];for(const t in e)if(e[t].default){r={label:t};break}}if(!r)return t;const n=[];for(const a in i)if(i[a][r.label]){const t=i[a][r.label];if(t.playlists&&t.playlists.length)n.push.apply(n,t.playlists);else if(t.uri)n.push(t);else if(e.playlists.length)for(let i=0;i<e.playlists.length;i++){const t=e.playlists[i];t.attributes&&t.attributes.AUDIO&&t.attributes.AUDIO===a&&n.push(t)}}return n.length?n:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;ma(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),zd({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial");const i="vhs-json"===this.sourceType_&&this.initialMedia_.segments;if(!i)return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;ma(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();if("playlist-unchanged"===e.lastExcludeReason_)return;const t=this.stuckAtPlaylistEnd_(e);t&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let s=!0;const r=Object.keys(i.AUDIO);for(const n in i.AUDIO)for(const e in i.AUDIO[n]){const t=i.AUDIO[n][e];t.uri||(s=!1)}s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Yd.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),s=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),n=this.tech_.buffered();return Qd({buffered:n,currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:Xd}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let s=i;if(e.start){const r=e.start.timeOffset;s=r<0?Math.max(i+r,t.start(0)):Math.min(i,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){const t=this.seekable();if(!t.length)return!1;const i=this.syncController_.getExpiredTime(e,this.duration());if(null===i)return!1;const s=Yd.Playlist.playlistEnd(e,i),r=this.tech_.currentTime(),n=this.tech_.buffered();if(!n.length)return s-r<=Un;const a=n.end(n.length-1);return a-r<=Un&&s-a<=Un}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const s=this.mainPlaylistLoader_.main.playlists,r=s.filter(ua),n=1===r.length&&r[0]===e;if(1===s.length&&i!==1/0)return xn.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(n);if(n){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),i=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},i)}let t=!1;s.forEach(i=>{if(i===e)return;const s=i.excludeUntil;"undefined"!==typeof s&&s!==1/0&&(t=!0,delete i.excludeUntil)}),t&&(xn.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let a;a=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=a,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:xn.log.warn,d=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${d} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const u=o.targetDuration/2*1e3||5e3,c="number"===typeof o.lastRequest&&Date.now()-o.lastRequest<=u;return this.switchMedia_(o,"exclude",n||c)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],s="all"===e;(s||"main"===e)&&i.push(this.mainPlaylistLoader_);const r=[];(s||"audio"===e)&&r.push("AUDIO"),(s||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach(e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(t=>{const s=this[t+"SegmentLoader_"];!s||e!==t&&"all"!==e||i.push(s)}),i.forEach(e=>t.forEach(t=>{"function"===typeof e[t]&&e[t]()}))}setCurrentTime(e){const t=jn(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Yd.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let i=this.syncController_.getExpiredTime(t,this.duration());if(null===i)return;const s=this.mainPlaylistLoader_.main,r=Yd.Playlist.seekable(t,i,Yd.Playlist.liveEdgeDelay(s,t));if(0===r.length)return;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(t,this.duration()),null===i)return;if(e=Yd.Playlist.seekable(t,i,Yd.Playlist.liveEdgeDelay(s,t)),0===e.length)return}let n,a;this.seekable_&&this.seekable_.length&&(n=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=Nn([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===n&&this.seekable_.start(0)===a||(this.logger_(`seekable updated [${Hn(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let i=Yd.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const i in t)t[i].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=yl(this.main(),t),s={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=i.video||e.main.videoCodec||b["b"]),e.main.isMuxed&&(s.video+=","+(i.audio||e.main.audioCodec||b["a"])),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(s.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||b["a"],e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const n=(e,t)=>e?Object(b["c"])(t):Object(b["g"])(t),a={};let o;if(["video","audio"].forEach((function(t){if(s.hasOwnProperty(t)&&!n(e[t].isFmp4,s[t])){const i=e[t].isFmp4?"browser":"muxer";a[i]=a[i]||[],a[i].push(s[t]),"audio"===t&&(o=i)}})),r&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;this.main().playlists.forEach(i=>{const s=i.attributes&&i.attributes.AUDIO;s===e&&i!==t&&(i.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${s.audio}"`)}if(!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach(t=>{const i=(Object(b["h"])(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Object(b["h"])(s[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${s[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return s}{const e=Object.keys(a).reduce((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${a[t].join(",")}"`,e),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(i=>{const s=e[i];if(-1!==t.indexOf(s.id))return;t.push(s.id);const r=yl(this.main,s),n=[];!r.audio||Object(b["g"])(r.audio)||Object(b["c"])(r.audio)||n.push("audio codec "+r.audio),!r.video||Object(b["g"])(r.video)||Object(b["c"])(r.video)||n.push("video codec "+r.video),r.text&&"stpp.ttml.im1t"===r.text&&n.push("text codec "+r.text),n.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${n.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,s=ml(Object(b["h"])(e)),r=gl(s),n=s.video&&Object(b["h"])(s.video)[0]||null,a=s.audio&&Object(b["h"])(s.audio)[0]||null;Object.keys(i).forEach(e=>{const s=i[e];if(-1!==t.indexOf(s.id)||s.excludeUntil===1/0)return;t.push(s.id);const o=[],l=yl(this.mainPlaylistLoader_.main,s),d=gl(l);if(l.audio||l.video){if(d!==r&&o.push(`codec count "${d}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Object(b["h"])(l.video)[0]||null,t=l.audio&&Object(b["h"])(l.audio)[0]||null;e&&n&&e.type.toLowerCase()!==n.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${n.type}"`),t&&a&&t.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${a.type}"`)}o.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id}: ${o.join(" && ")}`))}})}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),Ed(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=Co.GOAL_BUFFER_LENGTH,i=Co.GOAL_BUFFER_LENGTH_RATE,s=Math.max(t,Co.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,s)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=Co.BUFFER_LOW_WATER_LINE,i=Co.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(t,Co.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Co.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:s)}bufferHighWaterLine(){return Co.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Ul(this.inbandTextTracks_,"com.apple.streaming",this.tech_),Rl({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Ul(this.inbandTextTracks_,e,this.tech_),Dl({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:s,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main(),t=this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering),i=()=>{const t=this.contentSteeringController_.getAvailablePathways(),i=[];for(const s of e.playlists){const e=s.attributes.serviceLocation;if(e&&(i.push(e),!t.has(e)))return!0}return!(i.length||!t.size)};(t||i())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main(),i=t.playlists,s=new Set;let r=!1;Object.keys(i).forEach(t=>{const n=i[t],a=this.pathwayAttribute_(n),o=a&&e!==a,l=n.excludeUntil===1/0&&"content-steering"===n.lastExcludeReason_;l&&!o&&(delete n.excludeUntil,delete n.lastExcludeReason_,r=!0);const d=!n.excludeUntil&&n.excludeUntil!==1/0,u=!s.has(n.id)&&o&&d;u&&(s.add(n.id),n.excludeUntil=1/0,n.lastExcludeReason_="content-steering",this.logger_(`excluding ${n.id} for ${n.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{const i=this.mediaTypes_[t];if(i.activePlaylistLoader){const t=i.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(r=!0)}}),r&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main(),t=e.playlists,i=this.contentSteeringController_.currentPathwayClones,s=this.contentSteeringController_.nextPathwayClones,r=i&&i.size||s&&s.size;if(r){for(const[e,t]of i.entries()){const i=s.get(e);i||(this.mainPlaylistLoader_.updateOrDeleteClone(t),this.contentSteeringController_.excludePathway(e))}for(const[e,r]of s.entries()){const s=i.get(e);if(s)this.equalPathwayClones_(s,r)||(this.mainPlaylistLoader_.updateOrDeleteClone(r,!0),this.contentSteeringController_.addAvailablePathway(e));else{const i=t.filter(e=>e.attributes["PATHWAY-ID"]===r["BASE-ID"]);i.forEach(e=>{this.mainPlaylistLoader_.addClonePathway(r,e)}),this.contentSteeringController_.addAvailablePathway(e)}}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...s])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,s=t["URI-REPLACEMENT"].PARAMS;for(const r in i)if(i[r]!==s[r])return!1;for(const r in s)if(i[r]!==s[r])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const s=this.mainPlaylistLoader_.getKeyIdSet(i);s&&s.size&&s.forEach(s=>{const r="usable",n=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===r,a=i.lastExcludeReason_===t&&i.excludeUntil===1/0;n?n&&a&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${r}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${r}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{const i=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,s=e.excludeUntil===1/0&&e.lastExcludeReason_===t;i&&s&&(delete e.excludeUntil,xn.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const i="string"===typeof e,s=i?e:bd(e),r=s.slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${r} added to the keyStatusMap`),this.keyStatusMap_.set(r,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const eu=(e,t,i)=>s=>{const r=e.main.playlists[t],n=da(r),a=ua(r);return"undefined"===typeof s?a:(s?delete r.disabled:r.disabled=!0,s===a||n||(i(),s?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),s)};class tu{constructor(e,t,i){const{playlistController_:s}=e,r=s.fastQualityChange_.bind(s);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=yl(s.main(),t),this.playlist=t,this.id=i,this.enabled=eu(e.playlists,t.id,r)}}const iu=function(e){e.representations=()=>{const t=e.playlistController_.main(),i=va(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(e=>!da(e)).map((t,i)=>new tu(e,t,t.id)):[]}},su=["seeking","seeked","pause","playing","error"];class ru{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Dn("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),n=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(e=>{l[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},a[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),a[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),this.tech_.on(["seeked","seeking"],l[e].reset)});const d=e=>{["main","audio"].forEach(t=>{a[t+"SegmentLoader_"][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),d("off"))},this.clearSeekingAppendCheck_=()=>d("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),d("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(su,n),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(su,n),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(e=>{a[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),a[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),this.tech_.off(["seeked","seeking"],l[e].reset)}),this.checkCurrentTimeTimeout_&&r.a.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&r.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=r.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[e+"SegmentLoader_"],s=i.buffered_(),r=Gn(this[e+"Buffered_"],s);this[e+"Buffered_"]=s,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_(`found #${this[e+"StalledDownloads_"]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:Vn(s)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0})))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Un>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){const e=this.tech_.seeking();if(!e)return!1;const t=this.seekable(),i=this.tech_.currentTime(),s=this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let r;if(s){const e=t.end(t.length-1);r=e}if(this.beforeSeekableWindow_(t,i)){const e=t.start(0);r=e+(e===t.end(0)?0:Un)}if("undefined"!==typeof r)return this.logger_(`Trying to seek outside of seekable at time ${i} with seekable range ${Hn(t)}. Seeking to `+r+"."),this.tech_.setCurrentTime(r),!0;const n=this.playlistController_.sourceUpdater_,a=this.tech_.buffered(),o=n.audioBuffer?n.audioBuffered():null,l=n.videoBuffer?n.videoBuffered():null,d=this.media(),u=d.partTargetDuration?d.partTargetDuration:2*(d.targetDuration-Rn),c=[o,l];for(let p=0;p<c.length;p++){if(!c[p])continue;const e=Xn(c[p],i);if(e<u)return!1}const h=Fn(a,i);return 0!==h.length&&(r=h.start(0)+Un,this.logger_(`Buffered region starts (${h.start(0)}) just beyond seek point (${i}). Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=jn(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const i=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) `+i),this.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered(),r=this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t});if(r)return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const n=Fn(s,t);return n.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${n.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,s=!1){if(!e.length)return!1;let r=e.end(e.length-1)+Un;const n=!i.endList,a="number"===typeof i.partTargetDuration;return n&&(a||s)&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let s;if(e.length&&t.length){const r=jn(e,i-3),n=jn(e,i),a=jn(t,i);a.length&&!n.length&&r.length&&(s={start:r.end(0),end:a.end(0)})}else{const t=Fn(e,i);t.length||(s=this.gapFromVideoUnderflow_(e,i))}return!!s&&(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time `+i),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),s=Fn(t,i);this.resetTimeUpdate_(),0!==s.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+Rn),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,t){const i=qn(e);for(let s=0;s<i.length;s++){const e=i.start(s),r=i.end(s);if(t-e<4&&t-e>2)return{start:e,end:r}}return null}}const nu={errorInterval:30,getSource(e){const t=this.tech({IWillNotUseThisInPlugins:!0}),i=t.currentSource_||this.currentSource();return e(i)}},au=function(e,t){let i=0,s=0;const r=Mn(nu,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){s&&e.currentTime(s)},a=function(t){null!==t&&void 0!==t&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",n),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){if(Date.now()-i<1e3*r.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"===typeof r.getSource)return i=Date.now(),r.getSource.call(e,a);xn.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",n),e.off("error",o),e.off("dispose",l)},d=function(t){l(),au(e,t)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=d},ou=function(e){au(this,e)};var lu="3.10.0",du="7.0.2",uu="1.3.0",cu="7.1.0",hu="4.0.1";const pu={PlaylistLoader:Fa,Playlist:ba,utils:so,STANDARD_PLAYLIST_SELECTOR:xl,INITIAL_PLAYLIST_SELECTOR:Il,lastBandwidthSelector:xl,movingAverageBandwidthSelector:Cl,comparePlaylistBandwidth:Sl,comparePlaylistResolution:wl,xhr:Va()};Object.keys(Co).forEach(e=>{Object.defineProperty(pu,e,{get(){return xn.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),Co[e]},set(t){xn.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!==typeof t||t<0?xn.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):Co[e]=t}})});const fu="videojs-vhs",mu=function(e,t){const i=t.media();let s=-1;for(let r=0;r<e.length;r++)if(e[r].id===i.id){s=r;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})},gu=function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),mu(e,t.playlists)};pu.canPlaySource=function(){return xn.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const yu=(e,t,i)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=ml(Object(b["h"])(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(s.audio=i.attributes.CODECS);const r=Object(b["e"])(s.video),n=Object(b["e"])(s.audio),a={};for(const o in e)a[o]={},n&&(a[o].audioContentType=n),r&&(a[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(a[o].pssh=t.contentProtection[o].pssh),"string"===typeof e[o]&&(a[o].url=e[o]);return Mn(e,a)},vu=(e,t)=>e.reduce((e,i)=>{if(!i.contentProtection)return e;const s=t.reduce((e,t)=>{const s=i.contentProtection[t];return s&&s.pssh&&(e[t]={pssh:s.pssh}),e},{});return Object.keys(s).length&&e.push(s),e},[]),bu=({player:e,sourceKeySystems:t,audioMedia:i,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=i?s.concat([i]):s,n=vu(r,Object.keys(t)),a=[],o=[];return n.forEach(t=>{o.push(new Promise((t,i)=>{e.tech_.one("keysessioncreated",t)})),a.push(new Promise((i,s)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?s(e):i()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},_u=({player:e,sourceKeySystems:t,media:i,audioMedia:s})=>{const r=yu(t,i,s);return!!r&&(e.currentSource().keySystems=r,!(r&&!e.eme)||(xn.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},Tu=()=>{if(!r.a.localStorage)return null;const e=r.a.localStorage.getItem(fu);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}},Su=e=>{if(!r.a.localStorage)return!1;let t=Tu();t=t?Mn(t,e):e;try{r.a.localStorage.setItem(fu,JSON.stringify(t))}catch(i){return!1}return t},wu=e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,Eu=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},xu=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},Cu=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},ku=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};pu.supportsNativeHls=function(){if(!a.a||!a.a.createElement)return!1;const e=a.a.createElement("video");if(!xn.getTech("Html5").isSupported())return!1;const t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),pu.supportsNativeDash=function(){return!!(a.a&&a.a.createElement&&xn.getTech("Html5").isSupported())&&/maybe|probably/i.test(a.a.createElement("video").canPlayType("application/dash+xml"))}(),pu.supportsTypeNatively=e=>"hls"===e?pu.supportsNativeHls:"dash"===e&&pu.supportsNativeDash,pu.isSupported=function(){return xn.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},pu.xhr.onRequest=function(e){Eu(pu.xhr,e)},pu.xhr.onResponse=function(e){xu(pu.xhr,e)},pu.xhr.offRequest=function(e){Cu(pu.xhr,e)},pu.xhr.offResponse=function(e){ku(pu.xhr,e)};const Iu=xn.getComponent("Component");class Pu extends Iu{constructor(e,t,i){if(super(t,i.vhs),"number"===typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=Dn("VhsHandler"),t.options_&&t.options_.playerId){const e=xn.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(a.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{const t=a.a.fullscreenElement||a.a.webkitFullscreenElement||a.a.mozFullScreenElement||a.a.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=Mn(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!==typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=Tu();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=Co.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Co.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{"undefined"!==typeof this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=wu(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=pu,this.options_.sourceType=Object(_["a"])(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.playlistController_=new Zd(this.options_);const i=Mn({liveRangeSafeTimeDelta:Un},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ru(i),this.playlistController_.on("error",()=>{const e=xn.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!==typeof t||t.code?"string"===typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});const s=this.options_.bufferBasedABR?pu.movingAverageBandwidthSelector(.55):pu.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=pu.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=r.a.navigator.connection||r.a.navigator.mozConnection||r.a.navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&t){const s=1e3*t.downlink*1e3;e=s>=i&&e>=i?Math.max(e,s):s}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;t=this.throughput>0?1/this.throughput:0;const i=Math.floor(1/(e+t));return i},set(){xn.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>Vn(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>Vn(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&Su({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{iu(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.playlistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=r.a.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),bu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=_u({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=xn.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{gu(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{mu(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":lu,"mux.js":du,"mpd-parser":uu,"m3u8-parser":cu,"aes-decrypter":hu}}version(){return this.constructor.version()}canChangeType(){return yd.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&r.a.URL.revokeObjectURL&&(r.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return ho({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,s=2){return po({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{Eu(this.xhr,e)},this.xhr.onResponse=e=>{xu(this.xhr,e)},this.xhr.offRequest=e=>{Cu(this.xhr,e)},this.xhr.offResponse=e=>{ku(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const Ou={name:"videojs-http-streaming",VERSION:lu,canHandleSource(e,t={}){const i=Mn(xn.options,t);return Ou.canPlayType(e.type,i)},handleSource(e,t,i={}){const s=Mn(xn.options,i);return t.vhs=new Pu(e,t,s),t.vhs.xhr=Va(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const i=Object(_["a"])(e);if(!i)return"";const s=Ou.getOverrideNative(t),r=pu.supportsTypeNatively(i),n=!r||s;return n?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,i=!(xn.browser.IS_ANY_SAFARI||xn.browser.IS_IOS),{overrideNative:s=i}=t;return s}},Lu=()=>Object(b["c"])("avc1.4d400d,mp4a.40.2");Lu()&&xn.getTech("Html5").registerSourceHandler(Ou,0),xn.VhsHandler=Pu,xn.VhsSourceHandler=Ou,xn.Vhs=pu,xn.use||xn.registerComponent("Vhs",pu),xn.options.vhs=xn.options.vhs||{},xn.getPlugin&&xn.getPlugin("reloadSourceOnError")||xn.registerPlugin("reloadSourceOnError",ou)}).call(this,i("c8ba"))},f526:function(e,t,i){"use strict";i("e40e")},f6b4:function(e,t,i){"use strict";var s=i("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f772:function(e,t,i){"use strict";var s=i("5692"),r=i("90e3"),n=s("keys");e.exports=function(e){return n[e]||(n[e]=r(e))}},f8a8:function(e,t,i){"use strict";i.d(t,"a",(function(){return P})),i.d(t,"b",(function(){return O}));var s,r=i("de66"),n=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"===typeof e?Object(r["h"])(e):e}),a=function(e){return Array.isArray(e)?e.map((function(e){return n(e)})):[n(e)]},o=function(e){e=Object(r["k"])(e);var t=[],i=0;while(e.length>i){var n=e[i],a=0,o=0;o++;var l=e[o];o++;while(128&l)a=(127&l)<<7,l=e[o],o++;a+=127&l;for(var d=0;d<s.length;d++){var u=s[d],c=u.id,h=u.parser;if(n===c){t.push(h(e.subarray(o,o+a)));break}}i+=a+o}return t};s=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var i=e[t.size];t.url=Object(r["c"])(e.subarray(t.size+1,t.size+1+i)),t.size+=i}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=o(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:o(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var l=function e(t,i,s){void 0===s&&(s=!1),i=a(i),t=Object(r["k"])(t);var n=[];if(!i.length)return n;var o=0;while(o<t.length){var l=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,d=t.subarray(o+4,o+8);if(0===l)break;var u=o+l;if(u>t.length){if(s)break;u=t.length}var c=t.subarray(o+8,u);Object(r["a"])(d,i[0])&&(1===i.length?n.push(c):n.push.apply(n,e(c,i.slice(1),s))),o=u}return n},d={EBML:Object(r["k"])([26,69,223,163]),DocType:Object(r["k"])([66,130]),Segment:Object(r["k"])([24,83,128,103]),SegmentInfo:Object(r["k"])([21,73,169,102]),Tracks:Object(r["k"])([22,84,174,107]),Track:Object(r["k"])([174]),TrackNumber:Object(r["k"])([215]),DefaultDuration:Object(r["k"])([35,227,131]),TrackEntry:Object(r["k"])([174]),TrackType:Object(r["k"])([131]),FlagDefault:Object(r["k"])([136]),CodecID:Object(r["k"])([134]),CodecPrivate:Object(r["k"])([99,162]),VideoTrack:Object(r["k"])([224]),AudioTrack:Object(r["k"])([225]),Cluster:Object(r["k"])([31,67,182,117]),Timestamp:Object(r["k"])([231]),TimestampScale:Object(r["k"])([42,215,177]),BlockGroup:Object(r["k"])([160]),BlockDuration:Object(r["k"])([155]),Block:Object(r["k"])([161]),SimpleBlock:Object(r["k"])([163])},u=[128,64,32,16,8,4,2,1],c=function(e){for(var t=1,i=0;i<u.length;i++){if(e&u[i])break;t++}return t},h=function(e,t,i,s){void 0===i&&(i=!0),void 0===s&&(s=!1);var n=c(e[t]),a=e.subarray(t,t+n);return i&&(a=Array.prototype.slice.call(e,t,t+n),a[0]^=u[n-1]),{length:n,value:Object(r["b"])(a,{signed:s}),bytes:a}},p=function e(t){return"string"===typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"===typeof t?Object(r["f"])(t):t},f=function(e){return Array.isArray(e)?e.map((function(e){return p(e)})):[p(e)]},m=function e(t,i,s){if(s>=i.length)return i.length;var n=h(i,s,!1);if(Object(r["a"])(t.bytes,n.bytes))return s;var a=h(i,s+n.length);return e(t,i,s+a.length+a.value+n.length)},g=function e(t,i){i=f(i),t=Object(r["k"])(t);var s=[];if(!i.length)return s;var n=0;while(n<t.length){var a=h(t,n,!1),o=h(t,n+a.length),l=n+a.length+o.length;127===o.value&&(o.value=m(a,t,l),o.value!==t.length&&(o.value-=l));var d=l+o.value>t.length?t.length:l+o.value,u=t.subarray(l,d);Object(r["a"])(i[0],a.bytes)&&(1===i.length?s.push(u):s=s.concat(e(u,i.slice(1))));var c=a.length+o.length+u.length;n+=c}return s},y=i("321f"),v=Object(r["k"])([0,0,0,1]),b=Object(r["k"])([0,0,1]),_=Object(r["k"])([0,0,3]),T=function(e){var t=[],i=1;while(i<e.length-2)Object(r["a"])(e.subarray(i,i+3),_)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var s=e.length-t.length,n=new Uint8Array(s),a=0;for(i=0;i<s;a++,i++)a===t[0]&&(a++,t.shift()),n[i]=e[a];return n},S=function(e,t,i,s){void 0===s&&(s=1/0),e=Object(r["k"])(e),i=[].concat(i);var n,a=0,o=0;while(a<e.length&&(o<s||n)){var l=void 0;if(Object(r["a"])(e.subarray(a),v)?l=4:Object(r["a"])(e.subarray(a),b)&&(l=3),l){if(o++,n)return T(e.subarray(n,a));var d=void 0;"h264"===t?d=31&e[a+l]:"h265"===t&&(d=e[a+l]>>1&63),-1!==i.indexOf(d)&&(n=a+l),a+=l+("h264"===t?1:2)}else a++}return e.subarray(0,0)},w=function(e,t,i){return S(e,"h264",t,i)},E=function(e,t,i){return S(e,"h265",t,i)},x={webm:Object(r["k"])([119,101,98,109]),matroska:Object(r["k"])([109,97,116,114,111,115,107,97]),flac:Object(r["k"])([102,76,97,67]),ogg:Object(r["k"])([79,103,103,83]),ac3:Object(r["k"])([11,119]),riff:Object(r["k"])([82,73,70,70]),avi:Object(r["k"])([65,86,73]),wav:Object(r["k"])([87,65,86,69]),"3gp":Object(r["k"])([102,116,121,112,51,103]),mp4:Object(r["k"])([102,116,121,112]),fmp4:Object(r["k"])([115,116,121,112]),mov:Object(r["k"])([102,116,121,112,113,116]),moov:Object(r["k"])([109,111,111,118]),moof:Object(r["k"])([109,111,111,102])},C={aac:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=g(e,[d.EBML,d.DocType])[0];return Object(r["a"])(t,x.webm)},mkv:function(e){var t=g(e,[d.EBML,d.DocType])[0];return Object(r["a"])(t,x.matroska)},mp4:function(e){return!C["3gp"](e)&&!C.mov(e)&&(!(!Object(r["a"])(e,x.mp4,{offset:4})&&!Object(r["a"])(e,x.fmp4,{offset:4}))||(!(!Object(r["a"])(e,x.moof,{offset:4})&&!Object(r["a"])(e,x.moov,{offset:4}))||void 0))},mov:function(e){return Object(r["a"])(e,x.mov,{offset:4})},"3gp":function(e){return Object(r["a"])(e,x["3gp"],{offset:4})},ac3:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,x.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+188<e.length&&t<188){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,x.flac,{offset:t})},ogg:function(e){return Object(r["a"])(e,x.ogg)},avi:function(e){return Object(r["a"])(e,x.riff)&&Object(r["a"])(e,x.avi,{offset:8})},wav:function(e){return Object(r["a"])(e,x.riff)&&Object(r["a"])(e,x.wav,{offset:8})},h264:function(e){return w(e,7,3).length},h265:function(e){return E(e,[32,33],3).length}},k=Object.keys(C).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);k.forEach((function(e){var t=C[e];C[e]=function(e){return t(Object(r["k"])(e))}}));var I=C,P=function(e){e=Object(r["k"])(e);for(var t=0;t<k.length;t++){var i=k[t];if(I[i](e))return i}return""},O=function(e){return l(e,["moof"]).length>0}},f955:function(e,t,i){},f97d:function(e,t){var i={"":!0,up:!0};function s(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function n(){var e=100,t=3,i=0,n=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");n=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=s(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}e.exports=n},fb15:function(e,t,i){"use strict";if(i.r(t),i.d(t,"cms",(function(){return Gt})),"undefined"!==typeof window){var s=window.document.currentScript,r=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(i.p=r[1])}var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"cms"},[t("div",{class:["lay-wrap",{mobile:"mobile"==e.mode}],style:{width:("pc"==e.mode?1920:750)*e.ratio+"px"}},e._l(e.cmsList,(function(i){return t("div",{key:i.sort,staticClass:"lay-item"},[t("div",{staticClass:"layout-set",style:{width:i.attributeJson.layoutStyle&&2===i.attributeJson.layoutStyle.widthStyle.type?i.attributeJson.layoutStyle.widthStyle.width+"%":"100%",height:i.attributeJson.layoutStyle?Math.round(i.attributeJson.layoutStyle.height*e.ratio)+"px":"auto"}},[t(e.layOutObj[i.layoutType],e._g(e._b({ref:"layModule",refInFor:!0,tag:"component",attrs:{layOutData:i.attributeJson,sort:i.attributeJson.sort,ratio:e.ratio,mode:e.mode,recordId:i.originalId,envUrl:e.envUrl,path:e.path,isClient:e.isClient},scopedSlots:e._u([{key:"customComponent",fn:function(t){return 3==i.layoutType?[e._t("customComponent",null,{attributeJson:t.attributeJson})]:void 0}},{key:"dgCustomComponent",fn:function(t){return[e._t("dgCustomComponent",null,{data:t.attributeJson})]}}],null,!0)},"component",e.$attrs,!1),e.$listeners))],1)])})),0)])},a=[],o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"single-layout",style:e.layoutStyle},[t("div",{staticStyle:{width:"100%",height:"100%"}},[e._l(e.layOutData.componentList.filter(e=>e.type<=100),(function(i,s){return t("div",{key:s},[1==i.displayType?t(i.component,e._g(e._b({key:i.sort,ref:"singleComponent",refInFor:!0,tag:"component",style:{zIndex:s+1},attrs:{ratio:e.ratio,attributeJson:i.attributeJson,sortId:i.sort,envUrl:e.envUrl,stopReport:e.stopReport,extraCategory:e.extraCategory}},"component",e.$attrs,!1),e.$listeners)):e._e()],1)})),t("div",[e._t("dgCustomComponent",null,{attributeJson:e.getCustom()})],2)],2)])},l=[],d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"text-wrap entrance-con",style:[e.conStyle,e.animationInStyle],attrs:{"data-sensors-click":"","data-sensorsClick":e.attributeJson&&e.attributeJson.linkObj&&e.attributeJson.linkObj.jumpLinkType?"true":"false",id:`entrance_${e.recordId}_${e.sortId}`,name:`entrance_${e.recordId}_${e.sortId}`},on:{click:e.pageClick}},[t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl},expression:"{ data: tipReportData, envUrl }"}],ref:"text"+e.sortId,class:["text-con","text-con-"+e.sortId,e.animationInObj.type?e.enterClass:""],domProps:{innerHTML:e._s(e.attributeJson.label)}})])},u=[],c=(i("be35"),i("a7a3"),i("77ed"),i("1e09"),i("fda2"),i("14d9"),i("bc3a")),h=i.n(c);const p={json:"application/json;",form:"application/x-www-form-urlencoded;",html:"text/html;",file:"multipart/form-data",excel:"msexcel",xml:"application/xml",javascript:"application/x-javascript;charset=utf-8"},f={lang:"Accept-Language",contentType:"Content-Type"};function m(e){if(200===e.status){let t=e.data;return"0"===t.errorCode?t.data:e.data}}h.a.interceptors.response.use(m,e=>Promise.reject(e));class g{static async call(e,{method:t="get",headers:i={},body:s=null,responseType:r=null}={}){let n=e,a={method:t,url:n,responseType:r||"json",headers:i};"get"===t?a.params=s:a.data=s;const o=await h()(a).catch(e=>{e.response?console.error(e.response.status,e.response.data):e.request?console.error(e.request):console.error("Error",e.message?e.message:"")});return o}static get(e,{mask:t=!0,external:i=!1,headers:s={}}={}){return g.call(e,{headers:s,external:i,mask:t})}static postBody(e,{body:t={},language:i="zh-CN",module:s="",method:r="post",mask:n=!0,postData:a=!0,external:o=!1,headers:l={},compat:d}){return g.call(e,{module:s,method:r,headers:Object.assign(l,{[f.contentType]:p.json,common:{languageCode:i}}),body:t,postData:a,external:o,mask:n,compat:d})}}class y{getProductInfo(e,t,i){return g.postBody(e+"service-zuul/manage/search/plp/standard",{body:t,language:i})}getSortProductInfo(e,t,i){return g.postBody(e+"service-zuul/manage/search/cms/sort",{body:t,language:i})}dataSaveDecorationPageComponentEvent(e,t){return g.postBody(e+"service-zuul/data/collect/acquisition",{body:t})}acquisitionBatch(e,t){return g.postBody(e+"/service-zuul/data/collect/acquisitionBatch",{body:t})}}const v=new y;class b{constructor(){this.intersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(_(e,this.intersectionObserver),this.intersectionObserver.unobserve(e.target))})}),this.interval=T()}observe(e,t){e.setAttribute("report-data",JSON.stringify(t.value?t.value.data:null)),this.intersectionObserver.observe(e)}disconnect(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),sessionStorage.setItem("reportData","[]"),this.interval&&(clearInterval(this.interval),this.interval=null))}static getInstance(e){return this.instance||(this.instance=new b),e&&(this.instance.envUrl=e.value?e.value.envUrl:this.instance.envUrl),this.instance}}const _=function(e,t){const i=e.target,s=i.getAttribute("report-data");let r=JSON.parse(sessionStorage.getItem("reportData")||null)||[];"null"!=s&&"undefined"!=s?(r.push(s),sessionStorage.setItem("reportData",JSON.stringify(r))):t.unobserve(i)},T=function(){let e=setInterval(()=>{let e=JSON.parse(sessionStorage.getItem("reportData")||null)||[];e.length>0&&(sessionStorage.setItem("reportData","[]"),S(e))},1500);return e},S=function(e){let t=e.map(e=>w(e)),i=b.getInstance().envUrl;i&&v.acquisitionBatch(i,t)},w=function(e){let t=JSON.parse(e);const i={source:"",medium:"",commodity_id:t.popData&&t.popData.productCode||"",commodity_name:t.popData&&t.popData.selectDataShow||"",commodity_sku_id:"",component_name:t.uniqueName,component_id:t.uniqueId,component_type:t.componentType,hot_zone_id:t.popData&&t.popData.uniqueId||"",hot_zone_name:t.popData&&t.popData.uniqueName||"",material_id:t.materialId,material_name:t.materialName,url_path:t.path||"/",refer_info:t.refererPagePath,position:t.position,trigger_Method_Type:t.componentMethodType};let s="";return localStorage.getItem(t.brand+"Cookie")?s=localStorage.getItem(t.brand+"Cookie"):(s=`${parseInt((new Date).getTime())}${Math.floor(1e4*Math.random())}`,localStorage.setItem(t.brand+"Cookie",s)),{eventProperty:JSON.stringify({...i}),event:t.event,distinctId:s}};var E={bind(e,t){"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&b.getInstance(t).observe(e,t)},unbind(){b.getInstance().disconnect()}};function x(e,t,i){const s=new y,r={source:"",medium:"",commodity_id:e.popData.productCode||"",commodity_name:e.popData.selectDataShow||"",commodity_sku_id:"",component_name:e.uniqueName,component_id:e.uniqueId,component_type:e.componentType,hot_zone_id:e.popData.uniqueId||"",hot_zone_name:e.popData.uniqueName||"",material_id:e.materialId,material_name:e.materialName,url_path:e.path,refer_info:e.refererPagePath,position:e.position,trigger_Method_Type:e.componentMethodType};let n="";localStorage.getItem(e.brand+"Cookie")?n=localStorage.getItem(e.brand+"Cookie"):(n=`${parseInt((new Date).getTime())}${Math.floor(1e4*Math.random())}`,localStorage.setItem(e.brand+"Cookie",n));let a={eventProperty:JSON.stringify({...r}),event:e.event,distinctId:n};if("click"==i||"exposure"==i)return a;s.dataSaveDecorationPageComponentEvent(t,a)}function C(e,t){var i=null,s=Date.now();return function(){var r=Date.now(),n=t-(r-s),a=this,o=arguments;clearTimeout(i),n<=0?(e.apply(a,o),s=Date.now()):i=setTimeout(e,n)}}function k(e){var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}const I={inheritAttrs:!1,props:{attributeJson:{type:Object,default:function(){}},item:{type:Object,default:()=>{}},ratio:{type:Number,default:1},envUrl:{type:String,default:""},fontRatio:{type:Number,default:1},mode:{type:String,default:"pc"},language:{type:String,default:"zh-CN"},sortId:{type:Number,default:0},sort:{type:[String,Number],default:0},recordId:{type:[String,Number],default:0},refererPagePath:{type:String},brand:{type:String},path:{type:String},isClient:{type:Boolean,default:!0}},data(){return{scrollHandle:C(this.scrollThrottle,200),hoverStyle:{},hoverStyleShow:!1,hoverImage:"",fillStyle:{},hoverDirection:"",finishAnimation:!1,entranceShow:!0,enterClass:"",animationInStyle:{},entranceAnimate:{fade:"animate__animated animate__fadeIn",scale:"animate__animated animate__zoomIn"}}},computed:{animationInObj:function(){return this.attributeJson.animationInObj},animationHoverObj:function(){return this.attributeJson.animationHoverObj},baseStyle(){return this.attributeJson.baseStyle},styleType(){return this.attributeJson.styleType},conStyle(){let{attributeJson:e,ratio:t}=this;return{width:Math.round(e.baseStyle.w*t)+"px",height:Math.round(e.baseStyle.h*t)+"px",left:Math.round(e.baseStyle.l*t)+"px",top:Math.round(e.baseStyle.t*t)+"px"}}},watch:{animationHoverObj:{handler(e){this.disposeHoverAnimate(e)},immediate:!0,deep:!0},animationInObj:{handler(){let{type:e,direction:t,delay:i,duration:s}=this.attributeJson.animationInObj;e&&(this.enterClass="",this.enterClass=this.entranceAnimate[e],this.animationInStyle={animationDuration:s+"s",amimationDelay:i+"s",animationName:"slide"!=e?this.entranceAnimate[e]:t,animationPlayState:"paused"})},immediate:!0}},methods:{isInCurrentScreenArea(){const{top:e}=this.$el.getBoundingClientRect();return e<=window.innerHeight-100},scrollThrottle(){this.isInCurrentScreenArea()&&!this.finishAnimation&&(this.animationInStyle.animationName&&(this.$el.style.animationPlayState="running"),this.finishAnimation=!0,this.endObserver())},startObserver(){window.addEventListener("scroll",this.scrollHandle,!0)},endObserver(){window.removeEventListener("scroll",this.scrollHandle,!0)},disposeHoverAnimate(e){let t={};if(2===e.type){let i=e.borderStyle;if(1==i.type&&(t={border:i.borderColor?"2px solid "+i.borderColor:"none"}),2==i.type){let{borderTop:e,borderRight:s,borderBottom:r,borderLeft:n}=i;t={borderTop:e?"2px solid "+e:"none",borderRight:s?"2px solid "+s:"none",borderBottom:r?"2px solid "+r:"none",borderLeft:n?"2px solid "+n:"none"}}}if(3===e.type&&(t={transform:"scale(1.2)",transformOrigin:"center center"}),4===e.type&&(this.hoverDirection=e.bgStyle.direction),5===e.type){let{hoverImgList:t}=e;this.hoverImage=t[0]?t[0].resourcePath:""}this.hoverStyle=t},onDrag:function(e,t){let i=this.ratio;this.attributeJson.baseStyle.l=e/i,this.attributeJson.baseStyle.t=t/i,this.$set(this.attributeJson,"baseStyle",this.attributeJson.baseStyle)},onResize:function(e,t,i,s){let r=this.ratio,n=this.attributeJson.baseStyle;n={w:i/r,h:s/r,l:e/r,t:t/r,isLocked:n.isLocked},this.$set(this.attributeJson,"baseStyle",n)},getRefLineParams(e){this.$emit("getRefLineParams",e)}},directives:{hoverAnimate:{inserted:function(e,t,i){e.onmouseover=function(){i.context.hoverStyleShow=!0,t.value&&(i.context[t.value.key]=t.value.value)},e.onmouseleave=function(){i.context.hoverStyleShow=!1,t.value&&(i.context[t.value.key]=-1)}}},treport:E}};var P={name:"textItem",mixins:[I],components:{},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},data(){return{sensorsIsRes:!1}},computed:{tipReportData(){return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:12,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:1,event:"bannerShow"}}},methods:{needSensorsRep(){},pageClick(){var e;let t=JSON.parse(JSON.stringify(this.tipReportData));if(t.event="bannerClick",this.attributeJson.linkObj.jumpLinkType)try{let e=x(t,this.envUrl,"click"),i=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",i)}catch(l){console.error(l)}var i,s,r,n,a,o;null!==(e=this.attributeJson)&&void 0!==e&&null!==(e=e.linkObj)&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.attributeJson,propsObject:x(JSON.parse(JSON.stringify(t)),this.envUrl,"click"),reportData:t,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isSpecial:!0,noLabel:!0}});this.$emit("jumpLink",this.attributeJson.linkObj)}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},O=P,L=O;i("ac5f");function A(e,t,i,s,r,n,a,o){var l,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),s&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):r&&(l=o?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var u=d.render;d.render=function(e,t){return l.call(t),u(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}var D=A(L,d,u,!1,null,"010b2a5e",null),M=D.exports,N=M,R=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],key:e.attributeJson.sort,staticClass:"image-list entrance-con",style:{width:Math.ceil(e.attributeJson.baseStyle.w*e.ratio)+"px",height:Math.round(e.attributeJson.baseStyle.h*e.ratio)+"px",left:Math.round(e.attributeJson.baseStyle.l*e.ratio)+"px",top:Math.round(e.attributeJson.baseStyle.t*e.ratio)+"px",...e.animationInStyle}},[e.hasConfig?[t("div",{ref:"img"+e.attributeJson.sort,class:["image-warp","image-warp-"+e.sortId],style:{animationDuration:e.animationInObj.duration+"s"}},[e.isSwiper?t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"}],style:[e.picStyle,3===e.animationHoverObj.type&&e.hoverStyleShow?e.hoverStyle:""]},[t("div",{ref:"swiper-container"+e.sortId,class:["swiper-container swiper-container-"+e.sortId]},[t("div",{staticClass:"swiper-wrapper",style:{height:(e.baseStyle.h-(e.hasScrollBar?30:0))*e.ratio+"px!important"}},e._l(e.attributeJson.list,(function(i,s){var r,n,a;return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:i.id,ref:`${e.sortId}${s}`,refInFor:!0,staticClass:"swiper-slide",style:{width:e.baseStyle.w/4*e.ratio+"px"}},[t("div",{staticClass:"slide-con",style:{height:(e.baseStyle.h-(e.hasScrollBar?30:0))*e.ratio+"px"}},[t("img",{attrs:{src:(null===i||void 0===i||null===(r=i.picList)||void 0===r?void 0:r.length)>0&&null!==i&&void 0!==i&&null!==(n=i.picList[0])&&void 0!==n&&n.resourcePath?i.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(a=i.picList)||void 0===a?void 0:a.length)>0&&i.picList[0].resourceName?i.picList[0].resourceName.split(".")[0]:""}}),0!=i.picList.length&&0!=i.popList.length?[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{componentType:2,parentItem:e.attributeJson,item:i,ratio:e.ratio,path:e.path,envUrl:e.envUrl,sortId:e.sortId,recordId:e.recordId,laySort:e.sort,brand:e.brand,uniqueName:e.attributeJson.uniqueName,language:e.language,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))]:e._e()],2)])})),0),e.hasSwiperButton?t("div",{class:"swiper-button-prev swiper-button-prev-"+e.sortId},[e._t("swiper-button-prev",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconleft"})]):e._e()]}))],2):e._e(),e.hasSwiperButton?t("div",{class:"swiper-button-next swiper-button-next-"+e.sortId},[e._t("swiper-button-next",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconright"})]):e._e()]}))],2):e._e(),e.hasScrollBar?t("div",{class:"swiper-scrollbar swiper-scrollbar-"+e.sortId}):e._e()]),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.hoverStyleShow?1:0}]}):e._e()]):t("div",{class:["image-warp",3==e.styleType&&"pc"!=e.mode?"image-type3":""],style:[e.picStyle,3===e.animationHoverObj.type&&e.hoverStyleShow?e.hoverStyle:""]},e._l(e.attributeJson.list,(function(i,s){var r,n,a,o;return t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"},{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:s,ref:`${e.sortId}${s}`,refInFor:!0,staticClass:"image-item",style:[e.picItemStyle]},[t("img",{class:{contain:1!=e.styleType},attrs:{src:(null===i||void 0===i||null===(r=i.picList)||void 0===r?void 0:r.length)>0&&null!==i&&void 0!==i&&null!==(n=i.picList[0])&&void 0!==n&&n.resourcePath?i.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(a=i.picList)||void 0===a?void 0:a.length)>0&&null!==i&&void 0!==i&&null!==(o=i.picList[0])&&void 0!==o&&o.resourceName?i.picList[0].resourceName.split(".")[0]:""}}),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.hoverStyleShow?1:0}]}):e._e(),5===e.animationHoverObj.type&&e.hoverImage&&e.hoverStyleShow?t("img",{staticClass:"hover-image",attrs:{src:e.hoverImage,alt:""}}):e._e(),0!=i.picList.length&&0!=i.popList.length?t("div",[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{isSpecial:!0,parentItem:e.attributeJson,item:i,ratio:e.ratio,path:e.path,brand:e.brand,envUrl:e.envUrl,sortId:e.sortId,recordId:e.recordId,componentType:2,uniqueName:e.attributeJson.uniqueName,language:e.language,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))],1):e._e()])})),0)])]:e._e()],2)},U=[],B=(i("13d5"),i("02a3")),j=i.n(B),F=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pop-wrap",style:{left:e.item.left,top:e.item.top,width:e.item.realWidth*e.ratio+"px"||!1,height:e.item.realHeight*e.ratio+"px"||!1}},e._l(e.item.popList,(function(i,s){return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{ data: tipReportData(index), envUrl }"}],key:s,ref:`${e.sortId}${s}`,refInFor:!0,class:"pop-item",style:{width:i.width/750*100+"%",height:i.height/(e.item.height/e.proportion)*100+"%",left:i.left/750*100+"%",top:i.top/(e.item.height/e.proportion)*100+"%"},attrs:{"data-sensors-click":"","data-sensorsClick":i&&i.jumpLinkType?"true":"false",id:"pop_"+(e.recordId+"_"+e.sortId+"_"+i.uniqueId.split("_")[2]),name:"pop_"+(e.recordId+"_"+e.sortId+"_"+i.uniqueId.split("_")[2])},on:{click:function(t){return e.pageClick(i,s)}}},[i.product.openHot?t("div",{staticClass:"product-hover",on:{mouseover:function(t){return e.mouseover(s)},mouseleave:e.mouseLeave}},[0!=i.product.initImage.length?t("div",{staticStyle:{"{\n fontsize":"0"}},[t("img",{attrs:{src:e.hoverIndex==s?i.product.hoverImage[0].resourcePath:i.product.initImage[0].resourcePath,alt:""}})]):e._e(),e.hoverIndex==s?t("div",{staticClass:"product-image"},[t("img",{attrs:{src:1==i.product.imageType?e.productImage[i.productCode]:i.product.productImage[0].resourcePath,alt:""}})]):e._e()]):e._e()])})),0)},q=[],$={name:"hotspot",props:{isSpecial:{type:Boolean,default:!1},extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},parentItem:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},width:{type:Number,default:0},height:{type:Number,default:0},ratio:{type:Number,default:1},envUrl:{type:String,default:""},sortId:{type:Number,default:0},recordId:{type:Number,default:0},brand:{type:String},componentType:{type:Number},refererPagePath:{type:String},path:{type:String},pathType:{type:Number},uniqueName:{type:String},language:{type:String,default:"zh-CN"},prePosition:{type:Number}},data(){return{hasSensorsReList:[],hotList:[],proportion:1,hoverIndex:1,preTotal:0,productImage:{},service:new y,extraData:null}},watch:{"item.width":{handler(e){this.proportion=e/750},deep:!0,immediate:!0},itemCodeList:{handler(e){this.getProductList(e)},immediate:!0,deep:!0}},computed:{itemCodeList(){let e=this.item.popList.filter(e=>1==e.jumpLinkType&&1==e.product.imageType&&e.product.openHot);return e.map(e=>e.productCode)},tipReportData(){let e=JSON.parse(JSON.stringify(this.item.popList));return function(t){let i=e[t];return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:0,popData:{productCode:i.productCode,selectDataShow:i.selectDataShow,uniqueName:i.uniqueName,uniqueId:this.recordId+"_"+this.sortId+"_"+i.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.preTotal+t+1,event:"bannerShow"}}}},mounted(){this.hotList=JSON.parse(JSON.stringify(this.item.popList))},methods:{needSensorsRep(e){this.extraData=e,this.stopReport||this.scrollMethod(e)},scrollMethod(e){this.extraData=e,this.stopReport||this.$nextTick(()=>{var t;(null===(t=this.item)||void 0===t||null===(t=t.popList)||void 0===t?void 0:t.length)>0&&this.item.popList.forEach((t,i)=>{const s=this.$refs[`${this.sortId}${i}`];if(s&&s[0]){const r=document.documentElement.clientHeight,n=document.documentElement.clientWidth,a=s[0].getBoundingClientRect(),o=a.top||0,l=a.left||0;o<r&&o>=0&&l<n&&l>=0&&this.sensorsExposure(t,i,e)}})})},sensorsExposure(e,t,i){var s,r,n,a,o,l,d,u,c,h,p,f;if(this.extraData=i,this.hasSensorsReList.find(t=>JSON.stringify(t)==JSON.stringify(e)))return;const m={uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:1,popData:{...e,uniqueId:this.recordId+"_"+this.sortId+"_"+e.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.prePosition?this.prePosition+t+1:1*this.preTotal+t+1,event:"bannerShow"};this.$emit("sensorsCmsRepost",{initObject:this.parentItem,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(m)),this.envUrl,"exposure"),reportData:m,extraData:this.isSpecial?{isCategory:!(null===(s=this.extraCategory)||void 0===s||!s.isCategory)&&(null===(r=this.extraCategory)||void 0===r?void 0:r.isCategory),category_index:null!==(n=this.extraCategory)&&void 0!==n&&n.category_index?null===(a=this.extraCategory)||void 0===a?void 0:a.category_index:"",category_name:null!==(o=this.extraCategory)&&void 0!==o&&o.category_name?null===(l=this.extraCategory)||void 0===l?void 0:l.category_name:"",isSpecial:!0}:{isCategory:!(null===(d=this.extraCategory)||void 0===d||!d.isCategory)&&(null===(u=this.extraCategory)||void 0===u?void 0:u.isCategory),category_index:null!==(c=this.extraCategory)&&void 0!==c&&c.category_index?null===(h=this.extraCategory)||void 0===h?void 0:h.category_index:"",category_name:null!==(p=this.extraCategory)&&void 0!==p&&p.category_name?null===(f=this.extraCategory)||void 0===f?void 0:f.category_name:"",isNoMKT:!1,MKTIndex:i?`${i.MKTIndex}-${String(t+1)}`:String(t+1),MKTName:this.item.popList[t].uniqueName}}),this.hasSensorsReList.push(e)},pageClick(e,t){if(e.jumpLinkType)try{this.dataSend(e,t,1)}catch(m){console.error(m)}const i={uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:1,popData:{...e,uniqueId:this.recordId+"_"+this.sortId+"_"+e.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.prePosition?this.prePosition+t+1:1*this.preTotal+t+1,event:"bannerClick"};var s,r,n,a,o,l,d,u,c,h,p,f;null!==e&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.parentItem,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(i)),this.envUrl,"click"),reportData:i,extraData:this.isSpecial?{isCategory:!(null===(s=this.extraCategory)||void 0===s||!s.isCategory)&&(null===(r=this.extraCategory)||void 0===r?void 0:r.isCategory),category_index:null!==(n=this.extraCategory)&&void 0!==n&&n.category_index?null===(a=this.extraCategory)||void 0===a?void 0:a.category_index:"",category_name:null!==(o=this.extraCategory)&&void 0!==o&&o.category_name?null===(l=this.extraCategory)||void 0===l?void 0:l.category_name:"",isSpecial:!0}:{isCategory:!(null===(d=this.extraCategory)||void 0===d||!d.isCategory)&&(null===(u=this.extraCategory)||void 0===u?void 0:u.isCategory),category_index:null!==(c=this.extraCategory)&&void 0!==c&&c.category_index?null===(h=this.extraCategory)||void 0===h?void 0:h.category_index:"",category_name:null!==(p=this.extraCategory)&&void 0!==p&&p.category_name?null===(f=this.extraCategory)||void 0===f?void 0:f.category_name:"",isNoMKT:!1,MKTIndex:this.extraData?`${this.extraData.MKTIndex}-${String(t+1)}`:String(t+1),MKTName:this.item.popList[t].uniqueName}});this.$emit("jumpLink",e)},dataSend(e,t,i){let s={uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:i,popData:{...e,uniqueId:this.recordId+"_"+this.sortId+"_"+e.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.prePosition?this.prePosition+t+1:1*this.preTotal+t+1,event:0==i?"bannerShow":"bannerClick"};if(0==i)x(s,this.envUrl);else{let e=x(s,this.envUrl,"click"),t=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",t)}},getProductList(e){if(0==e.length)return;let t={itemCodeList:e,pageNum:1,pageSize:e.length},i={};this.service.getProductInfo(this.envUrl,t,this.language).then(e=>{e&&e.list&&(this.productList=e.list,e.list.forEach(e=>{i[e.code]=e.mainPicUrl}),this.productImage=i)})},mouseover(e){this.hoverIndex=e},mouseLeave(){this.hoverIndex=-1}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}},treport:E}},H=$,z=H,V=(i("070b"),A(z,F,q,!1,null,"58b33672",null)),G=V.exports,W=G,X={name:"imgNav",mixins:[I],components:{hotspot:W},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},data(){return{hasSensorsReList:[],swiper:"",imageList:[],popList:[],positionList:[],positionTotal:[],hasInitSwiper:!1}},computed:{indicatorType(){return this.attributeJson.indicatorType},picStyle(){let{attributeJson:e,ratio:t,animationInObj:i}=this;return{animationDuration:i.duration+"s",padding:`0 ${e.paddingSpacing*t}px`,width:Math.ceil(e.baseStyle.w*t)+"px"}},picItemStyle(){let{attributeJson:e,ratio:t}=this,{oneLineCount:i}=e;return{width:Math.ceil((e.baseStyle.w*t-2*e.paddingSpacing*t)/i)+"px",height:Math.ceil(e.baseStyle.h*t)+"px",padding:"0 "+e.itemSpacing*t+"px"}},list(){return this.attributeJson.list},isSwiper(){return 3==this.styleType&&2==this.indicatorType&&"pc"==this.mode||2==this.styleType&&2==this.indicatorType&&"mobile"==this.mode},hasConfig(){return this.attributeJson.list.some(e=>0!=e.picList.length)},hasSwiperButton(){return 3==this.styleType&&2==this.indicatorType&&"pc"==this.mode},hasScrollBar(){return 2==this.styleType&&2==this.indicatorType&&"mobile"==this.mode},tipReportData(){let{list:e}=this,t=[],i=[];return e.forEach(e=>{0!=e.popList.length?t.push(e.popList.length):t.push(1)}),t.forEach((e,s)=>{let r=t.slice(0,s),n=r.reduce((e,t)=>e+t,0);i.push(n)}),this.positionList=t,this.positionTotal=i,function(t,i){let s=e[t];return 0==s.popList.length||i?{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:2,popData:{},materialId:this.recordId+"_"+this.sortId+"_"+s.sort,materialName:s.uniqueName,refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:this.positionTotal[t]+1,event:"bannerShow"}:void 0}}},watch:{isSwiper:{handler(e){e&&this.initSwiper()},immediate:!0}},mounted(){},methods:{needSensorsRep(){this.stopReport||this.scrollMethod()},scrollMethod(){if(!this.stopReport)if(this.isSwiper){var e;const t=this.$refs["swiper-container"+this.sortId];if(t&&(null===(e=this.attributeJson.list)||void 0===e?void 0:e.length)>0){const e=4,i=t.swiper.realIndex,s=0+e+i;let r=this.attributeJson.list.map((e,t)=>(e.pIndex=t,e)).slice(s-e,s);r.forEach(e=>{const t=this.$refs[`${this.sortId}${e.pIndex}`];if(t&&t[0]){const r=document.documentElement.clientHeight,n=document.documentElement.clientWidth,a=t[0].getBoundingClientRect(),o=a.top||0,l=a.left||0;if(o<r&&o>=0&&l<n&&l>=0){var i,s;const t=(null===(i=this.attributeJson.list[e.pIndex])||void 0===i||null===(i=i.popList)||void 0===i?void 0:i.length)>0&&(null===(s=this.attributeJson.list[e.pIndex])||void 0===s||null===(s=s.popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType))||void 0===s?void 0:s.length)>0?this.attributeJson.list[e.pIndex].popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType):[];if(t.length>0){const t=this.$refs[`hotspot${this.sortId}${e.pIndex}`];t&&t[0]&&t[0].needSensorsRep({isNoMKT:!1,MKTIndex:String(e.pIndex+1),MKTName:this.attributeJson.list[e.pIndex].uniqueName})}else this.sensorsExposure(e,e.pIndex)}}})}}else{var t;(null===(t=this.attributeJson)||void 0===t||null===(t=t.list)||void 0===t?void 0:t.length)>0&&this.attributeJson.list.forEach((e,t)=>{const i=this.$refs[`${this.sortId}${t}`];if(i&&i[0]){const n=document.documentElement.clientHeight,a=document.documentElement.clientWidth,o=i[0].getBoundingClientRect(),l=o.top||0,d=o.left||0;if(l<n&&l>=0&&d<a&&d>=0){var s,r;const i=(null===(s=this.attributeJson.list[t])||void 0===s||null===(s=s.popList)||void 0===s?void 0:s.length)>0&&(null===(r=this.attributeJson.list[t])||void 0===r||null===(r=r.popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType))||void 0===r?void 0:r.length)>0?this.attributeJson.list[t].popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType):[];if(i.length>0){const e=this.$refs[`hotspot${this.sortId}${t}`];e&&e[0]&&e[0].needSensorsRep({isSpecial:!0})}else this.sensorsExposure(e,t,!0)}}})}},sensorsExposure(e,t,i){var s,r,n,a,o,l,d,u,c,h,p,f;if(this.hasSensorsReList.find(t=>JSON.stringify(t)==JSON.stringify(e)))return;let m=JSON.parse(JSON.stringify(this.tipReportData(t,!0)));this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(m)),this.envUrl,"exposure"),reportData:m,extraData:i?{isCategory:!(null===(s=this.extraCategory)||void 0===s||!s.isCategory)&&(null===(r=this.extraCategory)||void 0===r?void 0:r.isCategory),category_index:null!==(n=this.extraCategory)&&void 0!==n&&n.category_index?null===(a=this.extraCategory)||void 0===a?void 0:a.category_index:"",category_name:null!==(o=this.extraCategory)&&void 0!==o&&o.category_name?null===(l=this.extraCategory)||void 0===l?void 0:l.category_name:"",isSpecial:!0}:{isCategory:!(null===(d=this.extraCategory)||void 0===d||!d.isCategory)&&(null===(u=this.extraCategory)||void 0===u?void 0:u.isCategory),category_index:null!==(c=this.extraCategory)&&void 0!==c&&c.category_index?null===(h=this.extraCategory)||void 0===h?void 0:h.category_index:"",category_name:null!==(p=this.extraCategory)&&void 0!==p&&p.category_name?null===(f=this.extraCategory)||void 0===f?void 0:f.category_name:"",isNoMKT:!1,MKTIndex:String(t+1),MKTName:this.attributeJson.list[t].uniqueName}}),this.hasSensorsReList.push(e)},initSwiper(){this.hasConfig&&this.isSwiper&&this.$nextTick(()=>{this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);let{attributeJson:e}=this;this.options={effect:"slide",autoplay:!1,slidesPerView:this.attributeJson.oneLineCount,spaceBetween:e.itemSpacing},this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.sortId,prevEl:".swiper-button-prev-"+this.sortId}),this.hasScrollBar&&(this.options.scrollbar={el:".swiper-scrollbar-"+this.sortId,draggable:!0},this.options.freeMode=!0),this.swiper=new j.a(".swiper-container-"+this.sortId,this.options)})}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Y=X,J=Y,K=(i("0071"),A(J,R,U,!1,null,"294d9fe5",null)),Q=K.exports,Z=Q,ee=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],staticClass:"video-wrap entrance-con",style:[e.conStyle,e.animationInStyle]},[0!==e.videoItem.length?t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl},expression:"{ data: tipReportData, envUrl }"}],ref:"videoItem"+e.sortId,class:["video-con","video-con-"+e.sortId,e.animationInObj.type?e.enterClass:""],style:{width:Math.round(e.attributeJson.baseStyle.w*e.ratio)+"px",height:Math.round(e.attributeJson.baseStyle.h*e.ratio)+"px"}},[t("myVideoPlayer",{ref:"VideoPlayer"+e.sortId,attrs:{sort:(new Date).getTime(),videoInfo:e.videoInfo,autoPlay:e.autoPlay,recordId:e.recordId,sortId:e.sortId,extraCategory:e.extraCategory,stopReport:e.stopReport}}),1===e.attributeJson.isVideoHasHot&&0!=e.videoHotPic.length?t("div",{staticClass:"hot-image"},[t("img",{attrs:{src:e.videoHotPic[0].resourcePath,alt:""}}),t("hotspot",e._g(e._b({ref:"hotspot",attrs:{componentType:3,item:e.hotData,parentItem:e.attributeJson,ratio:e.ratio,envUrl:e.envUrl,language:e.language,recordId:e.recordId,sortId:e.sortId,path:e.path,brand:e.brand,uniqueName:e.attributeJson.uniqueName,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))],1):e._e()],1):e._e()])},te=[],ie=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticStyle:{height:"100%",position:"relative"}},[t("video",{ref:"myVideo-"+e.sort,staticClass:"video-js vjs-default-skin vjs-big-play-centered vjs-16-9 video-item",attrs:{preload:"auto","data-setup":"{}","x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","webkit-playsinline":"true",playsinline:"true",controls:e.videoInfo.checkedAttr.indexOf("controls")>-1,autoplay:e.autoPlay,loop:e.videoInfo.checkedAttr.indexOf("loop")>-1,muted:"",poster:0!=e.videoInfo.list.length?e.videoInfo.list[0].imgUrl:""},domProps:{muted:!0}},[t("source",{attrs:{src:0!=e.videoInfo.list.length?e.videoInfo.list[0].resourcePath:""}})]),e.videoInfo.checkedAttr.indexOf("controls")<0?t("div",{staticClass:"video-cover",attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:`video_${e.recordId}_${e.sortId}`,name:`video_${e.recordId}_${e.sortId}`},on:{click:e.clickVideo}}):e._e()])},se=[],re=i("f0e2"),ne={name:"videoPlayer",props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},videoInfo:{type:Object,default:()=>{}},autoPlay:{type:Boolean,default:!1},sort:{type:Number,default:0},recordId:{type:Number,default:0},sortId:{type:Number,default:0}},data(){return{isPlay:!1}},watch:{autoPlay:{handler(e){this.player&&(e?this.player.play():this.player.pause())},immediate:!0}},mounted(){let e=this;setTimeout(()=>{this.player=Object(re["a"])(this.$refs["myVideo-"+this.sort],{},(function(){this.on("play",()=>{e.isPlay=!0}),this.on("pause",()=>{e.isPlay=!1})})),this.$nextTick(()=>{this.play()})},50)},methods:{play(){0!=this.videoInfo.list.length&&this.autoPlay&&this.player.play()},clickVideo(){this.isPlay?this.player.pause():this.player.play()}}},ae=ne,oe=ae,le=(i("5213"),A(oe,ie,se,!1,null,"576d7892",null)),de=le.exports,ue=de,ce={name:"videoItem",mixins:[I],components:{hotspot:W,myVideoPlayer:ue},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},attributeJson:{type:Object,default:function(){}},ratio:{type:Number,default:1,positionList:[]}},data(){return{sensorsIsRes:!1,autoPlay:!1}},watch:{"videoInfo.checkedAttr":{handler(e){this.autoPlay=e.indexOf("autoPlay")>-1},immediate:!0,deep:!0}},computed:{videoItem(){return this.attributeJson.videoInfo.list},videoHotPic(){return this.attributeJson.videoHotInfo.picList},videoHotPop(){return this.attributeJson.videoHotInfo.popList},videoInfo(){return this.attributeJson.videoInfo},hotData(){let{attributeJson:e}=this;return{popList:e.videoHotInfo.popList,width:e.videoHotInfo.picList[0].width,height:e.videoHotInfo.picList[0].height,realWidth:e.baseStyle.w,realHeight:e.baseStyle.h,top:0,left:0}},tipReportData(){return function(e){return 1!=this.attributeJson.isVideoHasHot||e?{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:3,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,event:"bannerShow",position:1}:void 0}}},methods:{needSensorsRep(){this.stopReport||this.scrollMethod()},scrollMethod(){this.stopReport||this.$nextTick(()=>{const e=this.$refs["videoItem"+this.sortId];if(e){const t=document.documentElement.clientHeight,i=document.documentElement.clientWidth,s=e.getBoundingClientRect(),r=s.top||0,n=s.left||0;r<t&&r>=0&&n<i&&n>=0&&this.sensorsExposure()}})},sensorsExposure(){var e,t,i,s,r,n;if(this.sensorsIsRes)return;let a=JSON.parse(JSON.stringify(this.tipReportData(!0)));this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.videoInfo,propsObject:x(JSON.parse(JSON.stringify(a)),this.envUrl,"exposure"),reportData:a,extraData:{isCategory:!(null===(e=this.extraCategory)||void 0===e||!e.isCategory)&&(null===(t=this.extraCategory)||void 0===t?void 0:t.isCategory),category_index:null!==(i=this.extraCategory)&&void 0!==i&&i.category_index?null===(s=this.extraCategory)||void 0===s?void 0:s.category_index:"",category_name:null!==(r=this.extraCategory)&&void 0!==r&&r.category_name?null===(n=this.extraCategory)||void 0===n?void 0:n.category_name:"",isNoMKT:!0}}),this.sensorsIsRes=!0}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},he=ce,pe=he,fe=(i("ae4e"),A(pe,ee,te,!1,null,"150d5efa",null)),me=fe.exports,ge=me,ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],staticClass:"swiper-wrap",style:[e.conStyle,e.animationInStyle]},[e.hasSwiperItem||1===e.bgStyle.status&&0!=e.bgStyle.picList.length?t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"}],class:["swiper-con","swiper-con-"+e.mode],style:{backgroundImage:0!=e.bgStyle.picList.length?`url(${e.bgStyle.picList[0].resourcePath})`:""}},[t("div",{staticClass:"entrance-con",style:{"--hoverColor":e.paginationStyle.hoverColor||e.paginationStyle.color,"--activeColor":e.paginationStyle.activeColor,"--color":e.paginationStyle.color,width:e.baseStyle.w*e.ratio+"px",height:e.baseStyle.h*e.ratio+"px"}},[t("div",{key:e.indicatorType,ref:"swiper"+e.attributeJson.sort,class:[`swiper-container swiper-container-${e.sortId} swiper-container-${e.indicatorType}`,e.animationInObj.type?e.enterClass:""],style:{animationDuration:e.animationInObj.duration+"s"},attrs:{id:"mySwiper-"+e.sortId}},[t("div",{staticClass:"swiper-wrapper"},e._l(e.swiperList,(function(i,s){var r,n,a,o,l,d,u,c;return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:i.sort+s,ref:""+(i.sort+s),refInFor:!0,class:["swiper-slide",{"slide-auto":e.isSpaceSwiper}]},[t("div",{staticClass:"swiper-width",style:{width:(e.baseStyle.w-(2==e.styleType?100:0))*e.ratio+"px!important",height:e.baseStyle.h*e.ratio+"px"}},[1===i.type?t("img",{attrs:{src:(null===i||void 0===i||null===(r=i.picList)||void 0===r?void 0:r.length)>0&&null!==i&&void 0!==i&&null!==(n=i.picList[0])&&void 0!==n&&n.resourcePath?i.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(a=i.picList)||void 0===a?void 0:a.length)>0&&null!==i&&void 0!==i&&null!==(o=i.picList[0])&&void 0!==o&&o.resourceName?i.picList[0].resourceName.split(".")[0]:""}}):e._e(),2===i.type?t("div",{staticClass:"video-player-con"},[t("myVideoPlayer",{ref:"VideoPlayer"+e.sortId,refInFor:!0,attrs:{recordId:e.recordId,sortId:e.sortId,sort:(new Date).getTime(),videoInfo:i.videoInfo,autoPlay:i.videoInfo.checkedAttr.indexOf("autoPlay")>-1&&e.activeIndex==s,extraCategory:e.extraCategory,stopReport:!0}}),2==i.type&&1==i.isVideoHasHot&&0!=i.videoHotInfo.picList.length?t("div",{staticClass:"video-hot-image"},[t("img",{attrs:{src:(null===i||void 0===i||null===(l=i.videoHotInfo)||void 0===l||null===(l=l.picList)||void 0===l?void 0:l.length)>0&&null!==i&&void 0!==i&&null!==(d=i.videoHotInfo)&&void 0!==d&&null!==(d=d.picList[0])&&void 0!==d&&d.resourcePath?i.videoHotInfo.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(u=i.videoHotInfo)||void 0===u||null===(u=u.picList)||void 0===u?void 0:u.length)>0&&null!==i&&void 0!==i&&null!==(c=i.videoHotInfo)&&void 0!==c&&null!==(c=c.picList[0])&&void 0!==c&&c.resourceName?i.videoHotInfo.picList[0].resourceName.split(".")[0]:""}}),0!=i.videoHotInfo.picList.length?t("div",{staticClass:"swiper-hot"},[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{parentItem:e.attributeJson,item:{realWidth:i.realWidth,realHeight:i.realHeight,popList:i.videoHotInfo.popList,width:i.videoHotInfo.picList[0].width,height:i.videoHotInfo.picList[0].height},componentType:1,ratio:e.ratio,uniqueName:e.attributeJson.uniqueName,envUrl:e.envUrl,sortId:e.sortId,laySort:e.sort,path:e.path,brand:e.brand,prePosition:e.positionTotal[i.i],recordId:e.recordId,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))],1):e._e()]):e._e()],1):e._e(),1==i.type&&0!=i.picList.length?[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{parentItem:e.attributeJson,item:i,ratio:e.ratio,componentType:1,uniqueName:e.attributeJson.uniqueName,path:e.path,envUrl:e.envUrl,sortId:e.sortId,brand:e.brand,prePosition:e.positionTotal[i.i],recordId:e.recordId,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))]:e._e()],2)])})),0),e.hasScrollBar?t("div",{staticClass:"swiper-scrollbar-own"},[t("div",{staticClass:"swiper-scrollbar-drag",style:{width:100/e.list.length+"%",left:(e.activeIndex>e.list.length?0:100/e.list.length*(e.activeIndex-1))+"%"}})]):e._e(),e.hasSwiperPagination?t("div",{staticClass:"swiper-pagination-custom"},e._l(e.list,(function(i,s){return t("span",{key:s,class:["pagination-custom-bullt",{"bullt-active":e.slideIndex==s}],attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:`pagination_${e.recordId}_${e.sortId}_${Number(s+1)}`,name:`pagination_${e.recordId}_${e.sortId}_${Number(s+1)}`},on:{click:function(t){return e.swiperSlide(s)}}})})),0):e._e(),e.hasSwiperButton?[t("div",{class:["swiper-button-prev","swiper-button-prev-"+e.sortId]},[e._t("swiper-button-prev",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconleft",style:e.pageStyle})]):e._e(),4==e.indicatorType?t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-left",style:e.pageStyle})]):e._e()]}))],2),t("div",{class:["swiper-button-next","swiper-button-next-"+e.sortId]},[e._t("swiper-button-next",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconright",style:e.pageStyle})]):e._e(),4==e.indicatorType?t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-right",style:e.pageStyle})]):e._e()]}))],2)]:e._e()],2)]),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.hoverStyleShow?1:0}]}):e._e()]):e._e()])},ve=[];let be=16.7;var _e={name:"swiperItem",mixins:[I],components:{hotspot:W,myVideoPlayer:ue},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},sortId:{type:Number}},data(){return{sleepTimer:null,hasSensorsReList:[],hasSwiperItem:!1,swiper:"",activeIndex:0,slideIndex:0,hasInitSwiper:!1,positionList:[],positionTotal:[]}},computed:{bgStyle(){return this.attributeJson.bgStyle},list(){return this.attributeJson.list},styleType(){return this.attributeJson.styleType},indicatorType(){return this.attributeJson.indicatorType},paginationStyle(){return this.attributeJson.paginationStyle},pageStyle(){return{color:this.attributeJson.paginationStyle.color}},hasSwiperPagination(){return 3==this.indicatorType},hasSwiperButton(){return 1!=this.indicatorType},hasScrollBar(){return"pc"==this.mode&&2==this.indicatorType},isSpaceSwiper(){return"mobile"==this.mode&&2==this.styleType},tipReportData(){let e=[],t=[];return this.list.forEach(t=>{1==t.type&&0!=t.popList.length||0!=t.videoHotInfo.popList.length?e.push(1==t.type?t.popList.length:t.videoHotInfo.popList.length):e.push(1)}),e.forEach((i,s)=>{let r=e.slice(0,s),n=r.reduce((e,t)=>e+t,0);t.push(n)}),this.positionList=e,this.positionTotal=t,function(e){let t=this.swiperList[e];return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:1,popData:{},materialId:this.recordId+"_"+this.sortId+"_"+t.sort,materialName:t.uniqueName,refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:this.positionTotal[e]+1,event:"bannerShow"}}}},mounted(){this.$nextTick(()=>{this.judgeSwiper()})},methods:{needSensorsRep(e){this.stopReport||this.scrollMethod()},sleep(e){return new Promise(async t=>{clearTimeout(this.sleepTimer),this.sleepTimer=setTimeout(()=>{clearTimeout(this.sleepTimer),t("success")},e)})},scrollMethod(){this.stopReport||this.$nextTick(async()=>{var e;await this.sleep(100);const t=this.$refs["swiper"+this.attributeJson.sort];if(t&&(null===(e=this.swiperList)||void 0===e?void 0:e.length)>0){const e=t.swiper.realIndex;this.swiperList.forEach((t,i)=>{const s=this.$refs[""+(t.sort+i)];if(s&&s[0]&&e==i){const e=document.documentElement.clientHeight,a=document.documentElement.clientWidth,o=s[0].getBoundingClientRect(),l=o.top||0,d=o.left||0;if(l<e&&l>=0&&d<a&&d>=0){var r,n;const e=(null===(r=this.swiperList[i])||void 0===r||null===(r=r.popList)||void 0===r?void 0:r.length)>0&&(null===(n=this.swiperList[i])||void 0===n||null===(n=n.popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType))||void 0===n?void 0:n.length)>0?this.swiperList[i].popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType):[];if(e.length>0&&1===this.swiperList[i].type){const e=this.$refs[`hotspot${this.sortId}${i}`];e&&e[0]&&e[0].needSensorsRep({isNoMKT:!1,MKTIndex:String(i+1),MKTName:this.swiperList[i].uniqueName})}else this.sensorsExposure(t,i)}}})}})},sensorsExposure(e,t){var i,s,r,n,a,o;if(this.hasSensorsReList.find(t=>JSON.stringify(t)==JSON.stringify(e)))return;let l=JSON.parse(JSON.stringify(this.tipReportData(t)));this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(l)),this.envUrl,"exposure"),reportData:l,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isNoMKT:!1,MKTIndex:String(t+1),MKTName:this.swiperList[t].uniqueName}}),this.hasSensorsReList.push(e)},judgeSwiper(){let e=this.attributeJson.list,t=e.findIndex(e=>0!=e.picList.length||0!=e.videoInfo.list.length);if(this.hasSwiperItem=t>-1,this.hasSwiperItem){e.forEach((e,t)=>{e.i=t});let t=JSON.parse(JSON.stringify(e));this.swiperList=e.concat(JSON.parse(JSON.stringify(t))),this.swiperList=t.concat(this.swiperList),this.scrollMethod(),this.initSwiper(!0)}},initSwiper:function(e){(this.hasSwiperItem||1===this.bgStyle.status&&0!=this.bgStyle.picList.length)&&this.$nextTick(()=>{this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);let{attributeJson:e}=this;this.options={effect:"slide",observer:!0,observeParents:!0,preventInteractionOnTransition:!0,autoplay:!!e.autoPlay&&{delay:1e3*e.interval,disableOnInteraction:!1,stopOnLastSlide:!1}},"mobile"==this.mode&&2==this.styleType&&(this.options.spaceBetween=10,this.options.loop=!1,this.options.slidesPerView="auto",this.options.centeredSlides=!0),this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.sortId,prevEl:".swiper-button-prev-"+this.sortId});let t=this,i=this.list.length;var s;(this.options.on={slideChangeTransitionEnd:function(){t.activeIndex=this.activeIndex,t.slideIndex=t.swiperList[this.activeIndex].i},slideNextTransitionEnd:function(){this.activeIndex==2*i&&this.slideTo(i,be)},slidePrevTransitionEnd:function(){this.activeIndex==i-1&&this.slideTo(2*i-1,be)},slideChange:function(){t.scrollMethod()}},this.swiper=new j.a(".swiper-container-"+this.sortId,this.options),this.swiper)&&(this.swiper instanceof Array?(null===(s=this.swiper)||void 0===s?void 0:s.length)>0&&this.swiper[0].slideTo(i,be):this.swiper.slideTo(i,be))})},swiperSlide(e){var t;this.swiper&&(this.swiper instanceof Array?(null===(t=this.swiper)||void 0===t?void 0:t.length)>0&&this.swiper[0].slideTo(e):this.swiper.slideTo(e));this.slideIndex=e}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Te=_e,Se=Te,we=(i("5b9b"),A(Se,ye,ve,!1,null,"e840520e",null)),Ee=we.exports,xe=Ee,Ce=function(){var e,t,i,s,r=this,n=r._self._c;r._self._setupProxy;return n("div",{staticClass:"button-wrap",style:[r.conStyle,r.animationInStyle]},[n("div",{ref:"button"+r.attributeJson.sort,class:["button-cl","button-cl-"+r.sortId],attrs:{"data-sensors-click":"","data-sensorsClick":r.attributeJson&&r.attributeJson.linkObj&&r.attributeJson.linkObj.jumpLinkType?"true":"false",id:"button_"+(r.recordId+"_"+r.sortId),name:"button_"+(r.recordId+"_"+r.sortId)},on:{click:r.pageClick}},[n("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"},{name:"treport",rawName:"v-treport",value:{data:r.tipReportData,envUrl:r.envUrl},expression:"{ data: tipReportData, envUrl }"}],ref:"buttonItem"+r.sortId,staticClass:"button-content",class:[{flexCenterBetween:r.iconImage},4===r.animationHoverObj.type?r.hoverDirection:""],style:[r.buttonStyle,{"--width":r.hoverStyleShow?"100%":"0","--height":r.hoverStyleShow?"100%":"0","--bgColor":r.animationHoverObj.bgStyle.backgroundColor}]},[1===(null===(e=r.iconStyle)||void 0===e?void 0:e.type)&&1===(null===(t=r.iconStyle)||void 0===t?void 0:t.position)&&r.iconImage?n("img",{attrs:{src:r.iconImage,alt:""}}):r._e(),n("div",{staticClass:"label",style:r.buttonTextStyle},[r._v(" "+r._s(r.attributeJson.label||"按钮")+" ")]),1===(null===(i=r.iconStyle)||void 0===i?void 0:i.type)&&2===(null===(s=r.iconStyle)||void 0===s?void 0:s.position)&&r.iconImage?n("img",{attrs:{src:r.iconImage,alt:""}}):r._e(),5===r.animationHoverObj.type&&r.hoverImage&&r.hoverStyleShow?n("img",{staticClass:"hover-image",attrs:{src:r.hoverImage,alt:""}}):r._e()]),2===r.animationHoverObj.type?n("div",{staticClass:"hover-con",style:[r.hoverStyle,{opacity:r.hoverStyleShow?1:0,borderRadius:r.attributeJson.borderStyle.borderRadius+"px"}]}):r._e()])])},ke=[],Ie={name:"buttonItem",mixins:[I],components:{},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},data(){return{iconImage:"",backgroundImage:"",hoverButtonStyle:{},sensorsIsRes:!1}},watch:{bgStyle:{handler(e){e&&e.picList&&0!=e.picList.length&&(this.backgroundImage=2===e.type?e.picList[0].resourcePath:"")},immediate:!0,deep:!0},iconStyle:{handler(e){e&&e.picList&&0!=e.picList.length&&(this.iconImage=1===e.type?e.picList[0].resourcePath:"")},immediate:!0,deep:!0}},computed:{iconStyle(){return this.attributeJson.iconStyle},bgStyle(){return this.attributeJson.bgStyle},buttonStyle(){let{bgStyle:e,fontStyle:t,borderStyle:i,space:s}=this.attributeJson,{borderTop:r,borderRight:n,borderBottom:a,borderLeft:o,borderColor:l}=i,d="mobile"==this.mode?2*this.ratio:this.ratio,u={fontSize:parseFloat(t.fontSize)*d+"px",color:t.color,backgroundColor:1===e.type?e.backgroundColor:"",fontWeight:t.fontWeight?"bold":"",textDecoration:t.textDecoration?"underline":"",fontStyle:t.fontItalic?"italic":"",borderRadius:i.borderRadius+"px",backgroundImage:`url('${this.backgroundImage}')`,paddingLeft:s.left+"px",paddingRight:s.right+"px"};return 1===i.type&&l&&(u.border="1px solid "+l),2===i.type&&(u.borderTop=r?"1px solid "+r:"none",u.borderRight=n?"1px solid "+n:"none",u.borderBottom=a?"1px solid "+a:"none",u.borderLeft=o?"1px solid "+o:"none"),u},buttonTextStyle(){return{color:this.attributeJson.fontStyle.color,"--hoverColor":this.attributeJson.fontStyle.hoverObj.color||this.attributeJson.fontStyle.color}},tipReportData(){return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:17,popData:{},refererPagePath:this.refererPagePath,path:this.path,brand:this.brand,position:1,event:"bannerShow"}}},methods:{needSensorsRep(){},pageClick(){var e;let t=JSON.parse(JSON.stringify(this.tipReportData));if(t.event="bannerClick",this.attributeJson.linkObj.jumpLinkType)try{let e=x(t,this.envUrl,"click"),i=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",i)}catch(l){}var i,s,r,n,a,o;null!==(e=this.attributeJson)&&void 0!==e&&null!==(e=e.linkObj)&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.attributeJson,propsObject:x(JSON.parse(JSON.stringify(t)),this.envUrl,"click"),reportData:t,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isSpecial:!0}});this.$emit("jumpLink",this.attributeJson.linkObj)}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Pe=Ie,Oe=Pe,Le=(i("1e83"),A(Oe,Ce,ke,!1,null,"d81ff890",null)),Ae=Le.exports,De=Ae,Me=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],staticClass:"product-wrap entrance-con",style:[e.conStyle,e.paginationShow,e.animationInStyle]},[t("div",{class:["product-con",e.animationInObj.type?e.enterClass:""],style:[{width:e.baseStyle.w*e.ratio+"px",height:e.baseStyle.h*e.ratio+"px",padding:`0 ${e.attributeJson.goodsPaddingSpacing}px`,animationDuration:e.animationInObj.duration+"s"}]},[e.isSwiper?e._e():t("div",{ref:"slide"+e.sortId,class:`slide-con slide-con-${e.styleType}-${e.mode}`,style:{width:e.attributeJson.baseStyle.w*e.ratio+e.attributeJson.goodsSpacing+"px",margin:"0px -"+e.attributeJson.goodsSpacing/2+"px"}},e._l(e.productList,(function(i,s){return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"},{name:"hoverAnimate",rawName:"v-hoverAnimate",value:{key:"productIndex",value:s},expression:"{ key: 'productIndex', value: index }"}],key:i.id,ref:`product${i.code}${s}`,refInFor:!0,class:["product-item",`product${i.code}${s}`],style:[e.productStyle],attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code),name:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code)},on:{click:function(t){return e.gotoPDP(i.code,i.colorCode,i.name,s,i)}}},[t("div",{staticClass:"product-image"},[t("img",{style:[3===e.animationHoverObj.type&&e.productIndex==s?e.hoverStyle:""],attrs:{src:2==e.attributeJson.goodsImgType&&i.customImage?i.customImage:i.mainPicUrl,alt:i.name}})]),0!=e.attributeJson.showInfo.length?t("div",{class:["product-info","position"+e.attributeJson.infoPoisition,{transparent:2==e.attributeJson.isHover&&e.productIndex!=s}]},[e._t("productInfo",(function(){return[e.attributeJson.showInfo.indexOf(1)>-1?t("div",{staticClass:"product-name"},[e._v(e._s(i.name))]):e._e(),t("div",{staticClass:"price-con"},[e.attributeJson.showInfo.indexOf(2)>-1?t("div",[e._v("¥"+e._s(e.formatNumber(parseInt(i.salesPrice)||0)))]):e._e(),i.salesPrice!=i.standardPrice&&e.attributeJson.showInfo.indexOf(3)>-1?t("div",{staticClass:"standardPrice"},[e._v(" ¥"+e._s(e.formatNumber(parseInt(i.standardPrice)||0))+" ")]):e._e()])]}))],2):e._e(),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.productIndex===s?1:0,margin:`0 ${e.goodsSpacing/2}px`}]}):e._e()])})),0),e.isSwiper?t("div",{key:e.styleType+e.indicatorType,ref:"slide"+e.sortId,class:"swiper-container swiper-container-"+e.sortId,attrs:{id:"mySwiper-"+e.sortId}},[t("div",{staticClass:"swiper-wrapper",style:[{width:e.baseStyle.w*e.ratio+"px"}]},e._l(e.productList,(function(i,s){return t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate",value:{key:"productIndex",value:s},expression:"{ key: 'productIndex', value: index }"},{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:i.id,ref:`product${i.code}${s}`,refInFor:!0,class:`swiper-slide swiper-slide-${e.styleType}-${e.mode}`,style:[e.productStyle]},[t("div",{ref:`product${i.code}${s}`,refInFor:!0,attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code),name:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code)},on:{click:function(t){return e.gotoPDP(i.code,i.colorCode,i.name,s,i)}}},[t("div",{staticClass:"product-image"},[t("img",{style:[3===e.animationHoverObj.type&&e.productIndex==s?e.hoverStyle:""],attrs:{src:2==e.attributeJson.goodsImgType&&i.customImage?i.customImage:i.mainPicUrl,alt:""}})]),0!=e.attributeJson.showInfo.length?t("div",{class:["product-info","position"+e.attributeJson.infoPoisition,{transparent:2==e.attributeJson.isHover&&e.productIndex!=s}]},[e._t("productInfo",(function(){return[e.attributeJson.showInfo.indexOf(1)>-1?t("div",{staticClass:"product-name"},[e._v(" "+e._s(i.name)+" ")]):e._e(),t("div",{staticClass:"price-con"},[e.attributeJson.showInfo.indexOf(2)>-1?t("div",[e._v("¥"+e._s(e.formatNumber(parseInt(i.salesPrice)||0)))]):e._e(),i.salesPrice!=i.standardPrice&&e.attributeJson.showInfo.indexOf(3)>-1?t("div",{staticClass:"standardPrice"},[e._v(" ¥"+e._s(e.formatNumber(parseInt(i.standardPrice)||0))+" ")]):e._e()])]}))],2):e._e(),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.productIndex===s?1:0}]}):e._e()])])})),0),e.hasScrollBar?t("div",{class:"swiper-scrollbar swiper-scrollbar-"+e.sortId}):e._e(),e.hasSwiperButton?t("div",{class:"swiper-button-prev swiper-button-prev-"+e.sortId},[e._t("swiper-button-prev",(function(){return[2==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconleft",style:e.pageStyle})]):e._e()]}))],2):e._e(),e.hasSwiperButton?t("div",{class:"swiper-button-next swiper-button-next-"+e.sortId},[e._t("swiper-button-next",(function(){return[2==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconright",style:e.pageStyle})]):e._e()]}))],2):e._e()]):e._e()])])},Ne=[],Re={name:"productItem",mixins:[I],components:{},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},sortId:{type:Number}},data(){return{sleepTimer:null,hasSensorsReList:[],productList:[],swiper:"",productStyle:{},service:new y,productIndex:"",windowHeight:0}},watch:{addProduct:{handler(e){this.isClient&&(1==e.type&&0==e.itemCodeList.length||(2!=e.type||e.categoryGroupCode)&&(3!=e.type||e.cmsSortCode)&&this.getProductList())},immediate:!0,deep:!0},ratio:{handler(){!this.isSwiper&&this.productStyle.width&&(this.productStyle.width=(this.attributeJson.baseStyle.w*this.ratio-2*this.attributeJson.goodsPaddingSpacing+this.goodsSpacing)/this.showNum+"px")}}},computed:{addProduct(){return this.attributeJson.addProduct},goodsPaddingSpacing(){return this.attributeJson.goodsPaddingSpacing},goodsSpacing(){return this.attributeJson.goodsSpacing},itemsPerLine(){return this.attributeJson.itemsPerLine},indicatorType(){return this.attributeJson.indicatorType},isSwiper(){return"pc"==this.mode&&1==this.styleType||"mobile"==this.mode&&2==this.styleType&&(2==this.indicatorType||3==this.indicatorType)},hasSwiperButton(){return"pc"==this.mode&&1==this.styleType&&2==this.indicatorType||"mobile"==this.mode&&2==this.styleType&&2==this.indicatorType},hasScrollBar(){return"mobile"==this.mode&&2==this.styleType&&3==this.indicatorType},paginationShow(){let{paginationStyle:e}=this.attributeJson;return{"--hoverColor":e.hoverColor||e.color,"--activeColor":e.activeColor,"--color":e.color}},pageStyle(){return{color:this.attributeJson.paginationStyle.color}},showNum(){let e=1;return"pc"==this.mode?e=this.attributeJson.itemsPerLine:1==this.attributeJson.styleType?e=2.5:2==this.attributeJson.styleType&&(e=this.attributeJson.itemsPerLine),e},tipReportData(){return function(e){let t=this.productList[e];return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:4,popData:{productCode:t.code,selectDataShow:t.name},materialId:this.recordId+"_"+this.sortId,materialName:this.attributeJson.uniqueName,refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:e+1,event:"bannerShow"}}}},mounted(){this.productList=this.attributeJson.productList,this.initProduct()},methods:{needSensorsRep(){this.stopReport||this.scrollMethod()},sleep(e){return new Promise(async t=>{clearTimeout(this.sleepTimer),this.sleepTimer=setTimeout(()=>{clearTimeout(this.sleepTimer),t("success")},e)})},scrollMethod(){this.stopReport||this.$nextTick(async()=>{if(await this.sleep(100),this.isSwiper){var e;const t=this.$refs["slide"+this.sortId];if(t&&(null===(e=this.productList)||void 0===e?void 0:e.length)>0){const e=this.showNum,i=t.swiper.realIndex,s=0+e+i;let r=this.productList.map((e,t)=>(e.pIndex=t,e)).slice(s-e,s);(null===r||void 0===r?void 0:r.length)>0&&r.forEach(e=>{const t=this.$refs[`product${e.code}${e.pIndex}`];if(t&&t[0]){const i=document.documentElement.clientHeight,s=document.documentElement.clientWidth,r=t[0].getBoundingClientRect(),n=r.top||0,a=r.left||0;n<i&&n>=0&&a<s&&a>=0&&this.sensorsExposure(e.pIndex,e)}})}}else{var t;(null===(t=this.productList)||void 0===t?void 0:t.length)>0&&this.productList.forEach((e,t)=>{const i=this.$refs[`product${e.code}${t}`];if(i&&i[0]){const s=document.documentElement.clientHeight,r=document.documentElement.clientWidth,n=i[0].getBoundingClientRect(),a=n.top||0,o=n.left||0;a<s&&a>=0&&o<r&&o>=0&&this.sensorsExposure(t,e)}})}})},sensorsExposure(e,t){var i,s,r,n,a,o;if(this.hasSensorsReList.find(e=>JSON.stringify(e)==JSON.stringify(t)))return;let l=JSON.parse(JSON.stringify(this.tipReportData(e)));t.position=Number(e)+1,this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:t,propsObject:x(JSON.parse(JSON.stringify(l)),this.envUrl,"exposure"),reportData:l,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isNoMKT:!1,MKTIndex:String(e+1),MKTName:this.productList[e].name}}),this.hasSensorsReList.push(t)},getProductList:function(){let e={};switch(this.addProduct.type){case 1:e={itemCodeList:this.addProduct.itemCodeList,pageNum:1,pageSize:this.addProduct.itemCodeList.length};break;case 2:e={categoryParam:{categoryCodeList:this.addProduct.categoryCodeList,categoryGroupCode:this.addProduct.categoryGroupCode},pageNum:1,pageSize:this.addProduct.max,sortRuleId:this.addProduct.sortId};break;case 3:e={pageNum:1,pageSize:this.addProduct.max,sortField:this.addProduct.cmsSortCode};break}3==this.addProduct.type?this.service.getSortProductInfo(this.envUrl,e,this.language).then(e=>{if(e&&e.list){let t=document.querySelector(".entrance-con"+this.sortId),i=t&&t.classList.contains("entrance-demonstrate");i&&t.firstChild.style&&(t.firstChild.style.display="block"),this.productList=e.list,this.initProduct()}else this.productList=[]}):this.service.getProductInfo(this.envUrl,e,this.language).then(e=>{if(e&&e.list){let t=document.querySelector(".entrance-con"+this.sortId),i=t&&t.classList.contains("entrance-demonstrate");i&&t.firstChild.style&&(t.firstChild.style.display="block"),this.productList=e.list,this.initProduct()}else this.productList=[]})},initProduct:function(){let{attributeJson:e,addProduct:t}=this;var i;2==e.goodsImgType&&0!=t.customImageList.length&&((null===(i=this.productList)||void 0===i?void 0:i.length)>0&&this.productList.forEach((e,i)=>{0!=t.customImageList[i].picList.length&&this.$set(e,"customImage",t.customImageList[i].picList[0].resourcePath)}));this.productList&&this.productList.length>0&&(this.scrollMethod(),this.isSwiper?this.initSwiper():this.initSlide())},initSwiper:function(){let{attributeJson:e,indicatorType:t,styleType:i}=this;this.$nextTick(()=>{this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null),this.options={effect:"slide",autoplay:!1,slidesPerView:this.showNum,spaceBetween:e.goodsSpacing},2==i&&2==t&&(this.options.pagination={el:".swiper-pagination-"+this.sortId,clickable:!0}),this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.sortId,prevEl:".swiper-button-prev-"+this.sortId}),this.hasScrollBar&&(this.options.scrollbar={el:".swiper-scrollbar-"+this.sortId,draggable:!0},this.options.freeMode=!0);let s=this;this.options.on={slideChange:function(){s.scrollMethod()}},this.swiper=new j.a(".swiper-container-"+this.sortId,this.options)})},initSlide(){this.productStyle={padding:`0 ${this.goodsSpacing/2}px`,width:(this.attributeJson.baseStyle.w*this.ratio-2*this.attributeJson.goodsPaddingSpacing+this.goodsSpacing)/this.showNum+"px",marginBottom:this.goodsSpacing+"px"}},gotoPDP(e,t,i,s,r){var n,a,o,l,d,u;let c=JSON.parse(JSON.stringify(this.tipReportData(s)));c.event="bannerClick";try{let e=x(c,this.envUrl,"click"),t=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",t)}catch(h){}r.position=Number(s)+1,this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:r,propsObject:x(JSON.parse(JSON.stringify(c)),this.envUrl,"click"),reportData:c,extraData:{isCategory:!(null===(n=this.extraCategory)||void 0===n||!n.isCategory)&&(null===(a=this.extraCategory)||void 0===a?void 0:a.isCategory),category_index:null!==(o=this.extraCategory)&&void 0!==o&&o.category_index?null===(l=this.extraCategory)||void 0===l?void 0:l.category_index:"",category_name:null!==(d=this.extraCategory)&&void 0!==d&&d.category_name?null===(u=this.extraCategory)||void 0===u?void 0:u.category_name:"",isNoMKT:!1,MKTIndex:String(s+1),MKTName:this.productList[s].name}}),this.$emit("gotoPDP",{code:e,colorCode:t})},formatNumber:k},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Ue=Re,Be=Ue,je=(i("f526"),A(Be,Me,Ne,!1,null,"1f30d9fc",null)),Fe=je.exports,qe=Fe,$e=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"simplyText-wrap entrance-con",style:[e.conStyle,e.animationInStyle],attrs:{"data-sensors-click":"","data-sensorsClick":e.attributeJson&&e.attributeJson.linkObj&&e.attributeJson.linkObj.jumpLinkType?"true":"false",id:`entrance_${e.recordId}_${e.sortId}`,name:`entrance_${e.recordId}_${e.sortId}`},on:{click:e.pageClick}},[t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"}],staticClass:"text-con"},[t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl},expression:"{ data: tipReportData, envUrl }"}],staticClass:"text-show",style:[e.textStyle,e.hoverStyleShow?e.hoverStyle:""]},[e._v(e._s(e.attributeJson.label))])])])},He=[],ze={name:"simplyText",inheritAttrs:!1,mixins:[I],props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},computed:{textStyle(){let{fontStyle:{fontSize:e,color:t,fontWeight:i,textDecoration:s,lineHeight:r,fontItalic:n,letterSpacing:a,fontBackColor:o,fontFamily:l},textAlign:d}=this.attributeJson,u="mobile"==this.mode?2*this.ratio:this.ratio,c={fontSize:parseFloat(e)*u+"px",color:t,fontWeight:i?"bold":"",textDecoration:s?"underline":"",fontStyle:n?"italic":"",lineHeight:r,letterSpacing:(a||0)+"px",backgroundColor:o||"",fontFamily:l,textAlign:d};return c},tipReportData(){return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:24,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:1,event:"bannerShow"}}},methods:{needSensorsRep(){},pageClick(){var e;let t=JSON.parse(JSON.stringify(this.tipReportData));if(t.event="bannerClick",this.attributeJson.linkObj.jumpLinkType)try{let e=x(t,this.envUrl,"click"),i=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",i)}catch(l){}var i,s,r,n,a,o;null!==(e=this.attributeJson)&&void 0!==e&&null!==(e=e.linkObj)&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.attributeJson,propsObject:x(JSON.parse(JSON.stringify(t)),this.envUrl,"click"),reportData:t,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isSpecial:!0,noLabel:!0}});this.$emit("jumpLink",this.attributeJson.linkObj)}}},Ve=ze,Ge=Ve,We=(i("3380"),A(Ge,$e,He,!1,null,"4b8d3640",null)),Xe=We.exports,Ye=Xe,Je={name:"singleLayout",inheritAttrs:!1,components:{textItem:N,imgNav:Z,videoItem:ge,swiperItem:xe,buttonItem:De,productItem:qe,simplyText:Ye},props:{envUrl:{type:String,default:""},extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},canDragInc:{type:Boolean,default:!0}},data(){return{vLine:[],hLine:[],componentName:""}},computed:{layoutStyle:function(){return this.layOutData.layoutStyle?{backgroundImage:2===this.layOutData.layoutStyle.bgStyle.type&&0!=this.layOutData.layoutStyle.bgStyle.picList.length&&`url(${this.layOutData.layoutStyle.bgStyle.picList[0].resourcePath})`,backgroundColor:1===this.layOutData.layoutStyle.bgStyle.type&&this.layOutData.layoutStyle.bgStyle.backgroundColor}:{}}},methods:{needSensorsRep(){if(this.stopReport)return;const e=this.$refs.singleComponent;(null===e||void 0===e?void 0:e.length)>0&&e.forEach(e=>{e.needSensorsRep()})},getCustom(){let e=this.layOutData.componentList.filter(e=>e.type>100);return e}}},Ke=Je,Qe=Ke,Ze=(i("846e"),A(Qe,o,l,!1,null,"aba35be2",null)),et=Ze.exports,tt=et,it=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{key:e.layOutData.layoutStyle.height,staticClass:"multiple-layout",style:{height:Math.round(e.layOutData.layoutStyle.height*e.ratio)+"px"}},[e._l(e.layOutData.list,(function(i,s){return[t("div",{key:s,staticClass:"multiple-item",style:{width:Math.round(i.baseStyle.w*e.ratio)+"px",height:Math.round(e.layOutData.layoutStyle.height*e.ratio)+"px",zIndex:e.currentIndex==s?1:"auto"}},[t("singleLayout",e._g(e._b({ref:"multipleSingle",refInFor:!0,attrs:{envUrl:e.envUrl,layOutData:i,componentList:i.componentList,"parent-l":i.baseStyle.l,ratio:e.ratio,recordId:e.recordId,mode:e.mode}},"singleLayout",e.$attrs,!1),e.$listeners))],1)]}))],2)},st=[],rt={name:"multipleLayout",components:{singleLayout:tt},props:{envUrl:{type:String,default:""},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},mode:{type:String,default:"pc"},recordId:{type:Number,default:0}},inheritAttrs:!1,data(){return{w:200,currentItem:null,currentIndex:""}},watch:{},mounted(){},methods:{}},nt=rt,at=nt,ot=(i("90b1"),A(at,it,st,!1,null,"0b19715e",null)),lt=ot.exports,dt=lt,ut=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl,isClient:e.isClient},expression:"{ data: tipReportData, envUrl, isClient }"}],ref:"custom"+e.layOutData.sort,staticClass:"custom-layout"},[t("div",{staticClass:"add-con"}),e._t("customComponent",null,{attributeJson:e.layOutData})],2)},ct=[],ht={name:"customLayout",props:{refererPagePath:{type:String},layOutData:{type:Object,default:()=>{}},envUrl:{type:String,default:""},path:{type:String},isClient:{type:Boolean,default:!0}},data(){return{sensorsIsRes:!1}},inheritAttrs:!1,computed:{tipReportData(){return{uniqueId:this.layOutData.sort,uniqueName:this.uniqueName,componentType:7,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:1}}},methods:{},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}},treport:E}},pt=ht,ft=pt,mt=(i("9527"),A(ft,ut,ct,!1,null,"5d3536cc",null)),gt=mt.exports,yt=gt,vt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"tab-layout"},[e.hasTab?t("div",{staticClass:"tab-detail tab-con"},[t("div",[2==e.tabHeadInfo.showTitle?t("div",{ref:"tabHeadTitleDom",style:e.titleStyle},[t("span",[e._v(e._s(1==e.tabHeadInfo.customTitle?e.tabHeadInfo.title:e.list[e.tabIndex].title))])]):e._e(),t("div",{staticClass:"tab-list"},[t("div",{staticClass:"tab-line"},e._l(e.list,(function(i,s){return t("navItem",{key:s,attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:`nav_${e.recordId}_${e.sort}_${Number(s+1)}`,name:`nav_${e.recordId}_${e.sort}_${Number(s+1)}`,item:i,ratio:e.ratio,mode:e.mode,spacing:e.layOutData.fontStyle.spacing*e.ratio,active:e.tabIndex==s,navStyle:e.navStyle(s)},nativeOn:{click:function(t){return e.chooseTab(i,s)}}})})),1)]),t("div",{staticClass:"tab-content",style:{height:Math.ceil(e.list[e.tabIndex].height*e.ratio+1)+"px",transform:`translateX(${100*-e.tabIndex}%)`}},e._l(e.list,(function(i,s){return t("div",{key:s,staticClass:"tab-single"},[t("singleLayout",e._g(e._b({ref:"tabSingle"+s,refInFor:!0,attrs:{layOutData:i,componentList:i.componentList,ratio:e.ratio,recordId:e.recordId,mode:e.mode,envUrl:e.envUrl,extraCategory:e.extraCategory}},"singleLayout",e.$attrs,!1),e.$listeners))],1)})),0)])]):e._e()])},bt=[],_t=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"nav-item",style:[e.navStyle,e.backStyle]},[[t("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"back-image",attrs:{src:e.item.navStyle.activeBackImage}}),t("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"back-image",attrs:{src:e.item.navStyle.backImage}})],t("span",{style:{marginLeft:e.spacing+"px"}},[e._v(e._s(e.item.title))])],2)},Tt=[],St={name:"navItem",props:{item:{type:Object,default:()=>{}},active:{type:Boolean,default:!1},navStyle:{type:Object,default:()=>{}},spacing:{type:[String,Number],default:0}},data(){return{}},watch:{},computed:{backStyle(){let{item:e,active:t}=this;return{backgroundColor:1==e.navStyle.type?t?e.navStyle.activeColor:e.navStyle.backgroundColor:"",backgroundImage:2==e.navStyle.type?t?`url('${e.navStyle.activeBackImage}')`:`url('${e.navStyle.backImage}')`:""}}},methods:{}},wt=St,Et=wt,xt=(i("5848"),A(Et,_t,Tt,!1,null,"ba25525a",null)),Ct=xt.exports,kt=Ct,It={name:"tabLayout",components:{navItem:kt,singleLayout:tt},props:{refererPagePath:{type:String},envUrl:{type:String,default:""},path:{type:String},sort:{type:Number,default:0},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},mode:{type:String,default:"pc"},recordId:{type:Number,default:0}},mounted(){setTimeout(()=>{this.sensorsTab()},200)},data(){return{tabIndex:0,activeSort:"",tabHeadTitleH:0}},computed:{extraCategory(){var e;let t=null;return(null===(e=this.layOutData)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)>0&&(t={isCategory:!0,category_index:String(this.tabIndex+1),category_name:this.layOutData.list[this.tabIndex].title}),t},hasTab(){return this.layOutData.list.some(e=>e.title)},list(){return this.layOutData.list},tabHeadInfo(){return this.layOutData.tabHeadInfo},navStyle(){let{tabHeadInfo:{width:e,height:t},borderStyle:i,fontStyle:{fontSize:s,color:r,fontWeight:n,textDecoration:a,fontItalic:o,hoverObj:{color:l}}}=this.layOutData,{borderTop:d,borderRight:u,borderBottom:c,borderLeft:h,borderColor:p,hoverObj:f}=i;return function(){return{width:e*this.ratio+"px",height:t*this.ratio+"px",color:r,fontSize:s,fontWeight:n?"bold":"",textDecoration:a?"underline":"",fontStyle:o?"italic":"",borderTop:2===i.type&&d?"1px solid "+d:1===i.type&&p?"1px solid "+p:"none",borderRight:2===i.type&&u?"1px solid "+u:1===i.type&&p?"1px solid "+p:"none",borderBottom:2===i.type&&c?"1px solid "+c:1===i.type&&p?"1px solid "+p:"none",borderLeft:2===i.type&&h?"1px solid "+h:1===i.type&&p?"1px solid "+p:"none","--hoverColor":l,"--hoverBorderTop":2===f.type&&f.borderTop?"1px solid "+f.borderTop:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none","--hoverBorderRight":2===f.type&&f.borderRight?"1px solid "+f.borderRight:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none","--hoverBorderBottom":2===f.type&&f.borderBottom?"1px solid "+f.borderBottom:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none","--hoverBorderLeft":2===f.type&&f.borderLeft?"1px solid "+f.borderLeft:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none"}}},titleStyle(){let{tabHeadInfo:{titleStyle:{fontSize:e,color:t,fontWeight:i,textDecoration:s,fontItalic:r}}}=this.layOutData;return{color:t,fontSize:e,fontWeight:i?"bold":"",textDecoration:s?"underline":"",fontStyle:r?"italic":"",paddingLeft:("pc"==this.mode?30:60)*this.ratio+"px",paddingBottom:("pc"==this.mode?40:80)*this.ratio+"px"}}},watch:{"layOutData.tabHeadInfo":{handler:function(){this.$nextTick(()=>{this.tabHeadTitleH=2==this.layOutData.tabHeadInfo.showTitle&&this.$refs["tabHeadTitleDom"]?this.$refs["tabHeadTitleDom"].clientHeight:0,this.setLayoutH()})},immediate:!0,deep:!0},"list.length":{handler:function(){let e=this.list.findIndex(e=>e.sort==this.activeSort);e>-1?this.tabIndex=e:(this.tabIndex=this.tabIndex>0?this.tabIndex-1:0,this.activeSort=this.list[this.tabIndex].sort)},deep:!0},hasTab:{handler:function(e){e&&(this.activeSort=this.list[0].sort,this.tabIndex=0)}}},methods:{chooseTab(e,t){this.activeSort=e.sort,this.tabIndex=t,this.setLayoutH(),this.$emit("updateLayOut",{sort:this.layOutData.sort});const i={uniqueId:this.recordId+"_"+this.sort,uniqueName:this.layOutData.uniqueName,componentMethodType:1,popData:{},materialId:e.sort?this.recordId+"_"+e.sort:this.recordId+"_"+this.sort,materialName:e.title,refererPagePath:this.refererPagePath,path:this.path,componentType:7,brand:this.brand,position:t+1,event:"bannerClick"};this.$emit("sensorsCmsRepost",{initObject:this.layOutData,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(i)),this.envUrl,"click"),reportData:i,extraData:{isTabFirst:!0,component_id:this.recordId+"_"+this.sort,component_type:"tabLayout",isCategory:!1,category_index:"",category_name:"",isNoMKT:!1,MKTIndex:String(t+1),MKTName:e.title}});let s=x(i,this.envUrl,"click"),r=new Blob([JSON.stringify(s)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",r),setTimeout(()=>{this.sensorsTab()},0)},setLayoutH:function(){this.$set(this.layOutData.layoutStyle,"height",1*this.layOutData.list[this.tabIndex].height+1*this.layOutData.tabHeadInfo.height+1*this.tabHeadTitleH/this.ratio)},sensorsTab(){let e=this.$refs["tabSingle"+this.tabIndex];e&&e[0]&&e[0].needSensorsRep()}}},Pt=It,Ot=Pt,Lt=(i("cb7e"),A(Ot,vt,bt,!1,null,"1d67a36e",null)),At=Lt.exports,Dt=At,Mt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"slide-wrap",style:{"--hoverColor":e.paginationStyle.hoverColor||e.paginationStyle.color,"--activeColor":e.paginationStyle.activeColor,"--color":e.paginationStyle.color}},[t("div",{key:e.indicatorType,class:[`swiper-container swiper-container-${e.recordId} swiper-container-${e.indicatorType}`],attrs:{id:"mySwiper-"+e.recordId}},[t("div",{staticClass:"swiper-wrapper"},e._l(e.slideList,(function(i,s){return t("div",{key:s,class:["swiper-slide",{"slide-auto":1==e.widthStyle.type||e.centeredSlides}]},[t("div",{staticClass:"slide-con",style:[e.backStyle(i.i),{width:1==e.widthStyle.type?i.slideWidth*e.ratio+"px":e.backStyle(i.i).width}]},[t("singleLayout",e._g(e._b({ref:i.isCopy?"":"slideSingle",refInFor:!0,attrs:{envUrl:e.envUrl,layOutData:i,ratio:e.ratio,recordId:e.recordId,mode:e.mode,extraCategory:e.extraCategory,stopReport:e.realActiveIndex!=s}},"singleLayout",e.$attrs,!1),e.$listeners))],1)])})),0),e.hasSwiperButton?t("div",{class:["swiper-button-prev","swiper-button-prev-"+e.recordId]},[t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-left",style:e.pageStyle})])]):e._e(),e.hasSwiperButton?t("div",{class:["swiper-button-next","swiper-button-next-"+e.recordId]},[t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-right",style:e.pageStyle})])]):e._e()])])},Nt=[],Rt={name:"slideLayout",components:{singleLayout:tt},props:{envUrl:{type:String,default:""},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},mode:{type:String,default:"pc"},recordId:{type:Number,default:0}},data(){return{swiper:"",realActiveIndex:0,slideIndex:0,layWidth:1920,isInit:!1,slideList:[],isMove:!1}},watch:{layoutStyle:{handler(e){this.layWidth=("pc"==this.mode?1920:750)*(e.widthStyle.width/100)},deep:!0,immediate:!0},slideLen:{handler(){this.calculateWidth()},immediate:!0}},computed:{extraCategory(){var e;let t=null;return(null===(e=this.layOutData)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)>0&&(t={category_index:String(this.realActiveIndex+1)}),t},layoutStyle(){return this.layOutData.layoutStyle},paginationStyle(){return this.layOutData.paginationStyle},bgStyle(){return this.layOutData.bgStyle},list(){return this.layOutData.list},styleType(){return this.layOutData.styleType},indicatorType(){return this.layOutData.indicatorType},widthStyle(){return this.layOutData.widthStyle},hasSwiperButton(){return 2==this.indicatorType},pageStyle(){return{color:this.layOutData.paginationStyle.color}},backStyle(){let{bgStyle:e,layoutStyle:t,styleType:i,mode:s}=this;return function(r){let n=this.list[r],a="",o="";var l,d,u;1==(null===e||void 0===e?void 0:e.status)?1==(null===e||void 0===e?void 0:e.type)?a=null!==e&&void 0!==e&&e.backgroundColor?e.backgroundColor:"":o=(null===e||void 0===e||null===(l=e.picList)||void 0===l?void 0:l.length)>0?`url(${e.picList[0].resourcePath})`:"":1==n.bgStyle.type?a=null!==n&&void 0!==n&&null!==(d=n.bgStyle)&&void 0!==d&&d.backgroundColor?n.bgStyle.backgroundColor:"":o=(null===n||void 0===n||null===(u=n.bgStyle)||void 0===u||null===(u=u.picList)||void 0===u?void 0:u.length)>0?`url(${n.bgStyle.picList[0].resourcePath})`:"";let c="mobile"==s||"pc"==s&&2==i,h=c?this.layWidth-0*(this.layOutData.lineSlideNum+1)-("mobile"==s?0:556):this.layWidth;return{width:h/this.layOutData.lineSlideNum*this.ratio+"px",height:Math.ceil(t.height*this.ratio)+"px",backgroundColor:a,backgroundImage:o}}},slideLen(){var e;return(null===(e=this.layOutData)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)>0?this.layOutData.list.length:0},centeredSlides(){return"mobile"==this.mode||"pc"==this.mode&&2==this.styleType}},methods:{sleep(e){return new Promise(async t=>{clearTimeout(this.sleepTimer),this.sleepTimer=setTimeout(()=>{clearTimeout(this.sleepTimer),t("success")},e)})},calculateWidth:function(){let{list:e}=this;e.forEach((e,t)=>{e.i=t});let t=JSON.parse(JSON.stringify(e));t.forEach(e=>{e.isCopy=!0}),this.slideList=e.concat(JSON.parse(JSON.stringify(t))),this.slideList=t.concat(this.slideList),this.$nextTick(()=>{if(2==this.layOutData.widthStyle.type)return void this.initSwiper();let{layWidth:e}=this;this.slideList.forEach(t=>{let i=t.componentList[0],s=0;if(i){let t=i.attributeJson;if(2==i.type){let i=t.list.some(e=>{var t;return Boolean((null===e||void 0===e||null===(t=e.picList)||void 0===t?void 0:t.length)>0)});s=i?t.baseStyle.w+t.baseStyle.l:e}else if(3==i.type){var r;let i=Boolean((null===t||void 0===t||null===(r=t.videoInfo)||void 0===r||null===(r=r.list)||void 0===r?void 0:r.length)>0);s=i?t.baseStyle.w+t.baseStyle.l:e}else s=t.baseStyle.w+t.baseStyle.l}else s=e;this.$set(t,"slideWidth",s)}),this.$nextTick(()=>{this.initSwiper()})})},initSwiper(){this.$nextTick(()=>{var e;this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);let{layOutData:t,widthStyle:i,ratio:s,slideLen:r}=this;this.options={effect:"slide",observer:!0,observeParents:!0,slidesPerView:this.centeredSlides||1==i.type?"auto":t.lineSlideNum,preventInteractionOnTransition:!0,slidesPerGroup:1,slidesPerGroupAuto:!0,centeredSlides:this.centeredSlides||1==i.type,spaceBetween:this.centeredSlides?0*s:0,autoplay:!!(t.autoPlay&&(null===(e=this.list)||void 0===e?void 0:e.length)>1)&&{delay:1e3*t.interval,disableOnInteraction:!1,stopOnLastSlide:!1}},1==i.type&&(this.options.loopedSlides=4,this.options.loopAdditionalSlides=2);let n=this;var a;(this.options.on={slideNextTransitionEnd:function(){this.activeIndex==2*r&&this.slideTo(r,0),n.slideIndex=this.activeIndex},slidePrevTransitionEnd:function(){this.activeIndex==r-1&&this.slideTo(2*r-1,0)},slideChange:async function(){var e,t;if((null===(e=n.slideList)||void 0===e?void 0:e.length)>0&&this.realIndex!==(null===(t=n.slideList)||void 0===t?void 0:t.length)/3&&(n.isMove=!0),n.isMove){n.realActiveIndex=this.realIndex;const e=n.$refs.slideSingle;await n.sleep(200),(null===e||void 0===e?void 0:e.length)>0&&e.forEach(e=>{e.needSensorsRep()})}}},this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.recordId,prevEl:".swiper-button-prev-"+this.recordId}),this.swiper=new j.a(".swiper-container-"+this.recordId,this.options),this.swiper)&&(this.swiper instanceof Array?(null===(a=this.swiper)||void 0===a?void 0:a.length)>0&&this.swiper[0].slideTo(r,0):this.swiper.slideTo(r,0))})}}},Ut=Rt,Bt=Ut,jt=(i("8a69"),A(Bt,Mt,Nt,!1,null,"50905d4e",null)),Ft=jt.exports,qt=Ft,$t={name:"cms",inheritAttrs:!1,components:{singleLayout:tt,multipleLayout:dt,customLayout:yt,tabLayout:Dt,slideLayout:qt},props:{cmsList:{type:Array,default:()=>[]},canDrag:{type:Boolean,default:!0},mode:{type:String,default:"pc"},ratio:{type:Number,default:1},envUrl:{type:String,default:""},path:{type:String},isClient:{type:Boolean,default:!0}},data(){return{chooseSort:"",activeIndex:-1,layOutObj:{1:"singleLayout",2:"multipleLayout",3:"customLayout",4:"tabLayout",5:"slideLayout"}}},computed:{},mounted(){},methods:{chooseLayout(e,t){this.chooseSort=t,this.$emit("updateLayOut",{layoutType:e,sort:t})},updateSort(e){this.chooseSort=e},deleteModule(e,t){t===this.chooseSort?this.$emit("deleteModule",e):(this.cmsList.splice(e,1),this.$emit("saveVersionId"))},showOrHide(e){let t=this.cmsList[e];this.$set(t,"displayType",t.displayType?0:1),this.$emit("componentChange",t.sort)}}},Ht=$t,zt=Ht,Vt=(i("383a"),A(zt,n,a,!1,null,"66c85d51",null)),Gt=Vt.exports;const Wt=[Gt],Xt=function(e){Xt.installed||Wt.map(t=>e.component(t.name,t))};var Yt={install:Xt};t["default"]=Yt},fc6a:function(e,t,i){"use strict";var s=i("44ad"),r=i("1d80");e.exports=function(e){return s(r(e))}},fda2:function(e,t,i){},fdbf:function(e,t,i){"use strict";var s=i("04f8");e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ffdf:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return a}));var s=i("be09"),r=i.n(s),n=function(t){return r.a.atob?r.a.atob(t):e.from(t,"base64").toString("binary")};function a(e){for(var t=n(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}}).call(this,i("b639").Buffer)}});
|
30
|
+
/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const s=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],s=t[4],r=i[4];let n,a,o;const l=[],d=[];let u,c,h,p,f,m;for(n=0;n<256;n++)d[(l[n]=n<<1^283*(n>>7))^n]=n;for(a=o=0;!s[a];a^=u||1,o=d[o]||1)for(p=o^o<<1^o<<2^o<<3^o<<4,p=p>>8^255&p^99,s[a]=p,r[p]=a,h=l[c=l[u=l[a]]],m=16843009*h^65537*c^257*u^16843008*a,f=257*l[p]^16843008*p,n=0;n<4;n++)t[n][a]=f=f<<24^f>>>8,i[n][p]=m=m<<24^m>>>8;for(n=0;n<5;n++)t[n]=t[n].slice(0),i[n]=i[n].slice(0);return e};let r=null;class n{constructor(e){let t,i,n;r||(r=s()),this._tables=[[r[0][0].slice(),r[0][1].slice(),r[0][2].slice(),r[0][3].slice(),r[0][4].slice()],[r[1][0].slice(),r[1][1].slice(),r[1][2].slice(),r[1][3].slice(),r[1][4].slice()]];const a=this._tables[0][4],o=this._tables[1],l=e.length;let d=1;if(4!==l&&6!==l&&8!==l)throw new Error("Invalid aes key size");const u=e.slice(0),c=[];for(this._key=[u,c],t=l;t<4*l+28;t++)n=u[t-1],(t%l===0||8===l&&t%l===4)&&(n=a[n>>>24]<<24^a[n>>16&255]<<16^a[n>>8&255]<<8^a[255&n],t%l===0&&(n=n<<8^n>>>24^d<<24,d=d<<1^283*(d>>7))),u[t]=u[t-l]^n;for(i=0;t;i++,t--)n=u[3&i?t:t-4],c[i]=t<=4||i<4?n:o[0][a[n>>>24]]^o[1][a[n>>16&255]]^o[2][a[n>>8&255]]^o[3][a[255&n]]}decrypt(e,t,i,s,r,n){const a=this._key[1];let o,l,d,u=e^a[0],c=s^a[1],h=i^a[2],p=t^a[3];const f=a.length/4-2;let m,g=4;const y=this._tables[1],v=y[0],b=y[1],_=y[2],T=y[3],S=y[4];for(m=0;m<f;m++)o=v[u>>>24]^b[c>>16&255]^_[h>>8&255]^T[255&p]^a[g],l=v[c>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&u]^a[g+1],d=v[h>>>24]^b[p>>16&255]^_[u>>8&255]^T[255&c]^a[g+2],p=v[p>>>24]^b[u>>16&255]^_[c>>8&255]^T[255&h]^a[g+3],g+=4,u=o,c=l,h=d;for(m=0;m<4;m++)r[(3&-m)+n]=S[u>>>24]<<24^S[c>>16&255]<<16^S[h>>8&255]<<8^S[255&p]^a[g++],o=u,u=c,c=h,h=p,p=o}}class a extends t{constructor(){super(t),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const o=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},l=function(e,t,i){const s=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new n(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),l=new Int32Array(a.buffer);let d,u,c,h,p,f,m,g,y;for(d=i[0],u=i[1],c=i[2],h=i[3],y=0;y<s.length;y+=4)p=o(s[y]),f=o(s[y+1]),m=o(s[y+2]),g=o(s[y+3]),r.decrypt(p,f,m,g,l,y),l[y]=o(l[y]^d),l[y+1]=o(l[y+1]^u),l[y+2]=o(l[y+2]^c),l[y+3]=o(l[y+3]^h),d=p,u=f,c=m,h=g;return a};class d{constructor(e,t,s,r){const n=d.STEP,l=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength);let c=0;for(this.asyncStream_=new a,this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+n),t,s,u)),c=n;c<l.length;c+=n)s=new Uint32Array([o(l[c-4]),o(l[c-3]),o(l[c-2]),o(l[c-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+n),t,s,u));this.asyncStream_.push((function(){r(null,i(u))}))}static get STEP(){return 32e3}decryptChunk_(e,t,i,s){return function(){const r=l(e,t,i);s.set(r,e.byteOffset)}}}var u,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};u="undefined"!==typeof window?window:"undefined"!==typeof c?c:"undefined"!==typeof self?self:{};var h=u,p=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},f=h.BigInt||Number;f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();const m=function(e){const t={};return Object.keys(e).forEach(i=>{const s=e[i];p(s)?t[i]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[i]=s}),t};self.onmessage=function(e){const t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),s=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new d(i,s,r,(function(e,i){self.postMessage(m({source:t.source,decrypted:i}),[i.buffer])}))}})));var Od=Oo(Pd);const Ld=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Ad=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Dd=(e,t)=>{t.activePlaylistLoader=e,e.load()},Md=(e,t)=>()=>{const{segmentLoaders:{[e]:i,main:s},mediaTypes:{[e]:r}}=t,n=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;a&&l&&a.id===l.id||(r.lastGroup_=a,r.lastTrack_=n,Ad(i,r),a&&!a.isMainPlaylist&&(a.playlistLoader?(i.resyncLoader(),Dd(a.playlistLoader,r)):o&&s.resetEverything()))},Nd=(e,t)=>()=>{const{segmentLoaders:{[e]:i},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,i.abort(),i.pause()},Rd=(e,t)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:n}}=t,a=n.activeTrack(),o=n.getActiveGroup(),l=n.activePlaylistLoader,d=n.lastTrack_;if((!d||!a||d.id!==a.id)&&(n.lastGroup_=o,n.lastTrack_=a,Ad(s,n),o)){if(o.isMainPlaylist){if(!a||!d||a.id===d.id)return;const e=t.vhs.playlistController_,s=e.selectPlaylist();if(e.media()===s)return;return n.logger_(`track change. Switching main audio from ${d.id} to ${a.id}`),i.pause(),r.resetEverything(),void e.fastQualityChange_(s)}if("AUDIO"===e){if(!o.playlistLoader)return r.setAudio(!0),void r.resetEverything();s.setAudio(!0),r.setAudio(!1)}l!==o.playlistLoader?(s.track&&s.track(a),s.resetEverything(),Dd(o.playlistLoader,n)):Dd(o.playlistLoader,n)}},Ud={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:i},excludePlaylist:s}=t,r=i.activeTrack(),n=i.activeGroup(),a=(n.filter(e=>e.default)[0]||n[0]).id,o=i.tracks[a];if(r!==o){xn.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in i.tracks)i.tracks[e].enabled=i.tracks[e]===o;i.onTrackChanged()}else s({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:i}}=t;xn.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=i.activeTrack();s&&(s.mode="disabled"),i.onTrackChanged()}},Bd={AUDIO:(e,t,i)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:n}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Ud[e](e,i))},SUBTITLES:(e,t,i)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:n},mediaTypes:{[e]:a}}=i;t.on("loadedmetadata",()=>{const e=t.media();n.playlist(e,r),n.track(a.activeTrack()),(!s.paused()||e.endList&&"none"!==s.preload())&&n.load()}),t.on("loadedplaylist",()=>{n.playlist(t.media(),r),s.paused()||n.load()}),t.on("error",Ud[e](e,i))}},jd={AUDIO:(e,t)=>{const{vhs:i,sourceType:s,segmentLoaders:{[e]:r},requestOptions:n,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:d}},mainPlaylistLoader:u}=t,c=va(u.main);a[e]&&0!==Object.keys(a[e]).length||(a[e]={main:{default:{default:!0}}},c&&(a[e].main.default.playlists=u.main.playlists));for(const h in a[e]){o[h]||(o[h]=[]);for(const r in a[e][h]){let p,f=a[e][h][r];if(c?(d(`AUDIO group '${h}' label '${r}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===s&&f.playlists?new Fa(f.playlists[0],i,n):f.resolvedUri?new Fa(f.resolvedUri,i,n):f.playlists&&"dash"===s?new xo(f.playlists[0],i,n,u):null,f=Mn({id:r,playlistLoader:p},f),Bd[e](e,f.playlistLoader,t),o[h].push(f),"undefined"===typeof l[r]){const e=new xn.AudioTrack({id:r,kind:Ld(f),enabled:!1,language:f.language,default:f.default,label:r});l[r]=e}}}r.on("error",Ud[e](e,t))},SUBTITLES:(e,t)=>{const{tech:i,vhs:s,sourceType:r,segmentLoaders:{[e]:n},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:d}},mainPlaylistLoader:u}=t;for(const c in o[e]){l[c]||(l[c]=[]);for(const n in o[e][c]){if(!s.options_.useForcedSubtitles&&o[e][c][n].forced)continue;let h,p=o[e][c][n];if("hls"===r)h=new Fa(p.resolvedUri,s,a);else if("dash"===r){const e=p.playlists.filter(e=>e.excludeUntil!==1/0);if(!e.length)return;h=new xo(p.playlists[0],s,a,u)}else"vhs-json"===r&&(h=new Fa(p.playlists?p.playlists[0]:p.resolvedUri,s,a));if(p=Mn({id:n,playlistLoader:h},p),Bd[e](e,p.playlistLoader,t),l[c].push(p),"undefined"===typeof d[n]){const e=i.addRemoteTextTrack({id:n,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:n},!1).track;d[n]=e}}}n.on("error",Ud[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:i,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:n}}}=t;for(const a in s[e]){r[a]||(r[a]=[]);for(const t in s[e][a]){const o=s[e][a][t];if(!/^(?:CC|SERVICE)/.test(o.instreamId))continue;const l=i.options_.vhs&&i.options_.vhs.captionServices||{};let d={label:t,language:o.language,instreamId:o.instreamId,default:o.default&&o.autoselect};if(l[d.instreamId]&&(d=Mn(d,l[d.instreamId])),void 0===d.default&&delete d.default,r[a].push(Mn({id:t},o)),"undefined"===typeof n[t]){const e=i.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;n[t]=e}}}}},Fd=(e,t)=>{for(let i=0;i<e.length;i++){if(ga(t,e[i]))return!0;if(e[i].playlists&&Fd(e[i].playlists,t))return!0}return!1},qd=(e,t)=>i=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,n=s.media();if(!n)return null;let a=null;n.attributes[e]&&(a=r[n.attributes[e]]);const o=Object.keys(r);if(!a)if("AUDIO"===e&&o.length>1&&va(t.main))for(let e=0;e<o.length;e++){const t=r[o[e]];if(Fd(t,n)){a=t;break}}else r.main?a=r.main:1===o.length&&(a=r[o[0]]);return"undefined"===typeof i?a:null!==i&&a&&a.filter(e=>e.id===i.id)[0]||null},$d={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if(i[e].enabled)return i[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:i}}}=t;for(const e in i)if("showing"===i[e].mode||"hidden"===i[e].mode)return i[e];return null}},Hd=(e,{mediaTypes:t})=>()=>{const i=t[e].activeTrack();return i?t[e].activeGroup(i):null},zd=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{jd[t](t,e)});const{mediaTypes:t,mainPlaylistLoader:i,tech:s,vhs:r,segmentLoaders:{["AUDIO"]:n,main:a}}=e;["AUDIO","SUBTITLES"].forEach(i=>{t[i].activeGroup=qd(i,e),t[i].activeTrack=$d[i](i,e),t[i].onGroupChanged=Md(i,e),t[i].onGroupChanging=Nd(i,e),t[i].onTrackChanged=Rd(i,e),t[i].getActiveGroup=Hd(i,e)});const o=t.AUDIO.activeGroup();if(o){const e=(o.filter(e=>e.default)[0]||o[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();const i=t.AUDIO.getActiveGroup();i.playlistLoader?(a.setAudio(!1),n.setAudio(!0)):a.setAudio(!0)}i.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),i.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),s.clearTracks("audio");for(const d in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[d])},Vd=()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ad,activeTrack:ad,getActiveGroup:ad,onGroupChanged:ad,onTrackChanged:ad,lastTrack_:null,logger_:Dn(`MediaGroups[${t}]`)}}),e};class Gd{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=Ln(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(e=>[e.ID,e])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class Wd extends xn.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Gd,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Dn("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const i=t.serverUri||t.serverURL;if(!i)return this.logger_(`steering manifest URL is ${i}, cannot request steering manifest.`),void this.trigger("error");i.startsWith("data:")?this.decodeDataUriManifest_(i.substring(i.indexOf(",")+1)):(this.steeringManifest.reloadUri=Ln(e,i),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart,this.proxyServerUrl_=t.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!t)return;const i=e?t:this.getRequestURI(t);if(!i)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();this.request_=this.xhr_({uri:i},(e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${i} this session.`),void this.excludedSteeringManifestURLs.add(i);if(429===t.status){const i=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${i} seconds.`),void this.startTTLTimeout_(parseInt(i,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}const s=JSON.parse(this.request_.responseText);this.assignSteeringProperties_(s),this.startTTLTimeout_()})}setProxyServerUrl_(e){const t=new r.a.URL(e),i=new r.a.URL(this.proxyServerUrl_);return i.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(i.toString())}decodeDataUriManifest_(e){const t=JSON.parse(r.a.atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new r.a.URL(e),i=this.getPathway(),s=this.getBandwidth_();if(i){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,i)}if(s){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,s)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const t=e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]},i=t(this.steeringManifest.priority);this.currentPathway!==i&&(this.currentPathway=i,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const i=this.setProxyServerUrl_(e);if(!t(i))return i}const i=this.setSteeringParams_(e);return t(i)?null:i}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=r.a.setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){r.a.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Gd}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,t){return!t&&this.steeringManifest.reloadUri||t&&(Ln(e,t.serverURL)!==this.steeringManifest.reloadUri||t.defaultServiceLocation!==this.defaultPathway||t.queryBeforeStart!==this.queryBeforeStart||t.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const Xd=10;let Yd;const Jd=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Kd=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Qd=function({currentPlaylist:e,buffered:t,currentTime:i,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:n,duration:a,bufferBasedABR:o,log:l}){if(!s)return xn.log.warn("We received no playlist to switch to. Please check your stream."),!1;const d=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(d+" as current playlist is not set"),!0;if(s.id===e.id)return!1;const u=Boolean(jn(t,i).length);if(!e.endList)return u||"number"!==typeof e.partTargetDuration?(l(d+" as current playlist is live"),!0):(l(`not ${d} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const c=Xn(t,i),h=o?Co.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Co.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${d} as duration < max low water line (${a} < ${h})`),!0;const p=s.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!o||c<n)){let e=`${d} as next bandwidth < current bandwidth (${p} < ${f})`;return o&&(e+=` and forwardBuffer < bufferHighWaterLine (${c} < ${n})`),l(e),!0}if((!o||p>f)&&c>=r){let e=`${d} as forwardBuffer >= bufferLowWaterLine (${c} >= ${r})`;return o&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`not ${d} as no switching criteria met`),!1};class Zd extends xn.EventTarget{constructor(e){super();const{src:t,withCredentials:i,tech:s,bandwidth:n,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:d,sourceType:u,cacheEncryptionKeys:c,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:f}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:m}=e;null!==m&&"undefined"!==typeof m||(m=1/0),Yd=a,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=i,this.tech_=s,this.vhs_=s.vhs,this.sourceType_=u,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=d,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:i,maxPlaylistRetries:m,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=Vd(),this.mediaSource=new r.a.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=Nn(),this.hasPlayed_=!1,this.syncController_=new kd(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new Od,this.sourceUpdater_=new yd(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Id,this.keyStatusMap_=new Map;const g={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:f,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:n,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:c,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new xo(t,this.vhs_,Mn(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new Fa(t,this.vhs_,Mn(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new nd(Mn(g,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new nd(Mn(g,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new Sd(Mn(g,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>{function i(){s.off("vttjserror",r),e()}function r(){s.off("vttjsloaded",i),t()}s.one("vttjsloaded",i),s.one("vttjserror",r),s.addWebVttScript_()})}),e);const y=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new Wd(this.vhs_.xhr,y),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),Jd.forEach(e=>{this[e+"_"]=Kd.bind(this,e)}),this.logger_=Dn("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const v="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(v,()=>{const e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,i){const s=this.media(),r=s&&(s.id||s.uri),n=e&&(e.id||e.uri);r&&r!==n&&(this.logger_(`switch media ${r} -> ${n} from ${t}`),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.mainPlaylistLoader_.media(e,i)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],i=t?t.activeGroup():null,s=this.contentSteeringController_.getPathway();if(i&&s){const t=i.length?i[0].playlists:i.playlists,r=t.filter(e=>e.attributes.serviceLocation===s);r.length&&this.mediaTypes_[e].activePlaylistLoader.media(r[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=r.a.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(r.a.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const i=e.mediaGroups.AUDIO,s=Object.keys(i);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const e=i.main||s.length&&i[s[0]];for(const t in e)if(e[t].default){r={label:t};break}}if(!r)return t;const n=[];for(const a in i)if(i[a][r.label]){const t=i[a][r.label];if(t.playlists&&t.playlists.length)n.push.apply(n,t.playlists);else if(t.uri)n.push(t);else if(e.playlists.length)for(let i=0;i<e.playlists.length;i++){const t=e.playlists[i];t.attributes&&t.attributes.AUDIO&&t.attributes.AUDIO===a&&n.push(t)}}return n.length?n:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;ma(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),zd({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial");const i="vhs-json"===this.sourceType_&&this.initialMedia_.segments;if(!i)return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;ma(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,"dash"===this.sourceType_&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();if("playlist-unchanged"===e.lastExcludeReason_)return;const t=this.stuckAtPlaylistEnd_(e);t&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,t){const i=e.mediaGroups||{};let s=!0;const r=Object.keys(i.AUDIO);for(const n in i.AUDIO)for(const e in i.AUDIO[n]){const t=i.AUDIO[n][e];t.uri||(s=!1)}s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Yd.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(i.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),s=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),n=this.tech_.buffered();return Qd({buffered:n,currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:Xd}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e&&e===this.mainPlaylistLoader_.media()?this.logger_("skipping fastQualityChange because new media is same as old"):(this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0)}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const i=t.end(0);let s=i;if(e.start){const r=e.start.timeOffset;s=r<0?Math.max(i+r,t.start(0)):Math.min(i,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){const t=this.seekable();if(!t.length)return!1;const i=this.syncController_.getExpiredTime(e,this.duration());if(null===i)return!1;const s=Yd.Playlist.playlistEnd(e,i),r=this.tech_.currentTime(),n=this.tech_.buffered();if(!n.length)return s-r<=Un;const a=n.end(n.length-1);return a-r<=Un&&s-a<=Un}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:i}){if(e=e||this.mainPlaylistLoader_.media(),i=i||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const s=this.mainPlaylistLoader_.main.playlists,r=s.filter(ua),n=1===r.length&&r[0]===e;if(1===s.length&&i!==1/0)return xn.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(n);if(n){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),i=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},i)}let t=!1;s.forEach(i=>{if(i===e)return;const s=i.excludeUntil;"undefined"!==typeof s&&s!==1/0&&(t=!0,delete i.excludeUntil)}),t&&(xn.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let a;a=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*i,e.excludeUntil=a,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const o=this.selectPlaylist();if(!o)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:xn.log.warn,d=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${d} Switching to playlist ${o.id}.`),o.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),o.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const u=o.targetDuration/2*1e3||5e3,c="number"===typeof o.lastRequest&&Date.now()-o.lastRequest<=u;return this.switchMedia_(o,"exclude",n||c)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const i=[],s="all"===e;(s||"main"===e)&&i.push(this.mainPlaylistLoader_);const r=[];(s||"audio"===e)&&r.push("AUDIO"),(s||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach(e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)}),["main","audio","subtitle"].forEach(t=>{const s=this[t+"SegmentLoader_"];!s||e!==t&&"all"!==e||i.push(s)}),i.forEach(e=>t.forEach(t=>{"function"===typeof e[t]&&e[t]()}))}setCurrentTime(e){const t=jn(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Yd.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let i=this.syncController_.getExpiredTime(t,this.duration());if(null===i)return;const s=this.mainPlaylistLoader_.main,r=Yd.Playlist.seekable(t,i,Yd.Playlist.liveEdgeDelay(s,t));if(0===r.length)return;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),i=this.syncController_.getExpiredTime(t,this.duration()),null===i)return;if(e=Yd.Playlist.seekable(t,i,Yd.Playlist.liveEdgeDelay(s,t)),0===e.length)return}let n,a;this.seekable_&&this.seekable_.length&&(n=this.seekable_.end(0),a=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=Nn([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===n&&this.seekable_.start(0)===a||(this.logger_(`seekable updated [${Hn(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let i=Yd.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(i=Math.max(i,t.end(t.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const t=this.mediaTypes_[e].groups;for(const i in t)t[i].forEach(e=>{e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const i=yl(this.main(),t),s={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=i.video||e.main.videoCodec||b["b"]),e.main.isMuxed&&(s.video+=","+(i.audio||e.main.audioCodec||b["a"])),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(s.audio=i.audio||e.main.audioCodec||e.audio.audioCodec||b["a"],e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const n=(e,t)=>e?Object(b["c"])(t):Object(b["g"])(t),a={};let o;if(["video","audio"].forEach((function(t){if(s.hasOwnProperty(t)&&!n(e[t].isFmp4,s[t])){const i=e[t].isFmp4?"browser":"muxer";a[i]=a[i]||[],a[i].push(s[t]),"audio"===t&&(o=i)}})),r&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;this.main().playlists.forEach(i=>{const s=i.attributes&&i.attributes.AUDIO;s===e&&i!==t&&(i.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${s.audio}"`)}if(!Object.keys(a).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach(t=>{const i=(Object(b["h"])(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Object(b["h"])(s[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${s[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return s}{const e=Object.keys(a).reduce((e,t)=>(e&&(e+=", "),e+=`${t} does not support codec(s): "${a[t].join(",")}"`,e),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(i=>{const s=e[i];if(-1!==t.indexOf(s.id))return;t.push(s.id);const r=yl(this.main,s),n=[];!r.audio||Object(b["g"])(r.audio)||Object(b["c"])(r.audio)||n.push("audio codec "+r.audio),!r.video||Object(b["g"])(r.video)||Object(b["c"])(r.video)||n.push("video codec "+r.video),r.text&&"stpp.ttml.im1t"===r.text&&n.push("text codec "+r.text),n.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${n.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],i=this.main().playlists,s=ml(Object(b["h"])(e)),r=gl(s),n=s.video&&Object(b["h"])(s.video)[0]||null,a=s.audio&&Object(b["h"])(s.audio)[0]||null;Object.keys(i).forEach(e=>{const s=i[e];if(-1!==t.indexOf(s.id)||s.excludeUntil===1/0)return;t.push(s.id);const o=[],l=yl(this.mainPlaylistLoader_.main,s),d=gl(l);if(l.audio||l.video){if(d!==r&&o.push(`codec count "${d}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&Object(b["h"])(l.video)[0]||null,t=l.audio&&Object(b["h"])(l.audio)[0]||null;e&&n&&e.type.toLowerCase()!==n.type.toLowerCase()&&o.push(`video codec "${e.type}" !== "${n.type}"`),t&&a&&t.type.toLowerCase()!==a.type.toLowerCase()&&o.push(`audio codec "${t.type}" !== "${a.type}"`)}o.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id}: ${o.join(" && ")}`))}})}updateAdCues_(e){let t=0;const i=this.seekable();i.length&&(t=i.start(0)),Ed(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=Co.GOAL_BUFFER_LENGTH,i=Co.GOAL_BUFFER_LENGTH_RATE,s=Math.max(t,Co.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,s)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=Co.BUFFER_LOW_WATER_LINE,i=Co.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(t,Co.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,Co.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:s)}bufferHighWaterLine(){return Co.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Ul(this.inbandTextTracks_,"com.apple.streaming",this.tech_),Rl({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,i){const s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Ul(this.inbandTextTracks_,e,this.tech_),Dl({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:s,videoDuration:i})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart?this.contentSteeringController_.requestSteeringManifest(!0):this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const e=this.main(),t=this.contentSteeringController_.didDASHTagChange(e.uri,e.contentSteering),i=()=>{const t=this.contentSteeringController_.getAvailablePathways(),i=[];for(const s of e.playlists){const e=s.attributes.serviceLocation;if(e&&(i.push(e),!t.has(e)))return!0}return!(i.length||!t.size)};(t||i())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const t=this.main(),i=t.playlists,s=new Set;let r=!1;Object.keys(i).forEach(t=>{const n=i[t],a=this.pathwayAttribute_(n),o=a&&e!==a,l=n.excludeUntil===1/0&&"content-steering"===n.lastExcludeReason_;l&&!o&&(delete n.excludeUntil,delete n.lastExcludeReason_,r=!0);const d=!n.excludeUntil&&n.excludeUntil!==1/0,u=!s.has(n.id)&&o&&d;u&&(s.add(n.id),n.excludeUntil=1/0,n.lastExcludeReason_="content-steering",this.logger_(`excluding ${n.id} for ${n.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{const i=this.mediaTypes_[t];if(i.activePlaylistLoader){const t=i.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(r=!0)}}),r&&this.changeSegmentPathway_()}handlePathwayClones_(){const e=this.main(),t=e.playlists,i=this.contentSteeringController_.currentPathwayClones,s=this.contentSteeringController_.nextPathwayClones,r=i&&i.size||s&&s.size;if(r){for(const[e,t]of i.entries()){const i=s.get(e);i||(this.mainPlaylistLoader_.updateOrDeleteClone(t),this.contentSteeringController_.excludePathway(e))}for(const[e,r]of s.entries()){const s=i.get(e);if(s)this.equalPathwayClones_(s,r)||(this.mainPlaylistLoader_.updateOrDeleteClone(r,!0),this.contentSteeringController_.addAvailablePathway(e));else{const i=t.filter(e=>e.attributes["PATHWAY-ID"]===r["BASE-ID"]);i.forEach(e=>{this.mainPlaylistLoader_.addClonePathway(r,e)}),this.contentSteeringController_.addAvailablePathway(e)}}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...s])))}}equalPathwayClones_(e,t){if(e["BASE-ID"]!==t["BASE-ID"]||e.ID!==t.ID||e["URI-REPLACEMENT"].HOST!==t["URI-REPLACEMENT"].HOST)return!1;const i=e["URI-REPLACEMENT"].PARAMS,s=t["URI-REPLACEMENT"].PARAMS;for(const r in i)if(i[r]!==s[r])return!1;for(const r in s)if(i[r]!==s[r])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const t="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(i=>{const s=this.mainPlaylistLoader_.getKeyIdSet(i);s&&s.size&&s.forEach(s=>{const r="usable",n=this.keyStatusMap_.has(s)&&this.keyStatusMap_.get(s)===r,a=i.lastExcludeReason_===t&&i.excludeUntil===1/0;n?n&&a&&(delete i.excludeUntil,delete i.lastExcludeReason_,this.logger_(`enabling playlist ${i.id} because key ID ${s} is ${r}`)):(i.excludeUntil!==1/0&&i.lastExcludeReason_!==t&&(i.excludeUntil=1/0,i.lastExcludeReason_=t,this.logger_(`excluding playlist ${i.id} because the key ID ${s} doesn't exist in the keyStatusMap or is not ${r}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(e=>{const i=e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height<720,s=e.excludeUntil===1/0&&e.lastExcludeReason_===t;i&&s&&(delete e.excludeUntil,xn.log.warn(`enabling non-HD playlist ${e.id} because all playlists were excluded due to ${t} key IDs`))})}addKeyStatus_(e,t){const i="string"===typeof e,s=i?e:bd(e),r=s.slice(0,32).toLowerCase();this.logger_(`KeyStatus '${t}' with key ID ${r} added to the keyStatusMap`),this.keyStatusMap_.set(r,t)}updatePlaylistByKeyStatus(e,t){this.addKeyStatus_(e,t),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const eu=(e,t,i)=>s=>{const r=e.main.playlists[t],n=da(r),a=ua(r);return"undefined"===typeof s?a:(s?delete r.disabled:r.disabled=!0,s===a||n||(i(),s?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),s)};class tu{constructor(e,t,i){const{playlistController_:s}=e,r=s.fastQualityChange_.bind(s);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=yl(s.main(),t),this.playlist=t,this.id=i,this.enabled=eu(e.playlists,t.id,r)}}const iu=function(e){e.representations=()=>{const t=e.playlistController_.main(),i=va(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(e=>!da(e)).map((t,i)=>new tu(e,t,t.id)):[]}},su=["seeking","seeked","pause","playing","error"];class ru{constructor(e){this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Dn("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),i=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),n=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(e=>{l[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},a[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),a[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),this.tech_.on(["seeked","seeking"],l[e].reset)});const d=e=>{["main","audio"].forEach(t=>{a[t+"SegmentLoader_"][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),d("off"))},this.clearSeekingAppendCheck_=()=>d("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),d("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(su,n),this.tech_.on("canplay",i),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(su,n),this.tech_.off("canplay",i),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(e=>{a[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),a[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),this.tech_.off(["seeked","seeking"],l[e].reset)}),this.checkCurrentTimeTimeout_&&r.a.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&r.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=r.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()}checkSegmentDownloads_(e){const t=this.playlistController_,i=t[e+"SegmentLoader_"],s=i.buffered_(),r=Gn(this[e+"Buffered_"],s);this[e+"Buffered_"]=s,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_(`found #${this[e+"StalledDownloads_"]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:i.playlist_&&i.playlist_.id,buffered:Vn(s)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),"subtitle"!==e&&t.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0})))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Un>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){const e=this.tech_.seeking();if(!e)return!1;const t=this.seekable(),i=this.tech_.currentTime(),s=this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let r;if(s){const e=t.end(t.length-1);r=e}if(this.beforeSeekableWindow_(t,i)){const e=t.start(0);r=e+(e===t.end(0)?0:Un)}if("undefined"!==typeof r)return this.logger_(`Trying to seek outside of seekable at time ${i} with seekable range ${Hn(t)}. Seeking to `+r+"."),this.tech_.setCurrentTime(r),!0;const n=this.playlistController_.sourceUpdater_,a=this.tech_.buffered(),o=n.audioBuffer?n.audioBuffered():null,l=n.videoBuffer?n.videoBuffered():null,d=this.media(),u=d.partTargetDuration?d.partTargetDuration:2*(d.targetDuration-Rn),c=[o,l];for(let p=0;p<c.length;p++){if(!c[p])continue;const e=Xn(c[p],i);if(e<u)return!1}const h=Fn(a,i);return 0!==h.length&&(r=h.start(0)+Un,this.logger_(`Buffered region starts (${h.start(0)}) just beyond seek point (${i}). Seeking to ${r}.`),this.tech_.setCurrentTime(r),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),i=jn(t,e);return i.length&&e+3<=i.end(0)?(this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${i.start(0)} -> ${i.end(0)}]. Attempting to resume playback by seeking to the current time.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const i=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${t}. Seeking to live point (seekable end) `+i),this.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const i=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered(),r=this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t});if(r)return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const n=Fn(s,t);return n.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${n.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,i,s=!1){if(!e.length)return!1;let r=e.end(e.length-1)+Un;const n=!i.endList,a="number"===typeof i.partTargetDuration;return n&&(a||s)&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:i}){if(!e)return;let s;if(e.length&&t.length){const r=jn(e,i-3),n=jn(e,i),a=jn(t,i);a.length&&!n.length&&r.length&&(s={start:r.end(0),end:a.end(0)})}else{const t=Fn(e,i);t.length||(s=this.gapFromVideoUnderflow_(e,i))}return!!s&&(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time `+i),!0)}skipTheGap_(e){const t=this.tech_.buffered(),i=this.tech_.currentTime(),s=Fn(t,i);this.resetTimeUpdate_(),0!==s.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+Rn),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,t){const i=qn(e);for(let s=0;s<i.length;s++){const e=i.start(s),r=i.end(s);if(t-e<4&&t-e>2)return{start:e,end:r}}return null}}const nu={errorInterval:30,getSource(e){const t=this.tech({IWillNotUseThisInPlugins:!0}),i=t.currentSource_||this.currentSource();return e(i)}},au=function(e,t){let i=0,s=0;const r=Mn(nu,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const n=function(){s&&e.currentTime(s)},a=function(t){null!==t&&void 0!==t&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",n),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){if(Date.now()-i<1e3*r.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"===typeof r.getSource)return i=Date.now(),r.getSource.call(e,a);xn.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",n),e.off("error",o),e.off("dispose",l)},d=function(t){l(),au(e,t)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=d},ou=function(e){au(this,e)};var lu="3.10.0",du="7.0.2",uu="1.3.0",cu="7.1.0",hu="4.0.1";const pu={PlaylistLoader:Fa,Playlist:ba,utils:so,STANDARD_PLAYLIST_SELECTOR:xl,INITIAL_PLAYLIST_SELECTOR:Il,lastBandwidthSelector:xl,movingAverageBandwidthSelector:Cl,comparePlaylistBandwidth:Sl,comparePlaylistResolution:wl,xhr:Va()};Object.keys(Co).forEach(e=>{Object.defineProperty(pu,e,{get(){return xn.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),Co[e]},set(t){xn.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!==typeof t||t<0?xn.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):Co[e]=t}})});const fu="videojs-vhs",mu=function(e,t){const i=t.media();let s=-1;for(let r=0;r<e.length;r++)if(e[r].id===i.id){s=r;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})},gu=function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),mu(e,t.playlists)};pu.canPlaySource=function(){return xn.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const yu=(e,t,i)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=ml(Object(b["h"])(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(s.audio=i.attributes.CODECS);const r=Object(b["e"])(s.video),n=Object(b["e"])(s.audio),a={};for(const o in e)a[o]={},n&&(a[o].audioContentType=n),r&&(a[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(a[o].pssh=t.contentProtection[o].pssh),"string"===typeof e[o]&&(a[o].url=e[o]);return Mn(e,a)},vu=(e,t)=>e.reduce((e,i)=>{if(!i.contentProtection)return e;const s=t.reduce((e,t)=>{const s=i.contentProtection[t];return s&&s.pssh&&(e[t]={pssh:s.pssh}),e},{});return Object.keys(s).length&&e.push(s),e},[]),bu=({player:e,sourceKeySystems:t,audioMedia:i,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=i?s.concat([i]):s,n=vu(r,Object.keys(t)),a=[],o=[];return n.forEach(t=>{o.push(new Promise((t,i)=>{e.tech_.one("keysessioncreated",t)})),a.push(new Promise((i,s)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?s(e):i()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},_u=({player:e,sourceKeySystems:t,media:i,audioMedia:s})=>{const r=yu(t,i,s);return!!r&&(e.currentSource().keySystems=r,!(r&&!e.eme)||(xn.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},Tu=()=>{if(!r.a.localStorage)return null;const e=r.a.localStorage.getItem(fu);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}},Su=e=>{if(!r.a.localStorage)return!1;let t=Tu();t=t?Mn(t,e):e;try{r.a.localStorage.setItem(fu,JSON.stringify(t))}catch(i){return!1}return t},wu=e=>0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,Eu=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},xu=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},Cu=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},ku=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};pu.supportsNativeHls=function(){if(!a.a||!a.a.createElement)return!1;const e=a.a.createElement("video");if(!xn.getTech("Html5").isSupported())return!1;const t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),pu.supportsNativeDash=function(){return!!(a.a&&a.a.createElement&&xn.getTech("Html5").isSupported())&&/maybe|probably/i.test(a.a.createElement("video").canPlayType("application/dash+xml"))}(),pu.supportsTypeNatively=e=>"hls"===e?pu.supportsNativeHls:"dash"===e&&pu.supportsNativeDash,pu.isSupported=function(){return xn.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},pu.xhr.onRequest=function(e){Eu(pu.xhr,e)},pu.xhr.onResponse=function(e){xu(pu.xhr,e)},pu.xhr.offRequest=function(e){Cu(pu.xhr,e)},pu.xhr.offResponse=function(e){ku(pu.xhr,e)};const Iu=xn.getComponent("Component");class Pu extends Iu{constructor(e,t,i){if(super(t,i.vhs),"number"===typeof i.initialBandwidth&&(this.options_.bandwidth=i.initialBandwidth),this.logger_=Dn("VhsHandler"),t.options_&&t.options_.playerId){const e=xn.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(a.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{const t=a.a.fullscreenElement||a.a.webkitFullscreenElement||a.a.mozFullScreenElement||a.a.msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),this.on(this.tech_,"error",(function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()})),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=Mn(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!==typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=Tu();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=Co.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Co.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{"undefined"!==typeof this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}setOptions(e={}){this.setOptions_(e)}src(e,t){if(!e)return;this.setOptions_(),this.options_.src=wu(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=pu,this.options_.sourceType=Object(_["a"])(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.playlistController_=new Zd(this.options_);const i=Mn({liveRangeSafeTimeDelta:Un},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new ru(i),this.playlistController_.on("error",()=>{const e=xn.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!==typeof t||t.code?"string"===typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});const s=this.options_.bufferBasedABR?pu.movingAverageBandwidthSelector(.55):pu.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=pu.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=r.a.navigator.connection||r.a.navigator.mozConnection||r.a.navigator.webkitConnection,i=1e7;if(this.options_.useNetworkInformationApi&&t){const s=1e3*t.downlink*1e3;e=s>=i&&e>=i?Math.max(e,s):s}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;t=this.throughput>0?1/this.throughput:0;const i=Math.floor(1/(e+t));return i},set(){xn.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>Vn(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>Vn(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&Su({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{iu(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.playlistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=r.a.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),bu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=_u({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",e=>{this.playlistController_.updatePlaylistByKeyStatus(e.keyId,e.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=xn.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{gu(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{mu(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":lu,"mux.js":du,"mpd-parser":uu,"m3u8-parser":cu,"aes-decrypter":hu}}version(){return this.constructor.version()}canChangeType(){return yd.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&r.a.URL.revokeObjectURL&&(r.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return ho({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,i=!0,s=2){return po({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{Eu(this.xhr,e)},this.xhr.onResponse=e=>{xu(this.xhr,e)},this.xhr.offRequest=e=>{Cu(this.xhr,e)},this.xhr.offResponse=e=>{ku(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const Ou={name:"videojs-http-streaming",VERSION:lu,canHandleSource(e,t={}){const i=Mn(xn.options,t);return Ou.canPlayType(e.type,i)},handleSource(e,t,i={}){const s=Mn(xn.options,i);return t.vhs=new Pu(e,t,s),t.vhs.xhr=Va(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const i=Object(_["a"])(e);if(!i)return"";const s=Ou.getOverrideNative(t),r=pu.supportsTypeNatively(i),n=!r||s;return n?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,i=!(xn.browser.IS_ANY_SAFARI||xn.browser.IS_IOS),{overrideNative:s=i}=t;return s}},Lu=()=>Object(b["c"])("avc1.4d400d,mp4a.40.2");Lu()&&xn.getTech("Html5").registerSourceHandler(Ou,0),xn.VhsHandler=Pu,xn.VhsSourceHandler=Ou,xn.Vhs=pu,xn.use||xn.registerComponent("Vhs",pu),xn.options.vhs=xn.options.vhs||{},xn.getPlugin&&xn.getPlugin("reloadSourceOnError")||xn.registerPlugin("reloadSourceOnError",ou)}).call(this,i("c8ba"))},f526:function(e,t,i){"use strict";i("e40e")},f6b4:function(e,t,i){"use strict";var s=i("c532");function r(){this.handlers=[]}r.prototype.use=function(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){s.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},f6b9:function(e,t,i){"use strict";i("ece4")},f772:function(e,t,i){"use strict";var s=i("5692"),r=i("90e3"),n=s("keys");e.exports=function(e){return n[e]||(n[e]=r(e))}},f8a8:function(e,t,i){"use strict";i.d(t,"a",(function(){return P})),i.d(t,"b",(function(){return O}));var s,r=i("de66"),n=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"===typeof e?Object(r["h"])(e):e}),a=function(e){return Array.isArray(e)?e.map((function(e){return n(e)})):[n(e)]},o=function(e){e=Object(r["k"])(e);var t=[],i=0;while(e.length>i){var n=e[i],a=0,o=0;o++;var l=e[o];o++;while(128&l)a=(127&l)<<7,l=e[o],o++;a+=127&l;for(var d=0;d<s.length;d++){var u=s[d],c=u.id,h=u.parser;if(n===c){t.push(h(e.subarray(o,o+a)));break}}i+=a+o}return t};s=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var i=e[t.size];t.url=Object(r["c"])(e.subarray(t.size+1,t.size+1+i)),t.size+=i}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=o(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:o(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var l=function e(t,i,s){void 0===s&&(s=!1),i=a(i),t=Object(r["k"])(t);var n=[];if(!i.length)return n;var o=0;while(o<t.length){var l=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,d=t.subarray(o+4,o+8);if(0===l)break;var u=o+l;if(u>t.length){if(s)break;u=t.length}var c=t.subarray(o+8,u);Object(r["a"])(d,i[0])&&(1===i.length?n.push(c):n.push.apply(n,e(c,i.slice(1),s))),o=u}return n},d={EBML:Object(r["k"])([26,69,223,163]),DocType:Object(r["k"])([66,130]),Segment:Object(r["k"])([24,83,128,103]),SegmentInfo:Object(r["k"])([21,73,169,102]),Tracks:Object(r["k"])([22,84,174,107]),Track:Object(r["k"])([174]),TrackNumber:Object(r["k"])([215]),DefaultDuration:Object(r["k"])([35,227,131]),TrackEntry:Object(r["k"])([174]),TrackType:Object(r["k"])([131]),FlagDefault:Object(r["k"])([136]),CodecID:Object(r["k"])([134]),CodecPrivate:Object(r["k"])([99,162]),VideoTrack:Object(r["k"])([224]),AudioTrack:Object(r["k"])([225]),Cluster:Object(r["k"])([31,67,182,117]),Timestamp:Object(r["k"])([231]),TimestampScale:Object(r["k"])([42,215,177]),BlockGroup:Object(r["k"])([160]),BlockDuration:Object(r["k"])([155]),Block:Object(r["k"])([161]),SimpleBlock:Object(r["k"])([163])},u=[128,64,32,16,8,4,2,1],c=function(e){for(var t=1,i=0;i<u.length;i++){if(e&u[i])break;t++}return t},h=function(e,t,i,s){void 0===i&&(i=!0),void 0===s&&(s=!1);var n=c(e[t]),a=e.subarray(t,t+n);return i&&(a=Array.prototype.slice.call(e,t,t+n),a[0]^=u[n-1]),{length:n,value:Object(r["b"])(a,{signed:s}),bytes:a}},p=function e(t){return"string"===typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"===typeof t?Object(r["f"])(t):t},f=function(e){return Array.isArray(e)?e.map((function(e){return p(e)})):[p(e)]},m=function e(t,i,s){if(s>=i.length)return i.length;var n=h(i,s,!1);if(Object(r["a"])(t.bytes,n.bytes))return s;var a=h(i,s+n.length);return e(t,i,s+a.length+a.value+n.length)},g=function e(t,i){i=f(i),t=Object(r["k"])(t);var s=[];if(!i.length)return s;var n=0;while(n<t.length){var a=h(t,n,!1),o=h(t,n+a.length),l=n+a.length+o.length;127===o.value&&(o.value=m(a,t,l),o.value!==t.length&&(o.value-=l));var d=l+o.value>t.length?t.length:l+o.value,u=t.subarray(l,d);Object(r["a"])(i[0],a.bytes)&&(1===i.length?s.push(u):s=s.concat(e(u,i.slice(1))));var c=a.length+o.length+u.length;n+=c}return s},y=i("321f"),v=Object(r["k"])([0,0,0,1]),b=Object(r["k"])([0,0,1]),_=Object(r["k"])([0,0,3]),T=function(e){var t=[],i=1;while(i<e.length-2)Object(r["a"])(e.subarray(i,i+3),_)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var s=e.length-t.length,n=new Uint8Array(s),a=0;for(i=0;i<s;a++,i++)a===t[0]&&(a++,t.shift()),n[i]=e[a];return n},S=function(e,t,i,s){void 0===s&&(s=1/0),e=Object(r["k"])(e),i=[].concat(i);var n,a=0,o=0;while(a<e.length&&(o<s||n)){var l=void 0;if(Object(r["a"])(e.subarray(a),v)?l=4:Object(r["a"])(e.subarray(a),b)&&(l=3),l){if(o++,n)return T(e.subarray(n,a));var d=void 0;"h264"===t?d=31&e[a+l]:"h265"===t&&(d=e[a+l]>>1&63),-1!==i.indexOf(d)&&(n=a+l),a+=l+("h264"===t?1:2)}else a++}return e.subarray(0,0)},w=function(e,t,i){return S(e,"h264",t,i)},E=function(e,t,i){return S(e,"h265",t,i)},x={webm:Object(r["k"])([119,101,98,109]),matroska:Object(r["k"])([109,97,116,114,111,115,107,97]),flac:Object(r["k"])([102,76,97,67]),ogg:Object(r["k"])([79,103,103,83]),ac3:Object(r["k"])([11,119]),riff:Object(r["k"])([82,73,70,70]),avi:Object(r["k"])([65,86,73]),wav:Object(r["k"])([87,65,86,69]),"3gp":Object(r["k"])([102,116,121,112,51,103]),mp4:Object(r["k"])([102,116,121,112]),fmp4:Object(r["k"])([115,116,121,112]),mov:Object(r["k"])([102,116,121,112,113,116]),moov:Object(r["k"])([109,111,111,118]),moof:Object(r["k"])([109,111,111,102])},C={aac:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=g(e,[d.EBML,d.DocType])[0];return Object(r["a"])(t,x.webm)},mkv:function(e){var t=g(e,[d.EBML,d.DocType])[0];return Object(r["a"])(t,x.matroska)},mp4:function(e){return!C["3gp"](e)&&!C.mov(e)&&(!(!Object(r["a"])(e,x.mp4,{offset:4})&&!Object(r["a"])(e,x.fmp4,{offset:4}))||(!(!Object(r["a"])(e,x.moof,{offset:4})&&!Object(r["a"])(e,x.moov,{offset:4}))||void 0))},mov:function(e){return Object(r["a"])(e,x.mov,{offset:4})},"3gp":function(e){return Object(r["a"])(e,x["3gp"],{offset:4})},ac3:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,x.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+188<e.length&&t<188){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Object(y["a"])(e);return Object(r["a"])(e,x.flac,{offset:t})},ogg:function(e){return Object(r["a"])(e,x.ogg)},avi:function(e){return Object(r["a"])(e,x.riff)&&Object(r["a"])(e,x.avi,{offset:8})},wav:function(e){return Object(r["a"])(e,x.riff)&&Object(r["a"])(e,x.wav,{offset:8})},h264:function(e){return w(e,7,3).length},h265:function(e){return E(e,[32,33],3).length}},k=Object.keys(C).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);k.forEach((function(e){var t=C[e];C[e]=function(e){return t(Object(r["k"])(e))}}));var I=C,P=function(e){e=Object(r["k"])(e);for(var t=0;t<k.length;t++){var i=k[t];if(I[i](e))return i}return""},O=function(e){return l(e,["moof"]).length>0}},f97d:function(e,t){var i={"":!0,up:!0};function s(e){if("string"!==typeof e)return!1;var t=i[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function n(){var e=100,t=3,i=0,n=100,a=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return n},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");n=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=s(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}e.exports=n},fb15:function(e,t,i){"use strict";if(i.r(t),i.d(t,"cms",(function(){return Gt})),"undefined"!==typeof window){var s=window.document.currentScript,r=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(i.p=r[1])}var n=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{ref:"cms"},[t("div",{class:["lay-wrap",{mobile:"mobile"==e.mode}],style:{width:("pc"==e.mode?1920:750)*e.ratio+"px"}},e._l(e.cmsList,(function(i){return t("div",{key:i.sort,staticClass:"lay-item"},[t("div",{staticClass:"layout-set",style:{width:i.attributeJson.layoutStyle&&2===i.attributeJson.layoutStyle.widthStyle.type?i.attributeJson.layoutStyle.widthStyle.width+"%":"100%",height:i.attributeJson.layoutStyle?Math.round(i.attributeJson.layoutStyle.height*e.ratio)+"px":"auto"}},[t(e.layOutObj[i.layoutType],e._g(e._b({ref:"layModule",refInFor:!0,tag:"component",attrs:{layOutData:i.attributeJson,sort:i.attributeJson.sort,ratio:e.ratio,mode:e.mode,recordId:i.originalId,envUrl:e.envUrl,path:e.path,isClient:e.isClient},scopedSlots:e._u([{key:"customComponent",fn:function(t){return 3==i.layoutType?[e._t("customComponent",null,{attributeJson:t.attributeJson})]:void 0}},{key:"dgCustomComponent",fn:function(t){return[e._t("dgCustomComponent",null,{data:t.attributeJson})]}}],null,!0)},"component",e.$attrs,!1),e.$listeners))],1)])})),0)])},a=[],o=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"single-layout",style:e.layoutStyle},[t("div",{staticStyle:{width:"100%",height:"100%"}},[e._l(e.layOutData.componentList.filter(e=>e.type<=100),(function(i,s){return t("div",{key:s},[1==i.displayType?t(i.component,e._g(e._b({key:i.sort,ref:"singleComponent",refInFor:!0,tag:"component",style:{zIndex:s+1},attrs:{ratio:e.ratio,attributeJson:i.attributeJson,sortId:i.sort,envUrl:e.envUrl,isClient:e.isClient,stopReport:e.stopReport,extraCategory:e.extraCategory}},"component",e.$attrs,!1),e.$listeners)):e._e()],1)})),t("div",[e._t("dgCustomComponent",null,{attributeJson:e.getCustom()})],2)],2)])},l=[],d=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"text-wrap entrance-con",style:[e.conStyle,e.animationInStyle],attrs:{"data-sensors-click":"","data-sensorsClick":e.attributeJson&&e.attributeJson.linkObj&&e.attributeJson.linkObj.jumpLinkType?"true":"false",id:`entrance_${e.recordId}_${e.sortId}`,name:`entrance_${e.recordId}_${e.sortId}`},on:{click:e.pageClick}},[t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl},expression:"{ data: tipReportData, envUrl }"}],ref:"text"+e.sortId,class:["text-con","text-con-"+e.sortId,e.animationInObj.type?e.enterClass:""],domProps:{innerHTML:e._s(e.attributeJson.label)}})])},u=[],c=(i("be35"),i("a7a3"),i("77ed"),i("1e09"),i("fda2"),i("14d9"),i("bc3a")),h=i.n(c);const p={json:"application/json;",form:"application/x-www-form-urlencoded;",html:"text/html;",file:"multipart/form-data",excel:"msexcel",xml:"application/xml",javascript:"application/x-javascript;charset=utf-8"},f={lang:"Accept-Language",contentType:"Content-Type"};function m(e){if(200===e.status){let t=e.data;return"0"===t.errorCode?t.data:e.data}}h.a.interceptors.response.use(m,e=>Promise.reject(e));class g{static async call(e,{method:t="get",headers:i={},body:s=null,responseType:r=null}={}){let n=e,a={method:t,url:n,responseType:r||"json",headers:i};"get"===t?a.params=s:a.data=s;const o=await h()(a).catch(e=>{e.response?console.error(e.response.status,e.response.data):e.request?console.error(e.request):console.error("Error",e.message?e.message:"")});return o}static get(e,{mask:t=!0,external:i=!1,headers:s={}}={}){return g.call(e,{headers:s,external:i,mask:t})}static postBody(e,{body:t={},language:i="zh-CN",module:s="",method:r="post",mask:n=!0,postData:a=!0,external:o=!1,headers:l={},compat:d}){return g.call(e,{module:s,method:r,headers:Object.assign(l,{[f.contentType]:p.json,common:{languageCode:i}}),body:t,postData:a,external:o,mask:n,compat:d})}}class y{getProductInfo(e,t,i){return g.postBody(e+"service-zuul/manage/search/plp/standard",{body:t,language:i})}getSortProductInfo(e,t,i){return g.postBody(e+"service-zuul/manage/search/cms/sort",{body:t,language:i})}dataSaveDecorationPageComponentEvent(e,t){return g.postBody(e+"service-zuul/data/collect/acquisition",{body:t})}acquisitionBatch(e,t){return g.postBody(e+"/service-zuul/data/collect/acquisitionBatch",{body:t})}}const v=new y;class b{constructor(){this.intersectionObserver=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(_(e,this.intersectionObserver),this.intersectionObserver.unobserve(e.target))})}),this.interval=T()}observe(e,t){e.setAttribute("report-data",JSON.stringify(t.value?t.value.data:null)),this.intersectionObserver.observe(e)}disconnect(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),sessionStorage.setItem("reportData","[]"),this.interval&&(clearInterval(this.interval),this.interval=null))}static getInstance(e){return this.instance||(this.instance=new b),e&&(this.instance.envUrl=e.value?e.value.envUrl:this.instance.envUrl),this.instance}}const _=function(e,t){const i=e.target,s=i.getAttribute("report-data");let r=JSON.parse(sessionStorage.getItem("reportData")||null)||[];"null"!=s&&"undefined"!=s?(r.push(s),sessionStorage.setItem("reportData",JSON.stringify(r))):t.unobserve(i)},T=function(){let e=setInterval(()=>{let e=JSON.parse(sessionStorage.getItem("reportData")||null)||[];e.length>0&&(sessionStorage.setItem("reportData","[]"),S(e))},1500);return e},S=function(e){let t=e.map(e=>w(e)),i=b.getInstance().envUrl;i&&v.acquisitionBatch(i,t)},w=function(e){let t=JSON.parse(e);const i={source:"",medium:"",commodity_id:t.popData&&t.popData.productCode||"",commodity_name:t.popData&&t.popData.selectDataShow||"",commodity_sku_id:"",component_name:t.uniqueName,component_id:t.uniqueId,component_type:t.componentType,hot_zone_id:t.popData&&t.popData.uniqueId||"",hot_zone_name:t.popData&&t.popData.uniqueName||"",material_id:t.materialId,material_name:t.materialName,url_path:t.path||"/",refer_info:t.refererPagePath,position:t.position,trigger_Method_Type:t.componentMethodType};let s="";return localStorage.getItem(t.brand+"Cookie")?s=localStorage.getItem(t.brand+"Cookie"):(s=`${parseInt((new Date).getTime())}${Math.floor(1e4*Math.random())}`,localStorage.setItem(t.brand+"Cookie",s)),{eventProperty:JSON.stringify({...i}),event:t.event,distinctId:s}};var E={bind(e,t){"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype&&b.getInstance(t).observe(e,t)},unbind(){b.getInstance().disconnect()}};function x(e,t,i){const s=new y,r={source:"",medium:"",commodity_id:e.popData.productCode||"",commodity_name:e.popData.selectDataShow||"",commodity_sku_id:"",component_name:e.uniqueName,component_id:e.uniqueId,component_type:e.componentType,hot_zone_id:e.popData.uniqueId||"",hot_zone_name:e.popData.uniqueName||"",material_id:e.materialId,material_name:e.materialName,url_path:e.path,refer_info:e.refererPagePath,position:e.position,trigger_Method_Type:e.componentMethodType};let n="";localStorage.getItem(e.brand+"Cookie")?n=localStorage.getItem(e.brand+"Cookie"):(n=`${parseInt((new Date).getTime())}${Math.floor(1e4*Math.random())}`,localStorage.setItem(e.brand+"Cookie",n));let a={eventProperty:JSON.stringify({...r}),event:e.event,distinctId:n};if("click"==i||"exposure"==i)return a;s.dataSaveDecorationPageComponentEvent(t,a)}function C(e,t){var i=null,s=Date.now();return function(){var r=Date.now(),n=t-(r-s),a=this,o=arguments;clearTimeout(i),n<=0?(e.apply(a,o),s=Date.now()):i=setTimeout(e,n)}}function k(e){var t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}const I={inheritAttrs:!1,props:{attributeJson:{type:Object,default:function(){}},item:{type:Object,default:()=>{}},ratio:{type:Number,default:1},envUrl:{type:String,default:""},fontRatio:{type:Number,default:1},mode:{type:String,default:"pc"},language:{type:String,default:"zh-CN"},sortId:{type:Number,default:0},sort:{type:[String,Number],default:0},recordId:{type:[String,Number],default:0},refererPagePath:{type:String},brand:{type:String},path:{type:String},isClient:{type:Boolean,default:!0}},data(){return{scrollHandle:C(this.scrollThrottle,200),hoverStyle:{},hoverStyleShow:!1,hoverImage:"",fillStyle:{},hoverDirection:"",finishAnimation:!1,entranceShow:!0,enterClass:"",animationInStyle:{},entranceAnimate:{fade:"animate__animated animate__fadeIn",scale:"animate__animated animate__zoomIn"}}},computed:{animationInObj:function(){return this.attributeJson.animationInObj},animationHoverObj:function(){return this.attributeJson.animationHoverObj},baseStyle(){return this.attributeJson.baseStyle},styleType(){return this.attributeJson.styleType},conStyle(){let{attributeJson:e,ratio:t}=this;return{width:Math.round(e.baseStyle.w*t)+"px",height:Math.round(e.baseStyle.h*t)+"px",left:Math.round(e.baseStyle.l*t)+"px",top:Math.round(e.baseStyle.t*t)+"px"}}},watch:{animationHoverObj:{handler(e){this.disposeHoverAnimate(e)},immediate:!0,deep:!0},animationInObj:{handler(){let{type:e,direction:t,delay:i,duration:s}=this.attributeJson.animationInObj;e&&(this.enterClass="",this.enterClass=this.entranceAnimate[e],this.animationInStyle={animationDuration:s+"s",amimationDelay:i+"s",animationName:"slide"!=e?this.entranceAnimate[e]:t,animationPlayState:"paused"})},immediate:!0}},methods:{isInCurrentScreenArea(){const{top:e}=this.$el.getBoundingClientRect();return e<=window.innerHeight-100},scrollThrottle(){this.isInCurrentScreenArea()&&!this.finishAnimation&&(this.animationInStyle.animationName&&(this.$el.style.animationPlayState="running"),this.finishAnimation=!0,this.endObserver())},startObserver(){window.addEventListener("scroll",this.scrollHandle,!0)},endObserver(){window.removeEventListener("scroll",this.scrollHandle,!0)},disposeHoverAnimate(e){let t={};if(2===e.type){let i=e.borderStyle;if(1==i.type&&(t={border:i.borderColor?"2px solid "+i.borderColor:"none"}),2==i.type){let{borderTop:e,borderRight:s,borderBottom:r,borderLeft:n}=i;t={borderTop:e?"2px solid "+e:"none",borderRight:s?"2px solid "+s:"none",borderBottom:r?"2px solid "+r:"none",borderLeft:n?"2px solid "+n:"none"}}}if(3===e.type&&(t={transform:"scale(1.2)",transformOrigin:"center center"}),4===e.type&&(this.hoverDirection=e.bgStyle.direction),5===e.type){let{hoverImgList:t}=e;this.hoverImage=t[0]?t[0].resourcePath:""}this.hoverStyle=t},onDrag:function(e,t){let i=this.ratio;this.attributeJson.baseStyle.l=e/i,this.attributeJson.baseStyle.t=t/i,this.$set(this.attributeJson,"baseStyle",this.attributeJson.baseStyle)},onResize:function(e,t,i,s){let r=this.ratio,n=this.attributeJson.baseStyle;n={w:i/r,h:s/r,l:e/r,t:t/r,isLocked:n.isLocked},this.$set(this.attributeJson,"baseStyle",n)},getRefLineParams(e){this.$emit("getRefLineParams",e)}},directives:{hoverAnimate:{inserted:function(e,t,i){e.onmouseover=function(){i.context.hoverStyleShow=!0,t.value&&(i.context[t.value.key]=t.value.value)},e.onmouseleave=function(){i.context.hoverStyleShow=!1,t.value&&(i.context[t.value.key]=-1)}}},treport:E}};var P={name:"textItem",mixins:[I],components:{},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},data(){return{sensorsIsRes:!1}},computed:{tipReportData(){return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:12,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:1,event:"bannerShow"}}},methods:{needSensorsRep(){},pageClick(){var e;let t=JSON.parse(JSON.stringify(this.tipReportData));if(t.event="bannerClick",this.attributeJson.linkObj.jumpLinkType)try{let e=x(t,this.envUrl,"click"),i=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",i)}catch(l){console.error(l)}var i,s,r,n,a,o;null!==(e=this.attributeJson)&&void 0!==e&&null!==(e=e.linkObj)&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.attributeJson,propsObject:x(JSON.parse(JSON.stringify(t)),this.envUrl,"click"),reportData:t,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isSpecial:!0,noLabel:!0}});this.$emit("jumpLink",this.attributeJson.linkObj)}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},O=P,L=O;i("ac5f");function A(e,t,i,s,r,n,a,o){var l,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),s&&(d.functional=!0),n&&(d._scopeId="data-v-"+n),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=l):r&&(l=o?function(){r.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(d.functional){d._injectStyles=l;var u=d.render;d.render=function(e,t){return l.call(t),u(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,l):[l]}return{exports:e,options:d}}var D=A(L,d,u,!1,null,"010b2a5e",null),M=D.exports,N=M,R=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],key:e.attributeJson.sort,staticClass:"image-list entrance-con",style:{width:Math.ceil(e.attributeJson.baseStyle.w*e.ratio)+"px",height:Math.round(e.attributeJson.baseStyle.h*e.ratio)+"px",left:Math.round(e.attributeJson.baseStyle.l*e.ratio)+"px",top:Math.round(e.attributeJson.baseStyle.t*e.ratio)+"px",...e.animationInStyle}},[e.hasConfig?[t("div",{ref:"img"+e.attributeJson.sort,class:["image-warp","image-warp-"+e.sortId],style:{animationDuration:e.animationInObj.duration+"s"}},[e.isSwiper?t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"}],style:[e.picStyle,3===e.animationHoverObj.type&&e.hoverStyleShow?e.hoverStyle:""]},[t("div",{ref:"swiper-container"+e.sortId,class:["swiper-container swiper-container-"+e.sortId]},[t("div",{staticClass:"swiper-wrapper",style:{height:(e.baseStyle.h-(e.hasScrollBar?30:0))*e.ratio+"px!important"}},e._l(e.attributeJson.list,(function(i,s){var r,n,a;return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:i.id,ref:`${e.sortId}${s}`,refInFor:!0,staticClass:"swiper-slide",style:{width:e.baseStyle.w/4*e.ratio+"px"}},[t("div",{staticClass:"slide-con",style:{height:(e.baseStyle.h-(e.hasScrollBar?30:0))*e.ratio+"px"}},[t("img",{attrs:{src:(null===i||void 0===i||null===(r=i.picList)||void 0===r?void 0:r.length)>0&&null!==i&&void 0!==i&&null!==(n=i.picList[0])&&void 0!==n&&n.resourcePath?i.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(a=i.picList)||void 0===a?void 0:a.length)>0&&i.picList[0].resourceName?i.picList[0].resourceName.split(".")[0]:""}}),0!=i.picList.length&&0!=i.popList.length?[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{componentType:2,parentItem:e.attributeJson,item:i,ratio:e.ratio,path:e.path,envUrl:e.envUrl,sortId:e.sortId,recordId:e.recordId,laySort:e.sort,brand:e.brand,uniqueName:e.attributeJson.uniqueName,language:e.language,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))]:e._e()],2)])})),0),e.hasSwiperButton?t("div",{class:"swiper-button-prev swiper-button-prev-"+e.sortId},[e._t("swiper-button-prev",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconleft"})]):e._e()]}))],2):e._e(),e.hasSwiperButton?t("div",{class:"swiper-button-next swiper-button-next-"+e.sortId},[e._t("swiper-button-next",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconright"})]):e._e()]}))],2):e._e(),e.hasScrollBar?t("div",{class:"swiper-scrollbar swiper-scrollbar-"+e.sortId}):e._e()]),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.hoverStyleShow?1:0}]}):e._e()]):t("div",{class:["image-warp",3==e.styleType&&"pc"!=e.mode?"image-type3":""],style:[e.picStyle,3===e.animationHoverObj.type&&e.hoverStyleShow?e.hoverStyle:""]},e._l(e.attributeJson.list,(function(i,s){var r,n,a,o;return t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"},{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:s,ref:`${e.sortId}${s}`,refInFor:!0,staticClass:"image-item",style:[e.picItemStyle]},[t("img",{class:{contain:1!=e.styleType},attrs:{src:(null===i||void 0===i||null===(r=i.picList)||void 0===r?void 0:r.length)>0&&null!==i&&void 0!==i&&null!==(n=i.picList[0])&&void 0!==n&&n.resourcePath?i.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(a=i.picList)||void 0===a?void 0:a.length)>0&&null!==i&&void 0!==i&&null!==(o=i.picList[0])&&void 0!==o&&o.resourceName?i.picList[0].resourceName.split(".")[0]:""}}),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.hoverStyleShow?1:0}]}):e._e(),5===e.animationHoverObj.type&&e.hoverImage&&e.hoverStyleShow?t("img",{staticClass:"hover-image",attrs:{src:e.hoverImage,alt:""}}):e._e(),0!=i.picList.length&&0!=i.popList.length?t("div",[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{isSpecial:!0,parentItem:e.attributeJson,item:i,ratio:e.ratio,path:e.path,brand:e.brand,envUrl:e.envUrl,sortId:e.sortId,recordId:e.recordId,componentType:2,uniqueName:e.attributeJson.uniqueName,language:e.language,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))],1):e._e()])})),0)])]:e._e()],2)},U=[],B=(i("13d5"),i("02a3")),j=i.n(B),F=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"pop-wrap",style:{left:e.item.left,top:e.item.top,width:e.item.realWidth*e.ratio+"px"||!1,height:e.item.realHeight*e.ratio+"px"||!1}},e._l(e.item.popList,(function(i,s){return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{ data: tipReportData(index), envUrl }"}],key:s,ref:`${e.sortId}${s}`,refInFor:!0,class:"pop-item",style:{width:i.width/750*100+"%",height:i.height/(e.item.height/e.proportion)*100+"%",left:i.left/750*100+"%",top:i.top/(e.item.height/e.proportion)*100+"%"},attrs:{"data-sensors-click":"","data-sensorsClick":i&&i.jumpLinkType?"true":"false",id:"pop_"+(e.recordId+"_"+e.sortId+"_"+i.uniqueId.split("_")[2]),name:"pop_"+(e.recordId+"_"+e.sortId+"_"+i.uniqueId.split("_")[2])},on:{click:function(t){return e.pageClick(i,s)}}},[i.product.openHot?t("div",{staticClass:"product-hover",on:{mouseover:function(t){return e.mouseover(s)},mouseleave:e.mouseLeave}},[0!=i.product.initImage.length?t("div",{staticStyle:{"{\n fontsize":"0"}},[t("img",{attrs:{src:e.hoverIndex==s?i.product.hoverImage[0].resourcePath:i.product.initImage[0].resourcePath,alt:""}})]):e._e(),e.hoverIndex==s?t("div",{staticClass:"product-image"},[t("img",{attrs:{src:1==i.product.imageType?e.productImage[i.productCode]:i.product.productImage[0].resourcePath,alt:""}})]):e._e()]):e._e()])})),0)},q=[],$={name:"hotspot",props:{isSpecial:{type:Boolean,default:!1},extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},parentItem:{type:Object,default:()=>{}},item:{type:Object,default:()=>{}},width:{type:Number,default:0},height:{type:Number,default:0},ratio:{type:Number,default:1},envUrl:{type:String,default:""},isClient:{type:Boolean,default:!0},sortId:{type:Number,default:0},recordId:{type:Number,default:0},brand:{type:String},componentType:{type:Number},refererPagePath:{type:String},path:{type:String},pathType:{type:Number},uniqueName:{type:String},language:{type:String,default:"zh-CN"},prePosition:{type:Number}},data(){return{hasSensorsReList:[],hotList:[],proportion:1,hoverIndex:1,preTotal:0,productImage:{},service:new y,extraData:null}},watch:{"item.width":{handler(e){this.proportion=e/750},deep:!0,immediate:!0},itemCodeList:{handler(e){this.getProductList(e)},immediate:!0,deep:!0}},computed:{itemCodeList(){let e=this.item.popList.filter(e=>1==e.jumpLinkType&&1==e.product.imageType&&e.product.openHot);return e.map(e=>e.productCode)},tipReportData(){let e=JSON.parse(JSON.stringify(this.item.popList));return function(t){let i=e[t];return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:0,popData:{productCode:i.productCode,selectDataShow:i.selectDataShow,uniqueName:i.uniqueName,uniqueId:this.recordId+"_"+this.sortId+"_"+i.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.preTotal+t+1,event:"bannerShow"}}}},mounted(){this.hotList=JSON.parse(JSON.stringify(this.item.popList))},methods:{needSensorsRep(e){this.extraData=e,this.stopReport||this.scrollMethod(e)},scrollMethod(e){this.extraData=e,this.stopReport||this.$nextTick(()=>{var t;(null===(t=this.item)||void 0===t||null===(t=t.popList)||void 0===t?void 0:t.length)>0&&this.item.popList.forEach((t,i)=>{const s=this.$refs[`${this.sortId}${i}`];if(s&&s[0]){const r=document.documentElement.clientHeight,n=document.documentElement.clientWidth,a=s[0].getBoundingClientRect(),o=a.top||0,l=a.left||0;o<r&&o>=0&&l<n&&l>=0&&this.sensorsExposure(t,i,e)}})})},sensorsExposure(e,t,i){var s,r,n,a,o,l,d,u,c,h,p,f;if(this.extraData=i,this.hasSensorsReList.find(t=>JSON.stringify(t)==JSON.stringify(e)))return;const m={uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:1,popData:{...e,uniqueId:this.recordId+"_"+this.sortId+"_"+e.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.prePosition?this.prePosition+t+1:1*this.preTotal+t+1,event:"bannerShow"};this.$emit("sensorsCmsRepost",{initObject:this.parentItem,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(m)),this.envUrl,"exposure"),reportData:m,extraData:this.isSpecial?{isCategory:!(null===(s=this.extraCategory)||void 0===s||!s.isCategory)&&(null===(r=this.extraCategory)||void 0===r?void 0:r.isCategory),category_index:null!==(n=this.extraCategory)&&void 0!==n&&n.category_index?null===(a=this.extraCategory)||void 0===a?void 0:a.category_index:"",category_name:null!==(o=this.extraCategory)&&void 0!==o&&o.category_name?null===(l=this.extraCategory)||void 0===l?void 0:l.category_name:"",isSpecial:!0}:{isCategory:!(null===(d=this.extraCategory)||void 0===d||!d.isCategory)&&(null===(u=this.extraCategory)||void 0===u?void 0:u.isCategory),category_index:null!==(c=this.extraCategory)&&void 0!==c&&c.category_index?null===(h=this.extraCategory)||void 0===h?void 0:h.category_index:"",category_name:null!==(p=this.extraCategory)&&void 0!==p&&p.category_name?null===(f=this.extraCategory)||void 0===f?void 0:f.category_name:"",isNoMKT:!1,MKTIndex:i?`${i.MKTIndex}-${String(t+1)}`:String(t+1),MKTName:this.item.popList[t].uniqueName}}),this.hasSensorsReList.push(e)},pageClick(e,t){if(e.jumpLinkType)try{this.dataSend(e,t,1)}catch(m){console.error(m)}const i={uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:1,popData:{...e,uniqueId:this.recordId+"_"+this.sortId+"_"+e.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.prePosition?this.prePosition+t+1:1*this.preTotal+t+1,event:"bannerClick"};var s,r,n,a,o,l,d,u,c,h,p,f;null!==e&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.parentItem,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(i)),this.envUrl,"click"),reportData:i,extraData:this.isSpecial?{isCategory:!(null===(s=this.extraCategory)||void 0===s||!s.isCategory)&&(null===(r=this.extraCategory)||void 0===r?void 0:r.isCategory),category_index:null!==(n=this.extraCategory)&&void 0!==n&&n.category_index?null===(a=this.extraCategory)||void 0===a?void 0:a.category_index:"",category_name:null!==(o=this.extraCategory)&&void 0!==o&&o.category_name?null===(l=this.extraCategory)||void 0===l?void 0:l.category_name:"",isSpecial:!0}:{isCategory:!(null===(d=this.extraCategory)||void 0===d||!d.isCategory)&&(null===(u=this.extraCategory)||void 0===u?void 0:u.isCategory),category_index:null!==(c=this.extraCategory)&&void 0!==c&&c.category_index?null===(h=this.extraCategory)||void 0===h?void 0:h.category_index:"",category_name:null!==(p=this.extraCategory)&&void 0!==p&&p.category_name?null===(f=this.extraCategory)||void 0===f?void 0:f.category_name:"",isNoMKT:!1,MKTIndex:this.extraData?`${this.extraData.MKTIndex}-${String(t+1)}`:String(t+1),MKTName:this.item.popList[t].uniqueName}});this.$emit("jumpLink",e)},dataSend(e,t,i){let s={uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.uniqueName,componentMethodType:i,popData:{...e,uniqueId:this.recordId+"_"+this.sortId+"_"+e.uniqueId.split("_")[2],brand:1===this.pathType?"defaultPath":this.brand},materialId:this.item.sort?this.recordId+"_"+this.item.sort:this.recordId+"_"+this.sortId,materialName:this.item.uniqueName?this.item.uniqueName:this.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,position:this.prePosition?this.prePosition+t+1:1*this.preTotal+t+1,event:0==i?"bannerShow":"bannerClick"};if(0==i)x(s,this.envUrl);else{let e=x(s,this.envUrl,"click"),t=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",t)}},getProductList(e){if(0==e.length)return;let t={itemCodeList:e,pageNum:1,pageSize:e.length},i={};this.service.getProductInfo(this.envUrl,t,this.language).then(e=>{e&&e.list&&(this.productList=e.list,e.list.forEach(e=>{i[e.code]=e.mainPicUrl}),this.productImage=i)})},mouseover(e){this.hoverIndex=e},mouseLeave(){this.hoverIndex=-1}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}},treport:E}},H=$,z=H,V=(i("070b"),A(z,F,q,!1,null,"58b33672",null)),G=V.exports,W=G,X={name:"imgNav",mixins:[I],components:{hotspot:W},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},data(){return{hasSensorsReList:[],swiper:"",imageList:[],popList:[],positionList:[],positionTotal:[],hasInitSwiper:!1}},computed:{indicatorType(){return this.attributeJson.indicatorType},picStyle(){let{attributeJson:e,ratio:t,animationInObj:i}=this;return{animationDuration:i.duration+"s",padding:`0 ${e.paddingSpacing*t}px`,width:Math.ceil(e.baseStyle.w*t)+"px"}},picItemStyle(){let{attributeJson:e,ratio:t}=this,{oneLineCount:i}=e;return{width:Math.ceil((e.baseStyle.w*t-2*e.paddingSpacing*t)/i)+"px",height:Math.ceil(e.baseStyle.h*t)+"px",padding:"0 "+e.itemSpacing*t+"px"}},list(){return this.attributeJson.list},isSwiper(){return 3==this.styleType&&2==this.indicatorType&&"pc"==this.mode||2==this.styleType&&2==this.indicatorType&&"mobile"==this.mode},hasConfig(){return this.attributeJson.list.some(e=>0!=e.picList.length)},hasSwiperButton(){return 3==this.styleType&&2==this.indicatorType&&"pc"==this.mode},hasScrollBar(){return 2==this.styleType&&2==this.indicatorType&&"mobile"==this.mode},tipReportData(){let{list:e}=this,t=[],i=[];return e.forEach(e=>{0!=e.popList.length?t.push(e.popList.length):t.push(1)}),t.forEach((e,s)=>{let r=t.slice(0,s),n=r.reduce((e,t)=>e+t,0);i.push(n)}),this.positionList=t,this.positionTotal=i,function(t,i){let s=e[t];return 0==s.popList.length||i?{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:2,popData:{},materialId:this.recordId+"_"+this.sortId+"_"+s.sort,materialName:s.uniqueName,refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:this.positionTotal[t]+1,event:"bannerShow"}:void 0}}},watch:{isSwiper:{handler(e){e&&this.initSwiper()},immediate:!0}},mounted(){},methods:{needSensorsRep(){this.stopReport||this.scrollMethod()},scrollMethod(){if(!this.stopReport)if(this.isSwiper){var e;const t=this.$refs["swiper-container"+this.sortId];if(t&&(null===(e=this.attributeJson.list)||void 0===e?void 0:e.length)>0){const e=4,i=t.swiper.realIndex,s=0+e+i;let r=this.attributeJson.list.map((e,t)=>(e.pIndex=t,e)).slice(s-e,s);r.forEach(e=>{const t=this.$refs[`${this.sortId}${e.pIndex}`];if(t&&t[0]){const r=document.documentElement.clientHeight,n=document.documentElement.clientWidth,a=t[0].getBoundingClientRect(),o=a.top||0,l=a.left||0;if(o<r&&o>=0&&l<n&&l>=0){var i,s;const t=(null===(i=this.attributeJson.list[e.pIndex])||void 0===i||null===(i=i.popList)||void 0===i?void 0:i.length)>0&&(null===(s=this.attributeJson.list[e.pIndex])||void 0===s||null===(s=s.popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType))||void 0===s?void 0:s.length)>0?this.attributeJson.list[e.pIndex].popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType):[];if(t.length>0){const t=this.$refs[`hotspot${this.sortId}${e.pIndex}`];t&&t[0]&&t[0].needSensorsRep({isNoMKT:!1,MKTIndex:String(e.pIndex+1),MKTName:this.attributeJson.list[e.pIndex].uniqueName})}else this.sensorsExposure(e,e.pIndex)}}})}}else{var t;(null===(t=this.attributeJson)||void 0===t||null===(t=t.list)||void 0===t?void 0:t.length)>0&&this.attributeJson.list.forEach((e,t)=>{const i=this.$refs[`${this.sortId}${t}`];if(i&&i[0]){const n=document.documentElement.clientHeight,a=document.documentElement.clientWidth,o=i[0].getBoundingClientRect(),l=o.top||0,d=o.left||0;if(l<n&&l>=0&&d<a&&d>=0){var s,r;const i=(null===(s=this.attributeJson.list[t])||void 0===s||null===(s=s.popList)||void 0===s?void 0:s.length)>0&&(null===(r=this.attributeJson.list[t])||void 0===r||null===(r=r.popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType))||void 0===r?void 0:r.length)>0?this.attributeJson.list[t].popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType):[];if(i.length>0){const e=this.$refs[`hotspot${this.sortId}${t}`];e&&e[0]&&e[0].needSensorsRep({isSpecial:!0})}else this.sensorsExposure(e,t,!0)}}})}},sensorsExposure(e,t,i){var s,r,n,a,o,l,d,u,c,h,p,f;if(this.hasSensorsReList.find(t=>JSON.stringify(t)==JSON.stringify(e)))return;let m=JSON.parse(JSON.stringify(this.tipReportData(t,!0)));this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(m)),this.envUrl,"exposure"),reportData:m,extraData:i?{isCategory:!(null===(s=this.extraCategory)||void 0===s||!s.isCategory)&&(null===(r=this.extraCategory)||void 0===r?void 0:r.isCategory),category_index:null!==(n=this.extraCategory)&&void 0!==n&&n.category_index?null===(a=this.extraCategory)||void 0===a?void 0:a.category_index:"",category_name:null!==(o=this.extraCategory)&&void 0!==o&&o.category_name?null===(l=this.extraCategory)||void 0===l?void 0:l.category_name:"",isSpecial:!0}:{isCategory:!(null===(d=this.extraCategory)||void 0===d||!d.isCategory)&&(null===(u=this.extraCategory)||void 0===u?void 0:u.isCategory),category_index:null!==(c=this.extraCategory)&&void 0!==c&&c.category_index?null===(h=this.extraCategory)||void 0===h?void 0:h.category_index:"",category_name:null!==(p=this.extraCategory)&&void 0!==p&&p.category_name?null===(f=this.extraCategory)||void 0===f?void 0:f.category_name:"",isNoMKT:!1,MKTIndex:String(t+1),MKTName:this.attributeJson.list[t].uniqueName}}),this.hasSensorsReList.push(e)},initSwiper(){this.hasConfig&&this.isSwiper&&this.$nextTick(()=>{this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);let{attributeJson:e}=this;this.options={effect:"slide",autoplay:!1,slidesPerView:this.attributeJson.oneLineCount,spaceBetween:e.itemSpacing},this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.sortId,prevEl:".swiper-button-prev-"+this.sortId}),this.hasScrollBar&&(this.options.scrollbar={el:".swiper-scrollbar-"+this.sortId,draggable:!0},this.options.freeMode=!0),this.swiper=new j.a(".swiper-container-"+this.sortId,this.options)})}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Y=X,J=Y,K=(i("0071"),A(J,R,U,!1,null,"294d9fe5",null)),Q=K.exports,Z=Q,ee=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],staticClass:"video-wrap entrance-con",style:[e.conStyle,e.animationInStyle]},[0!==e.videoItem.length?t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl},expression:"{ data: tipReportData, envUrl }"}],ref:"videoItem"+e.sortId,class:["video-con","video-con-"+e.sortId,e.animationInObj.type?e.enterClass:""],style:{width:Math.round(e.attributeJson.baseStyle.w*e.ratio)+"px",height:Math.round(e.attributeJson.baseStyle.h*e.ratio)+"px"}},[t("myVideoPlayer",{ref:"VideoPlayer"+e.sortId,attrs:{sort:(new Date).getTime(),videoInfo:e.videoInfo,autoPlay:e.autoPlay,recordId:e.recordId,sortId:e.sortId,extraCategory:e.extraCategory,stopReport:e.stopReport}}),1===e.attributeJson.isVideoHasHot&&0!=e.videoHotPic.length?t("div",{staticClass:"hot-image"},[t("img",{attrs:{src:e.videoHotPic[0].resourcePath,alt:""}}),t("hotspot",e._g(e._b({ref:"hotspot",attrs:{componentType:3,item:e.hotData,parentItem:e.attributeJson,ratio:e.ratio,envUrl:e.envUrl,language:e.language,recordId:e.recordId,sortId:e.sortId,path:e.path,brand:e.brand,uniqueName:e.attributeJson.uniqueName,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))],1):e._e()],1):e._e()])},te=[],ie=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticStyle:{height:"100%",position:"relative"}},[t("video",{ref:"myVideo-"+e.sort,staticClass:"video-js vjs-default-skin vjs-big-play-centered vjs-16-9 video-item",attrs:{preload:"auto","data-setup":"{}","x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","webkit-playsinline":"true",playsinline:"true",controls:e.videoInfo.checkedAttr.indexOf("controls")>-1,autoplay:e.autoPlay,loop:e.videoInfo.checkedAttr.indexOf("loop")>-1,muted:"",poster:0!=e.videoInfo.list.length?e.videoInfo.list[0].imgUrl:""},domProps:{muted:!0}},[t("source",{attrs:{src:0!=e.videoInfo.list.length?e.videoInfo.list[0].resourcePath:""}})]),e.videoInfo.checkedAttr.indexOf("controls")<0?t("div",{staticClass:"video-cover",attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:`video_${e.recordId}_${e.sortId}`,name:`video_${e.recordId}_${e.sortId}`},on:{click:e.clickVideo}}):e._e()])},se=[],re=i("f0e2"),ne={name:"videoPlayer",props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},videoInfo:{type:Object,default:()=>{}},autoPlay:{type:Boolean,default:!1},sort:{type:Number,default:0},recordId:{type:Number,default:0},sortId:{type:Number,default:0}},data(){return{isPlay:!1}},watch:{autoPlay:{handler(e){this.player&&(e?this.player.play():this.player.pause())},immediate:!0}},mounted(){let e=this;setTimeout(()=>{this.player=Object(re["a"])(this.$refs["myVideo-"+this.sort],{},(function(){this.on("play",()=>{e.isPlay=!0}),this.on("pause",()=>{e.isPlay=!1})})),this.$nextTick(()=>{this.play()})},50)},methods:{play(){0!=this.videoInfo.list.length&&this.autoPlay&&this.player.play()},clickVideo(){this.isPlay?this.player.pause():this.player.play()}}},ae=ne,oe=ae,le=(i("5213"),A(oe,ie,se,!1,null,"576d7892",null)),de=le.exports,ue=de,ce={name:"videoItem",mixins:[I],components:{hotspot:W,myVideoPlayer:ue},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},attributeJson:{type:Object,default:function(){}},ratio:{type:Number,default:1,positionList:[]}},data(){return{sensorsIsRes:!1,autoPlay:!1}},watch:{"videoInfo.checkedAttr":{handler(e){this.autoPlay=e.indexOf("autoPlay")>-1},immediate:!0,deep:!0}},computed:{videoItem(){return this.attributeJson.videoInfo.list},videoHotPic(){return this.attributeJson.videoHotInfo.picList},videoHotPop(){return this.attributeJson.videoHotInfo.popList},videoInfo(){return this.attributeJson.videoInfo},hotData(){let{attributeJson:e}=this;return{popList:e.videoHotInfo.popList,width:e.videoHotInfo.picList[0].width,height:e.videoHotInfo.picList[0].height,realWidth:e.baseStyle.w,realHeight:e.baseStyle.h,top:0,left:0}},tipReportData(){return function(e){return 1!=this.attributeJson.isVideoHasHot||e?{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:3,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,event:"bannerShow",position:1}:void 0}}},methods:{needSensorsRep(){this.stopReport||this.scrollMethod()},scrollMethod(){this.stopReport||this.$nextTick(()=>{const e=this.$refs["videoItem"+this.sortId];if(e){const t=document.documentElement.clientHeight,i=document.documentElement.clientWidth,s=e.getBoundingClientRect(),r=s.top||0,n=s.left||0;r<t&&r>=0&&n<i&&n>=0&&this.sensorsExposure()}})},sensorsExposure(){var e,t,i,s,r,n;if(this.sensorsIsRes)return;let a=JSON.parse(JSON.stringify(this.tipReportData(!0)));this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.videoInfo,propsObject:x(JSON.parse(JSON.stringify(a)),this.envUrl,"exposure"),reportData:a,extraData:{isCategory:!(null===(e=this.extraCategory)||void 0===e||!e.isCategory)&&(null===(t=this.extraCategory)||void 0===t?void 0:t.isCategory),category_index:null!==(i=this.extraCategory)&&void 0!==i&&i.category_index?null===(s=this.extraCategory)||void 0===s?void 0:s.category_index:"",category_name:null!==(r=this.extraCategory)&&void 0!==r&&r.category_name?null===(n=this.extraCategory)||void 0===n?void 0:n.category_name:"",isNoMKT:!0}}),this.sensorsIsRes=!0}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},he=ce,pe=he,fe=(i("ae4e"),A(pe,ee,te,!1,null,"150d5efa",null)),me=fe.exports,ge=me,ye=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],staticClass:"swiper-wrap",style:[e.conStyle,e.animationInStyle]},[e.hasSwiperItem||1===e.bgStyle.status&&0!=e.bgStyle.picList.length?t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"}],class:["swiper-con","swiper-con-"+e.mode],style:{backgroundImage:0!=e.bgStyle.picList.length?`url(${e.bgStyle.picList[0].resourcePath})`:""}},[t("div",{staticClass:"entrance-con",style:{"--hoverColor":e.paginationStyle.hoverColor||e.paginationStyle.color,"--activeColor":e.paginationStyle.activeColor,"--color":e.paginationStyle.color,width:e.baseStyle.w*e.ratio+"px",height:e.baseStyle.h*e.ratio+"px"}},[t("div",{key:e.indicatorType,ref:"swiper"+e.attributeJson.sort,class:[`swiper-container swiper-container-${e.sortId} swiper-container-${e.indicatorType}`,e.animationInObj.type?e.enterClass:""],style:{animationDuration:e.animationInObj.duration+"s"},attrs:{id:"mySwiper-"+e.sortId}},[t("div",{staticClass:"swiper-wrapper"},e._l(e.swiperList,(function(i,s){var r,n,a,o,l,d,u,c;return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:i.sort+s,ref:""+(i.sort+s),refInFor:!0,class:["swiper-slide",{"slide-auto":e.isSpaceSwiper}]},[t("div",{staticClass:"swiper-width",style:{width:(e.baseStyle.w-(2==e.styleType?100:0))*e.ratio+"px!important",height:e.baseStyle.h*e.ratio+"px"}},[1===i.type?t("img",{attrs:{src:(null===i||void 0===i||null===(r=i.picList)||void 0===r?void 0:r.length)>0&&null!==i&&void 0!==i&&null!==(n=i.picList[0])&&void 0!==n&&n.resourcePath?i.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(a=i.picList)||void 0===a?void 0:a.length)>0&&null!==i&&void 0!==i&&null!==(o=i.picList[0])&&void 0!==o&&o.resourceName?i.picList[0].resourceName.split(".")[0]:""}}):e._e(),2===i.type?t("div",{staticClass:"video-player-con"},[t("myVideoPlayer",{ref:"VideoPlayer"+e.sortId,refInFor:!0,attrs:{recordId:e.recordId,sortId:e.sortId,sort:(new Date).getTime(),videoInfo:i.videoInfo,autoPlay:i.videoInfo.checkedAttr.indexOf("autoPlay")>-1&&e.activeIndex==s,extraCategory:e.extraCategory,stopReport:!0}}),2==i.type&&1==i.isVideoHasHot&&0!=i.videoHotInfo.picList.length?t("div",{staticClass:"video-hot-image"},[t("img",{attrs:{src:(null===i||void 0===i||null===(l=i.videoHotInfo)||void 0===l||null===(l=l.picList)||void 0===l?void 0:l.length)>0&&null!==i&&void 0!==i&&null!==(d=i.videoHotInfo)&&void 0!==d&&null!==(d=d.picList[0])&&void 0!==d&&d.resourcePath?i.videoHotInfo.picList[0].resourcePath:"",alt:(null===i||void 0===i||null===(u=i.videoHotInfo)||void 0===u||null===(u=u.picList)||void 0===u?void 0:u.length)>0&&null!==i&&void 0!==i&&null!==(c=i.videoHotInfo)&&void 0!==c&&null!==(c=c.picList[0])&&void 0!==c&&c.resourceName?i.videoHotInfo.picList[0].resourceName.split(".")[0]:""}}),0!=i.videoHotInfo.picList.length?t("div",{staticClass:"swiper-hot"},[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{parentItem:e.attributeJson,item:{realWidth:i.realWidth,realHeight:i.realHeight,popList:i.videoHotInfo.popList,width:i.videoHotInfo.picList[0].width,height:i.videoHotInfo.picList[0].height},componentType:1,ratio:e.ratio,uniqueName:e.attributeJson.uniqueName,envUrl:e.envUrl,sortId:e.sortId,laySort:e.sort,path:e.path,brand:e.brand,prePosition:e.positionTotal[i.i],recordId:e.recordId,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))],1):e._e()]):e._e()],1):e._e(),1==i.type&&0!=i.picList.length?[t("hotspot",e._g(e._b({ref:`hotspot${e.sortId}${s}`,refInFor:!0,attrs:{parentItem:e.attributeJson,item:i,ratio:e.ratio,componentType:1,uniqueName:e.attributeJson.uniqueName,path:e.path,envUrl:e.envUrl,sortId:e.sortId,brand:e.brand,prePosition:e.positionTotal[i.i],recordId:e.recordId,extraCategory:e.extraCategory,stopReport:e.stopReport}},"hotspot",e.$attrs,!1),e.$listeners))]:e._e()],2)])})),0),e.hasScrollBar?t("div",{staticClass:"swiper-scrollbar-own"},[t("div",{staticClass:"swiper-scrollbar-drag",style:{width:100/e.list.length+"%",left:(e.activeIndex>e.list.length?0:100/e.list.length*(e.activeIndex-1))+"%"}})]):e._e(),e.hasSwiperPagination?t("div",{staticClass:"swiper-pagination-custom"},e._l(e.list,(function(i,s){return t("span",{key:s,class:["pagination-custom-bullt",{"bullt-active":e.slideIndex==s}],attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:`pagination_${e.recordId}_${e.sortId}_${Number(s+1)}`,name:`pagination_${e.recordId}_${e.sortId}_${Number(s+1)}`},on:{click:function(t){return e.swiperSlide(s)}}})})),0):e._e(),e.hasSwiperButton?[t("div",{class:["swiper-button-prev","swiper-button-prev-"+e.sortId]},[e._t("swiper-button-prev",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconleft",style:e.pageStyle})]):e._e(),4==e.indicatorType?t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-left",style:e.pageStyle})]):e._e()]}))],2),t("div",{class:["swiper-button-next","swiper-button-next-"+e.sortId]},[e._t("swiper-button-next",(function(){return[2==e.indicatorType||3==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconright",style:e.pageStyle})]):e._e(),4==e.indicatorType?t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-right",style:e.pageStyle})]):e._e()]}))],2)]:e._e()],2)]),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.hoverStyleShow?1:0}]}):e._e()]):e._e()])},ve=[];let be=16.7;var _e={name:"swiperItem",mixins:[I],components:{hotspot:W,myVideoPlayer:ue},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},sortId:{type:Number}},data(){return{sleepTimer:null,hasSensorsReList:[],hasSwiperItem:!1,swiper:"",activeIndex:0,slideIndex:0,hasInitSwiper:!1,positionList:[],positionTotal:[]}},computed:{bgStyle(){return this.attributeJson.bgStyle},list(){return this.attributeJson.list},styleType(){return this.attributeJson.styleType},indicatorType(){return this.attributeJson.indicatorType},paginationStyle(){return this.attributeJson.paginationStyle},pageStyle(){return{color:this.attributeJson.paginationStyle.color}},hasSwiperPagination(){return 3==this.indicatorType},hasSwiperButton(){return 1!=this.indicatorType},hasScrollBar(){return"pc"==this.mode&&2==this.indicatorType},isSpaceSwiper(){return"mobile"==this.mode&&2==this.styleType},tipReportData(){let e=[],t=[];return this.list.forEach(t=>{1==t.type&&0!=t.popList.length||0!=t.videoHotInfo.popList.length?e.push(1==t.type?t.popList.length:t.videoHotInfo.popList.length):e.push(1)}),e.forEach((i,s)=>{let r=e.slice(0,s),n=r.reduce((e,t)=>e+t,0);t.push(n)}),this.positionList=e,this.positionTotal=t,function(e){let t=this.swiperList[e];return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:1,popData:{},materialId:this.recordId+"_"+this.sortId+"_"+t.sort,materialName:t.uniqueName,refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:this.positionTotal[e]+1,event:"bannerShow"}}}},mounted(){this.$nextTick(()=>{this.judgeSwiper()})},methods:{needSensorsRep(e){this.stopReport||this.scrollMethod()},sleep(e){return new Promise(async t=>{clearTimeout(this.sleepTimer),this.sleepTimer=setTimeout(()=>{clearTimeout(this.sleepTimer),t("success")},e)})},scrollMethod(){this.stopReport||this.$nextTick(async()=>{var e;await this.sleep(100);const t=this.$refs["swiper"+this.attributeJson.sort];if(t&&(null===(e=this.swiperList)||void 0===e?void 0:e.length)>0){const e=t.swiper.realIndex;this.swiperList.forEach((t,i)=>{const s=this.$refs[""+(t.sort+i)];if(s&&s[0]&&e==i){const e=document.documentElement.clientHeight,a=document.documentElement.clientWidth,o=s[0].getBoundingClientRect(),l=o.top||0,d=o.left||0;if(l<e&&l>=0&&d<a&&d>=0){var r,n;const e=(null===(r=this.swiperList[i])||void 0===r||null===(r=r.popList)||void 0===r?void 0:r.length)>0&&(null===(n=this.swiperList[i])||void 0===n||null===(n=n.popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType))||void 0===n?void 0:n.length)>0?this.swiperList[i].popList.filter(e=>1==e.jumpLinkType||2==e.jumpLinkType):[];if(e.length>0&&1===this.swiperList[i].type){const e=this.$refs[`hotspot${this.sortId}${i}`];e&&e[0]&&e[0].needSensorsRep({isNoMKT:!1,MKTIndex:String(i+1),MKTName:this.swiperList[i].uniqueName})}else this.sensorsExposure(t,i)}}})}})},sensorsExposure(e,t){var i,s,r,n,a,o;if(this.hasSensorsReList.find(t=>JSON.stringify(t)==JSON.stringify(e)))return;let l=JSON.parse(JSON.stringify(this.tipReportData(t)));this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(l)),this.envUrl,"exposure"),reportData:l,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isNoMKT:!1,MKTIndex:String(t+1),MKTName:this.swiperList[t].uniqueName}}),this.hasSensorsReList.push(e)},judgeSwiper(){let e=this.attributeJson.list,t=e.findIndex(e=>0!=e.picList.length||0!=e.videoInfo.list.length);if(this.hasSwiperItem=t>-1,this.hasSwiperItem){e.forEach((e,t)=>{e.i=t});let t=JSON.parse(JSON.stringify(e));this.swiperList=e.concat(JSON.parse(JSON.stringify(t))),this.swiperList=t.concat(this.swiperList),this.scrollMethod(),this.initSwiper(!0)}},initSwiper:function(e){(this.hasSwiperItem||1===this.bgStyle.status&&0!=this.bgStyle.picList.length)&&this.$nextTick(()=>{this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);let{attributeJson:e}=this;this.options={effect:"slide",observer:!0,observeParents:!0,preventInteractionOnTransition:!0,autoplay:!!e.autoPlay&&{delay:1e3*e.interval,disableOnInteraction:!1,stopOnLastSlide:!1}},"mobile"==this.mode&&2==this.styleType&&(this.options.spaceBetween=10,this.options.loop=!1,this.options.slidesPerView="auto",this.options.centeredSlides=!0),this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.sortId,prevEl:".swiper-button-prev-"+this.sortId});let t=this,i=this.list.length;var s;(this.options.on={slideChangeTransitionEnd:function(){t.activeIndex=this.activeIndex,t.slideIndex=t.swiperList[this.activeIndex].i},slideNextTransitionEnd:function(){this.activeIndex==2*i&&this.slideTo(i,be)},slidePrevTransitionEnd:function(){this.activeIndex==i-1&&this.slideTo(2*i-1,be)},slideChange:function(){t.scrollMethod()}},this.swiper=new j.a(".swiper-container-"+this.sortId,this.options),this.swiper)&&(this.swiper instanceof Array?(null===(s=this.swiper)||void 0===s?void 0:s.length)>0&&this.swiper[0].slideTo(i,be):this.swiper.slideTo(i,be))})},swiperSlide(e){var t;this.swiper&&(this.swiper instanceof Array?(null===(t=this.swiper)||void 0===t?void 0:t.length)>0&&this.swiper[0].slideTo(e):this.swiper.slideTo(e));this.slideIndex=e}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Te=_e,Se=Te,we=(i("5b9b"),A(Se,ye,ve,!1,null,"e840520e",null)),Ee=we.exports,xe=Ee,Ce=function(){var e,t,i,s,r=this,n=r._self._c;r._self._setupProxy;return n("div",{staticClass:"button-wrap",style:[r.conStyle,r.animationInStyle]},[n("div",{ref:"button"+r.attributeJson.sort,class:["button-cl","button-cl-"+r.sortId],attrs:{"data-sensors-click":"","data-sensorsClick":r.attributeJson&&r.attributeJson.linkObj&&r.attributeJson.linkObj.jumpLinkType?"true":"false",id:"button_"+(r.recordId+"_"+r.sortId),name:"button_"+(r.recordId+"_"+r.sortId)},on:{click:r.pageClick}},[n("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"},{name:"treport",rawName:"v-treport",value:{data:r.tipReportData,envUrl:r.envUrl},expression:"{ data: tipReportData, envUrl }"}],ref:"buttonItem"+r.sortId,staticClass:"button-content",class:[{flexCenterBetween:r.iconImage},4===r.animationHoverObj.type?r.hoverDirection:""],style:[r.buttonStyle,{"--width":r.hoverStyleShow?"100%":"0","--height":r.hoverStyleShow?"100%":"0","--bgColor":r.animationHoverObj.bgStyle.backgroundColor}]},[1===(null===(e=r.iconStyle)||void 0===e?void 0:e.type)&&1===(null===(t=r.iconStyle)||void 0===t?void 0:t.position)&&r.iconImage?n("img",{attrs:{src:r.iconImage,alt:""}}):r._e(),n("div",{staticClass:"label",style:r.buttonTextStyle},[r._v(" "+r._s(r.attributeJson.label||"按钮")+" ")]),1===(null===(i=r.iconStyle)||void 0===i?void 0:i.type)&&2===(null===(s=r.iconStyle)||void 0===s?void 0:s.position)&&r.iconImage?n("img",{attrs:{src:r.iconImage,alt:""}}):r._e(),5===r.animationHoverObj.type&&r.hoverImage&&r.hoverStyleShow?n("img",{staticClass:"hover-image",attrs:{src:r.hoverImage,alt:""}}):r._e()]),2===r.animationHoverObj.type?n("div",{staticClass:"hover-con",style:[r.hoverStyle,{opacity:r.hoverStyleShow?1:0,borderRadius:r.attributeJson.borderStyle.borderRadius+"px"}]}):r._e()])])},ke=[],Ie={name:"buttonItem",mixins:[I],components:{},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},data(){return{iconImage:"",backgroundImage:"",hoverButtonStyle:{},sensorsIsRes:!1}},watch:{bgStyle:{handler(e){e&&e.picList&&0!=e.picList.length&&(this.backgroundImage=2===e.type?e.picList[0].resourcePath:"")},immediate:!0,deep:!0},iconStyle:{handler(e){e&&e.picList&&0!=e.picList.length&&(this.iconImage=1===e.type?e.picList[0].resourcePath:"")},immediate:!0,deep:!0}},computed:{iconStyle(){return this.attributeJson.iconStyle},bgStyle(){return this.attributeJson.bgStyle},buttonStyle(){let{bgStyle:e,fontStyle:t,borderStyle:i,space:s}=this.attributeJson,{borderTop:r,borderRight:n,borderBottom:a,borderLeft:o,borderColor:l}=i,d="mobile"==this.mode?2*this.ratio:this.ratio,u={fontSize:parseFloat(t.fontSize)*d+"px",color:t.color,backgroundColor:1===e.type?e.backgroundColor:"",fontWeight:t.fontWeight?"bold":"",textDecoration:t.textDecoration?"underline":"",fontStyle:t.fontItalic?"italic":"",borderRadius:i.borderRadius+"px",backgroundImage:`url('${this.backgroundImage}')`,paddingLeft:s.left+"px",paddingRight:s.right+"px"};return 1===i.type&&l&&(u.border="1px solid "+l),2===i.type&&(u.borderTop=r?"1px solid "+r:"none",u.borderRight=n?"1px solid "+n:"none",u.borderBottom=a?"1px solid "+a:"none",u.borderLeft=o?"1px solid "+o:"none"),u},buttonTextStyle(){return{color:this.attributeJson.fontStyle.color,"--hoverColor":this.attributeJson.fontStyle.hoverObj.color||this.attributeJson.fontStyle.color}},tipReportData(){return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:17,popData:{},refererPagePath:this.refererPagePath,path:this.path,brand:this.brand,position:1,event:"bannerShow"}}},methods:{needSensorsRep(){},pageClick(){var e;let t=JSON.parse(JSON.stringify(this.tipReportData));if(t.event="bannerClick",this.attributeJson.linkObj.jumpLinkType)try{let e=x(t,this.envUrl,"click"),i=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",i)}catch(l){}var i,s,r,n,a,o;null!==(e=this.attributeJson)&&void 0!==e&&null!==(e=e.linkObj)&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.attributeJson,propsObject:x(JSON.parse(JSON.stringify(t)),this.envUrl,"click"),reportData:t,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isSpecial:!0}});this.$emit("jumpLink",this.attributeJson.linkObj)}},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Pe=Ie,Oe=Pe,Le=(i("1e83"),A(Oe,Ce,ke,!1,null,"d81ff890",null)),Ae=Le.exports,De=Ae,Me=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"onScroll",rawName:"v-onScroll",value:e.scrollMethod,expression:"scrollMethod"}],staticClass:"product-wrap entrance-con",style:[e.conStyle,e.paginationShow,e.animationInStyle]},[t("div",{class:["product-con",e.animationInObj.type?e.enterClass:""],style:[{width:e.baseStyle.w*e.ratio+"px",height:e.baseStyle.h*e.ratio+"px",padding:`0 ${e.attributeJson.goodsPaddingSpacing}px`,animationDuration:e.animationInObj.duration+"s"}]},[e.isSwiper?e._e():t("div",{ref:"slide"+e.sortId,class:`slide-con slide-con-${e.styleType}-${e.mode}`,style:{width:e.attributeJson.baseStyle.w*e.ratio+e.attributeJson.goodsSpacing+"px",margin:"0px -"+e.attributeJson.goodsSpacing/2+"px"}},e._l(e.productList,(function(i,s){return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"},{name:"hoverAnimate",rawName:"v-hoverAnimate",value:{key:"productIndex",value:s},expression:"{ key: 'productIndex', value: index }"}],key:i.id,ref:`product${i.code}${s}`,refInFor:!0,class:["product-item",`product${i.code}${s}`],style:[e.productStyle],attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code),name:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code)},on:{click:function(t){return e.gotoPDP(i.code,i.colorCode,i.name,s,i)}}},[t("div",{staticClass:"product-image"},[t("img",{style:[3===e.animationHoverObj.type&&e.productIndex==s?e.hoverStyle:""],attrs:{src:2==e.attributeJson.goodsImgType&&i.customImage?i.customImage:i.mainPicUrl,alt:i.name}})]),0!=e.attributeJson.showInfo.length?t("div",{class:["product-info","position"+e.attributeJson.infoPoisition,{transparent:2==e.attributeJson.isHover&&e.productIndex!=s}]},[e._t("productInfo",(function(){return[e.attributeJson.showInfo.indexOf(1)>-1?t("div",{staticClass:"product-name"},[e._v(e._s(i.name))]):e._e(),t("div",{staticClass:"price-con"},[e.attributeJson.showInfo.indexOf(2)>-1?t("div",[e._v("¥"+e._s(e.formatNumber(parseInt(i.salesPrice)||0)))]):e._e(),i.salesPrice!=i.standardPrice&&e.attributeJson.showInfo.indexOf(3)>-1?t("div",{staticClass:"standardPrice"},[e._v(" ¥"+e._s(e.formatNumber(parseInt(i.standardPrice)||0))+" ")]):e._e()])]}))],2):e._e(),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.productIndex===s?1:0,margin:`0 ${e.goodsSpacing/2}px`}]}):e._e()])})),0),e.isSwiper?t("div",{key:e.styleType+e.indicatorType,ref:"slide"+e.sortId,class:"swiper-container swiper-container-"+e.sortId,attrs:{id:"mySwiper-"+e.sortId}},[t("div",{staticClass:"swiper-wrapper",style:[{width:e.baseStyle.w*e.ratio+"px"}]},e._l(e.productList,(function(i,s){return t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate",value:{key:"productIndex",value:s},expression:"{ key: 'productIndex', value: index }"},{name:"treport",rawName:"v-treport",value:{data:e.tipReportData(s),envUrl:e.envUrl},expression:"{data:tipReportData(index), envUrl}"}],key:i.id,ref:`product${i.code}${s}`,refInFor:!0,class:`swiper-slide swiper-slide-${e.styleType}-${e.mode}`,style:[e.productStyle]},[t("div",{ref:`product${i.code}${s}`,refInFor:!0,attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code),name:"product_"+(e.recordId+"_"+e.sortId+"_"+i.code)},on:{click:function(t){return e.gotoPDP(i.code,i.colorCode,i.name,s,i)}}},[t("div",{staticClass:"product-image"},[t("img",{style:[3===e.animationHoverObj.type&&e.productIndex==s?e.hoverStyle:""],attrs:{src:2==e.attributeJson.goodsImgType&&i.customImage?i.customImage:i.mainPicUrl,alt:""}})]),0!=e.attributeJson.showInfo.length?t("div",{class:["product-info","position"+e.attributeJson.infoPoisition,{transparent:2==e.attributeJson.isHover&&e.productIndex!=s}]},[e._t("productInfo",(function(){return[e.attributeJson.showInfo.indexOf(1)>-1?t("div",{staticClass:"product-name"},[e._v(" "+e._s(i.name)+" ")]):e._e(),t("div",{staticClass:"price-con"},[e.attributeJson.showInfo.indexOf(2)>-1?t("div",[e._v("¥"+e._s(e.formatNumber(parseInt(i.salesPrice)||0)))]):e._e(),i.salesPrice!=i.standardPrice&&e.attributeJson.showInfo.indexOf(3)>-1?t("div",{staticClass:"standardPrice"},[e._v(" ¥"+e._s(e.formatNumber(parseInt(i.standardPrice)||0))+" ")]):e._e()])]}))],2):e._e(),2===e.animationHoverObj.type?t("div",{staticClass:"hover-con",style:[e.hoverStyle,{opacity:e.productIndex===s?1:0}]}):e._e()])])})),0),e.hasScrollBar?t("div",{class:"swiper-scrollbar swiper-scrollbar-"+e.sortId}):e._e(),e.hasSwiperButton?t("div",{class:"swiper-button-prev swiper-button-prev-"+e.sortId},[e._t("swiper-button-prev",(function(){return[2==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconleft",style:e.pageStyle})]):e._e()]}))],2):e._e(),e.hasSwiperButton?t("div",{class:"swiper-button-next swiper-button-next-"+e.sortId},[e._t("swiper-button-next",(function(){return[2==e.indicatorType?t("div",[t("span",{staticClass:"cms2iconfont iconright",style:e.pageStyle})]):e._e()]}))],2):e._e()]):e._e()])])},Ne=[],Re={name:"productItem",mixins:[I],components:{},props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},sortId:{type:Number}},data(){return{productTimer:null,sleepTimer:null,hasSensorsReList:[],productList:[],swiper:"",productStyle:{},service:new y,productIndex:"",windowHeight:0}},watch:{addProduct:{handler(e){clearInterval(this.productTimer),this.productTimer=setInterval(()=>{if("undefined"!==typeof window){if(clearInterval(this.productTimer),1==e.type&&0==e.itemCodeList.length)return;if(2==e.type&&!e.categoryGroupCode)return;if(3==e.type&&!e.cmsSortCode)return;this.getProductList()}},200)},immediate:!0,deep:!0},ratio:{handler(){!this.isSwiper&&this.productStyle.width&&(this.productStyle.width=(this.attributeJson.baseStyle.w*this.ratio-2*this.attributeJson.goodsPaddingSpacing+this.goodsSpacing)/this.showNum+"px")}}},computed:{addProduct(){return this.attributeJson.addProduct},goodsPaddingSpacing(){return this.attributeJson.goodsPaddingSpacing},goodsSpacing(){return this.attributeJson.goodsSpacing},itemsPerLine(){return this.attributeJson.itemsPerLine},indicatorType(){return this.attributeJson.indicatorType},isSwiper(){return"pc"==this.mode&&1==this.styleType||"mobile"==this.mode&&2==this.styleType&&(2==this.indicatorType||3==this.indicatorType)},hasSwiperButton(){return"pc"==this.mode&&1==this.styleType&&2==this.indicatorType||"mobile"==this.mode&&2==this.styleType&&2==this.indicatorType},hasScrollBar(){return"mobile"==this.mode&&2==this.styleType&&3==this.indicatorType},paginationShow(){let{paginationStyle:e}=this.attributeJson;return{"--hoverColor":e.hoverColor||e.color,"--activeColor":e.activeColor,"--color":e.color}},pageStyle(){return{color:this.attributeJson.paginationStyle.color}},showNum(){let e=1;return"pc"==this.mode?e=this.attributeJson.itemsPerLine:1==this.attributeJson.styleType?e=2.5:2==this.attributeJson.styleType&&(e=this.attributeJson.itemsPerLine),e},tipReportData(){return function(e){let t=this.productList[e];return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:4,popData:{productCode:t.code,selectDataShow:t.name},materialId:this.recordId+"_"+this.sortId,materialName:this.attributeJson.uniqueName,refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:e+1,event:"bannerShow"}}}},mounted(){this.productList=this.attributeJson.productList,this.initProduct()},methods:{needSensorsRep(){this.stopReport||this.scrollMethod()},sleep(e){return new Promise(async t=>{clearTimeout(this.sleepTimer),this.sleepTimer=setTimeout(()=>{clearTimeout(this.sleepTimer),t("success")},e)})},scrollMethod(){this.stopReport||this.$nextTick(async()=>{if(await this.sleep(100),this.isSwiper){var e;const t=this.$refs["slide"+this.sortId];if(t&&(null===(e=this.productList)||void 0===e?void 0:e.length)>0){const e=this.showNum,i=t.swiper.realIndex,s=0+e+i;let r=this.productList.map((e,t)=>(e.pIndex=t,e)).slice(s-e,s);(null===r||void 0===r?void 0:r.length)>0&&r.forEach(e=>{const t=this.$refs[`product${e.code}${e.pIndex}`];if(t&&t[0]){const i=document.documentElement.clientHeight,s=document.documentElement.clientWidth,r=t[0].getBoundingClientRect(),n=r.top||0,a=r.left||0;n<i&&n>=0&&a<s&&a>=0&&this.sensorsExposure(e.pIndex,e)}})}}else{var t;(null===(t=this.productList)||void 0===t?void 0:t.length)>0&&this.productList.forEach((e,t)=>{const i=this.$refs[`product${e.code}${t}`];if(i&&i[0]){const s=document.documentElement.clientHeight,r=document.documentElement.clientWidth,n=i[0].getBoundingClientRect(),a=n.top||0,o=n.left||0;a<s&&a>=0&&o<r&&o>=0&&this.sensorsExposure(t,e)}})}})},sensorsExposure(e,t){var i,s,r,n,a,o;if(this.hasSensorsReList.find(e=>JSON.stringify(e)==JSON.stringify(t)))return;let l=JSON.parse(JSON.stringify(this.tipReportData(e)));t.position=Number(e)+1,this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:t,propsObject:x(JSON.parse(JSON.stringify(l)),this.envUrl,"exposure"),reportData:l,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isNoMKT:!1,MKTIndex:String(e+1),MKTName:this.productList[e].name}}),this.hasSensorsReList.push(t)},getProductList:function(){let e={};switch(this.addProduct.type){case 1:e={itemCodeList:this.addProduct.itemCodeList,pageNum:1,pageSize:this.addProduct.itemCodeList.length};break;case 2:e={categoryParam:{categoryCodeList:this.addProduct.categoryCodeList,categoryGroupCode:this.addProduct.categoryGroupCode},pageNum:1,pageSize:this.addProduct.max,sortRuleId:this.addProduct.sortId};break;case 3:e={pageNum:1,pageSize:this.addProduct.max,sortField:this.addProduct.cmsSortCode};break}3==this.addProduct.type?this.service.getSortProductInfo(this.envUrl,e,this.language).then(e=>{if(e&&e.list){let t=document.querySelector(".entrance-con"+this.sortId),i=t&&t.classList.contains("entrance-demonstrate");i&&t.firstChild.style&&(t.firstChild.style.display="block"),this.productList=e.list,this.initProduct()}else this.productList=[]}):this.service.getProductInfo(this.envUrl,e,this.language).then(e=>{if(e&&e.list){let t=document.querySelector(".entrance-con"+this.sortId),i=t&&t.classList.contains("entrance-demonstrate");i&&t.firstChild.style&&(t.firstChild.style.display="block"),this.productList=e.list,this.initProduct()}else this.productList=[]})},initProduct:function(){let{attributeJson:e,addProduct:t}=this;var i;2==e.goodsImgType&&0!=t.customImageList.length&&((null===(i=this.productList)||void 0===i?void 0:i.length)>0&&this.productList.forEach((e,i)=>{0!=t.customImageList[i].picList.length&&this.$set(e,"customImage",t.customImageList[i].picList[0].resourcePath)}));this.productList&&this.productList.length>0&&(this.scrollMethod(),this.isSwiper?this.initSwiper():this.initSlide())},initSwiper:function(){let{attributeJson:e,indicatorType:t,styleType:i}=this;this.$nextTick(()=>{this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null),this.options={effect:"slide",autoplay:!1,slidesPerView:this.showNum,spaceBetween:e.goodsSpacing},2==i&&2==t&&(this.options.pagination={el:".swiper-pagination-"+this.sortId,clickable:!0}),this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.sortId,prevEl:".swiper-button-prev-"+this.sortId}),this.hasScrollBar&&(this.options.scrollbar={el:".swiper-scrollbar-"+this.sortId,draggable:!0},this.options.freeMode=!0);let s=this;this.options.on={slideChange:function(){s.scrollMethod()}},this.swiper=new j.a(".swiper-container-"+this.sortId,this.options)})},initSlide(){this.productStyle={padding:`0 ${this.goodsSpacing/2}px`,width:(this.attributeJson.baseStyle.w*this.ratio-2*this.attributeJson.goodsPaddingSpacing+this.goodsSpacing)/this.showNum+"px",marginBottom:this.goodsSpacing+"px"}},gotoPDP(e,t,i,s,r){var n,a,o,l,d,u;let c=JSON.parse(JSON.stringify(this.tipReportData(s)));c.event="bannerClick";try{let e=x(c,this.envUrl,"click"),t=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",t)}catch(h){}r.position=Number(s)+1,this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:r,propsObject:x(JSON.parse(JSON.stringify(c)),this.envUrl,"click"),reportData:c,extraData:{isCategory:!(null===(n=this.extraCategory)||void 0===n||!n.isCategory)&&(null===(a=this.extraCategory)||void 0===a?void 0:a.isCategory),category_index:null!==(o=this.extraCategory)&&void 0!==o&&o.category_index?null===(l=this.extraCategory)||void 0===l?void 0:l.category_index:"",category_name:null!==(d=this.extraCategory)&&void 0!==d&&d.category_name?null===(u=this.extraCategory)||void 0===u?void 0:u.category_name:"",isNoMKT:!1,MKTIndex:String(s+1),MKTName:this.productList[s].name}}),this.$emit("gotoPDP",{code:e,colorCode:t})},formatNumber:k},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}}}},Ue=Re,Be=Ue,je=(i("f526"),A(Be,Me,Ne,!1,null,"1f30d9fc",null)),Fe=je.exports,qe=Fe,$e=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"simplyText-wrap entrance-con",style:[e.conStyle,e.animationInStyle],attrs:{"data-sensors-click":"","data-sensorsClick":e.attributeJson&&e.attributeJson.linkObj&&e.attributeJson.linkObj.jumpLinkType?"true":"false",id:`entrance_${e.recordId}_${e.sortId}`,name:`entrance_${e.recordId}_${e.sortId}`},on:{click:e.pageClick}},[t("div",{directives:[{name:"hoverAnimate",rawName:"v-hoverAnimate"}],staticClass:"text-con"},[t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl},expression:"{ data: tipReportData, envUrl }"}],staticClass:"text-show",style:[e.textStyle,e.hoverStyleShow?e.hoverStyle:""]},[e._v(e._s(e.attributeJson.label))])])])},He=[],ze={name:"simplyText",inheritAttrs:!1,mixins:[I],props:{extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1}},computed:{textStyle(){let{fontStyle:{fontSize:e,color:t,fontWeight:i,textDecoration:s,lineHeight:r,fontItalic:n,letterSpacing:a,fontBackColor:o,fontFamily:l},textAlign:d}=this.attributeJson,u="mobile"==this.mode?2*this.ratio:this.ratio,c={fontSize:parseFloat(e)*u+"px",color:t,fontWeight:i?"bold":"",textDecoration:s?"underline":"",fontStyle:n?"italic":"",lineHeight:r,letterSpacing:(a||0)+"px",backgroundColor:o||"",fontFamily:l,textAlign:d};return c},tipReportData(){return{uniqueId:this.recordId+"_"+this.sortId,uniqueName:this.attributeJson.uniqueName,componentType:24,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:1,event:"bannerShow"}}},methods:{needSensorsRep(){},pageClick(){var e;let t=JSON.parse(JSON.stringify(this.tipReportData));if(t.event="bannerClick",this.attributeJson.linkObj.jumpLinkType)try{let e=x(t,this.envUrl,"click"),i=new Blob([JSON.stringify(e)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",i)}catch(l){}var i,s,r,n,a,o;null!==(e=this.attributeJson)&&void 0!==e&&null!==(e=e.linkObj)&&void 0!==e&&e.jumpLinkType&&this.$emit("sensorsCmsRepost",{initObject:this.attributeJson,itemObject:this.attributeJson,propsObject:x(JSON.parse(JSON.stringify(t)),this.envUrl,"click"),reportData:t,extraData:{isCategory:!(null===(i=this.extraCategory)||void 0===i||!i.isCategory)&&(null===(s=this.extraCategory)||void 0===s?void 0:s.isCategory),category_index:null!==(r=this.extraCategory)&&void 0!==r&&r.category_index?null===(n=this.extraCategory)||void 0===n?void 0:n.category_index:"",category_name:null!==(a=this.extraCategory)&&void 0!==a&&a.category_name?null===(o=this.extraCategory)||void 0===o?void 0:o.category_name:"",isSpecial:!0,noLabel:!0}});this.$emit("jumpLink",this.attributeJson.linkObj)}}},Ve=ze,Ge=Ve,We=(i("3380"),A(Ge,$e,He,!1,null,"4b8d3640",null)),Xe=We.exports,Ye=Xe,Je={name:"singleLayout",inheritAttrs:!1,components:{textItem:N,imgNav:Z,videoItem:ge,swiperItem:xe,buttonItem:De,productItem:qe,simplyText:Ye},props:{envUrl:{type:String,default:""},isClient:{type:Boolean,default:!0},extraCategory:{type:Object,default:()=>null},stopReport:{type:Boolean,default:!1},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},canDragInc:{type:Boolean,default:!0}},data(){return{vLine:[],hLine:[],componentName:""}},computed:{layoutStyle:function(){return this.layOutData.layoutStyle?{backgroundImage:2===this.layOutData.layoutStyle.bgStyle.type&&0!=this.layOutData.layoutStyle.bgStyle.picList.length&&`url(${this.layOutData.layoutStyle.bgStyle.picList[0].resourcePath})`,backgroundColor:1===this.layOutData.layoutStyle.bgStyle.type&&this.layOutData.layoutStyle.bgStyle.backgroundColor}:{}}},methods:{needSensorsRep(){if(this.stopReport)return;const e=this.$refs.singleComponent;(null===e||void 0===e?void 0:e.length)>0&&e.forEach(e=>{e.needSensorsRep()})},getCustom(){let e=this.layOutData.componentList.filter(e=>e.type>100);return e}}},Ke=Je,Qe=Ke,Ze=(i("9e75"),A(Qe,o,l,!1,null,"7a377fe0",null)),et=Ze.exports,tt=et,it=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{key:e.layOutData.layoutStyle.height,staticClass:"multiple-layout",style:{height:Math.round(e.layOutData.layoutStyle.height*e.ratio)+"px"}},[e._l(e.layOutData.list,(function(i,s){return[t("div",{key:s,staticClass:"multiple-item",style:{width:Math.round(i.baseStyle.w*e.ratio)+"px",height:Math.round(e.layOutData.layoutStyle.height*e.ratio)+"px",zIndex:e.currentIndex==s?1:"auto"}},[t("singleLayout",e._g(e._b({ref:"multipleSingle",refInFor:!0,attrs:{envUrl:e.envUrl,isClient:e.isClient,layOutData:i,componentList:i.componentList,"parent-l":i.baseStyle.l,ratio:e.ratio,recordId:e.recordId,mode:e.mode}},"singleLayout",e.$attrs,!1),e.$listeners))],1)]}))],2)},st=[],rt={name:"multipleLayout",components:{singleLayout:tt},props:{envUrl:{type:String,default:""},isClient:{type:Boolean,default:!0},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},mode:{type:String,default:"pc"},recordId:{type:Number,default:0}},inheritAttrs:!1,data(){return{w:200,currentItem:null,currentIndex:""}},watch:{},mounted(){},methods:{}},nt=rt,at=nt,ot=(i("2733"),A(at,it,st,!1,null,"64880e2e",null)),lt=ot.exports,dt=lt,ut=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{directives:[{name:"treport",rawName:"v-treport",value:{data:e.tipReportData,envUrl:e.envUrl,isClient:e.isClient},expression:"{ data: tipReportData, envUrl, isClient }"}],ref:"custom"+e.layOutData.sort,staticClass:"custom-layout"},[t("div",{staticClass:"add-con"}),e._t("customComponent",null,{attributeJson:e.layOutData})],2)},ct=[],ht={name:"customLayout",props:{refererPagePath:{type:String},layOutData:{type:Object,default:()=>{}},envUrl:{type:String,default:""},isClient:{type:Boolean,default:!0},path:{type:String},isClient:{type:Boolean,default:!0}},data(){return{sensorsIsRes:!1}},inheritAttrs:!1,computed:{tipReportData(){return{uniqueId:this.layOutData.sort,uniqueName:this.uniqueName,componentType:7,popData:{},refererPagePath:this.refererPagePath,brand:this.brand,path:this.path,position:1}}},methods:{},directives:{onScroll:{inserted(e,t){const i=t.value,s={e:null,scrollX:window.scrollX,scrollY:window.scrollY},r=e=>{s.e=e,s.scrollX=window.scrollX,s.scrollY=window.scrollY,i(s)};i(s),window.addEventListener("scroll",r,!1),e.onScroll=r},unbind(e){e.onScroll||(window.removeEventListener("scroll",e.onScroll,!1),delete e.onScroll)}},treport:E}},pt=ht,ft=pt,mt=(i("9527"),A(ft,ut,ct,!1,null,"5d3536cc",null)),gt=mt.exports,yt=gt,vt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"tab-layout"},[e.hasTab?t("div",{staticClass:"tab-detail tab-con"},[t("div",[2==e.tabHeadInfo.showTitle?t("div",{ref:"tabHeadTitleDom",style:e.titleStyle},[t("span",[e._v(e._s(1==e.tabHeadInfo.customTitle?e.tabHeadInfo.title:e.list[e.tabIndex].title))])]):e._e(),t("div",{staticClass:"tab-list"},[t("div",{staticClass:"tab-line"},e._l(e.list,(function(i,s){return t("navItem",{key:s,attrs:{"data-sensors-click":"","data-sensorsClick":"true",id:`nav_${e.recordId}_${e.sort}_${Number(s+1)}`,name:`nav_${e.recordId}_${e.sort}_${Number(s+1)}`,item:i,ratio:e.ratio,mode:e.mode,spacing:e.layOutData.fontStyle.spacing*e.ratio,active:e.tabIndex==s,navStyle:e.navStyle(s)},nativeOn:{click:function(t){return e.chooseTab(i,s)}}})})),1)]),t("div",{staticClass:"tab-content",style:{height:Math.ceil(e.list[e.tabIndex].height*e.ratio+1)+"px",transform:`translateX(${100*-e.tabIndex}%)`}},e._l(e.list,(function(i,s){return t("div",{key:s,staticClass:"tab-single"},[t("singleLayout",e._g(e._b({ref:"tabSingle"+s,refInFor:!0,attrs:{layOutData:i,componentList:i.componentList,ratio:e.ratio,recordId:e.recordId,mode:e.mode,envUrl:e.envUrl,isClient:e.isClient,extraCategory:e.extraCategory}},"singleLayout",e.$attrs,!1),e.$listeners))],1)})),0)])]):e._e()])},bt=[],_t=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"nav-item",style:[e.navStyle,e.backStyle]},[[t("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"back-image",attrs:{src:e.item.navStyle.activeBackImage}}),t("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"back-image",attrs:{src:e.item.navStyle.backImage}})],t("span",{style:{marginLeft:e.spacing+"px"}},[e._v(e._s(e.item.title))])],2)},Tt=[],St={name:"navItem",props:{item:{type:Object,default:()=>{}},active:{type:Boolean,default:!1},navStyle:{type:Object,default:()=>{}},spacing:{type:[String,Number],default:0}},data(){return{}},watch:{},computed:{backStyle(){let{item:e,active:t}=this;return{backgroundColor:1==e.navStyle.type?t?e.navStyle.activeColor:e.navStyle.backgroundColor:"",backgroundImage:2==e.navStyle.type?t?`url('${e.navStyle.activeBackImage}')`:`url('${e.navStyle.backImage}')`:""}}},methods:{}},wt=St,Et=wt,xt=(i("5848"),A(Et,_t,Tt,!1,null,"ba25525a",null)),Ct=xt.exports,kt=Ct,It={name:"tabLayout",components:{navItem:kt,singleLayout:tt},props:{refererPagePath:{type:String},envUrl:{type:String,default:""},path:{type:String},sort:{type:Number,default:0},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},mode:{type:String,default:"pc"},recordId:{type:Number,default:0}},mounted(){setTimeout(()=>{this.sensorsTab()},200)},data(){return{tabIndex:0,activeSort:"",tabHeadTitleH:0}},computed:{extraCategory(){var e;let t=null;return(null===(e=this.layOutData)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)>0&&(t={isCategory:!0,category_index:String(this.tabIndex+1),category_name:this.layOutData.list[this.tabIndex].title}),t},hasTab(){return this.layOutData.list.some(e=>e.title)},list(){return this.layOutData.list},tabHeadInfo(){return this.layOutData.tabHeadInfo},navStyle(){let{tabHeadInfo:{width:e,height:t},borderStyle:i,fontStyle:{fontSize:s,color:r,fontWeight:n,textDecoration:a,fontItalic:o,hoverObj:{color:l}}}=this.layOutData,{borderTop:d,borderRight:u,borderBottom:c,borderLeft:h,borderColor:p,hoverObj:f}=i;return function(){return{width:e*this.ratio+"px",height:t*this.ratio+"px",color:r,fontSize:s,fontWeight:n?"bold":"",textDecoration:a?"underline":"",fontStyle:o?"italic":"",borderTop:2===i.type&&d?"1px solid "+d:1===i.type&&p?"1px solid "+p:"none",borderRight:2===i.type&&u?"1px solid "+u:1===i.type&&p?"1px solid "+p:"none",borderBottom:2===i.type&&c?"1px solid "+c:1===i.type&&p?"1px solid "+p:"none",borderLeft:2===i.type&&h?"1px solid "+h:1===i.type&&p?"1px solid "+p:"none","--hoverColor":l,"--hoverBorderTop":2===f.type&&f.borderTop?"1px solid "+f.borderTop:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none","--hoverBorderRight":2===f.type&&f.borderRight?"1px solid "+f.borderRight:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none","--hoverBorderBottom":2===f.type&&f.borderBottom?"1px solid "+f.borderBottom:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none","--hoverBorderLeft":2===f.type&&f.borderLeft?"1px solid "+f.borderLeft:1===f.type&&f.borderColor?"1px solid "+f.borderColor:"none"}}},titleStyle(){let{tabHeadInfo:{titleStyle:{fontSize:e,color:t,fontWeight:i,textDecoration:s,fontItalic:r}}}=this.layOutData;return{color:t,fontSize:e,fontWeight:i?"bold":"",textDecoration:s?"underline":"",fontStyle:r?"italic":"",paddingLeft:("pc"==this.mode?30:60)*this.ratio+"px",paddingBottom:("pc"==this.mode?40:80)*this.ratio+"px"}}},watch:{"layOutData.tabHeadInfo":{handler:function(){this.$nextTick(()=>{this.tabHeadTitleH=2==this.layOutData.tabHeadInfo.showTitle&&this.$refs["tabHeadTitleDom"]?this.$refs["tabHeadTitleDom"].clientHeight:0,this.setLayoutH()})},immediate:!0,deep:!0},"list.length":{handler:function(){let e=this.list.findIndex(e=>e.sort==this.activeSort);e>-1?this.tabIndex=e:(this.tabIndex=this.tabIndex>0?this.tabIndex-1:0,this.activeSort=this.list[this.tabIndex].sort)},deep:!0},hasTab:{handler:function(e){e&&(this.activeSort=this.list[0].sort,this.tabIndex=0)}}},methods:{chooseTab(e,t){this.activeSort=e.sort,this.tabIndex=t,this.setLayoutH(),this.$emit("updateLayOut",{sort:this.layOutData.sort});const i={uniqueId:this.recordId+"_"+this.sort,uniqueName:this.layOutData.uniqueName,componentMethodType:1,popData:{},materialId:e.sort?this.recordId+"_"+e.sort:this.recordId+"_"+this.sort,materialName:e.title,refererPagePath:this.refererPagePath,path:this.path,componentType:7,brand:this.brand,position:t+1,event:"bannerClick"};this.$emit("sensorsCmsRepost",{initObject:this.layOutData,itemObject:e,propsObject:x(JSON.parse(JSON.stringify(i)),this.envUrl,"click"),reportData:i,extraData:{isTabFirst:!0,component_id:this.recordId+"_"+this.sort,component_type:"tabLayout",isCategory:!1,category_index:"",category_name:"",isNoMKT:!1,MKTIndex:String(t+1),MKTName:e.title}});let s=x(i,this.envUrl,"click"),r=new Blob([JSON.stringify(s)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",r),setTimeout(()=>{this.sensorsTab()},0)},setLayoutH:function(){this.$set(this.layOutData.layoutStyle,"height",1*this.layOutData.list[this.tabIndex].height+1*this.layOutData.tabHeadInfo.height+1*this.tabHeadTitleH/this.ratio)},sensorsTab(){let e=this.$refs["tabSingle"+this.tabIndex];e&&e[0]&&e[0].needSensorsRep()}}},Pt=It,Ot=Pt,Lt=(i("f6b9"),A(Ot,vt,bt,!1,null,"21331d1f",null)),At=Lt.exports,Dt=At,Mt=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"slide-wrap",style:{"--hoverColor":e.paginationStyle.hoverColor||e.paginationStyle.color,"--activeColor":e.paginationStyle.activeColor,"--color":e.paginationStyle.color}},[t("div",{key:e.indicatorType,class:[`swiper-container swiper-container-${e.recordId} swiper-container-${e.indicatorType}`],attrs:{id:"mySwiper-"+e.recordId}},[t("div",{staticClass:"swiper-wrapper"},e._l(e.slideList,(function(i,s){return t("div",{key:s,class:["swiper-slide",{"slide-auto":1==e.widthStyle.type||e.centeredSlides}]},[t("div",{staticClass:"slide-con",style:[e.backStyle(i.i),{width:1==e.widthStyle.type?i.slideWidth*e.ratio+"px":e.backStyle(i.i).width}]},[t("singleLayout",e._g(e._b({ref:i.isCopy?"":"slideSingle",refInFor:!0,attrs:{isClient:e.isClient,envUrl:e.envUrl,layOutData:i,ratio:e.ratio,recordId:e.recordId,mode:e.mode,extraCategory:e.extraCategory,stopReport:e.realActiveIndex!=s}},"singleLayout",e.$attrs,!1),e.$listeners))],1)])})),0),e.hasSwiperButton?t("div",{class:["swiper-button-prev","swiper-button-prev-"+e.recordId]},[t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-left",style:e.pageStyle})])]):e._e(),e.hasSwiperButton?t("div",{class:["swiper-button-next","swiper-button-next-"+e.recordId]},[t("div",{staticClass:"arrow"},[t("span",{staticClass:"cms2iconfont iconarrow-right",style:e.pageStyle})])]):e._e()])])},Nt=[],Rt={name:"slideLayout",components:{singleLayout:tt},props:{envUrl:{type:String,default:""},isClient:{type:Boolean,default:!0},layOutData:{type:Object,default:()=>{}},ratio:{type:Number,default:1},mode:{type:String,default:"pc"},recordId:{type:Number,default:0}},data(){return{slideTimer:null,swiper:"",realActiveIndex:0,slideIndex:0,layWidth:1920,isInit:!1,slideList:[],isMove:!1}},watch:{layoutStyle:{handler(e){this.layWidth=("pc"==this.mode?1920:750)*(e.widthStyle.width/100)},deep:!0,immediate:!0},slideLen:{handler(){clearInterval(this.slideTimer),this.slideTimer=setInterval(()=>{"undefined"!==typeof window&&(clearInterval(this.slideTimer),this.calculateWidth())},200)},immediate:!0,deep:!0}},computed:{extraCategory(){var e;let t=null;return(null===(e=this.layOutData)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)>0&&(t={category_index:String(this.realActiveIndex+1)}),t},layoutStyle(){return this.layOutData.layoutStyle},paginationStyle(){return this.layOutData.paginationStyle},bgStyle(){return this.layOutData.bgStyle},list(){return this.layOutData.list},styleType(){return this.layOutData.styleType},indicatorType(){return this.layOutData.indicatorType},widthStyle(){return this.layOutData.widthStyle},hasSwiperButton(){return 2==this.indicatorType},pageStyle(){return{color:this.layOutData.paginationStyle.color}},backStyle(){let{bgStyle:e,layoutStyle:t,styleType:i,mode:s}=this;return function(r){let n=this.list[r],a="",o="";var l,d,u;1==(null===e||void 0===e?void 0:e.status)?1==(null===e||void 0===e?void 0:e.type)?a=null!==e&&void 0!==e&&e.backgroundColor?e.backgroundColor:"":o=(null===e||void 0===e||null===(l=e.picList)||void 0===l?void 0:l.length)>0?`url(${e.picList[0].resourcePath})`:"":1==n.bgStyle.type?a=null!==n&&void 0!==n&&null!==(d=n.bgStyle)&&void 0!==d&&d.backgroundColor?n.bgStyle.backgroundColor:"":o=(null===n||void 0===n||null===(u=n.bgStyle)||void 0===u||null===(u=u.picList)||void 0===u?void 0:u.length)>0?`url(${n.bgStyle.picList[0].resourcePath})`:"";let c="mobile"==s||"pc"==s&&2==i,h=c?this.layWidth-0*(this.layOutData.lineSlideNum+1)-("mobile"==s?0:556):this.layWidth;return{width:h/this.layOutData.lineSlideNum*this.ratio+"px",height:Math.ceil(t.height*this.ratio)+"px",backgroundColor:a,backgroundImage:o}}},slideLen(){var e;return(null===(e=this.layOutData)||void 0===e||null===(e=e.list)||void 0===e?void 0:e.length)>0?this.layOutData.list.length:0},centeredSlides(){return"mobile"==this.mode||"pc"==this.mode&&2==this.styleType}},methods:{sleep(e){return new Promise(async t=>{clearTimeout(this.sleepTimer),this.sleepTimer=setTimeout(()=>{clearTimeout(this.sleepTimer),t("success")},e)})},calculateWidth:function(){let{list:e}=this;e.forEach((e,t)=>{e.i=t});let t=JSON.parse(JSON.stringify(e));t.forEach(e=>{e.isCopy=!0}),this.slideList=e.concat(JSON.parse(JSON.stringify(t))),this.slideList=t.concat(this.slideList),this.$nextTick(()=>{if(2==this.layOutData.widthStyle.type)return void this.initSwiper();let{layWidth:e}=this;this.slideList.forEach(t=>{let i=t.componentList[0],s=0;if(i){let t=i.attributeJson;if(2==i.type){let i=t.list.some(e=>{var t;return Boolean((null===e||void 0===e||null===(t=e.picList)||void 0===t?void 0:t.length)>0)});s=i?t.baseStyle.w+t.baseStyle.l:e}else if(3==i.type){var r;let i=Boolean((null===t||void 0===t||null===(r=t.videoInfo)||void 0===r||null===(r=r.list)||void 0===r?void 0:r.length)>0);s=i?t.baseStyle.w+t.baseStyle.l:e}else s=t.baseStyle.w+t.baseStyle.l}else s=e;this.$set(t,"slideWidth",s)}),this.$nextTick(()=>{this.initSwiper()})})},initSwiper(){this.$nextTick(()=>{var e;this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null);let{layOutData:t,widthStyle:i,ratio:s,slideLen:r}=this;this.options={effect:"slide",observer:!0,observeParents:!0,slidesPerView:this.centeredSlides||1==i.type?"auto":t.lineSlideNum,preventInteractionOnTransition:!0,slidesPerGroup:1,slidesPerGroupAuto:!0,centeredSlides:this.centeredSlides||1==i.type,spaceBetween:this.centeredSlides?0*s:0,autoplay:!!(t.autoPlay&&(null===(e=this.list)||void 0===e?void 0:e.length)>1)&&{delay:1e3*t.interval,disableOnInteraction:!1,stopOnLastSlide:!1}},1==i.type&&(this.options.loopedSlides=4,this.options.loopAdditionalSlides=2);let n=this;this.options.on={slideNextTransitionEnd:function(){this.activeIndex==2*r&&this.slideTo(r),n.slideIndex=this.activeIndex},slidePrevTransitionEnd:function(){this.activeIndex==r-1&&this.slideTo(2*r-1)},slideChange:async function(){var e,t;if((null===(e=n.slideList)||void 0===e?void 0:e.length)>0&&this.realIndex!==(null===(t=n.slideList)||void 0===t?void 0:t.length)/3&&(n.isMove=!0),n.isMove){n.realActiveIndex=this.realIndex;const e=n.$refs.slideSingle;await n.sleep(200),(null===e||void 0===e?void 0:e.length)>0&&e.forEach(e=>{e.needSensorsRep()})}}},this.hasSwiperButton&&(this.options.navigation={nextEl:".swiper-button-next-"+this.recordId,prevEl:".swiper-button-prev-"+this.recordId}),this.swiper=new j.a(".swiper-container-"+this.recordId,this.options),this.swiper&&(this.swiper instanceof Array?this.swiper[0].slideTo(r):this.swiper.slideTo(r))})}}},Ut=Rt,Bt=Ut,jt=(i("1501"),A(Bt,Mt,Nt,!1,null,"8c6aa46e",null)),Ft=jt.exports,qt=Ft,$t={name:"cms",inheritAttrs:!1,components:{singleLayout:tt,multipleLayout:dt,customLayout:yt,tabLayout:Dt,slideLayout:qt},props:{cmsList:{type:Array,default:()=>[]},canDrag:{type:Boolean,default:!0},mode:{type:String,default:"pc"},ratio:{type:Number,default:1},envUrl:{type:String,default:""},path:{type:String},isClient:{type:Boolean,default:!0}},data(){return{chooseSort:"",activeIndex:-1,layOutObj:{1:"singleLayout",2:"multipleLayout",3:"customLayout",4:"tabLayout",5:"slideLayout"}}},computed:{},mounted(){},methods:{chooseLayout(e,t){this.chooseSort=t,this.$emit("updateLayOut",{layoutType:e,sort:t})},updateSort(e){this.chooseSort=e},deleteModule(e,t){t===this.chooseSort?this.$emit("deleteModule",e):(this.cmsList.splice(e,1),this.$emit("saveVersionId"))},showOrHide(e){let t=this.cmsList[e];this.$set(t,"displayType",t.displayType?0:1),this.$emit("componentChange",t.sort)}}},Ht=$t,zt=Ht,Vt=(i("383a"),A(zt,n,a,!1,null,"66c85d51",null)),Gt=Vt.exports;const Wt=[Gt],Xt=function(e){Xt.installed||Wt.map(t=>e.component(t.name,t))};var Yt={install:Xt};t["default"]=Yt},fc6a:function(e,t,i){"use strict";var s=i("44ad"),r=i("1d80");e.exports=function(e){return s(r(e))}},fda2:function(e,t,i){},fdbf:function(e,t,i){"use strict";var s=i("04f8");e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ffdf:function(e,t,i){"use strict";(function(e){i.d(t,"a",(function(){return a}));var s=i("be09"),r=i.n(s),n=function(t){return r.a.atob?r.a.atob(t):e.from(t,"base64").toString("binary")};function a(e){for(var t=n(e),i=new Uint8Array(t.length),s=0;s<t.length;s++)i[s]=t.charCodeAt(s);return i}}).call(this,i("b639").Buffer)}});
|