baiqiu-cms-decoration1 1.0.1 → 1.0.6
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("baiqiu-cms-decoration1.min",[],t):"object"==typeof exports?exports["baiqiu-cms-decoration1.min"]=t():e["baiqiu-cms-decoration1.min"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=54)}([function(e,t){function i(e,t){var i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var a=n(r);return[i].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([a]).join("\n")}return[i].join("\n")}function n(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=i(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var a=this[r][0];"number"==typeof a&&(n[a]=!0)}for(r=0;r<e.length;r++){var s=e[r];"number"==typeof s[0]&&n[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="("+s[2]+") and ("+i+")"),t.push(s))}},t}},function(e,t,i){"use strict";function n(e){return"[object Array]"===C.call(e)}function r(e){return void 0===e}function a(e){return null!==e&&!r(e)&&null!==e.constructor&&!r(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function s(e){return"[object ArrayBuffer]"===C.call(e)}function o(e){return"undefined"!=typeof FormData&&e instanceof FormData}function l(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return"string"==typeof e}function d(e){return"number"==typeof e}function c(e){return null!==e&&"object"===(void 0===e?"undefined":E(e))}function p(e){if("[object Object]"!==C.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function h(e){return"[object Date]"===C.call(e)}function f(e){return"[object File]"===C.call(e)}function v(e){return"[object Blob]"===C.call(e)}function m(e){return"[object Function]"===C.call(e)}function g(e){return c(e)&&m(e.pipe)}function y(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function b(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function w(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function T(e,t){if(null!==e&&void 0!==e)if("object"!==(void 0===e?"undefined":E(e))&&(e=[e]),n(e))for(var i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function _(){function e(e,i){p(t[i])&&p(e)?t[i]=_(t[i],e):p(e)?t[i]=_({},e):n(e)?t[i]=e.slice():t[i]=e}for(var t={},i=0,r=arguments.length;i<r;i++)T(arguments[i],e);return t}function S(e,t,i){return T(t,function(t,n){e[n]=i&&"function"==typeof t?k(t,i):t}),e}function x(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}var E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=i(32),C=Object.prototype.toString;e.exports={isArray:n,isArrayBuffer:s,isBuffer:a,isFormData:o,isArrayBufferView:l,isString:u,isNumber:d,isObject:c,isPlainObject:p,isUndefined:r,isDate:h,isFile:f,isBlob:v,isFunction:m,isStream:g,isURLSearchParams:y,isStandardBrowserEnv:w,forEach:T,merge:_,extend:S,trim:b,stripBOM:x}},function(e,t,i){"use strict";function n(e,t,i,n){m=i,y=n||{};var a=d()(e,t);return r(a),function(t){for(var i=[],n=0;n<a.length;n++){var s=a[n],o=p[s.id];o.refs--,i.push(o)}t?(a=d()(e,t),r(a)):a=[];for(var n=0;n<i.length;n++){var o=i[n];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete p[o.id]}}}}function r(e){for(var t=0;t<e.length;t++){var i=e[t],n=p[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(s(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(s(i.parts[r]));p[i.id]={id:i.id,refs:1,parts:a}}}}function a(){var e=document.createElement("style");return e.type="text/css",h.appendChild(e),e}function s(e){var t,i,n=document.querySelector("style["+b+'~="'+e.id+'"]');if(n){if(m)return g;n.parentNode.removeChild(n)}if(w){var r=v++;n=f||(f=a()),t=o.bind(null,n,r,!1),i=o.bind(null,n,r,!0)}else n=a(),t=l.bind(null,n),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else i()}}function o(e,t,i,n){var r=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=T(t,r);else{var a=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function l(e,t){var i=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),y.ssrId&&e.setAttribute(b,t.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var u=i(58),d=i.n(u),c="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var p={},h=c&&(document.head||document.getElementsByTagName("head")[0]),f=null,v=0,m=!1,g=function(){},y=null,b="data-vue-ssr-id",w="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),T=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,i,n,r,a){var s,o=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(s=e,o=e.default);var u="function"==typeof o?o.options:o;t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r);var d;if(a?(d=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=d):n&&(d=n),d){var c=u.functional,p=c?u.render:u.beforeCreate;c?(u._injectStyles=d,u.render=function(e,t){return d.call(t),p(e,t)}):u.beforeCreate=p?[].concat(p,d):[d]}return{esModule:s,exports:o,options:u}}},function(e,t){var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},function(e,t,i){"use strict";i.d(t,"g",function(){return l}),i.d(t,"e",function(){return u}),i.d(t,"k",function(){return c}),i.d(t,"j",function(){return p}),i.d(t,"i",function(){return h}),i.d(t,"b",function(){return m}),i.d(t,"f",function(){return g}),i.d(t,"c",function(){return y}),i.d(t,"h",function(){return b}),i.d(t,"d",function(){return w}),i.d(t,"a",function(){return T});var n=i(14),r=i.n(n),a=function(e,t){for(var i="";t--;)i+=e;return i},s=function(e){return e.toString(2).length},o=function(e){return Math.ceil(s(e)/8)},l=function(e,t,i){return void 0===i&&(i=" "),(a(i,t)+e.toString()).slice(-t)},u=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},d=function(e){return u(e)},c=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||d(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))},p=function(e){e=c(e);for(var t="",i=0;i<e.length;i++)t+=l(e[i].toString(16),2,"0");return t},h=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,v=[f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000")],m=(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,n=i.signed,r=void 0!==n&&n,a=i.le,s=void 0!==a&&a;e=c(e);var o=s?"reduce":"reduceRight",l=e[o]?e[o]:Array.prototype[o],u=l.call(e,function(t,i,n){var r=s?n:Math.abs(n+1-e.length);return t+f(i)*v[r]},f(0));if(r){var d=v[e.length]/f(2)-f(1);u=f(u),u>d&&(u-=d,u-=d,u-=f(2))}return Number(u)}),g=function(e,t){var i=void 0===t?{}:t,n=i.le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!==e)&&(e=0),e=f(e);for(var a=o(e),s=new Uint8Array(new ArrayBuffer(a)),l=0;l<a;l++){var u=r?l:Math.abs(l+1-s.length);s[u]=Number(e/v[l]&f(255)),e<0&&(s[u]=Math.abs(~s[u]),s[u]-=0===l?1:2)}return s},y=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(e){}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),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i},w=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 n=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)},0),r=new Uint8Array(n),a=0;return t.forEach(function(e){e=c(e),r.set(e,a),a+=e.byteLength}),r},T=function(e,t,i){var n=void 0===i?{}:i,r=n.offset,a=void 0===r?0:r,s=n.mask,o=void 0===s?[]:s;e=c(e),t=c(t);var l=t.every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,function(t,i){return t===(o[i]?o[i]&e[a+i]:e[a+i])})}},function(e,t,i){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var r=i(60),a=i(64),s=i(9),o=i(132),l=(i.n(o),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.a={props:{pageData:{type:Object|String},maxWidthMobile:{type:Number},curSystem:{type:String},envUrl:{type:String,default:"https://mpdev.ibaiqiu.com/"},widthShow:{type:String|Number},recordId:{type:String|Number},refererPagePath:{type:String},path:{type:String},brand:{type:String},isReportCms:{type:Boolean,default:!0},pathType:{type:Number,default:1}},components:{comTitle:r.a,hotSport:a.a},data:function(){return{isPC:!0,showSwiper:!1,pageDataObj:{list:[]}}},watch:{pageData:{handler:function(e,t){var i=this;if(e){var r="object"===(void 0===e?"undefined":u(e))?l({},e):l({},JSON.parse(e));if(1===r.componentType){var a=r.list.slice(0,1),s=r.list.slice(-1),o=[].concat(n(r.list)),d=[].concat(n(s),n(o),n(a));r.list=[].concat(n(d))}this.pageDataObj=r,1===this.pageDataObj.isVideoHasHot&&(this.pageDataObj.popList=this.pageDataObj.videoHotInfo.popList,this.pageDataObj.type=2),this.comTitleWidth>=0&&this.$nextTick(function(){i.comTitleWidth=i.$refs.videoRef?i.$refs.videoRef.clientWidth:"",i.getVideoHeight&&i.getVideoHeight()}),this.pageDataObj.list&&this.pageDataObj.list.length>4&&(this.showNavigation=!0)}},deep:!0,immediate:!0},curSystem:{handler:function(e,t){this.isPC="pc"===e,this.showSwiper=!1,this.changeOption&&this.changeOption()},deep:!0,immediate:!0},brand:{handler:function(e,t){localStorage.getItem(e+"Cookie")||localStorage.setItem(e+"Cookie",""+parseInt((new Date).getTime())+Math.floor(1e4*Math.random()))}}},computed:{swiperChange:function(){return{widthStyle:this.pageData.widthStyle,styleType:this.pageData.styleType}}},methods:{checkIsMobile:function(e){this.isPC===e&&(this.showSwiper=!1,this.isPC=!e,this.changeOption&&this.changeOption()),this.checkDomChange&&this.checkDomChange()},navigatorPage:function(e){this.$emit("jumpLink",e)},reportAnalytics:function(e){this.isReportCms&&(e.popData.brand=1===this.pathType?"defaultPath":this.brand,e.path=3===e.popData.pathType?e.popData.webUrl:"",Object(s.b)(l({},e,{brand:this.brand}),this.envUrl))}},beforeDestroy:function(){this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null),Object(s.a)()}}},function(e,t,i){e.exports=i(67)},function(e,t,i){"use strict";function n(e,t,i){if(void 0===i&&(i=Array.prototype),e&&"function"==typeof i.find)return i.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var r=e[n];if(t.call(void 0,r,n,e))return r}}function r(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}function a(e,t){if(null===e||"object"!==(void 0===e?"undefined":s(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 s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r({HTML:"text/html",isHTML:function(e){return e===o.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),l=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===l.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=a,t.find=n,t.freeze=r,t.MIME_TYPE=o,t.NAMESPACE=l},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){var t="";switch(e.brand){case"defaultPath":t=""+s.a[e.brand][e.jumpLinkType]+a(e)}return t}function a(e){var t="";switch(e.jumpLinkType){case 1:t=e.productCode+"?colorCode="+e.colorCode;break;case 2:t="?categoryId="+e.categoryCode;break;case 9:t="";break;case 10:t=""+e.articleCode}return t}i.d(t,"c",function(){return r}),i.d(t,"b",function(){return h}),i.d(t,"a",function(){return m});var s=i(110),o=i(16),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},u=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),d=new o.a,c=function(){function e(t){n(this,e),this.envUrl=t,this.interval=p(t)}return u(e,null,[{key:"getInstance",value:function(t){return this.instance||(this.instance=new e(t)),this.instance}},{key:"ClearTimer",value:function(){this.instance.interval&&(clearInterval(this.instance.interval),this.instance.interval=null)}}]),e}(),p=function(e){return setInterval(function(){var t=JSON.parse(sessionStorage.getItem("reportData")||null)||[];t.length>0&&(sessionStorage.setItem("reportData","[]"),f(t,e))},1e3)},h=function(e,t){var i={commodity_id:e.popData.productCode||"",commodity_name:e.popData.selectDataShow||"",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?e.path:"/",refer_info:e.refererPagePath,trigger_Method_Type:e.componentMethodType,event:e.event},n=JSON.parse(sessionStorage.getItem("reportData")||null)||[];n.push(i),sessionStorage.setItem("reportData",JSON.stringify(n)),c.getInstance(t)},f=function(e,t){var i=e.map(function(e){return v(e)});d.acquisitionBatch(t,i)},v=function(e){var t="";localStorage.getItem(e.brand+"Cookie")?t=localStorage.getItem(e.brand+"Cookie"):(t=""+parseInt((new Date).getTime())+Math.floor(1e4*Math.random()),localStorage.setItem(e.brand+"Cookie",t));var i=e.event||"bannerShow";return delete e.event,{eventProperty:JSON.stringify(l({},e)),event:i,distinctId:t}},m=function(){c.ClearTimer()}},function(e,t,i){var n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,o){"object"===a(t)&&void 0!==e?e.exports=o():(n=o,void 0!==(r="function"==typeof n?n.call(t,i,t,e):n)&&(e.exports=r))}(0,function(){"use strict";function e(e,t){var i=[],n=0;if(e&&!t&&e instanceof Ne)return e;if(e)if("string"==typeof e){var r,a,s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var o="div";for(0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select"),a=De.createElement(o),a.innerHTML=s,n=0;n<a.childNodes.length;n+=1)i.push(a.childNodes[n])}else for(r=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||De).querySelectorAll(e.trim()):[De.getElementById(e.trim().split("#")[1])],n=0;n<r.length;n+=1)r[n]&&i.push(r[n])}else if(e.nodeType||e===Le||e===De)i.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)i.push(e[n]);return new Ne(i)}function t(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function i(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this}function n(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this}function r(e){return!!this[0]&&this[0].classList.contains(e)}function s(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this}function o(e,t){var i=arguments;{if(1!==arguments.length||"string"!=typeof e){for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}if(this[0])return this[0].getAttribute(e)}}function l(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function u(e,t){var i;{if(void 0!==t){for(var n=0;n<this.length;n+=1)i=this[n],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);if(r)return r;return}}}function d(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function c(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 p(){function t(t){var i=t.target;if(i){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),e(i).is(o))l.apply(i,n);else for(var r=e(i).parents(),a=0;a<r.length;a+=1)e(r[a]).is(o)&&l.apply(r[a],n)}}function i(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var n,r=[],a=arguments.length;a--;)r[a]=arguments[a];var s=r[0],o=r[1],l=r[2],u=r[3];"function"==typeof r[1]&&(n=r,s=n[0],l=n[1],u=n[2],o=void 0),u||(u=!1);for(var d,c=s.split(" "),p=0;p<this.length;p+=1){var h=this[p];if(o)for(d=0;d<c.length;d+=1){var f=c[d];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:l,proxyListener:t}),h.addEventListener(f,t,u)}else for(d=0;d<c.length;d+=1){var v=c[d];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[v]||(h.dom7Listeners[v]=[]),h.dom7Listeners[v].push({listener:l,proxyListener:i}),h.addEventListener(v,i,u)}}return this}function h(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=t[0],r=t[1],a=t[2],s=t[3];"function"==typeof t[1]&&(e=t,n=e[0],a=e[1],s=e[2],r=void 0),s||(s=!1);for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],d=0;d<this.length;d+=1){var c=this[d],p=void 0;if(!r&&c.dom7Listeners?p=c.dom7Listeners[u]:r&&c.dom7LiveListeners&&(p=c.dom7LiveListeners[u]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];a&&f.listener===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a||(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1))}}return this}function f(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=e[0].split(" "),n=e[1],r=0;r<i.length;r+=1)for(var a=i[r],s=0;s<this.length;s+=1){var o=this[s],l=void 0;try{l=new Le.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0})}catch(e){l=De.createEvent("Event"),l.initEvent(a,!0,!0),l.detail=n}o.dom7EventData=e.filter(function(e,t){return t>0}),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}return this}function v(e){function t(a){if(a.target===this)for(e.call(this,a),i=0;i<n.length;i+=1)r.off(n[i],t)}var i,n=["webkitTransitionEnd","transitionend"],r=this;if(e)for(i=0;i<n.length;i+=1)r.on(n[i],t);return this}function m(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 g(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 y(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),i=De.body,n=e.clientTop||i.clientTop||0,r=e.clientLeft||i.clientLeft||0,a=e===Le?Le.scrollY:e.scrollTop,s=e===Le?Le.scrollX:e.scrollLeft;return{top:t.top+a-n,left:t.left+s-r}}return null}function b(){return this[0]?Le.getComputedStyle(this[0],null):{}}function w(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return Le.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 T(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 _(e){if(void 0===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 S(e){if(void 0===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 x(t){var i,n,r=this[0];if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(i=e(t),n=0;n<i.length;n+=1)if(i[n]===r)return!0;return!1}if(t===De)return r===De;if(t===Le)return r===Le;if(t.nodeType||t instanceof Ne){for(i=t.nodeType?[t]:t,n=0;n<i.length;n+=1)if(i[n]===r)return!0;return!1}return!1}function E(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function k(e){if(void 0===e)return this;var t,i=this.length;return e>i-1?new Ne([]):e<0?(t=i+e,new Ne(t<0?[]:[this[t]])):new Ne([this[e]])}function C(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i,n=0;n<e.length;n+=1){i=e[n];for(var r=0;r<this.length;r+=1)if("string"==typeof i){var a=De.createElement("div");for(a.innerHTML=i;a.firstChild;)this[r].appendChild(a.firstChild)}else if(i instanceof Ne)for(var s=0;s<i.length;s+=1)this[r].appendChild(i[s]);else this[r].appendChild(i)}return this}function O(e){var t,i;for(t=0;t<this.length;t+=1)if("string"==typeof e){var n=De.createElement("div");for(n.innerHTML=e,i=n.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof Ne)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function P(t){return new Ne(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function j(t){var i=[],n=this[0];if(!n)return new Ne([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;t?e(r).is(t)&&i.push(r):i.push(r),n=r}return new Ne(i)}function I(t){if(this.length>0){var i=this[0];return new Ne(t?i.previousElementSibling&&e(i.previousElementSibling).is(t)?[i.previousElementSibling]:[]:i.previousElementSibling?[i.previousElementSibling]:[])}return new Ne([])}function A(t){var i=[],n=this[0];if(!n)return new Ne([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;t?e(r).is(t)&&i.push(r):i.push(r),n=r}return new Ne(i)}function M(i){for(var n=[],r=0;r<this.length;r+=1)null!==this[r].parentNode&&(i?e(this[r].parentNode).is(i)&&n.push(this[r].parentNode):n.push(this[r].parentNode));return e(t(n))}function D(i){for(var n=[],r=0;r<this.length;r+=1)for(var a=this[r].parentNode;a;)i?e(a).is(i)&&n.push(a):n.push(a),a=a.parentNode;return e(t(n))}function L(e){var t=this;return void 0===e?new Ne([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function N(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return new Ne(t)}function R(i){for(var n=[],r=0;r<this.length;r+=1)for(var a=this[r].childNodes,s=0;s<a.length;s+=1)i?1===a[s].nodeType&&e(a[s]).is(i)&&n.push(a[s]):1===a[s].nodeType&&n.push(a[s]);return new Ne(t(n))}function B(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function z(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var n,r,a=this;for(n=0;n<t.length;n+=1){var s=e(t[n]);for(r=0;r<s.length;r+=1)a[a.length]=s[r],a.length+=1}return a}function U(){var e,t,i=this,n=i.$el;e=void 0!==i.params.width?i.params.width:n[0].clientWidth,t=void 0!==i.params.height?i.params.height:n[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),Be.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function F(){var e=this,t=e.params,i=e.$wrapperEl,n=e.size,r=e.rtlTranslate,a=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=i.children("."+e.params.slideClass),u=s?e.virtual.slides.length:l.length,d=[],c=[],p=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var v=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,y=-h,b=0,w=0;if(void 0!==n){"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*n),e.virtualSize=-g,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var T;t.slidesPerColumn>1&&(T=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var _,S=t.slidesPerColumn,x=T/S,E=Math.floor(u/t.slidesPerColumn),k=0;k<u;k+=1){_=0;var C=l.eq(k);if(t.slidesPerColumn>1){var O=void 0,P=void 0,j=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)P=Math.floor(k/S),j=k-P*S,(P>E||P===E&&j===S-1)&&(j+=1)>=S&&(j=0,P+=1);else{var I=Math.floor(k/t.slidesPerGroup);j=Math.floor(k/t.slidesPerView)-I*t.slidesPerColumn,P=k-j*t.slidesPerView-I*t.slidesPerView}O=P+j*T/S,C.css({"-webkit-box-ordinal-group":O,"-moz-box-ordinal-group":O,"-ms-flex-order":O,"-webkit-order":O,order:O})}else j=Math.floor(k/x),P=k-j*x;C.css("margin-"+(e.isHorizontal()?"top":"left"),0!==j&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",P).attr("data-swiper-row",j)}if("none"!==C.css("display")){if("auto"===t.slidesPerView){var A=Le.getComputedStyle(C[0],null),M=C[0].style.transform,D=C[0].style.webkitTransform;if(M&&(C[0].style.transform="none"),D&&(C[0].style.webkitTransform="none"),t.roundLengths)_=e.isHorizontal()?C.outerWidth(!0):C.outerHeight(!0);else if(e.isHorizontal()){var L=parseFloat(A.getPropertyValue("width")),N=parseFloat(A.getPropertyValue("padding-left")),R=parseFloat(A.getPropertyValue("padding-right")),B=parseFloat(A.getPropertyValue("margin-left")),z=parseFloat(A.getPropertyValue("margin-right")),U=A.getPropertyValue("box-sizing");_=U&&"border-box"===U&&!Ue.isIE?L+B+z:L+N+R+B+z}else{var F=parseFloat(A.getPropertyValue("height")),H=parseFloat(A.getPropertyValue("padding-top")),V=parseFloat(A.getPropertyValue("padding-bottom")),q=parseFloat(A.getPropertyValue("margin-top")),G=parseFloat(A.getPropertyValue("margin-bottom")),W=A.getPropertyValue("box-sizing");_=W&&"border-box"===W&&!Ue.isIE?F+q+G:F+H+V+q+G}M&&(C[0].style.transform=M),D&&(C[0].style.webkitTransform=D),t.roundLengths&&(_=Math.floor(_))}else _=(n-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(_=Math.floor(_)),l[k]&&(e.isHorizontal()?l[k].style.width=_+"px":l[k].style.height=_+"px");l[k]&&(l[k].swiperSlideSize=_),p.push(_),t.centeredSlides?(y=y+_/2+b/2+g,0===b&&0!==k&&(y=y-n/2-g),0===k&&(y=y-n/2-g),Math.abs(y)<.001&&(y=0),t.roundLengths&&(y=Math.floor(y)),w%t.slidesPerGroup==0&&d.push(y),c.push(y)):(t.roundLengths&&(y=Math.floor(y)),w%t.slidesPerGroup==0&&d.push(y),c.push(y),y=y+_+g),e.virtualSize+=_+g,b=_,w+=1}}e.virtualSize=Math.max(e.virtualSize,n)+f;var X;if(r&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),ze.flexbox&&!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=(_+t.spaceBetween)*T,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 $=0;$<d.length;$+=1){var Y=d[$];t.roundLengths&&(Y=Math.floor(Y)),d[$]<e.virtualSize+d[0]&&X.push(Y)}d=X}if(!t.centeredSlides){X=[];for(var K=0;K<d.length;K+=1){var Q=d[K];t.roundLengths&&(Q=Math.floor(Q)),d[K]<=e.virtualSize-n&&X.push(Q)}d=X,Math.floor(e.virtualSize-n)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-n)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?r?l.css({marginLeft:g+"px"}):l.css({marginRight:g+"px"}):l.css({marginBottom:g+"px"})),t.centerInsufficientSlides){var J=0;if(p.forEach(function(e){J+=e+(t.spaceBetween?t.spaceBetween:0)}),(J-=t.spaceBetween)<n){var Z=(n-J)/2;d.forEach(function(e,t){d[t]=e-Z}),c.forEach(function(e,t){c[t]=e+Z})}}Be.extend(e,{slides:l,snapGrid:d,slidesGrid:c,slidesSizesGrid:p}),u!==o&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),c.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function H(e){var t,i=this,n=[],r=0;if("number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var a=i.activeIndex+t;if(a>i.slides.length)break;n.push(i.slides.eq(a)[0])}else n.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var s=n[t].offsetHeight;r=s>r?s:r}r&&i.$wrapperEl.css("height",r+"px")}function V(){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 q(t){void 0===t&&(t=this&&this.translate||0);var i=this,n=i.params,r=i.slides,a=i.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&i.updateSlidesOffset();var s=-t;a&&(s=t),r.removeClass(n.slideVisibleClass),i.visibleSlidesIndexes=[],i.visibleSlides=[];for(var o=0;o<r.length;o+=1){var l=r[o],u=(s+(n.centeredSlides?i.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var d=-(s-l.swiperSlideOffset),c=d+i.slidesSizesGrid[o];(d>=0&&d<i.size-1||c>1&&c<=i.size||d<=0&&c>=i.size)&&(i.visibleSlides.push(l),i.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}l.progress=a?-u:u}i.visibleSlides=e(i.visibleSlides)}}function G(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,n=t.maxTranslate()-t.minTranslate(),r=t.progress,a=t.isBeginning,s=t.isEnd,o=a,l=s;0===n?(r=0,a=!0,s=!0):(r=(e-t.minTranslate())/n,a=r<=0,s=r>=1),Be.extend(t,{progress:r,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesProgress(e),a&&!o&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(o&&!a||l&&!s)&&t.emit("fromEdge"),t.emit("progress",r)}function W(){var e=this,t=e.slides,i=e.params,n=e.$wrapperEl,r=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass);var o;o=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=o.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));var u=o.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===u.length&&(u=t.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function X(e){var t,i=this,n=i.rtlTranslate?i.translate:-i.translate,r=i.slidesGrid,a=i.snapGrid,s=i.params,o=i.activeIndex,l=i.realIndex,u=i.snapIndex,d=e;if(void 0===d){for(var c=0;c<r.length;c+=1)void 0!==r[c+1]?n>=r[c]&&n<r[c+1]-(r[c+1]-r[c])/2?d=c:n>=r[c]&&n<r[c+1]&&(d=c+1):n>=r[c]&&(d=c);s.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(t=a.indexOf(n)>=0?a.indexOf(n):Math.floor(d/s.slidesPerGroup),t>=a.length&&(t=a.length-1),d===o)return void(t!==u&&(i.snapIndex=t,i.emit("snapIndexChange")));var p=parseInt(i.slides.eq(d).attr("data-swiper-slide-index")||d,10);Be.extend(i,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:d}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),(i.initialized||i.runCallbacksOnInit)&&i.emit("slideChange")}function $(t){var i=this,n=i.params,r=e(t.target).closest("."+n.slideClass)[0],a=!1;if(r)for(var s=0;s<i.slides.length;s+=1)i.slides[s]===r&&(a=!0);if(!r||!a)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(e(r).attr("data-swiper-slide-index"),10):i.clickedIndex=e(r).index(),n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}function Y(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,i=t.params,n=t.rtlTranslate,r=t.translate,a=t.$wrapperEl;if(i.virtualTranslate)return n?-r:r;var s=Be.getTranslate(a[0],e);return n&&(s=-s),s||0}function K(e,t){var i=this,n=i.rtlTranslate,r=i.params,a=i.$wrapperEl,s=i.progress,o=0,l=0;i.isHorizontal()?o=n?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.virtualTranslate||(ze.transforms3d?a.transform("translate3d("+o+"px, "+l+"px, 0px)"):a.transform("translate("+o+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l;var u,d=i.maxTranslate()-i.minTranslate();u=0===d?0:(e-i.minTranslate())/d,u!==s&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function Q(){return-this.snapGrid[0]}function J(){return-this.snapGrid[this.snapGrid.length-1]}function Z(e,t){var i=this;i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function ee(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.params,a=i.previousIndex;r.autoHeight&&i.updateAutoHeight();var s=t;if(s||(s=n>a?"next":n<a?"prev":"reset"),i.emit("transitionStart"),e&&n!==a){if("reset"===s)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===s?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}function te(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.previousIndex;i.animating=!1,i.setTransition(0);var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),i.emit("transitionEnd"),e&&n!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}function ie(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,a=e;a<0&&(a=0);var s=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,c=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(a/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(d||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var h=-o[p];if(r.updateProgress(h),s.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*h)>=Math.floor(100*l[f])&&(a=f);if(r.initialized&&a!==d){if(!r.allowSlideNext&&h<r.translate&&h<r.minTranslate())return!1;if(!r.allowSlidePrev&&h>r.translate&&h>r.maxTranslate()&&(d||0)!==a)return!1}var v;return v=a>d?"next":a<d?"prev":"reset",c&&-h===r.translate||!c&&h===r.translate?(r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(h),"reset"!==v&&(r.transitionStart(i,v),r.transitionEnd(i,v)),!1):(0!==t&&ze.transition?(r.setTransition(t),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,v))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.transitionEnd(i,v)),!0)}function ne(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,a=e;return r.params.loop&&(a+=r.loopedSlides),r.slideTo(a,t,i,n)}function re(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.params,a=n.animating;return r.loop?!a&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)}function ae(e,t,i){function n(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,a=r.params,s=r.animating,o=r.snapGrid,l=r.slidesGrid,u=r.rtlTranslate;if(a.loop){if(s)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var d,c=u?r.translate:-r.translate,p=n(c),h=o.map(function(e){return n(e)}),f=(l.map(function(e){return n(e)}),o[h.indexOf(p)],o[h.indexOf(p)-1]);return void 0!==f&&(d=l.indexOf(f))<0&&(d=r.activeIndex-1),r.slideTo(d,e,t,i)}function se(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this;return n.slideTo(n.activeIndex,e,t,i)}function oe(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.activeIndex,a=Math.floor(r/n.params.slidesPerGroup);if(a<n.snapGrid.length-1){var s=n.rtlTranslate?n.translate:-n.translate,o=n.snapGrid[a];s-o>(n.snapGrid[a+1]-o)/2&&(r=n.params.slidesPerGroup)}return n.slideTo(r,e,t,i)}function le(){var t,i=this,n=i.params,r=i.$wrapperEl,a="auto"===n.slidesPerView?i.slidesPerViewDynamic():n.slidesPerView,s=i.clickedIndex;if(n.loop){if(i.animating)return;t=parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?s<i.loopedSlides-a/2||s>i.slides.length-i.loopedSlides+a/2?(i.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Be.nextTick(function(){i.slideTo(s)})):i.slideTo(s):s>i.slides.length-a?(i.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Be.nextTick(function(){i.slideTo(s)})):i.slideTo(s)}else i.slideTo(s)}function ue(){var t=this,i=t.params,n=t.$wrapperEl;n.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var r=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var a=i.slidesPerGroup-r.length%i.slidesPerGroup;if(a!==i.slidesPerGroup){for(var s=0;s<a;s+=1){var o=e(De.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);n.append(o)}r=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var l=[],u=[];r.each(function(i,n){var a=e(n);i<t.loopedSlides&&u.push(n),i<r.length&&i>=r.length-t.loopedSlides&&l.push(n),a.attr("data-swiper-slide-index",i)});for(var d=0;d<u.length;d+=1)n.append(e(u[d].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var c=l.length-1;c>=0;c-=1)n.prepend(e(l[c].cloneNode(!0)).addClass(i.slideDuplicateClass))}function de(){var e,t=this,i=t.params,n=t.activeIndex,r=t.slides,a=t.loopedSlides,s=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,u=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var d=-l[n],c=d-t.getTranslate();if(n<a){e=r.length-3*a+n,e+=a;t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((u?-t.translate:t.translate)-c)}else if("auto"===i.slidesPerView&&n>=2*a||n>=r.length-a){e=-r.length+n+a,e+=a;var p=t.slideTo(e,0,!1,!0);p&&0!==c&&t.setTranslate((u?-t.translate:t.translate)-c)}t.allowSlidePrev=s,t.allowSlideNext=o}function ce(){var e=this,t=e.$wrapperEl,i=e.params,n=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}function pe(e){var t=this;if(!(ze.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){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 he(){var e=this;ze.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}function fe(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"===(void 0===e?"undefined":a(e))&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&ze.observer||t.update()}function ve(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var s=r+1;if("object"===(void 0===e?"undefined":a(e))&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&n.prepend(e[o]);s=r+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&ze.observer||t.update(),t.slideTo(s,0,!1)}function me(e,t){var i=this,n=i.$wrapperEl,r=i.params,s=i.activeIndex,o=s;r.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+r.slideClass));var l=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=l)return void i.appendSlide(t);for(var u=o>e?o+1:o,d=[],c=l-1;c>=e;c-=1){var p=i.slides.eq(c);p.remove(),d.unshift(p)}if("object"===(void 0===t?"undefined":a(t))&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&n.append(t[h]);u=o>e?o+t.length:o}else n.append(t);for(var f=0;f<d.length;f+=1)n.append(d[f]);r.loop&&i.loopCreate(),r.observer&&ze.observer||i.update(),r.loop?i.slideTo(u+i.loopedSlides,0,!1):i.slideTo(u,0,!1)}function ge(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex,s=r;i.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var o,l=s;if("object"===(void 0===e?"undefined":a(e))&&"length"in e){for(var u=0;u<e.length;u+=1)o=e[u],t.slides[o]&&t.slides.eq(o).remove(),o<l&&(l-=1);l=Math.max(l,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<l&&(l-=1),l=Math.max(l,0);i.loop&&t.loopCreate(),i.observer&&ze.observer||t.update(),i.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function ye(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function be(t){var i=this,n=i.touchEventsData,r=i.params,a=i.touches;if(!i.animating||!r.preventInteractionOnTransition){var s=t;if(s.originalEvent&&(s=s.originalEvent),n.isTouchEvent="touchstart"===s.type,(n.isTouchEvent||!("which"in s)||3!==s.which)&&!(!n.isTouchEvent&&"button"in s&&s.button>0||n.isTouched&&n.isMoved)){if(r.noSwiping&&e(s.target).closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])return void(i.allowClick=!0);if(!r.swipeHandler||e(s).closest(r.swipeHandler)[0]){a.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,a.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var o=a.currentX,l=a.currentY,u=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,d=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!u||!(o<=d||o>=Le.screen.width-d)){if(Be.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=o,a.startY=l,n.touchStartTime=Be.now(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==s.type){var c=!0;e(s.target).is(n.formElements)&&(c=!1),De.activeElement&&e(De.activeElement).is(n.formElements)&&De.activeElement!==s.target&&De.activeElement.blur();var p=c&&i.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||p)&&s.preventDefault()}i.emit("touchStart",s)}}}}}function we(t){var i=this,n=i.touchEventsData,r=i.params,a=i.touches,s=i.rtlTranslate,o=t;if(o.originalEvent&&(o=o.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",o));if(!n.isTouchEvent||"mousemove"!==o.type){var l="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,u="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY;if(o.preventedByNestedSwiper)return a.startX=l,void(a.startY=u);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(Be.extend(a,{startX:l,startY:u,currentX:l,currentY:u}),n.touchStartTime=Be.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<a.startY&&i.translate<=i.maxTranslate()||u>a.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(l<a.startX&&i.translate<=i.maxTranslate()||l>a.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&De.activeElement&&o.target===De.activeElement&&e(o.target).is(n.formElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){a.currentX=l,a.currentY=u;var d=a.currentX-a.startX,c=a.currentY-a.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(c,2))<i.params.threshold)){if(void 0===n.isScrolling){var p;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:d*d+c*c>=25&&(p=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,n.isScrolling=i.isHorizontal()?p>r.touchAngle:90-p>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",o),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(n.startMoving){i.allowClick=!1,o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation(),n.isMoved||(r.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",o)),i.emit("sliderMove",o),n.isMoved=!0;var h=i.isHorizontal()?d:c;a.diff=h,h*=r.touchRatio,s&&(h=-h),i.swipeDirection=h>0?"prev":"next",n.currentTranslate=h+n.startTranslate;var f=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),h>0&&n.currentTranslate>i.minTranslate()?(f=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+n.startTranslate+h,v))):h<0&&n.currentTranslate<i.maxTranslate()&&(f=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-n.startTranslate-h,v))),f&&(o.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(h)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:a[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:a[i.isHorizontal()?"currentX":"currentY"],time:Be.now()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}}}}}function Te(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,a=t.rtlTranslate,s=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=Be.now(),c=d-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),c<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=Be.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),c<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",u))),i.lastClickTime=Be.now(),Be.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);i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;var p;if(p=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var h=i.velocities.pop(),f=i.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(m>150||Be.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var g=1e3*n.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var w,T,_=!1,S=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(b<t.maxTranslate())n.freeModeMomentumBounce?(b+t.maxTranslate()<-S&&(b=t.maxTranslate()-S),w=t.maxTranslate(),_=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(b>t.minTranslate())n.freeModeMomentumBounce?(b-t.minTranslate()>S&&(b=t.minTranslate()+S),w=t.minTranslate(),_=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(n.freeModeSticky){for(var x,E=0;E<l.length;E+=1)if(l[E]>-b){x=E;break}b=Math.abs(l[x]-b)<Math.abs(l[x-1]-b)||"next"===t.swipeDirection?l[x]:l[x-1],b=-b}if(T&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&_?(t.updateProgress(w),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(w),s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(b),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();return void((!n.freeModeMomentum||c>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var k=0,C=t.slidesSizesGrid[0],O=0;O<o.length;O+=n.slidesPerGroup)void 0!==o[O+n.slidesPerGroup]?p>=o[O]&&p<o[O+n.slidesPerGroup]&&(k=O,C=o[O+n.slidesPerGroup]-o[O]):p>=o[O]&&(k=O,C=o[o.length-1]-o[o.length-2]);var P=(p-o[k])/C;if(c>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(P>=n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(P>1-n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}function _e(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=e.allowSlideNext,r=e.allowSlidePrev,a=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!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=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function Se(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function xe(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl;e.onTouchStart=be.bind(e),e.onTouchMove=we.bind(e),e.onTouchEnd=Te.bind(e),e.onClick=Se.bind(e);var a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(ze.touch||!ze.pointerEvents&&!ze.prefixedPointerEvents){if(ze.touch){var o=!("touchstart"!==i.start||!ze.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(i.start,e.onTouchStart,o),a.addEventListener(i.move,e.onTouchMove,ze.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!Ke.ios&&!Ke.android||t.simulateTouch&&!ze.touch&&Ke.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),De.addEventListener("mousemove",e.onTouchMove,s),De.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(i.start,e.onTouchStart,!1),De.addEventListener(i.move,e.onTouchMove,s),De.addEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(Ke.ios||Ke.android?"resize orientationchange observerUpdate":"resize observerUpdate",_e,!0)}function Ee(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl,a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(ze.touch||!ze.pointerEvents&&!ze.prefixedPointerEvents){if(ze.touch){var o=!("onTouchStart"!==i.start||!ze.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(i.start,e.onTouchStart,o),a.removeEventListener(i.move,e.onTouchMove,s),a.removeEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!Ke.ios&&!Ke.android||t.simulateTouch&&!ze.touch&&Ke.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),De.removeEventListener("mousemove",e.onTouchMove,s),De.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(i.start,e.onTouchStart,!1),De.removeEventListener(i.move,e.onTouchMove,s),De.removeEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(Ke.ios||Ke.android?"resize orientationchange observerUpdate":"resize observerUpdate",_e)}function ke(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides;void 0===n&&(n=0);var r=e.params,a=r.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var s=e.getBreakpoint(a);if(s&&e.currentBreakpoint!==s){var o=s in a?a[s]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(e){var t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});var l=o||e.originalParams,u=l.direction&&l.direction!==r.direction,d=r.loop&&(l.slidesPerView!==r.slidesPerView||u);u&&i&&e.changeDirection(),Be.extend(e.params,l),Be.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,d&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}}}function Ce(e){var t=this;if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var a=n[r];t.params.breakpointsInverse?a<=Le.innerWidth&&(i=a):a>=Le.innerWidth&&!i&&(i=a)}return i||"max"}}function Oe(){var e=this,t=e.classNames,i=e.params,n=e.rtl,r=e.$el,a=[];a.push("initialized"),a.push(i.direction),i.freeMode&&a.push("free-mode"),ze.flexbox||a.push("no-flexbox"),i.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),i.slidesPerColumn>1&&a.push("multirow"),Ke.android&&a.push("android"),Ke.ios&&a.push("ios"),(Ue.isIE||Ue.isEdge)&&(ze.pointerEvents||ze.prefixedPointerEvents)&&a.push("wp8-"+i.direction),a.forEach(function(e){t.push(i.containerModifierClass+e)}),r.addClass(t.join(" "))}function Pe(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}function je(e,t,i,n,r,a){function s(){a&&a()}var o;e.complete&&r?s():t?(o=new Le.Image,o.onload=s,o.onerror=s,n&&(o.sizes=n),i&&(o.srcset=i),t&&(o.src=t)):s()}function Ie(){function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}function Ae(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}function Me(){var e="onwheel"in De;if(!e){var t=De.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&De.implementation&&De.implementation.hasFeature&&!0!==De.implementation.hasFeature("","")&&(e=De.implementation.hasFeature("Events.wheel","3.0")),e}var De="undefined"==typeof document?{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[]}}},location:{hash:""}}:document,Le="undefined"==typeof window?{document:De,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,Ne=function(e){for(var t=this,i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this};e.fn=Ne.prototype,e.Class=Ne,e.Dom7=Ne;var Re={addClass:i,removeClass:n,hasClass:r,toggleClass:s,attr:o,removeAttr:l,data:u,transform:d,transition:c,on:p,off:h,trigger:f,transitionEnd:v,outerWidth:m,outerHeight:g,offset:y,css:w,each:T,html:_,text:S,is:x,index:E,eq:k,append:C,prepend:O,next:P,nextAll:j,prev:I,prevAll:A,parent:M,parents:D,closest:L,find:N,children:R,remove:B,add:z,styles:b};Object.keys(Re).forEach(function(t){e.fn[t]=e.fn[t]||Re[t]});var Be={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){void 0===t&&(t="x");var i,n,r,a=Le.getComputedStyle(e,null);return Le.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new Le.WebKitCSSMatrix("none"===n?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(n=Le.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=Le.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(e){var t,i,n,r,a={},s=e||Le.location.href;if("string"==typeof s&&s.length)for(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"",i=s.split("&").filter(function(e){return""!==e}),r=i.length,t=0;t<r;t+=1)n=i[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return a},isObject:function(e){return"object"===(void 0===e?"undefined":a(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),n=1;n<e.length;n+=1){var r=e[n];if(void 0!==r&&null!==r)for(var a=Object.keys(Object(r)),s=0,o=a.length;s<o;s+=1){var l=a[s],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(Be.isObject(i[l])&&Be.isObject(r[l])?Be.extend(i[l],r[l]):!Be.isObject(i[l])&&Be.isObject(r[l])?(i[l]={},Be.extend(i[l],r[l])):i[l]=r[l])}}return i}},ze=function(){var e=De.createElement("div");return{touch:Le.Modernizr&&!0===Le.Modernizr.touch||function(){return!!(Le.navigator.maxTouchPoints>0||"ontouchstart"in Le||Le.DocumentTouch&&De instanceof Le.DocumentTouch)}(),pointerEvents:!!(Le.navigator.pointerEnabled||Le.PointerEvent||"maxTouchPoints"in Le.navigator&&Le.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Le.navigator.msPointerEnabled,transition:function(){var t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:Le.Modernizr&&!0===Le.Modernizr.csstransforms3d||function(){var t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<i.length;n+=1)if(i[n]in t)return!0;return!1}(),observer:function(){return"MutationObserver"in Le||"WebkitMutationObserver"in Le}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});Le.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in Le}()}}(),Ue=function(){return{isIE:!!Le.navigator.userAgent.match(/Trident/g)||!!Le.navigator.userAgent.match(/MSIE/g),isEdge:!!Le.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=Le.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Le.navigator.userAgent)}}(),Fe=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])})},He={components:{configurable:!0}};Fe.prototype.on=function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n},Fe.prototype.once=function(e,t,i){function n(){for(var i=[],a=arguments.length;a--;)i[a]=arguments[a];t.apply(r,i),r.off(e,n),n.f7proxy&&delete n.f7proxy}var r=this;return"function"!=typeof t?r:(n.f7proxy=t,r.on(e,n,i))},Fe.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach(function(n,r){(n===t||n.f7proxy&&n.f7proxy===t)&&i.eventsListeners[e].splice(r,1)})}),i):i},Fe.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i=this;if(!i.eventsListeners)return i;var n,r,a;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=i):(n=e[0].events,r=e[0].data,a=e[0].context||i),(Array.isArray(n)?n:n.split(" ")).forEach(function(e){if(i.eventsListeners&&i.eventsListeners[e]){var t=[];i.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(a,r)})}}),i},Fe.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&Be.extend(e,n.params)})},Fe.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})},He.components.set=function(e){var t=this;t.use&&t.use(e)},Fe.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var r=e.name||Object.keys(n.prototype.modules).length+"_"+Be.now();return n.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach(function(t){n.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){n[t]=e.static[t]}),e.install&&e.install.apply(n,t),n},Fe.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;return Array.isArray(e)?(e.forEach(function(e){return n.installModule(e)}),n):n.installModule.apply(n,[e].concat(t))},Object.defineProperties(Fe,He);var Ve={updateSize:U,updateSlides:F,updateAutoHeight:H,updateSlidesOffset:V,updateSlidesProgress:q,updateProgress:G,updateSlidesClasses:W,updateActiveIndex:X,updateClickedSlide:$},qe={getTranslate:Y,setTranslate:K,minTranslate:Q,maxTranslate:J},Ge={setTransition:Z,transitionStart:ee,transitionEnd:te},We={slideTo:ie,slideToLoop:ne,slideNext:re,slidePrev:ae,slideReset:se,slideToClosest:oe,slideToClickedSlide:le},Xe={loopCreate:ue,loopFix:de,loopDestroy:ce},$e={setGrabCursor:pe,unsetGrabCursor:he},Ye={appendSlide:fe,prependSlide:ve,addSlide:me,removeSlide:ge,removeAllSlides:ye},Ke=function(){var e=Le.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Le.cordova||Le.phonegap,phonegap:Le.cordova||Le.phonegap},i=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(t.os="windows",t.osVersion=i[2],t.windows=!0),n&&!i&&(t.os="android",t.osVersion=n[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||s||a)&&(t.os="ios",t.ios=!0),s&&!a&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),r&&(t.osVersion=r[2].replace(/_/g,"."),t.ipad=!0),a&&(t.osVersion=a[3]?a[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||r||a)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=De.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(a||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=Le.devicePixelRatio||1,t}(),Qe={attachEvents:xe,detachEvents:Ee},Je={setBreakpoint:ke,getBreakpoint:Ce},Ze={addClasses:Oe,removeClasses:Pe},et={loadImage:je,preloadImages:Ie},tt={checkOverflow:Ae},it={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,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,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!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:!0,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},nt={update:Ve,translate:qe,transition:Ge,slide:We,loop:Xe,grabCursor:$e,manipulation:Ye,events:Qe,breakpoints:Je,checkOverflow:tt,classes:Ze,images:et},rt={},at=function(t){function i(){for(var n,r=[],s=arguments.length;s--;)r[s]=arguments[s];var o,l;1===r.length&&r[0].constructor&&r[0].constructor===Object?l=r[0]:(n=r,o=n[0],l=n[1]),l||(l={}),l=Be.extend({},l),o&&!l.el&&(l.el=o),t.call(this,l),Object.keys(nt).forEach(function(e){Object.keys(nt[e]).forEach(function(t){i.prototype[t]||(i.prototype[t]=nt[e][t])})});var u=this;void 0===u.modules&&(u.modules={}),Object.keys(u.modules).forEach(function(e){var t=u.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!==(void 0===n?"undefined":a(n))||null===n)return;if(!(i in l&&"enabled"in n))return;!0===l[i]&&(l[i]={enabled:!0}),"object"!==a(l[i])||"enabled"in l[i]||(l[i].enabled=!0),l[i]||(l[i]={enabled:!1})}});var d=Be.extend({},it);u.useModulesParams(d),u.params=Be.extend({},d,rt,l),u.originalParams=Be.extend({},u.params),u.passedParams=Be.extend({},l),u.$=e;var c=e(u.params.el);if(o=c[0]){if(c.length>1){var p=[];return c.each(function(e,t){var n=Be.extend({},l,{el:t});p.push(new i(n))}),p}o.swiper=u,c.data("swiper",u);var h=c.children("."+u.params.wrapperClass);return Be.extend(u,{$el:c,el:o,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:e(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===u.params.direction},isVertical:function(){return"vertical"===u.params.direction},rtl:"rtl"===o.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===u.params.direction&&("rtl"===o.dir.toLowerCase()||"rtl"===c.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:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return ze.pointerEvents?t=["pointerdown","pointermove","pointerup"]:ze.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEventsTouch={start:e[0],move:e[1],end:e[2]},u.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},ze.touch||!u.params.simulateTouch?u.touchEventsTouch:u.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",lastClickTime:Be.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.params.init&&u.init(),u}}t&&(i.__proto__=t),i.prototype=Object.create(t&&t.prototype),i.prototype.constructor=i;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return i.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,r=e.size,a=e.activeIndex,s=1;if(t.centeredSlides){for(var o,l=i[a].swiperSlideSize,u=a+1;u<i.length;u+=1)i[u]&&!o&&(l+=i[u].swiperSlideSize,s+=1,l>r&&(o=!0));for(var d=a-1;d>=0;d-=1)i[d]&&!o&&(l+=i[d].swiperSlideSize,s+=1,l>r&&(o=!0))}else for(var c=a+1;c<i.length;c+=1)n[c]-n[a]<r&&(s+=1);return s},i.prototype.update=function(){function e(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var i=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}},i.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e?i:(i.$el.removeClass(""+i.params.containerModifierClass+n+" wp8-"+n).addClass(""+i.params.containerModifierClass+e),(Ue.isIE||Ue.isEdge)&&(ze.pointerEvents||ze.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+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)},i.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"))},i.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,n=i.params,r=i.$el,a=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),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),Be.deleteProps(i)),i.destroyed=!0,null)},i.extendDefaults=function(e){Be.extend(rt,e)},n.extendedDefaults.get=function(){return rt},n.defaults.get=function(){return it},n.Class.get=function(){return t},n.$.get=function(){return e},Object.defineProperties(i,n),i}(Fe),st={name:"device",proto:{device:Ke},static:{device:Ke}},ot={name:"support",proto:{support:ze},static:{support:ze}},lt={name:"browser",proto:{browser:Ue},static:{browser:Ue}},ut={name:"resize",create:function(){var e=this;Be.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;Le.addEventListener("resize",e.resize.resizeHandler),Le.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;Le.removeEventListener("resize",e.resize.resizeHandler),Le.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},dt={func:Le.MutationObserver||Le.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,n=dt.func,r=new n(function(e){if(1===e.length)return void i.emit("observerUpdate",e[0]);var t=function(){i.emit("observerUpdate",e[0])};Le.requestAnimationFrame?Le.requestAnimationFrame(t):Le.setTimeout(t,0)});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(r)},init:function(){var e=this;if(ze.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=[]}},ct={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;Be.extend(e,{observer:{init:dt.init.bind(e),attach:dt.attach.bind(e),destroy:dt.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},pt={update:function(e){function t(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,n=i.params,r=n.slidesPerView,a=n.slidesPerGroup,s=n.centeredSlides,o=i.params.virtual,l=o.addSlidesBefore,u=o.addSlidesAfter,d=i.virtual,c=d.from,p=d.to,h=d.slides,f=d.slidesGrid,v=d.renderSlide,m=d.offset;i.updateActiveIndex();var g,y=i.activeIndex||0;g=i.rtlTranslate?"right":i.isHorizontal()?"left":"top";var b,w;s?(b=Math.floor(r/2)+a+l,w=Math.floor(r/2)+a+u):(b=r+(a-1)+l,w=a+u);var T=Math.max((y||0)-w,0),_=Math.min((y||0)+b,h.length-1),S=(i.slidesGrid[T]||0)-(i.slidesGrid[0]||0);if(Be.extend(i.virtual,{from:T,to:_,offset:S,slidesGrid:i.slidesGrid}),c===T&&p===_&&!e)return i.slidesGrid!==f&&S!==m&&i.slides.css(g,S+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:S,from:T,to:_,slides:function(){for(var e=[],t=T;t<=_;t+=1)e.push(h[t]);return e}()}),void t();var x=[],E=[];if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var k=c;k<=p;k+=1)(k<T||k>_)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var C=0;C<h.length;C+=1)C>=T&&C<=_&&(void 0===p||e?E.push(C):(C>p&&E.push(C),C<c&&x.push(C)));E.forEach(function(e){i.$wrapperEl.append(v(h[e],e))}),x.sort(function(e,t){return t-e}).forEach(function(e){i.$wrapperEl.prepend(v(h[e],e))}),i.$wrapperEl.children(".swiper-slide").css(g,S+"px"),t()},renderSlide:function(t,i){var n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[i])return n.virtual.cache[i];var a=e(r.renderSlide?r.renderSlide.call(n,t,i):'<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+i+'">'+t+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",i),r.cache&&(n.virtual.cache[i]=a),a},appendSlide:function(e){var t=this;if("object"===(void 0===e?"undefined":a(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,n=i+1,r=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);n=i+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var s=t.virtual.cache,o={};Object.keys(s).forEach(function(e){o[parseInt(e,10)+r]=s[e]}),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(n,0)},removeSlide:function(e){var t=this;if(void 0!==e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)t.virtual.slides.splice(e[n],1),t.params.virtual.cache&&delete t.virtual.cache[e[n]],e[n]<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)}},ht={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;Be.extend(e,{virtual:{update:pt.update.bind(e),appendSlide:pt.appendSlide.bind(e),prependSlide:pt.prependSlide.bind(e),removeSlide:pt.removeSlide.bind(e),removeAllSlides:pt.removeAllSlides.bind(e),renderSlide:pt.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};Be.extend(e.params,t),Be.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},ft={handle:function(e){var t=this,i=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r||34===r))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||De.activeElement&&De.activeElement.nodeName&&("input"===De.activeElement.nodeName.toLowerCase()||"textarea"===De.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var a=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var s=Le.innerWidth,o=Le.innerHeight,l=t.$el.offset();i&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<u.length;d+=1){var c=u[d];c[0]>=0&&c[0]<=s&&c[1]>=0&&c[1]<=o&&(a=!0)}if(!a)return}t.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||i)&&(33!==r&&37!==r||!i)||t.slideNext(),(33!==r&&37!==r||i)&&(34!==r&&39!==r||!i)||t.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||t.slideNext(),33!==r&&38!==r||t.slidePrev()),t.emit("keyPress",r)}},enable:function(){var t=this;t.keyboard.enabled||(e(De).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(e(De).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},vt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;Be.extend(e,{keyboard:{enabled:!1,enable:ft.enable.bind(e),disable:ft.disable.bind(e),handle:ft.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()}}},mt={lastScrollTime:Be.now(),event:function(){return Le.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Me()?"wheel":"mousewheel"}(),normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var r=0,a=i.rtlTranslate?-1:1,s=mt.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===r)return!0;if(n.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var o=i.getTranslate()+r*n.sensitivity,l=i.isBeginning,u=i.isEnd;if(o>=i.minTranslate()&&(o=i.minTranslate()),o<=i.maxTranslate()&&(o=i.maxTranslate()),i.setTransition(0),i.setTranslate(o),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=Be.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),o===i.minTranslate()||o===i.maxTranslate())return!0}else{if(Be.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",t);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",t);i.mousewheel.lastScrollTime=(new Le.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var t=this;if(!mt.event)return!1;if(t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(mt.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!mt.event)return!1;if(!t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.off(mt.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},gt={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;Be.extend(e,{mousewheel:{enabled:!1,enable:mt.enable.bind(e),disable:mt.disable.bind(e),handle:mt.handle.bind(e),handleMouseEnter:mt.handleMouseEnter.bind(e),handleMouseLeave:mt.handleMouseLeave.bind(e),lastScrollTime:Be.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},yt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=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)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[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 t=this,i=t.params.navigation;if(i.nextEl||i.prevEl){var n,r;i.nextEl&&(n=e(i.nextEl),t.params.uniqueNavElements&&"string"==typeof i.nextEl&&n.length>1&&1===t.$el.find(i.nextEl).length&&(n=t.$el.find(i.nextEl))),i.prevEl&&(r=e(i.prevEl),t.params.uniqueNavElements&&"string"==typeof i.prevEl&&r.length>1&&1===t.$el.find(i.prevEl).length&&(r=t.$el.find(i.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),r&&r.length>0&&r.on("click",t.navigation.onPrevClick),Be.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]})}},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,n=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}},bt={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;Be.extend(e,{navigation:{init:yt.init.bind(e),update:yt.update.bind(e),destroy:yt.destroy.bind(e),onNextClick:yt.onNextClick.bind(e),onPrevClick:yt.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var i=this,n=i.navigation,r=n.$nextEl,a=n.$prevEl;if(i.params.navigation.hideOnClick&&!e(t.target).is(a)&&!e(t.target).is(r)){var s;r?s=r.hasClass(i.params.navigation.hiddenClass):a&&(s=a.hasClass(i.params.navigation.hiddenClass)),!0===s?i.emit("navigationShow",i):i.emit("navigationHide",i),r&&r.toggleClass(i.params.navigation.hiddenClass),a&&a.toggleClass(i.params.navigation.hiddenClass)}}}},wt={update:function(){var t=this,i=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var r,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el,o=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),r>a-1-2*t.loopedSlides&&(r-=a-2*t.loopedSlides),r>o-1&&(r-=o),r<0&&"bullets"!==t.params.paginationType&&(r=o+r)):r=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var l,u,d,c=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=c.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=r-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),l=r-t.pagination.dynamicBulletIndex,u=l+(Math.min(c.length,n.dynamicMainBullets)-1),d=(u+l)/2),c.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),s.length>1)c.each(function(t,i){var a=e(i),s=a.index();s===r&&a.addClass(n.bulletActiveClass),n.dynamicBullets&&(s>=l&&s<=u&&a.addClass(n.bulletActiveClass+"-main"),s===l&&a.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),s===u&&a.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))});else{if(c.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=c.eq(l),h=c.eq(u),f=l;f<=u;f+=1)c.eq(f).addClass(n.bulletActiveClass+"-main");p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),h.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var v=Math.min(c.length,n.dynamicMainBullets+4),m=(t.pagination.bulletSize*v-t.pagination.bulletSize)/2-d*t.pagination.bulletSize,g=i?"right":"left";c.css(t.isHorizontal()?g:"top",m+"px")}}if("fraction"===n.type&&(s.find("."+n.currentClass).text(n.formatFractionCurrent(r+1)),s.find("."+n.totalClass).text(n.formatFractionTotal(o))),"progressbar"===n.type){var y;y=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var b=(r+1)/o,w=1,T=1;"horizontal"===y?w=b:T=b,s.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+T+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(t,r+1,o)),t.emit("paginationRender",t,s[0])):t.emit("paginationUpdate",t,s[0]),s[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.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,n=e.pagination.$el,r="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<a;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(r),e.pagination.bullets=n.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>',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var t=this,i=t.params.pagination;if(i.el){var n=e(i.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===t.$el.find(i.el).length&&(n=t.$el.find(i.el)),"bullets"===i.type&&i.clickable&&n.addClass(i.clickableClass),n.addClass(i.modifierClass+i.type),"bullets"===i.type&&i.dynamicBullets&&(n.addClass(""+i.modifierClass+i.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&n.addClass(i.progressbarOppositeClass),i.clickable&&n.on("click","."+i.bulletClass,function(i){i.preventDefault();var n=e(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),Be.extend(t.pagination,{$el:n,el:n[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)}}},Tt={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;Be.extend(e,{pagination:{init:wt.init.bind(e),render:wt.render.bind(e),update:wt.update.bind(e),destroy:wt.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?e.pagination.update():void 0===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(){this.pagination.destroy()},click:function(t){var i=this;if(i.params.pagination.el&&i.params.pagination.hideOnClick&&i.pagination.$el.length>0&&!e(t.target).hasClass(i.params.pagination.bulletClass)){!0===i.pagination.$el.hasClass(i.params.pagination.hiddenClass)?i.emit("paginationShow",i):i.emit("paginationHide",i),i.pagination.$el.toggleClass(i.params.pagination.hiddenClass)}}}},_t={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,r=t.dragSize,a=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,u=r,d=(a-r)*n;i?(d=-d,d>0?(u=r-d,d=0):-d+r>a&&(u=a+d)):d<0?(u=r+d,d=0):d+r>a&&(u=a-d),e.isHorizontal()?(ze.transforms3d?s.transform("translate3d("+d+"px, 0, 0)"):s.transform("translateX("+d+"px)"),s[0].style.width=u+"px"):(ze.transforms3d?s.transform("translate3d(0px, "+d+"px, 0)"):s.transform("translateY("+d+"px)"),s[0].style.height=u+"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,n=t.$el;i[0].style.width="",i[0].style.height="";var r,a=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,s=e.size/e.virtualSize,o=s*(a/e.size);r="auto"===e.params.scrollbar.dragSize?a*s:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",n[0].style.display=s>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),Be.extend(t,{trackSize:a,divider:s,moveDivider:o,dragSize:r}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,i=this,n=i.scrollbar,r=i.rtlTranslate,a=n.$el,s=n.dragSize,o=n.trackSize,l=n.dragStartPos;t=(n.getPointerPosition(e)-a.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:s/2))/(o-s),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var u=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(u),i.setTranslate(u),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=t.$wrapperEl,a=n.$el,s=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),i.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,n=t.$wrapperEl,r=i.$el,a=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),n.transition(0),r.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=n.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=Be.nextTick(function(){r.css("opacity",0),r.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,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};ze.touch?(s.addEventListener(i.start,e.scrollbar.onDragStart,o),s.addEventListener(i.move,e.scrollbar.onDragMove,o),s.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.addEventListener(n.start,e.scrollbar.onDragStart,o),De.addEventListener(n.move,e.scrollbar.onDragMove,o),De.addEventListener(n.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};ze.touch?(s.removeEventListener(i.start,e.scrollbar.onDragStart,o),s.removeEventListener(i.move,e.scrollbar.onDragMove,o),s.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.removeEventListener(n.start,e.scrollbar.onDragStart,o),De.removeEventListener(n.move,e.scrollbar.onDragMove,o),De.removeEventListener(n.end,e.scrollbar.onDragEnd,l))}},init:function(){var t=this;if(t.params.scrollbar.el){var i=t.scrollbar,n=t.$el,r=t.params.scrollbar,a=e(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&a.length>1&&1===n.find(r.el).length&&(a=n.find(r.el));var s=a.find("."+t.params.scrollbar.dragClass);0===s.length&&(s=e('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(s)),Be.extend(i,{$el:a,el:a[0],$dragEl:s,dragEl:s[0]}),r.draggable&&i.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},St={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;Be.extend(e,{scrollbar:{init:_t.init.bind(e),destroy:_t.destroy.bind(e),updateSize:_t.updateSize.bind(e),setTranslate:_t.setTranslate.bind(e),setTransition:_t.setTransition.bind(e),enableDraggable:_t.enableDraggable.bind(e),disableDraggable:_t.disableDraggable.bind(e),setDragPosition:_t.setDragPosition.bind(e),getPointerPosition:_t.getPointerPosition.bind(e),onDragStart:_t.onDragStart.bind(e),onDragMove:_t.onDragMove.bind(e),onDragEnd:_t.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(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},xt={setTransform:function(t,i){var n=this,r=n.rtl,a=e(t),s=r?-1:1,o=a.attr("data-swiper-parallax")||"0",l=a.attr("data-swiper-parallax-x"),u=a.attr("data-swiper-parallax-y"),d=a.attr("data-swiper-parallax-scale"),c=a.attr("data-swiper-parallax-opacity");if(l||u?(l=l||"0",u=u||"0"):n.isHorizontal()?(l=o,u="0"):(u=o,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*i*s+"%":l*i*s+"px",u=u.indexOf("%")>=0?parseInt(u,10)*i+"%":u*i+"px",void 0!==c&&null!==c){var p=c-(c-1)*(1-Math.abs(i));a[0].style.opacity=p}if(void 0===d||null===d)a.transform("translate3d("+l+", "+u+", 0px)");else{var h=d-(d-1)*(1-Math.abs(i));a.transform("translate3d("+l+", "+u+", 0px) scale("+h+")")}},setTranslate:function(){var t=this,i=t.$el,n=t.slides,r=t.progress,a=t.snapGrid;i.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,r)}),n.each(function(i,n){var s=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(i/2)-r*(a.length-1)),s=Math.min(Math.max(s,-1),1),e(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,s)})})},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(i,n){var r=e(n),a=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),r.transition(a)})}},Et={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;Be.extend(e,{parallax:{setTransform:xt.setTransform.bind(e),setTranslate:xt.setTranslate.bind(e),setTransition:xt.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)}}},kt={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(t){var i=this,n=i.params.zoom,r=i.zoom,a=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!ze.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.fakeGestureTouched=!0,a.scaleStart=kt.getDistanceBetweenTouches(t)}if(!(a.$slideEl&&a.$slideEl.length||(a.$slideEl=e(t.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=i.slides.eq(i.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+n.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==a.$imageWrapEl.length)))return void(a.$imageEl=void 0);a.$imageEl.transition(0),i.zoom.isScaling=!0},onGestureChange:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!ze.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=kt.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(ze.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!ze.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Ke.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,n=i.gesture,r=i.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(Ke.android&&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,n=i.gesture,r=i.image,a=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=Be.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=Be.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*i.scale,o=r.height*i.scale;if(!(s<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(n.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.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)),a.prevPositionX||(a.prevPositionX=r.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=r.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(r.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(r.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(r.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(r.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=r.touchesCurrent.x,a.prevPositionY=r.touchesCurrent.y,a.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,n=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var a=300,s=300,o=r.x*a,l=n.currentX+o,u=r.y*s,d=n.currentY+u;0!==r.x&&(a=Math.abs((l-n.currentX)/r.x)),0!==r.y&&(s=Math.abs((d-n.currentY)/r.y));var c=Math.max(a,s);n.currentX=l,n.currentY=d;var p=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(i.slideWidth/2-p/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),i.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl.transform("translate3d(0,0,0) scale(1)"),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(t){var i=this,n=i.zoom,r=i.params.zoom,a=n.gesture,s=n.image;if(a.$slideEl||(a.$slideEl=i.clickedSlide?e(i.clickedSlide):i.slides.eq(i.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+r.containerClass)),a.$imageEl&&0!==a.$imageEl.length){a.$slideEl.addClass(""+r.zoomedSlideClass);var o,l,u,d,c,p,h,f,v,m,g,y,b,w,T,_,S,x;void 0===s.touchesStart.x&&t?(o="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,l="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(o=s.touchesStart.x,l=s.touchesStart.y),n.scale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,t?(S=a.$slideEl[0].offsetWidth,x=a.$slideEl[0].offsetHeight,u=a.$slideEl.offset().left,d=a.$slideEl.offset().top,c=u+S/2-o,p=d+x/2-l,v=a.$imageEl[0].offsetWidth,m=a.$imageEl[0].offsetHeight,g=v*n.scale,y=m*n.scale,b=Math.min(S/2-g/2,0),w=Math.min(x/2-y/2,0),T=-b,_=-w,h=c*n.scale,f=p*n.scale,h<b&&(h=b),h>T&&(h=T),f<w&&(f=w),f>_&&(f=_)):(h=0,f=0),a.$imageWrapEl.transition(300).transform("translate3d("+h+"px, "+f+"px,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+n.scale+")")}},out:function(){var t=this,i=t.zoom,n=t.params.zoom,r=i.gesture;r.$slideEl||(r.$slideEl=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(i.scale=1,i.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(""+n.zoomedSlideClass),r.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!ze.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};ze.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!ze.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};ze.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Ct={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]=kt[i].bind(e)}),Be.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var n=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,n,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.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()}}},Ot={loadInSlide:function(t,i){void 0===i&&(i=!0);var n=this,r=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled,s=a?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),o=s.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!s.hasClass(r.elementClass)||s.hasClass(r.loadedClass)||s.hasClass(r.loadingClass)||(o=o.add(s[0])),0!==o.length&&o.each(function(t,a){var o=e(a);o.addClass(r.loadingClass);var l=o.attr("data-background"),u=o.attr("data-src"),d=o.attr("data-srcset"),c=o.attr("data-sizes");n.loadImage(o[0],u||l,d,c,!1,function(){if(void 0!==n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(d&&(o.attr("srcset",d),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),u&&(o.attr("src",u),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),s.find("."+r.preloaderClass).remove(),n.params.loop&&i){var e=s.attr("data-swiper-slide-index");if(s.hasClass(n.params.slideDuplicateClass)){var t=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(t.index(),!1)}else{var a=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(a.index(),!1)}}n.emit("lazyImageReady",s[0],o[0])}}),n.emit("lazyImageLoad",s[0],o[0])})}},load:function(){function t(e){if(l){if(r.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function i(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var n=this,r=n.$wrapperEl,a=n.params,s=n.slides,o=n.activeIndex,l=n.virtual&&a.virtual.enabled,u=a.lazy,d=a.slidesPerView;if("auto"===d&&(d=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)r.children("."+a.slideVisibleClass).each(function(t,i){var r=l?e(i).attr("data-swiper-slide-index"):e(i).index();n.lazy.loadInSlide(r)});else if(d>1)for(var c=o;c<o+d;c+=1)t(c)&&n.lazy.loadInSlide(c);else n.lazy.loadInSlide(o);if(u.loadPrevNext)if(d>1||u.loadPrevNextAmount&&u.loadPrevNextAmount>1){for(var p=u.loadPrevNextAmount,h=d,f=Math.min(o+h+Math.max(p,h),s.length),v=Math.max(o-Math.max(h,p),0),m=o+d;m<f;m+=1)t(m)&&n.lazy.loadInSlide(m);for(var g=v;g<o;g+=1)t(g)&&n.lazy.loadInSlide(g)}else{var y=r.children("."+a.slideNextClass);y.length>0&&n.lazy.loadInSlide(i(y));var b=r.children("."+a.slidePrevClass);b.length>0&&n.lazy.loadInSlide(i(b))}}},Pt={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;Be.extend(e,{lazy:{initialImageLoaded:!1,load:Ot.load.bind(e),loadInSlide:Ot.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()}}},jt={LinearSpline:function(e,t){var i=function(){var e,t,i;return function(n,r){for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var n,r;return this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new jt.LinearSpline(t.slidesGrid,e.slidesGrid):new jt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),r=-a.controller.spline.interpolate(-t)),r&&"container"!==a.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),r=(t-a.minTranslate())*n+e.minTranslate()),a.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,a),e.updateActiveIndex(),e.updateSlidesClasses()}var n,r,a=this,s=a.controller.control;if(Array.isArray(s))for(var o=0;o<s.length;o+=1)s[o]!==t&&s[o]instanceof at&&i(s[o]);else s instanceof at&&t!==s&&i(s)},setTransition:function(e,t){function i(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&Be.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){a&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var n,r=this,a=r.controller.control;if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==t&&a[n]instanceof at&&i(a[n]);else a instanceof at&&t!==a&&i(a)}},It={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;Be.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:jt.getInterpolateFunction.bind(e),setTranslate:jt.setTranslate.bind(e),setTransition:jt.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)}}},At={makeElFocusable:function(e){return e.attr("tabIndex","0"),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(t){var i=this,n=i.params.a11y;if(13===t.keyCode){var r=e(t.target);i.navigation&&i.navigation.$nextEl&&r.is(i.navigation.$nextEl)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?i.a11y.notify(n.lastSlideMessage):i.a11y.notify(n.nextSlideMessage)),i.navigation&&i.navigation.$prevEl&&r.is(i.navigation.$prevEl)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?i.a11y.notify(n.firstSlideMessage):i.a11y.notify(n.prevSlideMessage)),i.pagination&&r.is("."+i.params.pagination.bulletClass)&&r[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){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&i.length>0&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(i))}},updatePagination:function(){var t=this,i=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(n,r){var a=e(r);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,i.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,n=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,n.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,n.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=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t,i;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),i&&i.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},Mt={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 t=this;Be.extend(t,{a11y:{liveRegion:e('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(At).forEach(function(e){t.a11y[e]=At[e].bind(t)})},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()}}},Dt={init:function(){var e=this;if(e.params.history){if(!Le.history||!Le.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=Dt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Le.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||Le.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Dt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=Le.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var n=i.slides.eq(t),r=Dt.slugify(n.attr("data-history"));Le.location.pathname.includes(e)||(r=e+"/"+r);var a=Le.history.state;a&&a.value===r||(i.params.history.replaceState?Le.history.replaceState({value:r},null,r):Le.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var r=0,a=n.slides.length;r<a;r+=1){var s=n.slides.eq(r),o=Dt.slugify(s.attr("data-history"));if(o===t&&!s.hasClass(n.params.slideDuplicateClass)){var l=s.index();n.slideTo(l,e,i)}}else n.slideTo(0,e,i)}},Lt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;Be.extend(e,{history:{init:Dt.init.bind(e),setHistory:Dt.setHistory.bind(e),setHistoryPopState:Dt.setHistoryPopState.bind(e),scrollToSlide:Dt.scrollToSlide.bind(e),destroy:Dt.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)}}},Nt={onHashCange:function(){var e=this,t=De.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&Le.history&&Le.history.replaceState)Le.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");De.location.hash=i||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var i=De.location.hash.replace("#","");if(i)for(var n=0,r=t.slides.length;n<r;n+=1){var a=t.slides.eq(n),s=a.attr("data-hash")||a.attr("data-history");if(s===i&&!a.hasClass(t.params.slideDuplicateClass)){var o=a.index();t.slideTo(o,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&e(Le).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){var t=this;t.params.hashNavigation.watchState&&e(Le).off("hashchange",t.hashNavigation.onHashCange)}},Rt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;Be.extend(e,{hashNavigation:{initialized:!1,init:Nt.init.bind(e),destroy:Nt.destroy.bind(e),setHash:Nt.setHash.bind(e),onHashCange:Nt.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()}}},Bt={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=Be.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"))},i)},start:function(){var e=this;return void 0===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&&(void 0!==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())))}},zt={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;Be.extend(e,{autoplay:{running:!1,paused:!1,run:Bt.run.bind(e),start:Bt.start.bind(e),stop:Bt.stop.bind(e),pause:Bt.pause.bind(e),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()},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())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},Ut={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),r=n[0].swiperSlideOffset,a=-r;e.params.virtualTranslate||(a-=e.translate);var s=0;e.isHorizontal()||(s=a,a=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d("+a+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=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)n.trigger(e[i])}})}}},Ft={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;Be.extend(e,{fadeEffect:{setTranslate:Ut.setTranslate.bind(e),setTransition:Ut.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};Be.extend(e.params,t),Be.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)}}},Ht={setTranslate:function(){var t,i=this,n=i.$el,r=i.$wrapperEl,a=i.slides,s=i.width,o=i.height,l=i.rtlTranslate,u=i.size,d=i.params.cubeEffect,c=i.isHorizontal(),p=i.virtual&&i.params.virtual.enabled,h=0;d.shadow&&(c?(t=r.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),r.append(t)),t.css({height:s+"px"})):(t=n.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),n.append(t))));for(var f=0;f<a.length;f+=1){var v=a.eq(f),m=f;p&&(m=parseInt(v.attr("data-swiper-slide-index"),10));var g=90*m,y=Math.floor(g/360);l&&(g=-g,y=Math.floor(-g/360));var b=Math.max(Math.min(v[0].progress,1),-1),w=0,T=0,_=0;m%4==0?(w=4*-y*u,_=0):(m-1)%4==0?(w=0,_=4*-y*u):(m-2)%4==0?(w=u+4*y*u,_=u):(m-3)%4==0&&(w=-u,_=3*u+4*u*y),l&&(w=-w),c||(T=w,w=0);var S="rotateX("+(c?0:-g)+"deg) rotateY("+(c?g:0)+"deg) translate3d("+w+"px, "+T+"px, "+_+"px)";if(b<=1&&b>-1&&(h=90*m+90*b,l&&(h=90*-m-90*b)),v.transform(S),d.slideShadows){var x=c?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=c?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===x.length&&(x=e('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),v.append(x)),0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),v.append(E)),x.length&&(x[0].style.opacity=Math.max(-b,0)),E.length&&(E[0].style.opacity=Math.max(b,0))}}if(r.css({"-webkit-transform-origin":"50% 50% -"+u/2+"px","-moz-transform-origin":"50% 50% -"+u/2+"px","-ms-transform-origin":"50% 50% -"+u/2+"px","transform-origin":"50% 50% -"+u/2+"px"}),d.shadow)if(c)t.transform("translate3d(0px, "+(s/2+d.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var k=Math.abs(h)-90*Math.floor(Math.abs(h)/90),C=1.5-(Math.sin(2*k*Math.PI/360)/2+Math.cos(2*k*Math.PI/360)/2),O=d.shadowScale,P=d.shadowScale/C,j=d.shadowOffset;t.transform("scale3d("+O+", 1, "+P+") translate3d(0px, "+(o/2+j)+"px, "+-o/2/P+"px) rotateX(-90deg)")}var I=Ue.isSafari||Ue.isUiWebView?-u/2:0;r.transform("translate3d(0px,0,"+I+"px) rotateX("+(i.isHorizontal()?0:h)+"deg) rotateY("+(i.isHorizontal()?-h:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el;t.slides.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)}},Vt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;Be.extend(e,{cubeEffect:{setTranslate:Ht.setTranslate.bind(e),setTransition:Ht.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};Be.extend(e.params,t),Be.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 t=this,i=t.slides,n=t.rtlTranslate,r=0;r<i.length;r+=1){var a=i.eq(r),s=a[0].progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(a[0].progress,1),-1));var o=a[0].swiperSlideOffset,l=-180*s,u=l,d=0,c=-o,p=0;if(t.isHorizontal()?n&&(u=-u):(p=c,c=0,d=-u,u=0),a[0].style.zIndex=-Math.abs(Math.round(s))+i.length,t.params.flipEffect.slideShadows){var h=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===f.length&&(f=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),h.length&&(h[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}a.transform("translate3d("+c+"px, "+p+"px, 0px) rotateX("+d+"deg) rotateY("+u+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=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 a=!1;i.eq(n).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},Gt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;Be.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};Be.extend(e.params,t),Be.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)}}},Wt={setTranslate:function(){for(var t=this,i=t.width,n=t.height,r=t.slides,a=t.$wrapperEl,s=t.slidesSizesGrid,o=t.params.coverflowEffect,l=t.isHorizontal(),u=t.translate,d=l?i/2-u:n/2-u,c=l?o.rotate:-o.rotate,p=o.depth,h=0,f=r.length;h<f;h+=1){var v=r.eq(h),m=s[h],g=v[0].swiperSlideOffset,y=(d-g-m/2)/m*o.modifier,b=l?c*y:0,w=l?0:c*y,T=-p*Math.abs(y),_=l?0:o.stretch*y,S=l?o.stretch*y:0;Math.abs(S)<.001&&(S=0),Math.abs(_)<.001&&(_=0),Math.abs(T)<.001&&(T=0),Math.abs(b)<.001&&(b=0),Math.abs(w)<.001&&(w=0);var x="translate3d("+S+"px,"+_+"px,"+T+"px) rotateX("+w+"deg) rotateY("+b+"deg)";if(v.transform(x),v[0].style.zIndex=1-Math.abs(Math.round(y)),o.slideShadows){var E=l?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),k=l?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),v.append(E)),0===k.length&&(k=e('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),v.append(k)),E.length&&(E[0].style.opacity=y>0?y:0),k.length&&(k[0].style.opacity=-y>0?-y:0)}}if(ze.pointerEvents||ze.prefixedPointerEvents){a[0].style.perspectiveOrigin=d+"px 50%"}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Xt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;Be.extend(e,{coverflowEffect:{setTranslate:Wt.setTranslate.bind(e),setTransition:Wt.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)}}},$t={init:function(){var e=this,t=e.params,i=t.thumbs,n=e.constructor;i.swiper instanceof n?(e.thumbs.swiper=i.swiper,Be.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Be.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Be.isObject(i.swiper)&&(e.thumbs.swiper=new n(Be.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 t=this,i=t.thumbs.swiper;if(i){var n=i.clickedIndex,r=i.clickedSlide;if(!(r&&e(r).hasClass(t.params.thumbs.slideThumbActiveClass)||void 0===n||null===n)){var a;if(a=i.params.loop?parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var s=t.activeIndex;t.slides.eq(s).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,s=t.activeIndex);var o=t.slides.eq(s).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),l=t.slides.eq(s).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===o?l:void 0===l?o:l-s<s-o?l:o}t.slideTo(a)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;if(t.realIndex!==i.realIndex){var r,a=i.activeIndex;if(i.params.loop){i.slides.eq(a).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,a=i.activeIndex);var s=i.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();r=void 0===s?o:void 0===o?s:o-a==a-s?a:o-a<a-s?o:s}else r=t.realIndex;i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>a?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>a&&(r=r-n+1),i.slideTo(r,e?0:void 0))}var l=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),i.slides.removeClass(u),i.params.loop||i.params.virtual)for(var d=0;d<l;d+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+d)+'"]').addClass(u);else for(var c=0;c<l;c+=1)i.slides.eq(t.realIndex+c).addClass(u)}}},Yt={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;Be.extend(e,{thumbs:{swiper:null,init:$t.init.bind(e),update:$t.update.bind(e),onThumbClick:$t.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()}}},Kt=[st,ot,lt,ut,ct,ht,vt,gt,bt,Tt,St,Et,Ct,Pt,It,Mt,Lt,Rt,zt,Ft,Vt,Gt,Xt,Yt];return void 0===at.use&&(at.use=at.Class.use,at.installModule=at.Class.installModule),at.use(Kt),at})},function(e,t,i){var n=i(59);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("24ad41d3",n,!0,{})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},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 n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}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},function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(t,i(4))},function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(t,i(4))},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}i.d(t,"a",function(){return s});var r=i(111),a=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),s=function(){function e(){n(this,e)}return a(e,[{key:"getCmsList",value:function(e){return r.a.get(e.url,{})}},{key:"getProductInfo",value:function(e,t){return r.a.postBody(e+"/service-zuul/manage/search/plp/standard",{body:t})}},{key:"getSortProductInfo",value:function(e,t){return r.a.postBody(e+"/service-zuul/manage/search/cms/sort",{body:t})}},{key:"getNavigate",value:function(e){return r.a.get(e.url,{headers:{common:{languageCode:e.language||""}}})}},{key:"dataSaveDecorationPageComponentEvent",value:function(e,t){return r.a.postBody(e+"service-zuul/data/collect/acquisition",{body:t})}},{key:"acquisitionBatch",value:function(e,t){return r.a.postBody(e+"service-zuul/data/collect/acquisitionBatch",{body:t})}}]),e}()},function(e,t,i){function n(e){for(var t=0;t<e.length;t++){var i=e[t],n=d[i.id];if(n){n.refs++;for(var r=0;r<n.parts.length;r++)n.parts[r](i.parts[r]);for(;r<i.parts.length;r++)n.parts.push(a(i.parts[r]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{for(var s=[],r=0;r<i.parts.length;r++)s.push(a(i.parts[r]));d[i.id]={id:i.id,refs:1,parts:s}}}}function r(){var e=document.createElement("style");return e.type="text/css",c.appendChild(e),e}function a(e){var t,i,n=document.querySelector("style["+g+'~="'+e.id+'"]');if(n){if(f)return v;n.parentNode.removeChild(n)}if(y){var a=h++;n=p||(p=r()),t=s.bind(null,n,a,!1),i=s.bind(null,n,a,!0)}else n=r(),t=o.bind(null,n),i=function(){n.parentNode.removeChild(n)};return t(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;t(e=n)}else i()}}function s(e,t,i,n){var r=i?"":n.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var a=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(a,s[t]):e.appendChild(a)}}function o(e,t){var i=t.css,n=t.media,r=t.sourceMap;if(n&&e.setAttribute("media",n),m.ssrId&&e.setAttribute(g,t.id),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var l="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!l)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var u=i(161),d={},c=l&&(document.head||document.getElementsByTagName("head")[0]),p=null,h=0,f=!1,v=function(){},m=null,g="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());e.exports=function(e,t,i,r){f=i,m=r||{};var a=u(e,t);return n(a),function(t){for(var i=[],r=0;r<a.length;r++){var s=a[r],o=d[s.id];o.refs--,i.push(o)}t?(a=u(e,t),n(a)):a=[];for(var r=0;r<i.length;r++){var o=i[r];if(0===o.refs){for(var l=0;l<o.parts.length;l++)o.parts[l]();delete d[o.id]}}}};var b=function(){var e=[];return function(t,i){return e[t]=i,e.filter(Boolean).join("\n")}}()},function(e,t,i){"use strict";var n=i(19);t.a=n.a},function(e,t,i){"use strict";var n=i(10),r=i.n(n),a=i(11),s=(i.n(a),i(6));t.a={name:"picNav",mixins:[s.a],data:function(){return{showNavigation:!1,option:{observer:!0,observeParents:!0,observeSlideChildren:!0},swiperId:Math.round(2e3*Math.random())}},watch:{pageDataObj:{handler:function(){var e=this;this.pageDataObj&&this.pageDataObj.list&&this.pageDataObj.list.length>0&&3===this.pageDataObj.styleType?this.$nextTick(function(){e.swiper?("pc"===e.curSystem?(e.pageDataObj.list.length<=4?(e.option.slidesPerView=4,e.option.slidesPerGroup=4):(e.option.slidesPerView=4.1,e.option.slidesPerGroup=4.1),e.option.navigation={nextEl:".swiper-button-nextp",prevEl:".swiper-button-prevp"}):(e.option.slidesPerView=2.1,e.option.scrollbar={el:".swiper-scrollbar",draggable:!0}),e.swiper.update()):("pc"===e.curSystem?(e.pageDataObj.list.length<=4?e.option.slidesPerView=4:(e.option.slidesPerView=4.1,e.option.slidesPerGroup=4.1),e.option.navigation={nextEl:".swiper-button-nextp",prevEl:".swiper-button-prevp"}):(e.option.slidesPerView=2.1,e.option.scrollbar={el:".swiper-scrollbar",draggable:!0}),e.swiper=new r.a(".swiper-containerpic"+e.swiperId,e.option))}):this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)},deep:!0,immediate:!0}},mounted:function(){},methods:{exposurePost:function(e){this.$emit("exposurePost",e)},changeOption:function(){},navigatorPage:function(e){this.$emit("jumpLink",e)}}}},function(e,t,i){"use strict";t.a={name:"comTitle",props:{maxWidthMobile:{type:Number},curSystem:{type:String},widthShow:{type:String|Number},widthStyle:{type:Object}},data:function(){return{isMobile:!1,isOnresize:document.documentElement.clientWidth,timer:!1,componentWidth:"100%",topWidth:"100%"}},watch:{widthStyle:{handler:function(e,t){if(e)if(2==e.type){if(this.widthShow)return this.topWidth=this.widthShow+"px",void("pc"===this.curSystem?this.componentWidth="100%":this.componentWidth=this.widthStyle.width/2+"px");this.topWidth="100%",this.componentWidth=document.body.offsetWidth<e.width?"100%":e.width+"px"}else this.componentWidth="100%",this.topWidth="100%"},deep:!0,immediate:!0}},mounted:function(){"mobile"===this.curSystem&&(this.isMobile=!0)},destroyed:function(){},directives:{resize:{bind:function(e,t){function i(){var i=document.defaultView.getComputedStyle(e);n===i.width&&r===i.height||t.value({width:i.width,height:i.height}),n=i.width,r=i.height}var n="",r="";e.__vueSetInterval__=setInterval(i,300)},unbind:function(e){clearInterval(e.__vueSetInterval__)}}},methods:{resize:function(e){if("pc"===this.curSystem){var t=e.width,i=t.split("px")[0];if(!this.timer){if(!this.widthStyle)return;1===this.widthStyle.type?this.isMobile=i-0<=this.maxWidthMobile-0:this.widthShow?"100%"!==this.widthStyle.width&&i<this.widthShow?this.topWidth="100%":"100%"!==this.widthStyle.width&&i>this.widthShow&&(this.topWidth=this.widthShow+"px"):(this.topWidth="100%",this.componentWidth=i-0<this.widthStyle.width-0?"100%":this.widthStyle.width+"px",this.isMobile=i-0<=this.widthStyle.width||i-0<=this.maxWidthMobile),this.$emit("checkIsMobile",this.isMobile),this.timer=!0;var n=this;setTimeout(function(){n.timer=!1},400)}}}}}},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(22),o=i(30),l=(i.n(o),i(31)),u=(i.n(l),i(9)),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};t.a={name:"hotSport",props:{isSwiper:{type:Boolean,default:!1},pageData:{type:Object,default:function(){return{width:"",popList:[],pic:""}}},curSystem:{type:String},showShadow:{type:Boolean},uniqueId:{type:String},uniqueName:{type:String},envUrl:{type:String},refererPagePath:{type:String},brand:{type:String},isReportCms:{type:Boolean},pathType:{type:Number},componentType:{type:Number},path:{type:String}},watch:{pageData:{handler:function(e,t){e.videoUrl&&1===e.isVideoHasHot&&(this.pageData.popList=e.videoHotInfo.popList),this.setVideo(),this.getDomWidth()},deep:!0,immediate:!0}},data:function(){return{isImagePost:!1,swiperTimer:null,hasPostList:[],proportion:0,hotPageData:{},clientWidth:0,clientHeight:0,hoverIndex:null,showVideo:!1}},mounted:function(){var e=this;this.hotPageData=d({},this.pageData),this.isReportCms&&this.$nextTick(function(){var t=void 0;window.addEventListener("scroll",function(){e.isFixed&&(e.isFixed=!1),t&&clearTimeout(t),t=setTimeout(function(){e.handleScroll()},200)}),e.handleScroll()}),window.addEventListener("scroll",function(){e.handleScrollGio()}),this.handleScrollGio()},methods:{swiperInitPost:function(){var e=this;return n(a.a.mark(function t(){var i,n,r,s,o,l,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.hotPageData.popList||[],i.forEach(function(t,i){var n=e.$refs[""+e.uniqueId+i];if(n&&n[0]){var r=document.documentElement.clientHeight,a=n[0].getBoundingClientRect();r-(a.top||0)-(a.height||0)>=0&&(e.hasPostList.find(function(e){return e.uniqueId===t.uniqueId})||(e.$emit("exposurePost",{dataset:t,type:"hotSport"}),e.hasPostList.push(t)))}}),n=e.$refs.hotMain,n&&!e.isImagePost&&(r=document.documentElement.clientHeight,s=n.getBoundingClientRect(),o=s.top||0,l=s.height||0,(u=r-o-l)>=0&&(Boolean(e.pageData&&e.pageData.popList&&e.pageData.popList.length>0)||e.$emit("exposurePost",{dataset:e.pageData,type:"image"}),e.isImagePost=!0));case 6:case"end":return t.stop()}},t,e)}))()},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},handleScrollGio:function(){var e=this;return n(a.a.mark(function t(){var i,n,r,s,o,l,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.isSwiper){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.sleep(100);case 4:i=e.hotPageData.popList||[],i.forEach(function(t,i){var n=e.$refs[""+e.uniqueId+i];if(n&&n[0]){var r=document.documentElement.clientHeight,a=n[0].getBoundingClientRect();r-(a.top||0)-(a.height||0)>=0&&(e.hasPostList.find(function(e){return e.uniqueId===t.uniqueId})||(e.$emit("exposurePost",{dataset:t,type:"hotSport"}),e.hasPostList.push(t)))}}),n=e.$refs.hotMain,n&&!e.isImagePost&&(r=document.documentElement.clientHeight,s=n.getBoundingClientRect(),o=s.top||0,l=s.height||0,(u=r-o-l)>=0&&(Boolean(e.pageData&&e.pageData.popList&&e.pageData.popList.length>0)||e.$emit("exposurePost",{dataset:e.pageData,type:"image"}),e.isImagePost=!0));case 8:case"end":return t.stop()}},t,e)}))()},handleScroll:function(){for(var e=this.hotPageData.popList||[],t=0;t<e.length;t++)if(!e[t].isShow){var i=this.$refs[""+this.uniqueId+t][0].getBoundingClientRect();if(i.top<=window.innerHeight||i.bottom>0){this.hotPageData.popList[t].isShow=!0,this.isFixed=!0;var n=e[t];Object(u.b)({uniqueId:this.uniqueId,uniqueName:this.uniqueName,componentMethodType:0,popData:d({},n,{brand:1===this.pathType?"defaultPath":this.brand}),materialId:this.pageData.uniqueId,materialName:this.pageData.uniqueName,refererPagePath:this.refererPagePath,path:this.path,componentType:this.componentType,brand:this.brand,event:"bannerShow"},this.envUrl)}else this.isFixed=!1}},getDomWidth:function(){var e=this;this.$nextTick(function(){setTimeout(function(){e.proportion=e.$refs.hotMain?e.$refs.hotMain.clientWidth/750:document.getElementsByClassName("hot-main"+e.uniqueId)[0]?document.getElementsByClassName("hot-main"+e.uniqueId)[0]/750:0,e.$refs.hotMain&&(e.clientWidth=e.$refs.hotMain.clientWidth,e.clientHeight||(e.clientHeight=e.$refs.hotMain.clientHeight),e.proportion=e.$refs.hotMain.clientWidth/750),e.pageData.popList.length>0&&(0===e.clientWidth||0===e.clientHeight)&&e.getDomWidth()},500)})},setVideo:function(){var e=this.pageData,t=this;this.$nextTick(function(){e.videoUrl&&setTimeout(function(){t.myPlayer=Object(s.a)("my-video"+e.uniqueId,{controls:!e.hasOwnProperty("controls")||!e.controls,muted:!!e.autoPlay||(!e.hasOwnProperty("mute")||e.mute),reload:"auto",loop:e.loop,autoPlay:e.autoPlay,sources:[{src:e.videoUrl,type:"video/mp4"}],poster:e.coverPic},function(){e.autoPlay&&this.play(),this.on("play",function(){t.play()}),this.on("ended",function(){t.ended()}),this.on("pause",function(){t.pause()})})},500)}),t.showVideo=!0},clickHot:function(e){if(this.isReportCms){var t={component_id:this.uniqueId,uniqueName:this.uniqueName,trigger_Method_Type:1,commodity_id:e.productCode||"",commodity_name:e.selectDataShow||"",hot_zone_id:e.uniqueId||"",hot_zone_name:e.uniqueName||"",material_id:this.pageData.uniqueId,material_name:this.pageData.uniqueName,refer_info:this.refererPagePath,url_path:this.path||"/",component_type:this.componentType,brand:this.brand},i="";localStorage.getItem(t.brand+"Cookie")?i=localStorage.getItem(t.brand+"Cookie"):(i=""+parseInt((new Date).getTime())+Math.floor(1e4*Math.random()),localStorage.setItem(t.brand+"Cookie",i));var n={eventProperty:JSON.stringify(d({},t)),event:"bannerClick",distinctId:i},r=new Blob([JSON.stringify(n)],{type:"application/json"});navigator.sendBeacon(this.envUrl+"service-zuul/data/collect/acquisition",r)}this.$emit("clickUrl",e)},playVideo:function(){var e=this;this.$nextTick(function(){e.myPlayer&&e.pageData.autoPlay&&e.myPlayer.play()})},play:function(){this.$emit("stopSwiperAuto")},ended:function(){this.$emit("startSwiperAuto")},pause:function(){this.$emit("startSwiperAuto")},pauseVideo:function(){var e=this;this.$nextTick(function(){e.myPlayer&&e.pageData.autoPlay&&e.myPlayer.pause()})},mouseIndex:function(e,t){this.hoverIndex=t},mouseOutIndex:function(e,t){this.hoverIndex=null}},beforeDestroy:function(){this.myPlayer&&this.myPlayer.dispose()}}},function(e,t,i){"use strict";(function(e){function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e){return Array.isArray(e)?e:Array.from(e)}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}function u(e){var t="info",i=void 0,n=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];i("log",t,n)};return i=Pt(e,n),n.createLogger=function(t){return u(e+": "+t)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:t},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');t=e}return t},n.history=function(){return Ot?[].concat(Ot):[]},n.history.filter=function(e){return(Ot||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},n.history.clear=function(){Ot&&(Ot.length=0)},n.history.disable=function(){null!==Ot&&(Ot.length=0,Ot=null)},n.history.enable=function(){null===Ot&&(Ot=[])},n.error=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i("error",t,n)},n.warn=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i("warn",t,n)},n.debug=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return i("debug",t,n)},n}function d(e,t){Mt(e).forEach(function(i){return t(e[i],i)})}function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Mt(e).reduce(function(i,n){return t(i,e[n],n)},i)}function p(e){return!!e&&"object"===(void 0===e?"undefined":vt(e))}function h(e){return p(e)&&"[object Object]"===At.call(e)&&e.constructor===Object}function f(){for(var e={},t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.forEach(function(t){t&&d(t,function(t,i){if(!h(t))return void(e[i]=t);h(e[i])||(e[i]={}),e[i]=f(e[i],t)})}),e}function v(e,t,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=function(i){return Object.defineProperty(e,t,{value:i,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=i();return r(e),e}};return n&&(a.set=r),Object.defineProperty(e,t,a)}function m(e){return"string"==typeof e&&Boolean(e.trim())}function g(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function y(){return qe.a===He.a.document}function b(e){return p(e)&&1===e.nodeType}function w(){try{return He.a.parent!==He.a.self}catch(e){return!0}}function T(e){return function(t,i){if(!m(t))return qe.a[e](null);m(i)&&(i=qe.a.querySelector(i));var n=b(i)?i:qe.a;return n[e]&&n[e](t)}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments[3],r=qe.a.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var i=t[e];"textContent"===e?S(r,i):r[e]===i&&"tabIndex"!==e||(r[e]=i)}),Object.getOwnPropertyNames(i).forEach(function(e){r.setAttribute(e,i[e])}),n&&H(r,n),r}function S(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function x(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function E(e,t){return g(t),e.classList.contains(t)}function k(e){for(var t,i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return(t=e.classList).add.apply(t,l(n.reduce(function(e,t){return e.concat(t.split(/\s+/))},[]))),e}function C(e){var t;if(!e)return jt.warn("removeClass was called with an element that doesn't exist"),null;for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return(t=e.classList).remove.apply(t,l(n.reduce(function(e,t){return e.concat(t.split(/\s+/))},[]))),e}function O(e,t,i){return"function"==typeof i&&(i=i(e,t)),"boolean"!=typeof i&&(i=void 0),t.split(/\s+/).forEach(function(t){return e.classList.toggle(t,i)}),e}function P(e,t){Object.getOwnPropertyNames(t).forEach(function(i){var n=t[i];null===n||void 0===n||!1===n?e.removeAttribute(i):e.setAttribute(i,!0===n?"":n)})}function j(e){var t={};if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,n=i.length-1;n>=0;n--){var r=i[n].name,a=i[n].value;"boolean"!=typeof e[r]&&-1===",autoplay,controls,playsinline,loop,muted,default,defaultMuted,".indexOf(","+r+",")||(a=null!==a),t[r]=a}return t}function I(e,t){return e.getAttribute(t)}function A(e,t,i){e.setAttribute(t,i)}function M(e,t){e.removeAttribute(t)}function D(){qe.a.body.focus(),qe.a.onselectstart=function(){return!1}}function L(){qe.a.onselectstart=function(){return!0}}function N(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(G(e,"height"))),i.width||(i.width=parseFloat(G(e,"width"))),i}}function R(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==qe.a[_t.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function B(e,t){var i={x:0,y:0};if(Zt)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r=G(n,"transform");if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);i.x+=a[4],i.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);i.x+=s[12],i.y+=s[13]}n=n.parentNode}var o={},l=R(t.target),u=R(e),d=u.width,c=u.height,p=t.offsetY-(u.top-l.top),h=t.offsetX-(u.left-l.left);return t.changedTouches&&(h=t.changedTouches[0].pageX-u.left,p=t.changedTouches[0].pageY+u.top,Zt&&(h-=i.x,p-=i.y)),o.y=1-Math.max(0,Math.min(1,p/c)),o.x=Math.max(0,Math.min(1,h/d)),o}function z(e){return p(e)&&3===e.nodeType}function U(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function F(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),b(e)||z(e)?e:"string"==typeof e&&/\S/.test(e)?qe.a.createTextNode(e):void 0}).filter(function(e){return e})}function H(e,t){return F(t).forEach(function(t){return e.appendChild(t)}),e}function V(e,t){return H(U(e),t)}function q(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))}function G(e,t){if(!e||!t)return"";if("function"==typeof He.a.getComputedStyle){var i=void 0;try{i=He.a.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}function W(e,t){y()&&(t&&(si=t),He.a.setTimeout(oi,e))}function X(){ai=!0,He.a.removeEventListener("load",X)}function $(){return ci++}function Y(e,t){if(di.has(e)){var i=di.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&&di.delete(e)}}function K(e,t,i,n){i.forEach(function(i){e(t,i,n)})}function Q(e){function t(){return!0}function i(){return!1}if(e.fixed_)return e;if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n=e||He.a.event;e={};for(var r in n)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&n.preventDefault||(e[r]=n[r]));if(e.target||(e.target=e.srcElement||qe.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){n.preventDefault&&n.preventDefault(),e.returnValue=!1,n.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){n.stopPropagation&&n.stopPropagation(),e.cancelBubble=!0,n.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){n.stopImmediatePropagation&&n.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX){var a=qe.a.documentElement,s=qe.a.body;e.pageX=e.clientX+(a&&a.scrollLeft||s&&s.scrollLeft||0)-(a&&a.clientLeft||s&&s.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||s&&s.scrollTop||0)-(a&&a.clientTop||s&&s.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}function J(e,t,i){if(Array.isArray(t))return K(J,e,t,i);di.has(e)||di.set(e,{});var n=di.get(e);if(n.handlers||(n.handlers={}),n.handlers[t]||(n.handlers[t]=[]),i.guid||(i.guid=$()),n.handlers[t].push(i),n.dispatcher||(n.disabled=!1,n.dispatcher=function(t,i){if(!n.disabled){t=Q(t);var r=n.handlers[t.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s<o&&!t.isImmediatePropagationStopped();s++)try{a[s].call(e,t,i)}catch(e){jt.error(e)}}}),1===n.handlers[t].length)if(e.addEventListener){var r=!1;hi()&&fi.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,n.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,n.dispatcher)}function Z(e,t,i){if(di.has(e)){var n=di.get(e);if(n.handlers){if(Array.isArray(t))return K(Z,e,t,i);var r=function(e,t){n.handlers[t]=[],Y(e,t)};if(void 0!==t){var a=n.handlers[t];if(a){if(!i)return void r(e,t);if(i.guid)for(var s=0;s<a.length;s++)a[s].guid===i.guid&&a.splice(s--,1);Y(e,t)}}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function ee(e,t,i){var n=di.has(e)?di.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Q(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles)ee.call(null,r,t,i);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){di.has(t.target)||di.set(t.target,{});var a=di.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function te(e,t,i){if(Array.isArray(t))return K(te,e,t,i);var n=function n(){Z(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||$(),J(e,t,n)}function ie(e,t,i){var n=function n(){Z(e,t,n),i.apply(this,arguments)};n.guid=i.guid=i.guid||$(),J(e,t,n)}function ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.eventBusKey;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_=_("span",{className:"vjs-event-bus"});return Object.assign(e,Ai),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&di.has(e)&&di.delete(e)}),He.a.setTimeout(function(){e.eventBusEl_=null},0)}),e}function re(e,t){return Object.assign(e,Mi),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&xi(e)&&e.on("statechanged",e.handleStateChanged),e}function ae(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 se(e,t,i,n){return ae(e,n,i.length-1),i[n][t]}function oe(e){var t=void 0;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:se.bind(null,"start",0,e),end:se.bind(null,"end",1,e)},He.a.Symbol&&He.a.Symbol.iterator&&(t[He.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function le(e,t){return Array.isArray(e)?oe(e):void 0===e||void 0===t?oe():oe([[e,t]])}function ue(e){Ui=e}function de(){Ui=zi}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Ui(e,t)}function pe(e,t){var i=0,n=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=le(0,0));for(var a=0;a<e.length;a++)n=e.start(a),r=e.end(a),r>t&&(r=t),i+=r-n;return i/t}function he(e){if(e instanceof he)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:p(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=he.defaultMessages[this.code]||"")}function fe(e){return void 0!==e&&null!==e&&"function"==typeof e.then}function ve(e){fe(e)&&e.then(null,function(e){})}function me(e,t,i,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=e.textTracks();r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e;var s=new Sn.text.TrackClass(r);return a.addTrack(s),s}function ge(e,t){En[e]=En[e]||[],En[e].push(t)}function ye(e,t,i){e.setTimeout(function(){return Ce(t,En[t.type],i,e)},1)}function be(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function we(e,t,i){return e.reduceRight(Se(i),t[i]())}function Te(e,t,i,n){return t[i](e.reduce(Se(i),n))}function _e(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r="call"+Li(i),a=e.reduce(Se(r),n),s=a===Cn,o=s?null:t[i](a);return xe(e,i,o,s),o}function Se(e){return function(t,i){return t===Cn?Cn:i[e]?i[e](t):t}}function xe(e,t,i,n){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](n,i)}}function Ee(e){kn[e.id()]=null}function ke(e,t){var i=kn[e.id()],n=null;if(void 0===i||null===i)return n=t(e),kn[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var a=ht(i[r],2),s=a[0],o=a[1];s===t&&(n=o)}return null===n&&(n=t(e),i.push([t,n])),n}function Ce(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments[2],n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=r(t),l=o[0],u=o.slice(1);if("string"==typeof l)Ce(e,En[l],i,n,a,s);else if(l){var d=ke(n,l);if(!d.setSource)return a.push(d),Ce(e,u,i,n,a,s);d.setSource(Object.assign({},e),function(t,r){if(t)return Ce(e,u,i,n,a,s);a.push(d),Ce(r,e.type===r.type?u:En[r.type],i,n,a,s)})}else u.length?Ce(e,u,i,n,a,s):s?i(e,a):Ce(e,En["*"],i,n,a,!0)}function Oe(e){if(!e.type){var t=An(e.src);t&&(e.type=t)}return e}function Pe(e,t){var i=void 0;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 je(e,t,i){try{e.style[t]=i}catch(e){return}}function Ie(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}function Ae(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function Me(e,t){return Ae(e.options[e.options.selectedIndex].value,t)}function De(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(Ae(e.options[n].value,i)===t){e.selectedIndex=n;break}}function Le(e,t){var i=!1;return function(){i||jt.warn(e),i=!0;for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.apply(this,r)}}function Ne(e,t,i,n){return Le(t+" is deprecated and will be removed in "+e+".0; please use "+i+" instead.",n)}function Re(e,t,i){var n=Re.getPlayer(e);if(n)return t&&jt.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&n.ready(i),n;var r="string"==typeof e?ii("#"+Pa(e)):e;if(!b(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||jt.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),yt("beforesetup").forEach(function(e){var i=e(r,f(t));if(!p(i)||Array.isArray(i))return void jt.error("please return an object in beforesetup hooks");t=f(t,i)});var a=Bi.getComponent("Player");return n=new a(r,t,i),yt("setup").forEach(function(e){return e(n)}),n}function Be(){for(var e=Re.obj||Re,t=e.merge||e.mergeOptions,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.apply(e,n)}function ze(){for(var e=Re.time||Re,t=e.createTimeRanges||e.createTimeRanges,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];return t.apply(e,n)}function Ue(){}i.d(t,"a",function(){return Re});for(var Fe=i(23),He=i.n(Fe),Ve=i(69),qe=i.n(Ve),Ge=i(71),We=i.n(Ge),Xe=i(72),$e=i.n(Xe),Ye=i(73),Ke=i.n(Ye),Qe=i(76),Je=i.n(Qe),Ze=i(83),et=i(13),tt=i.n(et),it=i(84),nt=i(90),rt=i(91),at=i(5),st=i(92),ot=i(100),lt=i.n(ot),ut=i(28),dt=i(102),ct=i(107),pt=(i.n(ct),function e(t,i,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,i);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,i,n)}if("value"in r)return r.value;var s=r.get;if(void 0!==s)return s.call(n)}),ht=(function(){function e(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),ft=(function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}()),vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mt="8.0.4",gt={},yt=function(e,t){return gt[e]=gt[e]||[],t&&(gt[e]=gt[e].concat(t)),gt[e]},bt=function(e,t){yt(e,t)},wt=function(e,t){var i=yt(e).indexOf(t);return!(i<=-1)&&(gt[e]=gt[e].slice(),gt[e].splice(i,1),!0)},Tt=function(e,t){yt(e,[].concat(t).map(function(t){return function i(){return wt(e,i),t.apply(void 0,arguments)}}))},_t={prefixed:!0},St=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],xt=St[0],Et=void 0,kt=0;kt<St.length;kt++)if(St[kt][1]in qe.a){Et=St[kt];break}if(Et){for(var Ct=0;Ct<Et.length;Ct++)_t[xt[Ct]]=Et[Ct];_t.prefixed=Et[0]!==xt[0]}var Ot=[],Pt=function(e,t){return function(i,n,r){var a=t.levels[n],s=new RegExp("^("+a+")$");if("log"!==i&&r.unshift(i.toUpperCase()+":"),r.unshift(e+":"),Ot){Ot.push([].concat(r));var o=Ot.length-1e3;Ot.splice(0,o>0?o:0)}if(He.a.console){var l=He.a.console[i];l||"debug"!==i||(l=He.a.console.info||He.a.console.log),l&&a&&s.test(i)&&l[Array.isArray(r)?"apply":"call"](He.a.console,r)}}},jt=u("VIDEOJS"),It=jt.createLogger,At=Object.prototype.toString,Mt=function(e){return p(e)?Object.keys(e):[]},Dt=Object.freeze({__proto__:null,each:d,reduce:c,isObject:p,isPlain:h,merge:f,defineLazyProperty:v}),Lt=!1,Nt=null,Rt=!1,Bt=void 0,zt=!1,Ut=!1,Ft=!1,Ht=!1,Vt=null,qt=null,Gt=null,Wt=!1,Xt=!1,$t=!1,Yt=!1,Kt=Boolean(y()&&("ontouchstart"in He.a||He.a.navigator.maxTouchPoints||He.a.DocumentTouch&&He.a.document instanceof He.a.DocumentTouch)),Qt=He.a.navigator&&He.a.navigator.userAgentData;if(Qt&&(Rt="Android"===Qt.platform,Ut=Boolean(Qt.brands.find(function(e){return"Microsoft Edge"===e.brand})),Ft=Boolean(Qt.brands.find(function(e){return"Chromium"===e.brand})),Ht=!Ut&&Ft,Vt=qt=(Qt.brands.find(function(e){return"Chromium"===e.brand})||{}).version||null,Xt="Windows"===Qt.platform),!Ft){var Jt=He.a.navigator&&He.a.navigator.userAgent||"";Lt=/iPod/i.test(Jt),Nt=function(){var e=Jt.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Rt=/Android/i.test(Jt),Bt=function(){var e=Jt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),zt=/Firefox/i.test(Jt),Ut=/Edg/i.test(Jt),Ft=/Chrome/i.test(Jt)||/CriOS/i.test(Jt),Ht=!Ut&&Ft,Vt=qt=function(){var e=Jt.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),Gt=function(){var e=/MSIE\s(\d+)\.\d/.exec(Jt),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Jt)&&/rv:11.0/.test(Jt)&&(t=11),t}(),Wt=/Safari/i.test(Jt)&&!Ht&&!Rt&&!Ut,Xt=/Windows/i.test(Jt),$t=/iPad/i.test(Jt)||Wt&&Kt&&!/iPhone/i.test(Jt),Yt=/iPhone/i.test(Jt)&&!$t}var Zt=Yt||$t||Lt,ei=(Wt||Zt)&&!Ht,ti=Object.freeze({__proto__:null,get IS_IPOD(){return Lt},get IOS_VERSION(){return Nt},get IS_ANDROID(){return Rt},get ANDROID_VERSION(){return Bt},get IS_FIREFOX(){return zt},get IS_EDGE(){return Ut},get IS_CHROMIUM(){return Ft},get IS_CHROME(){return Ht},get CHROMIUM_VERSION(){return Vt},get CHROME_VERSION(){return qt},get IE_VERSION(){return Gt},get IS_SAFARI(){return Wt},get IS_WINDOWS(){return Xt},get IS_IPAD(){return $t},get IS_IPHONE(){return Yt},TOUCH_ENABLED:Kt,IS_IOS:Zt,IS_ANY_SAFARI:ei}),ii=T("querySelector"),ni=T("querySelectorAll"),ri=Object.freeze({__proto__:null,isReal:y,isEl:b,isInFrame:w,createEl:_,textContent:S,prependTo:x,hasClass:E,addClass:k,removeClass:C,toggleClass:O,setAttributes:P,getAttributes:j,getAttribute:I,setAttribute:A,removeAttribute:M,blockTextSelection:D,unblockTextSelection:L,getBoundingClientRect:N,findPosition:R,getPointerPosition:B,isTextNode:z,emptyEl:U,normalizeContent:F,appendContent:H,insertContent:V,isSingleLeftClick:q,$:ii,$$:ni,computedStyle:G}),ai=!1,si=void 0,oi=function(){if(!1!==si.options.autoSetup){var e=Array.prototype.slice.call(qe.a.getElementsByTagName("video")),t=Array.prototype.slice.call(qe.a.getElementsByTagName("audio")),i=Array.prototype.slice.call(qe.a.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&n.length>0)for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s||!s.getAttribute){W(1);break}if(void 0===s.player){var o=s.getAttribute("data-setup");null!==o&&si(s)}}else ai||W(1)}};y()&&("complete"===qe.a.readyState?X():He.a.addEventListener("load",X));var li=function(e){var t=qe.a.createElement("style");return t.className=e,t},ui=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},di=new WeakMap,ci=3,pi=void 0,hi=function(){if("boolean"!=typeof pi){pi=!1;try{var e=Object.defineProperty({},"passive",{get:function(){pi=!0}});He.a.addEventListener("test",null,e),He.a.removeEventListener("test",null,e)}catch(e){}}return pi},fi=["touchstart","touchmove"],vi=Object.freeze({__proto__:null,fixEvent:Q,on:J,off:Z,trigger:ee,one:te,any:ie}),mi=30,gi=function(e,t,i){t.guid||(t.guid=$());var n=t.bind(e);return n.guid=i?i+"_"+t.guid:t.guid,n},yi=function(e,t){var i=He.a.performance.now();return function(){var n=He.a.performance.now();n-i>=t&&(e.apply(void 0,arguments),i=n)}},bi=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:He.a,r=void 0,a=function(){n.clearTimeout(r),r=null},s=function(){var a=this,s=arguments,o=function(){r=null,o=null,i||e.apply(a,s)};!r&&i&&e.apply(a,s),n.clearTimeout(r),r=n.setTimeout(o,t)};return s.cancel=a,s},wi=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:mi,bind_:gi,throttle:yi,debounce:bi}),Ti=void 0,_i=function(){function e(){o(this,e)}return ft(e,[{key:"on",value:function(e,t){var i=this.addEventListener;this.addEventListener=function(){},J(this,e,t),this.addEventListener=i}},{key:"off",value:function(e,t){Z(this,e,t)}},{key:"one",value:function(e,t){var i=this.addEventListener;this.addEventListener=function(){},te(this,e,t),this.addEventListener=i}},{key:"any",value:function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ie(this,e,t),this.addEventListener=i}},{key:"trigger",value:function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Q(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ee(this,e)}},{key:"queueTrigger",value:function(e){var t=this;Ti||(Ti=new Map);var i=e.type||e,n=Ti.get(this);n||(n=new Map,Ti.set(this,n));var r=n.get(i);n.delete(i),He.a.clearTimeout(r);var a=He.a.setTimeout(function(){n.delete(i),0===n.size&&(n=null,Ti.delete(t)),t.trigger(e)},0);n.set(i,a)}}]),e}();_i.prototype.allowedEvents_={},_i.prototype.addEventListener=_i.prototype.on,_i.prototype.removeEventListener=_i.prototype.off,_i.prototype.dispatchEvent=_i.prototype.trigger;var Si=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:void 0===e?"undefined":vt(e)},xi=function(e){return e instanceof _i||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},Ei=function(e,t){xi(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},ki=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Ci=function(e,t,i){if(!e||!e.nodeName&&!xi(e))throw new Error("Invalid target for "+Si(t)+"#"+i+"; must be a DOM node or evented object.")},Oi=function(e,t,i){if(!ki(e))throw new Error("Invalid event type for "+Si(t)+"#"+i+"; must be a non-empty string or array.")},Pi=function(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+Si(t)+"#"+i+"; must be a function.")},ji=function(e,t,i){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,r=void 0,a=void 0,s=void 0;if(n){r=e.eventBusEl_,t.length>=3&&t.shift();var o=ht(t,2);a=o[0],s=o[1]}else{var l=ht(t,3);r=l[0],a=l[1],s=l[2]}return Ci(r,e,i),Oi(a,e,i),Pi(s,e,i),s=gi(e,s),{isTargetingSelf:n,target:r,type:a,listener:s}},Ii=function(e,t,i,n){Ci(e,e,t),e.nodeName?vi[t](e,i,n):e[t](i,n)},Ai={on:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ji(this,i,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(Ii(s,"on",o,l),!a){var u=function(){return e.off(s,o,l)};u.guid=l.guid;var d=function(){return e.off("dispose",u)};d.guid=l.guid,Ii(this,"on","dispose",u),Ii(s,"on","dispose",d)}},one:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ji(this,i,"one"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)Ii(s,"one",o,l);else{var u=function t(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.off(s,o,t),l.apply(null,n)};u.guid=l.guid,Ii(s,"one",o,u)}},any:function(){for(var e=this,t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];var r=ji(this,i,"any"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)Ii(s,"any",o,l);else{var u=function t(){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];e.off(s,o,t),l.apply(null,n)};u.guid=l.guid,Ii(s,"any",o,u)}},off:function(e,t,i){if(!e||ki(e))Z(this.eventBusEl_,e,t);else{var n=e,r=t;Ci(n,this,"off"),Oi(r,this,"off"),Pi(i,this,"off"),i=gi(this,i),this.off("dispose",i),n.nodeName?(Z(n,r,i),Z(n,"dispose",i)):xi(n)&&(n.off(r,i),n.off("dispose",i))}},trigger:function(e,t){Ci(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!ki(i))throw new Error("Invalid event type for "+Si(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.");return ee(this.eventBusEl_,e,t)}},Mi={state:{},setState:function(e){var t=this;"function"==typeof e&&(e=e());var i=void 0;return d(e,function(e,n){t.state[n]!==e&&(i=i||{},i[n]={from:t.state[n],to:e}),t.state[n]=e}),i&&xi(this)&&this.trigger({changes:i,type:"statechanged"}),i}},Di=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})},Li=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},Ni=function(e,t){return Li(e)===Li(t)},Ri=Object.freeze({__proto__:null,toLowerCase:Di,toTitleCase:Li,titleCaseEquals:Ni}),Bi=function(){function e(t,i,n){var r=this;if(o(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=f({},this.options_),i=this.options_=f(this.options_,i),this.id_=i.id||i.el&&i.el.id,!this.id_){var a=t&&t.id&&t.id()||"no_player";this.id_=a+"_component_"+$()}this.name_=i.name||null,i.el?this.el_=i.el:!1!==i.createEl&&(this.el_=this.createEl()),i.className&&this.el_&&i.className.split(" ").forEach(function(e){return r.addClass(e)}),!1!==i.evented&&(ne(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),re(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!==i.initChildren&&this.initChildren(),this.ready(n),!1!==i.reportTouchActivity&&this.enableTouchActivity()}return ft(e,[{key:"dispose",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].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}}},{key:"isDisposed",value:function(){return Boolean(this.isDisposed_)}},{key:"player",value:function(){return this.player_}},{key:"options",value:function(e){return e?(this.options_=f(this.options_,e),this.options_):this.options_}},{key:"el",value:function(){return this.el_}},{key:"createEl",value:function(e,t,i){return _(e,t,i)}},{key:"localize",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],s=n&&n.split("-")[0],o=r&&r[s],l=i;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,i){var n=t[i-1],r=n;return void 0===n&&(r=e),r})),l}},{key:"handleLanguagechange",value:function(){}},{key:"contentEl",value:function(){return this.contentEl_||this.el_}},{key:"id",value:function(){return this.id_}},{key:"name",value:function(){return this.name_}},{key:"children",value:function(){return this.children_}},{key:"getChildById",value:function(e){return this.childIndex_[e]}},{key:"getChild",value:function(e){if(e)return this.childNameIndex_[e]}},{key:"getDescendant",value:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];t=t.reduce(function(e,t){return e.concat(t)},[]);for(var n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n}},{key:"addChild",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,a=void 0;if("string"==typeof t){a=Li(t);var s=i.componentClass||a;i.name=a;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,i)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(n,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),a=a||r.name&&Li(r.name()),a&&(this.childNameIndex_[a]=r,this.childNameIndex_[Di(a)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[n+1]&&(this.children_[n+1].el_?l=this.children_[n+1].el_:b(this.children_[n+1])&&(l=this.children_[n+1])),this.contentEl().insertBefore(r.el(),l)}return r}},{key:"removeChild",value:function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===e){t=!0,this.children_.splice(i,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Li(e.name())]=null,this.childNameIndex_[Di(e.name())]=null;var n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}}},{key:"initChildren",value:function(){var t=this,i=this.options_.children;if(i){var n=this.options_,r=function(e){var i=e.name,r=e.opts;if(void 0!==n[i]&&(r=n[i]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(i,r);a&&(t[i]=a)}},a=void 0,s=e.getComponent("Tech");a=Array.isArray(i)?i:Object.keys(i),a.concat(Object.keys(this.options_).filter(function(e){return!a.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var n=void 0,r=void 0;return"string"==typeof e?(n=e,r=i[n]||t.options_[n]||{}):(n=e.name,r=e),{name:n,opts:r}}).filter(function(t){var i=e.getComponent(t.opts.componentClass||Li(t.name));return i&&!s.isTech(i)}).forEach(r)}}},{key:"buildCSSClass",value:function(){return""}},{key:"ready",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}},{key:"triggerReady",value:function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}},{key:"$",value:function(e,t){return ii(e,t||this.contentEl())}},{key:"$$",value:function(e,t){return ni(e,t||this.contentEl())}},{key:"hasClass",value:function(e){return E(this.el_,e)}},{key:"addClass",value:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];k.apply(void 0,[this.el_].concat(t))}},{key:"removeClass",value:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];C.apply(void 0,[this.el_].concat(t))}},{key:"toggleClass",value:function(e,t){O(this.el_,e,t)}},{key:"show",value:function(){this.removeClass("vjs-hidden")}},{key:"hide",value:function(){this.addClass("vjs-hidden")}},{key:"lockShowing",value:function(){this.addClass("vjs-lock-showing")}},{key:"unlockShowing",value:function(){this.removeClass("vjs-lock-showing")}},{key:"getAttribute",value:function(e){return I(this.el_,e)}},{key:"setAttribute",value:function(e,t){A(this.el_,e,t)}},{key:"removeAttribute",value:function(e){M(this.el_,e)}},{key:"width",value:function(e,t){return this.dimension("width",e,t)}},{key:"height",value:function(e,t){return this.dimension("height",e,t)}},{key:"dimensions",value:function(e,t){this.width(e,!0),this.height(t)}},{key:"dimension",value:function(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;var n=this.el_.style[e],r=n.indexOf("px");return-1!==r?parseInt(n.slice(0,r),10):parseInt(this.el_["offset"+Li(e)],10)}},{key:"currentDimension",value:function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=G(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var i="offset"+Li(e);t=this.el_[i]}return t}},{key:"currentDimensions",value:function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}},{key:"currentWidth",value:function(){return this.currentDimension("width")}},{key:"currentHeight",value:function(){return this.currentDimension("height")}},{key:"focus",value:function(){this.el_.focus()}},{key:"blur",value:function(){this.el_.blur()}},{key:"handleKeyDown",value:function(e){this.player_&&(We.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}},{key:"handleKeyPress",value:function(e){this.handleKeyDown(e)}},{key:"emitTapEvents",value:function(){var e=0,t=null,i=void 0;this.on("touchstart",function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=He.a.performance.now(),i=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)i=!1;else if(t){var n=e.touches[0].pageX-t.pageX,r=e.touches[0].pageY-t.pageY,a=Math.sqrt(n*n+r*r);a>10&&(i=!1)}});var n=function(){i=!1};this.on("touchleave",n),this.on("touchcancel",n),this.on("touchend",function(n){if(t=null,!0===i){He.a.performance.now()-e<200&&(n.preventDefault(),this.trigger("tap"))}})}},{key:"enableTouchActivity",value:function(){if(this.player()&&this.player().reportUserActivity){var e=gi(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var i=function(i){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",i),this.on("touchcancel",i)}}},{key:"setTimeout",value:function(e,t){var i,n=this;return e=gi(this,e),this.clearTimersOnDispose_(),i=He.a.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i}},{key:"clearTimeout",value:function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),He.a.clearTimeout(e)),e}},{key:"setInterval",value:function(e,t){e=gi(this,e),this.clearTimersOnDispose_();var i=He.a.setInterval(e,t);return this.setIntervalIds_.add(i),i}},{key:"clearInterval",value:function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),He.a.clearInterval(e)),e}},{key:"requestAnimationFrame",value:function(e){var t=this;this.clearTimersOnDispose_();var i;return e=gi(this,e),i=He.a.requestAnimationFrame(function(){t.rafIds_.has(i)&&t.rafIds_.delete(i),e()}),this.rafIds_.add(i),i}},{key:"requestNamedAnimationFrame",value:function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=gi(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}}},{key:"cancelNamedAnimationFrame",value:function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}},{key:"cancelAnimationFrame",value:function(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),He.a.cancelAnimationFrame(e)),e}},{key:"clearTimersOnDispose_",value:function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(function(t){var i=ht(t,2),n=i[0],r=i[1];e[n].forEach(function(t,i){return e[r](i)})}),e.clearingTimersOnDispose_=!1}))}}],[{key:"registerComponent",value:function(t,i){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var n=e.getComponent("Tech"),r=n&&n.isTech(i),a=e===i||e.prototype.isPrototypeOf(i.prototype);if(r||!a){var s=void 0;throw s=r?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+s+".")}t=Li(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,u=Object.keys(l);if(l&&u.length>0&&u.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=i,e.components_[Di(t)]=i,i}},{key:"getComponent",value:function(t){if(t&&e.components_)return e.components_[t]}}]),e}();Bi.registerComponent("Component",Bi);var zi=function(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=n=i="-"),r=r>0||s>0?r+":":"",n=((r||a>=10)&&n<10?"0"+n:n)+":",i=i<10?"0"+i:i,r+n+i},Ui=zi,Fi=Object.freeze({__proto__:null,createTimeRanges:le,createTimeRange:le,setFormatTime:ue,resetFormatTime:de,formatTime:ce});he.prototype.code=0,he.prototype.message="",he.prototype.status=null,he.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],he.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(var Hi=0;Hi<he.errorTypes.length;Hi++)he[he.errorTypes[Hi]]=Hi,he.prototype[he.errorTypes[Hi]]=Hi;var Vi=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,i,n){return 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}})})},qi=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Vi(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(Vi))},Gi=function(e,t){return e.forEach(function(e){var i=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return i.addCue(e)})}),t.textTracks()},Wi={textTracksToJson:qi,jsonToTextTracks:Gi,trackToJson_:Vi},Xi="vjs-modal-dialog",$i=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.close_=function(e){return n.close(e)},n.opened_=n.hasBeenOpened_=n.hasBeenFilled_=!1,n.closeable(!n.options_.uncloseable),n.content(n.options_.content),n.contentEl_=_("div",{className:Xi+"-content"},{role:"document"}),n.descEl_=_("p",{className:Xi+"-description vjs-control-text",id:n.el().getAttribute("aria-describedby")}),S(n.descEl_,n.description()),n.el_.appendChild(n.descEl_),n.el_.appendChild(n.contentEl_),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})}},{key:"dispose",value:function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"buildCSSClass",value:function(){return Xi+" vjs-hidden "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"label",value:function(){return this.localize(this.options_.label||"Modal Window")}},{key:"description",value:function(){var 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}},{key:"open",value:function(){if(!this.opened_){var 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}}},{key:"opened",value:function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}},{key:"close",value:function(){if(this.opened_){var 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()}}},{key:"closeable",value:function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,i=this.getChild("closeButton");if(t&&!i){var n=this.contentEl_;this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(i,"close",this.close_)}!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())}return this.closeable_}},{key:"fill",value:function(){this.fillWith(this.content())}},{key:"fillWith",value:function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),V(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);var r=this.getChild("closeButton");r&&i.appendChild(r.el_)}},{key:"empty",value:function(){this.trigger("beforemodalempty"),U(this.contentEl()),this.trigger("modalempty")}},{key:"content",value:function(e){return void 0!==e&&(this.content_=e),this.content_}},{key:"conditionalFocus_",value:function(){var e=qe.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}},{key:"conditionalBlur_",value:function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}},{key:"handleKeyDown",value:function(e){if(e.stopPropagation(),We.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(We.a.isEventKey(e,"Tab")){for(var t=this.focusableEls_(),i=this.el_.querySelector(":focus"),n=void 0,r=0;r<t.length;r++)if(i===t[r]){n=r;break}qe.a.activeElement===this.el_&&(n=0),e.shiftKey&&0===n?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||n!==t.length-1||(t[0].focus(),e.preventDefault())}}},{key:"focusableEls_",value:function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof He.a.HTMLAnchorElement||e instanceof He.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof He.a.HTMLInputElement||e instanceof He.a.HTMLSelectElement||e instanceof He.a.HTMLTextAreaElement||e instanceof He.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof He.a.HTMLIFrameElement||e instanceof He.a.HTMLObjectElement||e instanceof He.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})}}]),t}(Bi);$i.prototype.options_={pauseOnOpen:!0,temporary:!0},Bi.registerComponent("ModalDialog",$i);var Yi=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));i.tracks_=[],Object.defineProperty(i,"length",{get:function(){return this.tracks_.length}});for(var n=0;n<e.length;n++)i.addTrack(e[n]);return i}return s(t,e),ft(t,[{key:"addTrack",value:function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},xi(e)&&e.addEventListener("labelchange",e.labelchange_)}},{key:"removeTrack",value:function(e){for(var t=void 0,i=0,n=this.length;i<n;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})}},{key:"getTrackById",value:function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t}}]),t}(_i);Yi.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(var Ki in Yi.prototype.allowedEvents_)Yi.prototype["on"+Ki]=null;var Qi=function(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)},Ji=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t);for(var i=e.length-1;i>=0;i--)if(e[i].enabled){Qi(e,e[i]);break}var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.changing_=!1,n}return s(t,e),ft(t,[{key:"addTrack",value:function(e){var i=this;e.enabled&&Qi(this,e),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTrack",this).call(this,e),e.addEventListener&&(e.enabledChange_=function(){i.changing_||(i.changing_=!0,Qi(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}},{key:"removeTrack",value:function(e){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}}]),t}(Yi),Zi=function(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)},en=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,t);for(var i=e.length-1;i>=0;i--)if(e[i].selected){Zi(e,e[i]);break}var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.changing_=!1,Object.defineProperty(n,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}return s(t,e),ft(t,[{key:"addTrack",value:function(e){var i=this;e.selected&&Zi(this,e),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTrack",this).call(this,e),e.addEventListener&&(e.selectedChange_=function(){i.changing_||(i.changing_=!0,Zi(i,e),i.changing_=!1,i.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}},{key:"removeTrack",value:function(e){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}}]),t}(Yi),tn=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"addTrack",value:function(e){var i=this;pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTrack",this).call(this,e),this.queueChange_||(this.queueChange_=function(){return i.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return i.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}},{key:"removeTrack",value:function(e){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeTrack",this).call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}]),t}(Yi),nn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];o(this,e),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var i=0,n=t.length;i<n;i++)this.addTrackElement_(t[i])}return ft(e,[{key:"addTrackElement_",value:function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}},{key:"getTrackElementByTrack_",value:function(e){for(var t=void 0,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t}},{key:"removeTrackElement_",value:function(e){for(var 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}}}]),e}(),rn=function(){function e(t){o(this,e),e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}return ft(e,[{key:"setCues_",value:function(e){var t=this.length||0,i=0,n=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<n)for(i=t;i<n;i++)r.call(this,i)}},{key:"getCueById",value:function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t}}]),e}(),an={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},sn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},on={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},ln={disabled:"disabled",hidden:"hidden",showing:"showing"},un=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n={id:e.id||"vjs_track_"+$(),kind:e.kind||"",language:e.language||""},r=e.label||"";for(var s in n)!function(e){Object.defineProperty(i,e,{get:function(){return n[e]},set:function(){}})}(s);return Object.defineProperty(i,"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),i}return s(t,e),t}(_i),dn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=qe.a.createElement("a");i.href=e;for(var n={},r=0;r<t.length;r++)n[t[r]]=i[t[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=He.a.location.protocol),n.host||(n.host=He.a.location.host),n},cn=function(e){if(!e.match(/^https?:\/\//)){var t=qe.a.createElement("a");t.href=e,e=t.href}return e},pn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,i=t.exec(e);if(i)return i.pop().toLowerCase()}return""},hn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He.a.location,i=dn(e);return(":"===i.protocol?t.protocol:i.protocol)+i.host!==t.protocol+t.host},fn=Object.freeze({__proto__:null,parseUrl:dn,getAbsoluteURL:cn,getFileExtension:pn,isCrossOrigin:hn}),vn=function(e,t){var i=new He.a.WebVTT.Parser(He.a,He.a.vttjs,He.a.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),n.length>0&&(He.a.console&&He.a.console.groupCollapsed&&He.a.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEach(function(e){return jt.error(e)}),He.a.console&&He.a.console.groupEnd&&He.a.console.groupEnd()),i.flush()},mn=function(e,t){var i={uri:e},n=hn(e);n&&(i.cors=n);var r="use-credentials"===t.tech_.crossOrigin();r&&(i.withCredentials=r),Ke()(i,gi(this,function(e,i,n){if(e)return jt.error(e,i);t.loaded_=!0,"function"!=typeof He.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],function(e){return"vttjserror"===e.type?void jt.error("vttjs failed to load, stopping trying to process "+t.src):vn(n,t)}):vn(n,t)}))},gn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(o(this,t),!e.tech)throw new Error("A tech was not provided.");var i=f(e,{kind:on[e.kind]||"subtitles",language:e.language||e.srclang||""}),n=ln[i.mode]||"disabled",r=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(n="hidden");var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i));s.tech_=i.tech,s.cues_=[],s.activeCues_=[],s.preload_=!1!==s.tech_.preloadTextTracks;var l=new rn(s.cues_),u=new rn(s.activeCues_),d=!1;s.timeupdateHandler=gi(s,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.tech_.isDisposed()){if(!this.tech_.isReady_)return void("timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)));this.activeCues=this.activeCues,d&&(this.trigger("cuechange"),d=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});var c=function(){s.stopTracking()};return s.tech_.one("dispose",c),"disabled"!==n&&s.startTracking(),Object.defineProperties(s,{default:{get:function(){return r},set:function(){}},mode:{get:function(){return n},set:function(e){ln[e]&&n!==e&&(n=e,this.preload_||"disabled"===n||0!==this.cues.length||mn(this.src,this),this.stopTracking(),"disabled"!==n&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?l:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return u;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];r.startTime<=e&&r.endTime>=e&&t.push(r)}if(d=!1,t.length!==this.activeCues_.length)d=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(d=!0);return this.activeCues_=t,u.setCues_(this.activeCues_),u},set:function(){}}}),i.src?(s.src=i.src,s.preload_||(s.loaded_=!0),(s.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&mn(s.src,s)):s.loaded_=!0,s}return s(t,e),ft(t,[{key:"startTracking",value:function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}},{key:"stopTracking",value:function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}},{key:"addCue",value:function(e){var t=e;if(He.a.vttjs&&!(e instanceof He.a.vttjs.VTTCue)){t=new He.a.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var i in e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}},{key:"removeCue",value:function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}]),t}(un);gn.prototype.allowedEvents_={cuechange:"cuechange"};var yn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=f(e,{kind:sn[e.kind]||""}),n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i)),r=!1;return Object.defineProperty(n,"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return s(t,e),t}(un),bn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=f(e,{kind:an[e.kind]||""}),n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i)),r=!1;return Object.defineProperty(n,"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return s(t,e),t}(un),wn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=void 0,r=new gn(e);return i.kind=r.kind,i.src=r.src,i.srclang=r.language,i.label=r.label,i.default=r.default,Object.defineProperties(i,{readyState:{get:function(){return n}},track:{get:function(){return r}}}),n=t.NONE,r.addEventListener("loadeddata",function(){n=t.LOADED,i.trigger({type:"load",target:i})}),i}return s(t,e),t}(_i);wn.prototype.allowedEvents_={load:"load"},wn.NONE=0,wn.LOADING=1,wn.LOADED=2,wn.ERROR=3;var Tn={audio:{ListClass:Ji,TrackClass:yn,capitalName:"Audio"},video:{ListClass:en,TrackClass:bn,capitalName:"Video"},text:{ListClass:tn,TrackClass:gn,capitalName:"Text"}};Object.keys(Tn).forEach(function(e){Tn[e].getterName=e+"Tracks",Tn[e].privateName=e+"Tracks_"});var _n={remoteText:{ListClass:tn,TrackClass:gn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:nn,TrackClass:wn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Sn=Object.assign({},Tn,_n);_n.names=Object.keys(_n),Tn.names=Object.keys(Tn),Sn.names=[].concat(_n.names).concat(Tn.names);var xn=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};o(this,t),e.reportTouchActivity=!1;var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,e,i));return n.onDurationChange_=function(e){return n.onDurationChange(e)},n.trackProgress_=function(e){return n.trackProgress(e)},n.trackCurrentTime_=function(e){return n.trackCurrentTime(e)},n.stopTrackingCurrentTime_=function(e){return n.stopTrackingCurrentTime(e)},n.disposeSourceHandler_=function(e){return n.disposeSourceHandler(e)},n.queuedHanders_=new Set,n.hasStarted_=!1,n.on("playing",function(){this.hasStarted_=!0}),n.on("loadstart",function(){this.hasStarted_=!1}),Sn.names.forEach(function(t){var i=Sn[t];e&&e[i.getterName]&&(n[i.privateName]=e[i.getterName])}),n.featuresProgressEvents||n.manualProgressOn(),n.featuresTimeupdateEvents||n.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(t){!1===e["native"+t+"Tracks"]&&(n["featuresNative"+t+"Tracks"]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?n.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(n.featuresNativeTextTracks=!0),n.featuresNativeTextTracks||n.emulateTextTracks(),n.preloadTextTracks=!1!==e.preloadTextTracks,n.autoRemoteTextTracks_=new Sn.text.ListClass,n.initTrackListeners(),e.nativeControlsForTouch||n.emitTapEvents(),n.constructor&&(n.name_=n.constructor.name||"Unknown Tech"),n}return s(t,e),ft(t,[{key:"triggerSourceset",value:function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})}},{key:"manualProgressOn",value:function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}},{key:"manualProgressOff",value:function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}},{key:"trackProgress",value:function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(gi(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}},{key:"onDurationChange",value:function(e){this.duration_=this.duration()}},{key:"buffered",value:function(){return le(0,0)}},{key:"bufferedPercent",value:function(){return pe(this.buffered(),this.duration_)}},{key:"stopTrackingProgress",value:function(){this.clearInterval(this.progressInterval)}},{key:"manualTimeUpdatesOn",value:function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}},{key:"manualTimeUpdatesOff",value:function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}},{key:"trackCurrentTime",value:function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}},{key:"stopTrackingCurrentTime",value:function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}},{key:"dispose",value:function(){this.clearTracks(Tn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"clearTracks",value:function(e){var t=this;e=[].concat(e),e.forEach(function(e){for(var i=t[e+"Tracks"]()||[],n=i.length;n--;){var r=i[n];"text"===e&&t.removeRemoteTextTrack(r),i.removeTrack(r)}})}},{key:"cleanupAutoTextTracks",value:function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}}},{key:"reset",value:function(){}},{key:"crossOrigin",value:function(){}},{key:"setCrossOrigin",value:function(){}},{key:"error",value:function(e){return void 0!==e&&(this.error_=new he(e),this.trigger("error")),this.error_}},{key:"played",value:function(){return this.hasStarted_?le(0,0):le()}},{key:"play",value:function(){}},{key:"setScrubbing",value:function(){}},{key:"scrubbing",value:function(){}},{key:"setCurrentTime",value:function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}},{key:"initTrackListeners",value:function(){var e=this;Tn.names.forEach(function(t){var i=Tn[t],n=function(){e.trigger(t+"trackchange")},r=e[i.getterName]();r.addEventListener("removetrack",n),r.addEventListener("addtrack",n),e.on("dispose",function(){r.removeEventListener("removetrack",n),r.removeEventListener("addtrack",n)})})}},{key:"addWebVttScript_",value:function(){var e=this;if(!He.a.WebVTT)if(qe.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&h(Je.a)&&Object.keys(Je.a).length>0)return void this.trigger("vttjsloaded");var t=qe.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),He.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}},{key:"emulateTextTracks",value:function(){var e=this,t=this.textTracks(),i=this.remoteTextTracks(),n=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};i.on("addtrack",n),i.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e<t.length;e++){var i=t[e];i.removeEventListener("cuechange",a),"showing"===i.mode&&i.addEventListener("cuechange",a)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",function(){i.off("addtrack",n),i.off("removetrack",r),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",a)}})}},{key:"addTextTrack",value:function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return me(this,e,t,i)}},{key:"createRemoteTextTrack",value:function(e){var t=f(e,{tech:this});return new _n.remoteTextEl.TrackClass(t)}},{key:"addRemoteTextTrack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],n=this.createRemoteTextTrack(t);return"boolean"!=typeof i&&(i=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!1===i&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(n.track)}),n}},{key:"removeRemoteTextTrack",value:function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}},{key:"getVideoPlaybackQuality",value:function(){return{}}},{key:"requestPictureInPicture",value:function(){return Promise.reject()}},{key:"disablePictureInPicture",value:function(){return!0}},{key:"setDisablePictureInPicture",value:function(){}},{key:"requestVideoFrameCallback",value:function(e){var t=this,i=$();return!this.isReady_||this.paused()?(this.queuedHanders_.add(i),this.one("playing",function(){t.queuedHanders_.has(i)&&(t.queuedHanders_.delete(i),e())})):this.requestNamedAnimationFrame(i,e),i}},{key:"cancelVideoFrameCallback",value:function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}},{key:"setPoster",value:function(){}},{key:"playsinline",value:function(){}},{key:"setPlaysinline",value:function(){}},{key:"overrideNativeAudioTracks",value:function(){}},{key:"overrideNativeVideoTracks",value:function(){}},{key:"canPlayType",value:function(){return""}}],[{key:"canPlayType",value:function(){return""}},{key:"canPlaySource",value:function(e,i){return t.canPlayType(e.type)}},{key:"isTech",value:function(e){return e.prototype instanceof t||e instanceof t||e===t}},{key:"registerTech",value:function(e,i){if(t.techs_||(t.techs_={}),!t.isTech(i))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Li(e),t.techs_[e]=i,t.techs_[Di(e)]=i,"Tech"!==e&&t.defaultTechOrder_.push(e),i}},{key:"getTech",value:function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Li(e),He.a&&He.a.videojs&&He.a.videojs[e]?(jt.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),He.a.videojs[e]):void 0)}}]),t}(Bi);Sn.names.forEach(function(e){var t=Sn[e];xn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),xn.prototype.featuresVolumeControl=!0,xn.prototype.featuresMuteControl=!0,xn.prototype.featuresFullscreenResize=!1,xn.prototype.featuresPlaybackRate=!1,xn.prototype.featuresProgressEvents=!1,xn.prototype.featuresSourceset=!1,xn.prototype.featuresTimeupdateEvents=!1,xn.prototype.featuresNativeTextTracks=!1,xn.prototype.featuresVideoFrameCallback=!1,xn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,i){var n=e.sourceHandlers;n||(n=e.sourceHandlers=[]),void 0===i&&(i=n.length),n.splice(i,0,t)},e.canPlayType=function(t){for(var i=e.sourceHandlers||[],n=void 0,r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,i){for(var n=e.sourceHandlers||[],r=0;r<n.length;r++)if(n[r].canHandleSource(t,i))return n[r];return null},e.canPlaySource=function(t,i){var n=e.selectSourceHandler(t,i);return n?n.canHandleSource(t,i):""},["seekable","seeking","duration"].forEach(function(e){var 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){var i=e.selectSourceHandler(t,this.options_);i||(e.nativeSourceHandler?i=e.nativeSourceHandler:jt.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)}},Bi.registerComponent("Tech",xn),xn.registerTech("Tech",xn),xn.defaultTechOrder_=[];var En={},kn={},Cn={},On={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Pn={setCurrentTime:1,setMuted:1,setVolume:1},jn={play:1,pause:1},In={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"},An=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=pn(e);return In[t.toLowerCase()]||""},Mn=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var a=n[r];if(a.type&&a.src&&a.src===t)return a.type}return An(t)},Dn=function e(t){if(Array.isArray(t)){var i=[];t.forEach(function(t){t=e(t),Array.isArray(t)?i=i.concat(t):p(t)&&i.push(t)}),t=i}else t="string"==typeof t&&t.trim()?[Oe({src:t})]:p(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Oe(t)]:[];return t},Ln=function(e){function t(e,i,n){o(this,t);var r=f({createEl:!1},i),s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,n));if(i.playerOptions.sources&&0!==i.playerOptions.sources.length)e.src(i.playerOptions.sources);else for(var l=0,u=i.playerOptions.techOrder;l<u.length;l++){var d=Li(u[l]),c=xn.getTech(d);if(d||(c=Bi.getComponent(d)),c&&c.isSupported()){e.loadTech_(d);break}}return s}return s(t,e),t}(Bi);Bi.registerComponent("MediaLoader",Ln);var Nn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.options_.controlText&&n.controlText(n.options_.controlText),n.handleMouseOver_=function(e){return n.handleMouseOver(e)},n.handleMouseOut_=function(e){return n.handleMouseOut(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.emitTapEvents(),n.enable(),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&jt.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;var n=_(e,t,i);return n.appendChild(_("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}},{key:"dispose",value:function(){this.controlTextEl_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"createControlTextEl",value:function(e){return this.controlTextEl_=_("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,S(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)}},{key:"buildCSSClass",value:function(){return"vjs-control vjs-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"enable",value:function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}},{key:"disable",value:function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==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_)}},{key:"handleLanguagechange",value:function(){this.controlText(this.controlText_)}},{key:"handleClick",value:function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}},{key:"handleKeyDown",value:function(e){We.a.isEventKey(e,"Space")||We.a.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(Bi);Bi.registerComponent("ClickableComponent",Nn);var Rn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update(),n.update_=function(e){return n.update(e)},e.on("posterchange",n.update_),n}return s(t,e),ft(t,[{key:"dispose",value:function(){this.player().off("posterchange",this.update_),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"createEl",value:function(){return _("picture",{className:"vjs-poster",tabIndex:-1},{},_("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))}},{key:"crossOrigin",value:function(e){return void 0===e?this.el_?this.el_.querySelector("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?void this.player_.log.warn('crossOrigin must be null, "anonymous" or "use-credentials", given "'+e+'"'):void(this.el_.querySelector("img").crossOrigin=e)}},{key:"update",value:function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}},{key:"setSrc",value:function(e){this.el_.querySelector("img").src=e}},{key:"handleClick",value:function(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ve(this.player_.play()):this.player_.pause())}}]),t}(Nn);Rn.prototype.crossorigin=Rn.prototype.crossOrigin,Bi.registerComponent("PosterImage",Rn);var Bn={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'},zn=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n)),s=function(e){return r.updateDisplay(e)};return e.on("loadstart",function(e){return r.toggleDisplay(e)}),e.on("texttrackchange",s),e.on("loadedmetadata",function(e){return r.preselectTrack(e)}),e.ready(gi(r,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();e.on("fullscreenchange",s),e.on("playerresize",s);var t=He.a.screen.orientation||He.a,i=He.a.screen.orientation?"change":"orientationchange";t.addEventListener(i,s),e.on("dispose",function(){return t.removeEventListener(i,s)});for(var n=this.options_.playerOptions.tracks||[],r=0;r<n.length;r++)this.player_.addRemoteTextTrack(n[r],!0);this.preselectTrack()})),r}return s(t,e),ft(t,[{key:"preselectTrack",value:function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),i=this.player_.cache_.selectedLanguage,n=void 0,r=void 0,a=void 0,s=0;s<t.length;s++){var o=t[s];i&&i.enabled&&i.language&&i.language===o.language&&o.kind in e?o.kind===i.kind?a=o:a||(a=o):i&&!i.enabled?(a=null,n=null,r=null):o.default&&("descriptions"!==o.kind||n?o.kind in e&&!r&&(r=o):n=o)}a?a.mode="showing":r?r.mode="showing":n&&(n.mode="showing")}},{key:"toggleDisplay",value:function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}},{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}},{key:"clearDisplay",value:function(){"function"==typeof He.a.WebVTT&&He.a.WebVTT.processCues(He.a,[],this.el_)}},{key:"updateDisplay",value:function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}return void this.updateForTrack(i)}for(var a=null,s=null,o=e.length;o--;){var l=e[o];"showing"===l.mode&&("descriptions"===l.kind?a=l:s=l)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},{key:"updateDisplayState",value:function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r=i[n];if(r){var a=r.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&je(a.firstChild,"color",Pe(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&je(a.firstChild,"backgroundColor",Pe(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?je(a,"backgroundColor",Pe(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=He.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Bn[t.fontFamily])}}}},{key:"updateForTrack",value:function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof He.a.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);He.a.WebVTT.processCues(He.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var l=s.activeCues[o].displayState;k(l,"vjs-text-track-cue","vjs-text-track-cue-"+(s.language?s.language:a)),s.language&&A(l,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}}}]),t}(Bi);Bi.registerComponent("TextTrackDisplay",zn);var Un=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=this.player_.isAudio(),i=this.localize(e?"Audio Player":"Video Player"),n=_("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[i])}),r=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(n),r}}]),t}(Bi);Bi.registerComponent("LoadingSpinner",Un);var Fn=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"createEl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=Object.assign({className:this.buildCSSClass()},t),i=Object.assign({type:"button"},i);var n=_(e,t,i);return n.appendChild(_("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(n),n}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.constructor.name;return jt.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),Bi.prototype.addChild.call(this,e,t)}},{key:"enable",value:function(){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enable",this).call(this),this.el_.removeAttribute("disabled")}},{key:"disable",value:function(){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disable",this).call(this),this.el_.setAttribute("disabled","disabled")}},{key:"handleKeyDown",value:function(e){if(We.a.isEventKey(e,"Space")||We.a.isEventKey(e,"Enter"))return void e.stopPropagation();pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(Nn);Bi.registerComponent("Button",Fn);var Hn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.mouseused_=!1,n.on("mousedown",function(e){return n.handleMouseDown(e)}),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-big-play-button"}},{key:"handleClick",value:function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)return ve(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());var i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");if(!n)return void this.player_.tech(!0).focus();var r=function(){return n.focus()};fe(t)?t.then(r,function(){}):this.setTimeout(r,1)}},{key:"handleKeyDown",value:function(e){this.mouseused_=!1,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleMouseDown",value:function(e){this.mouseused_=!0}}]),t}(Fn);Hn.prototype.controlText_="Play Video",Bi.registerComponent("BigPlayButton",Hn);var Vn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.controlText(i&&i.controlText||n.localize("Close")),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-close-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){this.trigger({type:"close",bubbles:!1})}},{key:"handleKeyDown",value:function(e){We.a.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}}]),t}(Fn);Bi.registerComponent("CloseButton",Vn);var qn=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return i.replay=void 0===i.replay||i.replay,n.on(e,"play",function(e){return n.handlePlay(e)}),n.on(e,"pause",function(e){return n.handlePause(e)}),i.replay&&n.on(e,"ended",function(e){return n.handleEnded(e)}),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-play-control "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){this.player_.paused()?ve(this.player_.play()):this.player_.pause()}},{key:"handleSeeked",value:function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}},{key:"handlePlay",value:function(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")}},{key:"handlePause",value:function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")}},{key:"handleEnded",value:function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})}}]),t}(Fn);qn.prototype.controlText_="Play",Bi.registerComponent("PlayToggle",qn);var Gn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,["timeupdate","ended"],function(e){return n.updateContent(e)}),n.updateTextNode_(),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=this.buildCSSClass(),i=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:e+" vjs-time-control vjs-control"}),n=_("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return i.appendChild(n),this.contentEl_=_("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),i.appendChild(this.contentEl_),i}},{key:"dispose",value:function(){this.contentEl_=null,this.textNode_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"updateTextNode_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;t=ce(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){if(e.contentEl_){var t=e.textNode_;t&&e.contentEl_.firstChild!==t&&(t=null,jt.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),e.textNode_=qe.a.createTextNode(e.formattedTime_),e.textNode_&&(t?e.contentEl_.replaceChild(e.textNode_,t):e.contentEl_.appendChild(e.textNode_))}}))}},{key:"updateContent",value:function(e){}}]),t}(Bi);Gn.prototype.labelText_="Time",Gn.prototype.controlText_="Time",Bi.registerComponent("TimeDisplay",Gn);var Wn=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-current-time"}},{key:"updateContent",value:function(e){var t=void 0;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}]),t}(Gn);Wn.prototype.labelText_="Current Time",Wn.prototype.controlText_="Current Time",Bi.registerComponent("CurrentTimeDisplay",Wn);var Xn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=function(e){return n.updateContent(e)};return n.on(e,"durationchange",r),n.on(e,"loadstart",r),n.on(e,"loadedmetadata",r),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-duration"}},{key:"updateContent",value:function(e){var t=this.player_.duration();this.updateTextNode_(t)}}]),t}(Gn);Xn.prototype.labelText_="Duration",Xn.prototype.controlText_="Duration",Bi.registerComponent("DurationDisplay",Xn);var $n=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),i=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div"),n=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"span",{textContent:"/"});return i.appendChild(n),e.appendChild(i),e}}]),t}(Bi);Bi.registerComponent("TimeDivider",$n);var Yn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,"durationchange",function(e){return n.updateContent(e)}),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-remaining-time"}},{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this);return!1!==this.options_.displayNegative&&e.insertBefore(_("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}},{key:"updateContent",value:function(e){if("number"==typeof this.player_.duration()){var t=void 0;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}}]),t}(Gn);Yn.prototype.labelText_="Remaining Time",Yn.prototype.controlText_="Remaining Time",Bi.registerComponent("RemainingTimeDisplay",Yn);var Kn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.updateShowing(),n.on(n.player(),"durationchange",function(e){return n.updateShowing(e)}),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=_("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(_("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(qe.a.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}},{key:"dispose",value:function(){this.contentEl_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"updateShowing",value:function(e){this.player().duration()===1/0?this.show():this.hide()}}]),t}(Bi);Bi.registerComponent("LiveDisplay",Kn);var Qn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.updateLiveEdgeStatus(),n.player_.liveTracker&&(n.updateLiveEdgeStatusHandler_=function(e){return n.updateLiveEdgeStatus(e)},n.on(n.player_.liveTracker,"liveedgechange",n.updateLiveEdgeStatusHandler_)),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=_("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}},{key:"updateLiveEdgeStatus",value:function(){!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"))}},{key:"handleClick",value:function(){this.player_.liveTracker.seekToLiveEdge()}},{key:"dispose",value:function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Fn);Qn.prototype.controlText_="Seek to live, currently playing live",Bi.registerComponent("SeekToLive",Qn);var Jn=Object.freeze({__proto__:null,clamp:Ie}),Zn=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleMouseDown_=function(e){return n.handleMouseDown(e)},n.handleMouseUp_=function(e){return n.handleMouseUp(e)},n.handleKeyDown_=function(e){return n.handleKeyDown(e)},n.handleClick_=function(e){return n.handleClick(e)},n.handleMouseMove_=function(e){return n.handleMouseMove(e)},n.update_=function(e){return n.update(e)},n.bar=n.getChild(n.options_.barName),n.vertical(!!n.options_.vertical),n.enable(),n}return s(t,e),ft(t,[{key:"enabled",value:function(){return this.enabled_}},{key:"enable",value:function(){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)}},{key:"disable",value:function(){if(this.enabled()){var 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}}},{key:"createEl",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.className=i.className+" vjs-slider",i=Object.assign({tabIndex:0},i),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n)}},{key:"handleMouseDown",value:function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Ht||e.preventDefault(),D(),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)}},{key:"handleMouseMove",value:function(e){}},{key:"handleMouseUp",value:function(){var e=this.bar.el_.ownerDocument;L(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),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.update()}},{key:"update",value:function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_?t:(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",function(){var i=e.vertical()?"height":"width";e.bar.el().style[i]=(100*t).toFixed(2)+"%"}),t)}}},{key:"getProgress",value:function(){return Number(Ie(this.getPercent(),0,1).toFixed(4))}},{key:"calculateDistance",value:function(e){var t=B(this.el_,e);return this.vertical()?t.y:t.x}},{key:"handleKeyDown",value:function(e){We.a.isEventKey(e,"Left")||We.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):We.a.isEventKey(e,"Right")||We.a.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleClick",value:function(e){e.stopPropagation(),e.preventDefault()}},{key:"vertical",value:function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}]),t}(Bi);Bi.registerComponent("Slider",Zn);var er=function(e,t){return Ie(e/t*100,0,100).toFixed(2)+"%"},tr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.partEls_=[],n.on(e,"progress",function(e){return n.update(e)}),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-load-progress"}),i=_("span",{className:"vjs-control-text"}),n=_("span",{textContent:this.localize("Loaded")}),r=qe.a.createTextNode(": ");return this.percentageEl_=_("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(i),i.appendChild(n),i.appendChild(r),i.appendChild(this.percentageEl_),e}},{key:"dispose",value:function(){this.partEls_=null,this.percentageEl_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"update",value:function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=t.player_.liveTracker,i=t.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=er(r,n);t.percent_!==s&&(t.el_.style.width=s,S(t.percentageEl_,s),t.percent_=s);for(var o=0;o<i.length;o++){var l=i.start(o),u=i.end(o),d=a[o];d||(d=t.el_.appendChild(_()),a[o]=d),d.dataset.start===l&&d.dataset.end===u||(d.dataset.start=l,d.dataset.end=u,d.style.left=er(l,r),d.style.width=er(u-l,r))}for(var c=a.length;c>i.length;c--)t.el_.removeChild(a[c-1]);a.length=i.length})}}]),t}(Bi);Bi.registerComponent("LoadProgressBar",tr);var ir=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=yi(gi(n,n.update),mi),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t,i){var n=R(this.el_),r=N(this.player_.el()),a=e.width*t;if(r&&n){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),l=n.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>n.width&&(l=n.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(i)}}},{key:"write",value:function(e){S(this.el_,e)}},{key:"updateTime",value:function(e,t,i,n){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var a=void 0,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;a=(l<1?"":"-")+ce(l,o)}else a=ce(i,s);r.update(e,t,a),n&&n()})}}]),t}(Bi);Bi.registerComponent("TimeTooltip",ir);var nr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=yi(gi(n,n.update),mi),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t){var i=this.getChild("timeTooltip");if(i){var n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();i.updateTime(e,t,n)}}}]),t}(Bi);nr.prototype.options_={children:[]},Zt||Rt||nr.prototype.options_.children.push("timeTooltip"),Bi.registerComponent("PlayProgressBar",nr);var rr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=yi(gi(n,n.update),mi),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-mouse-display"})}},{key:"update",value:function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})}}]),t}(Bi);rr.prototype.options_={children:["timeTooltip"]},Bi.registerComponent("MouseTimeDisplay",rr);var ar=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.setEventHandlers_(),n}return s(t,e),ft(t,[{key:"setEventHandlers_",value:function(){var e=this;this.update_=gi(this,this.update),this.update=yi(this.update_,mi),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_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in qe.a&&"visibilityState"in qe.a&&this.on(qe.a,"visibilitychange",this.toggleVisibility_)}},{key:"toggleVisibility_",value:function(e){"hidden"===qe.a.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}},{key:"enableInterval_",value:function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,mi))}},{key:"disableInterval_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}},{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}},{key:"update",value:function(e){var i=this;if("hidden"!==qe.a.visibilityState){var n=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=i.player_.ended()?i.player_.duration():i.getCurrentTime_(),t=i.player_.liveTracker,r=i.player_.duration();t&&t.isLive()&&(r=i.player_.liveTracker.liveCurrentTime()),i.percent_!==n&&(i.el_.setAttribute("aria-valuenow",(100*n).toFixed(2)),i.percent_=n),i.currentTime_===e&&i.duration_===r||(i.el_.setAttribute("aria-valuetext",i.localize("progress bar timing: currentTime={1} duration={2}",[ce(e,r),ce(r,r)],"{1} of {2}")),i.currentTime_=e,i.duration_=r),i.bar&&i.bar.update(N(i.el()),i.getProgress())}),n}}},{key:"userSeek_",value:function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}},{key:"getCurrentTime_",value:function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}},{key:"getPercent",value:function(){var e=this.getCurrentTime_(),t=void 0,i=this.player_.liveTracker;return i&&i.isLive()?(t=(e-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}},{key:"handleMouseDown",value:function(e){q(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseDown",this).call(this,e))}},{key:"handleMouseMove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(q(e)){t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=void 0,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),s=r.liveCurrentTime();if(i=a+n*r.liveWindow(),i>=s&&(i=s),i<=a&&(i=a+.1),i===1/0)return}else(i=n*this.player_.duration())===this.player_.duration()&&(i-=.1);this.userSeek_(i)}}},{key:"enable",value:function(){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"enable",this).call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()}},{key:"disable",value:function(){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disable",this).call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()}},{key:"handleMouseUp",value:function(e){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseUp",this).call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?ve(this.player_.play()):this.update_()}},{key:"stepForward",value:function(){this.userSeek_(this.player_.currentTime()+5)}},{key:"stepBack",value:function(){this.userSeek_(this.player_.currentTime()-5)}},{key:"handleAction",value:function(e){this.player_.paused()?this.player_.play():this.player_.pause()}},{key:"handleKeyDown",value:function(e){var i=this.player_.liveTracker;if(We.a.isEventKey(e,"Space")||We.a.isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(We.a.isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(We.a.isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(We()(e))){e.preventDefault(),e.stopPropagation();var n=10*(We.a.codes[We()(e)]-We.a.codes[0])/100;i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else We.a.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):We.a.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"dispose",value:function(){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 qe.a&&"visibilityState"in qe.a&&this.off(qe.a,"visibilitychange",this.toggleVisibility_),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Zn);ar.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Zt||Rt||ar.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Bi.registerComponent("SeekBar",ar);var sr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleMouseMove=yi(gi(n,n.handleMouseMove),mi),n.throttledHandleMouseSeek=yi(gi(n,n.handleMouseSeek),mi),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.handleMouseDownHandler_=function(e){return n.handleMouseDown(e)},n.enable(),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-progress-control vjs-control"})}},{key:"handleMouseMove",value:function(e){var t=this.getChild("seekBar");if(t){var i=t.getChild("playProgressBar"),n=t.getChild("mouseTimeDisplay");if(i||n){var r=t.el(),a=R(r),s=B(r,e).x;s=Ie(s,0,1),n&&n.update(a,s),i&&i.update(a,t.getProgress())}}}},{key:"handleMouseSeek",value:function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)}},{key:"enabled",value:function(){return this.enabled_}},{key:"disable",value:function(){if(this.children().forEach(function(e){return 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())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&ve(this.player_.play())}}},{key:"enable",value:function(){this.children().forEach(function(e){return 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)}},{key:"removeListenersAddedOnMousedownAndTouchstart",value:function(){var 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_)}},{key:"handleMouseDown",value:function(e){var 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_)}},{key:"handleMouseUp",value:function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}]),t}(Bi);sr.prototype.options_={children:["seekBar"]},Bi.registerComponent("ProgressControl",sr);var or=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,["enterpictureinpicture","leavepictureinpicture"],function(e){return n.handlePictureInPictureChange(e)}),n.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(e){return n.handlePictureInPictureEnabledChange(e)}),n.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],function(){"audio"===e.currentType().substring(0,5)||e.audioPosterMode()||e.audioOnlyMode()?(e.isInPictureInPicture()&&e.exitPictureInPicture(),n.hide()):n.show()}),n.disable(),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-picture-in-picture-control "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handlePictureInPictureEnabledChange",value:function(){qe.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()}},{key:"handlePictureInPictureChange",value:function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()}},{key:"handleClick",value:function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}}]),t}(Fn);or.prototype.controlText_="Picture-in-Picture",Bi.registerComponent("PictureInPictureToggle",or);var lr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,"fullscreenchange",function(e){return n.handleFullscreenChange(e)}),!1===qe.a[e.fsApi_.fullscreenEnabled]&&n.disable(),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-fullscreen-control "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleFullscreenChange",value:function(e){this.player_.isFullscreen()?this.controlText("Exit Fullscreen"):this.controlText("Fullscreen")}},{key:"handleClick",value:function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}]),t}(Fn);lr.prototype.controlText_="Fullscreen",Bi.registerComponent("FullscreenToggle",lr);var ur=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")})},dr=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-level"});return e.appendChild(pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"span",{className:"vjs-control-text"})),e}}]),t}(Bi);Bi.registerComponent("VolumeLevel",dr);var cr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=yi(gi(n,n.update),mi),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}},{key:"update",value:function(e,t,i,n){if(!i){var r=N(this.el_),a=N(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),u=r.width/2;o<u?u+=u-o:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),this.el_.style.right="-"+u+"px"}this.write(n+"%")}},{key:"write",value:function(e){S(this.el_,e)}},{key:"updateVolume",value:function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,i,n.toFixed(0)),r&&r()})}}]),t}(Bi);Bi.registerComponent("VolumeLevelTooltip",cr);var pr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.update=yi(gi(n,n.update),mi),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-mouse-display"})}},{key:"update",value:function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})}}]),t}(Bi);pr.prototype.options_={children:["volumeLevelTooltip"]},Bi.registerComponent("MouseVolumeLevelDisplay",pr);var hr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on("slideractive",function(e){return n.updateLastVolume_(e)}),n.on(e,"volumechange",function(e){return n.updateARIAAttributes(e)}),e.ready(function(){return n.updateARIAAttributes()}),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}},{key:"handleMouseDown",value:function(e){q(e)&&pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleMouseDown",this).call(this,e)}},{key:"handleMouseMove",value:function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var i=this.el(),n=N(i),r=this.vertical(),a=B(i,e);a=r?a.y:a.x,a=Ie(a,0,1),t.update(n,a,r)}q(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}},{key:"checkMuted",value:function(){this.player_.muted()&&this.player_.muted(!1)}},{key:"getPercent",value:function(){return this.player_.muted()?0:this.player_.volume()}},{key:"stepForward",value:function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}},{key:"stepBack",value:function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}},{key:"updateARIAAttributes",value:function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}},{key:"volumeAsPercentage_",value:function(){return Math.round(100*this.player_.volume())}},{key:"updateLastVolume_",value:function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})}}]),t}(Zn);hr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Zt||Rt||hr.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),hr.prototype.playerEvent="volumechange",Bi.registerComponent("VolumeBar",hr);var fr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),i.vertical=i.vertical||!1,(void 0===i.volumeBar||h(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return ur(n,e),n.throttledHandleMouseMove=yi(gi(n,n.handleMouseMove),mi),n.handleMouseUpHandler_=function(e){return n.handleMouseUp(e)},n.on("mousedown",function(e){return n.handleMouseDown(e)}),n.on("touchstart",function(e){return n.handleMouseDown(e)}),n.on("mousemove",function(e){return n.handleMouseMove(e)}),n.on(n.volumeBar,["focus","slideractive"],function(){n.volumeBar.addClass("vjs-slider-active"),n.addClass("vjs-slider-active"),n.trigger("slideractive")}),n.on(n.volumeBar,["blur","sliderinactive"],function(){n.volumeBar.removeClass("vjs-slider-active"),n.removeClass("vjs-slider-active"),n.trigger("sliderinactive")}),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-control vjs-control "+e})}},{key:"handleMouseDown",value:function(e){var 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_)}},{key:"handleMouseUp",value:function(e){var 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_)}},{key:"handleMouseMove",value:function(e){this.volumeBar.handleMouseMove(e)}}]),t}(Bi);fr.prototype.options_={children:["volumeBar"]},Bi.registerComponent("VolumeControl",fr);var vr=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")})},mr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return vr(n,e),n.on(e,["loadstart","volumechange"],function(e){return n.update(e)}),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-mute-control "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"handleClick",value:function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();if(0===t){var n=i<.1?.1:i;this.player_.volume(n),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}},{key:"update",value:function(e){this.updateIcon_(),this.updateControlText_()}},{key:"updateIcon_",value:function(){var e=this.player_.volume(),t=3;Zt&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2),C(this.el_,[0,1,2,3].reduce(function(e,t){return e+(t?" ":"")+"vjs-vol-"+t},"")),k(this.el_,"vjs-vol-"+t)}},{key:"updateControlText_",value:function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)}}]),t}(Fn);mr.prototype.controlText_="Mute",Bi.registerComponent("MuteToggle",mr);var gr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t),void 0!==i.inline?i.inline=i.inline:i.inline=!0,(void 0===i.volumeControl||h(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.handleKeyPressHandler_=function(e){return n.handleKeyPress(e)},n.on(e,["loadstart"],function(e){return n.volumePanelState_(e)}),n.on(n.muteToggle,"keyup",function(e){return n.handleKeyPress(e)}),n.on(n.volumeControl,"keyup",function(e){return n.handleVolumeControlKeyUp(e)}),n.on("keydown",function(e){return n.handleKeyPress(e)}),n.on("mouseover",function(e){return n.handleMouseOver(e)}),n.on("mouseout",function(e){return n.handleMouseOut(e)}),n.on(n.volumeControl,["slideractive"],n.sliderActive_),n.on(n.volumeControl,["sliderinactive"],n.sliderInactive_),n}return s(t,e),ft(t,[{key:"sliderActive_",value:function(){this.addClass("vjs-slider-active")}},{key:"sliderInactive_",value:function(){this.removeClass("vjs-slider-active")}},{key:"volumePanelState_",value:function(){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")}},{key:"createEl",value:function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-volume-panel vjs-control "+e})}},{key:"dispose",value:function(){this.handleMouseOut(),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"handleVolumeControlKeyUp",value:function(e){We.a.isEventKey(e,"Esc")&&this.muteToggle.focus()}},{key:"handleMouseOver",value:function(e){this.addClass("vjs-hover"),J(qe.a,"keyup",this.handleKeyPressHandler_)}},{key:"handleMouseOut",value:function(e){this.removeClass("vjs-hover"),Z(qe.a,"keyup",this.handleKeyPressHandler_)}},{key:"handleKeyPress",value:function(e){We.a.isEventKey(e,"Esc")&&this.handleMouseOut()}}]),t}(Bi);gr.prototype.options_={children:["muteToggle","volumeControl"]},Bi.registerComponent("VolumePanel",gr);var yr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return i&&(n.menuButton_=i.menuButton),n.focusedChild_=-1,n.on("keydown",function(e){return n.handleKeyDown(e)}),n.boundHandleBlur_=function(e){return n.handleBlur(e)},n.boundHandleTapClick_=function(e){return n.handleTapClick(e)},n}return s(t,e),ft(t,[{key:"addEventListenerForItem",value:function(e){e instanceof Bi&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}},{key:"removeEventListenerForItem",value:function(e){e instanceof Bi&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}},{key:"removeChild",value:function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e)}},{key:"addItem",value:function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)}},{key:"createEl",value:function(){var e=this.options_.contentElType||"ul";this.contentEl_=_(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var i=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return i.appendChild(this.contentEl_),J(i,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),i}},{key:"dispose",value:function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"handleBlur",value:function(e){var t=e.relatedTarget||qe.a.activeElement;if(!this.children().some(function(e){return e.el()===t})){var i=this.menuButton_;i&&i.buttonPressed_&&t!==i.el().firstChild&&i.unpressButton()}}},{key:"handleTapClick",value:function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var i=t.filter(function(t){return t.el()===e.target})[0];if(!i)return;"CaptionSettingsMenuItem"!==i.name()&&this.menuButton_.focus()}}},{key:"handleKeyDown",value:function(e){We.a.isEventKey(e,"Left")||We.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(We.a.isEventKey(e,"Right")||We.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}},{key:"stepForward",value:function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}},{key:"stepBack",value:function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())}}]),t}(Bi);Bi.registerComponent("Menu",yr);var br=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));n.menuButton_=new Fn(e,i),n.menuButton_.controlText(n.controlText_),n.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Fn.prototype.buildCSSClass();n.menuButton_.el_.className=n.buildCSSClass()+" "+r,n.menuButton_.removeClass("vjs-control"),n.addChild(n.menuButton_),n.update(),n.enabled_=!0;var s=function(e){return n.handleClick(e)};return n.handleMenuKeyUp_=function(e){return n.handleMenuKeyUp(e)},n.on(n.menuButton_,"tap",s),n.on(n.menuButton_,"click",s),n.on(n.menuButton_,"keydown",function(e){return n.handleKeyDown(e)}),n.on(n.menuButton_,"mouseenter",function(){n.addClass("vjs-hover"),n.menu.show(),J(qe.a,"keyup",n.handleMenuKeyUp_)}),n.on("mouseleave",function(e){return n.handleMouseLeave(e)}),n.on("keydown",function(e){return n.handleSubmenuKeyDown(e)}),n}return s(t,e),ft(t,[{key:"update",value:function(){var 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"))}},{key:"createMenu",value:function(){var e=new yr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=_("li",{className:"vjs-menu-title",textContent:Li(this.options_.title),tabIndex:-1}),i=new Bi(this.player_,{el:t});e.addItem(i)}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e}},{key:"createItems",value:function(){}},{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:this.buildWrapperCSSClass()},{})}},{key:"buildWrapperCSSClass",value:function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+Fn.prototype.buildCSSClass()+" "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildCSSClass",value:function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)}},{key:"dispose",value:function(){this.handleMouseLeave(),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"handleClick",value:function(e){this.buttonPressed_?this.unpressButton():this.pressButton()}},{key:"handleMouseLeave",value:function(e){this.removeClass("vjs-hover"),Z(qe.a,"keyup",this.handleMenuKeyUp_)}},{key:"focus",value:function(){this.menuButton_.focus()}},{key:"blur",value:function(){this.menuButton_.blur()}},{key:"handleKeyDown",value:function(e){We.a.isEventKey(e,"Esc")||We.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),We.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(We.a.isEventKey(e,"Up")||We.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}},{key:"handleMenuKeyUp",value:function(e){(We.a.isEventKey(e,"Esc")||We.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}},{key:"handleSubmenuKeyPress",value:function(e){this.handleSubmenuKeyDown(e)}},{key:"handleSubmenuKeyDown",value:function(e){(We.a.isEventKey(e,"Esc")||We.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),We.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}},{key:"pressButton",value:function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Zt&&w())return;this.menu.focus()}}},{key:"unpressButton",value:function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}},{key:"disable",value:function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}},{key:"enable",value:function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}]),t}(Bi);Bi.registerComponent("MenuButton",br);var wr=function(e){function t(e,i){o(this,t);var n=i.tracks,r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));if(r.items.length<=1&&r.hide(),!n)return a(r);var s=gi(r,r.update);return n.addEventListener("removetrack",s),n.addEventListener("addtrack",s),n.addEventListener("labelchange",s),r.player_.on("ready",s),r.player_.on("dispose",function(){n.removeEventListener("removetrack",s),n.removeEventListener("addtrack",s),n.removeEventListener("labelchange",s)}),r}return s(t,e),t}(br);Bi.registerComponent("TrackButton",wr);var Tr=["Tab","Esc","Up","Down","Right","Left"],_r=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.selectable=i.selectable,n.isSelected_=i.selected||!1,n.multiSelectable=i.multiSelectable,n.selected(n.isSelected_),n.selectable?n.multiSelectable?n.el_.setAttribute("role","menuitemcheckbox"):n.el_.setAttribute("role","menuitemradio"):n.el_.setAttribute("role","menuitem"),n}return s(t,e),ft(t,[{key:"createEl",value:function(e,i,n){this.nonIconControl=!0;var r=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"li",Object.assign({className:"vjs-menu-item",tabIndex:-1},i),n);return r.replaceChild(_("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r}},{key:"handleKeyDown",value:function(e){Tr.some(function(t){return We.a.isEventKey(e,t)})||pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleKeyDown",this).call(this,e)}},{key:"handleClick",value:function(e){this.selected(!0)}},{key:"selected",value:function(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))}}]),t}(Nn);Bi.registerComponent("MenuItem",_r);var Sr=function(e){function t(e,i){o(this,t);var n=i.track,r=e.textTracks();i.label=n.label||n.language||"Unknown",i.selected="showing"===n.mode;var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));s.track=n,s.kinds=(i.kinds||[i.kind||s.track.kind]).filter(Boolean);var l=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s.handleTracksChange.apply(s,t)},u=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s.handleSelectedLanguageChange.apply(s,t)};if(e.on(["loadstart","texttrackchange"],l),r.addEventListener("change",l),r.addEventListener("selectedlanguagechange",u),s.on("dispose",function(){e.off(["loadstart","texttrackchange"],l),r.removeEventListener("change",l),r.removeEventListener("selectedlanguagechange",u)}),void 0===r.onchange){var d=void 0;s.on(["tap","click"],function(){if("object"!==vt(He.a.Event))try{d=new He.a.Event("change")}catch(e){}d||(d=qe.a.createEvent("Event"),d.initEvent("change",!0,!0)),r.dispatchEvent(d)})}return s.handleTracksChange(),s}return s(t,e),ft(t,[{key:"handleClick",value:function(e){var i=this.track,n=this.player_.textTracks();if(pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this,e),n)for(var r=0;r<n.length;r++){var a=n[r];-1!==this.kinds.indexOf(a.kind)&&(a===i?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}}},{key:"handleTracksChange",value:function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}},{key:"handleSelectedLanguageChange",value:function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}},{key:"dispose",value:function(){this.track=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(_r);Bi.registerComponent("TextTrackMenuItem",Sr);var xr=function(e){function t(e,i){return o(this,t),i.track={player:e,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i))}return s(t,e),ft(t,[{key:"handleTracksChange",value:function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)}},{key:"handleSelectedLanguageChange",value:function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})}}]),t}(Sr);Bi.registerComponent("OffTextTrackMenuItem",xr);var Er=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),i.tracks=e.textTracks(),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i))}return s(t,e),ft(t,[{key:"createItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sr,i=void 0;this.label_&&(i=this.label_+" off"),e.push(new xr(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var a=n[r];if(this.kinds_.indexOf(a.kind)>-1){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e}}]),t}(wr);Bi.registerComponent("TextTrackButton",Er);var kr=function(e){function t(e,i){o(this,t);var n=i.track,r=i.cue,s=e.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=r.text,i.selected=r.startTime<=s&&s<r.endTime;var l=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return l.track=n,l.cue=r,l}return s(t,e),ft(t,[{key:"handleClick",value:function(e){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this),this.player_.currentTime(this.cue.startTime)}}]),t}(_r);Bi.registerComponent("ChaptersTrackMenuItem",kr);var Cr=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));return r.selectCurrentItem_=function(){r.items.forEach(function(e){e.selected(r.track_.activeCues[0]===e.cue)})},r}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-chapters-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-chapters-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"update",value:function(e){if(!e||!e.track||"chapters"===e.track.kind){var i=this.findChaptersTrack();i!==this.track_?(this.setTrack(i),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this)):(!this.items||i&&i.cues&&i.cues.length!==this.items.length)&&pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this)}}},{key:"setTrack",value:function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var i=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);i&&i.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}},{key:"findChaptersTrack",value:function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var i=e[t];if(i.kind===this.kind_)return i}}},{key:"getMenuCaption",value:function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Li(this.kind_))}},{key:"createMenu",value:function(){return this.options_.title=this.getMenuCaption(),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createMenu",this).call(this)}},{key:"createItems",value:function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],a=new kr(this.player_,{track:this.track_,cue:r});e.push(a)}return e}}]),t}(Er);Cr.prototype.kind_="chapters",Cr.prototype.controlText_="Chapters",Bi.registerComponent("ChaptersButton",Cr);var Or=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n)),s=e.textTracks(),l=gi(r,r.handleTracksChange);return s.addEventListener("change",l),r.on("dispose",function(){s.removeEventListener("change",l)}),r}return s(t,e),ft(t,[{key:"handleTracksChange",value:function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()}},{key:"buildCSSClass",value:function(){return"vjs-descriptions-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-descriptions-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}}]),t}(Er);Or.prototype.kind_="descriptions",Or.prototype.controlText_="Descriptions",Bi.registerComponent("DescriptionsButton",Or);var Pr=function(e){function t(e,i,n){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n))}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-subtitles-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-subtitles-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}}]),t}(Er);Pr.prototype.kind_="subtitles",Pr.prototype.controlText_="Subtitles",Bi.registerComponent("SubtitlesButton",Pr);var jr=function(e){function t(e,i){o(this,t),i.track={player:e,kind:i.kind,label:i.kind+" settings",selectable:!1,default:!1,mode:"disabled"},i.selectable=!1,i.name="CaptionSettingsMenuItem";var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.addClass("vjs-texttrack-settings"),n.controlText(", opens "+i.kind+" settings dialog"),n}return s(t,e),ft(t,[{key:"handleClick",value:function(e){this.player().getChild("textTrackSettings").open()}}]),t}(Sr);Bi.registerComponent("CaptionSettingsMenuItem",jr);var Ir=function(e){function t(e,i,n){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n))}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-captions-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-captions-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new jr(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createItems",this).call(this,e)}}]),t}(Er);Ir.prototype.kind_="captions",Ir.prototype.controlText_="Captions",Bi.registerComponent("CaptionsButton",Ir);var Ar=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"createEl",value:function(e,i,n){var r=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(_("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(_("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r}}]),t}(Sr);Bi.registerComponent("SubsCapsMenuItem",Ar);var Mr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(n.player_.language_)>-1&&(n.label_="captions"),n.menuButton_.controlText(Li(n.label_)),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-subs-caps-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-subs-caps-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new jr(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createItems",this).call(this,e,Ar)}}]),t}(Er);Mr.prototype.kinds_=["captions","subtitles"],Mr.prototype.controlText_="Subtitles",Bi.registerComponent("SubsCapsButton",Mr);var Dr=function(e){function t(e,i){o(this,t);var n=i.track,r=e.audioTracks();i.label=n.label||n.language||"Unknown",i.selected=n.enabled;var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));s.track=n,s.addClass("vjs-"+n.kind+"-menu-item");var l=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];s.handleTracksChange.apply(s,t)};return r.addEventListener("change",l),s.on("dispose",function(){r.removeEventListener("change",l)}),s}return s(t,e),ft(t,[{key:"createEl",value:function(e,i,n){var r=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(_("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(_("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}},{key:"handleClick",value:function(e){if(pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this,e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var i=this.player_.audioTracks(),n=0;n<i.length;n++){var r=i[n];r!==this.track&&(r.enabled=r===this.track)}}},{key:"handleTracksChange",value:function(e){this.selected(this.track.enabled)}}]),t}(_r);Bi.registerComponent("AudioTrackMenuItem",Dr);var Lr=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(this,t),i.tracks=e.audioTracks(),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i))}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-audio-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-audio-button "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new Dr(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e}}]),t}(wr);Lr.prototype.controlText_="Audio Track",Bi.registerComponent("AudioTrackButton",Lr);var Nr=function(e){function t(e,i){o(this,t);var n=i.rate,r=parseFloat(n,10);i.label=n,i.selected=r===e.playbackRate(),i.selectable=!0,i.multiSelectable=!1;var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return s.label=n,s.rate=r,s.on(e,"ratechange",function(e){return s.update(e)}),s}return s(t,e),ft(t,[{key:"handleClick",value:function(e){pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleClick",this).call(this),this.player().playbackRate(this.rate)}},{key:"update",value:function(e){this.selected(this.player().playbackRate()===this.rate)}}]),t}(_r);Nr.prototype.contentElType="button",Bi.registerComponent("PlaybackRateMenuItem",Nr);var Rr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.menuButton_.el_.setAttribute("aria-describedby",n.labelElId_),n.updateVisibility(),n.updateLabel(),n.on(e,"loadstart",function(e){return n.updateVisibility(e)}),n.on(e,"ratechange",function(e){return n.updateLabel(e)}),n.on(e,"playbackrateschange",function(e){return n.handlePlaybackRateschange(e)}),n}return s(t,e),ft(t,[{key:"createEl",value:function(){var e=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=_("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}},{key:"dispose",value:function(){this.labelEl_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"buildCSSClass",value:function(){return"vjs-playback-rate "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"buildWrapperCSSClass",value:function(){return"vjs-playback-rate "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildWrapperCSSClass",this).call(this)}},{key:"createItems",value:function(){for(var e=this.playbackRates(),t=[],i=e.length-1;i>=0;i--)t.push(new Nr(this.player(),{rate:e[i]+"x"}));return t}},{key:"handlePlaybackRateschange",value:function(e){this.update()}},{key:"playbackRates",value:function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]}},{key:"playbackRateSupported",value:function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}},{key:"updateVisibility",value:function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}},{key:"updateLabel",value:function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}]),t}(br);Rr.prototype.controlText_="Playback Rate",Bi.registerComponent("PlaybackRateMenuButton",Rr);var Br=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-spacer "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"createEl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.className||(i.className=this.buildCSSClass()),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,e,i,n)}}]),t}(Bi);Bi.registerComponent("Spacer",Br);var zr=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-custom-control-spacer "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:this.buildCSSClass(),textContent:" "})}}]),t}(Br);Bi.registerComponent("CustomControlSpacer",zr);var Ur=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div",{className:"vjs-control-bar",dir:"ltr"})}}]),t}(Bi);Ur.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in qe.a&&Ur.prototype.options_.children.splice(Ur.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Bi.registerComponent("ControlBar",Ur);var Fr=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on(e,"error",function(e){return n.open(e)}),n}return s(t,e),ft(t,[{key:"buildCSSClass",value:function(){return"vjs-error-display "+pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)}},{key:"content",value:function(){var e=this.player().error();return e?this.localize(e.message):""}}]),t}($i);Fr.prototype.options_=Object.assign({},$i.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Bi.registerComponent("ErrorDisplay",Fr);var Hr=["#000","Black"],Vr=["#00F","Blue"],qr=["#0FF","Cyan"],Gr=["#0F0","Green"],Wr=["#F0F","Magenta"],Xr=["#F00","Red"],$r=["#FFF","White"],Yr=["#FF0","Yellow"],Kr=["1","Opaque"],Qr=["0.5","Semi-Transparent"],Jr=["0","Transparent"],Zr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Hr,$r,Xr,Gr,Vr,Yr,Wr,qr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Kr,Qr,Jr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[$r,Hr,Xr,Gr,Vr,Yr,Wr,qr]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},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:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Kr,Qr]},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:"Transparency",options:[Jr,Qr,Kr]}};Zr.windowColor.options=Zr.backgroundColor.options;var ea=function(e){function t(e,i){o(this,t),i.temporary=!1;var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.updateDisplay=n.updateDisplay.bind(n),n.fill(),n.hasBeenOpened_=n.hasBeenFilled_=!0,n.endDialog=_("p",{className:"vjs-control-text",textContent:n.localize("End of dialog window.")}),n.el().appendChild(n.endDialog),n.setDefaults(),void 0===i.persistTextTrackSettings&&(n.options_.persistTextTrackSettings=n.options_.playerOptions.persistTextTrackSettings),n.on(n.$(".vjs-done-button"),"click",function(){n.saveSettings(),n.close()}),n.on(n.$(".vjs-default-button"),"click",function(){n.setDefaults(),n.updateDisplay()}),d(Zr,function(e){n.on(n.$(e.selector),"change",n.updateDisplay)}),n.options_.persistTextTrackSettings&&n.restoreSettings(),n}return s(t,e),ft(t,[{key:"dispose",value:function(){this.endDialog=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"createElSelect_",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",r=Zr[e],a=r.id.replace("%s",this.id_),s=[i,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map(function(e){var i=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+i+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+i+'">',t.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")}},{key:"createElFgColor_",value:function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}},{key:"createElBgColor_",value:function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}},{key:"createElWinColor_",value:function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}},{key:"createElColors_",value:function(){return _("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}},{key:"createElFont_",value:function(){return _("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("")})}},{key:"createElControls_",value:function(){var e=this.localize("restore all settings to the default values");return _("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("")})}},{key:"content",value:function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}},{key:"label",value:function(){return this.localize("Caption Settings Dialog")}},{key:"description",value:function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}},{key:"buildCSSClass",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildCSSClass",this).call(this)+" vjs-text-track-settings"}},{key:"getValues",value:function(){var e=this;return c(Zr,function(t,i,n){var r=Me(e.$(i.selector),i.parser);return void 0!==r&&(t[n]=r),t},{})}},{key:"setValues",value:function(e){var t=this;d(Zr,function(i,n){De(t.$(i.selector),e[n],i.parser)})}},{key:"setDefaults",value:function(){var e=this;d(Zr,function(t){var i=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=i})}},{key:"restoreSettings",value:function(){var e=void 0;try{e=JSON.parse(He.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){jt.warn(e)}e&&this.setValues(e)}},{key:"saveSettings",value:function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?He.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):He.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){jt.warn(e)}}}},{key:"updateDisplay",value:function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}},{key:"conditionalBlur_",value:function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,i=e&&e.captionsButton;t?t.focus():i&&i.focus()}}]),t}($i);Bi.registerComponent("TextTrackSettings",ea);var ta=function(e){function t(e,i){o(this,t);var n=i.ResizeObserver||He.a.ResizeObserver;null===i.ResizeObserver&&(n=!1);var r=f({createEl:!n,reportTouchActivity:!1},i),s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return s.ResizeObserver=i.ResizeObserver||He.a.ResizeObserver,s.loadListener_=null,s.resizeObserver_=null,s.debouncedHandler_=bi(function(){s.resizeHandler()},100,!1,s),n?(s.resizeObserver_=new s.ResizeObserver(s.debouncedHandler_),s.resizeObserver_.observe(e.el())):(s.loadListener_=function(){if(s.el_&&s.el_.contentWindow){var e=s.debouncedHandler_,t=s.unloadListener_=function(){Z(this,"resize",e),Z(this,"unload",t),t=null};J(s.el_.contentWindow,"unload",t),J(s.el_.contentWindow,"resize",e)}},s.one("load",s.loadListener_)),s}return s(t,e),ft(t,[{key:"createEl",value:function(){return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}},{key:"resizeHandler",value:function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}},{key:"dispose",value:function(){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,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Bi);Bi.registerComponent("ResizeManager",ta);var ia={trackingThreshold:20,liveTolerance:15},na=function(e){function t(e,i){o(this,t);var n=f(ia,i,{createEl:!1}),r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(e){return r.handlePlay(e)},r.handleFirstTimeupdate_=function(e){return r.handleFirstTimeupdate(e)},r.handleSeeked_=function(e){return r.handleSeeked(e)},r.seekToLiveEdge_=function(e){return r.seekToLiveEdge(e)},r.reset_(),r.on(r.player_,"durationchange",function(e){return r.handleDurationchange(e)}),r.on(r.player_,"canplay",function(){return r.toggleTracking()}),r}return s(t,e),ft(t,[{key:"trackLive_",value:function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(He.a.performance.now().toFixed(4)),i=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+i;var n=this.liveCurrentTime(),r=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(n-r)>this.options_.liveTolerance;this.timeupdateSeen_&&n!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}}},{key:"handleDurationchange",value:function(){this.toggleTracking()}},{key:"toggleTracking",value:function(){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())}},{key:"startTracking",value:function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,mi),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_)))}},{key:"handleFirstTimeupdate",value:function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}},{key:"handleSeeked",value:function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}},{key:"handlePlay",value:function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}},{key:"reset_",value:function(){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_)}},{key:"nextSeekedFromUser",value:function(){this.nextSeekedFromUser_=!0}},{key:"stopTracking",value:function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}},{key:"seekableEnd",value:function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0}},{key:"seekableStart",value:function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}},{key:"liveWindow",value:function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}},{key:"isLive",value:function(){return this.isTracking()}},{key:"atLiveEdge",value:function(){return!this.behindLiveEdge()}},{key:"liveCurrentTime",value:function(){return this.pastSeekEnd()+this.seekableEnd()}},{key:"pastSeekEnd",value:function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}},{key:"behindLiveEdge",value:function(){return this.behindLiveEdge_}},{key:"isTracking",value:function(){return"number"==typeof this.trackingInterval_}},{key:"seekToLiveEdge",value:function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}},{key:"dispose",value:function(){this.stopTracking(),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Bi);Bi.registerComponent("LiveTracker",na);var ra=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.on("statechanged",function(e){return n.updateDom_()}),n.updateDom_(),n}return s(t,e),ft(t,[{key:"createEl",value:function(){return this.els={title:_("div",{className:"vjs-title-bar-title",id:"vjs-title-bar-title-"+$()}),description:_("div",{className:"vjs-title-bar-description",id:"vjs-title-bar-description-"+$()})},_("div",{className:"vjs-title-bar"},{},Object.values(this.els))}},{key:"updateDom_",value:function(){var e=this,t=this.player_.tech_,i=t&&t.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(function(t){var r=e.state[t],a=e.els[t],s=n[t];U(a),r&&S(a,r),i&&(i.removeAttribute(s),r&&i.setAttribute(s,a.id))}),this.state.title||this.state.description?this.show():this.hide()}},{key:"update",value:function(e){this.setState(e)}},{key:"dispose",value:function(){var e=this.player_.tech_,i=e&&e.el_;i&&(i.removeAttribute("aria-labelledby"),i.removeAttribute("aria-describedby")),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this),this.els=null}}]),t}(Bi);Bi.registerComponent("TitleBar",ra);var aa=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var i=e.$$("source"),n=[],r="";if(!i.length)return!1;for(var a=0;a<i.length;a++){var s=i[a].src;s&&-1===n.indexOf(s)&&n.push(s)}return!!n.length&&(1===n.length&&(r=n[0]),e.triggerSourceset(r),!0)},sa=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=qe.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=qe.a.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",He.a.Element.prototype.appendChild.call(this,i),this.innerHTML}}),oa=function(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i},la=function(e){return oa([e.el(),He.a.HTMLMediaElement.prototype,He.a.Element.prototype,sa],"innerHTML")},ua=function(e){var t=e.el();if(!t.resetSourceWatch_){var i={},n=la(e),r=function(i){return function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];var s=i.apply(t,r);return aa(e),s}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(i[e]=t[e],t[e]=r(i[e]))}),Object.defineProperty(t,"innerHTML",f(n,{set:r(n.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(i).forEach(function(e){t[e]=i[e]}),Object.defineProperty(t,"innerHTML",n)},e.one("sourceset",t.resetSourceWatch_)}},da=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?cn(He.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return He.a.Element.prototype.setAttribute.call(this,"src",e),e}}),ca=function(e){return oa([e.el(),He.a.HTMLMediaElement.prototype,da],"src")},pa=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var i=ca(e),n=t.setAttribute,r=t.load;Object.defineProperty(t,"src",f(i,{set:function(n){var r=i.set.call(t,n);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(i,r){var a=n.call(t,i,r);return/src/i.test(i)&&e.triggerSourceset(t.src),a},t.load=function(){var i=r.call(t);return aa(e)||(e.triggerSourceset(""),ua(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):aa(e)||ua(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=n,Object.defineProperty(t,"src",i),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},ha=function(e){function t(e,i){o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i)),r=e.source,s=!1;if(n.featuresVideoFrameCallback=n.featuresVideoFrameCallback&&"VIDEO"===n.el_.tagName,r&&(n.el_.currentSrc!==r.src||e.tag&&3===e.tag.initNetworkState_)?n.setSource(r):n.handleLateInit_(n.el_),e.enableSourceset&&n.setupSourcesetHandling_(),n.isScrubbing_=!1,n.el_.hasChildNodes()){for(var l=n.el_.childNodes,u=l.length,d=[];u--;){var c=l[u];"track"===c.nodeName.toLowerCase()&&(n.featuresNativeTextTracks?(n.remoteTextTrackEls().addTrackElement_(c),n.remoteTextTracks().addTrack(c.track),n.textTracks().addTrack(c.track),s||n.el_.hasAttribute("crossorigin")||!hn(c.src)||(s=!0)):d.push(c))}for(var p=0;p<d.length;p++)n.el_.removeChild(d[p])}return n.proxyNativeTracks_(),n.featuresNativeTextTracks&&s&&jt.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),n.restoreMetadataTracksInIOSNativePlayer_(),(Kt||Yt)&&!0===e.nativeControlsForTouch&&n.setControls(!0),n.proxyWebkitFullscreen_(),n.triggerReady(),n}return s(t,e),ft(t,[{key:"dispose",value:function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"setupSourcesetHandling_",value:function(){pa(this)}},{key:"restoreMetadataTracksInIOSNativePlayer_",value:function(){var e=this.textTracks(),t=void 0,i=function(){t=[];for(var i=0;i<e.length;i++){var n=e[i];"metadata"===n.kind&&t.push({track:n,storedMode:n.mode})}};i(),e.addEventListener("change",i),this.on("dispose",function(){return e.removeEventListener("change",i)});var n=function i(){for(var n=0;n<t.length;n++){var r=t[n];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",i),e.removeEventListener("change",n),e.addEventListener("change",n)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",n)})}},{key:"overrideNative_",value:function(e,t){var i=this;if(t===this["featuresNative"+e+"Tracks"]){var n=e.toLowerCase();this[n+"TracksListeners_"]&&Object.keys(this[n+"TracksListeners_"]).forEach(function(e){i.el()[n+"Tracks"].removeEventListener(e,i[n+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[n+"TracksListeners_"]=null,this.proxyNativeTracksForType_(n)}}},{key:"overrideNativeAudioTracks",value:function(e){this.overrideNative_("Audio",e)}},{key:"overrideNativeVideoTracks",value:function(e){this.overrideNative_("Video",e)}},{key:"proxyNativeTracksForType_",value:function(e){var t=this,i=Tn[e],n=this.el()[i.getterName],r=this[i.getterName]();if(this["featuresNative"+i.capitalName+"Tracks"]&&n&&n.addEventListener){var a={change:function(i){var n={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(n),"text"===e&&t[_n.remoteText.getterName]().trigger(n)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<r.length;t++){for(var i=!1,a=0;a<n.length;a++)if(n[a]===r[t]){i=!0;break}i||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[i.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(e){var i=a[e];n.addEventListener(e,i),t.on("dispose",function(t){return n.removeEventListener(e,i)})}),this.on("loadstart",s),this.on("dispose",function(e){return t.off("loadstart",s)})}}},{key:"proxyNativeTracks_",value:function(){var e=this;Tn.names.forEach(function(t){e.proxyNativeTracksForType_(t)})}},{key:"createEl",value:function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),t.disposeMediaElement(e),e=i}else{e=qe.a.createElement("video");var n=this.options_.tag&&j(this.options_.tag),r=f({},n);Kt&&!0===this.options_.nativeControlsForTouch||delete r.controls,P(e,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&A(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var a=["loop","muted","playsinline","autoplay"],s=0;s<a.length;s++){var o=a[s],l=this.options_[o];void 0!==l&&(l?A(e,o,o):M(e,o),e[o]=l)}return e}},{key:"handleLateInit_",value:function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}}},{key:"setScrubbing",value:function(e){this.isScrubbing_=e}},{key:"scrubbing",value:function(){return this.isScrubbing_}},{key:"setCurrentTime",value:function(e){try{this.isScrubbing_&&this.el_.fastSeek&&ei?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){jt(e,"Video is not ready. (Video.js)")}}},{key:"duration",value:function(){var e=this;if(this.el_.duration===1/0&&Rt&&Ht&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN}},{key:"width",value:function(){return this.el_.offsetWidth}},{key:"height",value:function(){return this.el_.offsetHeight}},{key:"proxyWebkitFullscreen_",value:function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},i=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",i),this.on("dispose",function(){e.off("webkitbeginfullscreen",i),e.off("webkitendfullscreen",t)})}}},{key:"supportsFullScreen",value:function(){return"function"==typeof this.el_.webkitEnterFullScreen}},{key:"enterFullScreen",value:function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)ve(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}},{key:"exitFullScreen",value:function(){if(!this.el_.webkitDisplayingFullscreen)return void this.trigger("fullscreenerror",new Error("The video is not fullscreen"));this.el_.webkitExitFullScreen()}},{key:"requestPictureInPicture",value:function(){return this.el_.requestPictureInPicture()}},{key:"requestVideoFrameCallback",value:function(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"requestVideoFrameCallback",this).call(this,e)}},{key:"cancelVideoFrameCallback",value:function(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"cancelVideoFrameCallback",this).call(this,e)}},{key:"src",value:function(e){if(void 0===e)return this.el_.src;this.setSrc(e)}},{key:"reset",value:function(){t.resetMediaElement(this.el_)}},{key:"currentSrc",value:function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}},{key:"setControls",value:function(e){this.el_.controls=!!e}},{key:"addTextTrack",value:function(e,i,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,i,n):pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addTextTrack",this).call(this,e,i,n)}},{key:"createRemoteTextTrack",value:function(e){if(!this.featuresNativeTextTracks)return pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createRemoteTextTrack",this).call(this,e);var i=qe.a.createElement("track");return e.kind&&(i.kind=e.kind),e.label&&(i.label=e.label),(e.language||e.srclang)&&(i.srclang=e.language||e.srclang),e.default&&(i.default=e.default),e.id&&(i.id=e.id),e.src&&(i.src=e.src),i}},{key:"addRemoteTextTrack",value:function(e,i){var n=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addRemoteTextTrack",this).call(this,e,i);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}},{key:"removeRemoteTextTrack",value:function(e){if(pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeRemoteTextTrack",this).call(this,e),this.featuresNativeTextTracks)for(var i=this.$$("track"),n=i.length;n--;)e!==i[n]&&e!==i[n].track||this.el().removeChild(i[n])}},{key:"getVideoPlaybackQuality",value:function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),He.a.performance&&(e.creationTime=He.a.performance.now()),e}}]),t}(xn);v(ha,"TEST_VID",function(){if(y()){var e=qe.a.createElement("video"),t=qe.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}),ha.isSupported=function(){try{ha.TEST_VID.volume=.5}catch(e){return!1}return!(!ha.TEST_VID||!ha.TEST_VID.canPlayType)},ha.canPlayType=function(e){return ha.TEST_VID.canPlayType(e)},ha.canPlaySource=function(e,t){return ha.canPlayType(e.type)},ha.canControlVolume=function(){try{var e=ha.TEST_VID.volume;ha.TEST_VID.volume=e/2+.1;var t=e!==ha.TEST_VID.volume;return t&&Zt?(He.a.setTimeout(function(){ha&&ha.prototype&&(ha.prototype.featuresVolumeControl=e!==ha.TEST_VID.volume)}),!1):t}catch(e){return!1}},ha.canMuteVolume=function(){try{var e=ha.TEST_VID.muted;return ha.TEST_VID.muted=!e,ha.TEST_VID.muted?A(ha.TEST_VID,"muted","muted"):M(ha.TEST_VID,"muted"),e!==ha.TEST_VID.muted}catch(e){return!1}},ha.canControlPlaybackRate=function(){if(Rt&&Ht&&qt<58)return!1;try{var e=ha.TEST_VID.playbackRate;return ha.TEST_VID.playbackRate=e/2+.1,e!==ha.TEST_VID.playbackRate}catch(e){return!1}},ha.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(qe.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(qe.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(qe.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(qe.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},ha.supportsNativeTextTracks=function(){return ei||Zt&&Ht},ha.supportsNativeVideoTracks=function(){return!(!ha.TEST_VID||!ha.TEST_VID.videoTracks)},ha.supportsNativeAudioTracks=function(){return!(!ha.TEST_VID||!ha.TEST_VID.audioTracks)},ha.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){var t=ht(e,2),i=t[0],n=t[1];v(ha.prototype,i,function(){return ha[n]()},!0)}),ha.prototype.featuresVolumeControl=ha.canControlVolume(),ha.prototype.movingMediaElementInDOM=!Zt,ha.prototype.featuresFullscreenResize=!0,ha.prototype.featuresProgressEvents=!0,ha.prototype.featuresTimeupdateEvents=!0,ha.prototype.featuresVideoFrameCallback=!(!ha.TEST_VID||!ha.TEST_VID.requestVideoFrameCallback),ha.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},ha.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){ha.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){ha.prototype["set"+Li(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){ha.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){ha.prototype["set"+Li(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){ha.prototype[e]=function(){return this.el_[e]()}}),xn.withSourceHandlers(ha),ha.nativeSourceHandler={},ha.nativeSourceHandler.canPlayType=function(e){try{return ha.TEST_VID.canPlayType(e)}catch(e){return""}},ha.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return ha.nativeSourceHandler.canPlayType(e.type);if(e.src){var i=pn(e.src);return ha.nativeSourceHandler.canPlayType("video/"+i)}return""},ha.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},ha.nativeSourceHandler.dispose=function(){},ha.registerSourceHandler(ha.nativeSourceHandler),xn.registerTech("Html5",ha);var fa=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],va={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ma=["tiny","xsmall","small","medium","large","xlarge","huge"],ga={};ma.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;ga[e]="vjs-layout-"+t});var ya={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ba=function(e){function t(e,i,n){if(o(this,t),e.id=e.id||i.id||"vjs_video_"+$(),i=Object.assign(t.getTagSettings(e),i),i.initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language){var r=e.closest("[lang]");r&&(i.language=r.getAttribute("lang"))}var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,i,n));if(s.boundDocumentFullscreenChange_=function(e){return s.documentFullscreenChange_(e)},s.boundFullWindowOnEscKey_=function(e){return s.fullWindowOnEscKey(e)},s.boundUpdateStyleEl_=function(e){return s.updateStyleEl_(e)},s.boundApplyInitTime_=function(e){return s.applyInitTime_(e)},s.boundUpdateCurrentBreakpoint_=function(e){return s.updateCurrentBreakpoint_(e)},s.boundHandleTechClick_=function(e){return s.handleTechClick_(e)},s.boundHandleTechDoubleClick_=function(e){return s.handleTechDoubleClick_(e)},s.boundHandleTechTouchStart_=function(e){return s.handleTechTouchStart_(e)},s.boundHandleTechTouchMove_=function(e){return s.handleTechTouchMove_(e)},s.boundHandleTechTouchEnd_=function(e){return s.handleTechTouchEnd_(e)},s.boundHandleTechTap_=function(e){return s.handleTechTap_(e)},s.isFullscreen_=!1,s.log=It(s.id_),s.fsApi_=_t,s.isPosterFromTech_=!1,s.queuedCallbacks_=[],s.isReady_=!1,s.hasStarted_=!1,s.userActive_=!1,s.debugEnabled_=!1,s.audioOnlyMode_=!1,s.audioPosterMode_=!1,s.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!s.options_||!s.options_.techOrder||!s.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(s.tag=e,s.tagAttributes=e&&j(e),s.language(s.options_.language),i.languages){var l={};Object.getOwnPropertyNames(i.languages).forEach(function(e){l[e.toLowerCase()]=i.languages[e]}),s.languages_=l}else s.languages_=t.prototype.options_.languages;s.resetCache_(),s.poster_=i.poster||"",s.controls_=!!i.controls,e.controls=!1,e.removeAttribute("controls"),s.changingSrc_=!1,s.playCallbacks_=[],s.playTerminatedQueue_=[],e.hasAttribute("autoplay")?s.autoplay(!0):s.autoplay(s.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach(function(e){if("function"!=typeof s[e])throw new Error('plugin "'+e+'" does not exist')}),s.scrubbing_=!1,s.el_=s.createEl(),ne(s,{eventBusKey:"el_"}),s.fsApi_.requestFullscreen&&(J(qe.a,s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_),s.on(s.fsApi_.fullscreenchange,s.boundDocumentFullscreenChange_)),s.fluid_&&s.on(["playerreset","resize"],s.boundUpdateStyleEl_);var u=f(s.options_);i.plugins&&Object.keys(i.plugins).forEach(function(e){s[e](i.plugins[e])}),i.debug&&s.debug(!0),s.options_.playerOptions=u,s.middleware_=[],s.playbackRates(i.playbackRates),s.initChildren(),s.isAudio("audio"===e.nodeName.toLowerCase()),s.controls()?s.addClass("vjs-controls-enabled"):s.addClass("vjs-controls-disabled"),s.el_.setAttribute("role","region"),s.isAudio()?s.el_.setAttribute("aria-label",s.localize("Audio Player")):s.el_.setAttribute("aria-label",s.localize("Video Player")),s.isAudio()&&s.addClass("vjs-audio"),Kt&&s.addClass("vjs-touch-enabled"),Zt||s.addClass("vjs-workinghover"),t.players[s.id_]=s;var d=mt.split(".")[0];return s.addClass("vjs-v"+d),s.userActive(!0),s.reportUserActivity(),s.one("play",function(e){return s.listenForUserActivity_(e)}),s.on("keydown",function(e){return s.handleKeyDown(e)}),s.on("languagechange",function(e){return s.handleLanguagechange(e)}),s.breakpoints(s.options_.breakpoints),s.responsive(s.options_.responsive),s.on("ready",function(){s.audioPosterMode(s.options_.audioPosterMode),s.audioOnlyMode(s.options_.audioOnlyMode)}),s}return s(t,e),ft(t,[{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.off("dispose"),Z(qe.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Z(qe.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.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),Ee(this),Sn.names.forEach(function(t){var i=Sn[t],n=e[i.getterName]();n&&n.off&&n.off()}),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this,{restoreEl:this.options_.restoreEl})}},{key:"createEl",value:function(){var e=this.tag,i=void 0,n=this.playerElIngest_=e.parentNode&&e.parentNode.hasAttribute&&e.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();n?i=this.el_=e.parentNode:r||(i=this.el_=pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"createEl",this).call(this,"div"));var a=j(e);if(r){for(i=this.el_=e,e=this.tag=qe.a.createElement("video");i.children.length;)e.appendChild(i.firstChild);E(i,"video-js")||k(i,"video-js"),i.appendChild(e),n=this.playerElIngest_=i,Object.keys(i).forEach(function(t){try{e[t]=i[t]}catch(e){}})}if(e.setAttribute("tabindex","-1"),a.tabindex="-1",Ht&&Xt&&(e.setAttribute("role","application"),a.role="application"),e.removeAttribute("width"),e.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEach(function(t){r&&"class"===t||i.setAttribute(t,a[t]),r&&e.setAttribute(t,a[t])}),e.playerId=e.id,e.id+="_html5_api",e.className="vjs-tech",e.player=i.player=this,this.addClass("vjs-paused"),!0!==He.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=li("vjs-styles-dimensions");var s=ii(".vjs-styles-defaults"),o=ii("head");o.insertBefore(this.styleEl_,s?s.nextSibling:o.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);for(var l=e.getElementsByTagName("a"),u=0;u<l.length;u++){var d=l.item(u);k(d,"vjs-hidden"),d.setAttribute("hidden","hidden")}return e.initNetworkState_=e.networkState,e.parentNode&&!n&&e.parentNode.insertBefore(i,e),x(e,i),this.children_.unshift(e),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=i,i}},{key:"crossOrigin",value:function(e){return void 0===e?this.techGet_("crossOrigin"):null!==e&&"anonymous"!==e&&"use-credentials"!==e?void jt.warn('crossOrigin must be null, "anonymous" or "use-credentials", given "'+e+'"'):(this.techCall_("setCrossOrigin",e),void(this.posterImage&&this.posterImage.crossOrigin(e)))}},{key:"width",value:function(e){return this.dimension("width",e)}},{key:"height",value:function(e){return this.dimension("height",e)}},{key:"dimension",value:function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);if(isNaN(n))return void jt.error('Improper value "'+t+'" supplied for for '+e);this[i]=n,this.updateStyleEl_()}},{key:"fluid",value:function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,xi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),Ei(this,function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}},{key:"fill",value:function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}},{key:"aspectRatio",value:function(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_()}},{key:"updateStyleEl_",value:function(){if(!0===He.a.VIDEOJS_NO_DYNAMIC_STYLE){var 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)))}var n=void 0,r=void 0,a=void 0,s=void 0;a=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var o=a.split(":"),l=o[1]/o[0];n=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/l:this.videoWidth()||300,r=void 0!==this.height_?this.height_:n*l,s=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(s),ui(this.styleEl_,"\n ."+s+" {\n width: "+n+"px;\n height: "+r+"px;\n }\n\n ."+s+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*l+"%;\n }\n ")}},{key:"loadTech_",value:function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=Li(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(xn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_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};Sn.names.forEach(function(e){var t=Sn[e];s[t.getterName]=i[t.privateName]}),Object.assign(s,this.options_[n]),Object.assign(s,this.options_[r]),Object.assign(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=xn.getTech(e);if(!o)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(gi(this,this.handleTechReady_),!0),Wi.jsonToTextTracks(this.textTracksJson_||[],this.tech_),fa.forEach(function(e){i.on(i.tech_,e,function(t){return i["handleTech"+Li(e)+"_"](t)})}),Object.keys(va).forEach(function(e){i.on(i.tech_,e,function(t){if(0===i.tech_.playbackRate()&&i.tech_.seeking())return void i.queuedCallbacks_.push({callback:i["handleTech"+va[e]+"_"].bind(i),event:t});i["handleTech"+va[e]+"_"](t)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.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"===n&&this.tag||x(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}},{key:"unloadTech_",value:function(){var e=this;Sn.names.forEach(function(t){var i=Sn[t];e[i.privateName]=e[i.getterName]()}),this.textTracksJson_=Wi.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}},{key:"tech",value:function(e){return void 0===e&&jt.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_}},{key:"addTechControlsListeners_",value:function(){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_)}},{key:"removeTechControlsListeners_",value:function(){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_)}},{key:"handleTechReady_",value:function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}},{key:"handleTechLoadStart_",value:function(){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())}},{key:"manualAutoplay_",value:function(e){var t=this;if(this.tech_&&"string"==typeof e){var i=function(){var e=t.muted();t.muted(!0);var i=function(){t.muted(e)};t.playTerminatedQueue_.push(i);var n=t.play();if(fe(n))return n.catch(function(e){throw i(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})},n=void 0;if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():(n=this.play(),fe(n)&&(n=n.catch(i))),fe(n))return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){t.trigger({type:"autoplay-failure",autoplay:e})})}}},{key:"updateSourceCaches_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",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=Mn(this,t)),this.cache_.source=f({},e,{src:t,type:i});for(var n=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),r=[],a=this.$$("source"),s=[],o=0;o<a.length;o++){var l=j(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!n.length?this.cache_.sources=r:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}},{key:"handleTechSourceset_",value:function(e){var t=this;if(!this.changingSrc_){var i=function(e){return t.updateSourceCaches_(e)},n=this.currentSource().src,r=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==n)&&(i=function(){}),i(r),e.src||this.tech_.any(["sourceset","loadstart"],function(e){if("sourceset"!==e.type){var i=t.techGet("currentSrc");t.lastSource_.tech=i,t.updateSourceCaches_(i)}})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}},{key:"hasStarted",value:function(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"))}},{key:"handleTechPlay_",value:function(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}},{key:"handleTechRateChange_",value:function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}},{key:"handleTechWaiting_",value:function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),i=function i(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",i))};this.on("timeupdate",i)}},{key:"handleTechCanPlay_",value:function(){this.removeClass("vjs-waiting"),this.trigger("canplay")}},{key:"handleTechCanPlayThrough_",value:function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}},{key:"handleTechPlaying_",value:function(){this.removeClass("vjs-waiting"),this.trigger("playing")}},{key:"handleTechSeeking_",value:function(){this.addClass("vjs-seeking"),this.trigger("seeking")}},{key:"handleTechSeeked_",value:function(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}},{key:"handleTechPause_",value:function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}},{key:"handleTechEnded_",value:function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}},{key:"handleTechDurationChange_",value:function(){this.duration(this.techGet_("duration"))}},{key:"handleTechClick_",value:function(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()?ve(this.play()):this.pause()))}},{key:"handleTechDoubleClick_",value:function(e){if(this.controls_){Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)})||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())}}},{key:"handleTechTap_",value:function(){this.userActive(!this.userActive())}},{key:"handleTechTouchStart_",value:function(){this.userWasActive=this.userActive()}},{key:"handleTechTouchMove_",value:function(){this.userWasActive&&this.reportUserActivity()}},{key:"handleTechTouchEnd_",value:function(e){e.cancelable&&e.preventDefault()}},{key:"toggleFullscreenClass_",value:function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}},{key:"documentFullscreenChange_",value:function(e){var t=e.target.player;if(!t||t===this){var i=this.el(),n=qe.a[this.fsApi_.fullscreenElement]===i;!n&&i.matches?n=i.matches(":"+this.fsApi_.fullscreen):!n&&i.msMatchesSelector&&(n=i.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(n)}}},{key:"handleTechFullscreenChange_",value:function(e,t){var i=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",function(){i.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}},{key:"handleTechFullscreenError_",value:function(e,t){this.trigger("fullscreenerror",t)}},{key:"togglePictureInPictureClass_",value:function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}},{key:"handleTechEnterPictureInPicture_",value:function(e){this.isInPictureInPicture(!0)}},{key:"handleTechLeavePictureInPicture_",value:function(e){this.isInPictureInPicture(!1)}},{key:"handleTechError_",value:function(){var e=this.tech_.error();this.error(e)}},{key:"handleTechTextData_",value:function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}},{key:"getCache",value:function(){return this.cache_}},{key:"resetCache_",value:function(){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}}},{key:"techCall_",value:function(e,t){this.ready(function(){if(e in Pn)return Te(this.middleware_,this.tech_,e,t);if(e in jn)return _e(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw jt(e),e}},!0)}},{key:"techGet_",value:function(e){if(this.tech_&&this.tech_.isReady_){if(e in On)return we(this.middleware_,this.tech_,e);if(e in jn)return _e(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw jt("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw jt("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw jt(t),t}}}},{key:"play",value:function(){var e=this;return new Promise(function(t){e.play_(t)})}},{key:"play_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve;this.playCallbacks_.push(t);var i=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!i)return this.waitToPlay_=function(t){e.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(i||!ei&&!Zt||this.load());var n=this.techGet_("play");null===n?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(n)}},{key:"runPlayTerminatedQueue_",value:function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}},{key:"runPlayCallbacks_",value:function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}},{key:"pause",value:function(){this.techCall_("pause")}},{key:"paused",value:function(){return!1!==this.techGet_("paused")}},{key:"played",value:function(){return this.techGet_("played")||le(0,0)}},{key:"scrubbing",value:function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}},{key:"currentTime",value:function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)}},{key:"applyInitTime_",value:function(){this.currentTime(this.cache_.initTime)}},{key:"duration",value:function(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"))}},{key:"remainingTime",value:function(){return this.duration()-this.currentTime()}},{key:"remainingTimeDisplay",value:function(){return Math.floor(this.duration())-Math.floor(this.currentTime())}},{key:"buffered",value:function(){var e=this.techGet_("buffered");return e&&e.length||(e=le(0,0)),e}},{key:"bufferedPercent",value:function(){return pe(this.buffered(),this.duration())}},{key:"bufferedEnd",value:function(){var e=this.buffered(),t=this.duration(),i=e.end(e.length-1);return i>t&&(i=t),i}},{key:"volume",value:function(e){var t=void 0;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}},{key:"muted",value:function(e){return void 0!==e?void this.techCall_("setMuted",e):this.techGet_("muted")||!1}},{key:"defaultMuted",value:function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1}},{key:"lastVolume_",value:function(e){return void 0!==e&&0!==e?void(this.cache_.lastVolume=e):this.cache_.lastVolume}},{key:"supportsFullScreen",value:function(){return this.techGet_("supportsFullScreen")||!1}},{key:"isFullscreen",value:function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}},{key:"requestFullscreen",value:function(e){this.isInPictureInPicture()&&this.exitPictureInPicture();var t=this;return new Promise(function(i,n){function r(){t.off("fullscreenerror",s),t.off("fullscreenchange",a)}function a(){r(),i()}function s(e,t){r(),n(t)}t.one("fullscreenchange",a),t.one("fullscreenerror",s);var o=t.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(i,n))})}},{key:"requestFullscreenHelper_",value:function(e){var t=this,i=void 0;if(this.fsApi_.prefixed||(i=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(i=e)),this.fsApi_.requestFullscreen){var n=this.el_[this.fsApi_.requestFullscreen](i);return n&&n.then(function(){return t.isFullscreen(!0)},function(){return t.isFullscreen(!1)}),n}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}},{key:"exitFullscreen",value:function(){var e=this;return new Promise(function(t,i){function n(){e.off("fullscreenerror",a),e.off("fullscreenchange",r)}function r(){n(),t()}function a(e,t){n(),i(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",a);var s=e.exitFullscreenHelper_();s&&(s.then(n,n),s.then(t,i))})}},{key:"exitFullscreenHelper_",value:function(){var e=this;if(this.fsApi_.requestFullscreen){var t=qe.a[this.fsApi_.exitFullscreen]();return t&&ve(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}},{key:"enterFullWindow",value:function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=qe.a.documentElement.style.overflow,J(qe.a,"keydown",this.boundFullWindowOnEscKey_),qe.a.documentElement.style.overflow="hidden",k(qe.a.body,"vjs-full-window"),this.trigger("enterFullWindow")}},{key:"fullWindowOnEscKey",value:function(e){We.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}},{key:"exitFullWindow",value:function(){this.isFullscreen(!1),this.isFullWindow=!1,Z(qe.a,"keydown",this.boundFullWindowOnEscKey_),qe.a.documentElement.style.overflow=this.docOrigOverflow,C(qe.a.body,"vjs-full-window"),this.trigger("exitFullWindow")}},{key:"disablePictureInPicture",value:function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}},{key:"isInPictureInPicture",value:function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}},{key:"requestPictureInPicture",value:function(){if("pictureInPictureEnabled"in qe.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){if("pictureInPictureEnabled"in qe.a)return qe.a.exitPictureInPicture()}},{key:"handleKeyDown",value:function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;var i=["button","checkbox","hidden","radio","reset","submit"];return"input"===t?-1===i.indexOf(e.type):-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}}},{key:"handleHotkeys",value:function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=void 0===i?function(e){return We.a.isEventKey(e,"f")}:i,r=t.muteKey,a=void 0===r?function(e){return We.a.isEventKey(e,"m")}:r,s=t.playPauseKey,o=void 0===s?function(e){return We.a.isEventKey(e,"k")||We.a.isEventKey(e,"Space")}:s;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();var l=Bi.getComponent("FullscreenToggle");!1!==qe.a[this.fsApi_.fullscreenEnabled]&&l.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var u=Bi.getComponent("MuteToggle");u.prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation();var d=Bi.getComponent("PlayToggle");d.prototype.handleClick.call(this,e)}}},{key:"canPlayType",value:function(e){for(var t=void 0,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],a=xn.getTech(r);if(a||(a=Bi.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else jt.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""}},{key:"selectSource",value:function(e){var t=this,i=this.options_.techOrder.map(function(e){return[e,xn.getTech(e)]}).filter(function(e){var t=ht(e,2),i=t[0],n=t[1];return n?n.isSupported():(jt.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),n=function(e,t,i){var n=void 0;return e.some(function(e){return t.some(function(t){if(n=i(e,t))return!0})}),n},r=function(e,i){var n=ht(e,2),r=n[0];if(n[1].canPlaySource(i,t.options_[r.toLowerCase()]))return{source:i,tech:r}};return(this.options_.sourceOrder?n(e,i,function(e){return function(t,i){return e(i,t)}}(r)):n(i,e,r))||!1}},{key:"handleSrc_",value:function(e,t){var i=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var n=Dn(e);if(!n.length)return void this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),ye(this,n[0],function(e,r){if(i.middleware_=r,t||(i.cache_.sources=n),i.updateSourceCaches_(e),i.src_(e))return n.length>1?i.handleSrc_(n.slice(1)):(i.changingSrc_=!1,i.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void i.triggerReady());be(r,i.tech_)}),n.length>1){var r=function(){i.error(null),i.handleSrc_(n.slice(1),!0)},a=function(){i.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){i.off("error",r),i.off("playing",a)}}}},{key:"src",value:function(e){return this.handleSrc_(e,!1)}},{key:"src_",value:function(e){var t=this,i=this.selectSource([e]);return!i||(Ni(i.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_(i.tech,i.source),this.tech_.ready(function(){t.changingSrc_=!1}),!1))}},{key:"load",value:function(){this.techCall_("load")}},{key:"reset",value:function(){var e=this;if(this.paused())this.doReset_();else{ve(this.play().then(function(){return e.doReset_()}))}}},{key:"doReset_",value:function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),xi(this)&&this.trigger("playerreset")}},{key:"resetControlBarUI_",value:function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}},{key:"resetProgressBar_",value:function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,i=e.remainingTimeDisplay;t&&t.updateContent(),i&&i.updateContent()}},{key:"resetPlaybackRate_",value:function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}},{key:"resetVolumeBar_",value:function(){this.volume(1),this.trigger("volumechange")}},{key:"currentSources",value:function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}},{key:"currentSource",value:function(){return this.cache_.source||{}}},{key:"currentSrc",value:function(){return this.currentSource()&&this.currentSource().src||""}},{key:"currentType",value:function(){return this.currentSource()&&this.currentSource().type||""}},{key:"preload",value:function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}},{key:"autoplay",value:function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"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=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)}},{key:"playsinline",value:function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")}},{key:"loop",value:function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}},{key:"poster",value:function(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"))}},{key:"handleTechPosterChange_",value:function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}},{key:"controls",value:function(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_()))}},{key:"usingNativeControls",value:function(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")))}},{key:"error",value:function(e){var t=this;if(void 0===e)return this.error_||null;if(yt("beforeerror").forEach(function(i){var n=i(t,e);if((!p(n)||Array.isArray(n))&&"string"!=typeof n&&"number"!=typeof n&&null!==n)return void t.log.error("please return a value that MediaError expects in beforeerror hooks");e=n}),this.options_.suppressNotSupportedError&&e&&4===e.code){var i=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],i),void this.one("loadstart",function(){this.off(["click","touchstart"],i)})}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new he(e),this.addClass("vjs-error"),jt.error("(CODE:"+this.error_.code+" "+he.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),yt("error").forEach(function(e){return e(t,t.error_)})}},{key:"reportUserActivity",value:function(e){this.userActivity_=!0}},{key:"userActive",value:function(e){if(void 0===e)return this.userActive_;if((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")}}},{key:"listenForUserActivity_",value:function(){var e=void 0,t=void 0,i=void 0,n=gi(this,this.reportUserActivity),r=function(e){e.screenX===t&&e.screenY===i||(t=e.screenX,i=e.screenY,n())},a=function(){n(),this.clearInterval(e),e=this.setInterval(n,250)},s=function(t){n(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",r),this.on("mouseup",s),this.on("mouseleave",s);var o=this.getChild("controlBar");!o||Zt||Rt||(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",n),this.on("keyup",n);var l=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(l);var e=this.options_.inactivityTimeout;e<=0||(l=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)}},{key:"playbackRate",value:function(e){return void 0!==e?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}},{key:"defaultPlaybackRate",value:function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}},{key:"isAudio",value:function(e){return void 0!==e?void(this.isAudio_=!!e):!!this.isAudio_}},{key:"enableAudioOnlyUI_",value:function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),i=this.getChild("ControlBar"),n=i&&i.currentHeight();t.forEach(function(t){t!==i&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")}},{key:"disableAudioOnlyUI_",value:function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(function(e){return e.show()}),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}},{key:"audioOnlyMode",value:function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),Promise.all(i).then(function(){return t.enableAudioOnlyUI_()})}return Promise.resolve().then(function(){return t.disableAudioOnlyUI_()})}},{key:"enablePosterModeUI_",value:function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}},{key:"disablePosterModeUI_",value:function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}},{key:"audioPosterMode",value:function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;if(this.audioPosterMode_=e,e){if(this.audioOnlyMode()){return this.audioOnlyMode(!1).then(function(){t.enablePosterModeUI_()})}return Promise.resolve().then(function(){t.enablePosterModeUI_()})}return Promise.resolve().then(function(){t.disablePosterModeUI_()})}},{key:"addTextTrack",value:function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)}},{key:"addRemoteTextTrack",value:function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}},{key:"removeRemoteTextTrack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}},{key:"getVideoPlaybackQuality",value:function(){return this.techGet_("getVideoPlaybackQuality")}},{key:"videoWidth",value:function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}},{key:"videoHeight",value:function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}},{key:"language",value:function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),xi(this)&&this.trigger("languagechange"))}},{key:"languages",value:function(){return f(t.prototype.options_.languages,this.languages_)}},{key:"toJSON",value:function(){var e=f(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];n=f(n),n.player=void 0,e.tracks[i]=n}return e}},{key:"createModal",value:function(e,t){var i=this;t=t||{},t.content=e||"";var n=new $i(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n}},{key:"updateCurrentBreakpoint_",value:function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<ma.length;i++){var n=ma[i],r=this.breakpoints_[n];if(t<=r){if(e===n)return;e&&this.removeClass(ga[e]),this.addClass(ga[n]),this.breakpoint_=n;break}}}},{key:"removeCurrentBreakpoint_",value:function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}},{key:"breakpoints",value:function(e){return void 0===e?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},ya,e),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}},{key:"responsive",value:function(e){return void 0===e?this.responsive_:(e=Boolean(e),e!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0)}},{key:"currentBreakpoint",value:function(){return this.breakpoint_}},{key:"currentBreakpointClass",value:function(){return ga[this.breakpoint_]||""}},{key:"loadMedia",value:function(e,t){var i=this;if(e&&"object"===(void 0===e?"undefined":vt(e))){this.reset(),this.cache_.media=f(e);var n=this.cache_.media,r=n.artist,a=n.artwork,s=n.description,o=n.poster,l=n.src,u=n.textTracks,d=n.title;!a&&o&&(this.cache_.media.artwork=[{src:o,type:An(o)}]),l&&this.src(l),o&&this.poster(o),Array.isArray(u)&&u.forEach(function(e){return i.addRemoteTextTrack(e,!1)}),this.titleBar&&this.titleBar.update({title:d,description:s||r||""}),this.ready(t)}}},{key:"getMedia",value:function(){if(!this.cache_.media){var e=this.poster(),t=this.currentSources(),i=Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}),n={src:t,textTracks:i};return e&&(n.poster=e,n.artwork=[{src:n.poster,type:An(n.poster)}]),n}return f(this.cache_.media)}},{key:"debug",value:function(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)}},{key:"playbackRates",value:function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}],[{key:"getTagSettings",value:function(e){var t={sources:[],tracks:[]},i=j(e),n=i["data-setup"];if(E(e,"vjs-fill")&&(i.fill=!0),E(e,"vjs-fluid")&&(i.fluid=!0),null!==n){var r=$e()(n||"{}"),a=ht(r,2),s=a[0],o=a[1];s&&jt.error(s),Object.assign(i,o)}if(Object.assign(t,i),e.hasChildNodes())for(var l=e.childNodes,u=0,d=l.length;u<d;u++){var c=l[u],p=c.nodeName.toLowerCase();"source"===p?t.sources.push(j(c)):"track"===p&&t.tracks.push(j(c))}return t}}]),t}(Bi);Sn.names.forEach(function(e){var t=Sn[e];ba.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),ba.prototype.crossorigin=ba.prototype.crossOrigin,ba.players={};var wa=He.a.navigator;ba.prototype.options_={techOrder:xn.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:wa&&(wa.languages&&wa.languages[0]||wa.userLanguage||wa.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},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){ba.prototype[e]=function(){return this.techGet_(e)}}),fa.forEach(function(e){ba.prototype["handleTech"+Li(e)+"_"]=function(){return this.trigger(e)}}),Bi.registerComponent("Player",ba);var Ta={},_a=function(e){return Ta.hasOwnProperty(e)},Sa=function(e){return _a(e)?Ta[e]:void 0},xa=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Ea=function(e,t,i){var n=(i?"before":"")+"pluginsetup";e.trigger(n,t),e.trigger(n+":"+t.name,t)},ka=function(e,t){var i=function(){Ea(this,{name:e,plugin:t,instance:null},!0);var i=t.apply(this,arguments);return xa(this,e),Ea(this,{name:e,plugin:t,instance:i}),i};return Object.keys(t).forEach(function(e){i[e]=t[e]}),i},Ca=function(e,t){return t.prototype.name=e,function(){Ea(this,{name:e,plugin:t,instance:null},!0);for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];var a=new(Function.prototype.bind.apply(t,[null].concat([this].concat(n))));return this[e]=function(){return a},Ea(this,a.getEventHash()),a}},Oa=function(){function e(t){if(o(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),ne(this),delete this.trigger,re(this,this.constructor.defaultState),xa(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}return ft(e,[{key:"version",value:function(){return this.constructor.VERSION}},{key:"getEventHash",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}},{key:"trigger",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ee(this.eventBusEl_,e,this.getEventHash(t))}},{key:"handleStateChanged",value:function(e){}},{key:"dispose",value:function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Ca(e,Ta[e])}}],[{key:"isBasic",value:function(t){var i="string"==typeof t?Sa(t):t;return"function"==typeof i&&!e.prototype.isPrototypeOf(i.prototype)}},{key:"registerPlugin",value:function(t,i){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":vt(t))+".");if(_a(t))jt.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(ba.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof i)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===i?"undefined":vt(i))+".");return Ta[t]=i,"plugin"!==t&&(e.isBasic(i)?ba.prototype[t]=ka(t,i):ba.prototype[t]=Ca(t,i)),i}},{key:"deregisterPlugin",value:function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");_a(e)&&(delete Ta[e],delete ba.prototype[e])}},{key:"getPlugins",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(Ta),t=void 0;return e.forEach(function(e){var i=Sa(e);i&&(t=t||{},t[e]=i)}),t}},{key:"getPluginVersion",value:function(e){var t=Sa(e);return t&&t.VERSION||""}}]),e}();Oa.getPlugin=Sa,Oa.BASE_PLUGIN_NAME="plugin",Oa.registerPlugin("plugin",Oa),ba.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},ba.prototype.hasPlugin=function(e){return!!_a(e)};var Pa=function(e){return 0===e.indexOf("#")?e.slice(1):e};if(Re.hooks_=gt,Re.hooks=yt,Re.hook=bt,Re.hookOnce=Tt,Re.removeHook=wt,!0!==He.a.VIDEOJS_NO_DYNAMIC_STYLE&&y()){var ja=ii(".vjs-styles-defaults");if(!ja){ja=li("vjs-styles-defaults");var Ia=ii("head");Ia&&Ia.insertBefore(ja,Ia.firstChild),ui(ja,"\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 ")}}W(1,Re),Re.VERSION=mt,Re.options=ba.prototype.options_,Re.getPlayers=function(){return ba.players},Re.getPlayer=function(e){var t=ba.players,i=void 0;if("string"==typeof e){var n=Pa(e),r=t[n];if(r)return r;i=ii("#"+n)}else i=e;if(b(i)){var a=i,s=a.player,o=a.playerId;if(s||t[o])return s||t[o]}},Re.getAllPlayers=function(){return Object.keys(ba.players).map(function(e){return ba.players[e]}).filter(Boolean)},Re.players=ba.players,Re.getComponent=Bi.getComponent,Re.registerComponent=function(e,t){xn.isTech(t)&&jt.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Bi.registerComponent.call(Bi,e,t)},Re.getTech=xn.getTech,Re.registerTech=xn.registerTech,Re.use=ge,Object.defineProperty(Re,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Re.middleware,"TERMINATOR",{value:Cn,writeable:!1,enumerable:!0}),Re.browser=ti,Re.obj=Dt,Re.mergeOptions=Ne(9,"videojs.mergeOptions","videojs.obj.merge",f),Re.defineLazyProperty=Ne(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",v),Re.bind=Ne(9,"videojs.bind","native Function.prototype.bind",gi),Re.registerPlugin=Oa.registerPlugin,Re.deregisterPlugin=Oa.deregisterPlugin,Re.plugin=function(e,t){return jt.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Oa.registerPlugin(e,t)},Re.getPlugins=Oa.getPlugins,Re.getPlugin=Oa.getPlugin,Re.getPluginVersion=Oa.getPluginVersion,Re.addLanguage=function(e,t){return e=(""+e).toLowerCase(),Re.options.languages=f(Re.options.languages,n({},e,t)),Re.options.languages[e]},Re.log=jt,Re.createLogger=It,Re.time=Fi,Re.createTimeRange=Ne(9,"videojs.createTimeRange","videojs.time.createTimeRanges",le),Re.createTimeRanges=Ne(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",le),Re.formatTime=Ne(9,"videojs.formatTime","videojs.time.formatTime",ce),Re.setFormatTime=Ne(9,"videojs.setFormatTime","videojs.time.setFormatTime",ue),Re.resetFormatTime=Ne(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",de),Re.parseUrl=Ne(9,"videojs.parseUrl","videojs.url.parseUrl",dn),Re.isCrossOrigin=Ne(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",hn),Re.EventTarget=_i,Re.any=ie,Re.on=J,Re.one=te,Re.off=Z,Re.trigger=ee,Re.xhr=Ke.a,Re.TextTrack=gn,Re.AudioTrack=yn,Re.VideoTrack=bn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){Re[e]=function(){return jt.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),ri[e].apply(null,arguments)}}),Re.computedStyle=Ne(9,"videojs.computedStyle","videojs.dom.computedStyle",G),Re.dom=ri,Re.fn=wi,Re.num=Jn,Re.str=Ri,Re.url=fn;/*! @name videojs-contrib-quality-levels @version 3.0.0 @license Apache-2.0 */
|
|
2
|
+
var Aa=function e(t){o(this,e);var i=this;return i.id=t.id,i.label=i.id,i.width=t.width,i.height=t.height,i.bitrate=t.bandwidth,i.frameRate=t.frameRate,i.enabled_=t.enabled,Object.defineProperty(i,"enabled",{get:function(){return i.enabled_()},set:function(e){i.enabled_(e)}}),i},Ma=function(e){function t(){var e;o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=i;return n.levels_=[],n.selectedIndex_=-1,Object.defineProperty(n,"selectedIndex",{get:function(){return n.selectedIndex_}}),Object.defineProperty(n,"length",{get:function(){return n.levels_.length}}),e=n,a(i,e)}return s(t,e),ft(t,[{key:"addQualityLevel",value:function(e){var t=this.getQualityLevelById(e.id);if(t)return t;var i=this.levels_.length;return t=new Aa(e),""+i in this||Object.defineProperty(this,i,{get:function(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}},{key:"removeQualityLevel",value:function(e){for(var t=null,i=0,n=this.length;i<n;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}},{key:"getQualityLevelById",value:function(e){for(var t=0,i=this.length;t<i;t++){var n=this[t];if(n.id===e)return n}return null}},{key:"dispose",value:function(){this.selectedIndex_=-1,this.levels_.length=0}}]),t}(Re.EventTarget);Ma.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(var Ki in Ma.prototype.allowedEvents_)Ma.prototype["on"+Ki]=null;var Da=Re.registerPlugin||Re.plugin,La=function(e,t){var i=e.qualityLevels,n=new Ma,r=function t(){n.dispose(),e.qualityLevels=i,e.off("dispose",t)};return e.on("dispose",r),e.qualityLevels=function(){return n},e.qualityLevels.VERSION="3.0.0",n},Na=function(e){return La(this,Re.mergeOptions({},e))};Da("qualityLevels",Na),Na.VERSION="3.0.0";/*! @name @videojs/http-streaming @version 3.0.0 @license Apache-2.0 */
|
|
3
|
+
var Ra=Ze.a,Ba=function(e,t){return t&&t.responseURL&&e!==t.responseURL?t.responseURL:e},za=function(e){return Re.log.debug?Re.log.debug.bind(Re,"VHS:",e+" >"):function(){}},Ua=function(e,t){var i=[],n=void 0;if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return ze(i)},Fa=function(e,t){return Ua(e,function(e,i){return e-.1<=t&&i+.1>=t})},Ha=function(e,t){return Ua(e,function(e){return e-1/30>=t})},Va=function(e){if(e.length<2)return ze();for(var t=[],i=1;i<e.length;i++){var n=e.end(i-1),r=e.start(i);t.push([n,r])}return ze(t)},qa=function(e,t){var i=null,n=null,r=0,a=[],s=[];if(!(e&&e.length&&t&&t.length))return ze();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2===++r&&(i=a[o].time):"end"===a[o].type&&1===--r&&(n=a[o].time),null!==i&&null!==n&&(s.push([i,n]),i=null,n=null);return ze(s)},Ga=function(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")},Wa=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return((e.length?e.end(e.length-1):0)-t)/i},Xa=function(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t},$a=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1},Ya=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Ka=function(e,t){var i=0;if(!e||!e.length)return i;for(var n=0;n<e.length;n++){var r=e.start(n),a=e.end(n);t>a||(i+=t>r&&t<=a?a-t:a-r)}return i},Qa=function(e,t){if(!t.preload)return t.duration;var i=0;return(t.parts||[]).forEach(function(e){i+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(i+=e.partTargetDuration)}),i},Ja=function(e){return(e.segments||[]).reduce(function(e,t,i){return t.parts?t.parts.forEach(function(n,r){e.push({duration:n.duration,segmentIndex:i,partIndex:r,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e},[])},Za=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},es=function(e){var t=e.preloadSegment;if(t){var i=t.parts,n=t.preloadHints,r=(n||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0);return r+=i&&i.length?i.length:0}},ts=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var i=Za(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},is=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if(r=e.segments[n],void 0!==r.end)return{result:i+r.end,precise:!0};if(i+=Qa(e,r),void 0!==r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}},ns=function(e,t){for(var i=0,n=void 0,r=t-e.mediaSequence;r<e.segments.length;r++){if(n=e.segments[r],void 0!==n.start)return{result:n.start-i,precise:!0};if(i+=Qa(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}},rs=function(e,t,i){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var n=is(e,t);if(n.precise)return n.result;var r=ns(e,t);return r.precise?r.result:n.result+i},as=function(e,t,i){if(!e)return 0;if("number"!=typeof i&&(i=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return He.a.Infinity}return rs(e,t,i)},ss=function(e){var t=e.defaultDuration,i=e.durationList,n=e.startIndex,r=e.endIndex,a=0;if(n>r){var s=[r,n];n=s[0],r=s[1]}if(n<0){for(var o=n;o<Math.min(0,r);o++)a+=t;n=0}for(var l=n;l<r;l++)a+=i[l].duration;return a},os=function(e,t,i,n){if(!e||!e.segments)return null;if(e.endList)return as(e);if(null===t)return null;t=t||0;var r=rs(e,e.mediaSequence+e.segments.length,t);return i&&(n="number"==typeof n?n:ts(null,e),r-=n),Math.max(0,r)},ls=function(e,t,i){var n=t||0,r=os(e,t,!0,i);return null===r?ze():ze(n,r)},us=function(e){for(var t=e.playlist,i=e.currentTime,n=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.exactManifestTimings,o=i-a,l=Ja(t),u=0,d=0;d<l.length;d++){var c=l[d];if(n===c.segmentIndex&&("number"!=typeof r||"number"!=typeof c.partIndex||r===c.partIndex)){u=d;break}}if(o<0){if(u>0)for(var p=u-1;p>=0;p--){var h=l[p];if(o+=h.duration,s){if(o<0)continue}else if(o+1/30<=0)continue;return{partIndex:h.partIndex,segmentIndex:h.segmentIndex,startTime:a-ss({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:p})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i}}if(u<0){for(var f=u;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:i};u=0}for(var v=u;v<l.length;v++){var m=l[v];if(o-=m.duration,s){if(o>0)continue}else if(o-1/30>=0)continue;return{partIndex:m.partIndex,segmentIndex:m.segmentIndex,startTime:a+ss({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:v})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:i}},ds=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},cs=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ps=function(e){var t=ds(e);return!e.disabled&&!t},hs=function(e){return e.disabled},fs=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},vs=function(e,t){return t.attributes&&t.attributes[e]},ms=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return vs("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*n)/t:NaN},gs=function(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!ps(e)&&(e.attributes.BANDWIDTH||0)<i}).length},ys=function(e,t){return!(!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))))},bs=function(e,t){var i=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},n=!1;for(var r in i){for(var a in i[r])if(n=t(i[r][a]))break;if(n)break}return!!n},ws=function(e){if(!e||!e.playlists||!e.playlists.length){return bs(e,function(e){return e.playlists&&e.playlists.length||e.uri})}for(var t=0;t<e.playlists.length;t++){var i=function(t){var i=e.playlists[t],n=i.attributes&&i.attributes.CODECS;return n&&n.split(",").every(function(e){return Object(nt.f)(e)})?"continue":bs(e,function(e){return ys(i,e)})?"continue":{v:!1}}(t);switch(i){case"continue":continue;default:if("object"===(void 0===i?"undefined":vt(i)))return i.v}}return!0},Ts={liveEdgeDelay:ts,duration:as,seekable:ls,getMediaInfoForTime:us,isEnabled:ps,isDisabled:hs,isExcluded:ds,isIncompatible:cs,playlistEnd:os,isAes:fs,hasAttribute:vs,estimateSegmentRequestTime:ms,isLowestEnabledRendition:gs,isAudioOnly:ws,playlistMatch:ys,segmentDurationWithParts:Qa},_s=Re.log,Ss=function(e,t){return e+"-"+t},xs=function(e){var t=e.onwarn,i=e.oninfo,n=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,l=e.llhls,u=new it.a;t&&u.on("warn",t),i&&u.on("info",i),a.forEach(function(e){return u.addParser(e)}),o.forEach(function(e){return u.addTagMapper(e)}),u.push(n),u.end();var d=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){d.hasOwnProperty(e)&&delete d[e]}),d.segments&&d.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!d.targetDuration){var c=10;d.segments&&d.segments.length&&(c=d.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+c),d.targetDuration=c}var p=Za(d);if(p.length&&!d.partTargetDuration){var h=p.reduce(function(e,t){return Math.max(e,t.duration)},0);t&&(t("manifest has no partTargetDuration defaulting to "+h),_s.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.")),d.partTargetDuration=h}return d},Es=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(i){if(e.mediaGroups[i])for(var n in e.mediaGroups[i])for(var r in e.mediaGroups[i][n]){var a=e.mediaGroups[i][n][r];t(a,i,n,r)}})},ks=function(e){var t=e.playlist,i=e.uri,n=e.id;t.id=n,t.playlistErrors_=0,i&&(t.uri=i),t.attributes=t.attributes||{}},Cs=function(e){for(var t=e.playlists.length;t--;){var i=e.playlists[t];ks({playlist:i,id:Ss(t,i.uri)}),i.resolvedUri=Ra(e.uri,i.uri),e.playlists[i.id]=i,e.playlists[i.uri]=i,i.attributes.BANDWIDTH||_s.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},Os=function(e){Es(e,function(t){t.uri&&(t.resolvedUri=Ra(e.uri,t.uri))})},Ps=function(e,t){var i=Ss(0,t),n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:He.a.location.href,resolvedUri:He.a.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]};return n.playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n},js=function(e,t){e.uri=t;for(var i=0;i<e.playlists.length;i++)if(!e.playlists[i].uri){var n="placeholder-uri-"+i;e.playlists[i].uri=n}var r=ws(e);Es(e,function(t,i,n,a){var s="placeholder-uri-"+i+"-"+n+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===i&&!t.uri)for(var o=0;o<e.playlists.length;o++){var l=e.playlists[o];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===n)return}t.playlists=[tt()({},t)]}t.playlists.forEach(function(t,i){var n=Ss(i,s);t.uri?t.resolvedUri=t.resolvedUri||Ra(e.uri,t.uri):(t.uri=0===i?s:n,t.resolvedUri=t.uri),t.id=t.id||n,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),Cs(e),Os(e)},Is=Re.EventTarget,As=function(e,t){if(t.endList||!t.serverControl)return e;var i={};if(t.serverControl.canBlockReload){var n=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(n){var a=n.parts||[],s=es(t)-1;s>-1&&s!==a.length-1&&(i._HLS_part=s),(s>-1||a.length)&&r--}i._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(i._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(i).length){var o=new He.a.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){i.hasOwnProperty(e)&&o.searchParams.set(e,i[e])}),e=o.toString()}return e},Ms=function(e,t){if(!e)return t;var i=Be(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(i.parts[n]=Be(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i},Ds=function(e,t,i){var n=e.slice(),r=t.slice();i=i||0;for(var a=[],s=void 0,o=0;o<r.length;o++){var l=n[o+i],u=r[o];l?(s=l.map||s,a.push(Ms(l,u))):(s&&!u.map&&(u.map=s),a.push(u))}return a},Ls=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Ra(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Ra(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Ra(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Ra(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=Ra(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=Ra(t,e.uri))})},Ns=function(e){var t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(var n=0;n<i.preloadHints.length;n++)if("MAP"===i.preloadHints[n].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t},Rs=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},Bs=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rs,n=Be(e,{}),r=n.playlists[t.id];if(!r)return null;if(i(r,t))return null;t.segments=Ns(t);var a=Be(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var s=0;s<t.skip.skippedSegments;s++)t.segments.unshift({skipped:!0})}a.segments=Ds(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach(function(e){Ls(e,a.resolvedUri)});for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===t.id&&(n.playlists[o]=a);return n.playlists[t.id]=a,n.playlists[t.uri]=a,Es(e,function(e,i,n,r){if(e.playlists)for(var s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=a)}),n},zs=function(e,t){var i=e.segments||[],n=i[i.length-1],r=n&&n.parts&&n.parts[n.parts.length-1],a=r&&r.duration||n&&n.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},Us=function(e){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw new Error("A non-empty playlist URL or object is required");r.logger_=za("PlaylistLoader");var s=n.withCredentials,l=void 0!==s&&s;r.src=e,r.vhs_=i,r.withCredentials=l;var u=i.options_;return r.customTagParsers=u&&u.customTagParsers||[],r.customTagMappers=u&&u.customTagMappers||[],r.llhls=u&&u.llhls,r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(r),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}return s(t,e),ft(t,[{key:"handleMediaupdatetimeout_",value:function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),i=Ra(this.main.uri,t.uri);this.llhls&&(i=As(i,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:i,withCredentials:this.withCredentials},function(t,i){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})})}}},{key:"playlistRequestError",value:function(e,t,i){var n=t.uri,r=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.main.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}},{key:"parseManifest_",value:function(e){var t=this,i=e.url,n=e.manifestString;return xs({onwarn:function(e){var n=e.message;return t.logger_("m3u8-parser warn for "+i+": "+n)},oninfo:function(e){var n=e.message;return t.logger_("m3u8-parser info for "+i+": "+n)},manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}},{key:"haveMetadata",value:function(e){var t=e.playlistString,i=e.playlistObject,n=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=i||this.parseManifest_({url:n,manifestString:t});a.lastRequest=Date.now(),ks({playlist:a,uri:n,id:r});var s=Bs(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.main=s,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(zs(this.media(),!!s)),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),He.a.clearTimeout(this.mediaUpdateTimeout),He.a.clearTimeout(this.finalRenditionTimeout),this.off()}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e,t){var i=this;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(He.a.clearTimeout(this.finalRenditionTimeout),t){var n=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=He.a.setTimeout(this.media.bind(this,e,!1),n))}var r=this.state,a=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.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(a&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(zs(e,!0)),a){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},function(t,n){if(i.request){if(e.lastRequest=Date.now(),e.resolvedUri=Ba(e.resolvedUri,n),t)return i.playlistRequestError(i.request,e,r);i.haveMetadata({playlistString:n.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===r?i.trigger("loadedmetadata"):i.trigger("mediachange")}})}}},{key:"pause",value:function(){this.mediaUpdateTimeout&&(He.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")}},{key:"load",value:function(e){var t=this;this.mediaUpdateTimeout&&(He.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();if(e){var n=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3;return void(this.mediaUpdateTimeout=He.a.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},n))}if(!this.started)return void this.start();i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}},{key:"updateMediaUpdateTimeout_",value:function(e){var t=this;this.mediaUpdateTimeout&&(He.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=He.a.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))}},{key:"start",value:function(){var e=this;if(this.started=!0,"object"===vt(this.src))return this.src.uri||(this.src.uri=He.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){e.setupInitialPlaylist(e.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(t,i){if(e.request){if(e.request=null,t)return e.error={status:i.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:i.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Ba(e.src,i);var n=e.parseManifest_({manifestString:i.responseText,url:e.src});e.setupInitialPlaylist(n)}})}},{key:"srcUri",value:function(){return"string"==typeof this.src?this.src:this.src.uri}},{key:"setupInitialPlaylist",value:function(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,js(this.main,this.srcUri()),e.playlists.forEach(function(e){e.segments=Ns(e),e.segments.forEach(function(t){Ls(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));var t=this.srcUri()||He.a.location.href;this.main=Ps(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}}]),t}(Is),Fs=Re.xhr,Hs=function(e,t,i,n){var 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)))),n(t,e)},Vs=function(){var e=function e(t,i){t=Be({timeout:45e3},t);var n=e.beforeRequest||Re.Vhs.xhr.beforeRequest;if(n&&"function"==typeof n){var r=n(t);r&&(t=r)}var a=!0===Re.Vhs.xhr.original?Fs:Re.Vhs.xhr,s=a(t,function(e,t){return Hs(s,e,t,i)}),o=s.abort;return s.abort=function(){return s.aborted=!0,o.apply(s,arguments)},s.uri=t.uri,s.requestTime=Date.now(),s};return e.original=!0,e},qs=function(e){var t=void 0,i=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?He.a.BigInt(e.offset)+He.a.BigInt(e.length)-He.a.BigInt(1):e.offset+e.length-1,"bytes="+i+"-"+t},Gs=function(e){var t={};return e.byterange&&(t.Range=qs(e.byterange)),t},Ws=function(e,t){return e.start(t)+"-"+e.end(t)},Xs=function(e,t){var i=e.toString(16);return"00".substring(0,2-i.length)+i+(t%2?" ":"")},$s=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Ys=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];Object(at.e)(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t},Ks=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Qs=function(e){return e.resolvedUri},Js=function(e){for(var t=Array.prototype.slice.call(e),i="",n=void 0,r=void 0,a=0;a<t.length/16;a++)n=t.slice(16*a,16*a+16).map(Xs).join(""),r=t.slice(16*a,16*a+16).map($s).join(""),i+=n+" "+r+"\n";return i},Zs=function(e){var t=e.bytes;return Js(t)},eo=function(e){var t="",i=void 0;for(i=0;i<e.length;i++)t+=Ws(e,i)+" ";return t},to=Object.freeze({__proto__:null,createTransferableMessage:Ys,initSegmentId:Ks,segmentKeyId:Qs,hexDump:Js,tagDump:Zs,textRanges:eo}),io=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,n=t.videoTimingInfo.transmuxedPresentationStart,r=n+i,a=e-r;return new Date(t.dateTimeObject.getTime()+1e3*a)},no=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},ro=function(e,t){var i=void 0;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var n=t.segments[0];if(i<n.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){n=t.segments[r];if(i<t.segments[r+1].dateTimeObject)break}var a=t.segments[t.segments.length-1],s=a.dateTimeObject,o=a.videoTimingInfo?no(a.videoTimingInfo):a.duration+.25*a.duration;return i>new Date(s.getTime()+1e3*o)?null:(i>s&&(n=a),{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:Ts.duration(t,t.mediaSequence+t.segments.indexOf(n)),type:n.videoTimingInfo?"accurate":"estimate"})},ao=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i=0,n=void 0,r=0;r<t.segments.length&&(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,!(e<=i));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},so=function(e,t){var i=void 0,n=void 0;try{i=new Date(e),n=new Date(t)}catch(e){}var r=i.getTime();return(n.getTime()-r)/1e3},oo=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0},lo=function(e){var t=e.playlist,i=e.time,n=void 0===i?void 0:i,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===n)return r({message:"getProgramTime: playlist and time must be provided"});var a=ao(n,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:n},o=io(n,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},uo=function e(t){var i=t.programTime,n=t.playlist,r=t.retryCount,a=void 0===r?2:r,s=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,u=t.tech,d=t.callback;if(!d)throw new Error("seekToProgramTime: callback must be provided");if(void 0===i||!n||!s)return d({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!n.endList&&!u.hasStarted_)return d({message:"player must be playing a live stream to start buffering"});if(!oo(n))return d({message:"programDateTime tags must be provided in the manifest "+n.resolvedUri});var c=ro(i,n);if(!c)return d({message:i+" was not found in the stream"});var p=c.segment,h=so(p.dateTimeObject,i);if("estimate"===c.type)return 0===a?d({message:i+" is not buffered yet. Try again"}):(s(c.estimatedStart+h),void u.one("seeked",function(){e({programTime:i,playlist:n,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:u,callback:d})}));var f=p.start+h,v=function(){return d(null,u.currentTime())};u.one("seeked",v),l&&u.pause(),s(f)},co=function(e,t){if(4===e.readyState)return t()},po=function(e,t,i){var n=[],r=void 0,a=!1,s=function(e,t,n,r){return t.abort(),a=!0,i(e,t,n,r)},o=function(e,t){if(!a){if(e)return s(e,t,"",n);var i=t.responseText.substring(n&&n.byteLength||0,t.responseText.length);if(n=Object(at.d)(n,Object(at.h)(i,!0)),r=r||Object(ut.a)(n),n.length<10||r&&n.length<r+2)return co(t,function(){return s(e,t,"",n)});var o=Object(dt.a)(n);return"ts"===o&&n.length<188?co(t,function(){return s(e,t,"",n)}):!o&&n.length<376?co(t,function(){return s(e,t,"",n)}):s(null,t,o,n)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function(t){t.total,t.loaded;return Hs(e,null,{statusCode:e.status},o)})}},u=t(l,function(e,t){return Hs(u,e,t,o)});return u},ho=Re.EventTarget,fo=function(e,t){if(!Rs(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(var i=0;i<e.segments.length;i++){var n=e.segments[i],r=t.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){var a=n.byterange,s=r.byterange;if(a&&!s||!a&&s)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}}return!0},vo=function(e){var t=e.mainXml,i=e.srcUrl,n=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,s=Object(st.c)(t,{manifestUri:i,clientOffset:n,sidxMapping:r,previousManifest:a});return js(s,i),s},mo=function(e,t,i){for(var n=!0,r=Be(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var s=t.playlists[a];if(s.sidx){var o=Object(st.b)(s.sidx);i&&i[o]&&i[o].sidx&&Object(st.a)(s,i[o].sidx,s.sidx.resolvedUri)}var l=Bs(r,s,fo);l&&(r=l,n=!1)}return Es(t,function(e,t,i,a){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,o=Bs(r,e.playlists[0],fo);o&&(r=o,r.mediaGroups[t][i][a].playlists[0]=r.playlists[s],n=!1)}}),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(n=!1),n?null:r},go=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},yo=function(e,t){var i={};for(var n in e){var r=e[n],a=r.sidx;if(a){var s=Object(st.b)(a);if(!t[s])break;var o=t[s].sidxInfo;go(o,a)&&(i[s]=t[s])}}return i},bo=function(e,t){var i=yo(e.playlists,t),n=i;return Es(e,function(e,i,r,a){if(e.playlists&&e.playlists.length){var s=e.playlists;n=Be(n,yo(s,t))}}),n},wo=function(e){function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments[3];o(this,t);var s=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));s.mainPlaylistLoader_=r||s,r||(s.isMain_=!0);var l=n.withCredentials,u=void 0!==l&&l;if(s.vhs_=i,s.withCredentials=u,!e)throw new Error("A non-empty playlist URL or object is required");return s.on("minimumUpdatePeriod",function(){s.refreshXml_()}),s.on("mediaupdatetimeout",function(){s.refreshMedia_(s.media().id)}),s.state="HAVE_NOTHING",s.loadedPlaylists_={},s.logger_=za("DashPlaylistLoader"),s.isMain_?(s.mainPlaylistLoader_.srcUrl=e,s.mainPlaylistLoader_.sidxMapping_={}):s.childPlaylist_=e,s}return s(t,e),ft(t,[{key:"requestErrored_",value:function(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!==(void 0===e?"undefined":vt(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)}},{key:"addSidxSegments_",value:function(e,t,i){var n=this,r=e.sidx&&Object(st.b)(e.sidx);if(!e.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r])return void(this.mediaRequest_=He.a.setTimeout(function(){return i(!1)},0));var a=Ba(e.sidx.resolvedUri),s=function(a,s){if(!n.requestErrored_(a,s,t)){var o=n.mainPlaylistLoader_.sidxMapping_,l=void 0;try{l=lt()(Object(at.k)(s.response).subarray(8))}catch(e){return void n.requestErrored_(e,s,t)}return o[r]={sidxInfo:e.sidx,sidx:l},Object(st.a)(e,l,e.sidx.resolvedUri),i(!0)}};this.request=po(a,this.vhs_.xhr,function(t,i,r,o){if(t)return s(t,i);if(!r||"mp4"!==r)return s({status:i.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},i);var l=e.sidx.byterange,u=l.offset,d=l.length;if(o.length>=d+u)return s(t,{response:o.subarray(u,u+d),status:i.status,uri:i.uri});n.request=n.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Gs({byterange:e.sidx.byterange})},s)})}},{key:"dispose",value:function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},He.a.clearTimeout(this.minimumUpdatePeriodTimeout_),He.a.clearTimeout(this.mediaRequest_),He.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()}},{key:"hasPendingRequest",value:function(){return this.request||this.mediaRequest_}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var i=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]}var n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,i,function(n){t.haveMetadata({startingState:i,playlist:e})}))}},{key:"haveMetadata",value:function(e){var t=e.startingState,i=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[i.id]=i,this.mediaRequest_=null,this.refreshMedia_(i.id),"HAVE_MAIN_MANIFEST"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")}},{key:"pause",value:function(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),He.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(He.a.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(e){var t=this;He.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();if(e){var n=i?i.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=He.a.setTimeout(function(){return t.load()},n))}if(!this.started)return void this.start();i&&!i.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}},{key:"start",value:function(){var e=this;if(this.started=!0,!this.isMain_)return void(this.mediaRequest_=He.a.setTimeout(function(){return e.haveMain_()},0));this.requestMain_(function(t,i){e.haveMain_(),e.hasPendingRequest()||e.media_||e.media(e.mainPlaylistLoader_.main.playlists[0])})}},{key:"requestMain_",value:function(e){var t=this;this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(i,n){if(t.requestErrored_(i,n))return void("HAVE_NOTHING"===t.state&&(t.started=!1));var r=n.responseText!==t.mainPlaylistLoader_.mainXml_;return t.mainPlaylistLoader_.mainXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?t.mainLoaded_=Date.parse(n.responseHeaders.date):t.mainLoaded_=Date.now(),t.mainPlaylistLoader_.srcUrl=Ba(t.mainPlaylistLoader_.srcUrl,n),r?(t.handleMain_(),void t.syncClientServerClock_(function(){return e(n,r)})):e(n,r)})}},{key:"syncClientServerClock_",value:function(e){var t=this,i=Object(st.d)(this.mainPlaylistLoader_.mainXml_);return null===i?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===i.method?(this.mainPlaylistLoader_.clientOffset_=i.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Ra(this.mainPlaylistLoader_.srcUrl,i.value),method:i.method,withCredentials:this.withCredentials},function(n,r){if(t.request){if(n)return t.mainPlaylistLoader_.clientOffset_=t.mainLoaded_-Date.now(),e();var a=void 0;a="HEAD"===i.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.mainLoaded_:Date.parse(r.responseText),t.mainPlaylistLoader_.clientOffset_=a-Date.now(),e()}}))}},{key:"haveMain_",value:function(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}},{key:"handleMain_",value:function(){this.mediaRequest_=null;var e=this.mainPlaylistLoader_.main,t=vo({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=mo(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;var 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_(),Boolean(t)}},{key:"updateMinimumUpdatePeriodTimeout_",value:function(){var e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(He.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.main&&e.main.minimumUpdatePeriod;if(0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0)return void(t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"));this.createMUPTimeout_(t)}},{key:"createMUPTimeout_",value:function(e){var t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=He.a.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}},{key:"refreshXml_",value:function(){var e=this;this.requestMain_(function(t,i){i&&(e.media_&&(e.media_=e.mainPlaylistLoader_.main.playlists[e.media_.id]),e.mainPlaylistLoader_.sidxMapping_=bo(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,function(t){e.refreshMedia_(e.media().id)}))})}},{key:"refreshMedia_",value:function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();var i=this.mainPlaylistLoader_.main.playlists,n=!this.media_||this.media_!==i[e];if(n?this.media_=i[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=He.a.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},zs(t.media(),Boolean(n))))}()}this.trigger("loadedplaylist")}}]),t}(ho),To={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},_o=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer},So=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},xo=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(i){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},Eo=function(e){return function(){var t=xo(e),i=So(new Worker(t));i.objURL=t;var n=i.terminate;return i.on=i.addEventListener,i.off=i.removeEventListener,i.terminate=function(){return URL.revokeObjectURL(t),n.call(this)},i}},ko=function(e){return"var browserWorkerPolyFill = "+So.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},Co=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},Oo=ko(Co(function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==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 n;return!!e[t]&&(n=e[t].indexOf(i),e[t]=e[t].slice(),e[t].splice(n,1),n>-1)},this.trigger=function(t){var i,n,r,a;if(i=e[t])if(2===arguments.length)for(r=i.length,n=0;n<r;++n)i[n].call(this,arguments[1]);else{for(a=[],n=arguments.length,n=1;n<arguments.length;++n)a.push(arguments[n]);for(r=i.length,n=0;n<r;++n)i[n].apply(this,a)}},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 n,r,a,s,l,u,d,c,p,h,f,v,m,g,y,b,w,T,_,S,x,E,k,C,O,P,j,I,A,M,D,L,N,R,B,z,U=i,F=Math.pow(2,32),H=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)},V={getUint64:H,MAX_UINT32:F},q=V.MAX_UINT32;!function(){var e;if(k={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 k)k.hasOwnProperty(e)&&(k[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)]),P=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),O=new Uint8Array([0,0,0,1]),j=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]),I=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]),A={video:j,audio:I},L=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,B=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),z=N,M=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(e){var t,i,n,r=[],a=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)a+=r[t].byteLength;for(i=new Uint8Array(a+8),n=new DataView(i.buffer,i.byteOffset,i.byteLength),n.setUint32(0,i.byteLength),i.set(e,4),t=0,a=8;t<r.length;t++)i.set(r[t],a),a+=r[t].byteLength;return i},r=function(){return n(k.dinf,n(k.dref,L))},a=function(e){return n(k.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]))},s=function(){return n(k.ftyp,C,O,C,P)},b=function(e){return n(k.hdlr,A[e])},l=function(e){return n(k.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),n(k.mdhd,t)},g=function(e){return n(k.mdia,y(e),b(e.type),d(e))},u=function(e){return n(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},d=function(e){return n(k.minf,"video"===e.type?n(k.vmhd,M):n(k.smhd,D),r(),T(e))},c=function(e,t){for(var i=[],r=t.length;r--;)i[r]=S(t[r]);return n.apply(null,[k.moof,u(e)].concat(i))},p=function(e){for(var t=e.length,i=[];t--;)i[t]=v(e[t]);return n.apply(null,[k.moov,f(4294967295)].concat(i).concat(h(e)))},h=function(e){for(var t=e.length,i=[];t--;)i[t]=x(e[t]);return n.apply(null,[k.mvex].concat(i))},f=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 n(k.mvhd,t)},w=function(e){var t,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,a[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(k.sdtp,a)},T=function(e){return n(k.stbl,_(e),n(k.stts,z),n(k.stsc,R),n(k.stsz,B),n(k.stco,N))},function(){var e,t;_=function(i){return n(k.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||[],a=e.pps||[],s=[],o=[];for(t=0;t<r.length;t++)s.push((65280&r[t].byteLength)>>>8),s.push(255&r[t].byteLength),s=s.concat(Array.prototype.slice.call(r[t]));for(t=0;t<a.length;t++)o.push((65280&a[t].byteLength)>>>8),o.push(255&a[t].byteLength),o=o.concat(Array.prototype.slice.call(a[t]));if(i=[k.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]),n(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),n(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];i.push(n(k.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return n.apply(null,i)},t=function(e){return n(k.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]),a(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 n(k.tkhd,t)},S=function(e){var t,i,r,a,s,o,l;return t=n(k.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/q),l=Math.floor(e.baseMediaDecodeTime%q),i=n(k.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])),s=92,"audio"===e.type?(r=E(e,s),n(k.traf,t,i,r)):(a=w(e),r=E(e,a.length+s),n(k.traf,t,i,r,a))},v=function(e){return e.duration=e.duration||4294967295,n(k.trak,m(e),g(e))},x=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),n(k.trex,t)},function(){var e,t,i;i=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,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,a,s,o,l,u;for(o=e.samples||[],t+=20+16*o.length,s=i(o,t),a=new Uint8Array(s.length+16*o.length),a.set(s),r=s.length,u=0;u<o.length;u++)l=o[u],a[r++]=(4278190080&l.duration)>>>24,a[r++]=(16711680&l.duration)>>>16,a[r++]=(65280&l.duration)>>>8,a[r++]=255&l.duration,a[r++]=(4278190080&l.size)>>>24,a[r++]=(16711680&l.size)>>>16,a[r++]=(65280&l.size)>>>8,a[r++]=255&l.size,a[r++]=l.flags.isLeading<<2|l.flags.dependsOn,a[r++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,a[r++]=61440&l.flags.degradationPriority,a[r++]=15&l.flags.degradationPriority,a[r++]=(4278190080&l.compositionTimeOffset)>>>24,a[r++]=(16711680&l.compositionTimeOffset)>>>16,a[r++]=(65280&l.compositionTimeOffset)>>>8,a[r++]=255&l.compositionTimeOffset;return n(k.trun,a)},e=function(e,t){var r,a,s,o,l,u;for(o=e.samples||[],t+=20+8*o.length,s=i(o,t),r=new Uint8Array(s.length+8*o.length),r.set(s),a=s.length,u=0;u<o.length;u++)l=o[u],r[a++]=(4278190080&l.duration)>>>24,r[a++]=(16711680&l.duration)>>>16,r[a++]=(65280&l.duration)>>>8,r[a++]=255&l.duration,r[a++]=(4278190080&l.size)>>>24,r[a++]=(16711680&l.size)>>>16,r[a++]=(65280&l.size)>>>8,r[a++]=255&l.size;return n(k.trun,r)},E=function(i,n){return"audio"===i.type?e(i,n):t(i,n)}}();var G,W,X,$,Y,K,Q,J,Z={ftyp:s,mdat:l,moof:c,moov:p,initSegment:function(e){var t,i=s(),n=p(e);return t=new Uint8Array(i.byteLength+n.byteLength),t.set(i),t.set(n,i.byteLength),t}},ee=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,n.byteLength=0,t=0;t<e.length;t++)i=e[t],"access_unit_delimiter_rbsp"===i.nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),n=[i],n.byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},te=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.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?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),n=[i],n.nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},ie=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},ne=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},re=function(e,t){var i=ne();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},ae=function(e,t){var i,n,r,a,s,o=t||0,l=[];for(i=0;i<e.length;i++)for(a=e[i],n=0;n<a.length;n++)s=a[n],r=re(s,o),o+=r.size,l.push(r);return l},se=function(e){var t,i,n,r,a,s,o=0,l=e.byteLength,u=e.nalCount,d=l+4*u,c=new Uint8Array(d),p=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],i=0;i<r.length;i++)for(a=r[i],n=0;n<a.length;n++)s=a[n],p.setUint32(o,s.data.byteLength),o+=4,c.set(s.data,o),o+=s.data.byteLength;return c},oe=function(e,t){var i,n=t||0,r=[];return i=re(e,n),r.push(i),r},le=function(e){var t,i,n=0,r=e.byteLength,a=e.length,s=r+4*a,o=new Uint8Array(s),l=new DataView(o.buffer);for(t=0;t<e.length;t++)i=e[t],l.setUint32(n,i.data.byteLength),n+=4,o.set(i.data,n),n+=i.data.byteLength;return o},ue={groupNalsIntoFrames:ee,groupFramesIntoGops:te,extendFirstKeyFrame:ie,generateSampleTable:ae,concatenateNalData:se,generateSampleTableForFrame:oe,concatenateNalDataForFrame:le},de=[33,16,5,32,164,27],ce=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],pe=function(e){for(var t=[];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},{})},fe=function(){if(!G){var e={96e3:[de,[227,64],pe(154),[56]],88200:[de,[231],pe(170),[56]],64e3:[de,[248,192],pe(240),[56]],48e3:[de,[255,192],pe(268),[55,148,128],pe(54),[112]],44100:[de,[255,192],pe(268),[55,163,128],pe(84),[112]],32e3:[de,[255,192],pe(268),[55,234],pe(226),[112]],24e3:[de,[255,192],pe(268),[55,255,128],pe(268),[111,112],pe(126),[224]],16e3:[de,[255,192],pe(268),[55,255,128],pe(268),[111,255],pe(269),[223,108],pe(195),[1,192]],12e3:[ce,pe(268),[3,127,248],pe(268),[6,255,240],pe(268),[13,255,224],pe(268),[27,253,128],pe(259),[56]],11025:[ce,pe(268),[3,127,248],pe(268),[6,255,240],pe(268),[13,255,224],pe(268),[27,255,192],pe(268),[55,175,128],pe(108),[112]],8e3:[ce,pe(268),[3,121,16],pe(47),[7]]};G=he(e)}return G};W=function(e){return 9e4*e},X=function(e,t){return e*t},$=function(e){return e/9e4},Y=function(e,t){return e/t},K=function(e,t){return W(Y(e,t))},Q=function(e,t){return X($(e),t)},J=function(e,t,i){return $(i?e:e-t)};var ve={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:W,secondsToAudioTs:X,videoTsToSeconds:$,audioTsToSeconds:Y,audioTsToVideoTs:K,videoTsToAudioTs:Q,metadataTsToSeconds:J},me=fe,ge=ve,ye=function(e){var t,i,n=0;for(t=0;t<e.length;t++)i=e[t],n+=i.data.byteLength;return n},be=function(e,t,i,n){var r,a,s,o,l=0,u=0,d=0,c=0;if(t.length&&(r=ge.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(ge.ONE_SECOND_IN_TS/(e.samplerate/1024)),i&&n&&(u=r-Math.max(i,n),d=Math.floor(u/l),c=d*l),!(d<1||c>ge.ONE_SECOND_IN_TS/2))){for(a=me()[e.samplerate],a||(a=t[0].data),s=0;s<d;s++)o=t[0],t.splice(0,0,{data:a,dts:o.dts-l,pts:o.pts-l});return e.baseMediaDecodeTime-=Math.floor(ge.videoTsToAudioTs(c,e.samplerate)),c}},we=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,n=[];for(t=0;t<e.length;t++)i=e[t],n.push({size:i.data.byteLength,duration:1024});return n},_e=function(e){var t,i,n=0,r=new Uint8Array(ye(e));for(t=0;t<e.length;t++)i=e[t],r.set(i.data,n),n+=i.data.byteLength;return r},Se={prefixWithSilence:be,trimAdtsFramesByEarliestDts:we,generateSampleTable:Te,concatenateFrameData:_e},xe=ve.ONE_SECOND_IN_TS,Ee=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))},ke=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ce=function(e,t){var i,n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),i=e.timelineStartInfo.baseMediaDecodeTime,i+=r,i=Math.max(0,i),"audio"===e.type&&(n=e.samplerate/xe,i*=n,i=Math.floor(i)),i},Oe={clearDtsInfo:ke,calculateTrackBaseMediaDecodeTime:Ce,collectDtsInfo:Ee},Pe=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,n=0,r=0}return i},je=function(e){return 181!==e.payload[0]?null:49!=(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Ie=function(e,t){var i,n,r,a,s=[];if(!(64&t[0]))return s;for(n=31&t[0],i=0;i<n;i++)r=3*i,a={type:3&t[r+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s},Ae=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},Me={parseSei:Pe,parseUserData:je,parseCaptionPackets:Ie,discardEmulationPreventionBytes:Ae,USER_DATA_REGISTERED_ITU_T_T35:4},De=U,Le=Me,Ne=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Xe(0,0),new Xe(0,1),new Xe(1,0),new Xe(1,1)],this.parse708captions_&&(this.cc708Stream_=new He({captionServices:t.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")))};Ne.prototype=new De,Ne.prototype.push=function(e){var t,i,n;if("sei_rbsp"===e.nalUnitType&&(t=Le.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Le.USER_DATA_REGISTERED_ITU_T_T35&&(i=Le.parseUserData(t)))){if(e.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return void(--this.numSameDts_||(this.ignoreNextEqualDts_=!1));n=Le.parseCaptionPackets(e.pts,i),this.captionPackets_=this.captionPackets_.concat(n),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ne.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},Ne.prototype.flushStream=function(e){if(!this.captionPackets_.length)return void this.flushCCStreams(e);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)},Ne.prototype.flush=function(){return this.flushStream("flush")},Ne.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ne.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ne.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)},Ne.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ne.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ne.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Ne.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Re={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},Be=function(e){var t=Re[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},ze=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Ue=function(e){this.windowNum=e,this.reset()};Ue.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},Ue.prototype.getText=function(){return this.rows.join("\n")},Ue.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ue.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Ue.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ue.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Ue.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Fe=function(e,t,i){this.serviceNum=e,this.text="",this.currentWindow=new Ue(-1),this.windows=[],this.stream=i,"string"==typeof t&&this.createTextDecoder(t)};Fe.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new Ue(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},Fe.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Fe.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 He=function e(t){t=t||{},e.prototype.init.call(this);var i,n=this,r=t.captionServices||{},a={};Object.keys(r).forEach(function(e){i=r[e],/^SERVICE/.test(e)&&(a[e]=i.encoding)}),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};He.prototype=new De,He.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},He.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,n=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(n)},He.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,i=null,n=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)a=t[r++],i=a>>5,n=31&a,7===i&&n>0&&(a=t[r++],i=a),this.pushServiceBlock(i,r,n),n>0&&(r+=n-1)},He.prototype.pushServiceBlock=function(e,t,i){var n,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r<t+i&&r<a.length;r++)n=a[r],ze(n)?r=this.handleText(r,s):24===n?r=this.multiByteCharacter(r,s):16===n?r=this.extendedCommands(r,s):128<=n&&n<=135?r=this.setCurrentWindow(r,s):152<=n&&n<=159?r=this.defineWindow(r,s):136===n?r=this.clearWindows(r,s):140===n?r=this.deleteWindows(r,s):137===n?r=this.displayWindows(r,s):138===n?r=this.hideWindows(r,s):139===n?r=this.toggleWindows(r,s):151===n?r=this.setWindowAttributes(r,s):144===n?r=this.setPenAttributes(r,s):145===n?r=this.setPenColor(r,s):146===n?r=this.setPenLocation(r,s):143===n?s=this.reset(r,s):8===n?s.currentWindow.backspace():12===n?s.currentWindow.clearText():13===n?s.currentWindow.pendingNewLine=!0:14===n?s.currentWindow.clearText():141===n&&r++},He.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data,n=i[++e];return ze(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},He.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},He.prototype.initService=function(e,t){var i,n,i="SERVICE"+e,r=this;return i in this.serviceEncodings&&(n=this.serviceEncodings[i]),this.services[e]=new Fe(e,n,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},He.prototype.handleText=function(e,t,i){var n,r,a=i&&i.isExtended,s=i&&i.isMultiByte,o=this.current708Packet.data,l=a?4096:0,u=o[e],d=o[e+1],c=t.currentWindow;return t.textDecoder_&&!a?(s?(r=[u,d],e++):r=[u],n=t.textDecoder_.decode(new Uint8Array(r))):n=Be(l|u),c.pendingNewLine&&!c.isEmpty()&&c.newLine(this.getPts(e)),c.pendingNewLine=!1,c.addText(n),e},He.prototype.multiByteCharacter=function(e,t){var i=this.current708Packet.data,n=i[e+1],r=i[e+2];return ze(n)&&ze(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},He.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data,n=i[e],r=7&n;return t.setCurrentWindow(r),e},He.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e],r=7&n;t.setCurrentWindow(r);var a=t.currentWindow;return n=i[++e],a.visible=(32&n)>>5,a.rowLock=(16&n)>>4,a.columnLock=(8&n)>>3,a.priority=7&n,n=i[++e],a.relativePositioning=(128&n)>>7,a.anchorVertical=127&n,n=i[++e],a.anchorHorizontal=n,n=i[++e],a.anchorPoint=(240&n)>>4,a.rowCount=15&n,n=i[++e],a.columnCount=63&n,n=i[++e],a.windowStyle=(56&n)>>3,a.penStyle=7&n,a.virtualRowCount=a.rowCount+1,e},He.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.winAttr;return n=i[++e],r.fillOpacity=(192&n)>>6,r.fillRed=(48&n)>>4,r.fillGreen=(12&n)>>2,r.fillBlue=3&n,n=i[++e],r.borderType=(192&n)>>6,r.borderRed=(48&n)>>4,r.borderGreen=(12&n)>>2,r.borderBlue=3&n,n=i[++e],r.borderType+=(128&n)>>5,r.wordWrap=(64&n)>>6,r.printDirection=(48&n)>>4,r.scrollDirection=(12&n)>>2,r.justify=3&n,n=i[++e],r.effectSpeed=(240&n)>>4,r.effectDirection=(12&n)>>2,r.displayEffect=3&n,e},He.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},He.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)},He.prototype.displayWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&(t.windows[a].visible=1);return e},He.prototype.hideWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&(t.windows[a].visible=0);return e},He.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&(t.windows[a].visible^=1);return e},He.prototype.clearWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&t.windows[a].clearText();return e},He.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data,n=i[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var a=0;a<8;a++)n&1<<a&&t.windows[a].reset();return e},He.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penAttr;return n=i[++e],r.textTag=(240&n)>>4,r.offset=(12&n)>>2,r.penSize=3&n,n=i[++e],r.italics=(128&n)>>7,r.underline=(64&n)>>6,r.edgeType=(56&n)>>3,r.fontStyle=7&n,e},He.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penColor;return n=i[++e],r.fgOpacity=(192&n)>>6,r.fgRed=(48&n)>>4,r.fgGreen=(12&n)>>2,r.fgBlue=3&n,n=i[++e],r.bgOpacity=(192&n)>>6,r.bgRed=(48&n)>>4,r.bgGreen=(12&n)>>2,r.bgBlue=3&n,n=i[++e],r.edgeRed=(48&n)>>4,r.edgeGreen=(12&n)>>2,r.edgeBlue=3&n,e},He.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},He.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},qe=function(e){return null===e?"":(e=Ve[e]||e,String.fromCharCode(e))},Ge=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],We=function(){for(var e=[],t=15;t--;)e.push("");return e},Xe=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a;if((t=32639&e.ccData)===this.lastControlCode_)return void(this.lastControlCode_=null);if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),n=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_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=We();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=We();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=We()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(n,r))n=(3&n)<<8,a=qe(n|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(n,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),n=(3&n)<<8,a=qe(n|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(n,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(n,r))this.column_+=3&r;else if(this.isPAC(n,r)){var s=Ge.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(n)&&(0===r&&(r=null),a=qe(n),a+=qe(r),this[this.mode_](e.pts,a),this.column_+=a.length)}};Xe.prototype=new De,Xe.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Xe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=We(),this.nonDisplayed_=We(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Xe.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_},Xe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Xe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Xe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Xe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Xe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Xe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Xe.prototype.isNormalChar=function(e){return e>=32&&e<=127},Xe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=We(),this.displayed_=We()),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]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Xe.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)},Xe.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)}},Xe.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];i+=t,this.nonDisplayed_[this.row_]=i},Xe.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i},Xe.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Xe.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];i+=t,this.displayed_[this.row_]=i};var $e={CaptionStream:Ne,Cea608Stream:Xe,Cea708Stream:He},Ye={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ke=U,Qe=function(e,t){var i=1;for(e>t&&(i=-1);Math.abs(t-e)>4294967296;)e+=8589934592*i;return e},Je=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Qe(e.dts,n),e.pts=Qe(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,i=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Je.prototype=new Ke;var Ze,et={TimestampRolloverStream:Je,handleRollover:Qe},tt=function(e,t,i){if(!e)return-1;for(var n=i;n<e.length;n++)if(e[n]===t)return n;return-1},it={typedArrayIndexOf:tt},nt=U,rt=Ye,at=it.typedArrayIndexOf,st={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},ot=function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r},lt=function(e,t,i){return decodeURIComponent(ot(e,t,i))},ut=function(e,t,i){return unescape(ot(e,t,i))},dt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},ct={APIC:function(e){var t,i,n=1;e.data[0]===st.Utf8&&((t=at(e.data,0,n))<0||(e.mimeType=ut(e.data,n,t),n=t+1,e.pictureType=e.data[n],n++,(i=at(e.data,0,n))<0||(e.description=lt(e.data,n,i),n=i+1,"--\x3e"===e.mimeType?e.url=ut(e.data,n,e.data.length):e.pictureData=e.data.subarray(n,e.data.length))))},"T*":function(e){e.data[0]===st.Utf8&&(e.value=lt(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\0"))},TXXX:function(e){var t;e.data[0]===st.Utf8&&-1!==(t=at(e.data,0,1))&&(e.description=lt(e.data,1,t),e.value=lt(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=ut(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;e.data[0]===st.Utf8&&-1!==(t=at(e.data,0,1))&&(e.description=lt(e.data,1,t),e.url=ut(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=ut(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ze=function(e){var t,i={descriptor:e&&e.descriptor},n=0,r=[],a=0;if(Ze.prototype.init.call(this),this.dispatchType=rt.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,s,o,l,u;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(a=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)))return void this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});if(r.push(e),a+=e.data.byteLength,1===r.length&&(n=dt(e.data.subarray(6,10)),n+=10),!(a<n)){for(t={data:new Uint8Array(n),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<n;)t.data.set(r[0].data.subarray(0,n-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();i=10,64&t.data[5]&&(i+=4,i+=dt(t.data.subarray(10,14)),n-=dt(t.data.subarray(16,20)));do{if((s=dt(t.data.subarray(i+4,i+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(u=String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),o={id:u,data:t.data.subarray(i+10,i+s+10)},o.key=o.id,ct[o.id]?ct[o.id](o):"T"===o.id[0]?ct["T*"](o):"W"===o.id[0]&&ct["W*"](o),"com.apple.streaming.transportStreamTimestamp"===o.owner){var d=o.data,c=(1&d[3])<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;c*=4,c+=3&d[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+=s}while(i<n);this.trigger("data",t)}}}},Ze.prototype=new nt;var pt,ht,mt,gt=Ze,yt=U,bt=$e,wt=Ye,Tt=et.TimestampRolloverStream;pt=function(){var e=new Uint8Array(188),t=0;pt.prototype.init.call(this),this.push=function(i){var n,r=0,a=188;for(t?(n=new Uint8Array(i.byteLength+t),n.set(e.subarray(0,t)),n.set(i,t),t=0):n=i;a<n.byteLength;)71!==n[r]||71!==n[a]?(r++,a++):(this.trigger("data",n.subarray(r,a)),r+=188,a+=188);r<n.byteLength&&(e.set(n.subarray(r),0),t=n.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(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")}},pt.prototype=new yt,ht=function(){var e,t,i,n;ht.prototype.init.call(this),n=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,n){var r=0;n.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===n.type?t(e.subarray(r),n):i(e.subarray(r),n)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],n.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=n.pmtPid},i=function(e,t){var i,r,a,s;if(1&e[5]){for(n.programMapTable={video:null,audio:null,"timed-metadata":{}},i=(15&e[1])<<8|e[2],r=3+i-4,a=(15&e[10])<<8|e[11],s=12+a;s<r;){var o=e[s],l=(31&e[s+1])<<8|e[s+2];o===wt.H264_STREAM_TYPE&&null===n.programMapTable.video?n.programMapTable.video=l:o===wt.ADTS_STREAM_TYPE&&null===n.programMapTable.audio?n.programMapTable.audio=l:o===wt.METADATA_STREAM_TYPE&&(n.programMapTable["timed-metadata"][l]=o),s+=5+((15&e[s+3])<<8|e[s+4])}t.programMapTable=n.programMapTable}},this.push=function(t){var i={},n=4;if(i.payloadUnitStartIndicator=!!(64&t[1]),i.pid=31&t[1],i.pid<<=8,i.pid|=t[2],(48&t[3])>>>4>1&&(n+=t[n]+1),0===i.pid)i.type="pat",e(t.subarray(n),i),this.trigger("data",i);else if(i.pid===this.pmtPid)for(i.type="pmt",e(t.subarray(n),i),this.trigger("data",i);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,n,i]):this.processPes_(t,n,i)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=wt.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=wt.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}},ht.prototype=new yt,ht.STREAM_TYPES={h264:27,adts:15},mt=function(){var e,t=this,i=!1,n={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=function(e,t){var i,n=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===n&&(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,n){var r,a=new Uint8Array(e.size),o={type:i},l=0,u=0,d=!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],a.set(r.data,u),u+=r.data.byteLength;s(a,o),d="video"===i||o.packetLength<=e.size,(n||d)&&(e.size=0,e.data.length=0),d&&t.trigger("data",o)}};mt.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case wt.H264_STREAM_TYPE:e=n,t="video";break;case wt.ADTS_STREAM_TYPE:e=r,t="audio";break;case wt.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};e=s.programMapTable,null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),i=!0,t.trigger("data",n)}})[s.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!i&&e){var n={type:"metadata",tracks:[]};null!==e.video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}i=!1,this.flushStreams_(),this.trigger("done")}},mt.prototype=new yt;var _t={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:pt,TransportParseStream:ht,ElementaryStream:mt,TimestampRolloverStream:Tt,CaptionStream:bt.CaptionStream,Cea608Stream:bt.Cea608Stream,Cea708Stream:bt.Cea708Stream,MetadataStream:gt};for(var St in wt)wt.hasOwnProperty(St)&&(_t[St]=wt[St]);var xt,Et=_t,kt=U,Ct=ve.ONE_SECOND_IN_TS,Ot=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];xt=function(e){var t,i=0;xt.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(n){var r,a,s,o,l,u=0;if(e||(i=0),"audio"===n.type){t&&t.length?(s=t,t=new Uint8Array(s.byteLength+n.data.byteLength),t.set(s),t.set(n.data,s.byteLength)):t=n.data;for(var d;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof d&&(this.skipWarn_(d,u),d=null),a=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,o=1024*(1+(3&t[u+6])),l=o*Ct/Ot[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:n.pts+i*l,dts:n.dts+i*l,sampleCount:o,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:Ot[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+r)}),i++,u+=r}else"number"!=typeof d&&(d=u),u++;"number"==typeof d&&(this.skipWarn_(d,u),d=null),t=t.subarray(u)}},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")}},xt.prototype=new kt;var Pt,jt=xt;Pt=function(e){var t=e.byteLength,i=0,n=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+n},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),i=new DataView(a.buffer).getUint32(0),n=8*s,t-=s},this.skipBits=function(e){var r;n>e?(i<<=e,n-=e):(e-=n,r=Math.floor(e/8),e-=8*r,t-=r,this.loadWord(),i<<=e,n-=e)},this.readBits=function(e){var r=Math.min(n,e),a=i>>>32-r;return n-=r,n>0?i<<=r:t>0&&this.loadWord(),r=e-r,r>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;for(e=0;e<n;++e)if(0!=(i&2147483648>>>e))return i<<=e,n-=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 It,At,Mt,Dt=Pt,Lt=U,Nt=Dt;At=function(){var e,t,i=0;At.prototype.init.call(this),this.push=function(n){var r;t?(r=new Uint8Array(t.byteLength+n.data.byteLength),r.set(t),r.set(n.data,t.byteLength),t=r):t=n.data;for(var a=t.byteLength;i<a-3;i++)if(1===t[i+2]){e=i+5;break}for(;e<a;)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<a);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}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")}},At.prototype=new Lt,Mt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},It=function(){var e,t,i,n,r,a,s,o=new At;It.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,i=e.pts,n=e.dts,o.push(e))},o.on("data",function(s){var o={trackId:t,pts:i,dts:n,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}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()},s=function(e,t){var i,n,r=8,a=8;for(i=0;i<e;i++)0!==a&&(n=t.readExpGolomb(),a=(r+n+256)%256),r=0===a?r:a},r=function(e){for(var t,i,n=e.byteLength,r=[],a=1;a<n-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=n-r.length,i=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=e[s];return i},a=function(e){var t,i,n,r,a,o,l,u,d,c,p,h,f=0,v=0,m=0,g=0,y=[1,1];if(t=new Nt(e),i=t.readUnsignedByte(),r=t.readUnsignedByte(),n=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),Mt[i]&&(a=t.readUnsignedExpGolomb(),3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(p=3!==a?8:12,h=0;h<p;h++)t.readBoolean()&&(h<6?s(16,t):s(64,t));if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),h=0;h<l;h++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),d=t.readUnsignedExpGolomb(),c=t.readBits(1),0===c&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:i,levelIdc:n,profileCompatibility:r,width:16*(u+1)-2*f-2*v,height:(2-c)*(d+1)*16-2*m-2*g,sarRatio:y}}},It.prototype=new Lt;var Rt,Bt={H264Stream:It,NalByteStream:At},zt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Ut=function(e,t){var i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],n=e[t+5],r=(16&n)>>4;return i=i>=0?i:0,r?i+20:i+10},Ft=function e(t,i){return t.length-i<10||t[i]!=="I".charCodeAt(0)||t[i+1]!=="D".charCodeAt(0)||t[i+2]!=="3".charCodeAt(0)?i:(i+=Ut(t,i),e(t,i))},Ht=function(e){var t=Ft(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},Vt=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},qt=function(e,t,i){var n,r="";for(n=t;n<i;n++)r+="%"+("00"+e[n].toString(16)).slice(-2);return r},Gt=function(e,t,i){return unescape(qt(e,t,i))},Wt=function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},Xt=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},$t=function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return zt[(60&e[t+2])>>>2];t++}return null},Yt=function(e){var t,i,n;t=10,64&e[5]&&(t+=4,t+=Vt(e.subarray(10,14)));do{if((i=Vt(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){n=e.subarray(t+10,t+i+10);for(var r=0;r<n.byteLength;r++)if(0===n[r]){var a=Gt(n,0,r);if("com.apple.streaming.transportStreamTimestamp"===a){var s=n.subarray(r+1),o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return o*=4,o+=3&s[7]}break}}t+=10,t+=i}while(t<e.byteLength);return null},Kt={isLikelyAacData:Ht,parseId3TagSize:Ut,parseAdtsSize:Wt,parseType:Xt,parseSampleRate:$t,parseAacTimestamp:Yt},Qt=U,Jt=Kt;Rt=function(){var e=new Uint8Array,t=0;Rt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(i){var n,r,a,s,o=0,l=0;for(e.length?(s=e.length,e=new Uint8Array(i.byteLength+s),e.set(e.subarray(0,s)),e.set(i,s)):e=i;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=Jt.parseAdtsSize(e,l),l+o>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else{if(e.length-l<10)break;if(o=Jt.parseId3TagSize(e,l),l+o>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}n=e.length-l,e=n>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Rt.prototype=new Qt;var Zt,ei,ti,ii,ni=Rt,ri=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],ai=ri,si=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],oi=si,li=U,ui=Z,di=ue,ci=Se,pi=Oe,hi=Et,fi=ve,vi=jt,mi=Bt.H264Stream,gi=ni,yi=Kt.isLikelyAacData,bi=ve.ONE_SECOND_IN_TS,wi=ai,Ti=oi,_i=function(e,t){t.stream=e,this.trigger("log",t)},Si=function(e,t){for(var i=Object.keys(t),n=0;n<i.length;n++){var r=i[n];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",_i.bind(e,r))}},xi=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},Ei=function(e,t,i,n,r,a){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:a,baseMediaDecodeTime:e}};ei=function(e,t){var i,n=[],r=0,a=0,s=1/0;t=t||{},i=t.firstSequenceNumber||0,ei.prototype.init.call(this),this.push=function(t){pi.collectDtsInfo(e,t),e&&wi.forEach(function(i){e[i]=t[i]}),n.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var o,l,u,d,c,p,h;if(0===n.length)return void this.trigger("done","AudioSegmentStream");o=ci.trimAdtsFramesByEarliestDts(n,e,r),e.baseMediaDecodeTime=pi.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),h=ci.prefixWithSilence(e,o,a,s),e.samples=ci.generateSampleTable(o),u=ui.mdat(ci.concatenateFrameData(o)),n=[],l=ui.moof(i,[e]),d=new Uint8Array(l.byteLength+u.byteLength),i++,d.set(l),d.set(u,l.byteLength),pi.clearDtsInfo(e),c=Math.ceil(1024*bi/e.samplerate),o.length&&(p=o.length*c,this.trigger("segmentTimingInfo",Ei(fi.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+p,o[0].pts+p,h||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+p})),this.trigger("data",{track:e,boxes:d}),this.trigger("done","AudioSegmentStream")},this.reset=function(){pi.clearDtsInfo(e),n=[],this.trigger("reset")}},ei.prototype=new li,Zt=function(e,t){var i,n,r,a=[],s=[];t=t||{},i=t.firstSequenceNumber||0,Zt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){pi.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],Ti.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var n,r,o,l,u,d,c,p,h=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=di.groupNalsIntoFrames(a),o=di.groupFramesIntoGops(n),o[0][0].keyFrame||(r=this.getGopForFusion_(a[0],e),r?(h=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=di.extendFirstKeyFrame(o)),s.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");pi.clearDtsInfo(e),o=f}pi.collectDtsInfo(e,o),e.samples=di.generateSampleTable(o),u=ui.mdat(di.concatenateNalData(o)),e.baseMediaDecodeTime=pi.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),c=o[0],p=o[o.length-1],this.trigger("segmentTimingInfo",Ei(e.baseMediaDecodeTime,c.dts,c.pts,p.dts+p.duration,p.pts+p.duration,h)),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),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=ui.moof(i,[e]),d=new Uint8Array(l.byteLength+u.byteLength),i++,d.set(l),d.set(u,l.byteLength),this.trigger("data",{track:e,boxes:d}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){pi.clearDtsInfo(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var i,n,r,a,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)a=this.gopCache_[s],r=a.gop,e.pps&&xi(e.pps[0],a.pps[0])&&e.sps&&xi(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(i=t.dts-r.dts-r.duration)>=-1e4&&i<=45e3&&(!n||o>i)&&(n=a,o=i));return n?n.gop:null},this.alignGopsAtStart_=function(e){var t,i,n,r,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=i=0;t<s.length&&i<e.length&&(n=s[t],r=e[i],n.pts!==r.pts);)r.pts>n.pts?t++:(i++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===i?e:i===e.length?null:(u=e.slice(i),u.byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,i,n,r,a,o;for(t=s.length-1,i=e.length-1,a=null,o=!1;t>=0&&i>=0;){if(n=s[t],r=e[i],n.pts===r.pts){o=!0;break}n.pts>r.pts?t--:(t===s.length-1&&(a=i),i--)}if(!o&&null===a)return null;var l;if(0===(l=o?i:a))return e;var u=e.slice(l),d=u.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 u.byteLength=d.byteLength,u.duration=d.duration,u.nalCount=d.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}},Zt.prototype=new li,ii=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},void 0!==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,ii.prototype.init.call(this),this.push=function(e){return 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))))}},ii.prototype=new li,ii.prototype.flush=function(e){var t,i,n,r,a=0,s={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 void(++this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Ti.forEach(function(e){s.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,wi.forEach(function(e){s.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,n=ui.initSegment(this.pendingTracks),s.initSegment=new Uint8Array(n.byteLength),s.initSegment.set(n),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)t=this.pendingCaptions[r],t.startTime=fi.metadataTsToSeconds(t.startPts,o,this.keepOriginalTimestamps),t.endTime=fi.metadataTsToSeconds(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)i=this.pendingMetadata[r],i.cueTime=fi.metadataTsToSeconds(i.pts,o,this.keepOriginalTimestamps),s.metadata.push(i);for(s.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",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)i=s.metadata[r],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},ii.prototype.setRemux=function(e){this.remuxTracks=e},ti=function(e){var t,i,n=this,r=!0;ti.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 hi.MetadataStream,r.aacStream=new gi,r.audioTimestampRolloverStream=new hi.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new hi.TimestampRolloverStream("timed-metadata"),r.adtsStream=new vi,r.coalesceStream=new ii(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(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(i=i||{timelineStartInfo:{baseMediaDecodeTime:n.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ei(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),n.trigger("trackinfo",{hasAudio:!!i,hasVideo:!!t}))}),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Si(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new hi.MetadataStream,r.packetStream=new hi.TransportPacketStream,r.parseStream=new hi.TransportParseStream,r.elementaryStream=new hi.ElementaryStream,r.timestampRolloverStream=new hi.TimestampRolloverStream,r.adtsStream=new vi,r.h264Stream=new mi,r.captionStream=new hi.CaptionStream(e),r.coalesceStream=new ii(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(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?i||"audio"!==a.tracks[s].type||(i=a.tracks[s],i.timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime):(t=a.tracks[s],t.timelineStartInfo.baseMediaDecodeTime=n.baseMediaDecodeTime);t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Zt(t,e),r.videoSegmentStream.on("log",n.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",function(t){i&&!e.keepOriginalTimestamps&&(i.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-n.baseMediaDecodeTime))}),r.videoSegmentStream.on("processedGopsInfo",n.trigger.bind(n,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",function(e){i&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),r.videoSegmentStream.on("timingInfo",n.trigger.bind(n,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),i&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new ei(i,e),r.audioSegmentStream.on("log",n.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",n.trigger.bind(n,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",n.trigger.bind(n,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),n.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,n.trigger("id3Frame",e)}),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Si(this,r)},this.setBaseMediaDecodeTime=function(n){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=n),i&&(i.timelineStartInfo.dts=void 0,i.timelineStartInfo.pts=void 0,pi.clearDtsInfo(i),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,pi.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=yi(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()}},ti.prototype=new li;var ki,Ci={Transmuxer:ti,VideoSegmentStream:Zt,AudioSegmentStream:ei,AUDIO_PROPERTIES:wi,VIDEO_PROPERTIES:Ti,generateSegmentTimingInfo:Ei},Oi=function(e){return e>>>0},Pi=function(e){return("00"+e.toString(16)).slice(-2)},ji={toUnsigned:Oi,toHexString:Pi},Ii=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])},Ai=Ii,Mi=ji.toUnsigned,Di=Ai,Li=function e(t,i){var n,r,a,s,o,l=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=Mi(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=Di(t.subarray(n+4,n+8)),s=r>1?n+r:t.byteLength,a===i[0]&&(1===i.length?l.push(t.subarray(n+8,s)):(o=e(t.subarray(n+8,s),i.slice(1)),o.length&&(l=l.concat(o)))),n=s;return l},Ni=Li,Ri=ji.toUnsigned,Bi=V.getUint64,zi=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Bi(e.subarray(4)):t.baseMediaDecodeTime=Ri(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Ui=zi,Fi=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]}},Hi=Fi,Vi=Hi,qi=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],l=4&i.flags[1],u=8&i.flags[1],d=n.getUint32(4),c=8;for(r&&(i.dataOffset=n.getInt32(c),c+=4),a&&d&&(t={flags:Vi(e.subarray(c,c+4))},c+=4,s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t),d--);d--;)t={},s&&(t.duration=n.getUint32(c),c+=4),o&&(t.size=n.getUint32(c),c+=4),l&&(t.flags=Vi(e.subarray(c,c+4)),c+=4),u&&(1===i.version?t.compositionTimeOffset=n.getInt32(c):t.compositionTimeOffset=n.getUint32(c),c+=4),i.samples.push(t);return i},Gi=qi,Wi=function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:i.getUint32(4)},r=1&n.flags[2],a=2&n.flags[2],s=8&n.flags[2],o=16&n.flags[2],l=32&n.flags[2],u=65536&n.flags[0],d=131072&n.flags[0];return t=8,r&&(t+=4,n.baseDataOffset=i.getUint32(12),t+=4),a&&(n.sampleDescriptionIndex=i.getUint32(t),t+=4),s&&(n.defaultSampleDuration=i.getUint32(t),t+=4),o&&(n.defaultSampleSize=i.getUint32(t),t+=4),l&&(n.defaultSampleFlags=i.getUint32(t)),u&&(n.durationIsEmpty=!0),!r&&d&&(n.baseDataOffsetIsMoof=!0),n},Xi=Wi;ki="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var $i,Yi,Ki,Qi,Ji,Zi,en=ki,tn=Me.discardEmulationPreventionBytes,nn=$e.CaptionStream,rn=Ni,an=Ui,sn=Gi,on=Xi,ln=en,un=function(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null},dn=function(e,t,i){var n,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+a),d=un(r,t);if(n={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:tn(u),trackId:i},d)n.pts=d.pts,n.dts=d.dts,s=d;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+i+". See mux.js#223."});break}n.pts=s.pts,n.dts=s.dts}l.seiNals.push(n)}return l},cn=function(e,t,i){var n=t,r=i.defaultSampleDuration||0,a=i.defaultSampleSize||0,s=i.trackId,o=[];return e.forEach(function(e){var t=sn(e),i=t.samples;i.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=n,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof n?(e.pts=n+ln.BigInt(e.compositionTimeOffset),n+=ln.BigInt(e.duration)):(e.pts=n+e.compositionTimeOffset,n+=e.duration)}),o=o.concat(i)}),o},pn=function(e,t){var i=rn(e,["moof","traf"]),n=rn(e,["mdat"]),r={},a=[];return n.forEach(function(e,t){var n=i[t];a.push({mdat:e,traf:n})}),a.forEach(function(e){var i,n,a=e.mdat,s=e.traf,o=rn(s,["tfhd"]),l=on(o[0]),u=l.trackId,d=rn(s,["tfdt"]),c=d.length>0?an(d[0]).baseMediaDecodeTime:0,p=rn(s,["trun"]);t===u&&p.length>0&&(i=cn(p,c,l),n=dn(a,i,u),r[u]||(r[u]={seiNals:[],logs:[]}),r[u].seiNals=r[u].seiNals.concat(n.seiNals),r[u].logs=r[u].logs.concat(n.logs))}),r},hn=function(e,t,i){var n;if(null===t)return null;n=pn(e,t);var r=n[t]||{};return{seiNals:r.seiNals,logs:r.logs,timescale:i}},fn=function(){var e,t,i,n,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new nn,s=!0,a=!!t&&t.isPartial,e.on("data",function(e){e.startTime=e.startPts/n,e.endTime=e.endPts/n,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"===(void 0===t?"undefined":vt(t))&&0===Object.keys(t).length)&&(i!==e[0]||n!==t[i])},this.parse=function(e,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))i=a[0],n=s[i];else if(null===i||!n)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return o=hn(e,i,n),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;a?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,n=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},vn=fn,mn=ji.toUnsigned,gn=ji.toHexString,yn=Ni,bn=Ai,wn=Xi,Tn=Gi,_n=Ui,Sn=V.getUint64,xn=en;$i=function(e){var t={};return yn(e,["moov","trak"]).reduce(function(e,t){var i,n,r,a,s;return(i=yn(t,["tkhd"])[0])?(n=i[0],r=0===n?12:20,a=mn(i[r]<<24|i[r+1]<<16|i[r+2]<<8|i[r+3]),(s=yn(t,["mdia","mdhd"])[0])?(n=s[0],r=0===n?12:20,e[a]=mn(s[r]<<24|s[r+1]<<16|s[r+2]<<8|s[r+3]),e):null):null},t)},Yi=function(e,t){var i;i=yn(t,["moof","traf"]);var n=i.reduce(function(t,i){var n,r=yn(i,["tfhd"])[0],a=mn(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),s=e[a]||9e4,o=yn(i,["tfdt"])[0],l=new DataView(o.buffer,o.byteOffset,o.byteLength);n=1===o[0]?Sn(o.subarray(4,12)):l.getUint32(4);var u=void 0;return"bigint"==typeof n?u=n/xn.BigInt(s):"number"!=typeof n||isNaN(n)||(u=n/s),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},Ki=function(e,t){var i,n=yn(t,["moof","traf"]),r=0,a=0;if(n&&n.length){var s=yn(n[0],["tfhd"])[0],o=yn(n[0],["trun"])[0],l=yn(n[0],["tfdt"])[0];if(s){i=wn(s).trackId}if(l){r=_n(l).baseMediaDecodeTime}if(o){var u=Tn(o);u.samples&&u.samples.length&&(a=u.samples[0].compositionTimeOffset||0)}}var d=e[i]||9e4;"bigint"==typeof r&&(a=xn.BigInt(a),d=xn.BigInt(d));var c=(r+a)/d;return"bigint"==typeof c&&c<Number.MAX_SAFE_INTEGER&&(c=Number(c)),c},Qi=function(e){var t=yn(e,["moov","trak"]),i=[];return t.forEach(function(e){var t=yn(e,["mdia","hdlr"]),n=yn(e,["tkhd"]);t.forEach(function(e,t){var r,a,s,o=bn(e.subarray(8,12)),l=n[t];"vide"===o&&(r=new DataView(l.buffer,l.byteOffset,l.byteLength),a=r.getUint8(0),s=0===a?r.getUint32(12):r.getUint32(20),i.push(s))})}),i},Zi=function(e){var t=e[0],i=0===t?12:20;return mn(e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3])},Ji=function(e){var t=yn(e,["moov","trak"]),i=[];return t.forEach(function(e){var t,n,r={},a=yn(e,["tkhd"])[0];a&&(t=new DataView(a.buffer,a.byteOffset,a.byteLength),n=t.getUint8(0),r.id=0===n?t.getUint32(12):t.getUint32(20));var s=yn(e,["mdia","hdlr"])[0];if(s){var o=bn(s.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=yn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=bn(u.subarray(4,8));var d,c,p=yn(u,[r.codec])[0];p&&(/^[asm]vc[1-9]$/i.test(r.codec)?(d=p.subarray(78),c=bn(d.subarray(4,8)),"avcC"===c&&d.length>11?(r.codec+=".",r.codec+=gn(d[9]),r.codec+=gn(d[10]),r.codec+=gn(d[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(d=p.subarray(28),c=bn(d.subarray(4,8)),"esds"===c&&d.length>20&&0!==d[19]?(r.codec+="."+gn(d[19]),r.codec+="."+gn(d[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=yn(e,["mdia","mdhd"])[0];h&&(r.timescale=Zi(h)),i.push(r)}),i};var En={findBox:yn,parseType:bn,timescale:$i,startTime:Yi,compositionStartTime:Ki,videoTrackIds:Qi,tracks:Ji,getTimescaleFromMediaHeader:Zi},kn=Ye,Cn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},On=function(e){return!!(64&e[1])},Pn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},jn=function(e,t){var i=Cn(e);return 0===i?"pat":i===t?"pmt":t?"pes":null},In=function(e){var t=On(e),i=4+Pn(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},An=function(e){var t={},i=On(e),n=4+Pn(e);if(i&&(n+=e[n]+1),1&e[n+5]){var r,a,s;r=(15&e[n+1])<<8|e[n+2],a=3+r-4,s=(15&e[n+10])<<8|e[n+11];for(var o=12+s;o<a;){var l=n+o;t[(31&e[l+1])<<8|e[l+2]]=e[l],o+=5+((15&e[l+3])<<8|e[l+4])}return t}},Mn=function(e,t){switch(t[Cn(e)]){case kn.H264_STREAM_TYPE:return"video";case kn.ADTS_STREAM_TYPE:return"audio";case kn.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Dn=function(e){if(!On(e))return null;var t=4+Pn(e);if(t>=e.byteLength)return null;var i,n=null;return i=e[t+7],192&i&&(n={},n.pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},Ln=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}},Nn=function(e){for(var t,i=4+Pn(e),n=e.subarray(i),r=0,a=0,s=!1;a<n.byteLength-3;a++)if(1===n[a+2]){r=a+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}a+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===(t=Ln(31&n[a+3]))&&(s=!0);do{r++}while(1!==n[r]&&r<n.length);a=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}t=Ln(31&n[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0),a=r-2,r+=3;break;default:r+=3}return n=n.subarray(a),r-=a,a=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===(t=Ln(31&n[a+3]))&&(s=!0),s},Rn={parseType:jn,parsePat:In,parsePmt:An,parsePayloadUnitStartIndicator:On,parsePesType:Mn,parsePesTime:Dn,videoPacketContainsKeyFrame:Nn},Bn=Ye,zn=et.handleRollover,Un={};Un.ts=Rn,Un.aac=Kt;var Fn=ve.ONE_SECOND_IN_TS,Hn=function(e,t){for(var i,n=0,r=188;r<e.byteLength;)if(71!==e[n]||71!==e[r])n++,r++;else{switch(i=e.subarray(n,r),Un.ts.parseType(i,t.pid)){case"pat":t.pid=Un.ts.parsePat(i);break;case"pmt":var a=Un.ts.parsePmt(i);t.table=t.table||{},Object.keys(a).forEach(function(e){t.table[e]=a[e]})}n+=188,r+=188}},Vn=function(e,t,i){for(var n,r,a,s,o=0,l=188,u=!1;l<=e.byteLength;)if(71!==e[o]||71!==e[l]&&l!==e.byteLength)o++,l++;else{switch(n=e.subarray(o,l),Un.ts.parseType(n,t.pid)){case"pes":r=Un.ts.parsePesType(n,t.table),a=Un.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Un.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0)}if(u)break;o+=188,l+=188}for(l=e.byteLength,o=l-188,u=!1;o>=0;)if(71!==e[o]||71!==e[l]&&l!==e.byteLength)o--,l--;else{switch(n=e.subarray(o,l),Un.ts.parseType(n,t.pid)){case"pes":r=Un.ts.parsePesType(n,t.table),a=Un.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Un.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),u=!0)}if(u)break;o-=188,l-=188}},qn=function(e,t,i){for(var n,r,a,s,o,l,u,d=0,c=188,p=!1,h={data:[],size:0};c<e.byteLength;)if(71!==e[d]||71!==e[c])d++,c++;else{switch(n=e.subarray(d,c),Un.ts.parseType(n,t.pid)){case"pes":if(r=Un.ts.parsePesType(n,t.table),a=Un.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(a&&!p&&(s=Un.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),p=!0),!i.firstKeyFrame)){if(a&&0!==h.size){for(o=new Uint8Array(h.size),l=0;h.data.length;)u=h.data.shift(),o.set(u,l),l+=u.byteLength;if(Un.ts.videoPacketContainsKeyFrame(o)){var f=Un.ts.parsePesTime(o);f?(i.firstKeyFrame=f,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.")}h.size=0}h.data.push(n),h.size+=n.byteLength}}if(p&&i.firstKeyFrame)break;d+=188,c+=188}for(c=e.byteLength,d=c-188,p=!1;d>=0;)if(71!==e[d]||71!==e[c])d--,c--;else{switch(n=e.subarray(d,c),Un.ts.parseType(n,t.pid)){case"pes":r=Un.ts.parsePesType(n,t.table),a=Un.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=Un.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),p=!0)}if(p)break;d-=188,c-=188}},Gn=function(e,t){if(e.audio&&e.audio.length){var i=t;(void 0===i||isNaN(i))&&(i=e.audio[0].dts),e.audio.forEach(function(e){e.dts=zn(e.dts,i),e.pts=zn(e.pts,i),e.dtsTime=e.dts/Fn,e.ptsTime=e.pts/Fn})}if(e.video&&e.video.length){var n=t;if((void 0===n||isNaN(n))&&(n=e.video[0].dts),e.video.forEach(function(e){e.dts=zn(e.dts,n),e.pts=zn(e.pts,n),e.dtsTime=e.dts/Fn,e.ptsTime=e.pts/Fn}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=zn(r.dts,n),r.pts=zn(r.pts,n),r.dtsTime=r.dts/Fn,r.ptsTime=r.pts/Fn}}},Wn=function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(Un.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((s=Un.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=Un.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){i=!0;break}if((s=Un.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=Un.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var l=Fn/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*l,pts:a+1024*n*l}]}},Xn=function(e){var t={pid:null,table:null},i={};Hn(e,t);for(var n in t.table)if(t.table.hasOwnProperty(n)){var r=t.table[n];switch(r){case Bn.H264_STREAM_TYPE:i.video=[],qn(e,t,i),0===i.video.length&&delete i.video;break;case Bn.ADTS_STREAM_TYPE:i.audio=[],Vn(e,t,i),0===i.audio.length&&delete i.audio}}return i},$n=function(e,t){var i,n=Un.aac.isLikelyAacData(e);return(i=n?Wn(e):Xn(e))&&(i.audio||i.video)?(Gn(i,t),i):null},Yn={inspect:$n,parseAudioPes_:Vn},Kn=function(e,t){t.on("data",function(t){var i=t.initSegment;t.initSegment={data:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength};var n=t.data;t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.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){var i={start:{decode:ve.videoTsToSeconds(t.start.dts),presentation:ve.videoTsToSeconds(t.start.pts)},end:{decode:ve.videoTsToSeconds(t.end.dts),presentation:ve.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ve.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=ve.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:i})}),t.on("audioSegmentTimingInfo",function(t){var i={start:{decode:ve.videoTsToSeconds(t.start.dts),presentation:ve.videoTsToSeconds(t.start.pts)},end:{decode:ve.videoTsToSeconds(t.end.dts),presentation:ve.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:ve.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(i.prependedContentDuration=ve.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:ve.videoTsToSeconds(t.start),end:ve.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ve.videoTsToSeconds(t.start),end:ve.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})},Qn=function(){function e(t,i){o(this,e),this.options=i||{},this.self=t,this.init()}return ft(e,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Ci.Transmuxer(this.options),Kn(this.self,this.transmuxer)}},{key:"pushMp4Captions",value:function(e){this.captionParser||(this.captionParser=new vn,this.captionParser.init());var 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])}},{key:"probeMp4StartTime",value:function(e){var t=e.timescales,i=e.data,n=En.startTime(t,i);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:i},[i.buffer])}},{key:"probeMp4Tracks",value:function(e){var t=e.data,i=En.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:i,data:t},[t.buffer])}},{key:"probeTs",value:function(e){var t=e.data,i=e.baseStartTime,n="number"!=typeof i||isNaN(i)?void 0:i*ve.ONE_SECOND_IN_TS,r=Yn.inspect(t,n),a=null;r&&(a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1},a.hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])}},{key:"clearAllMp4Captions",value:function(){this.captionParser&&this.captionParser.clearAllCaptions()}},{key:"clearParsedMp4Captions",value:function(){this.captionParser&&this.captionParser.clearParsedCaptions()}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.transmuxer.reset()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(ve.secondsToVideoTs(t)))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(ve.secondsToVideoTs(e.appendStart)))}},{key:"setRemux",value:function(e){this.transmuxer.setRemux(e.remux)}},{key:"flush",value:function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}},{key:"endTimeline",value:function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}();self.onmessage=function(e){if("init"===e.data.action&&e.data.options)return void(this.messageHandlers=new Qn(self,e.data.options));this.messageHandlers||(this.messageHandlers=new Qn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data)}})),Po=Eo(Oo),jo=function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,l=n.metadata,u=n.videoFrameDtsTime,d=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var c=e.data.segment.boxes||{data:e.data.segment.data},p={type:r,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==u&&(p.videoFrameDtsTime=u),void 0!==d&&(p.videoFramePtsTime=d),i(p)},Io=function(e){var t=e.transmuxedData,i=e.callback;t.buffer=[],i(t)},Ao=function(e,t){t.gopInfo=e.data.gopInfo},Mo=function(e){var t=e.transmuxer,i=e.bytes,n=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,d=e.onVideoSegmentTimingInfo,c=e.onAudioSegmentTimingInfo,p=e.onId3,h=e.onCaptions,f=e.onDone,v=e.onEndedTimeline,m=e.onTransmuxerLog,g=e.isEndOfTimeline,y={buffer:[]},b=g,w=function(i){t.currentTransmux===e&&("data"===i.data.action&&jo(i,y,s),"trackinfo"===i.data.action&&o(i.data.trackInfo),"gopInfo"===i.data.action&&Ao(i,y),"audioTimingInfo"===i.data.action&&l(i.data.audioTimingInfo),"videoTimingInfo"===i.data.action&&u(i.data.videoTimingInfo),"videoSegmentTimingInfo"===i.data.action&&d(i.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===i.data.action&&c(i.data.audioSegmentTimingInfo),"id3Frame"===i.data.action&&p([i.data.id3Frame],i.data.id3Frame.dispatchType),"caption"===i.data.action&&h(i.data.caption),"endedtimeline"===i.data.action&&(b=!1,v()),"log"===i.data.action&&m(i.data.log),"transmuxed"===i.data.type&&(b||(t.onmessage=null,Io({transmuxedData:y,callback:f}),Do(t))))};if(t.onmessage=w,n&&t.postMessage({action:"setAudioAppendStart",appendStart:n}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),i.byteLength){var T=i instanceof ArrayBuffer?i:i.buffer,_=i instanceof ArrayBuffer?0:i.byteOffset;t.postMessage({action:"push",data:T,byteOffset:_,byteLength:i.byteLength},[T])}g&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Do=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Mo(e.currentTransmux))},Lo=function(e,t){e.postMessage({action:t}),Do(e)},No=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void Lo(t,e);t.transmuxQueue.push(Lo.bind(null,t,e))},Ro=function(e){No("reset",e)},Bo=function(e){No("endTimeline",e)},zo=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Mo(e);e.transmuxer.transmuxQueue.push(e)},Uo=function(e){var t=new Po;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},Fo={reset:Ro,endTimeline:Bo,transmux:zo,createTransmuxer:Uo},Ho=function(e){var t=e.transmuxer,i=e.endAction||e.action,n=e.callback,r=tt()({},e,{endAction:null,transmuxer:null,callback:null}),a=function r(a){a.data.action===i&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),n(a.data))};if(t.addEventListener("message",a),e.data){var s=e.data instanceof ArrayBuffer;r.byteOffset=s?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var o=[s?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},Vo={FAILURE:2,TIMEOUT:-101,ABORTED:-102},qo=function(e){e.forEach(function(e){e.abort()})},Go=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},Wo=function(e){var t=e.target,i=Date.now()-t.requestTime,n={bandwidth:1/0,bytesReceived:0,roundTripTime:i||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n},Xo=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Vo.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Vo.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Vo.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Vo.FAILURE,xhr:t}:null},$o=function(e,t,i){return function(n,r){var a=r.response,s=Xo(n,r);if(s)return i(s,e);if(16!==a.byteLength)return i({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Vo.FAILURE,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),u=0;u<t.length;u++)t[u].bytes=l;return i(null,e)}},Yo=function(e,t){var i=Object(dt.a)(e.map.bytes);if("mp4"!==i){var n=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(i||"unknown")+" container for initialization segment at URL: "+n,code:Vo.FAILURE})}Ho({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(i){var n=i.tracks,r=i.data;return e.map.bytes=r,n.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)}})},Ko=function(e){var t=e.segment,i=e.finishProcessingFn;return function(e,n){var r=Xo(e,n);if(r)return i(r,t);var a=new Uint8Array(n.response);if(t.map.key)return t.map.encryptedBytes=a,i(null,t);t.map.bytes=a,Yo(t,function(e){if(e)return e.xhr=n,e.status=n.status,i(e,t);i(null,t)})}},Qo=function(e){var t=e.segment,i=e.finishProcessingFn,n=e.responseType;return function(e,r){var a=Xo(e,r);if(a)return i(a,t);var s="arraybuffer"!==n&&r.responseText?_o(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=Go(r),t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),i(null,t)}},Jo=function(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},v=Boolean(f.audio&&f.video),m=r.bind(null,t,"audio","start"),g=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end"),w=function(){return zo({bytes:i,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:v,onData:function(e){e.type="combined"===e.type?"video":e.type,c(t,e)},onTrackInfo:function(e){n&&(v&&(e.isMuxed=!0),n(t,e))},onAudioTimingInfo:function(e){m&&void 0!==e.start&&(m(e.start),m=null),g&&void 0!==e.end&&g(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,i){o(t,e,i)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:u,onEndedTimeline:function(){d()},onTransmuxerLog:h,onDone:function(e){p&&(e.type="combined"===e.type?"video":e.type,p(null,t,e))}})};Ho({action:"probeTs",transmuxer:t.transmuxer,data:i,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=i=e.data;var r=e.result;r&&(n(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:v}),n=null,r.hasAudio&&!v&&m(r.audioStart),r.hasVideo&&y(r.videoStart),m=null,y=null),w()}})},Zo=function(e){var t=e.segment,i=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=new Uint8Array(i);if(Object(dt.b)(f)){t.isFmp4=!0;var v=t.map.tracks,m={isFmp4:!0,hasVideo:!!v.video,hasAudio:!!v.audio};v.audio&&v.audio.codec&&"enca"!==v.audio.codec&&(m.audioCodec=v.audio.codec),v.video&&v.video.codec&&"encv"!==v.video.codec&&(m.videoCodec=v.video.codec),v.video&&v.audio&&(m.isMuxed=!0),n(t,m);var g=function(e){c(t,{data:f,type:m.hasAudio&&!m.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),p(null,t,{})};return void Ho({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var n=e.data,a=e.startTime;if(i=n.buffer,t.bytes=f=n,m.hasAudio&&!m.isMuxed&&r(t,"audio","start",a),m.hasVideo&&r(t,"video","start",a),!v.video||!n.byteLength||!t.transmuxer)return void g();Ho({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[v.video.id],callback:function(e){i=e.data.buffer,t.bytes=f=e.data,e.logs.forEach(function(e){h(Be(e,{stream:"mp4CaptionParser"}))}),g(e.captions)}})}})}return t.transmuxer?(void 0===t.container&&(t.container=Object(dt.a)(f)),"ts"!==t.container&&"aac"!==t.container?(n(t,{hasAudio:!1,hasVideo:!1}),void p(null,t,{})):void Jo({segment:t,bytes:i,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h})):void p(null,t,{})},el=function(e,t){var i=e.id,n=e.key,r=e.encryptedBytes,a=e.decryptionWorker,s=function e(n){if(n.data.source===i){a.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}};a.addEventListener("message",s);var o=void 0;o=n.bytes.slice?n.bytes.slice():new Uint32Array(Array.prototype.slice.call(n.bytes)),a.postMessage(Ys({source:i,encrypted:r,key:o,iv:n.iv}),[r.buffer,o.buffer])},tl=function(e){var t=e.decryptionWorker,i=e.segment,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog;el({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:t},function(e){i.bytes=e,Zo({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h})})},il=function(e){var t=e.activeXhrs,i=e.decryptionWorker,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,d=e.endedTimelineFn,c=e.dataFn,p=e.doneFn,h=e.onTransmuxerLog,f=0,v=!1;return function(e,m){if(!v){if(e)return v=!0,qo(t),p(e,m);if((f+=1)===t.length){var g=function(){if(m.encryptedBytes)return tl({decryptionWorker:i,segment:m,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h});Zo({segment:m,bytes:m.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:d,dataFn:c,doneFn:p,onTransmuxerLog:h})};if(m.endOfAllRequests=Date.now(),m.map&&m.map.encryptedBytes&&!m.map.bytes)return el({decryptionWorker:i,id:m.requestId+"-init",encryptedBytes:m.map.encryptedBytes,key:m.map.key},function(e){m.map.bytes=e,Yo(m,function(e){if(e)return qo(t),p(e,m);g()})});g()}}}},nl=function(e){var t=e.loadendState,i=e.abortFn;return function(e){e.target.aborted&&i&&!t.calledAbortFn&&(i(),t.calledAbortFn=!0)}},rl=function(e){var t=e.segment,i=e.progressFn;e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn;return function(e){if(!e.target.aborted)return t.stats=Be(t.stats,Wo(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),i(e,t)}},al=function(e){var t=e.xhr,i=e.xhrOptions,n=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,d=e.audioSegmentTimingInfoFn,c=e.id3Fn,p=e.captionsFn,h=e.isEndOfTimeline,f=e.endedTimelineFn,v=e.dataFn,m=e.doneFn,g=e.onTransmuxerLog,y=[],b=il({activeXhrs:y,decryptionWorker:n,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:d,id3Fn:c,captionsFn:p,isEndOfTimeline:h,endedTimelineFn:f,dataFn:v,doneFn:m,onTransmuxerLog:g});if(r.key&&!r.key.bytes){var w=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&w.push(r.map.key);var T=Be(i,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),_=$o(r,w,b),S=t(T,_);y.push(S)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var x=Be(i,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),E=$o(r,[r.map.key],b),k=t(x,E);y.push(k)}var C=Be(i,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Gs(r.map)}),O=Ko({segment:r,finishProcessingFn:b}),P=t(C,O);y.push(P)}var j=Be(i,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Gs(r)}),I=Qo({segment:r,finishProcessingFn:b,responseType:j.responseType}),A=t(j,I);A.addEventListener("progress",rl({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:d,id3Fn:c,captionsFn:p,isEndOfTimeline:h,endedTimelineFn:f,dataFn:v})),y.push(A);var M={};return y.forEach(function(e){e.addEventListener("loadend",nl({loadendState:M,abortFn:a}))}),function(){return qo(y)}},sl=za("CodecUtils"),ol=function(e){var t=e.attributes||{};if(t.CODECS)return Object(nt.h)(t.CODECS)},ll=function(e,t){var i=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&i.AUDIO&&e.mediaGroups.AUDIO[i.AUDIO]},ul=function(e,t){if(!ll(e,t))return!0;var i=t.attributes||{},n=e.mediaGroups.AUDIO[i.AUDIO];for(var r in n)if(!n[r].uri&&!n[r].playlists)return!0;return!1},dl=function(e){var t={};return e.forEach(function(e){var i=e.mediaType,n=e.type,r=e.details;t[i]=t[i]||[],t[i].push(Object(nt.i)(""+n+r))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return sl("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},cl=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},pl=function(e,t){var i=t.attributes||{},n=dl(ol(t)||[]);if(ll(e,t)&&!n.audio&&!ul(e,t)){var r=dl(Object(nt.d)(e,i.AUDIO)||[]);r.audio&&(n.audio=r.audio)}return n},hl=za("PlaylistSelector"),fl=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},vl=function(e,t){if(!e)return"";var i=He.a.getComputedStyle(e);return i?i[t]:""},ml=function(e,t){var i=e.slice();e.sort(function(e,n){var r=t(e,n);return 0===r?i.indexOf(e)-i.indexOf(n):r})},gl=function(e,t){var i=void 0,n=void 0;return e.attributes.BANDWIDTH&&(i=e.attributes.BANDWIDTH),i=i||He.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(n=t.attributes.BANDWIDTH),n=n||He.a.Number.MAX_VALUE,i-n},yl=function(e,t){var i=void 0,n=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(i=e.attributes.RESOLUTION.width),i=i||He.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(n=t.attributes.RESOLUTION.width),n=n||He.a.Number.MAX_VALUE,i===n&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},bl=function(e,t,i,n,r,a){if(e){var s={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},o=e.playlists;Ts.isAudioOnly(e)&&(o=a.getAudioTrackPlaylists_(),s.audioOnly=!0);var l=o.map(function(e){var t=void 0,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||He.a.Number.MAX_VALUE,{bandwidth:t,width:i,height:n,playlist:e}});ml(l,function(e,t){return e.bandwidth-t.bandwidth}),l=l.filter(function(e){return!Ts.isIncompatible(e.playlist)});var u=l.filter(function(e){return Ts.isEnabled(e.playlist)});u.length||(u=l.filter(function(e){return!Ts.isDisabled(e.playlist)}));var d=u.filter(function(e){return e.bandwidth*To.BANDWIDTH_VARIANCE<t}),c=d[d.length-1],p=d.filter(function(e){return e.bandwidth===c.bandwidth})[0];if(!1===r){var h=p||u[0]||l[0];if(h&&h.playlist){var f="sortedPlaylistReps";return p&&(f="bandwidthBestRep"),u[0]&&(f="enabledPlaylistReps"),hl("choosing "+fl(h)+" using "+f+" with options",s),h.playlist}return hl("could not choose a playlist with options",s),null}var v=d.filter(function(e){return e.width&&e.height});ml(v,function(e,t){return e.width-t.width});var m=v.filter(function(e){return e.width===i&&e.height===n});c=m[m.length-1];var g=m.filter(function(e){return e.bandwidth===c.bandwidth})[0],y=void 0,b=void 0,w=void 0;g||(y=v.filter(function(e){return e.width>i||e.height>n}),b=y.filter(function(e){return e.width===y[0].width&&e.height===y[0].height}),c=b[b.length-1],w=b.filter(function(e){return e.bandwidth===c.bandwidth})[0]);var T=void 0;if(a.leastPixelDiffSelector){var _=v.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e});ml(_,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),T=_[0]}var S=T||w||g||p||u[0]||l[0];if(S&&S.playlist){var x="sortedPlaylistReps";return T?x="leastPixelDiffRep":w?x="resolutionPlusOneRep":g?x="resolutionBestRep":p?x="bandwidthBestRep":u[0]&&(x="enabledPlaylistReps"),hl("choosing "+fl(S)+" using "+x+" with options",s),S.playlist}return hl("could not choose a playlist with options",s),null}},wl=function(){var e=this.useDevicePixelRatio?He.a.devicePixelRatio||1:1;return bl(this.playlists.main,this.systemBandwidth,parseInt(vl(this.tech_.el(),"width"),10)*e,parseInt(vl(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},Tl=function(e){var t=-1,i=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var n=this.useDevicePixelRatio?He.a.devicePixelRatio||1: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),bl(this.playlists.main,t,parseInt(vl(this.tech_.el(),"width"),10)*n,parseInt(vl(this.tech_.el(),"height"),10)*n,this.limitRenditionByPlayerDimensions,this.playlistController_)}},_l=function(e){var t=e.main,i=e.currentTime,n=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!Ts.isIncompatible(e)}),d=u.filter(Ts.isEnabled);d.length||(d=u.filter(function(e){return!Ts.isDisabled(e)}));var c=d.filter(Ts.hasAttribute.bind(null,"BANDWIDTH")),p=c.map(function(e){var t=l.getSyncPoint(e,r,o,i),u=t?1:2;return{playlist:e,rebufferingImpact:Ts.estimateSegmentRequestTime(a,n,e)*u-s}}),h=p.filter(function(e){return e.rebufferingImpact<=0});return ml(h,function(e,t){return gl(t.playlist,e.playlist)}),h.length?h[0]:(ml(p,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),p[0]||null)},Sl=function(){var e=this,t=this.playlists.main.playlists.filter(Ts.isEnabled);return ml(t,function(e,t){return gl(e,t)}),t.filter(function(t){return!!pl(e.playlists.main,t).video})[0]||null},xl=function(e){var t=0,i=void 0;return e.bytes&&(i=new Uint8Array(e.bytes),e.segments.forEach(function(e){i.set(e,t),t+=e.byteLength})),i},El=function(e,t,i){if(!e[i]){t.trigger({type:"usage",name:"vhs-608"});var n=i;/^cc708_/.test(i)&&(n="SERVICE"+i.split("_")[1]);var r=t.textTracks().getTrackById(n);if(r)e[i]=r;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},s=i,o=i,l=!1,u=a[n];u&&(s=u.label,o=u.language,l=u.default),e[i]=t.addRemoteTextTrack({kind:"captions",id:n,default:l,label:s,language:o},!1).track}}},kl=function(e){var t=e.inbandTextTracks,i=e.captionArray,n=e.timestampOffset;if(i){var r=He.a.WebKitDataCue||He.a.VTTCue;i.forEach(function(e){var i=e.stream;t[i].addCue(new r(e.startTime+n,e.endTime+n,e.text))})}},Cl=function(e){Object.defineProperties(e.frame,{id:{get:function(){return Re.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Re.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Re.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},Ol=function(e){var t=e.inbandTextTracks,i=e.metadataArray,n=e.timestampOffset,r=e.videoDuration;if(i){var a=He.a.WebKitDataCue||He.a.VTTCue,s=t.metadataTrack_;if(s&&(i.forEach(function(e){var t=e.cueTime+n;!("number"!=typeof t||He.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach(function(e){var i=new a(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,Cl(i),s.addCue(i)})}),s.cues&&s.cues.length)){for(var o=s.cues,l=[],u=0;u<o.length;u++)o[u]&&l.push(o[u]);var d=l.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),c=Object.keys(d).sort(function(e,t){return Number(e)-Number(t)});c.forEach(function(e,t){var i=d[e],n=Number(c[t+1])||r;i.forEach(function(e){e.endTime=n})})}}},Pl=function(e,t,i){e.metadataTrack_||(e.metadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)},jl=function(e,t,i){var n=void 0,r=void 0;if(i&&i.cues)for(n=i.cues.length;n--;)r=i.cues[n],r.startTime>=e&&r.endTime<=t&&i.removeCue(r)},Il=function(e){var t=e.cues;if(t)for(var i=0;i<t.length;i++){for(var n=[],r=0,a=0;a<t.length;a++)t[i].startTime===t[a].startTime&&t[i].endTime===t[a].endTime&&t[i].text===t[a].text&&++r>1&&n.push(t[a]);n.length&&n.forEach(function(t){return e.removeCue(t)})}},Al=function(e,t,i){if(void 0===t||null===t||!e.length)return[];var n=Math.ceil((t-i+3)*ct.ONE_SECOND_IN_TS),r=void 0;for(r=0;r<e.length&&!(e[r].pts>n);r++);return e.slice(r)},Ml=function(e,t,i){if(!t.length)return e;if(i)return t.slice();var n=t[0].pts,r=0;for(r;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)},Dl=function(e,t,i,n){for(var r=Math.ceil((t-n)*ct.ONE_SECOND_IN_TS),a=Math.ceil((i-n)*ct.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s},Ll=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r];if(a!==n[r])return!1;if(e[a]!==t[a])return!1}return!0},Nl=function(e,t,i){t=t||[];for(var n=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(n.push(a),(r+=s.duration)>i))return a}return 0===n.length?0:n[n.length-1]},Rl=function(e){return"number"==typeof e&&isFinite(e)},Bl=function(e,t,i){return"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},zl=function(e,t,i){var n=t-To.BACK_BUFFER_LENGTH;e.length&&(n=Math.max(n,e.start(0)));var r=t-i;return Math.min(r,n)},Ul=function(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,u=void 0===l?[]:l,d=e.mediaIndex,c=e.partIndex,p=e.timeline,h=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var v="number"==typeof c,m=e.segment.uri?"segment":"pre-segment",g=v?es({preloadSegment:n})-1:0;return m+" ["+(s+d)+"/"+(s+h)+"]"+(v?" part ["+c+"/"+g+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(v?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+p+"] selected by ["+f+"] playlist ["+o+"]"},Fl=function(e){return e+"TimingInfo"},Hl=function(e){var t=e.segmentTimeline,i=e.currentTimeline,n=e.startOfSegment,r=e.buffered;return e.overrideCheck||t!==i?t<i?n:r.length?r.end(r.length-1):n:null},Vl=function(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(i===n)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==n}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==n}return!1},ql=function(e){var t=0;return["video","audio"].forEach(function(i){var n=e[i+"TimingInfo"];if(n){var r=n.start,a=n.end,s=void 0;"bigint"==typeof r||"bigint"==typeof a?s=He.a.BigInt(a)-He.a.BigInt(r):"number"==typeof r&&"number"==typeof a&&(s=a-r),void 0!==s&&s>t&&(t=s)}}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},Gl=function(e){var t=e.segmentDuration,i=e.maxDuration;return!!t&&Math.round(t)>i+1/30},Wl=function(e,t){if("hls"!==t)return null;var i=ql({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!i)return null;var n=e.playlist.targetDuration,r=Gl({segmentDuration:i,maxDuration:2*n}),a=Gl({segmentDuration:i,maxDuration:n}),s="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 "+n+". 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||a?{severity:r?"warn":"info",message:s}:null},Xl=function(e){function t(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!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");return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,i.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,i.captionServices_=e.captionServices,i.exactManifestTimings=e.exactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=Re.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=za("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(i,"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}return s(t,e),ft(t,[{key:"createTransmuxer_",value:function(){return Fo.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}},{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}},{key:"dispose",value:function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&He.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}},{key:"setAudio",value:function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}},{key:"abort",value:function(){if("WAITING"!==this.state)return void(this.pendingSegment_&&(this.pendingSegment_=null));this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}},{key:"abort_",value:function(){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,He.a.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}},{key:"checkForAbort_",value:function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}},{key:"error",value:function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.transmuxer_&&Fo.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return ze();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,n=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!n)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}},{key:"initSegmentForMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var i=Ks(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e}},{key:"segmentKey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var i=Qs(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(n||e).resolvedUri};return n&&(r.bytes=n.bytes),r}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&!this.paused()}},{key:"load",value:function(){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"))}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var i=this.playlist_,n=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));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-i.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}n&&(n.mediaIndex-=a,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(He.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"resetEverything",value:function(e){this.ended_=!1,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"}))}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.transmuxer_&&Fo.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}},{key:"remove",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];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");var r=1,a=function(){0===--r&&i()};!n&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(n||"main"===this.loaderType_)&&(this.gopBuffer_=Dl(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a));for(var s in this.inbandTextTracks_)jl(e,t,this.inbandTextTracks_[s]);jl(e,t,this.segmentMetadataTrack_),a()}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&He.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=He.a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&He.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=He.a.setTimeout(this.monitorBufferTick_.bind(this),500)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){var 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))}}},{key:"isEndOfStream_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mediaIndex,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.partIndex;if(!t||!this.mediaSource_)return!1;var n="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a}},{key:"chooseNextRequest_",value:function(){var e=this.buffered_(),t=Ya(e)||0,i=Ka(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,r=i>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||n||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=Nl(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var u=Ts.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}),d=u.segmentIndex,c=u.startTime,p=u.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),s.mediaIndex=d,s.startOfSegment=c,s.partIndex=p}var h=a[s.mediaIndex],f=h&&"number"==typeof s.partIndex&&h.parts&&h.parts[s.partIndex];if(!h||"number"==typeof s.partIndex&&!f)return null;if("number"!=typeof s.partIndex&&h.parts&&(s.partIndex=0,f=h.parts[0]),!i&&f&&!f.independent)if(0===s.partIndex){var v=a[s.mediaIndex-1],m=v.parts&&v.parts.length&&v.parts[v.parts.length-1];m&&m.independent&&(s.mediaIndex-=1,s.partIndex=v.parts.length-1,s.independent="previous segment")}else h.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");var g=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&g&&!this.seeking_()?null:this.generateSegmentInfo_(s)}},{key:"generateSegmentInfo_",value:function(e){var t=e.independent,i=e.playlist,n=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=i.segments[n],d="number"==typeof s&&u.parts[s],c={requestId:"segment-loader-"+Math.random(),uri:d&&d.resolvedUri||u.resolvedUri,mediaIndex:n,partIndex:d?s:null,isSyncRequest:a,startOfSegment:r,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:d&&d.duration||u.duration,segment:u,part:d,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},p=void 0!==o?o:this.isPendingTimestampOffset_;c.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:p});var h=Ya(this.sourceUpdater_.audioBuffered());return"number"==typeof h&&(c.audioAppendStart=h-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(c.gopsToAlignWith=Al(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),c}},{key:"timestampOffsetForSegment_",value:function(e){return Hl(e)}},{key:"earlyAbortWhenNeeded_",value:function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),i=e.bandwidth,n=this.pendingSegment_.duration,r=Ts.estimateSegmentRequestTime(n,i,this.playlist_,e.bytesReceived),a=Wa(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=_l({main:this.vhs_.playlists.main,currentTime:t,bandwidth:i,duration:this.duration_(),segmentDuration:n,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a,l=o-s.rebufferingImpact,u=.5;a<=1/30&&(u=1),!s.playlist||s.playlist.uri===this.playlist_.uri||l<u||(this.bandwidth=s.playlist.attributes.BANDWIDTH*To.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}}},{key:"handleAbort_",value:function(e){this.logger_("Aborting "+Ul(e)),this.mediaRequestsAborted+=1}},{key:"handleProgress_",value:function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}},{key:"handleTrackInfo_",value:function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},Ll(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_()))}},{key:"handleTimingInfo_",value:function(e,t,i,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=Fl(t);r[a]=r[a]||{},r[a][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}}},{key:"handleCaptions_",value:function(e,t){var i=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach(function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)}),Object.keys(r).forEach(function(e){var t=r[e],a=t.startTime,s=t.endTime,o=t.captions,l=i.inbandTextTracks_;i.logger_("adding cues from "+a+" -> "+s+" for "+e),El(l,i.vhs_.tech_,e),jl(a,s,l[e]),kl({captionArray:o,inbandTextTracks:l,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}}},{key:"handleId3_",value:function(e,t,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i));var n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();Pl(this.inbandTextTracks_,i,this.vhs_.tech_),Ol({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})}}},{key:"processMetadataQueue_",value:function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}},{key:"processCallQueue_",value:function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})}},{key:"processLoadQueue_",value:function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})}},{key:"hasEnoughInfoToLoad_",value:function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Vl({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}},{key:"getCurrentMediaInfo_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pendingSegment_;return e&&e.trackInfo||this.currentMediaInfo_}},{key:"getMediaInfo_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pendingSegment_;return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}},{key:"hasEnoughInfoToAppend_",value:function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed;return!(n&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!Vl({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}},{key:"handleData_",value:function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));var 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[Fl(t.type)].start;else{var n=this.getCurrentMediaInfo_(),r="main"===this.loaderType_&&n&&n.hasVideo,a=void 0;r&&(a=i.videoTimingInfo.start),i.timingInfo.start=this.trueSegmentStart_({currentStart:i.timingInfo.start,playlist:i.playlist,mediaIndex:i.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:r,firstVideoFrameTimeForData:a,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_});var s=this.chooseNextRequest_();if(s.mediaIndex!==i.mediaIndex||s.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)}}}},{key:"updateAppendInitSegmentStatus",value:function(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)}},{key:"getInitSegmentAndUpdateState_",value:function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){var a=Ks(n);if(this.activeInitSegmentId_===a)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=a}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null}},{key:"handleQuotaExceededError_",value:function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Xa(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Xa(o).join(", "));var l=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,d=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(u-l<=1&&c-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+Xa(s).join(", ")+", video buffer: "+Xa(o).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:n,type:r,bytes:a}));var p=this.currentTime_(),h=p-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+h),this.remove(0,h,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=He.a.setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0)}},{key:"handleAppendError_",value:function(e,t){var i=e.segmentInfo,n=e.type,r=e.bytes;if(t){if(22===t.code)return void this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:r});this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+r.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")}}},{key:"appendToSourceBuffer_",value:function(e){var t=e.segmentInfo,i=e.type,n=e.initSegment,r=e.data,a=e.bytes;if(!a){var s=[r],o=r.byteLength;n&&(s.unshift(n),o+=n.byteLength),a=xl({bytes:o,segments:s})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:i,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:i,bytes:a}))}},{key:"handleSegmentTimingInfo_",value:function(e,t,i){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var n=this.pendingSegment_.segment,r=e+"TimingInfo";n[r]||(n[r]={}),n[r].transmuxerPrependedSeconds=i.prependedContentDuration||0,n[r].transmuxedPresentationStart=i.start.presentation,n[r].transmuxedDecodeStart=i.start.decode,n[r].transmuxedPresentationEnd=i.end.presentation,n[r].transmuxedDecodeEnd=i.end.decode,n[r].baseMediaDecodeTime=i.baseMediaDecodeTime}}},{key:"appendData_",value:function(e,t){var i=t.type,n=t.data;if(n&&n.byteLength&&("audio"!==i||!this.audioDisabled_)){var 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:n})}}},{key:"loadSegment_",value:function(e){var t=this;if(this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_())return void this.loadQueue_.push(function(){var i=tt()({},e,{forceTimestampOffset:!0});tt()(e,t.generateSegmentInfo_(i)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)});this.updateTransmuxerAndRequestSegment_(e)}},{key:"updateTransmuxerAndRequestSegment_",value:function(e){var t=this;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}));var i=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,s=n||r&&a;this.logger_("Requesting "+Ul(e)),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=al({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:i,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:s,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(i){var n=i.message,r=i.level,a=i.stream;t.logger_(Ul(e)+" logged from transmuxer stream "+a+" as a "+r+": "+n)}})}},{key:"trimBackBuffer_",value:function(e){var t=zl(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,i=e.part,n={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?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=a}return t.map&&(n.map=this.initSegmentForMap(t.map)),n}},{key:"saveTransferStats_",value:function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}},{key:"saveBandwidthRelatedStats_",value:function(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<1/60)return void this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60);this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}},{key:"handleTimeout_",value:function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}},{key:"segmentRequestFinished_",value:function(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_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Vo.ABORTED)return;return this.pause(),e.code===Vo.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=Ml(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}}},{key:"setTimeMapping_",value:function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}},{key:"updateMediaSecondsLoaded_",value:function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}},{key:"shouldUpdateTransmuxerTimestampOffset_",value:function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}},{key:"trueSegmentStart_",value:function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!s)return l.start;var u=i.segments[n-1];return 0!==n&&u&&void 0!==u.start&&u.end===r+a?o.start:r}},{key:"waitForAppendsToComplete_",value:function(e){var 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");var i=t.hasAudio,n=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&n,s=!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);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}},{key:"checkAppendsDone_",value:function(e){this.checkForAbort_(e.requestId)||0===--e.waitingOnAppends&&this.handleAppendsDone_()}},{key:"checkForIllegalMediaSwitch",value:function(e){var t=Bl(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}},{key:"updateSourceBufferTimestampOffset_",value:function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var 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")}}},{key:"getSegmentStartTimeForTimestampOffsetCalculation_",value:function(e){var t=e.videoTimingInfo,i=e.audioTimingInfo,n=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:i&&"number"==typeof i.transmuxedDecodeStart?i.transmuxedDecodeStart:n.start:n.start}},{key:"updateTimingInfoEnd_",value:function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),i="main"===this.loaderType_&&t&&t.hasVideo,n=i&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)}},{key:"handleAppendsDone_",value:function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Wl(e,this.sourceType_);if(t&&("warn"===t.severity?Re.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 "+Ul(e));this.logger_("Appended "+Ul(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");var i=e.segment,n=e.part,r=i.end&&this.currentTime_()-i.end>3*e.playlist.targetDuration,a=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Ul(e)),void this.resetEverything();null!==this.mediaIndex&&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_()}},{key:"recordThroughput_",value:function(e){if(e.duration<1/60)return void this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60);var t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/i*8*1e3);this.throughput.rate+=(n-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,i=t.start,n=t.end;if(Rl(i)&&Rl(n)){jl(i,n,this.segmentMetadataTrack_);var r=He.a.WebKitDataCue||He.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,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:n},s=JSON.stringify(a),o=new r(i,n,s);o.value=a,this.segmentMetadataTrack_.addCue(o)}}}}]),t}(Re.EventTarget),$l=function(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})},Yl=["video","audio"],Kl=function(e,t){var i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]},Ql=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null},Jl=function e(t,i){if(0!==i.queue.length){var n=0,r=i.queue[n];if("mediaSource"===r.type)return void(i.updating()||"closed"===i.mediaSource.readyState||(i.queue.shift(),r.action(i),r.doneFn&&r.doneFn(),e("audio",i),e("video",i)));if("mediaSource"!==t&&i.ready()&&"closed"!==i.mediaSource.readyState&&!Kl(t,i)){if(r.type!==t){if(null===(n=Ql(t,i.queue)))return;r=i.queue[n]}return i.queue.splice(n,1),i.queuePending[t]=r,r.action(t,i),r.doneFn?void 0:(i.queuePending[t]=null,void e(t,i))}}},Zl=function(e,t){var i=t[e+"Buffer"],n=$l(e);i&&(i.removeEventListener("updateend",t["on"+n+"UpdateEnd_"]),i.removeEventListener("error",t["on"+n+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},eu=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},tu={appendBuffer:function(e,t,i){return function(n,r){var a=r[n+"Buffer"];if(eu(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+n+"Buffer");try{a.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+n+"Buffer"),r.queuePending[n]=null,i(e)}}}},remove:function(e,t){return function(i,n){var r=n[i+"Buffer"];if(eu(n.mediaSource,r)){n.logger_("Removing "+e+" to "+t+" from "+i+"Buffer");try{r.remove(e,t)}catch(r){n.logger_("Remove "+e+" to "+t+" from "+i+"Buffer failed")}}}},timestampOffset:function(e){return function(t,i){var n=i[t+"Buffer"];eu(i.mediaSource,n)&&(i.logger_("Setting "+t+"timestampOffset to "+e),n.timestampOffset=e)}},callback:function(e){return function(t,i){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){Re.log.warn("Failed to call media source endOfStream",e)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){Re.log.warn("Failed to set media source duration",e)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var i=t[e+"Buffer"];if(eu(t.mediaSource,i)){t.logger_("calling abort on "+e+"Buffer");try{i.abort()}catch(t){Re.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},addSourceBuffer:function(e,t){return function(i){var n=$l(e),r=Object(nt.e)(t);i.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=i.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",i["on"+n+"UpdateEnd_"]),a.addEventListener("error",i["on"+n+"Error_"]),i.codecs[e]=t,i[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var i=t[e+"Buffer"];if(Zl(e,t),eu(t.mediaSource,i)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(i)}catch(t){Re.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},changeType:function(e){return function(t,i){var n=i[t+"Buffer"],r=Object(nt.e)(e);eu(i.mediaSource,n)&&i.codecs[t]!==e&&(i.logger_("changing "+t+"Buffer codec from "+i.codecs[t]+" to "+e),n.changeType(r),i.codecs[t]=e)}}},iu=function(e){var t=e.type,i=e.sourceUpdater,n=e.action,r=e.doneFn,a=e.name;i.queue.push({type:t,action:n,doneFn:r,name:a}),Jl(t,i)},nu=function(e,t){return function(i){if(t.queuePending[e]){var n=t.queuePending[e].doneFn;t.queuePending[e]=null,n&&n(t[e+"Error_"])}Jl(e,t)}},ru=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return i.mediaSource=e,i.sourceopenListener_=function(){return Jl("mediaSource",i)},i.mediaSource.addEventListener("sourceopen",i.sourceopenListener_),i.logger_=za("SourceUpdater"),i.audioTimestampOffset_=0,i.videoTimestampOffset_=0,i.queue=[],i.queuePending={audio:null,video:null},i.delayedAudioAppendQueue_=[],i.videoAppendQueued_=!1,i.codecs={},i.onVideoUpdateEnd_=nu("video",i),i.onAudioUpdateEnd_=nu("audio",i),i.onVideoError_=function(e){i.videoError_=e},i.onAudioError_=function(e){i.audioError_=e},i.createdSourceBuffers_=!1,i.initializedEme_=!1,i.triggeredReady_=!1,i}return s(t,e),ft(t,[{key:"initializedEme",value:function(){this.initializedEme_=!0,this.triggerReady()}},{key:"hasCreatedSourceBuffers",value:function(){return this.createdSourceBuffers_}},{key:"hasInitializedAnyEme",value:function(){return this.initializedEme_}},{key:"ready",value:function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}},{key:"createSourceBuffers",value:function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}},{key:"triggerReady",value:function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}},{key:"addSourceBuffer",value:function(e,t){iu({type:"mediaSource",sourceUpdater:this,action:tu.addSourceBuffer(e,t),name:"addSourceBuffer"})}},{key:"abort",value:function(e){iu({type:e,sourceUpdater:this,action:tu.abort(e),name:"abort"})}},{key:"removeSourceBuffer",value:function(e){if(!this.canRemoveSourceBuffer())return void Re.log.error("removeSourceBuffer is not supported!");iu({type:"mediaSource",sourceUpdater:this,action:tu.removeSourceBuffer(e),name:"removeSourceBuffer"})}},{key:"canRemoveSourceBuffer",value:function(){return!Re.browser.IE_VERSION&&!Re.browser.IS_FIREFOX&&He.a.MediaSource&&He.a.MediaSource.prototype&&"function"==typeof He.a.MediaSource.prototype.removeSourceBuffer}},{key:"canChangeType",value:function(){return this.constructor.canChangeType()}},{key:"changeType",value:function(e,t){if(!this.canChangeType())return void Re.log.error("changeType is not supported!");iu({type:e,sourceUpdater:this,action:tu.changeType(t),name:"changeType"})}},{key:"addOrChangeSourceBuffers",value:function(e){var t=this;if(!e||"object"!==(void 0===e?"undefined":vt(e))||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(function(i){var n=e[i];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(i,n);t.canChangeType()&&t.changeType(i,n)})}},{key:"appendBuffer",value:function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var s=t;if(iu({type:r,sourceUpdater:this,action:tu.appendBuffer(a,n||{mediaIndex:-1},s),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,o.forEach(function(e){i.appendBuffer.apply(i,e)})}}},{key:"audioBuffered",value:function(){return eu(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:ze()}},{key:"videoBuffered",value:function(){return eu(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:ze()}},{key:"buffered",value:function(){var e=eu(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=eu(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():qa(this.audioBuffered(),this.videoBuffered())}},{key:"setDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;iu({type:"mediaSource",sourceUpdater:this,action:tu.duration(e),name:"duration",doneFn:t})}},{key:"endOfStream",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ue;"string"!=typeof e&&(e=void 0),iu({type:"mediaSource",sourceUpdater:this,action:tu.endOfStream(e),name:"endOfStream",doneFn:t})}},{key:"removeAudio",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue;if(!this.audioBuffered().length||0===this.audioBuffered().end(0))return void i();iu({type:"audio",sourceUpdater:this,action:tu.remove(e,t),doneFn:i,name:"remove"})}},{key:"removeVideo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ue;if(!this.videoBuffered().length||0===this.videoBuffered().end(0))return void i();iu({type:"video",sourceUpdater:this,action:tu.remove(e,t),doneFn:i,name:"remove"})}},{key:"updating",value:function(){return!(!Kl("audio",this)&&!Kl("video",this))}},{key:"audioTimestampOffset",value:function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(iu({type:"audio",sourceUpdater:this,action:tu.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}},{key:"videoTimestampOffset",value:function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(iu({type:"video",sourceUpdater:this,action:tu.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}},{key:"audioQueueCallback",value:function(e){this.audioBuffer&&iu({type:"audio",sourceUpdater:this,action:tu.callback(e),name:"callback"})}},{key:"videoQueueCallback",value:function(e){this.videoBuffer&&iu({type:"video",sourceUpdater:this,action:tu.callback(e),name:"callback"})}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),Yl.forEach(function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"](function(){return Zl(t,e)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}],[{key:"canChangeType",value:function(){return He.a.SourceBuffer&&He.a.SourceBuffer.prototype&&"function"==typeof He.a.SourceBuffer.prototype.changeType}}]),t}(Re.EventTarget),au=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},su=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),ou=function(e){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i));return n.mediaSource_=null,n.subtitlesTrack_=null,n.loaderType_="subtitle",n.featuresNativeTextTracks_=e.featuresNativeTextTracks,n.shouldSaveSegmentTimingInfo_=!1,n}return s(t,e),ft(t,[{key:"createTransmuxer_",value:function(){return null}},{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return ze();var e=this.subtitlesTrack_.cues;return ze([[e[0].startTime,e[e.length-1].startTime]])}},{key:"initSegmentForMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var i=Ks(e),n=this.initSegments_[i];if(t&&!n&&e.bytes){var r=su.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(su,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return n||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return void 0===e?this.subtitlesTrack_:(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:"remove",value:function(e,t){jl(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var i=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",i),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"timestampOffsetForSegment_",value:function(){return null}},{key:"chooseNextRequest_",value:function(){return this.skipEmptySegments_(pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"chooseNextRequest_",this).call(this))}},{key:"skipEmptySegments_",value:function(e){for(;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}},{key:"stopForError",value:function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}},{key:"segmentRequestFinished_",value:function(e,t,i){var n=this;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===Vo.TIMEOUT&&this.handleTimeout_(),e.code===Vo.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof He.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s=void 0,o=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",s),n.stopForError({message:"Error loading vtt.js"})};return s=function(){n.subtitlesTrack_.tech_.off("vttjserror",o),n.segmentRequestFinished_(e,t,i)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),void this.subtitlesTrack_.tech_.one("vttjserror",o)}a.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEach(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new He.a.VTTCue(e.startTime,e.endTime,e.text):e)}),Il(this.subtitlesTrack_),this.handleAppendsDone_()}},{key:"handleData_",value:function(){}},{key:"updateTimingInfoEnd_",value:function(){}},{key:"parseVTTCues_",value:function(e){var t=void 0,i=!1;"function"==typeof He.a.TextDecoder?t=new He.a.TextDecoder("utf8"):(t=He.a.WebVTT.StringDecoder(),i=!0);var n=new He.a.WebVTT.Parser(He.a,He.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=function(t){e.timestampmap=t},n.onparsingerror=function(e){Re.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;i&&(r=au(r)),n.parse(r)}var a=e.bytes;i&&(a=au(a)),n.parse(a),n.flush()}},{key:"updateTimeMapping_",value:function(e,t,i){var n=e.segment;if(t){if(!e.cues.length)return void(n.empty=!0);var r=e.timestampmap,a=r.MPEGTS/ct.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!i.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(s,o-n.duration)}}}}}]),t}(Xl),lu=function(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},uu=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.segments)for(var n=i,r=void 0,a=0;a<e.segments.length;a++){var s=e.segments[a];if(r||(r=lu(t,n+s.duration/2)),r){if("cueIn"in s){r.endTime=n,r.adEndTime=n,n+=s.duration,r=null;continue}if(n<r.endTime){n+=s.duration;continue}r.endTime+=s.duration}else if("cueOut"in s&&(r=new He.a.VTTCue(n,n+s.duration,s.cueOut),r.adStartTime=n,r.adEndTime=n+parseFloat(s.cueOut),t.addCue(r)),"cueOutCont"in s){var o=s.cueOutCont.split("/").map(parseFloat),l=ht(o,2),u=l[0],d=l[1];r=new He.a.VTTCue(n,n+s.duration,""),r.adStartTime=n-u,r.adEndTime=r.adStartTime+d,t.addCue(r)}n+=s.duration}},du=[{name:"VOD",run:function(e,t,i,n,r){if(i!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=Ja(t);r=r||0;for(var l=0;l<o.length;l++){var u=t.endList||0===r?l:o.length-(l+1),d=o[u],c=d.segment,p=e.timelineToDatetimeMappings[c.timeline];if(p&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3,f=h+p;if(c.parts&&"number"==typeof d.partIndex)for(var v=0;v<d.partIndex;v++)f+=c.parts[v].duration;var m=Math.abs(r-f);if(null!==s&&(0===m||s<m))break;s=m,a={time:f,segmentIndex:d.segmentIndex,partIndex:d.partIndex}}}return a}},{name:"Segment",run:function(e,t,i,n,r){var a=null,s=null;r=r||0;for(var o=Ja(t),l=0;l<o.length;l++){var u=t.endList||0===r?l:o.length-(l+1),d=o[u],c=d.segment,p=d.part&&d.part.start||c&&c.start;if(c.timeline===n&&void 0!==p){var h=Math.abs(r-p);if(null!==s&&s<h)break;(!a||null===s||s>=h)&&(s=h,a={time:p,segmentIndex:d.segmentIndex,partIndex:d.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var l=t.discontinuityStarts[o],u=t.discontinuitySequence+o+1,d=e.discontinuities[u];if(d){var c=Math.abs(r-d.time);if(null!==s&&s<c)break;(!a||null===s||s>=c)&&(s=c,a={time:d.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){if(t.syncInfo){return{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}}return null}}],cu=function(e){function t(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.timelines=[],e.discontinuities=[],e.timelineToDatetimeMappings={},e.logger_=za("SyncController"),e}return s(t,e),ft(t,[{key:"getSyncPoint",value:function(e,t,i,n){var r=this.runStrategies_(e,t,i,n);return r.length?this.selectSyncPoint_(r,{key:"time",value:n}):null}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;var n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+ss({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))}},{key:"runStrategies_",value:function(e,t,i,n){for(var r=[],a=0;a<du.length;a++){var s=du[a],o=s.run(this,e,t,i,n);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r}},{key:"selectSyncPoint_",value:function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<n&&(n=s,i=e[a].syncPoint,r=e[a].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}},{key:"saveExpiredSegmentInfo",value:function(e,t){var i=t.mediaSequence-e.mediaSequence;if(i>86400)return void Re.log.warn("Not saving expired segment info. Media sequence gap "+i+" is too large.");for(var n=i-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMappingForStart",value:function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],i=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-i}}},{key:"saveSegmentTimingInfo",value:function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),r=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)}},{key:"timestampOffsetForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t,i){var n=e.segment,r=e.part,a=this.timelines[e.timeline],s=void 0,o=void 0;if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+a.time+"] [mapping: "+a.mapping+"]")),s=e.startOfSegment,o=t.end+a.mapping;else{if(!a)return!1;s=t.start+a.mapping,o=t.end+a.mapping}return r&&(r.start=s,r.end=o),(!n.start||s<n.start)&&(n.start=s),n.end=o,!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var 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(var n=0;n<t.discontinuityStarts.length;n++){var r=t.discontinuityStarts[n],a=t.discontinuitySequence+n+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){var l=void 0;l=s<0?i.start-ss({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):i.end+ss({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}}},{key:"dispose",value:function(){this.trigger("dispose"),this.off()}}]),t}(Re.EventTarget),pu=function(e){function t(){o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.pendingTimelineChanges_={},e.lastTimelineChanges_={},e}return s(t,e),ft(t,[{key:"clearPendingTimelineChange",value:function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}},{key:"pendingTimelineChange",value:function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]}},{key:"lastTimelineChange",value:function(e){var t=e.type,i=e.from,n=e.to;return"number"==typeof i&&"number"==typeof n&&(this.lastTimelineChanges_[t]={type:t,from:i,to:n},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]}},{key:"dispose",value:function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}]),t}(Re.EventTarget),hu=ko(Co(function(){/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
|
|
4
|
+
function t(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var i,n=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,n=0;n<i;++n)t[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),r=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],i=e[1],n=t[4],r=i[4],a=void 0,s=void 0,o=void 0,l=[],u=[],d=void 0,c=void 0,p=void 0,h=void 0,f=void 0,v=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(s=o=0;!n[s];s^=d||1,o=u[o]||1)for(h=o^o<<1^o<<2^o<<3^o<<4,h=h>>8^255&h^99,n[s]=h,r[h]=s,p=l[c=l[d=l[s]]],v=16843009*p^65537*c^257*d^16843008*s,f=257*l[h]^16843008*h,a=0;a<4;a++)t[a][s]=f=f<<24^f>>>8,i[a][h]=v=v<<24^v>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),i[a]=i[a].slice(0);return e},l=null,u=function(){function e(t){o(this,e),l||(l=r()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var i=void 0,n=void 0,a=void 0,s=this._tables[0][4],u=this._tables[1],d=t.length,c=1;if(4!==d&&6!==d&&8!==d)throw new Error("Invalid aes key size");var p=t.slice(0),h=[];for(this._key=[p,h],i=d;i<4*d+28;i++)a=p[i-1],(i%d==0||8===d&&i%d==4)&&(a=s[a>>>24]<<24^s[a>>16&255]<<16^s[a>>8&255]<<8^s[255&a],i%d==0&&(a=a<<8^a>>>24^c<<24,c=c<<1^283*(c>>7))),p[i]=p[i-d]^a;for(n=0;i;n++,i--)a=p[3&n?i:i-4],h[n]=i<=4||n<4?a:u[0][s[a>>>24]]^u[1][s[a>>16&255]]^u[2][s[a>>8&255]]^u[3][s[255&a]]}return ft(e,[{key:"decrypt",value:function(e,t,i,n,r,a){var s=this._key[1],o=e^s[0],l=n^s[1],u=i^s[2],d=t^s[3],c=void 0,p=void 0,h=void 0,f=s.length/4-2,v=void 0,m=4,g=this._tables[1],y=g[0],b=g[1],w=g[2],T=g[3],_=g[4];for(v=0;v<f;v++)c=y[o>>>24]^b[l>>16&255]^w[u>>8&255]^T[255&d]^s[m],p=y[l>>>24]^b[u>>16&255]^w[d>>8&255]^T[255&o]^s[m+1],h=y[u>>>24]^b[d>>16&255]^w[o>>8&255]^T[255&l]^s[m+2],d=y[d>>>24]^b[o>>16&255]^w[l>>8&255]^T[255&u]^s[m+3],m+=4,o=c,l=p,u=h;for(v=0;v<4;v++)r[(3&-v)+a]=_[o>>>24]<<24^_[l>>16&255]<<16^_[u>>8&255]<<8^_[255&d]^s[m++],c=o,o=l,l=u,u=d,d=c}}]),e}(),d=function(e){function t(){o(this,t);var e=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return e.jobs=[],e.delay=1,e.timeout_=null,e}return s(t,e),ft(t,[{key:"processJob_",value:function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}},{key:"push",value:function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}]),t}(n),c=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},p=function(e,t,i){var n=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),r=new u(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),s=new Int32Array(a.buffer),o=void 0,l=void 0,d=void 0,p=void 0,h=void 0,f=void 0,v=void 0,m=void 0,g=void 0;for(o=i[0],l=i[1],d=i[2],p=i[3],g=0;g<n.length;g+=4)h=c(n[g]),f=c(n[g+1]),v=c(n[g+2]),m=c(n[g+3]),r.decrypt(h,f,v,m,s,g),s[g]=c(s[g]^o),s[g+1]=c(s[g+1]^l),s[g+2]=c(s[g+2]^d),s[g+3]=c(s[g+3]^p),o=h,l=f,d=v,p=m;return a},h=function(){function e(i,n,r,a){o(this,e);var s=e.STEP,l=new Int32Array(i.buffer),u=new Uint8Array(i.byteLength),p=0;for(this.asyncStream_=new d,this.asyncStream_.push(this.decryptChunk_(l.subarray(p,p+s),n,r,u)),p=s;p<l.length;p+=s)r=new Uint32Array([c(l[p-4]),c(l[p-3]),c(l[p-2]),c(l[p-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(p,p+s),n,r,u));this.asyncStream_.push(function(){a(null,t(u))})}return ft(e,[{key:"decryptChunk_",value:function(e,t,i,n){return function(){var r=p(e,t,i);n.set(r,e.byteOffset)}}}],[{key:"STEP",get:function(){return 32e3}}]),e}(),f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};i="undefined"!=typeof window?window:void 0!==f?f:"undefined"!=typeof self?self:{};var v=i,m=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},g=v.BigInt||Number;g("0x1"),g("0x100"),g("0x10000"),g("0x1000000"),g("0x100000000"),g("0x10000000000"),g("0x1000000000000"),g("0x100000000000000"),g("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();var y=function(e){var t={};return Object.keys(e).forEach(function(i){var n=e[i];m(n)?t[i]={bytes:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength}:t[i]=n}),t};self.onmessage=function(e){var t=e.data,i=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),n=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 h(i,n,r,function(e,i){self.postMessage(y({source:t.source,decrypted:i}),[i.buffer])})}})),fu=Eo(hu),vu=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},mu=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},gu=function(e,t){t.activePlaylistLoader=e,e.load()},yu=function(e,t){return function(){var i=t.segmentLoaders,n=i[e],r=i.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastGroup_;if((!o||!u||o.id!==u.id)&&(a.lastGroup_=o,a.lastTrack_=s,mu(n,a),o&&!o.isMainPlaylist)){if(!o.playlistLoader)return void(l&&r.resetEverything());n.resyncLoader(),gu(o.playlistLoader,a)}}},bu=function(e,t){return function(){var i=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,i.abort(),i.pause()}},wu=function(e,t){return function(){var i=t.mainPlaylistLoader,n=t.segmentLoaders,r=n[e],a=n.main,s=t.mediaTypes[e],o=s.activeTrack(),l=s.getActiveGroup(),u=s.activePlaylistLoader,d=s.lastTrack_;if((!d||!o||d.id!==o.id)&&(s.lastGroup_=l,s.lastTrack_=o,mu(r,s),l)){if(l.isMainPlaylist){if(!o||!d||o.id===d.id)return;var c=t.vhs.playlistController_,p=c.selectPlaylist();if(c.media()===p)return;return s.logger_("track change. Switching main audio from "+d.id+" to "+o.id),i.pause(),a.resetEverything(),void c.fastQualityChange_(p)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}if(u===l.playlistLoader)return void gu(l.playlistLoader,s);r.track&&r.track(o),r.resetEverything(),gu(l.playlistLoader,s)}}},Tu={AUDIO:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e],r=t.excludePlaylist;mu(i,n);var a=n.activeTrack(),s=n.activeGroup(),o=(s.filter(function(e){return e.default})[0]||s[0]).id,l=n.tracks[o];if(a===l)return void r({error:{message:"Problem encountered loading the default audio track."}});Re.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var u in n.tracks)n.tracks[u].enabled=n.tracks[u]===l;n.onTrackChanged()}},SUBTITLES:function(e,t){return function(){var i=t.segmentLoaders[e],n=t.mediaTypes[e];Re.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),mu(i,n);var r=n.activeTrack();r&&(r.mode="disabled"),n.onTrackChanged()}}},_u={AUDIO:function(e,t,i){if(t){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",Tu[e](e,i))}},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",Tu[e](e,i))}},Su={AUDIO:function(e,t){var i=t.vhs,n=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.main.mediaGroups,o=t.mediaTypes[e],l=o.groups,u=o.tracks,d=o.logger_,c=t.mainPlaylistLoader,p=ws(c.main);s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},p&&(s[e].main.default.playlists=c.main.playlists));for(var h in s[e]){l[h]||(l[h]=[]);for(var f in s[e][h]){var v=s[e][h][f],m=void 0;if(p?(d("AUDIO group '"+h+"' label '"+f+"' is a main playlist"),v.isMainPlaylist=!0,m=null):m="vhs-json"===n&&v.playlists?new Us(v.playlists[0],i,a):v.resolvedUri?new Us(v.resolvedUri,i,a):v.playlists&&"dash"===n?new wo(v.playlists[0],i,a,c):null,v=Be({id:f,playlistLoader:m},v),_u[e](e,v.playlistLoader,t),l[h].push(v),void 0===u[f]){var g=new Re.AudioTrack({id:f,kind:vu(v),enabled:!1,language:v.language,default:v.default,label:f});u[f]=g}}}r.on("error",Tu[e](e,t))},SUBTITLES:function(e,t){var i=t.tech,n=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.main.mediaGroups,l=t.mediaTypes[e],u=l.groups,d=l.tracks,c=t.mainPlaylistLoader;for(var p in o[e]){u[p]||(u[p]=[]);for(var h in o[e][p])if(!o[e][p][h].forced){var f=o[e][p][h],v=void 0;if("hls"===r)v=new Us(f.resolvedUri,n,s);else if("dash"===r){var m=f.playlists.filter(function(e){return e.excludeUntil!==1/0});if(!m.length)return;v=new wo(f.playlists[0],n,s,c)}else"vhs-json"===r&&(v=new Us(f.playlists?f.playlists[0]:f.resolvedUri,n,s));if(f=Be({id:h,playlistLoader:v},f),_u[e](e,f.playlistLoader,t),u[p].push(f),void 0===d[h]){var g=i.addRemoteTextTrack({id:h,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:h},!1).track;d[h]=g}}}a.on("error",Tu[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i=t.tech,n=t.main.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in n[e]){a[o]||(a[o]=[]);for(var l in n[e][o]){var u=n[e][o][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var d=i.options_.vhs&&i.options_.vhs.captionServices||{},c={label:l,language:u.language,instreamId:u.instreamId,default:u.default&&u.autoselect};if(d[c.instreamId]&&(c=Be(c,d[c.instreamId])),void 0===c.default&&delete c.default,a[o].push(Be({id:l},u)),void 0===s[l]){var p=i.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;s[l]=p}}}}}},xu=function e(t,i){for(var n=0;n<t.length;n++){if(ys(i,t[n]))return!0;if(t[n].playlists&&e(t[n].playlists,i))return!0}return!1},Eu=function(e,t){return function(i){var n=t.mainPlaylistLoader,r=t.mediaTypes[e].groups,a=n.media();if(!a)return null;var s=null;a.attributes[e]&&(s=r[a.attributes[e]]);var o=Object.keys(r);if(!s)if("AUDIO"===e&&o.length>1&&ws(t.main))for(var l=0;l<o.length;l++){var u=r[o[l]];if(xu(u,a)){s=u;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return void 0===i?s:null!==i&&s?s.filter(function(e){return e.id===i.id})[0]||null:null}},ku={AUDIO:function(e,t){return function(){var i=t.mediaTypes[e].tracks;for(var n in i)if(i[n].enabled)return i[n];return null}},SUBTITLES:function(e,t){return function(){var i=t.mediaTypes[e].tracks;for(var n in i)if("showing"===i[n].mode||"hidden"===i[n].mode)return i[n];return null}}},Cu=function(e,t){var i=t.mediaTypes;return function(){var t=i[e].activeTrack();return t?i[e].activeGroup(t):null}},Ou=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){Su[t](t,e)});var t=e.mediaTypes,i=e.mainPlaylistLoader,n=e.tech,r=e.vhs,a=e.segmentLoaders,s=a.AUDIO,o=a.main;["AUDIO","SUBTITLES"].forEach(function(i){t[i].activeGroup=Eu(i,e),t[i].activeTrack=ku[i](i,e),t[i].onGroupChanged=yu(i,e),t[i].onGroupChanging=bu(i,e),t[i].onTrackChanged=wu(i,e),t[i].getActiveGroup=Cu(i,e)});var l=t.AUDIO.activeGroup();if(l){var u=(l.filter(function(e){return e.default})[0]||l[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}i.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})}),i.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanging()})});var d=function(){t.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"})};n.audioTracks().addEventListener("change",d),n.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",function(){n.audioTracks().removeEventListener("change",d),n.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),n.clearTracks("audio");for(var c in t.AUDIO.tracks)n.audioTracks().addTrack(t.AUDIO.tracks[c])},Pu=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Ue,activeTrack:Ue,getActiveGroup:Ue,onGroupChanged:Ue,onTrackChanged:Ue,lastTrack_:null,logger_:za("MediaGroups["+t+"]")}}),e},ju=void 0,Iu=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Au=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Mu=function(e){var t=e.currentPlaylist,i=e.buffered,n=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,s=e.bufferHighWaterLine,o=e.duration,l=e.bufferBasedABR,u=e.log;if(!r)return Re.log.warn("We received no playlist to switch to. Please check your stream."),!1;var d="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return u(d+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var c=Boolean(Fa(i,n).length);if(!t.endList)return c||"number"!=typeof t.partTargetDuration?(u(d+" as current playlist is live"),!0):(u("not "+d+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var p=Ka(i,n),h=l?To.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:To.MAX_BUFFER_LOW_WATER_LINE;if(o<h)return u(d+" as duration < max low water line ("+o+" < "+h+")"),!0;var f=r.attributes.BANDWIDTH,v=t.attributes.BANDWIDTH;if(f<v&&(!l||p<s)){var m=d+" as next bandwidth < current bandwidth ("+f+" < "+v+")";return l&&(m+=" and forwardBuffer < bufferHighWaterLine ("+p+" < "+s+")"),u(m),!0}if((!l||f>v)&&p>=a){var g=d+" as forwardBuffer >= bufferLowWaterLine ("+p+" >= "+a+")";return l&&(g+=" and next bandwidth > current bandwidth ("+f+" > "+v+")"),u(g),!0}return u("not "+d+" as no switching criteria met"),!1},Du=function(e){function t(e){o(this,t);var i=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=e.src,r=e.withCredentials,s=e.tech,l=e.bandwidth,u=e.externVhs,d=e.useCueTags,c=e.playlistExclusionDuration,p=e.enableLowInitialPlaylist,h=e.sourceType,f=e.cacheEncryptionKeys,v=e.bufferBasedABR,m=e.leastPixelDiffSelector,g=e.captionServices;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");var y=e.maxPlaylistRetries;null!==y&&void 0!==y||(y=1/0),ju=u,i.bufferBasedABR=Boolean(v),i.leastPixelDiffSelector=Boolean(m),i.withCredentials=r,i.tech_=s,i.vhs_=s.vhs,i.sourceType_=h,i.useCueTags_=d,i.playlistExclusionDuration=c,i.maxPlaylistRetries=y,i.enableLowInitialPlaylist=p,i.useCueTags_&&(i.cueTagsTrack_=i.tech_.addTextTrack("metadata","ad-cues"),i.cueTagsTrack_.inBandMetadataTrackDispatchType=""),i.requestOptions_={withCredentials:r,maxPlaylistRetries:y,timeout:null},i.on("error",i.pauseLoading),i.mediaTypes_=Pu(),i.mediaSource=new He.a.MediaSource,i.handleDurationChange_=i.handleDurationChange_.bind(i),i.handleSourceOpen_=i.handleSourceOpen_.bind(i),i.handleSourceEnded_=i.handleSourceEnded_.bind(i),i.mediaSource.addEventListener("durationchange",i.handleDurationChange_),i.mediaSource.addEventListener("sourceopen",i.handleSourceOpen_),i.mediaSource.addEventListener("sourceended",i.handleSourceEnded_),i.seekable_=ze(),i.hasPlayed_=!1,i.syncController_=new cu(e),i.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,i.decrypter_=new fu,i.sourceUpdater_=new ru(i.mediaSource),i.inbandTextTracks_={},i.timelineChangeController_=new pu;var b={vhs:i.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:g,mediaSource:i.mediaSource,currentTime:i.tech_.currentTime.bind(i.tech_),seekable:function(){return i.seekable()},seeking:function(){return i.tech_.seeking()},duration:function(){return i.duration()},hasPlayed:function(){return i.hasPlayed_},goalBufferLength:function(){return i.goalBufferLength()},bandwidth:l,syncController:i.syncController_,decrypter:i.decrypter_,sourceType:i.sourceType_,inbandTextTracks:i.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:i.sourceUpdater_,timelineChangeController:i.timelineChangeController_,exactManifestTimings:e.exactManifestTimings};i.mainPlaylistLoader_="dash"===i.sourceType_?new wo(n,i.vhs_,i.requestOptions_):new Us(n,i.vhs_,i.requestOptions_),i.setupMainPlaylistLoaderListeners_(),i.mainSegmentLoader_=new Xl(Be(b,{segmentMetadataTrack:i.segmentMetadataTrack_,loaderType:"main"}),e),i.audioSegmentLoader_=new Xl(Be(b,{loaderType:"audio"}),e),i.subtitleSegmentLoader_=new ou(Be(b,{loaderType:"vtt",featuresNativeTextTracks:i.tech_.featuresNativeTextTracks}),e),i.setupSegmentLoaderListeners_(),i.bufferBasedABR&&(i.mainPlaylistLoader_.one("loadedplaylist",function(){return i.startABRTimer_()}),i.tech_.on("pause",function(){return i.stopABRTimer_()}),i.tech_.on("play",function(){return i.startABRTimer_()})),Iu.forEach(function(e){i[e+"_"]=Au.bind(i,e)}),i.logger_=za("pc"),i.triggeredFmp4Usage=!1,"none"===i.tech_.preload()?(i.loadOnPlay_=function(){i.loadOnPlay_=null,i.mainPlaylistLoader_.load()},i.tech_.one("play",i.loadOnPlay_)):i.mainPlaylistLoader_.load(),i.timeToLoadedData__=-1,i.mainAppendsToLoadedData__=-1,i.audioAppendsToLoadedData__=-1;var w="none"===i.tech_.preload()?"play":"loadstart";return i.tech_.one(w,function(){var e=Date.now();i.tech_.one("loadeddata",function(){i.timeToLoadedData__=Date.now()-e,i.mainAppendsToLoadedData__=i.mainSegmentLoader_.mediaAppends,i.audioAppendsToLoadedData__=i.audioSegmentLoader_.mediaAppends})}),i}return s(t,e),ft(t,[{key:"mainAppendsToLoadedData_",value:function(){return this.mainAppendsToLoadedData__}},{key:"audioAppendsToLoadedData_",value:function(){return this.audioAppendsToLoadedData__}},{key:"appendsToLoadedData_",value:function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}},{key:"timeToLoadedData_",value:function(){return this.timeToLoadedData__}},{key:"checkABR_",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"abr",t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}},{key:"switchMedia_",value:function(e,t,i){var n=this.media(),r=n&&(n.id||n.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.mainPlaylistLoader_.media(e,i)}},{key:"startABRTimer_",value:function(){var e=this;this.stopABRTimer_(),this.abrTimer_=He.a.setInterval(function(){return e.checkABR_()},250)}},{key:"stopABRTimer_",value:function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(He.a.clearInterval(this.abrTimer_),this.abrTimer_=null)}},{key:"getAudioTrackPlaylists_",value:function(){var e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var i=e.mediaGroups.AUDIO,n=Object.keys(i),r=void 0;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||n.length&&i[n[0]];for(var s in a)if(a[s].default){r={label:s};break}}if(!r)return t;var o=[];for(var l in i)if(i[l][r.label]){var u=i[l][r.label];if(u.playlists&&u.playlists.length)o.push.apply(o,u.playlists);else if(u.uri)o.push(u);else if(e.playlists.length)for(var d=0;d<e.playlists.length;d++){var c=e.playlists[d];c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===l&&o.push(c)}}return o.length?o:t}},{key:"setupMainPlaylistLoaderListeners_",value:function(){var e=this;this.mainPlaylistLoader_.on("loadedmetadata",function(){var t=e.mainPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;gs(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=i,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),Ou({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,mainPlaylistLoader:e.mainPlaylistLoader_,vhs:e.vhs_,main:e.main(),mediaTypes:e.mediaTypes_,excludePlaylist:e.excludePlaylist.bind(e)}),e.triggerPresenceUsage_(e.main(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){e.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.mainPlaylistLoader_.media();if(!t){e.excludeUnsupportedVariants_();var i=void 0;if(e.enableLowInitialPlaylist&&(i=e.selectInitialPlaylist()),i||(i=e.selectPlaylist()),!i||!e.shouldSwitchToMedia_(i))return;e.initialMedia_=i,e.switchMedia_(e.initialMedia_,"initial");if(!("vhs-json"===e.sourceType_&&e.initialMedia_.segments))return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)}),this.mainPlaylistLoader_.on("error",function(){var t=e.mainPlaylistLoader_.error;e.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",function(){var t=e.mainPlaylistLoader_.media(),i=1.5*t.targetDuration*1e3;gs(e.mainPlaylistLoader_.main,e.mainPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=i,e.mainPlaylistLoader_.load(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",function(){var t=e.mainPlaylistLoader_.media();if("playlist-unchanged"!==t.lastExcludeReason_){e.stuckAtPlaylistEnd_(t)&&(e.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),e.tech_.trigger("playliststuck"))}}),this.mainPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}},{key:"handleUpdatedMediaPlaylist",value:function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}},{key:"triggerPresenceUsage_",value:function(e,t){var i=e.mediaGroups||{},n=!0,r=Object.keys(i.AUDIO);for(var a in i.AUDIO)for(var s in i.AUDIO[a]){var o=i.AUDIO[a][s];o.uri||(n=!1)}n&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(i.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),ju.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"})}},{key:"shouldSwitchToMedia_",value:function(e){var t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,i=this.tech_.currentTime(),n=this.bufferLowWaterLine(),r=this.bufferHighWaterLine(),a=this.tech_.buffered();return Mu({buffered:a,currentTime:i,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:n,bufferHighWaterLine:r,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",function(){e.bufferBasedABR&&e.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){var t=e.mainSegmentLoader_.error();e.excludePlaylist({playlistToExclude:t.playlist,error:t})}),this.mainSegmentLoader_.on("appenderror",function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){e.logger_("main segment loader ended"),e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(t){e.bufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:120}))});var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"fastQualityChange_",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectPlaylist();if(t===this.mainPlaylistLoader_.media())return void this.logger_("skipping fastQualityChange because new media is same as old");this.switchMedia_(t,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){Re.browser.IE_VERSION||Re.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())})}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var 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}}},{key:"setupFirstPlay",value:function(){var e=this,t=this.mainPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var i=this.seekable();if(!i.length)return!1;if(Re.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(i.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(i.end(0))}return this.hasPlayed_=!0,this.load(),!0}},{key:"handleSourceOpen_",value:function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,function(e){})}this.trigger("sourceopen")}},{key:"handleSourceEnded_",value:function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}}},{key:"handleDurationChange_",value:function(){this.tech_.trigger("durationchange")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}},{key:"stuckAtPlaylistEnd_",value:function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var i=ju.Playlist.playlistEnd(e,t),n=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return i-n<=.1;var a=r.end(r.length-1);return a-n<=.1&&i-a<=.1}},{key:"excludePlaylist",value:function(e){var t=e.playlistToExclude,i=void 0===t?this.mainPlaylistLoader_.media():t,n=e.error,r=void 0===n?{}:n,a=e.playlistExclusionDuration;if(i=i||this.mainPlaylistLoader_.media(),a=a||r.playlistExclusionDuration||this.playlistExclusionDuration,!i)return this.error=r,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));i.playlistErrors_++;var s=this.mainPlaylistLoader_.main.playlists,o=s.filter(ps),l=1===o.length&&o[0]===i;if(1===s.length&&a!==1/0)return Re.log.warn("Problem encountered with playlist "+i.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(l);if(l){var u=!1;s.forEach(function(e){if(e!==i){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(u=!0,delete e.excludeUntil)}}),u&&(Re.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}var d=void 0;d=i.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*a,i.excludeUntil=d,r.reason&&(i.lastExcludeReason_=r.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});var c=this.selectPlaylist();if(!c)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var p=r.internal?this.logger_:Re.log.warn,h=r.message?" "+r.message:"";p((r.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+h+" Switching to playlist "+c.id+"."),c.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),c.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var f=c.targetDuration/2*1e3||5e3,v="number"==typeof c.lastRequest&&Date.now()-c.lastRequest<=f;return this.switchMedia_(c,"exclude",l||v)}},{key:"pauseLoading",value:function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}},{key:"delegateLoaders_",value:function(e,t){var i=this,n=[],r="all"===e;(r||"main"===e)&&n.push(this.mainPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){var t=i.mediaTypes_[e]&&i.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(function(t){var r=i[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||n.push(r)}),n.forEach(function(e){return t.forEach(function(t){"function"==typeof e[t]&&e[t]()})})}},{key:"setCurrentTime",value:function(e){var t=Fa(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){if(!this.mainPlaylistLoader_)return 0;var e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:ju.Playlist.duration(e):1/0:0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var e=void 0;if(this.mainPlaylistLoader_){var t=this.mainPlaylistLoader_.media();if(t){var i=this.syncController_.getExpiredTime(t,this.duration());if(null!==i){var n=this.mainPlaylistLoader_.main,r=ju.Playlist.seekable(t,i,ju.Playlist.liveEdgeDelay(n,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(t,this.duration())))return;if(e=ju.Playlist.seekable(t,i,ju.Playlist.liveEdgeDelay(n,t)),0===e.length)return}var a=void 0,s=void 0;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),s=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=ze([[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)===a&&this.seekable_.start(0)===s||(this.logger_("seekable updated ["+Ga(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}}},{key:"updateDuration",value:function(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){var t=this.seekable();if(!t.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1)))}var i=this.tech_.buffered(),n=ju.Playlist.duration(this.mainPlaylistLoader_.media());i.length>0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}},{key:"dispose",value:function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(t){var i=e.mediaTypes_[t].groups;for(var n in i)i[n].forEach(function(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()}},{key:"main",value:function(){return this.mainPlaylistLoader_.main}},{key:"media",value:function(){return this.mainPlaylistLoader_.media()||this.initialMedia_}},{key:"areMediaTypesKnown_",value:function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),i=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!i)}},{key:"getCodecsOrExclude_",value:function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var i=pl(this.main(),this.media()),n={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(n.video=i.video||t.main.videoCodec||nt.b),t.main.isMuxed&&(n.video+=","+(i.audio||t.main.audioCodec||nt.a)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(n.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||nt.a,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!n.audio&&!n.video)return void this.excludePlaylist({playlistToExclude:this.media(),error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});var a=function(e,t){return e?Object(nt.c)(t):Object(nt.g)(t)},s={},o=void 0;if(["video","audio"].forEach(function(e){if(n.hasOwnProperty(e)&&!a(t[e].isFmp4,n[e])){var i=t[e].isFmp4?"browser":"muxer";s[i]=s[i]||[],s[i].push(n[e]),"audio"===e&&(o=i)}}),r&&o&&this.media().attributes.AUDIO){var l=this.media().attributes.AUDIO;this.main().playlists.forEach(function(t){(t.attributes&&t.attributes.AUDIO)===l&&t!==e.media()&&(t.excludeUntil=1/0)}),this.logger_("excluding audio group "+l+" as "+o+' does not support codec(s): "'+n.audio+'"')}if(Object.keys(s).length){var u=Object.keys(s).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'},"")+".";return void this.excludePlaylist({playlistToExclude:this.media(),error:{internal:!0,message:u},playlistExclusionDuration:1/0})}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var d=[];if(["video","audio"].forEach(function(t){var i=(Object(nt.h)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(Object(nt.h)(n[t]||"")[0]||{}).type;i&&r&&i.toLowerCase()!==r.toLowerCase()&&d.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+n[t]+'"')}),d.length)return void this.excludePlaylist({playlistToExclude:this.media(),error:{message:"Codec switching not supported: "+d.join(", ")+".",internal:!0},playlistExclusionDuration:1/0})}return n}},{key:"tryToCreateSourceBuffers_",value:function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}}},{key:"excludeUnsupportedVariants_",value:function(){var e=this,t=this.main().playlists,i=[];Object.keys(t).forEach(function(n){var r=t[n];if(-1===i.indexOf(r.id)){i.push(r.id);var a=pl(e.main,r),s=[];!a.audio||Object(nt.g)(a.audio)||Object(nt.c)(a.audio)||s.push("audio codec "+a.audio),!a.video||Object(nt.g)(a.video)||Object(nt.c)(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}})}},{key:"excludeIncompatibleVariants_",value:function(e){var t=this,i=[],n=this.main().playlists,r=dl(Object(nt.h)(e)),a=cl(r),s=r.video&&Object(nt.h)(r.video)[0]||null,o=r.audio&&Object(nt.h)(r.audio)[0]||null;Object.keys(n).forEach(function(e){var r=n[e];if(-1===i.indexOf(r.id)&&r.excludeUntil!==1/0){i.push(r.id);var l=[],u=pl(t.mainPlaylistLoader_.main,r),d=cl(u);if(u.audio||u.video){if(d!==a&&l.push('codec count "'+d+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var c=u.video&&Object(nt.h)(u.video)[0]||null,p=u.audio&&Object(nt.h)(u.audio)[0]||null;c&&s&&c.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+c.type+'" !== "'+s.type+'"'),p&&o&&p.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+p.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("excluding "+r.id+": "+l.join(" && ")))}}})}},{key:"updateAdCues_",value:function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),uu(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=To.GOAL_BUFFER_LENGTH,i=To.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,To.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=To.BUFFER_LOW_WATER_LINE,i=To.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,To.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,To.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.bufferBasedABR?r:n)}},{key:"bufferHighWaterLine",value:function(){return To.BUFFER_HIGH_WATER_LINE}}]),t}(Re.EventTarget),Lu=function(e,t,i){return function(n){var r=e.main.playlists[t],a=cs(r),s=ps(r);return void 0===n?s:(n?delete r.disabled:r.disabled=!0,n===s||a||(i(),n?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),n)}},Nu=function e(t,i,n){o(this,e);var r=t.playlistController_,a=r.fastQualityChange_.bind(r);if(i.attributes){var s=i.attributes.RESOLUTION;this.width=s&&s.width,this.height=s&&s.height,this.bandwidth=i.attributes.BANDWIDTH,this.frameRate=i.attributes["FRAME-RATE"]}this.codecs=pl(r.main(),i),this.playlist=i,this.id=n,this.enabled=Lu(t.playlists,i.id,a)},Ru=function(e){e.representations=function(){var t=e.playlistController_.main(),i=ws(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return i?i.filter(function(e){return!cs(e)}).map(function(t,i){return new Nu(e,t,t.id)}):[]}},Bu=["seeking","seeked","pause","playing","error"],zu=function(){function e(t){var i=this;o(this,e),this.playlistController_=t.playlistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=za("PlaybackWatcher"),this.logger_("initialize");var n=function(){return i.monitorCurrentTime_()},r=function(){return i.monitorCurrentTime_()},a=function(){return i.techWaiting_()},s=function(){return i.resetTimeUpdate_()},l=this.playlistController_,u=["main","subtitle","audio"],d={};u.forEach(function(e){d[e]={reset:function(){return i.resetSegmentDownloads_(e)},updateend:function(){return i.checkSegmentDownloads_(e)}},l[e+"SegmentLoader_"].on("appendsdone",d[e].updateend),l[e+"SegmentLoader_"].on("playlistupdate",d[e].reset),i.tech_.on(["seeked","seeking"],d[e].reset)});var c=function(e){["main","audio"].forEach(function(t){l[t+"SegmentLoader_"][e]("appended",i.seekingAppendCheck_)})};this.seekingAppendCheck_=function(){i.fixesBadSeeks_()&&(i.consecutiveUpdates=0,i.lastRecordedTime=i.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=function(){return c("off")},this.watchForBadSeeking_=function(){i.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",a),this.tech_.on(Bu,s),this.tech_.on("canplay",r),this.tech_.one("play",n),this.dispose=function(){i.clearSeekingAppendCheck_(),i.logger_("dispose"),i.tech_.off("waiting",a),i.tech_.off(Bu,s),i.tech_.off("canplay",r),i.tech_.off("play",n),i.tech_.off("seeking",i.watchForBadSeeking_),i.tech_.off("seeked",i.clearSeekingAppendCheck_),u.forEach(function(e){l[e+"SegmentLoader_"].off("appendsdone",d[e].updateend),l[e+"SegmentLoader_"].off("playlistupdate",d[e].reset),i.tech_.off(["seeked","seeking"],d[e].reset)}),i.checkCurrentTimeTimeout_&&He.a.clearTimeout(i.checkCurrentTimeTimeout_),i.resetTimeUpdate_()}}return ft(e,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&He.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=He.a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"resetSegmentDownloads_",value:function(e){var 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_()}},{key:"checkSegmentDownloads_",value:function(e){var t=this.playlistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=$a(this[e+"Buffered_"],n);if(this[e+"Buffered_"]=n,r)return void 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:Xa(n)}),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}))}},{key:"checkCurrentTime_",value:function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=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)}}},{key:"resetTimeUpdate_",value:function(){this.consecutiveUpdates=0}},{key:"fixesBadSeeks_",value:function(){if(!this.tech_.seeking())return!1;var e=this.seekable(),t=this.tech_.currentTime(),i=this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow),n=void 0;if(i){n=e.end(e.length-1)}if(this.beforeSeekableWindow_(e,t)){var r=e.start(0);n=r+(r===e.end(0)?0:.1)}if(void 0!==n)return this.logger_("Trying to seek outside of seekable at time "+t+" with seekable range "+Ga(e)+". Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0;for(var a=this.playlistController_.sourceUpdater_,s=this.tech_.buffered(),o=a.audioBuffer?a.audioBuffered():null,l=a.videoBuffer?a.videoBuffered():null,u=this.media(),d=u.partTargetDuration?u.partTargetDuration:2*(u.targetDuration-1/30),c=[o,l],p=0;p<c.length;p++)if(c[p]){var h=Ka(c[p],t);if(h<d)return!1}var f=Ha(s,t);return 0!==f.length&&(n=f.start(0)+.1,this.logger_("Buffered region starts ("+f.start(0)+") just beyond seek point ("+t+"). Seeking to "+n+"."),this.tech_.setCurrentTime(n),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),i=Fa(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}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){var 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}var n=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;var a=Ha(r,t);return a.length>0&&(this.logger_("Stopped at "+t+" and seeking to "+a.start(0)),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}},{key:"afterSeekableWindow_",value:function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e.length)return!1;var r=e.end(e.length-1)+.1;return!i.endList&&n&&(r=e.end(e.length-1)+3*i.targetDuration),t>r}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}},{key:"videoUnderflow_",value:function(e){var t=e.videoBuffered,i=e.audioBuffered,n=e.currentTime;if(t){var r=void 0;if(t.length&&i.length){var a=Fa(t,n-3),s=Fa(t,n),o=Fa(i,n);o.length&&!s.length&&a.length&&(r={start:a.end(0),end:o.end(0)})}else{Ha(t,n).length||(r=this.gapFromVideoUnderflow_(t,n))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0)}}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),i=this.tech_.currentTime(),n=Ha(t,i);this.resetTimeUpdate_(),0!==n.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",n.start(0)),this.tech_.setCurrentTime(n.start(0)+1/30),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var i=Va(e),n=0;n<i.length;n++){var r=i.start(n),a=i.end(n);if(t-r<4&&t-r>2)return{start:r,end:a}}return null}}]),e}(),Uu={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Fu=function e(t,i){var n=0,r=0,a=Be(Uu,i);t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"})});var s=function(){r&&t.currentTime(r)},o=function(e){null!==e&&void 0!==e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.play())},l=function(){return Date.now()-n<1e3*a.errorInterval?void t.trigger({type:"usage",name:"vhs-error-reload-canceled"}):a.getSource&&"function"==typeof a.getSource?(n=Date.now(),a.getSource.call(t,o)):void Re.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)},d=function(i){u(),e(t,i)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=d},Hu=function(e){Fu(this,e)},Vu={PlaylistLoader:Us,Playlist:Ts,utils:to,STANDARD_PLAYLIST_SELECTOR:wl,INITIAL_PLAYLIST_SELECTOR:Sl,lastBandwidthSelector:wl,movingAverageBandwidthSelector:Tl,comparePlaylistBandwidth:gl,comparePlaylistResolution:yl,xhr:Vs()};Object.keys(To).forEach(function(e){Object.defineProperty(Vu,e,{get:function(){return Re.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),To[e]},set:function(t){if(Re.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0)return void Re.log.warn("value of Vhs."+e+" must be greater than or equal to 0");To[e]=t}})});var qu=function(e,t){for(var i=t.media(),n=-1,r=0;r<e.length;r++)if(e[r].id===i.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})},Gu=function(e,t){t.representations().forEach(function(t){e.addQualityLevel(t)}),qu(e,t.playlists)};Vu.canPlaySource=function(){return Re.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};var Wu=function(e,t,i){if(!e)return e;var n={};t&&t.attributes&&t.attributes.CODECS&&(n=dl(Object(nt.h)(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);var r=Object(nt.e)(n.video),a=Object(nt.e)(n.audio),s={};for(var o in e)s[o]={},a&&(s[o].audioContentType=a),r&&(s[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(s[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(s[o].url=e[o]);return Be(e,s)},Xu=function(e,t){return e.reduce(function(e,i){if(!i.contentProtection)return e;var n=t.reduce(function(e,t){var n=i.contentProtection[t];return n&&n.pssh&&(e[t]={pssh:n.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[])},$u=function(e){var t=e.player,i=e.sourceKeySystems,n=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=n?r.concat([n]):r,s=Xu(a,Object.keys(i)),o=[],l=[];return s.forEach(function(e){l.push(new Promise(function(e,i){t.tech_.one("keysessioncreated",e)})),o.push(new Promise(function(i,n){t.eme.initializeMediaKeys({keySystems:e},function(e){if(e)return void n(e);i()})}))}),Promise.race([Promise.all(o),Promise.race(l)])},Yu=function(e){var t=e.player,i=e.sourceKeySystems,n=e.media,r=e.audioMedia,a=Wu(i,n,r);return!!a&&(t.currentSource().keySystems=a,!(a&&!t.eme)||(Re.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},Ku=function(){if(!He.a.localStorage)return null;var e=He.a.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},Qu=function(e){if(!He.a.localStorage)return!1;var t=Ku();t=t?Be(t,e):e;try{He.a.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(e){return!1}return t},Ju=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e};Vu.supportsNativeHls=function(){if(!qe.a||!qe.a.createElement)return!1;var e=qe.a.createElement("video");return!!Re.getTech("Html5").isSupported()&&["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Vu.supportsNativeDash=function(){return!!(qe.a&&qe.a.createElement&&Re.getTech("Html5").isSupported())&&/maybe|probably/i.test(qe.a.createElement("video").canPlayType("application/dash+xml"))}(),Vu.supportsTypeNatively=function(e){return"hls"===e?Vu.supportsNativeHls:"dash"===e&&Vu.supportsNativeDash},Vu.isSupported=function(){return Re.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};var Zu=Re.getComponent("Component"),ed=function(e){function t(e,i,n){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i,n.vhs));if("number"==typeof n.initialBandwidth&&(r.options_.bandwidth=n.initialBandwidth),r.logger_=za("VhsHandler"),i.options_&&i.options_.playerId){var s=Re.getPlayer(i.options_.playerId);r.player_=s}if(r.tech_=i,r.source_=e,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks)i.overrideNativeAudioTracks(!0),i.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");return r.on(qe.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=qe.a.fullscreenElement||qe.a.webkitFullscreenElement||qe.a.mozFullScreenElement||qe.a.msFullscreenElement;t&&t.contains(r.tech_.el())?r.playlistController_.fastQualityChange_():r.playlistController_.checkABR_()}),r.on(r.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_)return void(this.ignoreNextSeekingEvent_=!1);this.setCurrentTime(this.tech_.currentTime())}),r.on(r.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),r.on(r.tech_,"play",r.play),r}return s(t,e),ft(t,[{key:"setOptions_",value:function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!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=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=Ku();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=To.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===To.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}},{key:"src",value:function(e,t){var i=this;if(e){this.setOptions_(),this.options_.src=Ju(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Vu,this.options_.sourceType=Object(rt.a)(t),this.options_.seekTo=function(e){i.tech_.setCurrentTime(e)},this.playlistController_=new Du(this.options_);var n=Be({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return i.seekable()},media:function(){return i.playlistController_.media()},playlistController:this.playlistController_});this.playbackWatcher_=new zu(n),this.playlistController_.on("error",function(){var e=Re.players[i.tech_.options_.playerId],t=i.playlistController_.error;"object"!==(void 0===t?"undefined":vt(t))||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});var r=this.options_.bufferBasedABR?Vu.movingAverageBandwidthSelector(.55):Vu.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Vu.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.playlistController_.selectPlaylist},set:function(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.playlistController_.mainSegmentLoader_.bandwidth,t=He.a.navigator.connection||He.a.navigator.mozConnection||He.a.navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){var i=1e3*t.downlink*1e3;e=i>=1e7&&e>=1e7?Math.max(e,i):i}return e},set:function(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set:function(){Re.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:function(){return i.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return i.playlistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return i.playlistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return i.playlistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return i.playlistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return i.playlistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return i.playlistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return i.playlistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return i.playlistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return i.playlistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return i.playlistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return i.playlistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return i.playlistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Xa(i.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return i.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return i.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return i.tech_.name_},enumerable:!0},duration:{get:function(){return i.tech_.duration()},enumerable:!0},main:{get:function(){return i.playlists.main},enumerable:!0},playerDimensions:{get:function(){return i.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Xa(i.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return i.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",function(){i.options_.useBandwidthFromLocalStorage&&Qu({bandwidth:i.bandwidth,throughput:Math.round(i.throughput)})}),this.playlistController_.on("selectedinitialmedia",function(){Ru(i)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",function(){i.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_=He.a.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}}},{key:"createKeySessions_",value:function(){var e=this,t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),$u({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.main.playlists}).then(function(){e.logger_("created EME key session"),e.playlistController_.sourceUpdater_.initializedEme()}).catch(function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})})}},{key:"handleWaitingForKey_",value:function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}},{key:"setupEme_",value:function(){var e=this,t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=Yu({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",function(t){if("output-restricted"===t.status){var i=e.playlistController_.main();if(i&&i.playlists){var n=[];if(i.playlists.forEach(function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,n.push(e))}),n.length){var r;(r=Re.log).warn.apply(r,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(n)),e.playlistController_.fastQualityChange_()}}}}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11===Re.browser.IE_VERSION||!i)return void this.playlistController_.sourceUpdater_.initializedEme();this.createKeySessions_()}},{key:"setupQualityLevels_",value:function(){var e=this,t=Re.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",function(){Gu(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){qu(e.qualityLevels_,e.playlists)}))}},{key:"version",value:function(){return this.constructor.version()}},{key:"canChangeType",value:function(){return ru.canChangeType()}},{key:"play",value:function(){this.playlistController_.play()}},{key:"setCurrentTime",value:function(e){this.playlistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.playlistController_.duration()}},{key:"seekable",value:function(){return this.playlistController_.seekable()}},{key:"dispose",value:function(){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_&&He.a.URL.revokeObjectURL&&(He.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),pt(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}},{key:"convertToProgramTime",value:function(e,t){return lo({playlist:this.playlistController_.media(),time:e,callback:t})}},{key:"seekToProgramTime",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return uo({programTime:e,playlist:this.playlistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}}],[{key:"version",value:function(){return{"@videojs/http-streaming":"3.0.0","mux.js":"6.2.0","mpd-parser":"1.0.1","m3u8-parser":"6.0.0","aes-decrypter":"4.0.1"}}}]),t}(Zu),td={name:"videojs-http-streaming",VERSION:"3.0.0",canHandleSource:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Be(Re.options,t);return td.canPlayType(e.type,i)},handleSource:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=Be(Re.options,i);return t.vhs=new ed(e,t,n),t.vhs.xhr=Vs(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Be(Re.options,t),n=i.vhs;n=void 0===n?{}:n;var r=n.overrideNative,a=void 0===r?!Re.browser.IS_ANY_SAFARI:r,s=Object(rt.a)(e);return!s||Vu.supportsTypeNatively(s)&&!a?"":"maybe"}};(function(){return Object(nt.c)("avc1.4d400d,mp4a.40.2")})()&&Re.getTech("Html5").registerSourceHandler(td,0),Re.VhsHandler=ed,Re.VhsSourceHandler=td,Re.Vhs=Vu,Re.use||Re.registerComponent("Vhs",Vu),Re.options.vhs=Re.options.vhs||{},Re.getPlugin&&Re.getPlugin("reloadSourceOnError")||Re.registerPlugin("reloadSourceOnError",Hu)}).call(t,i(4))},function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(t,i(4))},function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(t,i(4))},function(e,t,i){(function(e){var i,n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(a){var s=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,o=/^([^\/?#]*)([^]*)$/,l=/(?:\/|^)\.(?=\/)/g,u=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,d={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var n=d.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=d.normalizePath(n.path),d.buildURLFromParts(n)}var r=d.parseURL(t);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return i.alwaysNormalize?(r.path=d.normalizePath(r.path),d.buildURLFromParts(r)):t;var a=d.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var s=o.exec(a.path);a.netLoc=s[1],a.path=s[2]}a.netLoc&&!a.path&&(a.path="/");var l={scheme:a.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};if(!r.netLoc&&(l.netLoc=a.netLoc,"/"!==r.path[0]))if(r.path){var u=a.path,c=u.substring(0,u.lastIndexOf("/")+1)+r.path;l.path=d.normalizePath(c)}else l.path=a.path,r.params||(l.params=a.params,r.query||(l.query=a.query));return null===l.path&&(l.path=i.alwaysNormalize?d.normalizePath(r.path):r.path),d.buildURLFromParts(l)},parseURL:function(e){var t=s.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){for(e=e.split("").reverse().join("").replace(l,"");e.length!==(e=e.replace(u,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};"object"===r(t)&&"object"===r(e)?e.exports=d:(i=[],void 0!==(n=function(){return d}.apply(t,i))&&(e.exports=n))}()}).call(t,i(12)(e))},function(e,t,i){"use strict";(function(e){function n(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function r(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=a.prototype):(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,i){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(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 u(this,e)}return s(this,e,t,i)}function s(e,t,i,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,i,n):"string"==typeof t?d(e,t,i):h(e,t)}function o(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 l(e,t,i,n){return o(t),t<=0?r(e,t):void 0!==i?"string"==typeof n?r(e,t).fill(i,n):r(e,t).fill(i):r(e,t)}function u(e,t){if(o(t),e=r(e,t<0?0:0|f(t)),!a.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function d(e,t,i){if("string"==typeof i&&""!==i||(i="utf8"),!a.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var n=0|m(t,i);e=r(e,n);var s=e.write(t,i);return s!==n&&(e=e.slice(0,s)),e}function c(e,t){var i=t.length<0?0:0|f(t.length);e=r(e,i);for(var n=0;n<i;n+=1)e[n]=255&t[n];return e}function p(e,t,i,n){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===i&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,i):new Uint8Array(t,i,n),a.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=a.prototype):e=c(e,t),e}function h(e,t){if(a.isBuffer(t)){var i=0|f(t.length);return e=r(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||Y(t.length)?r(e,0):c(e,t);if("Buffer"===t.type&&J(t.data))return c(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function f(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),a.alloc(+e)}function m(e,t){if(a.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 n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return X(e).length;default:if(n)return q(e).length;t=(""+t).toLowerCase(),n=!0}}function g(e,t,i){var n=!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"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,i);case"utf8":case"utf-8":return O(this,t,i);case"ascii":return j(this,t,i);case"latin1":case"binary":return I(this,t,i);case"base64":return C(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function b(e,t,i,n,r){if(0===e.length)return-1;if("string"==typeof i?(n=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=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:w(e,t,i,n,r);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):w(e,[t],i,n,r);throw new TypeError("val must be string, number or Buffer")}function w(e,t,i,n,r){function a(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var s=1,o=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,i/=2}var u;if(r){var d=-1;for(u=i;u<o;u++)if(a(e,u)===a(t,-1===d?0:u-d)){if(-1===d&&(d=u),u-d+1===l)return d*s}else-1!==d&&(u-=u-d),d=-1}else for(i+l>o&&(i=o-l),u=i;u>=0;u--){for(var c=!0,p=0;p<l;p++)if(a(e,u+p)!==a(t,p)){c=!1;break}if(c)return u}return-1}function T(e,t,i,n){i=Number(i)||0;var r=e.length-i;n?(n=Number(n))>r&&(n=r):n=r;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");n>a/2&&(n=a/2);for(var s=0;s<n;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[i+s]=o}return s}function _(e,t,i,n){return $(q(t,e.length-i),e,i,n)}function S(e,t,i,n){return $(G(t),e,i,n)}function x(e,t,i,n){return S(e,t,i,n)}function E(e,t,i,n){return $(X(t),e,i,n)}function k(e,t,i,n){return $(W(t,e.length-i),e,i,n)}function C(e,t,i){return 0===t&&i===e.length?K.fromByteArray(e):K.fromByteArray(e.slice(t,i))}function O(e,t,i){i=Math.min(e.length,i);for(var n=[],r=t;r<i;){var a=e[r],s=null,o=a>239?4:a>223?3:a>191?2:1;if(r+o<=i){var l,u,d,c;switch(o){case 1:a<128&&(s=a);break;case 2:l=e[r+1],128==(192&l)&&(c=(31&a)<<6|63&l)>127&&(s=c);break;case 3:l=e[r+1],u=e[r+2],128==(192&l)&&128==(192&u)&&(c=(15&a)<<12|(63&l)<<6|63&u)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:l=e[r+1],u=e[r+2],d=e[r+3],128==(192&l)&&128==(192&u)&&128==(192&d)&&(c=(15&a)<<18|(63&l)<<12|(63&u)<<6|63&d)>65535&&c<1114112&&(s=c)}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),r+=o}return P(n)}function P(e){var t=e.length;if(t<=Z)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=Z));return i}function j(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(127&e[r]);return n}function I(e,t,i){var n="";i=Math.min(e.length,i);for(var r=t;r<i;++r)n+=String.fromCharCode(e[r]);return n}function A(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var r="",a=t;a<i;++a)r+=V(e[a]);return r}function M(e,t,i){for(var n=e.slice(t,i),r="",a=0;a<n.length;a+=2)r+=String.fromCharCode(n[a]+256*n[a+1]);return r}function D(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 L(e,t,i,n,r,s){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<s)throw new RangeError('"value" argument is out of bounds');if(i+n>e.length)throw new RangeError("Index out of range")}function N(e,t,i,n){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-i,2);r<a;++r)e[i+r]=(t&255<<8*(n?r:1-r))>>>8*(n?r:1-r)}function R(e,t,i,n){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-i,4);r<a;++r)e[i+r]=t>>>8*(n?r:3-r)&255}function B(e,t,i,n,r,a){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function z(e,t,i,n,r){return r||B(e,t,i,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(e,t,i,n,23,4),i+4}function U(e,t,i,n,r){return r||B(e,t,i,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(e,t,i,n,52,8),i+8}function F(e){if(e=H(e).replace(ee,""),e.length<2)return"";for(;e.length%4!=0;)e+="=";return e}function H(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){t=t||1/0;for(var i,n=e.length,r=null,a=[],s=0;s<n;++s){if((i=e.charCodeAt(s))>55295&&i<57344){if(!r){if(i>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&a.push(239,191,189);continue}r=i;continue}if(i<56320){(t-=3)>-1&&a.push(239,191,189),r=i;continue}i=65536+(r-55296<<10|i-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,i<128){if((t-=1)<0)break;a.push(i)}else if(i<2048){if((t-=2)<0)break;a.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;a.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;a.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return a}function G(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}function W(e,t){for(var i,n,r,a=[],s=0;s<e.length&&!((t-=2)<0);++s)i=e.charCodeAt(s),n=i>>8,r=i%256,a.push(r),a.push(n);return a}function X(e){return K.toByteArray(F(e))}function $(e,t,i,n){for(var r=0;r<n&&!(r+i>=t.length||r>=e.length);++r)t[r+i]=e[r];return r}function Y(e){return e!==e}/*!
|
|
5
|
+
* The buffer module from node.js, for the browser.
|
|
6
|
+
*
|
|
7
|
+
* @author Feross Aboukhadijeh <http://feross.org>
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/
|
|
10
|
+
var K=i(87),Q=i(88),J=i(89);t.Buffer=a,t.SlowBuffer=v,t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){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(e){return!1}}(),t.kMaxLength=n(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,i){return s(null,e,t,i)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,i){return l(null,e,t,i)},a.allocUnsafe=function(e){return u(null,e)},a.allocUnsafeSlow=function(e){return u(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,n=t.length,r=0,s=Math.min(i,n);r<s;++r)if(e[r]!==t[r]){i=e[r],n=t[r];break}return i<n?-1:n<i?1:0},a.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}},a.concat=function(e,t){if(!J(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=a.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var s=e[i];if(!a.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,r),r+=s.length}return n},a.byteLength=m,a.prototype._isBuffer=!0,a.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)y(this,t,t+1);return this},a.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)y(this,t,t+3),y(this,t+1,t+2);return this},a.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)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?O(this,0,e):g.apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.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+">"},a.prototype.compare=function(e,t,i,n,r){if(!a.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===n&&(n=0),void 0===r&&(r=this.length),t<0||i>e.length||n<0||r>this.length)throw new RangeError("out of range index");if(n>=r&&t>=i)return 0;if(n>=r)return-1;if(t>=i)return 1;if(t>>>=0,i>>>=0,n>>>=0,r>>>=0,this===e)return 0;for(var s=r-n,o=i-t,l=Math.min(s,o),u=this.slice(n,r),d=e.slice(t,i),c=0;c<l;++c)if(u[c]!==d[c]){s=u[c],o=d[c];break}return s<o?-1:o<s?1:0},a.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},a.prototype.indexOf=function(e,t,i){return b(this,e,t,i,!0)},a.prototype.lastIndexOf=function(e,t,i){return b(this,e,t,i,!1)},a.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=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===n&&(n="utf8")):(n=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");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return T(this,e,t,i);case"utf8":case"utf-8":return _(this,e,t,i);case"ascii":return S(this,e,t,i);case"latin1":case"binary":return x(this,e,t,i);case"base64":return E(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,i);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;a.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);var n;if(a.TYPED_ARRAY_SUPPORT)n=this.subarray(e,t),n.__proto__=a.prototype;else{var r=t-e;n=new a(r,void 0);for(var s=0;s<r;++s)n[s]=this[s+e]}return n},a.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||D(e,t,this.length);for(var n=this[e],r=1,a=0;++a<t&&(r*=256);)n+=this[e+a]*r;return n},a.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||D(e,t,this.length);for(var n=this[e+--t],r=1;t>0&&(r*=256);)n+=this[e+--t]*r;return n},a.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||D(e,t,this.length);for(var n=this[e],r=1,a=0;++a<t&&(r*=256);)n+=this[e+a]*r;return r*=128,n>=r&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||D(e,t,this.length);for(var n=t,r=1,a=this[e+--n];n>0&&(r*=256);)a+=this[e+--n]*r;return r*=128,a>=r&&(a-=Math.pow(2,8*t)),a},a.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},a.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),Q.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),Q.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),Q.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),Q.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){L(this,e,t,i,Math.pow(2,8*i)-1,0)}var r=1,a=0;for(this[t]=255&e;++a<i&&(r*=256);)this[t+a]=e/r&255;return t+i},a.prototype.writeUIntBE=function(e,t,i,n){if(e=+e,t|=0,i|=0,!n){L(this,e,t,i,Math.pow(2,8*i)-1,0)}var r=i-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+i},a.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);L(this,e,t,i,r-1,-r)}var a=0,s=1,o=0;for(this[t]=255&e;++a<i&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+i},a.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t|=0,!n){var r=Math.pow(2,8*i-1);L(this,e,t,i,r-1,-r)}var a=i-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+i},a.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,i){return z(this,e,t,!0,i)},a.prototype.writeFloatBE=function(e,t,i){return z(this,e,t,!1,i)},a.prototype.writeDoubleLE=function(e,t,i){return U(this,e,t,!0,i)},a.prototype.writeDoubleBE=function(e,t,i){return U(this,e,t,!1,i)},a.prototype.copy=function(e,t,i,n){if(i||(i=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<i&&(n=i),n===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(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-i&&(n=e.length-t+i);var r,s=n-i;if(this===e&&i<t&&t<n)for(r=s-1;r>=0;--r)e[r+t]=this[r+i];else if(s<1e3||!a.TYPED_ARRAY_SUPPORT)for(r=0;r<s;++r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+s),t);return s},a.prototype.fill=function(e,t,i,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,i=this.length):"string"==typeof i&&(n=i,i=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}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;t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0);var s;if("number"==typeof e)for(s=t;s<i;++s)this[s]=e;else{var o=a.isBuffer(e)?e:q(new a(e,n).toString()),l=o.length;for(s=0;s<i-t;++s)this[s+t]=o[s%l]}return this};var ee=/[^+\/0-9A-Za-z-_]/g}).call(t,i(4))},function(e,t,i){function n(e){return""!==e}function r(e){return e?e.split(/[\t\n\f\r ]+/).filter(n):[]}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function s(e){if(!e)return[];var t=r(e);return Object.keys(t.reduce(a,{}))}function o(e){return function(t){return e&&-1!==e.indexOf(t)}}function l(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function u(e,t){var i=e.prototype;if(!(i instanceof t)){var n=function(){};n.prototype=t.prototype,n=new n,l(i,n),e.prototype=i=n}i.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),i.constructor=e)}function d(e,t){if(t instanceof Error)var i=t;else i=this,Error.call(this,Se[e]),this.message=Se[e],Error.captureStackTrace&&Error.captureStackTrace(this,d);return i.code=e,t&&(this.message=this.message+": "+t),i}function c(){}function p(e,t){this._node=e,this._refresh=t,h(this)}function h(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var i=e._refresh(e._node);re(e,"length",i.length),l(i,e),e._inc=t}}function f(){}function v(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function m(e,t,i,n){if(n?t[v(t,n)]=i:t[t.length++]=i,e){i.ownerElement=e;var r=e.ownerDocument;r&&(n&&x(r,e,n),S(r,e,i))}}function g(e,t,i){var n=v(t,i);if(!(n>=0))throw new d(Ee,new Error(e.tagName+"@"+i));for(var r=t.length-1;n<r;)t[n]=t[++n];if(t.length=r,e){var a=e.ownerDocument;a&&(x(a,e,i),i.ownerElement=null)}}function y(){}function b(){}function w(e){return"<"==e&&"<"||">"==e&&">"||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function T(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(T(e,t))return!0}while(e=e.nextSibling)}function _(){this.ownerDocument=this}function S(e,t,i){e&&e._inc++,i.namespaceURI===le.XMLNS&&(t._nsMap[i.prefix?i.localName:""]=i.value)}function x(e,t,i,n){e&&e._inc++,i.namespaceURI===le.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function E(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{for(var r=t.firstChild,a=0;r;)n[a++]=r,r=r.nextSibling;n.length=a,delete n[n.length]}}}function k(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,E(e.ownerDocument,e),t}function C(e){return e&&(e.nodeType===b.DOCUMENT_NODE||e.nodeType===b.DOCUMENT_FRAGMENT_NODE||e.nodeType===b.ELEMENT_NODE)}function O(e){return e&&(j(e)||I(e)||P(e)||e.nodeType===b.DOCUMENT_FRAGMENT_NODE||e.nodeType===b.COMMENT_NODE||e.nodeType===b.PROCESSING_INSTRUCTION_NODE)}function P(e){return e&&e.nodeType===b.DOCUMENT_TYPE_NODE}function j(e){return e&&e.nodeType===b.ELEMENT_NODE}function I(e){return e&&e.nodeType===b.TEXT_NODE}function A(e,t){var i=e.childNodes||[];if(oe(i,j)||P(t))return!1;var n=oe(i,P);return!(t&&n&&i.indexOf(n)>i.indexOf(t))}function M(e,t){function i(e){return j(e)&&e!==t}var n=e.childNodes||[];if(oe(n,i))return!1;var r=oe(n,P);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function D(e,t,i){if(!C(e))throw new d(xe,"Unexpected parent node type "+e.nodeType);if(i&&i.parentNode!==e)throw new d(Ee,"child not in parent");if(!O(t)||P(t)&&e.nodeType!==b.DOCUMENT_NODE)throw new d(xe,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function L(e,t,i){var n=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===b.DOCUMENT_FRAGMENT_NODE){var a=r.filter(j);if(a.length>1||oe(r,I))throw new d(xe,"More than one element or text in fragment");if(1===a.length&&!A(e,i))throw new d(xe,"Element in fragment can not be inserted before doctype")}if(j(t)&&!A(e,i))throw new d(xe,"Only one element can be added and only after doctype");if(P(t)){if(oe(n,P))throw new d(xe,"Only one doctype is allowed");var s=oe(n,j);if(i&&n.indexOf(s)<n.indexOf(i))throw new d(xe,"Doctype can only be inserted before an element");if(!i&&s)throw new d(xe,"Doctype can not be appended since element is present")}}function N(e,t,i){var n=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===b.DOCUMENT_FRAGMENT_NODE){var a=r.filter(j);if(a.length>1||oe(r,I))throw new d(xe,"More than one element or text in fragment");if(1===a.length&&!M(e,i))throw new d(xe,"Element in fragment can not be inserted before doctype")}if(j(t)&&!M(e,i))throw new d(xe,"Only one element can be added and only after doctype");if(P(t)){if(oe(n,function(e){return P(e)&&e!==i}))throw new d(xe,"Only one doctype is allowed");var s=oe(n,j);if(i&&n.indexOf(s)<n.indexOf(i))throw new d(xe,"Doctype can only be inserted before an element")}}function R(e,t,i,n){D(e,t,i),e.nodeType===b.DOCUMENT_NODE&&(n||L)(e,t,i);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===we){var a=t.firstChild;if(null==a)return t;var s=t.lastChild}else a=s=t;var o=i?i.previousSibling:e.lastChild;a.previousSibling=o,s.nextSibling=i,o?o.nextSibling=a:e.firstChild=a,null==i?e.lastChild=s:i.previousSibling=s;do{a.parentNode=e}while(a!==s&&(a=a.nextSibling));return E(e.ownerDocument||e,e),t.nodeType==we&&(t.firstChild=t.lastChild=null),t}function B(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,E(e.ownerDocument,e,t),t}function z(){this._nsMap={}}function U(){}function F(){}function H(){}function V(){}function q(){}function G(){}function W(){}function X(){}function $(){}function Y(){}function K(){}function Q(){}function J(e,t){var i=[],n=9==this.nodeType&&this.documentElement||this,r=n.prefix,a=n.namespaceURI;if(a&&null==r){var r=n.lookupPrefix(a);if(null==r)var s=[{namespace:a,prefix:null}]}return te(this,i,e,t,s),i.join("")}function Z(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===n&&r===le.XML||r===le.XMLNS)return!1;for(var a=i.length;a--;){var s=i[a];if(s.prefix===n)return s.namespace!==r}return!0}function ee(e,t,i){e.push(" ",t,'="',i.replace(/[<>&"\t\n\r]/g,w),'"')}function te(e,t,i,n,r){if(r||(r=[]),n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case de:var a=e.attributes,s=a.length,o=e.firstChild,l=e.tagName;i=le.isHTML(e.namespaceURI)||i;var u=l;if(!i&&!e.prefix&&e.namespaceURI){for(var d,c=0;c<a.length;c++)if("xmlns"===a.item(c).name){d=a.item(c).value;break}if(!d)for(var p=r.length-1;p>=0;p--){var h=r[p];if(""===h.prefix&&h.namespace===e.namespaceURI){d=h.namespace;break}}if(d!==e.namespaceURI)for(var p=r.length-1;p>=0;p--){var h=r[p];if(h.namespace===e.namespaceURI){h.prefix&&(u=h.prefix+":"+l);break}}}t.push("<",u);for(var f=0;f<s;f++){var v=a.item(f);"xmlns"==v.prefix?r.push({prefix:v.localName,namespace:v.value}):"xmlns"==v.nodeName&&r.push({prefix:"",namespace:v.value})}for(var f=0;f<s;f++){var v=a.item(f);if(Z(v,i,r)){var m=v.prefix||"",g=v.namespaceURI;ee(t,m?"xmlns:"+m:"xmlns",g),r.push({prefix:m,namespace:g})}te(v,t,i,n,r)}if(l===u&&Z(e,i,r)){var m=e.prefix||"",g=e.namespaceURI;ee(t,m?"xmlns:"+m:"xmlns",g),r.push({prefix:m,namespace:g})}if(o||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){if(t.push(">"),i&&/^script$/i.test(l))for(;o;)o.data?t.push(o.data):te(o,t,i,n,r.slice()),o=o.nextSibling;else for(;o;)te(o,t,i,n,r.slice()),o=o.nextSibling;t.push("</",u,">")}else t.push("/>");return;case ye:case we:for(var o=e.firstChild;o;)te(o,t,i,n,r.slice()),o=o.nextSibling;return;case ce:return ee(t,e.name,e.value);case pe:return t.push(e.data.replace(/[<&>]/g,w));case he:return t.push("<![CDATA[",e.data,"]]>");case ge:return t.push("\x3c!--",e.data,"--\x3e");case be:var y=e.publicId,b=e.systemId;if(t.push("<!DOCTYPE ",e.name),y)t.push(" PUBLIC ",y),b&&"."!=b&&t.push(" ",b),t.push(">");else if(b&&"."!=b)t.push(" SYSTEM ",b,">");else{var T=e.internalSubset;T&&t.push(" [",T,"]"),t.push(">")}return;case me:return t.push("<?",e.target," ",e.data,"?>");case fe:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ie(e,t,i){var n;switch(t.nodeType){case de:n=t.cloneNode(!1),n.ownerDocument=e;case we:break;case ce:i=!0}if(n||(n=t.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,i)for(var r=t.firstChild;r;)n.appendChild(ie(e,r,i)),r=r.nextSibling;return n}function ne(e,t,i){var n=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=t[r];"object"!=(void 0===a?"undefined":ae(a))&&a!=n[r]&&(n[r]=a)}switch(t.childNodes&&(n.childNodes=new c),n.ownerDocument=e,n.nodeType){case de:var s=t.attributes,o=n.attributes=new f,l=s.length;o._ownerElement=n;for(var u=0;u<l;u++)n.setAttributeNode(ne(e,s.item(u),!0));break;case ce:i=!0}if(i)for(var d=t.firstChild;d;)n.appendChild(ne(e,d,i)),d=d.nextSibling;return n}function re(e,t,i){e[t]=i}var ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se=i(8),oe=se.find,le=se.NAMESPACE,ue={},de=ue.ELEMENT_NODE=1,ce=ue.ATTRIBUTE_NODE=2,pe=ue.TEXT_NODE=3,he=ue.CDATA_SECTION_NODE=4,fe=ue.ENTITY_REFERENCE_NODE=5,ve=ue.ENTITY_NODE=6,me=ue.PROCESSING_INSTRUCTION_NODE=7,ge=ue.COMMENT_NODE=8,ye=ue.DOCUMENT_NODE=9,be=ue.DOCUMENT_TYPE_NODE=10,we=ue.DOCUMENT_FRAGMENT_NODE=11,Te=ue.NOTATION_NODE=12,_e={},Se={},xe=(_e.INDEX_SIZE_ERR=(Se[1]="Index size error",1),_e.DOMSTRING_SIZE_ERR=(Se[2]="DOMString size error",2),_e.HIERARCHY_REQUEST_ERR=(Se[3]="Hierarchy request error",3)),Ee=(_e.WRONG_DOCUMENT_ERR=(Se[4]="Wrong document",4),_e.INVALID_CHARACTER_ERR=(Se[5]="Invalid character",5),_e.NO_DATA_ALLOWED_ERR=(Se[6]="No data allowed",6),_e.NO_MODIFICATION_ALLOWED_ERR=(Se[7]="No modification allowed",7),_e.NOT_FOUND_ERR=(Se[8]="Not found",8)),ke=(_e.NOT_SUPPORTED_ERR=(Se[9]="Not supported",9),_e.INUSE_ATTRIBUTE_ERR=(Se[10]="Attribute in use",10));_e.INVALID_STATE_ERR=(Se[11]="Invalid state",11),_e.SYNTAX_ERR=(Se[12]="Syntax error",12),_e.INVALID_MODIFICATION_ERR=(Se[13]="Invalid modification",13),_e.NAMESPACE_ERR=(Se[14]="Invalid namespace",14),_e.INVALID_ACCESS_ERR=(Se[15]="Invalid access",15);d.prototype=Error.prototype,l(_e,d),c.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)te(this[n],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)}},p.prototype.item=function(e){return h(this),this[e]},u(p,c),f.prototype={length:0,item:c.prototype.item,getNamedItem:function(e){for(var t=this.length;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 d(ke);var i=this.getNamedItem(e.nodeName);return m(this._ownerElement,this,e,i),i},setNamedItemNS:function(e){var t,i=e.ownerElement;if(i&&i!=this._ownerElement)throw new d(ke);return t=this.getNamedItemNS(e.namespaceURI,e.localName),m(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return g(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var i=this.getNamedItemNS(e,t);return g(this._ownerElement,this,i),i},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var n=this[i];if(n.localName==t&&n.namespaceURI==e)return n}return null}},y.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var n=new _;if(n.implementation=this,n.childNodes=new c,n.doctype=i||null,i&&n.appendChild(i),t){var r=n.createElementNS(e,t);n.appendChild(r)}return n},createDocumentType:function(e,t,i){var n=new G;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=i||"",n}},b.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 R(this,e,t)},replaceChild:function(e,t){R(this,e,t,N),t&&this.removeChild(t)},removeChild:function(e){return k(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return ne(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==pe&&e.nodeType==pe?(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){for(var t=this;t;){var i=t._nsMap;if(i)for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)&&i[n]===e)return n;t=t.nodeType==ce?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&Object.prototype.hasOwnProperty.call(i,e))return i[e];t=t.nodeType==ce?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},l(ue,b),l(ue,b.prototype),_.prototype={nodeName:"#document",nodeType:ye,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==we){for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e}return R(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===de&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),k(this,e)},replaceChild:function(e,t){R(this,e,t,N),e.ownerDocument=this,t&&this.removeChild(t),j(e)&&(this.documentElement=e)},importNode:function(e,t){return ie(this,e,t)},getElementById:function(e){var t=null;return T(this.documentElement,function(i){if(i.nodeType==de&&i.getAttribute("id")==e)return t=i,!0}),t},getElementsByClassName:function(e){var t=s(e);return new p(this,function(i){var n=[];return t.length>0&&T(i.documentElement,function(r){if(r!==i&&r.nodeType===de){var a=r.getAttribute("class");if(a){var l=e===a;if(!l){var u=s(a);l=t.every(o(u))}l&&n.push(r)}}}),n})},createElement:function(e){var t=new z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new c,(t.attributes=new f)._ownerElement=t,t},createDocumentFragment:function(){var e=new Y;return e.ownerDocument=this,e.childNodes=new c,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new K;return i.ownerDocument=this,i.tagName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new U;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new $;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new z,n=t.split(":"),r=i.attributes=new f;return i.childNodes=new c,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i,i},createAttributeNS:function(e,t){var i=new U,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},u(_,b),z.prototype={nodeType:de,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===we?this.insertBefore(e,null):B(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 n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+i,this.setAttributeNode(n)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new p(this,function(t){var i=[];return T(t,function(n){n===t||n.nodeType!=de||"*"!==e&&n.tagName!=e||i.push(n)}),i})},getElementsByTagNameNS:function(e,t){return new p(this,function(i){var n=[];return T(i,function(r){r===i||r.nodeType!==de||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||n.push(r)}),n})}},_.prototype.getElementsByTagName=z.prototype.getElementsByTagName,_.prototype.getElementsByTagNameNS=z.prototype.getElementsByTagNameNS,u(z,b),U.prototype.nodeType=ce,u(U,b),F.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(Se[xe])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){i=this.data.substring(0,e)+i+this.data.substring(e+t),this.nodeValue=this.data=i,this.length=i.length}},u(F,b),H.prototype={nodeName:"#text",nodeType:pe,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 n=this.ownerDocument.createTextNode(i);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},u(H,F),V.prototype={nodeName:"#comment",nodeType:ge},u(V,F),q.prototype={nodeName:"#cdata-section",nodeType:he},u(q,F),G.prototype.nodeType=be,u(G,b),W.prototype.nodeType=Te,u(W,b),X.prototype.nodeType=ve,u(X,b),$.prototype.nodeType=fe,u($,b),Y.prototype.nodeName="#document-fragment",Y.prototype.nodeType=we,u(Y,b),K.prototype.nodeType=me,u(K,b),Q.prototype.serializeToString=function(e,t,i){return J.call(e,t,i)},b.prototype.toString=J;try{if(Object.defineProperty){var Ce=function e(t){switch(t.nodeType){case de:case we:var i=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&i.push(e(t)),t=t.nextSibling;return i.join("");default:return t.nodeValue}};Object.defineProperty(p.prototype,"length",{get:function(){return h(this),this.$$length}}),Object.defineProperty(b.prototype,"textContent",{get:function(){return Ce(this)},set:function(e){switch(this.nodeType){case de:case we:for(;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}}}),re=function(e,t,i){e["$$"+t]=i}}}catch(e){}t.DocumentType=G,t.DOMException=d,t.DOMImplementation=y,t.Element=z,t.Node=b,t.NodeList=c,t.XMLSerializer=Q},function(e,t,i){"use strict";i.d(t,"a",function(){return s});var n=i(5),r=Object(n.k)([73,68,51]),a=function(e,t){void 0===t&&(t=0),e=Object(n.k)(e);var i=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?r+20:r+10},s=function e(t,i){return void 0===i&&(i=0),t=Object(n.k)(t),t.length-i<10||!Object(n.a)(t,r,{offset:i})?i:(i+=a(t,i),e(t,i))}},function(e,t,i){"use strict";i.d(t,"a",function(){return r}),i.d(t,"b",function(){return a}),i.d(t,"c",function(){return s});var n=i(5),r=function(e){var t="",i=e[1]>>>3,r=31&e[1],a=e[2]>>>7,s=(64&e[2])>>6,o=(32&e[2])>>5,l=(16&e[2])>>4,u=(8&e[2])>>3,d=(4&e[2])>>2,c=3&e[2];t+=i+"."+Object(n.g)(r,2,"0"),0===a?t+="M":1===a&&(t+="H");var p;return p=2===i&&s?o?12:10:s?10:8,t+="."+Object(n.g)(p,2,"0"),t+="."+l,t+="."+u+d+c},a=function(e){return""+Object(n.j)(e[1])+Object(n.j)(252&e[2])+Object(n.j)(e[3])},s=function(e){var t="",i=e[1]>>6,r=31&e[1],a=(32&e[1])>>5,s=e.subarray(2,6),o=e.subarray(6,12),l=e[12];1===i?t+="A":2===i?t+="B":3===i&&(t+="C"),t+=r+".";var u=parseInt(Object(n.i)(s).split("").reverse().join(""),2);u>255&&(u=parseInt(Object(n.i)(s),2)),t+=u.toString(16)+".",t+=0===a?"L":"H",t+=l;for(var d="",c=0;c<o.length;c++){var p=o[c];p&&(d&&(d+="."),d+=p.toString(16))}return d&&(t+="."+d),t}},function(e,t,i){var n=i(108);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("2480945a",n,!0,{})},function(e,t,i){var n=i(109);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("43883a3c",n,!0,{})},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),n=0;n<i.length;n++)i[n]=arguments[n];return e.apply(t,i)}}},function(e,t,i){"use strict";function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var r=i(1);e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(r.isURLSearchParams(t))a=t.toString();else{var s=[];r.forEach(t,function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))}))}),a=s.join("&")}if(a){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";(function(t){function n(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var r=i(1),a=i(119),s={"Content-Type":"application/x-www-form-urlencoded"},o={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=i(36):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(e=i(36)),e}(),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(n(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(n(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};o.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){o.headers[e]={}}),r.forEach(["post","put","patch"],function(e){o.headers[e]=r.merge(s)}),e.exports=o}).call(t,i(118))},function(e,t,i){"use strict";var n=i(1),r=i(120),a=i(122),s=i(33),o=i(123),l=i(126),u=i(127),d=i(37);e.exports=function(e){return new Promise(function(t,i){var c=e.data,p=e.headers;n.isFormData(c)&&delete p["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var f=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(f+":"+v)}var m=o(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),s(m,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?l(h.getAllResponseHeaders()):null,a=e.responseType&&"text"!==e.responseType?h.response:h.responseText,s={data:a,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};r(t,i,s),h=null}},h.onabort=function(){h&&(i(d("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){i(d("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(d(t,e,"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var g=(e.withCredentials||u(m))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;g&&(p[e.xsrfHeaderName]=g)}if("setRequestHeader"in h&&n.forEach(p,function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete p[t]:h.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){h&&(h.abort(),i(e),h=null)}),c||(c=null),h.send(c)})}},function(e,t,i){"use strict";var n=i(121);e.exports=function(e,t,i,r,a){var s=new Error(e);return n(s,t,i,r,a)}},function(e,t,i){"use strict";var n=i(1);e.exports=function(e,t){function i(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function r(r){n.isUndefined(t[r])?n.isUndefined(e[r])||(a[r]=i(void 0,e[r])):a[r]=i(e[r],t[r])}t=t||{};var a={},s=["url","method","data"],o=["headers","auth","proxy","params"],l=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];n.forEach(s,function(e){n.isUndefined(t[e])||(a[e]=i(void 0,t[e]))}),n.forEach(o,r),n.forEach(l,function(r){n.isUndefined(t[r])?n.isUndefined(e[r])||(a[r]=i(void 0,e[r])):a[r]=i(void 0,t[r])}),n.forEach(u,function(n){n in t?a[n]=i(e[n],t[n]):n in e&&(a[n]=i(void 0,e[n]))});var d=s.concat(o).concat(l).concat(u),c=Object.keys(e).concat(Object.keys(t)).filter(function(e){return-1===d.indexOf(e)});return n.forEach(c,r),a}},function(e,t,i){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t,i){e.exports=i.p+"font/iconfont.eot"},function(e,t,i){"use strict";var n=i(42);t.a=n.a},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(43),o=(i.n(s),i(10)),l=i.n(o),u=i(11),d=(i.n(u),i(6));t.a={name:"banner",mixins:[d.a],components:{swiper:s.swiper,swiperSlide:s.swiperSlide},data:function(){return{hasPostList:[],swiperIndex:0,swiperTimer:null,swiperPcStyle:1,option:{disableOnInteraction:!1,centeredSlides:!0,loop:!1,loopPreventsSlide:!0,observer:!0,observeParents:!0,observeSlideChildren:!0},swiperId:Math.floor(1e4*Math.random()),bannerHeight:"100%",bannerBgHeight:null}},watch:{pageDataObj:{handler:function(){this.pageDataObj&&this.pageDataObj.list&&this.pageDataObj.list.length>0&&this.getProportion()},deep:!0,immediate:!0}},mounted:function(){var e=this;window.addEventListener("scroll",function(){e.handleScroll()}),this.handleScroll()},methods:{exposurePost:function(e){this.$emit("exposurePost",e)},handleScroll:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l,u;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs["swiper-main"+e.swiperId],i&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&(u=e.$refs["hotSport"+e.swiperIndex])&&u[0]&&u[0].swiperInitPost());case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},swiperAutoplay:function(){this.pageDataObj.list[this.swiper.realIndex].videoId&&this.$refs["hotSport"+this.swiper.realIndex][0].playVideo(),this.changeSwiper()},stopOtherVideo:function(){},stopSwiperAuto:function(){this.swiper&&this.swiper.autoplay.stop()},startSwiperAuto:function(){this.swiper&&this.swiper.autoplay.start()},getProportion:function(e){var t=this;this.$nextTick(function(){var e=t.$refs.swiperSection.clientWidth,i=0;if(t.pageDataObj.list.forEach(function(t){t.height*e/t.width>i&&(i=t.height*e/t.width)}),t.pageDataObj.bgStyle&&1===t.pageDataObj.bgStyle.status&&t.pageDataObj.bgStyle.picList.length>0&&t.pageDataObj.bgStyle.picList[0].height){var n=t.pageDataObj.bgStyle.picList[0].height*e/t.pageDataObj.bgStyle.picList[0].width;t.bannerBgHeight=n+"px",i=i>n?i:n}t.bannerHeight=i>0?i+"px":"100%",t.updateSwiper()})},updateSwiper:function(){var e=this;if(this.pageDataObj&&this.pageDataObj.list&&this.pageDataObj.list.length>0){var t=this;this.$nextTick(function(){e.swiper&&(e.swiper.destroy(!0,!0),e.swiper=null),e.option.autoplay=!!e.pageDataObj.autoPlay&&(e.pageDataObj.list.length>1&&{delay:1e3*e.pageDataObj.interval,disableOnInteraction:!1}),"pc"===e.curSystem?(e.option.navigation={prevEl:".swiper-main"+e.swiperId+" .swiper-button-left",nextEl:".swiper-main"+e.swiperId+" .swiper-button-right"},e.option.pagination={el:".swiper-main"+e.swiperId+" .swiper-pagination",clickable:!0}):(2===e.pageDataObj.styleType&&(e.option.slidesPerView=1.8,e.option.spaceBetween="10%",e.option.loopAdditionalSlides=1,e.option.loopedSlides=3,e.option.slidePrevClass="swiper-opacity",e.option.slideNextClass="swiper-opacity"),2!==e.pageDataObj.styleType&&(e.option.pagination={el:".swiper-main"+e.swiperId+" .swiper-pagination",type:"bullets",renderBullet:function(e,i){return'<span class="'+i+' swiper-pagination-bullet-mob" style="width: '+100/t.pageDataObj.list.length+'%">'+(e+1)+"</span>"}})),e.option.on={autoplay:function(){t.swiperAutoplay()},slideChange:function(){t.changeSwiper(),t.swiper.realIndex&&(t.isStart=!0),t.isStart&&(t.swiperIndex=t.swiper.realIndex,t.handleScroll())}},e.swiper=new l.a(".swiper-container"+e.swiperId,e.option),e.swiper.slideTo(1,0,!1),e.stopOtherVideo()})}else this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)},changeSwiper:function(){var e=this;this.$nextTick(function(){0===e.swiper.activeIndex&&e.swiper.slideTo(e.pageDataObj.list.length-2,0,!1),e.swiper.activeIndex===e.pageDataObj.list.length-1&&e.swiper.slideTo(1,0,!1)})}}}},function(e,t,i){(function(e){var n,r,a,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(o,l){"object"==s(t)&&"object"==s(e)?e.exports=l(i(142)):(r=[i(143)],n=l,void 0!==(a="function"==typeof n?n.apply(t,r):n)&&(e.exports=a))}(0,function(e){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(t,i){t.exports=e},function(e,t){e.exports=function(e,t,i,n,r,a){var o,l=e=e||{},u=s(e.default);"object"!==u&&"function"!==u||(o=e,l=e.default);var d="function"==typeof l?l.options:l;t&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0),i&&(d.functional=!0),r&&(d._scopeId=r);var c;if(a?(c=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},d._ssrRegister=c):n&&(c=n),c){var p=d.functional,h=p?d.render:d.beforeCreate;p?(d._injectStyles=c,d.render=function(e,t){return c.call(t),h(e,t)}):d.beforeCreate=h?[].concat(h,c):[c]}return{esModule:o,exports:l,options:d}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(5),r=i.n(n),a=i(8),s=i(1),o=s(r.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(6),r=i.n(n),a=i(7),s=i(1),o=s(r.a,a.a,!1,null,null,null);t.default=o.exports},function(e,t,i){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.swiperSlide=t.swiper=t.Swiper=void 0;var r=i(0),a=n(r),s=i(2),o=n(s),l=i(3),u=n(l),d=window.Swiper||a.default,c=u.default,p=o.default,h=function(e,t){t&&(u.default.props.globalOptions.default=function(){return t}),e.component(u.default.name,u.default),e.component(o.default.name,o.default)},f={Swiper:d,swiper:c,swiperSlide:p,install:h};t.default=f,t.Swiper=d,t.swiper=c,t.swiperSlide=p,t.install=h},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"swiper-slide",data:function(){return{slideClass:"swiper-slide"}},ready:function(){this.update()},mounted:function(){this.update(),this.$parent&&this.$parent.options&&this.$parent.options.slideClass&&(this.slideClass=this.$parent.options.slideClass)},updated:function(){this.update()},attached:function(){this.update()},methods:{update:function(){this.$parent&&this.$parent.swiper&&this.$parent.update()}}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),r=function(e){return e&&e.__esModule?e:{default:e}}(n),a=window.Swiper||r.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}return i},writable:!0,configurable:!0});var s=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"];t.default={name:"swiper",props:{options:{type:Object,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{swiper:null,classes:{wrapperClass:"swiper-wrapper"}}},ready:function(){this.swiper||this.mountInstance()},mounted:function(){if(!this.swiper){var e=!1;for(var t in this.classes)this.classes.hasOwnProperty(t)&&this.options[t]&&(e=!0,this.classes[t]=this.options[t]);e?this.$nextTick(this.mountInstance):this.mountInstance()}},activated:function(){this.update()},updated:function(){this.update()},beforeDestroy:function(){this.$nextTick(function(){this.swiper&&(this.swiper.destroy&&this.swiper.destroy(),delete this.swiper)})},methods:{update:function(){this.swiper&&(this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update())},mountInstance:function(){var e=Object.assign({},this.globalOptions,this.options);this.swiper=new a(this.$el,e),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var e=this,t=this;s.forEach(function(i){e.swiper.on(i,function(){t.$emit.apply(t,[i].concat(Array.prototype.slice.call(arguments))),t.$emit.apply(t,[i.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))})})}}}},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"swiper-container"},[e._t("parallax-bg"),e._v(" "),i("div",{class:e.classes.wrapperClass},[e._t("default")],2),e._v(" "),e._t("pagination"),e._v(" "),e._t("button-prev"),e._v(" "),e._t("button-next"),e._v(" "),e._t("scrollbar")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.slideClass},[e._t("default")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a}])})}).call(t,i(12)(e))},function(e,t,i){"use strict";function n(e){i(148)}var r=i(45),a=i(150),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-2bf40517",null);t.a=l.exports},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(6),o=i(22),l=i(30),u=(i.n(l),i(31));i.n(u);t.a={name:"cmsVideo",mixins:[s.a],components:{videoJs:o.a},data:function(){return{isDataPost:!1,comTitleWidth:0,videoHeight:0,swiperTimer:null}},mounted:function(){var e=this;this.checkDomChange(),window.addEventListener("scroll",function(){e.handleScroll()}),this.handleScroll()},methods:{exposurePost:function(e){this.$emit("exposurePost",e)},dataPost:function(){this.isDataPost||(this.$emit("exposurePost",{dataset:this.pageDataObj,type:"video"}),this.isDataPost=!0)},handleScroll:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs.videoRef,i&&!e.pageDataObj.isVideoHasHot&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&e.dataPost());case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},checkDomChange:function(){var e=this;this.comTitleWidth>=0&&this.$nextTick(function(){e.comTitleWidth=e.$refs.videoRef?e.$refs.videoRef.clientWidth:""})},getVideoHeight:function(){if(1!==this.pageDataObj.isVideoHasHot){var e=this,t=e.pageDataObj;this.$nextTick(function(){e.myPlayer=Object(o.a)("my-video"+t.uniqueId,{controls:!t.hasOwnProperty("controls")||!t.controls,muted:!!t.autoPlay||(!t.hasOwnProperty("mute")||t.mute),reload:"auto",loop:t.loop,autoPlay:t.autoPlay,sources:[{src:t.videoUrl,type:"video/mp4"}],poster:t.coverPic},function(){t.autoPlay&&this.play()})})}var i=this.$refs.videoRef?this.$refs.videoRef.clientWidth:"";this.comTitleWidth>0&&(this.videoHeight=i*this.pageDataObj.height/this.pageDataObj.width)}},beforeDestroy:function(){this.myPlayer&&this.myPlayer.dispose()}}},function(e,t,i){"use strict";var n=i(47);t.a=n.a},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(6),o=i(16),l=i(43),u=(i.n(l),i(10)),d=i.n(u),c=i(11);i.n(c);t.a={name:"cmsProduct",mixins:[s.a],components:{swiper:l.swiper,swiperSlide:l.swiperSlide},data:function(){return{readyPostList:[],hasPostList:[],swiperIndex:0,swiperTimer:null,swiperOption:{slidesPerView:2},service:new o.a,goodsList:[],showNavigation:!1,productMoreHeight:0,swiperId:Math.round(1e3*Math.random()),option:{observer:!0,observeParents:!0,observeSlideChildren:!0},moreHeight:100,tiemID:""}},mounted:function(){var e=this;window.addEventListener("scroll",function(){e.handleScroll()}),this.handleScroll()},watch:{pageDataObj:{handler:function(){var e=this;this.pageDataObj&&this.pageDataObj.productShowList&&this.pageDataObj.productShowList.length>0?this.$nextTick(function(){if(e.swiper)"pc"===e.curSystem?(e.swiper.params.slidesPerView=e.pageDataObj.lineShowNum+.1,e.swiper.params.slidesPerGroup=e.pageDataObj.lineShowNum):e.swiper.params.slidesPerView=2.1,e.swiper.update();else{"pc"===e.curSystem?(e.option.slidesPerView=e.pageDataObj.lineShowNum+.1,e.option.navigation={nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},e.option.slidesPerGroup=e.pageDataObj.lineShowNum):(e.option.slidesPerView=2.1,e.option.scrollbar={el:".swiper-scrollbar",draggable:!0});var t=e;e.option.on={slideChange:function(i){if(e.swiper.realIndex&&(t.isStart=!0),t.isStart){t.swiperIndex=t.swiper.snapIndex;var n="pc"===t.curSystem?t.pageDataObj&&t.pageDataObj.lineShowNum?t.pageDataObj.lineShowNum:0:2,r=n*(t.swiperIndex+1)>t.pageDataObj.productShowList.length?t.pageDataObj.productShowList.length:n*(t.swiperIndex+1),a=t.pageDataObj.productShowList.map(function(e,t){return e.position=t,e});a=a.slice(r-n,r),t.readyPostList=JSON.parse(JSON.stringify(a)),t.dataPost(t.readyPostList)}}},e.swiper=new d.a(".swiper-containerProduct"+e.swiperId,e.option)}}):this.swiper&&(this.swiper.destroy(!0,!0),this.swiper=null)},deep:!0,immediate:!0}},computed:{},methods:{dataPost:function(e){var t=this;if(e.length>0){var i=this.$refs["swiperList"+this.swiperId];if(i){var n=document.documentElement.clientHeight,r=i.getBoundingClientRect();n-(r.top||0)-(r.height||0)>=0&&e.forEach(function(e){t.hasPostList.find(function(t){return e.position===t.position})||(t.$emit("exposurePost",{dataset:e,type:"productList"}),t.hasPostList.push(e))})}}},handleScroll:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l,u,d,c;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs["swiperList"+e.swiperId],i&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&(u="pc"===e.curSystem?e.pageDataObj&&e.pageDataObj.lineShowNum?e.pageDataObj.lineShowNum:0:2,d=u*(e.swiperIndex+1)>e.pageDataObj.productShowList.length?e.pageDataObj.productShowList.length:u*(e.swiperIndex+1),c=e.pageDataObj.productShowList.map(function(e,t){return e.position=t,e}),c=c.slice(d-u,d),e.readyPostList=JSON.parse(JSON.stringify(c)),e.dataPost(e.readyPostList)));case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},swiperHight:function(){clearTimeout(this.tiemID);var e=this;this.tiemID=setTimeout(function(){e.moreHeight=e.swiper?e.swiper.height:100},500)},getGoodsInfo:function(){if(this.pageDataObj.productShowList&&this.pageDataObj.productShowList.length>=0)return void(this.goodsList=this.pageDataObj.productShowList.map(function(e,t){return e.position=t,e}));var e={};switch(this.pageDataObj.goodsType){case 1:e={pageNum:1,pageSize:this.pageDataObj.goodsCodeList.length,sortRuleId:"",filterRuleList:[],itemCodeList:this.pageDataObj.goodsCodeList};break;case 2:e={pageNum:1,pageSize:this.pageDataObj.goodsShowNum,sortRuleId:this.pageDataObj.goodsSortType,filterRuleList:[],categoryParam:{categoryGroupCode:this.pageDataObj.categoryGroupCode,categoryCodeList:[this.pageDataObj.goodsCategoryId]}};break;case 3:e={pageNum:1,pageSize:this.pageDataObj.goodsShowNum,sortField:this.pageDataObj.goodsSortType}}this.getGoodsList(e)},getGoodsList:function(e){var t=this;this.service[3===this.pageDataObj.goodsType?"getSortProductInfo":"getProductInfo"](this.envUrl,e).then(function(e){e&&(t.goodsList=e.list.map(function(e,t){return e.position=t,e}))})},changeOption:function(){}}}},function(e,t,i){"use strict";var n=i(158);t.a={name:"cmsBusiness",mixins:[n.a],data:function(){return{decorationList:[]}},methods:{getDecorationList:function(){},jumpLink:function(e){}}}},function(e,t,i){"use strict";function n(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}var r=i(7),a=i.n(r),s=i(6),o=i(9);t.a={name:"picText",mixins:[s.a],data:function(){return{isDataPost:!1,swiperTimer:null,background:{},hasReport:!1}},watch:{pageDataObj:{handler:function(e){var t=this;if(e.bgStyle){var i={1:{backgroundImage:"url('"+(this.pageDataObj.bgStyle.picList&&this.pageDataObj.bgStyle.picList.length>0?this.pageDataObj.bgStyle.picList[0].resourcePath||"":"")+"')",backgroundSize:"100%",backgroundRepeat:"no-repeat",backgroundPosition:"center"},2:{backgroundColor:this.pageDataObj.bgStyle.bgColor}};this.background=i[this.pageDataObj.bgStyle.type],this.isReportCms&&this.$nextTick(function(){var e=void 0;window.addEventListener("scroll",function(){t.isFixed&&(t.isFixed=!1),e&&clearTimeout(e),e=setTimeout(function(){t.handleScroll()},200)}),t.handleScroll()})}},deep:!0,immediate:!0}},mounted:function(){var e=this;window.addEventListener("scroll",function(){e.handleScrollGio()}),this.handleScrollGio()},methods:{dataPost:function(){this.isDataPost||(this.$emit("exposurePost",{dataset:this.pageDataObj,type:"picText"}),this.isDataPost=!0)},handleScrollGio:function(){var e=this;this.$nextTick(n(a.a.mark(function t(){var i,n,r,s,o,l;return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.sleep(100);case 2:i=e.$refs[e.pageDataObj.uniqueId],i&&(n=document.documentElement.clientHeight,r=i.getBoundingClientRect(),s=r.top||0,o=r.height||0,(l=n-s-o)>=0&&e.dataPost());case 4:case"end":return t.stop()}},t,e)})))},sleep:function(e){var t=this;return new Promise(function(){var i=n(a.a.mark(function i(n){return a.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:clearTimeout(t.swiperTimer),t.swiperTimer=setTimeout(function(){clearTimeout(t.swiperTimer),n("success")},e);case 2:case"end":return i.stop()}},i,t)}));return function(e){return i.apply(this,arguments)}}())},handleScroll:function(){if(!this.hasReport){var e=this.$refs[""+this.pageDataObj.uniqueId].getBoundingClientRect();e.top<=window.innerHeight||e.bottom>0?(this.isFixed=!0,this.hasReport=!0,Object(o.b)({uniqueId:this.pageDataObj.uniqueId,uniqueName:this.pageDataObj.uniqueName,componentMethodType:0,popData:{brand:1===this.pathType?"defaultPath":this.brand},materialId:"",materialName:"",refererPagePath:this.refererPagePath,componentType:6,brand:this.brand,event:"bannerShow"},this.envUrl)):this.isFixed=!1}}}}},function(e,t,i){"use strict";function n(e){i(159)}var r=i(51),a=i(162),s=i(3),o=n,l=s(r.a,a.a,!1,o,null,null);t.a=l.exports},function(e,t,i){"use strict";var n=i(16),r=i(9);t.a={props:{envUrl:{type:String,default:"https://mpsit40.ibaiqiu.com/"},language:{type:String,default:""}},watch:{language:{handler:function(e){this.getInfo()},deep:!0,immediate:!0}},data:function(){return{service:new n.a}},mounted:function(){this.getInfo()},methods:{navigatePage:function(e){if(e){Object.assign(e.content,{brand:1===e.pathType?"defaultPath":e.brand});Object(r.c)(e.content);1===e.tabType?window.location.href=e.path:window.open(e.path)}},getInfo:function(){var e=this;this.service.getNavigate({url:this.envUrl+"service-zuul/decoration/selectTerminalDecorationPageListByTerminalCode",language:this.language}).then(function(t){var i=JSON.parse(t.find(function(e){return"cmsNav"===e.pageCode}).pageConfig)||[];e.$emit("getNavigateData",i)})}}}},function(e,t,i){"use strict";var n=i(6);t.a={name:"selfComponents",mixins:[n.a]}},function(e,t,i){"use strict";var n=i(49);t.a=n.a},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(55),r=i(139),a=i(44),s=i(151),o=i(155),l=i(165),u=i(169),d=i(50);i.d(t,"picNav",function(){return n.a}),i.d(t,"banner",function(){return r.a}),i.d(t,"cmsProduct",function(){return s.a}),i.d(t,"cmsVideo",function(){return a.a}),i.d(t,"cmsBusiness",function(){return o.a}),i.d(t,"selfComponents",function(){return l.a}),i.d(t,"picText",function(){return u.a}),i.d(t,"cmsNavigate",function(){return d.a});var c=[n.a,r.a,a.a,s.a,o.a,l.a,u.a,d.a],p=function e(t){e.installed||c.map(function(e){return t.component(e.name,e)})};t.default={install:p}},function(e,t,i){"use strict";function n(e){i(56)}var r=i(18),a=i(138),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-abf9a682",null);t.a=l.exports},function(e,t,i){var n=i(57);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("c0ac7070",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".warp-two[data-v-abf9a682]{width:100%;display:flex;flex-wrap:wrap}.warp-two-pc[data-v-abf9a682]{width:49%}.warp-two-pc[data-v-abf9a682]:nth-of-type(2n){margin-left:2%}.warp-two-mob[data-v-abf9a682]{width:100%}.warp-title[data-v-abf9a682]{padding:60px 0 20px;text-align:left;font-size:20px}.swiper[data-v-abf9a682]{position:relative}.swiper[data-v-abf9a682] .swiper-wrapper{cursor:pointer}[data-v-abf9a682] .swiper-container-horizontal>.swiper-scrollbar{width:30%;left:40%;height:3px;position:relative;margin-top:20px}.cursor-pointer[data-v-abf9a682]{cursor:pointer}.load-image-d[data-v-abf9a682]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.load-image[data-v-abf9a682]{width:100px;height:100px}.swiper-container[data-v-abf9a682]{position:relative;width:100%}.swiper-container .swiper-slide[data-v-abf9a682]{color:#000;font-size:16px;text-align:center}.swiper-pagination[data-v-abf9a682]{text-align:center;width:100%;position:relative;height:3px;position:absolute;bottom:20px}.swiper-pagination[data-v-abf9a682] .swiper-pagination-bullet{width:30px;height:2px;border-radius:0;background:#fff;opacity:.48;margin:0 4px}.swiper-pagination[data-v-abf9a682] .swiper-pagination-bullet-active{background:#fff;opacity:1}.swiper-button-next[data-v-abf9a682],.swiper-button-prev[data-v-abf9a682]{width:35px;height:35px;border-radius:100%;background-size:10px;color:#fff;text-align:center;line-height:35px;background:rgba(0,0,0,.1)}.swiper-button-next[data-v-abf9a682]:hover,.swiper-button-prev[data-v-abf9a682]:hover{background:rgba(0,0,0,.3)}.swiper-slide[data-v-abf9a682]{background-repeat:no-repeat;background-size:cover;background-position:50%;background-color:#eee}.bqCmsIconfont[data-v-abf9a682]{font-family:bqCmsIconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""])},function(e,t,i){"use strict";function n(e,t){for(var i=[],n={},r=0;r<t.length;r++){var a=t[r],s=a[0],o=a[1],l=a[2],u=a[3],d={id:e+":"+r,css:o,media:l,sourceMap:u};n[s]?n[s].parts.push(d):i.push(n[s]={id:s,parts:[d]})}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1}.swiper-container-no-flexbox .swiper-slide{float:left}.swiper-container-vertical>.swiper-wrapper{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform;-webkit-box-sizing:content-box;box-sizing:content-box}.swiper-container-android .swiper-slide,.swiper-wrapper{-webkit-transform:translateZ(0);transform:translateZ(0)}.swiper-container-multirow>.swiper-wrapper{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.swiper-container-free-mode>.swiper-wrapper{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out;margin:0 auto}.swiper-slide{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;width:100%;height:100%;position:relative;-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform;transition-property:transform,-webkit-transform}.swiper-slide-invisible-blank{visibility:hidden}.swiper-container-autoheight,.swiper-container-autoheight .swiper-slide{height:auto}.swiper-container-autoheight .swiper-wrapper{-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start;-webkit-transition-property:height,-webkit-transform;transition-property:height,-webkit-transform;-o-transition-property:transform,height;transition-property:transform,height;transition-property:transform,height,-webkit-transform}.swiper-container-3d{-webkit-perspective:1200px;perspective:1200px}.swiper-container-3d .swiper-cube-shadow,.swiper-container-3d .swiper-slide,.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top,.swiper-container-3d .swiper-wrapper{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.swiper-container-3d .swiper-slide-shadow-bottom,.swiper-container-3d .swiper-slide-shadow-left,.swiper-container-3d .swiper-slide-shadow-right,.swiper-container-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-container-3d .swiper-slide-shadow-left{background-image:-webkit-gradient(linear,right top,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(right,rgba(0,0,0,.5),transparent);background-image:linear-gradient(270deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-right{background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(left,rgba(0,0,0,.5),transparent);background-image:linear-gradient(90deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-top{background-image:-webkit-gradient(linear,left bottom,left top,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(bottom,rgba(0,0,0,.5),transparent);background-image:linear-gradient(0deg,rgba(0,0,0,.5),transparent)}.swiper-container-3d .swiper-slide-shadow-bottom{background-image:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.5)),to(transparent));background-image:-webkit-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:-o-linear-gradient(top,rgba(0,0,0,.5),transparent);background-image:linear-gradient(180deg,rgba(0,0,0,.5),transparent)}.swiper-container-wp8-horizontal,.swiper-container-wp8-horizontal>.swiper-wrapper{-ms-touch-action:pan-y;touch-action:pan-y}.swiper-container-wp8-vertical,.swiper-container-wp8-vertical>.swiper-wrapper{-ms-touch-action:pan-x;touch-action:pan-x}.swiper-button-next,.swiper-button-prev{position:absolute;top:50%;width:27px;height:44px;margin-top:-22px;z-index:10;cursor:pointer;background-size:27px 44px;background-position:50%;background-repeat:no-repeat}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-prev,.swiper-container-rtl .swiper-button-next{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23007aff'/%3E%3C/svg%3E\");left:10px;right:auto}.swiper-button-next,.swiper-container-rtl .swiper-button-prev{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23007aff'/%3E%3C/svg%3E\");right:10px;left:auto}.swiper-button-prev.swiper-button-white,.swiper-container-rtl .swiper-button-next.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-white,.swiper-container-rtl .swiper-button-prev.swiper-button-white{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z' fill='%23fff'/%3E%3C/svg%3E\")}.swiper-button-prev.swiper-button-black,.swiper-container-rtl .swiper-button-next.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M0 22L22 0l2.1 2.1L4.2 22l19.9 19.9L22 44 0 22z'/%3E%3C/svg%3E\")}.swiper-button-next.swiper-button-black,.swiper-container-rtl .swiper-button-prev.swiper-button-black{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 44'%3E%3Cpath d='M27 22L5 44l-2.1-2.1L22.8 22 2.9 2.1 5 0l22 22z'/%3E%3C/svg%3E\")}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;-webkit-transition:opacity .3s;-o-transition:.3s opacity;transition:opacity .3s;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-container-horizontal>.swiper-pagination-bullets,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:10px;left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{-webkit-transform:scale(.66);-ms-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{-webkit-transform:scale(.66);-ms-transform:scale(.66);transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{-webkit-transform:scale(.33);-ms-transform:scale(.33);transform:scale(.33)}.swiper-pagination-bullet{width:8px;height:8px;display:inline-block;border-radius:100%;background:#000;opacity:.2}button.swiper-pagination-bullet{border:none;margin:0;padding:0;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet-active{opacity:1;background:#007aff}.swiper-container-vertical>.swiper-pagination-bullets{right:10px;top:50%;-webkit-transform:translate3d(0,-50%,0);transform:translate3d(0,-50%,0)}.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:6px 0;display:block}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:8px}.swiper-container-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;-webkit-transition:top .2s,-webkit-transform .2s;transition:top .2s,-webkit-transform .2s;-o-transition:.2s transform,.2s top;transition:transform .2s,top .2s;transition:transform .2s,top .2s,-webkit-transform .2s}.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 4px}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);white-space:nowrap}.swiper-container-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:left .2s,-webkit-transform .2s;transition:left .2s,-webkit-transform .2s;-o-transition:.2s transform,.2s left;transition:transform .2s,left .2s;transition:transform .2s,left .2s,-webkit-transform .2s}.swiper-container-horizontal.swiper-container-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{-webkit-transition:right .2s,-webkit-transform .2s;transition:right .2s,-webkit-transform .2s;-o-transition:.2s transform,.2s right;transition:transform .2s,right .2s;transition:transform .2s,right .2s,-webkit-transform .2s}.swiper-pagination-progressbar{background:rgba(0,0,0,.25);position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:#007aff;position:absolute;left:0;top:0;width:100%;height:100%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transform-origin:left top;-ms-transform-origin:left top;transform-origin:left top}.swiper-container-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{-webkit-transform-origin:right top;-ms-transform-origin:right top;transform-origin:right top}.swiper-container-horizontal>.swiper-pagination-progressbar,.swiper-container-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:4px;left:0;top:0}.swiper-container-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-container-vertical>.swiper-pagination-progressbar{width:4px;height:100%;left:0;top:0}.swiper-pagination-white .swiper-pagination-bullet-active{background:#fff}.swiper-pagination-progressbar.swiper-pagination-white{background:hsla(0,0%,100%,.25)}.swiper-pagination-progressbar.swiper-pagination-white .swiper-pagination-progressbar-fill{background:#fff}.swiper-pagination-black .swiper-pagination-bullet-active{background:#000}.swiper-pagination-progressbar.swiper-pagination-black{background:rgba(0,0,0,.25)}.swiper-pagination-progressbar.swiper-pagination-black .swiper-pagination-progressbar-fill{background:#000}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:10px;position:relative;-ms-touch-action:none;background:rgba(0,0,0,.1)}.swiper-container-horizontal>.swiper-scrollbar{position:absolute;left:1%;bottom:3px;z-index:50;height:5px;width:98%}.swiper-container-vertical>.swiper-scrollbar{position:absolute;right:3px;top:1%;z-index:50;width:5px;height:98%}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:rgba(0,0,0,.5);border-radius:10px;left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.swiper-slide-zoomed{cursor:move}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;-webkit-transform-origin:50%;-ms-transform-origin:50%;transform-origin:50%;-webkit-animation:swiper-preloader-spin 1s steps(12) infinite;animation:swiper-preloader-spin 1s steps(12) infinite}.swiper-lazy-preloader:after{display:block;content:\"\";width:100%;height:100%;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%236c6c6c' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\");background-position:50%;background-size:100%;background-repeat:no-repeat}.swiper-lazy-preloader-white:after{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpath id='a' stroke='%23fff' stroke-width='11' stroke-linecap='round' d='M60 7v20'/%3E%3C/defs%3E%3Cuse xlink:href='%23a' opacity='.27'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(30 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(60 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(90 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(120 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.27' transform='rotate(150 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.37' transform='rotate(180 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.46' transform='rotate(210 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.56' transform='rotate(240 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.66' transform='rotate(270 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.75' transform='rotate(300 60 60)'/%3E%3Cuse xlink:href='%23a' opacity='.85' transform='rotate(330 60 60)'/%3E%3C/svg%3E\")}@-webkit-keyframes swiper-preloader-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes swiper-preloader-spin{to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-container-fade.swiper-container-free-mode .swiper-slide{-webkit-transition-timing-function:ease-out;-o-transition-timing-function:ease-out;transition-timing-function:ease-out}.swiper-container-fade .swiper-slide{pointer-events:none;-webkit-transition-property:opacity;-o-transition-property:opacity;transition-property:opacity}.swiper-container-fade .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-fade .swiper-slide-active,.swiper-container-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube{overflow:visible}.swiper-container-cube .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0;width:100%;height:100%}.swiper-container-cube .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-cube.swiper-container-rtl .swiper-slide{-webkit-transform-origin:100% 0;-ms-transform-origin:100% 0;transform-origin:100% 0}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-cube .swiper-slide-active,.swiper-container-cube .swiper-slide-next,.swiper-container-cube .swiper-slide-next+.swiper-slide,.swiper-container-cube .swiper-slide-prev{pointer-events:auto;visibility:visible}.swiper-container-cube .swiper-slide-shadow-bottom,.swiper-container-cube .swiper-slide-shadow-left,.swiper-container-cube .swiper-slide-shadow-right,.swiper-container-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0;width:100%;height:100%;background:#000;opacity:.6;-webkit-filter:blur(50px);filter:blur(50px);z-index:0}.swiper-container-flip{overflow:visible}.swiper-container-flip .swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-container-flip .swiper-slide .swiper-slide{pointer-events:none}.swiper-container-flip .swiper-slide-active,.swiper-container-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-container-flip .swiper-slide-shadow-bottom,.swiper-container-flip .swiper-slide-shadow-left,.swiper-container-flip .swiper-slide-shadow-right,.swiper-container-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-container-coverflow .swiper-wrapper{-ms-perspective:1200px}",""])},function(e,t,i){"use strict";function n(e){i(61)}var r=i(20),a=i(63),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-4e4f16ff",null);t.a=l.exports},function(e,t,i){var n=i(62);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("754819cf",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".com-title[data-v-4e4f16ff]{width:100%}.com-title-data[data-v-4e4f16ff]{display:flex;align-items:center;justify-content:center}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"resize",rawName:"v-resize",value:e.resize,expression:"resize"}],staticClass:"com-title com-title-data"},[i("div",{staticClass:"com-title-data",style:{width:e.topWidth},attrs:{id:"resize"}},[i("div",{style:{width:e.componentWidth}},[e._t("default")],2)])])},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(65)}var r=i(21),a=i(131),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-2c1c34d0",null);t.a=l.exports},function(e,t,i){var n=i(66);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("29c2d15f",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".hot-main[data-v-2c1c34d0]{width:100%;height:100%;position:relative;overflow:hidden;font-size:0}.video-ani[data-v-2c1c34d0]{animation:optionsShow-data-v-2c1c34d0 2s linear forwards}@keyframes optionsShow-data-v-2c1c34d0{0%{opacity:0}to{opacity:1}}.hot-img[data-v-2c1c34d0],.video-js[data-v-2c1c34d0]{width:100%;height:100%}.hot-click[data-v-2c1c34d0]{position:absolute;text-align:left;z-index:100;cursor:pointer}.hot-click-img[data-v-2c1c34d0]{position:relative;max-width:100%;height:100%}.default-img[data-v-2c1c34d0]{position:absolute;opacity:1}.hover-box[data-v-2c1c34d0]{position:relative;height:100%;width:100%}.hover-img[data-v-2c1c34d0]{position:absolute;opacity:0;height:0;bottom:0;-webkit-transition:height .3s ease;transition:height .3s ease}.hover-img-trans[data-v-2c1c34d0]{opacity:1}.load-image-d[data-v-2c1c34d0]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.load-image[data-v-2c1c34d0]{width:100px;height:100px}.video-pc[data-v-2c1c34d0]{width:100%}.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-2c1c34d0]:active,.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-2c1c34d0]:focus,[data-v-2c1c34d0] .video-js:hover .vjs-big-play-button{background-color:rgba(43,51,63,.7)}.mask-hot[data-v-2c1c34d0]{position:absolute;width:100%;height:100%;bottom:0;left:0;background:hsla(0,0%,100%,.3);opacity:0;z-index:99}.mask-hot[data-v-2c1c34d0]:hover{opacity:1}.hide-controls[data-v-2c1c34d0] .vjs-control-bar{display:none}",""])},function(e,t,i){var n=function(){return this}()||Function("return this")(),r=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,a=r&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=i(68),r)n.regeneratorRuntime=a;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t,i){(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(i){"use strict";function n(e,t,i,n){var r=t&&t.prototype instanceof a?t:a,s=Object.create(r.prototype),o=new f(n||[]);return s._invoke=d(e,i,o),s}function r(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}function a(){}function s(){}function o(){}function l(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function u(e){function i(n,a,s,o){var l=r(e[n],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"===(void 0===d?"undefined":t(d))&&b.call(d,"__await")?Promise.resolve(d.__await).then(function(e){i("next",e,s,o)},function(e){i("throw",e,s,o)}):Promise.resolve(d).then(function(e){u.value=e,s(u)},o)}o(l.arg)}function n(e,t){function n(){return new Promise(function(n,r){i(e,t,n,r)})}return a=a?a.then(n,n):n()}var a;this._invoke=n}function d(e,t,i){var n=k;return function(a,s){if(n===O)throw new Error("Generator is already running");if(n===P){if("throw"===a)throw s;return m()}for(i.method=a,i.arg=s;;){var o=i.delegate;if(o){var l=c(o,i);if(l){if(l===j)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===k)throw n=P,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=O;var u=r(e,t,i);if("normal"===u.type){if(n=i.done?P:C,u.arg===j)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(n=P,i.method="throw",i.arg=u.arg)}}}function c(e,t){var i=e.iterator[t.method];if(i===g){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=g,c(e,t),"throw"===t.method))return j;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return j}var n=r(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,j;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=g),t.delegate=null,j):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,j)}function p(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function h(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(p,this),this.reset(!0)}function v(e){if(e){var t=e[T];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i<e.length;)if(b.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=g,t.done=!0,t};return n.next=n}}return{next:m}}function m(){return{value:g,done:!0}}var g,y=Object.prototype,b=y.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},T=w.iterator||"@@iterator",_=w.asyncIterator||"@@asyncIterator",S=w.toStringTag||"@@toStringTag",x="object"===t(e),E=i.regeneratorRuntime;if(E)return void(x&&(e.exports=E));E=i.regeneratorRuntime=x?e.exports:{},E.wrap=n;var k="suspendedStart",C="suspendedYield",O="executing",P="completed",j={},I={};I[T]=function(){return this};var A=Object.getPrototypeOf,M=A&&A(A(v([])));M&&M!==y&&b.call(M,T)&&(I=M);var D=o.prototype=a.prototype=Object.create(I);s.prototype=D.constructor=o,o.constructor=s,o[S]=s.displayName="GeneratorFunction",E.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},E.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,o):(e.__proto__=o,S in e||(e[S]="GeneratorFunction")),e.prototype=Object.create(D),e},E.awrap=function(e){return{__await:e}},l(u.prototype),u.prototype[_]=function(){return this},E.AsyncIterator=u,E.async=function(e,t,i,r){var a=new u(n(e,t,i,r));return E.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},l(D),D[S]="Generator",D[T]=function(){return this},D.toString=function(){return"[object Generator]"},E.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},E.values=v,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(h),!e)for(var t in this)"t"===t.charAt(0)&&b.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=g)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,n){return a.type="throw",a.arg=e,i.next=t,n&&(i.method="next",i.arg=g),!!n}if(this.done)throw e;for(var i=this,n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var s=b.call(r,"catchLoc"),o=b.call(r,"finallyLoc");if(s&&o){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&b.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,j):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),j},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),h(i),j}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;h(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:v(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=g),j}}}(function(){return this}()||Function("return this")())}).call(t,i(12)(e))},function(e,t,i){(function(t){var n,r=void 0!==t?t:"undefined"!=typeof window?window:{},a=i(70);"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=n}).call(t,i(4))},function(e,t){},function(e,t){function i(e){if(e&&"object"===(void 0===e?"undefined":n(e))){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var i=String(e),s=r[i.toLowerCase()];if(s)return s;var s=a[i.toLowerCase()];return s||(1===i.length?i.charCodeAt(0):void 0)}var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i.isEventKey=function(e,t){if(e&&"object"===(void 0===e?"undefined":n(e))){var i=e.which||e.keyCode||e.charCode;if(null===i||void 0===i)return!1;if("string"==typeof t){var s=r[t.toLowerCase()];if(s)return s===i;var s=a[t.toLowerCase()];if(s)return s===i}else if("number"==typeof t)return t===i;return!1}},t=e.exports=i;var r=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},a=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};for(s=97;s<123;s++)r[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)r[s-48]=s;for(s=1;s<13;s++)r["f"+s]=s+111;for(s=0;s<10;s++)r["numpad "+s]=s+96;var o=t.names=t.title={};for(s in r)o[r[s]]=s;for(var l in a)r[l]=a[l]},function(e,t){function i(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]}e.exports=i},function(e,t,i){"use strict";function n(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function r(e,t,i){var n=e;return c(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=d({},t,{uri:e}),n.callback=i,n}function a(e,t,i){return t=r(e,t,i),s(t)}function s(e){function t(){4===d.readyState&&setTimeout(s,0)}function i(){var e=void 0;if(e=d.response?d.response:d.responseText||o(d),w)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,u(e,T)}function s(){if(!h){var t;clearTimeout(f),t=e.useXDR&&void 0===d.status?200:1223===d.status?204:d.status;var n=T,r=null;return 0!==t?(n={body:i(),statusCode:t,method:m,headers:{},url:v,rawRequest:d},d.getAllResponseHeaders&&(n.headers=p(d.getAllResponseHeaders()))):r=new Error("Internal XMLHttpRequest Error"),u(r,n,n.body)}}if(void 0===e.callback)throw new Error("callback argument missing");var l=!1,u=function(t,i,n){l||(l=!0,e.callback(t,i,n))},d=e.xhr||null;d||(d=e.cors||e.useXDR?new a.XDomainRequest:new a.XMLHttpRequest);var c,h,f,v=d.url=e.uri||e.url,m=d.method=e.method||"GET",g=e.body||e.data,y=d.headers=e.headers||{},b=!!e.sync,w=!1,T={body:void 0,headers:{},statusCode:0,method:m,url:v,rawRequest:d};if("json"in e&&!1!==e.json&&(w=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==m&&"HEAD"!==m&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),g=JSON.stringify(!0===e.json?g:e.json))),d.onreadystatechange=t,d.onload=s,d.onerror=r,d.onprogress=function(){},d.onabort=function(){h=!0},d.ontimeout=r,d.open(m,v,!b,e.username,e.password),b||(d.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout(function(){if(!h){h=!0,d.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}},e.timeout)),d.setRequestHeader)for(c in y)y.hasOwnProperty(c)&&d.setRequestHeader(c,y[c]);else if(e.headers&&!n(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(d.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(d),d.send(g||null),d}function o(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(e){}return null}function l(){}var u=i(24),d=i(13),c=i(74);a.httpHandler=i(75);/**
|
|
11
|
+
* @license
|
|
12
|
+
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
|
|
13
|
+
* Copyright (c) 2014 David Björklund
|
|
14
|
+
* Available under the MIT license
|
|
15
|
+
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
|
|
16
|
+
*/
|
|
17
|
+
var p=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var i=e.indexOf(":"),n=e.slice(0,i).trim().toLowerCase(),r=e.slice(i+1).trim();void 0===t[n]?t[n]=r:Array.isArray(t[n])?t[n].push(r):t[n]=[t[n],r]}),t):t};e.exports=a,e.exports.default=a,a.XMLHttpRequest=u.XMLHttpRequest||l,a.XDomainRequest="withCredentials"in new a.XMLHttpRequest?a.XMLHttpRequest:u.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){a["delete"===e?"del":e]=function(t,i,n){return i=r(t,i,n),i.method=e.toUpperCase(),s(i)}})},function(e,t){function i(e){if(!e)return!1;var t=n.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)}e.exports=i;var n=Object.prototype.toString},function(e,t,i){"use strict";function n(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),n=i[0],r=i[1];return"charset"===n.trim()?r.trim():e},"utf-8")}var r=i(24),a=function(e,t){return void 0===t&&(t=!1),function(i,a,s){if(i)return void e(i);if(a.statusCode>=400&&a.statusCode<=599){var o=s;if(t)if(r.TextDecoder){var l=n(a.headers&&a.headers["content-type"]);try{o=new TextDecoder(l).decode(s)}catch(e){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));return void e({cause:o})}e(null,s)}};e.exports=a},function(e,t,i){var n=i(77),r=e.exports={WebVTT:i(78),VTTCue:i(81),VTTRegion:i(82)};n.vttjs=r,n.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=n.VTTCue,l=n.VTTRegion;r.shim=function(){n.VTTCue=a,n.VTTRegion=s},r.restore=function(){n.VTTCue=o,n.VTTRegion=l},n.VTTCue||r.shim()},function(e,t,i){(function(t){var i;i="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=i}).call(t,i(4))},function(e,t,i){function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/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 a(){this.values=y(null)}function s(e,t,i,n){var r=n?e.split(n):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);if(2===s.length){var o=s[0].trim(),l=s[1].trim();t(o,l)}}}function o(e,t,i){function o(){var t=r(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+u);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(){e=e.replace(/^\s+/,"")}var u=e;if(l(),t.startTime=o(),l(),"--\x3e"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+u);e=e.substr(3),l(),t.endTime=o(),l(),function(e,t){var n=new a;s(e,function(e,t){switch(e){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===t){n.set(e,i[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];n.integer(e,s),n.percent(e,s)&&n.set("snapToLines",!1),n.alt(e,s,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),n.percent(e,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start","center","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical","");try{t.line=n.get("line","auto")}catch(e){}t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100);try{t.align=n.get("align","center")}catch(e){t.align=n.get("align","middle")}try{t.position=n.get("position","auto")}catch(e){t.position=n.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=n.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}function l(e,t){for(var i,n=e.document.createElement("div"),a=n,s=[];null!==(i=function(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return function(e){return t=t.substr(e.length),e}(e[1]?e[1]:e[2])}());)if("<"!==i[0])a.appendChild(e.document.createTextNode(function(e){return b.innerHTML=e,e=b.textContent,b.textContent="",e}(i)));else{if("/"===i[1]){s.length&&s[s.length-1]===i.substr(2).replace(">","")&&(s.pop(),a=a.parentNode);continue}var o,l=r(i.substr(1,i.length-2));if(l){o=e.document.createProcessingInstruction("timestamp",l),a.appendChild(o);continue}var u=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!u)continue;if(!(o=function(t,i){var n=w[t];if(!n)return null;var r=e.document.createElement(n),a=_[t];return a&&i&&(r[a]=i.trim()),r}(u[1],u[3])))continue;if(!function(e,t){return!S[t.localName]||S[t.localName]===e.localName}(a,o))continue;if(u[2]){var d=u[2].split(".");d.forEach(function(e){var t=/^bg_/.test(e),i=t?e.slice(3):e;if(T.hasOwnProperty(i)){var n=t?"background-color":"color",r=T[i];o.style[n]=r}}),o.className=d.join(" ")}s.push(u[1]),a.appendChild(o),a=o}return n}function u(e){for(var t=0;t<x.length;t++){var i=x[t];if(e>=i[0]&&e<=i[1])return!0}return!1}function d(e){function t(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function i(e){if(!e||!e.length)return null;var n=e.pop(),r=n.textContent||n.innerText;if(r){var a=r.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):r}return"ruby"===n.tagName?i(e):n.childNodes?(t(e,n),i(e)):void 0}var n,r=[],a="";if(!e||!e.childNodes)return"ltr";for(t(r,e);a=i(r);)for(var s=0;s<a.length;s++)if(n=a.charCodeAt(s),u(n))return"rtl";return"ltr"}function c(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,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}function p(){}function h(e,t,i){p.call(this),this.cue=t,this.cueDiv=l(e,t.text);var n={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(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:d(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(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===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 f(e){var t,i,n,r;if(e.div){i=e.div.offsetHeight,n=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.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||n,this.lineHeight=void 0!==t?t:e.lineHeight}function v(e,t,i,n){var r=new f(t),a=t.cue,s=c(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var u=r.lineHeight,d=u*Math.round(s),p=i[l]+u,h=o[0];Math.abs(d)>p&&(d=d<0?-1:1,d*=Math.ceil(p/u)*u),s<0&&(d+=""===a.vertical?i.height:i.width,o=o.reverse()),r.move(h,d)}else{var v=r.lineHeight/i.height*100;switch(a.lineAlign){case"center":s-=v/2;break;case"end":s-=v}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new f(t)}var m=function(e,t){for(var r,a=new f(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(i,t[o])||e.within(i)&&e.overlapsAny(n);)e.move(t[o]);if(e.within(i))return e;var l=e.intersectPercentage(i);s>l&&(r=new f(e),s=l),e=new f(a)}return r||a}(r,o);t.move(m.toCSSCompatValues(i))}function m(){}var g=i(79),y=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}}();n.prototype=y(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.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 n=0;n<i.length;++n)if(t===i[n]){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))>=0&&t<=100)&&(this.set(e,t),!0)}};var b=g.createElement&&g.createElement("textarea"),w={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},T={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)"},_={v:"title",lang:"lang"},S={rt:"ruby"},x=[[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]];p.prototype.applyStyles=function(e,t){t=t||this.div;for(var i in e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},p.prototype.formatStyle=function(e,t){return 0===e?0:e+t},h.prototype=y(p.prototype),h.prototype.constructor=h,f.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}},f.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},f.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},f.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},f.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}},f.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},f.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}},f.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,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e,{left:e.left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},m.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},m.convertCueToDOMTree=function(e,t){return e&&t?l(e,t):null};m.processCues=function(e,t,i){if(!e||!t||!i)return null;for(;i.firstChild;)i.removeChild(i.firstChild);var n=e.document.createElement("div");if(n.style.position="absolute",n.style.left="0",n.style.right="0",n.style.top="0",n.style.bottom="0",n.style.margin="1.5%",i.appendChild(n),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],a=f.getSimpleBoxPosition(n),s=Math.round(.05*a.height*100)/100,o={font:s+"px sans-serif"};!function(){for(var i,s,l=0;l<t.length;l++)s=t[l],i=new h(e,s,o),n.appendChild(i.div),v(e,i,a,r),s.displayState=i.div,r.push(f.getSimpleBoxPosition(i))}()}else for(var l=0;l<t.length;l++)n.appendChild(t[l].displayState)},m.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=[]},m.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){function t(){for(var e=u.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,u.buffer=e.substr(t),i}function i(e){var t=new a;if(s(e,function(e,i){switch(e){case"id":t.set(e,i);break;case"width":t.percent(e,i);break;case"lines":t.integer(e,i);break;case"regionanchor":case"viewportanchor":var n=i.split(",");if(2!==n.length)break;var r=new a;if(r.percent("x",n[0]),r.percent("y",n[1]),!r.has("x")||!r.has("y"))break;t.set(e+"X",r.get("x")),t.set(e+"Y",r.get("y"));break;case"scroll":t.alt(e,i,["up"])}},/=/,/\s/),t.has("id")){var i=new(u.vttjs.VTTRegion||u.window.VTTRegion);i.width=t.get("width",100),i.lines=t.get("lines",3),i.regionAnchorX=t.get("regionanchorX",0),i.regionAnchorY=t.get("regionanchorY",100),i.viewportAnchorX=t.get("viewportanchorX",0),i.viewportAnchorY=t.get("viewportanchorY",100),i.scroll=t.get("scroll",""),u.onregion&&u.onregion(i),u.regionList.push({id:t.get("id"),region:i})}}function l(e){var t=new a;s(e,function(e,i){switch(e){case"MPEGT":t.integer(e+"S",i);break;case"LOCA":t.set(e+"L",r(i))}},/[^\d]:/,/,/),u.ontimestampmap&&u.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}var u=this;e&&(u.buffer+=u.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===u.state){if(!/\r\n|\n/.test(u.buffer))return this;d=t();var c=d.match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new n(n.Errors.BadSignature);u.state="HEADER"}for(var p=!1;u.buffer;){if(!/\r\n|\n/.test(u.buffer))return this;switch(p?p=!1:d=t(),u.state){case"HEADER":/:/.test(d)?function(e){e.match(/X-TIMESTAMP-MAP/)?s(e,function(e,t){switch(e){case"X-TIMESTAMP-MAP":l(t)}},/=/):s(e,function(e,t){switch(e){case"Region":i(t)}},/:/)}(d):d||(u.state="ID");continue;case"NOTE":d||(u.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){u.state="NOTE";break}if(!d)continue;u.cue=new(u.vttjs.VTTCue||u.window.VTTCue)(0,0,"");try{u.cue.align="center"}catch(e){u.cue.align="middle"}if(u.state="CUE",-1===d.indexOf("--\x3e")){u.cue.id=d;continue}case"CUE":try{o(d,u.cue,u.regionList)}catch(e){u.reportOrThrowError(e),u.cue=null,u.state="BADCUE";continue}u.state="CUETEXT";continue;case"CUETEXT":var h=-1!==d.indexOf("--\x3e");if(!d||h&&(p=!0)){u.oncue&&u.oncue(u.cue),u.cue=null,u.state="ID";continue}u.cue.text&&(u.cue.text+="\n"),u.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(u.state="ID");continue}}}catch(e){u.reportOrThrowError(e),"CUETEXT"===u.state&&u.cue&&u.oncue&&u.oncue(u.cue),u.cue=null,u.state="INITIAL"===u.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=m},function(e,t,i){(function(t){var n,r=void 0!==t?t:"undefined"!=typeof window?window:{},a=i(80);"undefined"!=typeof document?n=document:(n=r["__GLOBAL_DOCUMENT_CACHE@4"])||(n=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=n}).call(t,i(4))},function(e,t){},function(e,t){function i(e){return"string"==typeof e&&(!!s[e.toLowerCase()]&&e.toLowerCase())}function n(e){return"string"==typeof e&&(!!o[e.toLowerCase()]&&e.toLowerCase())}function r(e,t,r){this.hasBeenReset=!1;var s="",o=!1,l=e,u=t,d=r,c=null,p="",h=!0,f="auto",v="start",m="auto",g="auto",y=100,b="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+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 u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return d},set:function(e){d=""+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 p},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");p=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&e!==a)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=n(e);t?(v=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=n(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return b},set:function(e){var t=n(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");b=t,this.hasBeenReset=!0}}}),this.displayState=void 0}var a="auto",s={"":1,lr:1,rl:1},o={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=r},function(e,t){function i(e){return"string"==typeof e&&(!!a[e.toLowerCase()]&&e.toLowerCase())}function n(e){return"number"==typeof e&&e>=0&&e<=100}function r(){var e=100,t=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(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 a},set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=i(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}var a={"":!0,up:!0};e.exports=r},function(e,t,i){"use strict";var n=i(25),r=i.n(n),a=i(14),s=i.n(a),o=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=s.a.location&&s.a.location.href||"");var i="function"==typeof s.a.URL,n=/^\/\//.test(e),a=!s.a.location&&!/\/\//i.test(e);if(i?e=new s.a.URL(e,s.a.location||"http://example.com"):/\/\//i.test(e)||(e=r.a.buildAbsoluteURL(s.a.location&&s.a.location.href||"",e)),i){var o=new URL(t,e);return a?o.href.slice("http://example.com".length):n?o.href.slice(o.protocol.length):o.href}return r.a.buildAbsoluteURL(e,t)};t.a=o},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}i.d(t,"a",function(){return w});var s=i(85),o=i(13),l=i.n(o),u=i(86),d=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),c=function(e){function t(){n(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.buffer="",e}return a(t,e),d(t,[{key:"push",value:function(e){var t=void 0;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)}}]),t}(s.a),p=String.fromCharCode(9),h=function(e){var 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},f=function(){return new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},v=function(e){var t={};if(!e)return t;for(var i=e.split(f()),n=i.length,r=void 0;n--;)""!==i[n]&&(r=/([^=]*)=(.*)/.exec(i[n]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),t[r[0]]=r[1]);return t},m=function(e){function t(){n(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.customParsers=[],e.tagMappers=[],e}return a(t,e),d(t,[{key:"push",value:function(e){var t=this,i=void 0,n=void 0;if(e=e.trim(),0!==e.length){if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});this.tagMappers.reduce(function(t,i){var n=i(e);return n===e?t:t.concat([n])},[e]).forEach(function(e){for(var r=0;r<t.customParsers.length;r++)if(t.customParsers[r].call(t,e))return;if(0!==e.indexOf("#EXT"))return void t.trigger("data",{type:"comment",text:e.slice(1)});if(e=e.replace("\r",""),i=/^#EXTM3U/.exec(e))return void t.trigger("data",{type:"tag",tagType:"m3u"});if(i=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},i[1]&&(n.duration=parseFloat(i[1])),i[2]&&(n.title=i[2]),void t.trigger("data",n);if(i=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},i[1]&&(n.duration=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},i[1]&&(n.version=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},i[1]&&(n.number=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},i[1]&&(n.number=parseInt(i[1],10)),void t.trigger("data",n);if(i=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},i[1]&&(n.playlistType=i[1]),void t.trigger("data",n);if(i=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e))return n=l()(h(i[1]),{type:"tag",tagType:"byterange"}),void t.trigger("data",n);if(i=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},i[1]&&(n.allowed=!/NO/.test(i[1])),void t.trigger("data",n);if(i=/^#EXT-X-MAP:(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},i[1]){var a=v(i[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=h(a.BYTERANGE))}return void t.trigger("data",n)}if(i=/^#EXT-X-STREAM-INF:(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},i[1]){if(n.attributes=v(i[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),o={};s[0]&&(o.width=parseInt(s[0],10)),s[1]&&(o.height=parseInt(s[1],10)),n.attributes.RESOLUTION=o}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}return void t.trigger("data",n)}return(i=/^#EXT-X-MEDIA:(.*)$/.exec(e))?(n={type:"tag",tagType:"media"},i[1]&&(n.attributes=v(i[1])),void t.trigger("data",n)):(i=/^#EXT-X-ENDLIST/.exec(e))?void t.trigger("data",{type:"tag",tagType:"endlist"}):(i=/^#EXT-X-DISCONTINUITY/.exec(e))?void t.trigger("data",{type:"tag",tagType:"discontinuity"}):(i=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e))?(n={type:"tag",tagType:"program-date-time"},i[1]&&(n.dateTimeString=i[1],n.dateTimeObject=new Date(i[1])),void t.trigger("data",n)):(i=/^#EXT-X-KEY:(.*)$/.exec(e))?(n={type:"tag",tagType:"key"},i[1]&&(n.attributes=v(i[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void t.trigger("data",n)):(i=/^#EXT-X-START:(.*)$/.exec(e))?(n={type:"tag",tagType:"start"},i[1]&&(n.attributes=v(i[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void t.trigger("data",n)):(i=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-out-cont"},i[1]?n.data=i[1]:n.data="",void t.trigger("data",n)):(i=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-out"},i[1]?n.data=i[1]:n.data="",void t.trigger("data",n)):(i=/^#EXT-X-CUE-IN:(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-in"},i[1]?n.data=i[1]:n.data="",void t.trigger("data",n)):(i=/^#EXT-X-SKIP:(.*)$/.exec(e))&&i[1]?(n={type:"tag",tagType:"skip"},n.attributes=v(i[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(p)),void t.trigger("data",n)):(i=/^#EXT-X-PART:(.*)$/.exec(e))&&i[1]?(n={type:"tag",tagType:"part"},n.attributes=v(i[1]),["DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=h(n.attributes.BYTERANGE)),void t.trigger("data",n)):(i=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&i[1]?(n={type:"tag",tagType:"server-control"},n.attributes=v(i[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))}),void t.trigger("data",n)):(i=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&i[1]?(n={type:"tag",tagType:"part-inf"},n.attributes=v(i[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void t.trigger("data",n)):(i=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&i[1]?(n={type:"tag",tagType:"preload-hint"},n.attributes=v(i[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void t.trigger("data",n)):(i=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&i[1]?(n={type:"tag",tagType:"rendition-report"},n.attributes=v(i[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void t.trigger("data",n)):void t.trigger("data",{type:"tag",data:e.slice(4)})})}}},{key:"addParser",value:function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:a}),!0})}},{key:"addTagMapper",value:function(e){var t=e.expression,i=e.map,n=function(e){return t.test(e)?i(e):e};this.tagMappers.push(n)}}]),t}(s.a),g=function(e){return e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})},y=function(e){var t={};return Object.keys(e).forEach(function(i){t[g(i)]=e[i]}),t},b=function(e){var t=e.serverControl,i=e.targetDuration,n=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=i&&3*i,l=n&&2*n;i&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&t[a]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+o+")"}),t[a]=o),n&&!t.hasOwnProperty(s)&&(t[s]=3*n,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})),n&&t[s]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+l+")."}),t[s]=l)}},w=function(e){function t(){n(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));e.lineStream=new c,e.parseStream=new m,e.lineStream.pipe(e.parseStream);var i=e,a=[],s={},o=void 0,d=void 0,p=!1,h=function(){},f={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},v=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var g=0,w=0;return e.on("end",function(){s.uri||!s.parts&&!s.preloadHints||(!s.map&&o&&(s.map=o),!s.key&&d&&(s.key=d),s.timeline||"number"!=typeof v||(s.timeline=v),e.manifest.preloadSegment=s)}),e.parseStream.on("data",function(e){var t=void 0,n=void 0;({tag:function(){(({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(s.byterange=t,t.length=e.length,"offset"in e||(e.offset=g)),"offset"in e&&(s.byterange=t,t.offset=e.offset),g=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"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"})),e.duration>0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(!e.attributes)return void this.trigger("warn",{message:"ignoring key declaration without attribute list"});if("NONE"===e.attributes.METHOD)return void(d=null);if(!e.attributes.URI)return void this.trigger("warn",{message:"ignoring key declaration without URI"});if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(u.a)(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),d={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(d.iv=e.attributes.IV)},"media-sequence":function(){if(!isFinite(e.number))return void this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number});this.manifest.mediaSequence=e.number},"discontinuity-sequence":function(){if(!isFinite(e.number))return void this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number});this.manifest.discontinuitySequence=e.number,v=e.number},"playlist-type":function(){if(!/VOD|EVENT/.test(e.playlistType))return void this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist});this.manifest.playlistType=e.playlistType},map:function(){o={},e.uri&&(o.uri=e.uri),e.byterange&&(o.byterange=e.byterange),d&&(o.key=d)},"stream-inf":function(){if(this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||f,!e.attributes)return void this.trigger("warn",{message:"ignoring empty stream-inf attributes"});s.attributes||(s.attributes={}),l()(s.attributes,e.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||f,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});var i=this.manifest.mediaGroups[e.attributes.TYPE];i[e.attributes["GROUP-ID"]]=i[e.attributes["GROUP-ID"]]||{},t=i[e.attributes["GROUP-ID"]],n={default:/yes/i.test(e.attributes.DEFAULT)},n.default?n.autoselect=!0:n.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(n.language=e.attributes.LANGUAGE),e.attributes.URI&&(n.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(n.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(n.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(n.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=n},discontinuity:function(){v+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){if(!isFinite(e.duration)||e.duration<0)return void this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration});this.manifest.targetDuration=e.duration,b.call(this,this.manifest)},start:function(){if(!e.attributes||isNaN(e.attributes["TIME-OFFSET"]))return void this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=y(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;p=!0;var i=this.manifest.segments.length,n=y(e.attributes);s.parts=s.parts||[],s.parts.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=w),w=n.byterange.offset+n.byterange.length);var r=s.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+i,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(e,i){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+i+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var t=this.manifest.serverControl=y(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),b.call(this,this.manifest),t.canSkipDateranges&&!t.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":function(){var t=this.manifest.segments.length,i=y(e.attributes),n=i.type&&"PART"===i.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=n?w:0,n&&(w=i.byterange.offset+i.byterange.length)));var r=s.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),i.type)for(var a=0;a<s.preloadHints.length-1;a++){var o=s.preloadHints[a];o.type&&(o.type===i.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+i.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=y(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var i=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];p&&n.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+i,e.attributes,n)},"part-inf":function(){this.manifest.partInf=y(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),b.call(this,this.manifest)}})[e.tagType]||h).call(i)},uri:function(){s.uri=e.uri,a.push(s),!this.manifest.targetDuration||"duration"in s||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),d&&(s.key=d),s.timeline=v,o&&(s.map=o),w=0,s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)}),e}return a(t,e),d(t,[{key:"warnOnMissingAttributes_",value:function(e,t,i){var n=[];i.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+n.join(", ")})}},{key:"push",value:function(e){this.lineStream.push(e)}},{key:"end",value:function(){this.lineStream.push("\n"),this.trigger("end")}},{key:"addParser",value:function(e){this.parseStream.addParser(e)}},{key:"addTagMapper",value:function(e){this.parseStream.addTagMapper(e)}}]),t}(s.a)},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=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,n=0;n<i;++n)t[n].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}()},function(e,t,i){"use strict";(function(e){function n(e){for(var t=s(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}t.a=n;var r=i(23),a=i.n(r),s=function(t){return a.a.atob?a.a.atob(t):e.from(t,"base64").toString("binary")}}).call(t,i(26).Buffer)},function(e,t,i){"use strict";function n(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("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function r(e){var t=n(e),i=t[0],r=t[1];return 3*(i+r)/4-r}function a(e,t,i){return 3*(t+i)/4-i}function s(e){var t,i,r=n(e),s=r[0],o=r[1],l=new p(a(e,s,o)),u=0,d=o>0?s-4:s;for(i=0;i<d;i+=4)t=c[e.charCodeAt(i)]<<18|c[e.charCodeAt(i+1)]<<12|c[e.charCodeAt(i+2)]<<6|c[e.charCodeAt(i+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===o&&(t=c[e.charCodeAt(i)]<<2|c[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===o&&(t=c[e.charCodeAt(i)]<<10|c[e.charCodeAt(i+1)]<<4|c[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function o(e){return d[e>>18&63]+d[e>>12&63]+d[e>>6&63]+d[63&e]}function l(e,t,i){for(var n,r=[],a=t;a<i;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),r.push(o(n));return r.join("")}function u(e){for(var t,i=e.length,n=i%3,r=[],a=0,s=i-n;a<s;a+=16383)r.push(l(e,a,a+16383>s?s:a+16383));return 1===n?(t=e[i-1],r.push(d[t>>2]+d[t<<4&63]+"==")):2===n&&(t=(e[i-2]<<8)+e[i-1],r.push(d[t>>10]+d[t>>4&63]+d[t<<2&63]+"=")),r.join("")}t.byteLength=r,t.toByteArray=s,t.fromByteArray=u;for(var d=[],c=[],p="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,v=h.length;f<v;++f)d[f]=h[f],c[h.charCodeAt(f)]=f;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
18
|
+
t.read=function(e,t,i,n,r){var a,s,o=8*r-n-1,l=(1<<o)-1,u=l>>1,d=-7,c=i?r-1:0,p=i?-1:1,h=e[t+c];for(c+=p,a=h&(1<<-d)-1,h>>=-d,d+=o;d>0;a=256*a+e[t+c],c+=p,d-=8);for(s=a&(1<<-d)-1,a>>=-d,d+=n;d>0;s=256*s+e[t+c],c+=p,d-=8);if(0===a)a=1-u;else{if(a===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),a-=u}return(h?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,i,n,r,a){var s,o,l,u=8*a-r-1,d=(1<<u)-1,c=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,f=n?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),t+=s+c>=1?p/l:p*Math.pow(2,1-c),t*l>=2&&(s++,l/=2),s+c>=d?(o=0,s=d):s+c>=1?(o=(t*l-1)*Math.pow(2,r),s+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,r),s=0));r>=8;e[i+h]=255&o,h+=f,o/=256,r-=8);for(s=s<<r|o,u+=r;u>0;e[i+h]=255&s,h+=f,s/=256,u-=8);e[i+h-f]|=128*v}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){"use strict";i.d(t,"i",function(){return l}),i.d(t,"h",function(){return u}),i.d(t,"d",function(){return d}),i.d(t,"f",function(){return c}),i.d(t,"e",function(){return h}),i.d(t,"c",function(){return f}),i.d(t,"g",function(){return v}),i.d(t,"a",function(){return m}),i.d(t,"b",function(){return g});var n=i(14),r=i.n(n),a={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^/},s=["video","audio","text"],o=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)}):e},u=function(e){void 0===e&&(e="");var t=e.split(","),i=[];return t.forEach(function(e){e=e.trim();var t;s.forEach(function(n){var r=a[n].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=n;var s=e.substring(0,r[1].length),o=e.replace(s,"");i.push({type:s,details:o,mediaType:n})}}),t||i.push({type:e,details:"",mediaType:"unknown"})}),i},d=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var r=i[n];if(r.default&&r.playlists)return u(r.playlists[0].attributes.CODECS)}return null},c=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},p=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())},h=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&&p(t[0])&&(i="application");var n="mp4";return t.every(function(e){return a.mp4.test(e)})?n="mp4":t.every(function(e){return a.webm.test(e)})?n="webm":t.every(function(e){return a.ogg.test(e)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},f=function(e){return void 0===e&&(e=""),r.a.MediaSource&&r.a.MediaSource.isTypeSupported&&r.a.MediaSource.isTypeSupported(h(e))||!1},v=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<o.length;t++){if(a["muxer"+o[t]].test(e))return!0}return!1})},m="mp4a.40.2",g="avc1.4d400d"},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return n.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}i.d(t,"a",function(){return P}),i.d(t,"b",function(){return R}),i.d(t,"c",function(){return Pe}),i.d(t,"d",function(){return je});var a=i(93),s=i(15),o=i.n(s),l=i(94),u=i(95),d=i(96),c=(i.n(d),function(){function e(e,t){var i=[],n=!0,r=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(n=(s=o.next()).done)&&(i.push(s.value),!t||i.length!==t);n=!0);}catch(e){r=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(r)throw a}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h=function(e){return!!e&&"object"===(void 0===e?"undefined":p(e))},f=function e(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return i.reduce(function(t,i){return"object"!==(void 0===i?"undefined":p(i))?t:(Object.keys(i).forEach(function(n){Array.isArray(t[n])&&Array.isArray(i[n])?t[n]=t[n].concat(i[n]):h(t[n])&&h(i[n])?t[n]=e(t[n],i[n]):t[n]=i[n]}),t)},{})},v=function(e){return Object.keys(e).map(function(t){return e[t]})},m=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i},g=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},y=function(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t},b=function(e,t){return e.reduce(function(e,i,n){return i[t]&&e.push(n),e},[])},w=function(e,t){return v(e.reduce(function(e,i){return i.forEach(function(i){e[t(i)]=i}),e},{}))},T={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",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"},_=function(e){var t=e.baseUrl,i=void 0===t?"":t,n=e.source,r=void 0===n?"":n,s=e.range,l=void 0===s?"":s,u=e.indexRange,d=void 0===u?"":u,c={uri:r,resolvedUri:Object(a.a)(i||"",r)};if(l||d){var p=l||d,h=p.split("-"),f=o.a.BigInt?o.a.BigInt(h[0]):parseInt(h[0],10),v=o.a.BigInt?o.a.BigInt(h[1]):parseInt(h[1],10);f<Number.MAX_SAFE_INTEGER&&"bigint"==typeof f&&(f=Number(f)),v<Number.MAX_SAFE_INTEGER&&"bigint"==typeof v&&(v=Number(v));var m=void 0;m="bigint"==typeof v||"bigint"==typeof f?o.a.BigInt(v)-o.a.BigInt(f)+o.a.BigInt(1):v-f+1,"bigint"==typeof m&&m<Number.MAX_SAFE_INTEGER&&(m=Number(m)),c.byterange={length:m,offset:f}}return c},S=function(e){var t=void 0;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?o.a.BigInt(e.offset)+o.a.BigInt(e.length)-o.a.BigInt(1):e.offset+e.length-1,e.offset+"-"+t},x=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},E={static:function(e){var t=e.duration,i=e.timescale,n=void 0===i?1:i,r=e.sourceDuration,a=e.periodDuration,s=x(e.endNumber),o=t/n;return"number"==typeof s?{start:0,end:s}:"number"==typeof a?{start:0,end:a/o}:{start:0,end:r/o}},dynamic:function(e){var t=e.NOW,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.periodStart,l=void 0===o?0:o,u=e.minimumUpdatePeriod,d=void 0===u?0:u,c=e.timeShiftBufferDepth,p=void 0===c?1/0:c,h=x(e.endNumber),f=(t+i)/1e3,v=n+l,m=f+d,g=m-v,y=Math.ceil(g*a/s),b=Math.floor((f-v-p)*a/s),w=Math.floor((f-v)*a/s);return{start:Math.max(0,b),end:"number"==typeof h?h:Math.min(y,w)}}},k=function(e){return function(t){var i=e.duration,n=e.timescale,r=void 0===n?1:n,a=e.periodStart,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:i/r,timeline:a,time:t*i}}},C=function(e){var t=e.type,i=e.duration,n=e.timescale,r=void 0===n?1:n,a=e.periodDuration,s=e.sourceDuration,o=E[t](e),l=o.start,u=o.end,d=m(l,u).map(k(e));if("static"===t){var c=d.length-1,p="number"==typeof a?a:s;d[c].duration=p-i/r*c}return d},O=function(e){var t=e.baseUrl,i=e.initialization,n=void 0===i?{}:i,r=e.sourceDuration,a=e.indexRange,s=void 0===a?"":a,o=e.periodStart,l=e.presentationTime,u=e.number,d=void 0===u?0:u,c=e.duration;if(!t)throw new Error(T.NO_BASE_URL);var p=_({baseUrl:t,source:n.sourceURL,range:n.range}),h=_({baseUrl:t,source:t,indexRange:s});if(h.map=p,c){var f=C(e);f.length&&(h.duration=f[0].duration,h.timeline=f[0].timeline)}else r&&(h.duration=r,h.timeline=o);return h.presentationTime=l||o,h.number=d,[h]},P=function(e,t,i){var n=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,a=e.timeline||0,s=e.sidx.byterange,l=s.offset+s.length,u=t.timescale,d=t.references.filter(function(e){return 1!==e.referenceType}),c=[],p=e.endList?"static":"dynamic",h=e.sidx.timeline,f=h,v=e.mediaSequence||0,m=void 0;m="bigint"==typeof t.firstOffset?o.a.BigInt(l)+t.firstOffset:l+t.firstOffset;for(var g=0;g<d.length;g++){var y=t.references[g],b=y.referencedSize,w=y.subsegmentDuration,T=void 0;T="bigint"==typeof m?m+o.a.BigInt(b)-o.a.BigInt(1):m+b-1;var _=m+"-"+T,S={baseUrl:i,timescale:u,timeline:a,periodStart:h,presentationTime:f,number:v,duration:w,sourceDuration:r,indexRange:_,type:p},x=O(S)[0];n&&(x.map=n),c.push(x),m+="bigint"==typeof m?o.a.BigInt(b):b,f+=w/u,v++}return e.segments=c,e},j=["AUDIO","SUBTITLES"],I=function(e){return w(e,function(e){return e.timeline}).sort(function(e,t){return e.timeline>t.timeline?1:-1})},A=function(e,t){for(var i=0;i<e.length;i++)if(e[i].attributes.NAME===t)return e[i];return null},M=function(e){var t=[];return Object(l.a)(e,j,function(e,i,n,r){t=t.concat(e.playlists||[])}),t},D=function(e){var t=e.playlist,i=e.mediaSequence;t.mediaSequence=i,t.segments.forEach(function(e,i){e.number=t.mediaSequence+i})},L=function(e){var t=e.oldPlaylists,i=e.newPlaylists,n=e.timelineStarts;i.forEach(function(e){e.discontinuitySequence=n.findIndex(function(t){return t.timeline===e.timeline});var i=A(t,e.attributes.NAME);if(i&&!e.sidx){var r=e.segments[0],a=i.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<1/60});if(-1===a)return D({playlist:e,mediaSequence:i.mediaSequence+i.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!i.segments.length&&e.timeline>i.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),D({playlist:e,mediaSequence:i.segments[a].number})}})},N=function(e){var t=e.oldManifest,i=e.newManifest,n=t.playlists.concat(M(t)),r=i.playlists.concat(M(i));return i.timelineStarts=I([t.timelineStarts,i.timelineStarts]),L({oldPlaylists:n,newPlaylists:r,timelineStarts:i.timelineStarts}),i},R=function(e){return e&&e.uri+"-"+S(e.byterange)},B=function(e){return v(e.reduce(function(e,t){var i=t.attributes.id+(t.attributes.lang||"");if(e[i]){if(t.segments){var n;t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,r(t.segments))}t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)}else e[i]=t,e[i].attributes.timelineStarts=[];return e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{})).map(function(e){return e.discontinuityStarts=b(e.segments||[],"discontinuity"),e})},z=function(e,t){var i=R(e.sidx),n=i&&t[i]&&t[i].sidx;return n&&P(e,n,e.sidx.resolvedUri),e},U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object.keys(t).length)return e;for(var i in e)e[i]=z(e[i],t);return e},F=function(e,t){var i=e.attributes,r=e.segments,a=e.sidx,s=e.mediaSequence,o=e.discontinuitySequence,l=e.discontinuityStarts,u={attributes:n({NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs},"PROGRAM-ID",1),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:o,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:s,segments:r};return i.contentProtection&&(u.contentProtection=i.contentProtection),a&&(u.sidx=a),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u},H=function(e){var t=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,s=e.discontinuitySequence;void 0===i&&(i=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);var o=n({NAME:t.id,BANDWIDTH:t.bandwidth},"PROGRAM-ID",1);return t.codecs&&(o.CODECS=t.codecs),{attributes:o,uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:a,discontinuitySequence:s,mediaSequence:r,segments:i}},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=void 0,r=e.reduce(function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"",o=r.attributes.label||"main";if(s&&!r.attributes.label){var l=a?" ("+a+")":"";o=""+r.attributes.lang+l}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=z(F(r,i),t);return e[o].playlists.push(u),void 0===n&&"main"===a&&(n=r,n.default=!0),e},{});if(!n){r[Object.keys(r)[0]].default=!0}return r},q=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.reduce(function(e,i){var n=i.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(z(H(i),t)),e},{})},G=function(e){return e.reduce(function(e,t){return t?(t.forEach(function(t){var i=t.channel,n=t.language;e[n]={autoselect:!1,default:!1,instreamId:i,language:n},t.hasOwnProperty("aspectRatio")&&(e[n].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[n].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[n]["3D"]=t["3D"])}),e):e},{})},W=function(e){var t=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,s={attributes:n({NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth},"PROGRAM-ID",1),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:"",targetDuration:t.duration,discontinuityStarts:a,timelineStarts:t.timelineStarts,segments:i};return t.frameRate&&(s.attributes["FRAME-RATE"]=t.frameRate),t.contentProtection&&(s.contentProtection=t.contentProtection),r&&(s.sidx=r),s},X=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},$=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},Y=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},K=function(e,t){e.forEach(function(e){e.mediaSequence=0,e.discontinuitySequence=t.findIndex(function(t){return t.timeline===e.timeline}),e.segments&&e.segments.forEach(function(e,t){e.number=t})})},Q=function(e){return e?Object.keys(e).reduce(function(t,i){var n=e[i];return t.concat(n.playlists)},[]):[]},J=function(e){var t,i=e.dashPlaylists,r=e.locations,a=e.sidxMapping,s=void 0===a?{}:a,o=e.previousManifest;if(!i.length)return{};var l=i[0].attributes,u=l.sourceDuration,d=l.type,c=l.suggestedPresentationDelay,p=l.minimumUpdatePeriod,h=B(i.filter(X)).map(W),f=B(i.filter($)),v=B(i.filter(Y)),m=i.map(function(e){return e.attributes.captionServices}).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},n(t,"CLOSED-CAPTIONS",{}),n(t,"SUBTITLES",{}),t),uri:"",duration:u,playlists:U(h,s)};p>=0&&(g.minimumUpdatePeriod=1e3*p),r&&(g.locations=r),"dynamic"===d&&(g.suggestedPresentationDelay=c);var y=0===g.playlists.length,b=f.length?V(f,s,y):null,w=v.length?q(v,s):null,T=h.concat(Q(b),Q(w)),_=T.map(function(e){return e.timelineStarts});return g.timelineStarts=I(_),K(T,g.timelineStarts),b&&(g.mediaGroups.AUDIO.audio=b),w&&(g.mediaGroups.SUBTITLES.subs=w),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=G(m)),o?N({oldManifest:o,newManifest:g}):g},Z=function(e,t,i){var n=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,l=e.periodStart,u=void 0===l?0:l,d=e.minimumUpdatePeriod,c=void 0===d?0:d,p=(n+r)/1e3,h=a+u,f=p+c,v=f-h;return Math.ceil((v*o-t)/i)},ee=function(e,t){for(var i=e.type,n=e.minimumUpdatePeriod,r=void 0===n?0:n,a=e.media,s=void 0===a?"":a,o=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,d=e.startNumber,c=void 0===d?1:d,p=e.periodStart,h=[],f=-1,v=0;v<t.length;v++){var m=t[v],g=m.d,y=m.r||0,b=m.t||0;f<0&&(f=b),b&&b>f&&(f=b);var w=void 0;if(y<0){var T=v+1;w=T===t.length?"dynamic"===i&&r>0&&s.indexOf("$Number$")>0?Z(e,f,g):(o*u-f)/g:(t[T].t-f)/g}else w=y+1;for(var _=c+h.length+w,S=c+h.length;S<_;)h.push({number:S,duration:g/u,time:f,timeline:p}),f+=g,S++}return h},te=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ie=function(e){return function(t,i,n,r){if("$$"===t)return"$";if(void 0===e[i])return t;var a=""+e[i];return"RepresentationID"===i?a:(r=n?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}},ne=function(e,t){return e.replace(te,ie(t))},re=function(e,t){return e.duration||t?e.duration?C(e):ee(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]},ae=function(e,t){var i={RepresentationID:e.id,Bandwidth:e.bandwidth||0},n=e.initialization,r=void 0===n?{sourceURL:"",range:""}:n,s=_({baseUrl:e.baseUrl,source:ne(r.sourceURL,i),range:r.range});return re(e,t).map(function(t){i.Number=t.number,i.Time=t.time;var n=ne(e.media||"",i),r=e.timescale||1,o=e.presentationTimeOffset||0,l=e.periodStart+(t.time-o)/r;return{uri:n,timeline:t.timeline,duration:t.duration,resolvedUri:Object(a.a)(e.baseUrl||"",n),map:s,number:t.number,presentationTime:l}})},se=function(e,t){var i=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,a=_({baseUrl:i,source:r.sourceURL,range:r.range}),s=_({baseUrl:i,source:t.media,range:t.mediaRange});return s.map=a,s},oe=function(e,t){var i=e.duration,n=e.segmentUrls,r=void 0===n?[]:n,a=e.periodStart;if(!i&&!t||i&&t)throw new Error(T.SEGMENT_TIME_UNSPECIFIED);var s=r.map(function(t){return se(e,t)}),o=void 0;return i&&(o=C(e)),t&&(o=ee(e,t)),o.map(function(t,i){if(s[i]){var n=s[i],r=e.timescale||1,o=e.presentationTimeOffset||0;return n.timeline=t.timeline,n.duration=t.duration,n.number=t.number,n.presentationTime=a+(t.time-o)/r,n}}).filter(function(e){return e})},le=function(e){var t=e.attributes,i=e.segmentInfo,n=void 0,r=void 0;i.template?(r=ae,n=f(t,i.template)):i.base?(r=O,n=f(t,i.base)):i.list&&(r=oe,n=f(t,i.list));var a={attributes:t};if(!r)return a;var s=r(n,i.segmentTimeline);if(n.duration){var o=n,l=o.duration,u=o.timescale,d=void 0===u?1:u;n.duration=l/d}else s.length?n.duration=s.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):n.duration=0;return a.attributes=n,a.segments=s,i.base&&n.indexRange&&(a.sidx=s[0],a.segments=[]),a},ue=function(e){return e.map(le)},de=function(e,t){return y(e.childNodes).filter(function(e){return e.tagName===t})},ce=function(e){return e.textContent.trim()},pe=function(e){return parseFloat(e.split("/").reduce(function(e,t){return e/t}))},he=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,i=t.exec(e);if(!i)return 0;var n=i.slice(1),r=c(n,6),a=r[0],s=r[1],o=r[2],l=r[3],u=r[4],d=r[5];return 31536e3*parseFloat(a||0)+2592e3*parseFloat(s||0)+86400*parseFloat(o||0)+3600*parseFloat(l||0)+60*parseFloat(u||0)+parseFloat(d||0)},fe=function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)},ve={mediaPresentationDuration:function(e){return he(e)},availabilityStartTime:function(e){return fe(e)/1e3},minimumUpdatePeriod:function(e){return he(e)},suggestedPresentationDelay:function(e){return he(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return he(e)},start:function(e){return he(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return pe(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?he(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},me=function(e){return e&&e.attributes?y(e.attributes).reduce(function(e,t){var i=ve[t.name]||ve.DEFAULT;return e[t.name]=i(t.value),e},{}):{}},ge={"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"},ye=function(e,t){return t.length?g(e.map(function(e){return t.map(function(t){return Object(a.a)(e,ce(t))})})):e},be=function(e){var t=de(e,"SegmentTemplate")[0],i=de(e,"SegmentList")[0],n=i&&de(i,"SegmentURL").map(function(e){return f({tag:"SegmentURL"},me(e))}),r=de(e,"SegmentBase")[0],a=i||t,s=a&&de(a,"SegmentTimeline")[0],o=i||r||t,l=o&&de(o,"Initialization")[0],u=t&&me(t);u&&l?u.initialization=l&&me(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var d={template:u,segmentTimeline:s&&de(s,"S").map(function(e){return me(e)}),list:i&&f(me(i),{segmentUrls:n,initialization:me(l)}),base:r&&f(me(r),{initialization:me(l)})};return Object.keys(d).forEach(function(e){d[e]||delete d[e]}),d},we=function(e,t,i){return function(n){var r=de(n,"BaseURL"),a=ye(t,r),s=f(e,me(n)),o=be(n);return a.map(function(e){return{segmentInfo:f(i,o),attributes:f(s,{baseUrl:e})}})}},Te=function(e){return e.reduce(function(e,t){var i=me(t);i.schemeIdUri&&(i.schemeIdUri=i.schemeIdUri.toLowerCase());var n=ge[i.schemeIdUri];if(n){e[n]={attributes:i};var r=de(t,"cenc:pssh")[0];if(r){var a=ce(r);e[n].pssh=a&&Object(u.a)(a)}}return e},{})},_e=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){return("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t=void 0,i=void 0;if(i=e,/^CC\d=/.test(e)){var n=e.split("="),r=c(n,2);t=r[0],i=r[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:i}})}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){return("string"!=typeof e.value?[]:e.value.split(";")).map(function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var i=e.split("="),n=c(i,2),r=n[0],a=n[1],s=void 0===a?"":a;t.channel=r,t.language=e,s.split(",").forEach(function(e){var i=e.split(":"),n=c(i,2),r=n[0],a=n[1];"lang"===r?t.language=a:"er"===r?t.easyReader=Number(a):"war"===r?t.aspectRatio=Number(a):"3D"===r&&(t["3D"]=Number(a))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})}},Se=function(e,t,i){return function(n){var r=me(n),a=ye(t,de(n,"BaseURL")),s=de(n,"Role")[0],o={role:me(s)},l=f(e,r,o),u=de(n,"Accessibility")[0],d=_e(me(u));d&&(l=f(l,{captionServices:d}));var c=de(n,"Label")[0];if(c&&c.childNodes.length){var p=c.childNodes[0].nodeValue.trim();l=f(l,{label:p})}var h=Te(de(n,"ContentProtection"));Object.keys(h).length&&(l=f(l,{contentProtection:h}));var v=be(n),m=de(n,"Representation"),y=f(i,v);return g(m.map(we(l,a,y)))}},xe=function(e,t){return function(i,n){var r=ye(t,de(i.node,"BaseURL")),a=f(e,{periodStart:i.attributes.start});"number"==typeof i.attributes.duration&&(a.periodDuration=i.attributes.duration);var s=de(i.node,"AdaptationSet"),o=be(i.node);return g(s.map(Se(a,r,o)))}},Ee=function(e){var t=e.attributes,i=e.priorPeriodAttributes,n=e.mpdType;return"number"==typeof t.start?t.start:i&&"number"==typeof i.start&&"number"==typeof i.duration?i.start+i.duration:i||"static"!==n?null:0},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.manifestUri,n=void 0===i?"":i,r=t.NOW,a=void 0===r?Date.now():r,s=t.clientOffset,o=void 0===s?0:s,l=de(e,"Period");if(!l.length)throw new Error(T.INVALID_NUMBER_OF_PERIOD);var u=de(e,"Location"),d=me(e),c=ye([n],de(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=a,d.clientOffset=o,u.length&&(d.locations=u.map(ce));var p=[];return l.forEach(function(e,t){var i=me(e),n=p[t-1];i.start=Ee({attributes:i,priorPeriodAttributes:n?n.attributes:null,mpdType:d.type}),p.push({node:e,attributes:i})}),{locations:d.locations,representationInfo:g(p.map(xe(d,c)))}},Ce=function(e){if(""===e)throw new Error(T.DASH_EMPTY_MANIFEST);var t=new d.DOMParser,i=void 0,n=void 0;try{i=t.parseFromString(e,"application/xml"),n=i&&"MPD"===i.documentElement.tagName?i.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(T.DASH_INVALID_XML);return n},Oe=function(e){var t=de(e,"UTCTiming")[0];if(!t)return null;var i=me(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(T.UNSUPPORTED_UTC_TIMING_SCHEME)}return i},Pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=ke(Ce(e),t),n=ue(i.representationInfo);return J({dashPlaylists:n,locations:i.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},je=function(e){return Oe(Ce(e))}},function(e,t,i){"use strict";var n=i(25),r=i.n(n),a=i(15),s=i.n(a),o=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=s.a.location&&s.a.location.href||"");var i="function"==typeof s.a.URL,n=/^\/\//.test(e),a=!s.a.location&&!/\/\//i.test(e);if(i?e=new s.a.URL(e,s.a.location||"http://example.com"):/\/\//i.test(e)||(e=r.a.buildAbsoluteURL(s.a.location&&s.a.location.href||"",e)),i){var o=new URL(t,e);return a?o.href.slice("http://example.com".length):n?o.href.slice(o.protocol.length):o.href}return r.a.buildAbsoluteURL(e,t)};t.a=o},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=function(e,t,i){t.forEach(function(t){for(var n in e.mediaGroups[t])for(var r in e.mediaGroups[t][n]){var a=e.mediaGroups[t][n][r];i(a,t,n,r)}})}},function(e,t,i){"use strict";(function(e){function n(e){for(var t=s(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i}t.a=n;var r=i(15),a=i.n(r),s=function(t){return a.a.atob?a.a.atob(t):e.from(t,"base64").toString("binary")}}).call(t,i(26).Buffer)},function(e,t,i){var n=i(27);t.DOMImplementation=n.DOMImplementation,t.XMLSerializer=n.XMLSerializer,t.DOMParser=i(97).DOMParser},function(e,t,i){function n(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function r(e){this.options=e||{locator:{}}}function a(e,t,i){function n(t){var n=e[t];!n&&a&&(n=2==e.length?function(i){e(t,i)}:e),r[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+l(i))}||function(){}}if(!e){if(t instanceof s)return t;e=t}var r={},a=e instanceof Function;return i=i||{},n("warning"),n("error"),n("fatalError"),r}function s(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function l(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function u(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 d(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}var c=i(8),p=i(27),h=i(98),f=i(99),v=p.DOMImplementation,m=c.NAMESPACE,g=f.ParseError,y=f.XMLReader;r.prototype.parseFromString=function(e,t){var i=this.options,r=new y,o=i.domBuilder||new s,l=i.errorHandler,u=i.locator,d=i.xmlns||{},c=/\/x?html?$/.test(t),p=c?h.HTML_ENTITIES:h.XML_ENTITIES;u&&o.setDocumentLocator(u),r.errorHandler=a(l,o,u),r.domBuilder=i.domBuilder||o,c&&(d[""]=m.HTML),d.xml=d.xml||m.XML;var f=i.normalizeLineEndings||n;return e&&"string"==typeof e?r.parse(f(e),d,p):r.errorHandler.error("invalid doc source"),o.doc},s.prototype={startDocument:function(){this.doc=(new v).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,a=r.createElementNS(e,i||t),s=n.length;d(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var l=0;l<s;l++){var e=n.getURI(l),u=n.getValue(l),i=n.getQName(l),c=r.createAttributeNS(e,i);this.locator&&o(n.getLocator(l),c),c.value=c.nodeValue=u,a.setAttributeNode(c)}},endElement:function(e,t,i){var n=this.currentElement;n.tagName;this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var i=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,i),d(this,i)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){if(e=u.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&o(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=u.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&o(this.locator,n),d(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var n=this.doc.implementation;if(n&&n.createDocumentType){var r=n.createDocumentType(e,t,i);this.locator&&o(this.locator,r),d(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,l(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,l(this.locator))},fatalError:function(e){throw new g(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){s.prototype[e]=function(){return null}}),t.__DOMHandler=s,t.normalizeLineEndings=n,t.DOMParser=r},function(e,t,i){var n=i(8).freeze;t.XML_ENTITIES=n({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES},function(e,t,i){function n(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,n)}function r(){}function a(e,t,i,r,a){function c(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 v(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(i,t)?i[t]:"#"===t.charAt(0)?c(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function g(t){if(t>E){var i=e.substring(E,t).replace(/&#?\w+;/g,v);_&&y(E),r.characters(i,0,t-E),E=t}}function y(t,i){for(;t>=w&&(i=T.exec(e));)b=i.index,w=b+i[0].length,_.lineNumber++;_.columnNumber=t-b+1}for(var b=0,w=0,T=/.*(?:\r\n?|\n)|.*$/g,_=r.locator,S=[{currentNSMap:t}],x={},E=0;;){try{var k=e.indexOf("<",E);if(k<0){if(!e.substr(E).match(/^\s*$/)){var C=r.doc,O=C.createTextNode(e.substr(E));C.appendChild(O),r.currentElement=O}return}switch(k>E&&g(k),e.charAt(k+1)){case"/":var P=e.indexOf(">",k+3),j=e.substring(k+2,P).replace(/[ \t\n\r]+$/g,""),I=S.pop();P<0?(j=e.substring(k+2).replace(/[\s<].*/,""),a.error("end tag name: "+j+" is not complete:"+I.tagName),P=k+1+j.length):j.match(/\s</)&&(j=j.replace(/[\s<].*/,""),a.error("end tag name: "+j+" maybe not complete"),P=k+1+j.length);var A=I.localNSMap,M=I.tagName==j;if(M||I.tagName&&I.tagName.toLowerCase()==j.toLowerCase()){if(r.endElement(I.uri,I.localName,j),A)for(var D in A)Object.prototype.hasOwnProperty.call(A,D)&&r.endPrefixMapping(D);M||a.fatalError("end tag name: "+j+" is not match the current start tagName:"+I.tagName)}else S.push(I);P++;break;case"?":_&&y(k),P=h(e,k,r);break;case"!":_&&y(k),P=p(e,k,r,a);break;default:_&&y(k);var L=new f,N=S[S.length-1].currentNSMap,P=o(e,k,L,N,v,a),R=L.length;if(!L.closed&&d(e,P,L.tagName,x)&&(L.closed=!0,i.nbsp||a.warning("unclosed xml attribute")),_&&R){for(var B=s(_,{}),z=0;z<R;z++){var U=L[z];y(U.offset),U.locator=s(_,{})}r.locator=B,l(L,r,N)&&S.push(L),r.locator=_}else l(L,r,N)&&S.push(L);m.isHTML(L.uri)&&!L.closed?P=u(e,P,L.tagName,v,r):P++}}catch(e){if(e instanceof n)throw e;a.error("element parse error: "+e),P=-1}P>E?E=P:g(Math.max(k,E)+1)}}function s(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function o(e,t,i,n,r,a){function s(e,t,n){i.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),i.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),n)}for(var o,l,u=++t,d=w;;){var c=e.charAt(u);switch(c){case"=":if(d===T)o=e.slice(t,u),d=S;else{if(d!==_)throw new Error("attribute equal must after attrName");d=S}break;case"'":case'"':if(d===S||d===T){if(d===T&&(a.warning('attribute value must after "="'),o=e.slice(t,u)),t=u+1,!((u=e.indexOf(c,t))>0))throw new Error("attribute value no end '"+c+"' match");l=e.slice(t,u),s(o,l,t-1),d=E}else{if(d!=x)throw new Error('attribute value must after "="');l=e.slice(t,u),s(o,l,t),a.warning('attribute "'+o+'" missed start quot('+c+")!!"),t=u+1,d=E}break;case"/":switch(d){case w:i.setTagName(e.slice(t,u));case E:case k:case C:d=C,i.closed=!0;case x:case T:case _:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),d==w&&i.setTagName(e.slice(t,u)),u;case">":switch(d){case w:i.setTagName(e.slice(t,u));case E:case k:case C:break;case x:case T:l=e.slice(t,u),"/"===l.slice(-1)&&(i.closed=!0,l=l.slice(0,-1));case _:d===_&&(l=o),d==x?(a.warning('attribute "'+l+'" missed quot(")!'),s(o,l,t)):(m.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),s(l,l,t));break;case S:throw new Error("attribute value missed!!")}return u;case"":c=" ";default:if(c<=" ")switch(d){case w:i.setTagName(e.slice(t,u)),d=k;break;case T:o=e.slice(t,u),d=_;break;case x:var l=e.slice(t,u);a.warning('attribute "'+l+'" missed quot(")!!'),s(o,l,t);case E:d=k}else switch(d){case _:i.tagName;m.isHTML(n[""])&&o.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),s(o,o,t),t=u,d=T;break;case E:a.warning('attribute space is required"'+o+'"!!');case k:d=T,t=u;break;case S:d=x,t=u;break;case C:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function l(e,t,i){for(var n=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,l=s.value,u=o.indexOf(":");if(u>0)var d=s.prefix=o.slice(0,u),p=o.slice(u+1),h="xmlns"===d&&p;else p=o,d=null,h="xmlns"===o&&"";s.localName=p,!1!==h&&(null==r&&(r={},c(i,i={})),i[h]=r[h]=l,s.uri=m.XMLNS,t.startPrefixMapping(h,l))}for(var a=e.length;a--;){s=e[a];var d=s.prefix;d&&("xml"===d&&(s.uri=m.XML),"xmlns"!==d&&(s.uri=i[d||""]))}var u=n.indexOf(":");u>0?(d=e.prefix=n.slice(0,u),p=e.localName=n.slice(u+1)):(d=null,p=e.localName=n);var f=e.uri=i[d||""];if(t.startElement(f,p,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,!0;if(t.endElement(f,p,n),r)for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&t.endPrefixMapping(d)}function u(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var a=e.indexOf("</"+i+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(i)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,n),r.characters(s,0,s.length),a)}return t+1}function d(e,t,i,n){var r=n[i];return null==r&&(r=e.lastIndexOf("</"+i+">"),r<t&&(r=e.lastIndexOf("</"+i)),n[i]=r),r<t}function c(e,t){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}function p(e,t,i,n){switch(e.charAt(t+2)){case"-":if("-"===e.charAt(t+3)){var r=e.indexOf("--\x3e",t+4);return r>t?(i.comment(e,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}var a=v(e,t),s=a.length;if(s>1&&/!doctype/i.test(a[0][0])){var o=a[1][0],l=!1,u=!1;s>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],u=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(u=a[3][0]));var d=a[s-1];return i.startDTD(o,l,u),i.endDTD(),d.index+d[0].length}}return-1}function h(e,t,i){var n=e.indexOf("?>",t);if(n){var r=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return i.processingInstruction(r[1],r[2]),n+2}return-1}return-1}function f(){this.attributeNames={}}function v(e,t){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);i=r.exec(e);)if(n.push(i),i[1])return n}var m=i(8).NAMESPACE,g=/[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]/,y=new RegExp("[\\-\\.0-9"+g.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),b=new RegExp("^"+g.source+y.source+"*(?::"+g.source+y.source+"*)?$"),w=0,T=1,_=2,S=3,x=4,E=5,k=6,C=7;n.prototype=new Error,n.prototype.name=n.name,r.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),c(t,t={}),a(e,t,i,n,this.errorHandler),n.endDocument()}},f.prototype={setTagName:function(e){if(!b.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!b.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=r,t.ParseError=n},function(e,t,i){var n=i(101).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=n(e.subarray(r)),i.firstOffset=n(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)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},function(e,t){var i=Math.pow(2,32),n=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*i+n.getUint32(4)};e.exports={getUint64:n,MAX_UINT32:i}},function(e,t,i){"use strict";i.d(t,"a",function(){return p}),i.d(t,"b",function(){return h});var n=i(5),r=i(103),a=i(105),s=i(28),o=i(106),l={webm:Object(n.k)([119,101,98,109]),matroska:Object(n.k)([109,97,116,114,111,115,107,97]),flac:Object(n.k)([102,76,97,67]),ogg:Object(n.k)([79,103,103,83]),ac3:Object(n.k)([11,119]),riff:Object(n.k)([82,73,70,70]),avi:Object(n.k)([65,86,73]),wav:Object(n.k)([87,65,86,69]),"3gp":Object(n.k)([102,116,121,112,51,103]),mp4:Object(n.k)([102,116,121,112]),fmp4:Object(n.k)([115,116,121,112]),mov:Object(n.k)([102,116,121,112,113,116]),moov:Object(n.k)([109,111,111,118]),moof:Object(n.k)([109,111,111,102])},u={aac:function(e){var t=Object(s.a)(e);return Object(n.a)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(s.a)(e);return Object(n.a)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=Object(a.b)(e,[a.a.EBML,a.a.DocType])[0];return Object(n.a)(t,l.webm)},mkv:function(e){var t=Object(a.b)(e,[a.a.EBML,a.a.DocType])[0];return Object(n.a)(t,l.matroska)},mp4:function(e){return!u["3gp"](e)&&!u.mov(e)&&(!(!Object(n.a)(e,l.mp4,{offset:4})&&!Object(n.a)(e,l.fmp4,{offset:4}))||(!(!Object(n.a)(e,l.moof,{offset:4})&&!Object(n.a)(e,l.moov,{offset:4}))||void 0))},mov:function(e){return Object(n.a)(e,l.mov,{offset:4})},"3gp":function(e){return Object(n.a)(e,l["3gp"],{offset:4})},ac3:function(e){var t=Object(s.a)(e);return Object(n.a)(e,l.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;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(s.a)(e);return Object(n.a)(e,l.flac,{offset:t})},ogg:function(e){return Object(n.a)(e,l.ogg)},avi:function(e){return Object(n.a)(e,l.riff)&&Object(n.a)(e,l.avi,{offset:8})},wav:function(e){return Object(n.a)(e,l.riff)&&Object(n.a)(e,l.wav,{offset:8})},h264:function(e){return Object(o.a)(e,7,3).length},h265:function(e){return Object(o.b)(e,[32,33],3).length}},d=Object.keys(u).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);d.forEach(function(e){var t=u[e];u[e]=function(e){return t(Object(n.k)(e))}});var c=u,p=function(e){e=Object(n.k)(e);for(var t=0;t<d.length;t++){var i=d[t];if(c[i](e))return i}return""},h=function(e){return Object(r.a)(e,["moof"]).length>0}},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n,r=i(5),a=(i(29),i(104),function(e){return"string"==typeof e?Object(r.h)(e):e}),s=function(e){return Array.isArray(e)?e.map(function(e){return a(e)}):[a(e)]},o=function(e){e=Object(r.k)(e);for(var t=[],i=0;e.length>i;){var a=e[i],s=0,o=0;o++;var l=e[o];for(o++;128&l;)s=(127&l)<<7,l=e[o],o++;s+=127&l;for(var u=0;u<n.length;u++){var d=n[u],c=d.id,p=d.parser;if(a===c){t.push(p(e.subarray(o,o+s)));break}}i+=s+o}return t};n=[{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){return{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))}}},{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,n){void 0===n&&(n=!1),i=s(i),t=Object(r.k)(t);var a=[];if(!i.length)return a;for(var o=0;o<t.length;){var l=(t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3])>>>0,u=t.subarray(o+4,o+8);if(0===l)break;var d=o+l;if(d>t.length){if(n)break;d=t.length}var c=t.subarray(o+8,d);Object(r.a)(u,i[0])&&(1===i.length?a.push(c):a.push.apply(a,e(c,i.slice(1),n))),o=d}return a}},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint8(0),n=0!==i,r={version:i,channels:t.getUint8(1),preSkip:t.getUint16(2,n),sampleRate:t.getUint32(4,n),outputGain:t.getUint16(8,n),channelMappingFamily:t.getUint8(10)};if(r.channelMappingFamily>0&&e.length>10){r.streamCount=t.getUint8(11),r.twoChannelStreamCount=t.getUint8(12),r.channelMapping=[];for(var a=0;a<r.channels;a++)r.channelMapping.push(t.getUint8(13+a))}return r})},function(e,t,i){"use strict";i.d(t,"a",function(){return r}),i.d(t,"b",function(){return c});var n=i(5),r=(i(29),{EBML:Object(n.k)([26,69,223,163]),DocType:Object(n.k)([66,130]),Segment:Object(n.k)([24,83,128,103]),SegmentInfo:Object(n.k)([21,73,169,102]),Tracks:Object(n.k)([22,84,174,107]),Track:Object(n.k)([174]),TrackNumber:Object(n.k)([215]),DefaultDuration:Object(n.k)([35,227,131]),TrackEntry:Object(n.k)([174]),TrackType:Object(n.k)([131]),FlagDefault:Object(n.k)([136]),CodecID:Object(n.k)([134]),CodecPrivate:Object(n.k)([99,162]),VideoTrack:Object(n.k)([224]),AudioTrack:Object(n.k)([225]),Cluster:Object(n.k)([31,67,182,117]),Timestamp:Object(n.k)([231]),TimestampScale:Object(n.k)([42,215,177]),BlockGroup:Object(n.k)([160]),BlockDuration:Object(n.k)([155]),Block:Object(n.k)([161]),SimpleBlock:Object(n.k)([163])}),a=[128,64,32,16,8,4,2,1],s=function(e){for(var t=1,i=0;i<a.length&&!(e&a[i]);i++)t++;return t},o=function(e,t,i,r){void 0===i&&(i=!0),void 0===r&&(r=!1);var o=s(e[t]),l=e.subarray(t,t+o);return i&&(l=Array.prototype.slice.call(e,t,t+o),l[0]^=a[o-1]),{length:o,value:Object(n.b)(l,{signed:r}),bytes:l}},l=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?Object(n.f)(t):t},u=function(e){return Array.isArray(e)?e.map(function(e){return l(e)}):[l(e)]},d=function e(t,i,r){if(r>=i.length)return i.length;var a=o(i,r,!1);if(Object(n.a)(t.bytes,a.bytes))return r;var s=o(i,r+a.length);return e(t,i,r+s.length+s.value+a.length)},c=function e(t,i){i=u(i),t=Object(n.k)(t);var r=[];if(!i.length)return r;for(var a=0;a<t.length;){var s=o(t,a,!1),l=o(t,a+s.length),c=a+s.length+l.length;127===l.value&&(l.value=d(s,t,c),l.value!==t.length&&(l.value-=c));var p=c+l.value>t.length?t.length:c+l.value,h=t.subarray(c,p);Object(n.a)(i[0],s.bytes)&&(1===i.length?r.push(h):r=r.concat(e(h,i.slice(1))));a+=s.length+l.length+h.length}return r}},function(e,t,i){"use strict";i.d(t,"a",function(){return u}),i.d(t,"b",function(){return d});var n=i(5),r=Object(n.k)([0,0,0,1]),a=Object(n.k)([0,0,1]),s=Object(n.k)([0,0,3]),o=function(e){for(var t=[],i=1;i<e.length-2;)Object(n.a)(e.subarray(i,i+3),s)&&(t.push(i+2),i++),i++;if(0===t.length)return e;var r=e.length-t.length,a=new Uint8Array(r),o=0;for(i=0;i<r;o++,i++)o===t[0]&&(o++,t.shift()),a[i]=e[o];return a},l=function(e,t,i,s){void 0===s&&(s=1/0),e=Object(n.k)(e),i=[].concat(i);for(var l,u=0,d=0;u<e.length&&(d<s||l);){var c=void 0;if(Object(n.a)(e.subarray(u),r)?c=4:Object(n.a)(e.subarray(u),a)&&(c=3),c){if(d++,l)return o(e.subarray(l,u));var p=void 0;"h264"===t?p=31&e[u+c]:"h265"===t&&(p=e[u+c]>>1&63),-1!==i.indexOf(p)&&(l=u+c),u+=c+("h264"===t?1:2)}else u++}return e.subarray(0,0)},u=function(e,t,i){return l(e,"h264",t,i)},d=function(e,t,i){return l(e,"h265",t,i)}},function(e,t){var i,n,r,a,s,o,l;i=function(e){return 9e4*e},n=function(e,t){return e*t},r=function(e){return e/9e4},a=function(e,t){return e/t},s=function(e,t){return i(a(e,t))},o=function(e,t){return n(r(e),t)},l=function(e,t,i){return r(i?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:i,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:s,videoTsToAudioTs:o,metadataTsToSeconds:l}},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,'.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABDkAAsAAAAAG6gAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV3hY21hcAAAAYQAAADaAAADPv749/pnbHlmAAACYAAAC3AAABHQZg6OcWhlYWQAAA3QAAAAKwAAADYZw251aGhlYQAADfwAAAAdAAAAJA+RCLFobXR4AAAOHAAAABMAAACM744AAGxvY2EAAA4wAAAASAAAAEhF6kqubWF4cAAADngAAAAfAAAAIAE0AIFuYW1lAAAOmAAAASUAAAIK1cf1oHBvc3QAAA/AAAABJAAAAdPExYuNeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS7wTiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGJHcRdyA4RZgQRADK3CxEAAHic7dFZbsMgAEXRS0ycyZnnOeG7y+qC8pU1dHusIOXxuoxaOlwZYWQB0Aea4quIEN4E9LzKbKjzDeM6H/mua6Lmc/p8yhg0lvdYx15ZG8uOLQOGjMp3EzqmzJizYMmKNRu27Nhz4MiJMxeu3Ljz4Ekqm7T8P52G8PP3lnTOVk++Z6iN6QZzNN1F7ptuN7eGOjDUoaGODHVsuvU8MdTO9Hd5aqgzQ50b6sJQl4a6MtS1oW4MdWuoO0PdG+rBUI+GejLUs6FeDPVqqDdDvRvqw1CfhpqM9At0iFLaAAB4nJ1YDXBTVRZ+5/22TUlJ8we0pHlJm7RJf5O8F2j6EymlSPkpxaL8U2xpa3DKj0CBhc2IW4eWKSokIoLsuMqssM64f+jA4HSdWXXXscBq67IOs3FXZ1ZYWVyRFdo899yXtIBQZ90k7717zz3v3HPPOfd854YCCj9cL9dL0RQFOqCbGJnrHb5EayiKIWN8iA/hWBblo6hUWm8TtCDwE80WMJus/irwyxOdxeB0MDb14VNJHnXYoLLSl6FfCUYO9nYPTA8Epg9090LprfbBbZ2hY0UlJUXHQp3/vtWkS6EBv8+rPMq5u9692f/dNxJNiqwC1xPE9TCUgCsSdQWgE3XQD25lkG4CN2xmTcOXWBOyser6RN6KnGbKSbmQ3+d0OI1m2W8QzLLkI2sykrWAgJJEtA8vGGW/2Q+CmT3n8zS9wZwu2DCvtuZKZN3xkrLh36yCZuUomQSqGpY8t/25VfHVhw8z4ebGBtfLb0ya9PCaDc+8dGTvk2dsh6z7WzvowlXKUSWo9MJ15a3KrEP2loOr2Ojhw6iW6hf2BDdEccQvZGpaAy7YovSwq8kr7HGllxpd71rkS6G0Sf11sl9OvMK1+jwPPODxjUwkOim9CU3ix1wNjXDfmJSEn618Bs6lpWwUpU+8PCqLMY650zjq8VhCIP17NEKTx3eaLL+s5Pi6yJWaWjTHLR1jYzPSV9VF/6Ojdb/1kO3Mk3uhHC0x6gc1BjlKQ+nQFxTYdaJkZ7ySVxLBbhR1dsboNXp1tCYKW2LRaEzpYcIx2BKNxaL0ZaUnSqfFoiNhHKR/GkX6PWUSAaJelQaqZL1EpoHNsajSEyPSoJ9IjhIxTdjHLmwZvhRDOiFTY/YeQnvrVZmiTQtGncECXtFTBZLOVwwMRgoXHAkXzMzPn1nAJJ8jYSbMDaqN2waGLzNhih/bZynUBMpIWSg7VYi7DRx2m8ALkIdRCJwI6ArJx2EI8kaDWeTQKeAFk9fjl/1AvwktjQ1P7NjyMGQyfd4vjipX6M/i52D7Cq80kqlcxEcGXRr/FEcgs0u5uGgB4VWuMFfpdn2Re6Hi3PqzmxWKsz6+ae2Pn9hXXw/fqM859UiGC0oKYYILJBqJrsn1Z1E5qOs9rQCiUQRREjm8yJcbHF5cUJufX1vAHlefw0XgUoboS3ETfQlTxBC4SOtuE8VPRJTBSCQSjZCpk7Gqzu+masaZ2y7Zjehho4F3g82BNDkAHpORG4+OCS+f6JTPmtRn/PH1kch6d04sp7AQb25aQ/pqUyXeQ8vrebG8OYQdXOQ+585u0sdW9rqalzRURiJ+9F4MweRFrKUjl1GUYhH1A27WOHw5cTFSFPMo9EeUIGnQTZHIaJ7AHLaOKsOODaNF9jkBjYG2QEsQ2xjMUAx2bBEbeTBWMHwskBjngq56S/yfgkBnWBa4K9sqKtq2t1UI8S9He5XuBRbawAdatrQEAi30Aks2+LM8WeCbalVZkWNylvJ+dqJnzVb+OHlSoKW8nPCP7Rd+CcZ2DdWAGqJ2CBFOphgywFFCFBNtfAbGtNPBCwxvygHeYMZMY9ZboBqwq/pVrsbgN5tkv152ODlbMfiqwGMBgxa4Exz3QhovRIUp6acqZmQzRq0ypDXS2TPLT02YIkQETnOE445oOGxOmXAqUJNNG7XgupMjPq2ua9asrj5yY/yuKteO1Kx0YNJTufrirLe1mZnat7OL6rnUdCWenpW6I8mAnbsY8KWs1PuSovCW9A/Z25PQ24a7cNOqgmTkLmBMgh4THgc4b9k2IVv1/g/F5nGljwPLfOgHAzJzh45V/4+WenTzmMtR5Z7us2Tys909UHqrPY7KbckoxRvRHhmVc3cJGE97uml0R1S0jdULVl7EvZtDFVBF35N9cEdjpgmAiOlFZ+Dtoh93+D3zzHr8RRNZQhnCNMNbcegOvpEwZoL+06cJQ07h+th3fZ/7PVbVC6ngTAV/KoLFuO6+2KFcU651gEb5ugPSIb1D+Xp8V4+k3sEIGnw5mYe4If4k1lFYr6SCzmM2EQ8iWtmwjnBI9kTwe1TlfAmXh7H02by9fW2gsjKwtv0aaURKil4OdV7rDL1MXIFNrhdxohcZXYTnq47WisrKitaObbf5+yvkLi5J6lCNZZ+B6GC38VNBZBDidSS/+mSvh6s+srgC8pyKMvDtt+de3c9fU76ZPfuM8ud4Kv0fyP/LqfepMT/3oZxSqpZaTa1DaQYLY8TFsHYbWYsPoRhRWfL5eSSQbhUGgGC3YLbVMk6PitTFNGpAsNrC6D1VNBKgBHMejaiuRWEWGgsSDBTJjqWIl8kJLlsaLJ2tXDr6xGfT85bM2Q06a46x2HTgvdnV8z5YDy/27J4zt6x2VtkzjoYpkq36kaBr4eQSg7tyiVweWubXZugtadl58ydapfbORfKsDTuZ0OBgx4cfdjCf5tbWNITnL120fdOi1RV1C3uKGzNdwYLcMvZ3BxoPyTOCD1XvXTp7U10gWCVmTV9b3r2z0SkGWovb2hp9I89O8a2smlyaO8muMU+dRmtzp60IzAoFpjLr1n388boLyf0dRvxhsHZ0qbWqDkwqvvpkj4l0fY6EIXRi5sQSrAvsVYwXRy4qJ2EVtD1AN7a0HWth9ymvL1xc3WTUKK/TAHA/bXDVtVWfOMfuGxGZv4Ln/jVr9jc3j1yMv0tndmyt9Vq88Y9gH1wtLX3KWjot5++jWHgAoZZkQ14wGQ20Fli71UmKJAy4xKMSTGbVdybW7FDDAut9XpD5AzWrYO7zQ8qffqF8+Ynd/clrHcdyxGy3a/3+mfNnzC/cBsveTjnTvXf1o6vzOlZw7WtqtdmPK/Errz/6NNtD72zmNOZfbmYdTGHfoofqI79Oc+R2n1lrnL6pOm0Up7kwxhTW12Amm7WYkXR2qYrF2AmgmbAsxZjwy1xpg/m1Je2vrp8v/nz2xpmlBg4E9hrMU341wVpTOh/OfmGvAnra8q6uctr60ZQHV3Q+WMQJykMj8ZsWn2QBOmmHMB+m5pDIpTFonYigiaKAhGEiAHF7EliVnQkjoLVIMPtJpBKHYd3A8GYH9jJzrWwmHx5Qjp7vDAX0suGRym1vtm/9W1/HyR8vczfMs6Sk8DSv855/5dlX9oQq52hT8syyp2rx5Id17IAyAM3wIjQPMOHzytEB64q6D5zT91yNbnx3V/nqnd017S9Y0605k3izoXLpsxde2n38yoOV9s1LcjwzNjbdX6asnBVaBj/6/DwKwPkpcqbDG7BnsXoSqWnUAmottYF6jMSdVyYZh3zVXCjwTiwwHH6sGuRiEHQGzuRX6whZkp123oy1BWE2mEfJ/tvIRtM4ZM5bDXiMsPMaAKOTyc5uL57rqyyc5y5JE5pm1i2S2iUX0CcaQ6lC6Zog7JqSqZmYlosl2K6pwNA84zRnQW6SaALYZQGW5lhCtU/W34N6o+bKfZ8cf3/Cl/+iTX3wBzpOY4mRkeNf3rptycGSshQWgGbYt5jFc2e0+DglIrwl6DVWQ7BuwaJ3Xk1J4VL5urnLl/Wf+gHU/hZoZdKNym6lG+I34FaNeZKcSpJIo2IeCVvpdsDGfKvzJnAwmeD37Ow65ZWwSowpgwX5T69s/rB55dP5BcpgDKFV8p7q2sn/1uc93bVzT/w6UrCqDTWvfCq/oCD/qZXNoUj8BL5Kp6GU017frfNXkAtiiyf/SOCEeLqnd8R/Ql9GlCRfctS6k5chvIBuQ1zCCjoCHL2DHNHIXxMJ3kQeO8lbsUXONeSfA5EjcG6/E+KdhN4bP04vBhdi883+BFBzQbxFbvZzQeY9LNBZc0FNfn5NwfDn6rCTnTw6R8o+gfpf5hCom33cRuiTlss3KHmZjD+BPN+5gXuA2ziS/Q73mLxUkpbKN/eqwz5uK0X9F3h2d1V4nGNgZGBgAOJd776+iue3+crAzc4AAje5Bfcg0xz9YHEOBiYQBQA8FQlFAHicY2BkYGBnAAGOPgaG//85+hkYGVCBMgBGGwNYAAAAeJxjYGBgYB8EmKOPgQEAQ04BfgAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAcICGAJYArQC4AMwA7AD3gQwBJYE3AUkBWYFigYgBmYGtAbqB1gIEghYCG4IhAi2COh4nGNgZGBgUGYoZWBnAAEmIOYCQgaG/2A+AwAYCQG2AHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkMl2wjAMRfOAhABlKm2h80C3+ajgCKKDY6cegP59TYBzukAL+z1Zsq8ctaJTTKPrsUQLbXQQI0EXKXroY4AbDDHCGBNMcYsZ7nCPB8yxwCOe8IwXvOIN7/jAJ76wxHfUqWX+OzgumWAjJMV17i0Ndlr6irLKO+qftdT7i6y4uFSUvCknay+lFYZIZaQcmfH/xIFdYn98bqhra1aKTM/6lWMnyaYirx1rFUQZFBkb2zJUtoXeJCeg0WnLtHeSFc3OtrnozNwqi0TkSpBMDB1nSde5oJXW23hTS2/T0LilglXX7dmFVxLnq5U0vYATHFk3zX3BOisoQHNDFDeZnqKDy9hRNawN7Vh727hFzcJ5c8TILrKZfH7tIPxAFP0BpLeJPA==) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\F101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\F102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\F103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\F104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\F105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\F106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\F107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\F108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\F109"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\F10A"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\F10B"}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\F10C"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\F10D"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\F10E"}.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\F10F"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\F110"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\F111"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\F112"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\F113"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\F114"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\F115"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\F116"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\F117"}.vjs-icon-gplus{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-gplus:before{content:"\\F118"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\F119"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\F11A"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\F11B"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\F11C"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\F11D"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\F11E"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\F11F"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\F120"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\F121"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\F122"}.video-js{display:inline-block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:normal}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:none}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin:0}.video-js.vjs-1-1,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-16-9,.video-js.vjs-fluid{width:100%;max-width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode),.video-js .vjs-tech{width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs){width:100%!important;height:100%!important;padding-top:0!important}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:50%;left:50%;padding:0;margin-top:-.81666em;margin-left:-1.5em;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-controls .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:none;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),hsla(0,0%,100%,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:none}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible;pointer-events:auto}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;line-height:.35em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{line-height:.35em;right:-.5em}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:hsla(0,0%,100%,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster{display:block}.vjs-poster img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-live .vjs-time-divider{display:none}.vjs-time-divider{display:none;line-height:3em}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;opacity:.85;text-align:left;border:6px solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:50px;height:50px;border-radius:25px;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;animation:vjs-spinner-show 0s linear .3s forwards}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-6px;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{to{transform:rotate(1turn)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}to{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\F10D";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\F11D";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:5px;padding:3px;border:none}.vjs-text-track-settings fieldset span{display:inline-block}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;margin:0 0 5px}.vjs-text-track-settings .vjs-label{position:absolute;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px);display:block;margin:0 0 5px;padding:0;border:0;height:1px;width:1px;overflow:hidden}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}.vjs-title-bar{background:rgba(0,0,0,.9);background:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.7) 60%,transparent);font-size:1.2em;line-height:1.5;transition:opacity .1s;padding:.666em 1.333em 4em;pointer-events:none;position:absolute;top:0;width:100%}.vjs-title-bar-description,.vjs-title-bar-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vjs-title-bar-title{font-weight:700;margin-bottom:.333em}.vjs-playing.vjs-user-inactive .vjs-title-bar{opacity:0;transition:opacity 1s}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible),.video-js :focus:not(:focus-visible){outline:none}',""])},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".vjs-custom-skin>.video-js{width:100%;font-family:PingFang SC,Helvetica Neue,Hiragino Sans GB,Segoe UI,Microsoft YaHei,\\\\5FAE\\8F6F\\96C5\\9ED1,sans-serif}.video-js.vjs-no-flex .vjs-menu-button-inline,.vjs-custom-skin>.video-js .vjs-menu-button-inline.vjs-slider-active,.vjs-custom-skin>.video-js .vjs-menu-button-inline:focus,.vjs-custom-skin>.video-js .vjs-menu-button-inline:hover{width:10em}.vjs-custom-skin>.video-js .vjs-controls-disabled .vjs-big-play-button{display:none!important}.vjs-custom-skin>.video-js .vjs-control{width:3em}.vjs-custom-skin>.video-js .vjs-control.vjs-live-control{width:auto;padding-left:.5em;letter-spacing:.1em}.vjs-custom-skin>.video-js .vjs-menu-button-inline:before{width:1.5em}.vjs-menu-button-inline .vjs-menu{left:3em}.vjs-custom-skin>.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button{display:none!important}.vjs-custom-skin>.video-js .vjs-mouse-display:after,.vjs-custom-skin>.video-js .vjs-play-progress:after{padding:0 .4em .3em}.video-js.vjs-ended .vjs-loading-spinner{display:none}.video-js.vjs-ended .vjs-big-play-button{display:block!important}.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.vjs-custom-skin>.video-js .vjs-big-play-button{display:block}.vjs-custom-skin>.video-js .vjs-big-play-button{top:50%;left:50%;margin-left:-1.5em;margin-top:-1em;background-color:rgba(0,0,0,.45);font-size:3.5em;height:2em!important;line-height:2em!important;margin-top:-1em!important}.video-js:hover .vjs-big-play-button,.vjs-custom-skin>.video-js .vjs-big-play-button:active,.vjs-custom-skin>.video-js .vjs-big-play-button:focus{background-color:rgba(36,131,213,.9)}.vjs-custom-skin>.video-js .vjs-loading-spinner{border-color:rgba(36,131,213,.8)}.vjs-custom-skin>.video-js .vjs-control-bar2{background-color:#000}.vjs-custom-skin>.video-js .vjs-control-bar{color:#fff;font-size:14px}.vjs-custom-skin>.video-js .vjs-play-progress,.vjs-custom-skin>.video-js .vjs-volume-level{background-color:#2483d5}.vjs-custom-skin>.video-js .vjs-play-progress:before{top:-.3em}.vjs-custom-skin>.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.3em}.vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:0}.vjs-custom-skin>.video-js .vjs-menu li{padding:0;line-height:2em;font-size:1.1em;font-family:PingFang SC,Helvetica Neue,Hiragino Sans GB,Segoe UI,Microsoft YaHei,\\\\5FAE\\8F6F\\96C5\\9ED1,sans-serif}.vjs-custom-skin>.video-js .vjs-mouse-display:after,.vjs-custom-skin>.video-js .vjs-play-progress:after,.vjs-custom-skin>.video-js .vjs-time-tooltip{border-radius:0;font-size:1em;padding:0;width:3em;height:1.5em;line-height:1.5em;top:-3em}.vjs-custom-skin>.video-js .vjs-menu-button-popup .vjs-menu{width:5em;left:-1em}.vjs-custom-skin>.video-js .vjs-menu-button-popup.vjs-volume-menu-button-vertical .vjs-menu{left:0}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-play-control{order:0}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-time-control{min-width:1em;padding:0;margin:0 .1em;text-align:center;display:block;order:1}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-playback-rate .vjs-playback-rate-value{font-size:1.2em;line-height:2.4}.vjs-custom-skin>.video-js .vjs-progress-control.vjs-control{order:2}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-volume-menu-button{order:3}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-resolution-button{order:4}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-resolution-button .vjs-resolution-button-label{display:block;line-height:3em}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-playback-rate{order:5}.vjs-custom-skin>.video-js .vjs-control-bar .vjs-fullscreen-control{order:6}",""])},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n={defaultPath:{1:"/productDetail/",2:"/productList",9:"/articleList/",10:"/articleDetail/"}}},function(e,t,i){"use strict";function n(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,i){function n(r,a){try{var s=t[r](a),o=s.value}catch(e){return void i(e)}if(!s.done)return Promise.resolve(o).then(function(e){n("next",e)},function(e){n("throw",e)});e(o)}return n("next")})}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){if(200===e.status){var t=e.data;return"0"===t.errorCode?t.data:e.data}}i.d(t,"a",function(){return f});var o=i(7),l=i.n(o),u=i(112),d=i.n(u),c=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),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"},h={lang:"Accept-Language",contentType:"Content-Type"};d.a.interceptors.response.use(s,function(e){return e.message,Promise.reject(e)});var f=function(){function e(){a(this,e)}return c(e,null,[{key:"call",value:function(){function e(e){return t.apply(this,arguments)}var t=r(l.a.mark(function e(t){var i,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.method,o=void 0===s?"get":s,u=a.headers,c=void 0===u?{}:u,p=a.body,h=void 0===p?null:p,f=a.responseType,v=void 0===f?null:f;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=t,n={method:o,url:i,responseType:v||"json",headers:c},"get"===o?n.params=h:n.data=h,e.next=5,d()(n).catch(function(e){e.response?console.error(e.response.status,e.response.data):e.request?console.error(e.request):console.error("Error",e.message?e.message:"")});case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}},e,this)}));return e}()},{key:"get",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.mask,r=void 0===n||n,a=i.external,s=void 0!==a&&a,o=i.headers,l=void 0===o?{}:o;return e.call(t,{headers:l,external:s,mask:r})}},{key:"postBody",value:function(t,i){var r=i.body,a=void 0===r?{}:r,s=i.module,o=void 0===s?"":s,l=i.method,u=void 0===l?"post":l,d=i.mask,c=void 0===d||d,f=i.postData,v=void 0===f||f,m=i.external,g=void 0!==m&&m,y=i.headers,b=void 0===y?{}:y,w=i.compat;return e.call(t,{module:o,method:u,headers:Object.assign(b,n({},h.contentType,p.json)),body:a,postData:v,external:g,mask:c,compat:w})}}]),e}()},function(e,t,i){e.exports=i(113)},function(e,t,i){"use strict";function n(e){var t=new s(e),i=a(s.prototype.request,t);return r.extend(i,s.prototype,t),r.extend(i,t),i}var r=i(1),a=i(32),s=i(114),o=i(38),l=i(35),u=n(l);u.Axios=s,u.create=function(e){return n(o(u.defaults,e))},u.Cancel=i(39),u.CancelToken=i(128),u.isCancel=i(34),u.all=function(e){return Promise.all(e)},u.spread=i(129),u.isAxiosError=i(130),e.exports=u,e.exports.default=u},function(e,t,i){"use strict";function n(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var r=i(1),a=i(33),s=i(115),o=i(116),l=i(38);n.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=l(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[o,void 0],i=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)i=i.then(t.shift(),t.shift());return i},n.prototype.getUri=function(e){return e=l(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],function(e){n.prototype[e]=function(t,i){return this.request(l(i||{},{method:e,url:t,data:(i||{}).data}))}}),r.forEach(["post","put","patch"],function(e){n.prototype[e]=function(t,i,n){return this.request(l(n||{},{method:e,url:t,data:i}))}}),e.exports=n},function(e,t,i){"use strict";function n(){this.handlers=[]}var r=i(1);n.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=n},function(e,t,i){"use strict";function n(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var r=i(1),a=i(117),s=i(34),o=i(35);e.exports=function(e){return n(e),e.headers=e.headers||{},e.data=a(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return n(e),t.data=a(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(n(e),t&&t.response&&(t.response.data=a(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,i){"use strict";var n=i(1);e.exports=function(e,t,i){return n.forEach(i,function(i){e=i(e,t)}),e}},function(e,t){function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(e){if(d===setTimeout)return setTimeout(e,0);if((d===i||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function a(e){if(c===clearTimeout)return clearTimeout(e);if((c===n||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function s(){v&&h&&(v=!1,h.length?f=h.concat(f):m=-1,f.length&&o())}function o(){if(!v){var e=r(s);v=!0;for(var t=f.length;t;){for(h=f,f=[];++m<t;)h&&h[m].run();m=-1,t=f.length}h=null,v=!1,a(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var d,c,p=e.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:i}catch(e){d=i}try{c="function"==typeof clearTimeout?clearTimeout:n}catch(e){c=n}}();var h,f=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];f.push(new l(e,t)),1!==f.length||v||r(o)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,i){"use strict";var n=i(1);e.exports=function(e,t){n.forEach(e,function(i,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[n])})}},function(e,t,i){"use strict";var n=i(37);e.exports=function(e,t,i){var r=i.config.validateStatus;i.status&&r&&!r(i.status)?t(n("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";e.exports=function(e,t,i,n,r){return e.config=t,i&&(e.code=i),e.request=n,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}},function(e,t,i){"use strict";var n=i(1);e.exports=n.isStandardBrowserEnv()?function(){return{write:function(e,t,i,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),n.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),n.isString(r)&&o.push("path="+r),n.isString(a)&&o.push("domain="+a),!0===s&&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(){}}}()},function(e,t,i){"use strict";var n=i(124),r=i(125);e.exports=function(e,t){return e&&!n(t)?r(e,t):t}},function(e,t,i){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,i){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,i){"use strict";var n=i(1),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,a,s={};return e?(n.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),i=n.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}}),s):s}},function(e,t,i){"use strict";var n=i(1);e.exports=n.isStandardBrowserEnv()?function(){function e(e){var t=e;return i&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}var t,i=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");return t=e(window.location.href),function(i){var r=n.isString(i)?e(i):i;return r.protocol===t.protocol&&r.host===t.host}}():function(){return function(){return!0}}()},function(e,t,i){"use strict";function n(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 r(e),t(i.reason))})}var r=i(39);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var e;return{token:new n(function(t){e=t}),cancel:e}},e.exports=n},function(e,t,i){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};e.exports=function(e){return"object"===(void 0===e?"undefined":n(e))&&!0===e.isAxiosError}},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"hotMain",class:["hot-main","hot-main"+e.uniqueId,""+(!e.showVideo&&"video-ani")]},[e._l(e.pageData.popList,function(t,n){return i("div",{key:n,ref:""+e.uniqueId+n,refInFor:!0,staticClass:"hot-click",style:{width:t.width*e.proportion/e.clientWidth*100+"%",height:t.height*e.proportion/e.clientHeight*100+"%",top:t.top*e.proportion/e.clientHeight*100+"%",left:t.left*e.proportion/e.clientWidth*100+"%"},on:{click:function(i){return e.clickHot(t)}}},[t.showImgStyle&&t.showImgStyle.defaultImgList.length>0?i("div",{staticClass:"hot-click-img"},[i("div",{staticClass:"default-img",on:{mouseover:function(i){return e.mouseIndex(t,n)}}},[i("img",{attrs:{src:t.showImgStyle.defaultImgList[n].resourcePath,alt:t.showImgStyle.defaultImgList[n].resourceName}})]),e._v(" "),i("div",{staticClass:"default-img",style:{width:t.showImgStyle.hoverImgList[n].width+"px",height:n===e.hoverIndex?t.showImgStyle.hoverImgList[n].height+"px":"0px"}},[i("div",{staticClass:"hover-box"},[i("img",{class:["hover-img",n===e.hoverIndex&&"hover-img-trans"],style:{width:t.showImgStyle.hoverImgList[n].width+"px",height:n===e.hoverIndex?t.showImgStyle.hoverImgList[n].height+"px":"0px"},attrs:{src:t.showImgStyle.hoverImgList[n].resourcePath,alt:t.showImgStyle.defaultImgList[n].resourceName},on:{mouseout:function(i){return e.mouseOutIndex(t,n)}}})])])]):e._e()])}),e._v(" "),e.pageData.type&&2===e.pageData.type?[e.pageData.videoUrl?i("video",{ref:"videoPlay",class:["video-js","vjs-default-skin","vjs-big-play-centered"],attrs:{cjdofd:"fffffffffffff",id:"my-video"+e.pageData.uniqueId,autoplay:e.pageData.autoPlay,loop:e.pageData.loop,controls:!e.pageData.hasOwnProperty("controls")||!e.pageData.controls,"x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","x5-video-player-fullscreen":"false","webkit-playsinline":"true",playsinline:"true",name:"viewport"},domProps:{muted:!e.pageData.hasOwnProperty("mute")||e.pageData.mute}}):i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]:[e.pageData.pic?[i("img",{staticClass:"hot-img",attrs:{src:e.pageData.pic,alt:e.pageData.picList[0].resourceName}}),e._v(" "),e.showShadow?e._e():i("div",{staticClass:"mask-hot"})]:i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){var n=i(133);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("22c5ceac",n,!0,{})},function(e,t,i){var n=i(134);t=e.exports=i(0)(!1),t.push([e.i,"@font-face{font-family:bqCmsIconfont;src:url("+n(i(40))+");src:url("+n(i(40))+'#iefix) format("embedded-opentype"),url("data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAADOIAAsAAAAAXNwAADM1AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACNSgqBlUz4bwE2AiQDgnQLgTwABCAFhGcHiT8bAE11hhxsHAAs877NIipW8SjqtOQEZ///1+TGEJEtUKveHuVEqSc8G7aDgle5K0xhQXB7GyabHZaNRVuYTLw0ysywox+YS6MUK+h1i6rNJZwyfrWXYllRCzc6ChUbZh90VyzsmHAWEkZ+uE83ysT2QJcdNfvzHGmSHveQpGhCVav/5Uzv7L/vW3iEhvAYjZAgzBcSBbJaKCTx4CFu/qtNnXcBBjr2ANLP8PezfUt2/iKTVbSivEcNTSm+ciKO2YQyab8g6qX6SQkPj2PtbbczSFoK0SoJGlGja9OPSaJbDFcaYpEAWNRpQQE7ViNTWrsEcFyDc9+G57f5fy4qAoKUIiIoFRZhoyKlYiEIVoO6Mmrb3+zJqq2t3abubzrXLvupz7d28bYXC128WnvpLCNwITqkiqLh3py7b5362P4s0kpaXmixAmned2lJyaKUZcnOpLQwFGjTLqa8DJIVum6ws8jzY//av7I9ULrtsEPlCZfB8N59Xf7TAzbAAMH/HhAA+I8Mh9qAuv0I4IHnclqAifY+AN3RWmDR0rlEAk04K80yiywADbArVbMVPlKOlFOmPfzQORSVXVTuyr0DFPYAUgSoBJIKED+B/ECQ/yNCeseYAfID8BGQPpCOpGPoYihDrFy7aOpUxbp3ad0EtNENfuCgqWar7w5fxrQauDH/5VLXnRFTxNFN9x7Gpst2eSNRcChtoGzz7xBAqWmb4vCP0THGOuxvMmW864C/2bBOSzP010Zm6AXFeW77tPTDGnzE29gC38PPhz/6EiJHlCo576XrxZF5v9/5Om1RqL3ymNv6DuB+BAkYGO+xNq6aB2H+RorH40wp993kdALaVTPln1EValRcv2qJVmuThjTsaB/x5QIBQ+dgnya90Y9f5t0K2nWrbv/w6y2Q/7ZNrSYzGl2ydeowZdqESfcWq83ucLrcOr3BaNKwHMrkCqVKzRcKRGIJx6Yt61bNWbNi2YJ5DWrUq1NtVpVKPXr16Tdg0JBhI0aN6bKkVYtyzcqUKlEhMpkkVzQWf3iLCLWcnC4HZNNi8g4BhG4IgjYIBrUQBpogEsxA7Bg9rQK4hJbAOLQaOqFN0AEdhCloEKahIZiAhmESmoR76Ak8QE/hEXoGT9BzeIZ+hRfoBbxCL+EN+i10R/o7wBX0B1xDf8IN9ApuoddwB72BC+gttENTcAhNwxH0Do6h93ACfYBT6COcQX/BOfQ3bEP/wC70L+xA/8Ee9An2oc9wAH2BDegrbELfYAv6DuvQD1iFZmAODmANDsEKHAbLcDtYgNvDPNwBGuBwqIE7Qj0cAXVwJFTDUTALd4IqOBoq4STogbtBL5wMfXB36IdTYADuAYNwKgzBaTAM94QRuBeMwukwBmfEmFImwBKcFdO5lA3QAudAOZwb06spD6AMzodSuABK4IehAn4EIvwoGPwYZPDjkOAnIIefhCL4CBTDT0GAn15jEcCH/+AXhLEbmoeArj3gtfEhDNewkakoYVIcJ1GMTakAUXhN8vVewEybEkHJ+jix9XMgsqx8krRxJile2ielpcamXFBHoISykVBre+wYpVy2dcJgJJgBEfgSalZDhPBf7LJFAJJ7rVkDIBHWEReJBy9HMfrTDZUE8EiURwxDgNqLXq+tS6oxrf5Hj6dRBGAYUCmNf9lGB1AilADNfLkSZR+ecgSJCKo2cb4BcFZhVAw9pKBEAlGcZcatAaYdZq2clRIKSwNWbTcFs3aGqE6RCsPgqirYYcJc1BBRSItpWbb692pjNQZn+IqquzIPazFIL+o8WmHrTgKW4JynGo9MNEs62XrROX37sptbnapiLN2QZci4q1nOSq+1r4x9BqZrt8YnGZGiim1xuB5zMfry3fOMRwyNiTBBQA/hMA771ipb3bhNbfVX1WoPNN++NDFBJJLkigalqLr55kxl9RpKzAbEtLV/ELKHU6sO1iczfz0CbYYADZmL525ZN86sazl3+rp58yy3oggaDkPT90F2QTB6L4LIDbMGzDP/Q9/UwtXiq2KOB58tB28BJDW9jkP1jAay+Cka3Ztg7yIS9yIr+CywYz77/J6ItPDzFaiJHbdZKl+8Vc4a56wz+umsFQR6DwbkFZSLco1FehBGYQ42elF/mxcOWf5H5bZ/5iWMZ84mhXl9LcN6awPku1kTserrPA+08lMiAztNs3jgUXXmhxN8yVw1RBRj7AcYybO3JmuoXKnLIJbMFWP1sVc5JCvw7Oo/vCUGLIzFlFUH6EqLNS4gFJQJJ/My61GbZWi1gCcK1AzmjSJfBHPtF/OmQVldv861a6Fd4fsz19E2cWAXu5jUBpz9uBAuRPfWlNsGRXMcZLPk4cLrM2HIQE0HIb26JMPSZjxNPsP5UkoAH4u7vWtYt97g9teKYxLWWheLLjWQC5dKpI7SxlKFa2QfWvHwIS9OhEm1xcRMXZMH0uzI8cvpCblP308n7RPWKTXjHdswVDzQONlfO39x5d/Dq5cuLP/3UPZxpGpxddnK96DPjeGx/BLyuJJTqZHWtGVIwtCIIi4/H74/aF6e049csa4dM45e/Y+mCc5HNCE4y2BA8Ai0WVy3lrZhWB3Ja+bSlVmLeuRceJ3Fk+HHoSxSsT7EWPmVnasfRPHJv6IvxKSGIZommLbySPTMAQVa5g1e7qx+C1AlNqSK6PNankCB6bcBiyQk8JFBeqlSrzNq4yftsldU/n5Urh6Fhl3LBtkt41hXXaa5y7+YiuOoOZKzDOv1EsusfBryZESWFKegQlZkHM296L/rMzluUbsdjLvKGIiXoPrT7J64Jk4JqGrWWEH27jHIZ28i2bG0uWLGj+5amdmvLScO3sK6c3qLJCpvDXqClF4+SfSwi30lAqu23Q6UXHzpAg+wqhRD22w5dGMhiWQJoKLGqV++fYRtrBzrXcU6P61PNZG9qeEOWYI4kE9ZJ/TjX9cD1YTb+dKndaAmmX+4XVYlJ6k4FVmqgkh9tG2pxdAbCg/088x3YufuXV/w3doXjwLBJ8RjpqbytTcBlqxlBuSklWkk/4VpRugpZ0WxZQVCbFOIyU2CMA0TFdmqTaZzJOiu0VQ4+wskJ9vYjbiU810XlbmN6kVxYSZVGb2/ERp8u5J8HBERYHMWIgwyHpZGn6w+V+zQENvk4iWU7M08QcvnpzcPDn7r6hx5biiR/NNbtOY7ef3I3F/j3Vpa8Iw2rjVOHk9/yr/wDh7ogpOOFNslQEw7NCZ2MmXnNZ/u0Hb/zsVB0Xan1tNM2y2AYnynLzz0WFbV6c7axxTlatiRpfxRkQ2CtidwwYmLaBMjUI3MX8xxA5bkYsg73Z5rxkvJSkf50uIsXBDlhI3h4ogXvQRK8eP+5qlgS54ubDr63OHe2Qw+HZvuRN2W39IBCbfpHOjgtWeqb+nN48mT2xSn4yi80jsbvVJN8Uq8lKZEFbF8p53IJ8qp6uKaYsf/hIXJbaSNTQWeB0lfF5Bv3+enmy+ef/virvmXyvjT7sXe2edcxYD4OngFXhyxKIBj2dy3P+YojX/XuGp13Y4ErMMjYdt6fVtaQtPinzvwiAnaZsJC+8psqHdhcpxsqPTXpHlM28dMYjoQFUvHKqJ3amn85tn6jHH8iguBfvq6BvS65UHM/KgJi3Y1QFkMyLhuhGQSOpZWlot/NzC8NuSVlVdd9oOwRNYoJIRrtH3xcaH3CACfgXR60oBuJMl5pATBJxiz7hl3zdv6Hd5Gsj+7nU9QumVQXEnRQENUPqrEg0q5rRMmK3qiVJwB//K+Mhf3bwZWu4uRwKw/kWl3tShE1mdiNdLqXoKd4gnwuJ+3DYj7kqGW2GRFrnRIp/XEfGBF26vdLsTvRHV+/P3juCAmFRkmdWYAsutcpUy4biiN5EIO2CcvAvhYsrrvv6mdutWL5C5EvodpoQCLM6x3AHcbhbUyb4VgDFr4AWA8osGZYC2mACn3oXsGZMJhvehCdO5WFHR61xIDj3pxWwSPDcrSoeUEh7ySxPbaUjsQ1VW7M9vSBzqo0cVZY2YBmXVVWZpT+vT8hwtdM0avtx0mINAZeGIWe7arkBgXjitcZOqqxP7wm23n1pkbrzX7ZvTFcYSgXDXL84xGA8mSvpy1rhzJJM9dnqsLjRlxyceuzWWRAWjDRPcgOyNZ9MC//SIpG5ISNSqaIAX5IHIls1LQM/J/LITUtLLPWjfWcb12vNGhPVqpGbb7a2TEvLn+fj73ys/Gm0+9Z98OSdLNPmkqN7d1KSvrZ4xztzp/N6p6r3CzRIg82aEU4vNRxE6bdpYTcK2rdqurkBuDiDBeywYPeKnxSkDfJnKlnhzxin6C/xha4jA38nuLuz3Vg7Sl2NOKKLBlOIh0bge6RWoilL41K8lithVFY5RbmhmG44aDLLLT0j0mUvdHw1HGHMJkzrZVMcrGnJLM01GmPfp5Sy9gjI7SJ1ZMDXXcdWG3KRuqaBkTwj6PbO3nuDr9+Rg+04HsqXZ8dhzBNU9DyHeRVj9IdncwnV2D+nd804MWdAWGckAPQtPvybVLUGTjrQiygrNO0WwuzEBWi7OLWrI/Zo/4ECUKnblhRecKUU2z5mM48yA+u5jVYiZYR0W9giKBIDvo7UDS+5CacaxRBA+X7jND+eN/36d5WQRvrj9gRVLk3IbD7Ov+aBKmkcdGq1LEl9wkZ/cJ5TBEkfR98Ab+0PYtSZkpioYQmaMV4rEY4tNBPdwAnOCg6KUB7gmcfCw/ogXNcYouDbhl5yQ3nYKrRuLS9kVoCKnxYTN9p2YmsImEa+cl8YXpNqmXuj3I2xYgJkzHmNoG790AkV5i8idTgVJYtVPV7sXdEhl/7rBPofMHch6x1HddM5MLIgIjreXUeYPJUqWgHttQVBxS+lE+vZ3I5ulD1Far2299cW9EkMl5EgCRfZGbigYNOTbH+dPBvtYdPOblOTlihu87hWKVXulIIh+UKfj04XXDlxYozmS8lrFA7RlcypNctjHciitBttFV6VRLJjWlocD6SWQlbpipcSIL1sMkaSQetdYzBV7LjdOd9ffqifeuJGiZwlqijEm3V7eri9tF1A3vds9Cc6G/xt5txgndm8jKNqWibFtIKuG2StdMbqV6vW53UXVTqWufPIpPYdITdD7BDXIJ5c5pkE/31AYd2TlWrbvSuG15a/pRcKS+n9RhBKv6zO2gqwLP5ZAosYR1GNrSgr4vHqvOwnWkTlVH7EtDEBnJKrG6uAa7nJmM4X1vQ2WBYywAYT5HYtUUTRU6iE0lKW7Y02qbkEgwrttUNkevCsNREJ5Z4RYYk6StrmguzkWSBJq0KR5rtqvCNXMTeWZHw9frFCA862W6Mp9NTH76Y3rvF5Nnj187Jz7PkKaZLc8bfV8Ow3E6inCPXPczECwbBYTcQObalAvXotSWhGG1dYksPBRdKgazqtqFaeKjqBuq2tpjyOuDthZrAl/b6lO4YvdbB8UYHj1CgNCPhX3kKB3npvcIzI9yzLqzjmOtt/fnekg+OgYLsymMfO8V3iYEDOiUbkFVHWJMag8XV61QpHirC7PZzp4vz0zy70//EX9nedYt2zb5S0pUV5TBMccxXDX706hN6cCPrpqqqtcCHmzOpWt9fU0c6EWLtncvGnHFF/iR4HRfWm5RNPgemLWnJTD2kSfvCBoUataMhdt6zVQ0Js2GoQrNMTyLDz9r2cf6hwoLKDGvg4hN2rTFzVuL0DTUTPFgHvFJpOhpZEW2lNkh18liQduBWLuvZyo9Ea/FayKpRItXupS9jU0z6w+YJMNwUyLg1KbvXVFKjQRu4PUoy9KSoDaiTYl2etbwmkry2kOTvrmAeC2/cbKewNqdmV3TEZjCUENCsJ0aVx1/kagEW/QGdmJLEklQlDnzEdNttfrJFUwfe8iv/7+vpDiKVlBdTU4wu6dZqjp+VgvL00y3cwNzyxTExeXINllq79eXcfhVm15hPE1JlbCPnknCuqrHV5twVXxTs+r5WqmhKIan8uI4o3GHyTI4CHnFpMrHekrFJXZb4sZMQqeEG6x8tQljlYbJfy69xlUojoQLlB2H7atFMyaVyLu6G6VVo7KnnpUZNpNOUmFiJfzwJ6mVZxyUSwIRk6NbtBIpoTUNXgCiZ0pDx8bg03yOHAtO3EDre+6GOdQnLheb53ZIIuNLPjLKOr6/N9B0rLDmjAaruPYJ1ym1T80eULJGGL7NIKZcxlZHwi77IDYCC7Q7DIYNesBaPwy0RqeDt2z8HOs7XLvVe2zMpGIUPwvGViNMT1gpKKMx+IiJK5hkSYlEJE0UZYDinwMjLDcUkGpx9aEyiQbRzB40NatYUL41V6k7XSf9slc/jTLoeKpIH7v1yjMDEtSAz/vT6ixvpB/wo8qRGmN+XDbjyslNylkNvn19ZdhEd1WhzvZvA6OOxIa1uLySKs8zSsZaBr/06Pz6kFdx7P4utzHldT3NamaX1jC6hWeNxOZFn0RW8Br1G6YSJdKc9d0MRc92j7X70lKSkCsKw9FVccSj7bPGqqeBtspUh5B/cGn62cTn41W8mDcc7C2qrmtHnWL7Y/XEgfUHNkRvrG6vptw6AfvWBVvsWHHNwW63Wicytn/jdH5zfX/vHOg/q5D/rdBVSpJbm4tBJ6WjOF0zHUefPfBcs2fp6UN8fwzWFOZ+K/BGcmFTISPS1qc89Oh3kAzKMo7JjET8nUQO6swCO7Dy9WWQNNMaaNWo3C8e+RWmdUsJ+Gu0itCUwPYlq6rodlUPayesSZdNtE/tYEzm6hidSxmHeg/6F+5+FWlGRzFXgO68XEkiicclaeXqz23Wp6OG+KQ2ODDL+Z/LWOZcWxXshyTGRp2CtpHAyBXbPvKVKR1pe/WTf1m391qAMyEyfo4cwh4ZwiD+3UUWHBH56uzXf5Y2/3rFOeJSHmEMYzNi6zYwG3FIo9yWhWGO7kazZhadBhibtzhqYTZAgfnj2C02dwDLoWssoLgfefA2Ki4a65UDN5E050D3gLv8IsMmkd009rLqDYiUHHKVg99ZuPTsnuahLV8SdZuXUbQB8izWeozmQaxVb3LEWpt/eu3jgw/8N9oB7aF6Jx4OaKpmI/Ytntt5In3Lkp/4++9Yr/vpPHb470WN8QxfFx5m1wSGiJC8/wzyriE5J95Ug7BzMkIHHkuwEbydf2SGDNmiCEsJzoROwhdRND+GH8A4nJWaJX6Q+gCULHFznftC92Ku68PPS93LuctG5EXyUEuEW3iotUheZ09jDXeLCLXUJ5zFDloe14uvY9The0ESV8NR/qvk90TxFVy2kqvR9+KtTKv2bAVxVK2Hiv3/8uC7ij68lWXF78LVsepwfYq7f+3ATDYCExNDLiTnqbbCMxCwNGQTjxMgc7rriQkEnUPPqV86y7vaj7U0VXBnLIn1QSvdwIgl99P7+OizrJfNqQf7LnAcX8XBVPNlE2TixGslJpSedm65yrM9zaHVIaOl6W1oCYsOU79g5pixjX//Czo0PMhKfXpgwNlMQLeLmG+VF4WGFsmtHwmCOX+r/KPmUB9VksPL5K5cyc3k5Yw6OPgNZ3JzeKNMxaV0a7iwTkORV8gpmnqh3AresNwtFKosWBsoi3SvPZWpqRQLxUMtaCFv3zudaK4jlBL/sS1vguPnE8yLv6cjZBGW4v71l0XoxDaY8ctwprsCO8E32F67vYtgUN89rSYfE+huSNUX64PnhVY1LwyYK52VlWROnpsnb4hsXdeptkW1ymaxqJFULfo4O2JKOB09SxEaVuiXEqfy5ajHWhVmb50wGnwqS0cMIALIiH2OcYguRwtqEuUJt2Vx7Ef8h+inro5xjh1wzCrEY6Sn0zsK8ecIV1o/RgCZbl0x+mY7pDKh/Q5pCDSiD7ES+RihGkA9deovWscnHdvgXYh/Ef0IAMXclNh5CHibHWKQzOi6Tlqn0YDCSJ0xzipnpCFZYi0atnR3Uvt6mnOAwq4RhIVkh9zmbsvI3LlTS8W7244d6yDbysvbKa0G5KPSLntVQYiqUYeFrluPHp58yX/xJCtzMoKfOHn4SG0PDhvn8Gl68dBh67un0z++Tz99N/39B7hddO9wnSTdJE25hBXfdqWgP08JptLSbkvepAddo18j3X3d8Qe4kCgx+vsbiwiSiuKyBqNYzPakjcnHaHLfQ0ei16U0GkndLOS9P+oU7cR9jyKSOo32dOm62NyVo+PEjohZO1c3F8TqLjOqhS722Drg/3Oxod3AieHrshaFVvnnZWRotfmqmnTZqq1pshrzrNVmZPjnhVYtyuLruDHtBr1WzeienOzuY6qYb8fhWJXg+YL8cItiVk2EON8UGCBM4zPjvDbmq0gkMwWuboqo+b9m4ZYF+StjfeZsPwiafpgm9HsWmfYS2vHf8O2EXrwNz0vp431bxMKzlocfvj4JCd6+ILRxfPnqTs++tSurarVnZ11VRU3fqBrTD0L0hn9o1EEaE3ETfxPBpKgp/+CfOybyFuEWkkkbRH9McRCv28Z3VtCjAuekamuyd2GqUGOHm6U1Euik84jXN4t03eExlNUOWrMdpQMTetTbRJZUufTiRadNryAL4aNMxvlnJWhzLFImBQSaM1011jja1TjH3dEAMNeCyGYcfYoeITFQOTkvuQFn2AdPRnaddbkT4KcLOc3klqcz+YLBBakovR0DRvAFlsAHY+n+OqDflLkfaLHXP2jqkbgLvyYIsyVRTmPE8C0ranEWfEuZKkjKeMvYIs+nTzIWMCbp+fJH7QJcLS4/uRaPmb9gUMD3uL4/YP91jzWrC2BOg67JrW0b4AgPiQgnjMu1+YQCW/KeFVuKcRbclFyxGLp98b/2llp1z2gtqTaQUbU5fffyo9Sj88ggpQH0m8JqqneqH9RP3r378qVblX2Ija1rb7+l19dx4Fa9rf12Wb++rQ1MNJgFBr6Gp1pOx/g7DeSNp+JrDMKmknSZWSIxS9NLF4PFpeudKDGbJekyIBXdpZ1Dh6LPAZW4sa7shA/cDqC4HJnkrT/uboG0rqy+TGWsXId2yCtoKZbIOFyUPdw1ZEldWW3ppkQSHCCjOQuglOYCRzh6Xf5eqL504Rxj/jo03LGgOUUdEBCEdHDkBlf/8Xg5TK8/wfzmzjvotLPSqHw42iEi2QOnUK7mwWjfr+UOR3LscwwvSu1W4ODwyEU7KVmMivUrN62Y+yvrD93Zv6kg/IJKp4OgNXM+FCVlZSUmgQuSC7iSEisWG3potdA4PTY2HRVVsa6uPRp/VIrRlptrGxkfG7D9848NhCckPV29yhwbx10Qj4OqKmZpydv7Gg2Te0gtJSVMX13MvXuZnp49W3bvtv32m23OXGZ9fb0jrONjP40yuwPMrtJUSaqZCRLTJ08OS1FSNWp4R6lTc44EJdFIMf3xQ48cah0CnQC06Fu6fG+lrTv9oOcBz45V2j6s00t42ZyMFcszuNm8nwj6t7R8OTeDl/0ljhoEkstRTONZp1e7UvUXVoYMxYmXLiODvBNPFu/5leDu0Vs8pnVmU+jE+/HBeTpQuObaFM/6M5p3ZoSIMWr3yMZwMC6FyKcJkshuK4AGiYHLeuoEY0O4GpsbmL63Rgrp5sWH3CfQQbq2+gr9xtyrPiJ2aeJ5wYrzUdadr9BAYNjgiEFJrpf8Sry2oe0FoVKgp7g9R5lrhFH/uM1HOq1aDrepOds/kut7pBhM9ArgmOTe6AlPUhHHqq0biyK/zTv/+bRrybVFNz2v1miDHbAAWZXAdbntKnO97fJ8uzr4FP7uKxkB97xcivVPDNMZ7L1RmBjgzJz9OYsBGIIHKWQV6jBMTHIL4qf9/upyjkQPqCNQwJAzxX2Ojx37EDNn6BxMNqIVXbn9rFsu+ivYDIrMzJ1C5gDBRjDhowADA0zhzvhfzHgby4Y39zX0g0a8DS8UmLwOs2k/7iSVrOgPzViHbi+pCikMzs0NLgz5nSAYuI//9/dc6p5bzFuPJ9PiJsvGuvn16ynmqbLv5oIZu/HxTmICMY64vZNTWZngEkcwaDhER92rQ0LnuA7rHBNLKSTnk/NcX7e+yD1PAeAQPZhHzjfHxGJPsPDReC3aM1N8E318EjN9khK9s0QsIZsgFfRPDKDF4Sfdm2dh7DGzNr/xMI2YsUeYAqJYtcRBfKK2mlBdVq1I1FvHTkd1f50nPYCG+ax7mTMN4xks6y5vpzxhw+8wdOV6ETo357AsghjNjJb8ghZvYhQUVNr8+5z6ehWxmJdrCraag7m5xGIVSEkxm8wDv2yccE1oDZhNmVsVA2uLL3w3MCswUeb0Az9z5G/yEloemTn/cMrSxxMSCYcWCPVrnkMlZmc7/cDlajhZDAzILKlm93T3UYJgRBkNktMpbRQDGBqqVPPJR62QVGb80UOTSkHo4IBcWpIR0+2hN73xL2Ph2f1sPGsxypjbvi6hn6BelHEx09a4Ldm/VIcWBOXlBRWE/ungMHCbqk0T/Y39gr6mLeAOi7hKzmr7+I+rJjPsRxRNb3T49hJMIu21WvUM0mL2aZFKkk1dN7phAghBykS/qf+swF3JJDVpgMLdvmkUng9IWg2ocBG7VIDwZBGoYg5ws1h8eXxu1OFhCneoaIibMgAGUoT9mDMAhL+Y49ZBQz8LzzKjnGLKqsFdSV7wttaYjijWh+WC/AcZPrLALPGqIYGKz1Ml89QqnsFB5mSeSsXnm/Cjs53bKN5DE6AGMjsRDX2O1riegMq65k3CXX9vtcHUiBxBou+YIGEMxy/KyUCJ71uY7I9L/eCAq/YCGV0rTKLDWejhUFLoMNp3ujT4RJLeeU+rl/kdEBtFTAwOfK2phzbiwOeHfhG+Dpf+wQ8waLgh5jm88Qz7hTzG7j2sa+SEb8lGykacV8cT2Hu7GPkL9oVZz+ALMSIFU1bKftI8yPpQ7nrDhXWmvs/mmQv2frn549QZlsuNlWX4Jfh0KMNfOvip3GWEP8I7xT/ld35vIB1uBR+eJ4RtFhY2PszkuD68JE1mEq8+Y2mjnFZiMknSpKPTmiVikyxt1CQ2m8VpMqvXEHMNZLZMSDt77J0p3Sco/Br+kqwmBIxIGB0jNMcKhbEi+ryLTGhkCwkfiGGCbabgwJzcoIqcILVVOMuJLYJyKoO9Rbo4URrA29NFrisJeQtpMlcR8RRyDnIAMRfP8Ck6vFQ5eKa5uT24Mq/h36rFsoV7t0QLWqpI8/Iq4dWnzVZxlcM8fVWhX2/riQvbXS/yT46lygO3xTg4DAb50y/cSS6DX9nf+9JKZxzU94J+NcpcW9tvdrlNtMTGWlzMS9osxEnd2l85Qk7zbf918hd4HR8pkLCaJ+69PKJn41jXWTj2tcmrwlDOumhCJ+EasYNwndBB/GeomXNnz+6ztwaNdiqRkZZ2zRwyistRKDjx//TGc5Hu5ZsIHvtvBD7c7+FE1uze4Nd6KYD8GpX2L0Q4cXP/iVdwkrgopFBYkOHWOiYmqkSGamrnf74VRDDXE8JdORAMSto8ZxX2IHbrnIRNsrAIAEM4WnlcpZLL28kra66SF3xofeJmADsIg/RojQFrJHmUZScoOyn7uil5UtRxpyeuT5yOo6Zdp2M21TQY6snqCXQfZbl8KTXV6noVWUpLLa61d+/6aKdAg9dznpm3i2fixfGKeb2oSZdJVG8/7cDlxXHJD+4SK1FwuM9Rk8TJoMWoKdT/c0AXTr25jJpEXSAEpAecWArpV1RrSYSNrcc15NsYyRq+irfxxnZuzgVUPLZL47g77+KruUX7RGpVZaXKxqCy0hasVNr+SFWVQJQF5dplEtZtU35uSsHn2KHuwG7NRSNvEm+vybSPwc+YiETkJPE2UkifTCbE4dPtY2fpdIjGM8SvTfHI3VCMU+MX5pkmE/o4y/FaUlNz5K48Z9ej/8VjzXgrQE66TDVaoQxcDqHhkA/NhteRxC8A5buFMIl7wy7+qD2aoksujc31zxTpv/7+vZh4m2HxxsU7awLyJVmx2akVKbH365prNWQaFcu8NaRZMdkRyU0N5brCXxWisFV8Eimfv5Tj3a4euvAD3/cjQq/LFWeIkl//8V01eGGG+n5E6qVaflQ0+3NUjEATqInQNzUWrM5fgTQZtcWwO/hag6aYeJZ4CmVK1tbAbjOKDdHdYFSkIieRr1CDXG/UK+TtjaWFg9TO1rwKUkvqHkrOrAx8kjPiLgn1mHgL5fyisQCXhQM16qR0YvpWnP5+aFK2Nnvr9PfvJ2XNy9o6AJJzQP4aypVtEb86LTH0zu5J/fT+T+jPhyQHl02mK6BNKP70KrRIw3n1SSxoQ7778+eoYm4Zr8YwWJ75AUmRb/s08wq80tSSMNT8dDO4fs3grWCeBzuTNvHmwhe9/kvLy9oTv9ElmO7uRJf2Pn1d/XmlJIZnv4imYETQFR7lrca2PVuRPXmt0rZjZUR7l5KrHH55JDuG5b1YrvBSYvUeP2+1kW11dfVLcYciQIGNDLnX10MUr11tgG7XeLDjHei31EXIcGFApsDvC6EcMkiVO8PPKQEtv8z7Fxg+mvpctz0jhLP5FmHb1FnqvuLQkPhlhDp+HUHXc64ppDCCrFDSKSlVmnCfHqpuj4sz09mFuLaCWXHVmaDYwNi5McJx4cAfIRE/P7txaL3EfrDOKbDkyEQxYcqxM0/uuI/kFSG6y0sC0XuXdNjb48cgHBsH4cdhdjt58Fp7YX2MOlSJXsB3qB9sJx7h7Y677IDVKyA9AGwG7kVdNydkm7elSQYonX0TN1W/19qsAr91cU4BuxoZ16ZXMA77eMfFefsIaoZ3nO8wcUi/ZdDw1Fy+SqiGkgkEN/KVap6Gt5s5EI+vDKrU3Nz/r0h5ponS5jpo8WZCAFYdZzAgBgj7EXq+Piyb5HgCd8IxSY/YTxgQFBwNcQYTwQTAwVEwnjM+CrZHMJozNgbmcdSchyrdO93D6dh3sepHuQfmMNDdJpz8SJW+WWNU69TrRqeD1b0wnZPKbmtjp3LSrxAEc8Op7HTOFcZTwSFuuxtImEV6R3LxJN5wKXe5QXzXwGVQMU8riDM8vN+LcLQjUR3z6bWOXBiJZm+6H4w4iQyUVRF+BCELRIzgBB8D6OHDg49qkCcd/3DDuoG4Wi35RTJQ6eNVocMdZVaZnf8PvD4YINSoq4KNhJPchot5D5Dv/0doS0heU7EVP8cg3cH+VU6bX6AlVniAOUeAIRt5xCGTFaxQJx/cLGHINNZFlPU5sbEJ8Y2nhIWCbNpecn3dz/0nXk089Da8Ruspnef/tC2r6stM3w1XgoHfczayMZq1hBwoEkerI61i6ixhBSEhBWGWaYJgzt8SNq1lZKg+r775Uu6iHTMh4SJ1fTQ1rUtuQuv7ZbTLCyB3UW4Vd/71YEeVWwrL24v86973JUvMrlRfqqt5Sdq+96PUbntPJ8YGEg8c+ZxcfpAYCI9lr758gHvgrwR2LAirakRmQgne8SJRrI8uTXx9V75lZn/Br/L6b+DcKPjteuWJ4e0zKn/XdXG6b7xPbIJQ753j/zEJpfRmHNu8TxWpjPzmxFB6J6FgTch8aPfaqIiTV587EO7nZty4v/EqrgowsA7N0PrXH7dDesV2FVSlVM1VhpN//rd/88kKe7e9B3v+mSCHZxRXKtUQArUGsmuz4xopjY5rgegl76JeqAoqRM6b31R2Ii+e4xPlo0pSe7sfdzbBi3bzPg0rs/6n0opy7zC33DSRJVW2AFnrocQ/e8+j1lYkbHwV7aVjOOHwxo5lCQKy8LO56SuWZXJ1on7KdAyR7KEuQQGcZwdtD63DE/0y9/W0/69ryQI8zCFFkTFzVqbqpNIN+s8j9gbjBjMypvujPaOfjy1y1n4oxMKwmtGpIjHTUJp7kxUrxo3DUDjhccag3IRhzWhVnVgu2P/XqyYc4P1wTIfUPhhxEwlD3ECwlqvsv8IIQLi20wu0s3fGHdjt5GOpOlG0QBAt0h0gCAbuZaQqqv3T0/2rFanvRWZh/OLY2MUdBLV3xD/ZwL+OwXkAap6HPrsa8YP4HeGMIXoa0P39Yt1aR2AOFY2bhOSYZxKDOCQqpzxIGVbqrU3YXoENyZEFpgZQShrTTVQlu3ZIhQvJ9QvU5wcmW09IUM42Jfvz2pKzTyM7G0RiaF+iK4eweR55VOABhr/tG3Vra0trP91MH2n2cCSS+1vB0O9loY+0aIGTDGtQcznXT++TmOCj9ztNus/vx1efq1iUvu3ACZv3+TJWcK7eL4Ex++n3nRMEbUiuX+AECwtDe94VhwkmGWZ5r7WFfL109dool78tp29BOPz3ykH0DPcKYlBwfqHqER6yh3Bwewi5wz0hij6jmxPl7Q5B9jA7GAxAEF5BkKhyOwhsNoYkrodbPQWLSyWUNMbZsYosrJQW4KmhqfZiWYuj1Vy//XIVX+EiysmLoqg94rMTuXEcb4VPVKJaVX2MWrow7FwQ9IdviLg49gSxn9fHtXoM3Mh06eR1cUe4fSCg9y3/LQVtsX+qqFWRSZOkji1YNTYGK97S4zpFcm13fWZfC2amn9vpzjINYjWeXp1oMYaOEaPtzUVjjx4CJsbnSqiAfotu6jJ5do+DXYdY17EFBww1K1yCVVtFlmpVQmiU87uW/PKjo6rRODO40DhnxVlNMKdHX3nA8OM6pHp2/Hlf7Wrzf5JxEpzEnlx14DFefGvNwZP0k2CVllpHPSoiQ+HxhVOnVasBmFfOCmbNq5CGqObW8oKlc8tlISYstY5m00B7k4HxY/FxDS8VnM5GXSJHES+le5KWY16Hmqk+CQrOy7iGwLhwucUiX2iVh1nCBX+8PFD66NhlDYkdYQmTW6b3rfSujcrzM/glJfkY/M8TFPNNunvO+SXjtzfJ1+CXH1zCONO5CwK4mx9L7U4Bul1CVsWvz6F5WTdDtsO6eDPnVt+Bby1pS7UJDUm8yTWw9TEBV8b2RdQMDomyW1z9ljsn3CXfX+lywV8EFaIg49PZO0JSjlyf6tJTKUxjUQdeIUlKalihlTdEBSgjLBUha6tCoqxRwhdRVcvKEhe6wABALHw5oSlBtO5pnhvnr96edacPrTV0AlcPWedFIJ11ddMOoGt1vSW4JcTjPxx5qNmwxeP1fg+0x/5XHo8z0jo9Oiv5mPpAMz70iHKWOKMloIepVKQqoT4+VkhTvyYgiJgwwFWxK9jfm7cietCA/B694sfDB4tb6sigvH352uq6z+coXreAiQ852BHviYfLi7YvbXeDYVC1LeWz3PZzjOxF9qpZnVYTiHepzF5aAvXFBfrbe9yAX76W4eSJZg9jr5JRT5CaYQ3yKQoEHaqaF8yK4vhzo1jB8zCAjMVcxHiRcawg9PHvPwicgmcvjezjJLMgoxNwxzkBI9oL3YdqihMuaUphJRuXe1L7pyGwzgmvyAvw1s/yknjNkiFobRSNx6iHlvLgtPYaNA5e69DmUAsfdahr+LY6lPkQKPuNko0LKAHUMA+xCW51WGBekFkneYd8fKBGskb6+FCRH/I0vAEEDQYYkgzLt6Rs+Wd5crhhy6c3/4WlVvz1iiHR0NvTvbw7OfHT1Cej/GXctukSPk1/Sqrr+m/K8DYD+/ybZ5rh9aAtusplwwoO7e16uiOg1NoVAjeInEZ+T/4XW3+18UY0OQzrhiBsgGCQGqTGpPuHOhNnH6vJh1eBrH5VIC8BjSCVuxL2KO10VJ+Z0N5dUfY7RyllqyAw455v9Nf7+ur9jRcIgoG7/cJ7k5/Rz8Hgn7/JqBWoeTy1QLuHoJia59E90ocx3GeeyTTPJ/ack3pd5Wb0I6dDga+M0+32slp2SRk7J3591lDwufTfJ5i992R0CmVvsCJN+860kXNNTyj2aixk3LgaYiN20T0bc10LMXEnQ7/bjJixo5foT/YFsoR8XckJKaAONwdCBwosO3vRPreJa8rpSWZjGonKxPP1vZJsrMNGqq4zbYLQQvveYfvhHJYwYCAiG6FfbIAouzwrBdsm73aXSzbJoYIJoDaCZPsgADi/7IyFQCgapsm/iJsgdN7OigxtKTDfhteN8UeoPS/Mx9ZeGjn1C08yyDS5SHrQy+mBcNBV0hOXEaCDNK8/wMy9GG2kvJQgm/geCEPDuSMR6wZVbDWJoGykoY7rNE6CpjLNtKUT0Ubu8MTWi+1P0zdb7Csdjnc43Dqld5H5YuTi3u6/Wfc0khrObZenk/VqnIu3ucmHUl2gcU3r5E2C3Lq0tP/ApVBKNx+Xa+/duvJL5f+WETzP+iP9XwriRqwb/EUvAIrFW49FHsVB/hFDw9fDexjHDPgod0Qfzcj9bz1YcISmY7X+zkz+aD40bJ7i+AbhJL/1ylkpbNqfk1IsOlIHbQmPGfccGeDHQOrD/wEV/HjCUnUqeFBJf62/IlJnTX0sJsJLOCrSFjbFerls4mg4KTMbzhXbCJcac7D6MnW+kITCcjDoWyMcVPsRjir9DJtqn1w28Xc4aeThXLX/4VKPCbPBZQbTFKHyCBFl2cwlCXaKXQxv7y/UyYLPmvMPfSDMKmtf//T8n+jQV+ESBn2NUZXKc1f+eF4/tJbL3nOLIl5MjP3To5+F830R3N189QgRZdnM/n5JsFPHH+kX7xfqZMFbcv+yPhDc/rK+fLbgforO6nB7xBwGfY1CVSWiF9jFkR/fKlqV5bLny7Uo4sWU0PunR3F8qgoqXt4f6RoIEbk7wlOVD4Qoalq2w+lye7w+vx9sdkobm3Xo73znq7V6o9lqd7q9/mA4Gk+ms/liuVpvtrv94Xg6X663++P5EghFYolUJlcoVWqNVqc3GE1mi9Vm90/Oy+Zye7wjFIQpgVswf4GewGU2zeQySYuhzNKY6mxEt1Ae2GkJ2Ry10kMw4HRPbiJoCTaZ0eyvVe9HJFepoiFwBjiPCa2+0egRnKxNm5mC4SRg4DZ5i43voDp4rBT7EbysGp4wjKy9S/1KZSLR7AEj9dgmGEy/BV8sz/p2yIShhc6OIykSEIldZWHGLCbSWEhAQoy2XRJjO8xFTnUumQy2iaTZEx2s60u2ihgiKMrCHmq88K6DvuoJYXZtacBX3t4zyCqcuhY/DNRXwvOYpNxRQoQGAlbX/SrfihQid+irgH4gkX7eVpOKsWPZzJxMov8J3AmE4OQiA2j44EmRBU6HWH3xBD7NKyZgCU6De+5QkgBLrQyGfESqL3EtgRSYxPVqfgau2xIjOGHQ6esmiiXmla+zlhS63WKoYc4lrlMuED//qQiGJgIuWgLNqT7i18yO21UJ7ueT+1T1Zl6wjeDRvUGri8UISgfKVBpLOSJpozx0M1hIYJkibB8CziRYb46zm618JywHfBbkhcVVMBCMm2gCix7zHiy94DY50oy8lW08SoOkKadAMl9ykirdAB9ieU8JzU6vDfCYGC8VqeP1dikHk3CJtA4IXpiKXR7DjszpnrFYeN5dakwSCnqp/cgy7laOCp3FxdBj4BQSj1leVxZraeuxQxfOcrr3T7QWEuEF5V0i7RSDGEmp3qQC/S6vgyImouVCW0vBUGblBgAAAA==") format("woff2"),url('+n(i(135))+') format("woff"),url('+n(i(136))+') format("truetype"),url('+n(i(137))+'#iconfont) format("svg")}.iconfont{font-family:bqCmsIconfont!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.iconxuanze:before{content:"\\E7BC"}.iconkapian:before{content:"\\E7B5"}.iconluyin:before{content:"\\E7B6"}.icondizhi:before{content:"\\E7B7"}.iconliwu1:before{content:"\\E7B8"}.iconwenzi:before{content:"\\E7B9"}.iconsongda:before{content:"\\E7BA"}.iconyuyin:before{content:"\\E7BB"}.iconshangpinxiajia:before{content:"\\E729"}.iconxuanzhong1:before{content:"\\E728"}.iconweixuanzhong1:before{content:"\\E727"}.iconbianhao:before{content:"\\E725"}.icontupian:before{content:"\\E7B4"}.icongerenxinxi:before{content:"\\E70C"}.iconyishoucang:before{content:"\\E70B"}.iconweishoucang:before{content:"\\E709"}.iconshare-forward-box-fill:before{content:"\\E706"}.iconup:before{content:"\\E602"}.iconfenxiang:before{content:"\\E708"}.iconliwu:before{content:"\\E707"}.iconjuxingxuankuang:before{content:"\\E705"}.iconv:before{content:"\\E624"}.iconchizi:before{content:"\\E60D"}.iconnotification-line:before{content:"\\E726"}.icontuige:before{content:"\\E724"}.icondingzhi:before{content:"\\E723"}.iconzuojiantou1:before{content:"\\E601"}.icondouyin:before{content:"\\E6EC"}.icontuiguangma:before{content:"\\E696"}.iconicon-test:before{content:"\\E68F"}.icondingdan:before{content:"\\E721"}.iconzuojiantou:before{content:"\\E600"}.iconmap-pin-line:before{content:"\\E716"}.iconlive-line:before{content:"\\E717"}.iconroad-map-line:before{content:"\\E718"}.iconvip-crown-line:before{content:"\\E719"}.icondatabase-2-line:before{content:"\\E71A"}.iconcustomer-service-line:before{content:"\\E71B"}.icongift-2-line:before{content:"\\E71C"}.iconyouhuiquan:before{content:"\\E71D"}.iconaccount-box-line:before{content:"\\E71E"}.iconfile-list-3-line:before{content:"\\E71F"}.iconyiliaodangan_medical-files:before{content:"\\E720"}.iconwenhao:before{content:"\\E686"}.icondaifahuo1:before{content:"\\E6B1"}.iconyifahuo2:before{content:"\\E6B3"}.iconyiwancheng2:before{content:"\\E6AF"}.icondaifukuan1:before{content:"\\E6B0"}.iconjifen:before{content:"\\E616"}.iconzhibozhong2x:before{content:"\\E70A"}.iconshouqi:before{content:"\\E6FF"}.iconshixiao:before{content:"\\E704"}.iconjiagou1:before{content:"\\E703"}.iconyoujiantou-copy:before{content:"\\E7BD"}.iconyoujiantou-copy1:before{content:"\\E722"}.iconyoujiantou:before{content:"\\E702"}.icontarendaifu1:before{content:"\\E701"}.iconzhankai:before{content:"\\E6FE"}.iconfuzhi:before{content:"\\E700"}.iconjiagou:before{content:"\\E6FD"}.iconxiajiantou:before{content:"\\E6FA"}.icondaohang:before{content:"\\E6FB"}.icondianhua:before{content:"\\E6FC"}.iconxuanzhong:before{content:"\\E6F4"}.iconweixuanzhong:before{content:"\\E6F6"}.iconclose_circle:before{content:"\\E6F5"}.iconshaixuan:before{content:"\\E6F7"}.iconweigouxuan:before{content:"\\E6F8"}.iconlike:before{content:"\\E6F9"}.iconweixinzhifu:before{content:"\\E6ED"}.iconlikebeifen:before{content:"\\E6EE"}.iconshengchenghaibao:before{content:"\\E6EF"}.iconzhifuchenggong:before{content:"\\E6F0"}.iconhaowuquan:before{content:"\\E6F1"}.iconweixin1:before{content:"\\E6F2"}.iconzhifushibai:before{content:"\\E6F3"}.iconsearch-on:before{content:"\\E6EB"}.iconweixin:before{content:"\\E673"}.iconshouyexuanzhong:before{content:"\\E6E6"}.icongouwudaixuanzhong:before{content:"\\E6E7"}.iconwodexuanzhong:before{content:"\\E6E8"}.iconfenleixuanzhong:before{content:"\\E6E9"}.iconsousuoxuanzhong:before{content:"\\E6EA"}.iconbianji:before{content:"\\E6DD"}.iconremensousuo:before{content:"\\E6DE"}.iconxiaoxi:before{content:"\\E6DF"}.icondaifukuan:before{content:"\\E6E0"}.iconshanchu:before{content:"\\E6E1"}.iconfanhuidingbu:before{content:"\\E6E2"}.iconerweima:before{content:"\\E6E3"}.icontuijian:before{content:"\\E6E4"}.iconlishisousuo:before{content:"\\E6E5"}',""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t,i){e.exports=i.p+"font/iconfont.woff"},function(e,t,i){e.exports=i.p+"font/iconfont.ttf"},function(e,t,i){e.exports=i.p+"iconfont.svg?0ba37ced18273e6a5d1f3d2ee895650b"},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[1===e.pageDataObj.styleType?e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n},[t.fontStyle&&t.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:t.fontStyle&&t.fontStyle.fontWeight?"bolder":"",textAlign:t.fontStyle&&t.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(t.fontStyle&&t.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"cursor-pointer"},[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)])}):e._e(),e._v(" "),2===e.pageDataObj.styleType?[e.isPC?i("div",{staticClass:"warp-two"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n,staticClass:"warp-two-pc"},[t.fontStyle&&t.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:t.fontStyle&&t.fontStyle.fontWeight?"bolder":"",textAlign:t.fontStyle&&t.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(t.fontStyle&&t.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"cursor-pointer"},[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)])}),0):i("div",{staticClass:"warp-two"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n,staticClass:"warp-two-mob"},[t.fontStyle&&t.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:t.fontStyle&&t.fontStyle.fontWeight?"bolder":"",textAlign:t.fontStyle&&t.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(t.fontStyle&&t.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)])}),0)]:e._e(),e._v(" "),3===e.pageDataObj.styleType?[i("div",{staticClass:"warp-three"},[e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.fontWeight?"bolder":"",textAlign:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.align,fontSize:e.isPC?"20px":"16px"}},[e._v("\n "+e._s(e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",[i("div",{staticClass:"swiper"},[i("div",{class:["swiper-containerpic"+e.swiperId,"swiper-container"]},[i("div",{staticClass:"swiper-wrapper"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:n,staticClass:"swiper-slide"},[i("hot-sport",{attrs:{"page-data":t,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:2},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})],1)}),0),e._v(" "),"pc"===e.curSystem&&e.pageDataObj.list.length>4?i("div",{staticClass:"swiper-button-prev swiper-button-prevp"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"===e.curSystem&&e.pageDataObj.list.length>4?i("div",{staticClass:"swiper-button-next swiper-button-nextp"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"!==e.curSystem?i("div",{staticClass:"swiper-scrollbar"}):e._e()])])])])]:e._e(),e._v(" "),e.pageDataObj.styleType?e._e():[i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(140)}var r=i(41),a=i(147),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-251c73fa",null);t.a=l.exports},function(e,t,i){var n=i(141);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("6e976b9e",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".swiper[data-v-251c73fa]{width:100%;position:relative;display:flex;align-items:center;justify-content:center}.swiper[data-v-251c73fa] .swiper-pagination-bullets .swiper-pagination-bullet{width:50px;height:2px;border-radius:0;background:#b5b5b5;opacity:.48;margin:0 4px;font-size:0}.swiper[data-v-251c73fa] .swiper-pagination-bullets .swiper-pagination-bullet:first-child,.swiper[data-v-251c73fa] .swiper-pagination-bullets .swiper-pagination-bullet:last-child{display:none}.swiper[data-v-251c73fa] .swiper-pagination-bullets .swiper-pagination-bullet-active{background:#fff;opacity:1}.swiper .swiper-bg[data-v-251c73fa]{position:absolute;width:100%;top:0;left:0;z-index:-1}.swiper .swiper-bg-img[data-v-251c73fa]{width:100%;height:100%;z-index:-1}.swiper-container[data-v-251c73fa],.swiper-main[data-v-251c73fa]{width:100%;height:100%;position:relative}.swiper-container .swiper-slide[data-v-251c73fa]{color:#000;font-size:16px;text-align:center;display:flex;align-items:center}.swiper-slide-two[data-v-251c73fa]{width:50%}.swiper-opacity[data-v-251c73fa]{opacity:.5;transition:all .3s}.swiper-pagination[data-v-251c73fa]{text-align:center;width:100%;height:3px;position:absolute;bottom:33px}.position-left[data-v-251c73fa]{left:10px}.position-right[data-v-251c73fa]{right:10px}.swiper-navigation[data-v-251c73fa]{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;width:35px;height:35px;border-radius:100%;background-size:10px;color:#fff;text-align:center;line-height:35px;background:rgba(0,0,0,.1);z-index:99;cursor:pointer}.swiper-navigation[data-v-251c73fa]:hover{background:rgba(0,0,0,.3)}.swiper-slide[data-v-251c73fa]{background-repeat:no-repeat;background-size:cover;background-position:50%;background-color:#eee;transform:translateZ(0);overflow:hidden}.swiper-pagination-bullets-mob[data-v-251c73fa]{display:flex;bottom:0}[data-v-251c73fa] .swiper-pagination-bullets-mob .swiper-pagination-bullet-active{background:#44403f!important}[data-v-251c73fa] .swiper-pagination-bullet-mob{margin:0!important}.bqCmsIconfont[data-v-251c73fa]{font-family:bqCmsIconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",""])},function(e,t,i){var n,r,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(s,o){"object"===a(t)&&void 0!==e?e.exports=o():(n=o,void 0!==(r="function"==typeof n?n.call(t,i,t,e):n)&&(e.exports=r))}(0,function(){"use strict";function e(e,t){var i=[],n=0;if(e&&!t&&e instanceof Ne)return e;if(e)if("string"==typeof e){var r,a,s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var o="div";for(0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select"),a=De.createElement(o),a.innerHTML=s,n=0;n<a.childNodes.length;n+=1)i.push(a.childNodes[n])}else for(r=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||De).querySelectorAll(e.trim()):[De.getElementById(e.trim().split("#")[1])],n=0;n<r.length;n+=1)r[n]&&i.push(r[n])}else if(e.nodeType||e===Le||e===De)i.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)i.push(e[n]);return new Ne(i)}function t(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function i(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this}function n(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this}function r(e){return!!this[0]&&this[0].classList.contains(e)}function s(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this}function o(e,t){var i=arguments;{if(1!==arguments.length||"string"!=typeof e){for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(e,t);else for(var r in e)this[n][r]=e[r],this[n].setAttribute(r,e[r]);return this}if(this[0])return this[0].getAttribute(e)}}function l(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function u(e,t){var i;{if(void 0!==t){for(var n=0;n<this.length;n+=1)i=this[n],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);if(r)return r;return}}}function d(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function c(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 p(){function t(t){var i=t.target;if(i){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),e(i).is(o))l.apply(i,n);else for(var r=e(i).parents(),a=0;a<r.length;a+=1)e(r[a]).is(o)&&l.apply(r[a],n)}}function i(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var n,r=[],a=arguments.length;a--;)r[a]=arguments[a];var s=r[0],o=r[1],l=r[2],u=r[3];"function"==typeof r[1]&&(n=r,s=n[0],l=n[1],u=n[2],o=void 0),u||(u=!1);for(var d,c=s.split(" "),p=0;p<this.length;p+=1){var h=this[p];if(o)for(d=0;d<c.length;d+=1){var f=c[d];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:l,proxyListener:t}),h.addEventListener(f,t,u)}else for(d=0;d<c.length;d+=1){var v=c[d];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[v]||(h.dom7Listeners[v]=[]),h.dom7Listeners[v].push({listener:l,proxyListener:i}),h.addEventListener(v,i,u)}}return this}function h(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=t[0],r=t[1],a=t[2],s=t[3];"function"==typeof t[1]&&(e=t,n=e[0],a=e[1],s=e[2],r=void 0),s||(s=!1);for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],d=0;d<this.length;d+=1){var c=this[d],p=void 0;if(!r&&c.dom7Listeners?p=c.dom7Listeners[u]:r&&c.dom7LiveListeners&&(p=c.dom7LiveListeners[u]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];a&&f.listener===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a||(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1))}}return this}function f(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=e[0].split(" "),n=e[1],r=0;r<i.length;r+=1)for(var a=i[r],s=0;s<this.length;s+=1){var o=this[s],l=void 0;try{l=new Le.CustomEvent(a,{detail:n,bubbles:!0,cancelable:!0})}catch(e){l=De.createEvent("Event"),l.initEvent(a,!0,!0),l.detail=n}o.dom7EventData=e.filter(function(e,t){return t>0}),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}return this}function v(e){function t(a){if(a.target===this)for(e.call(this,a),i=0;i<n.length;i+=1)r.off(n[i],t)}var i,n=["webkitTransitionEnd","transitionend"],r=this;if(e)for(i=0;i<n.length;i+=1)r.on(n[i],t);return this}function m(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 g(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 y(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),i=De.body,n=e.clientTop||i.clientTop||0,r=e.clientLeft||i.clientLeft||0,a=e===Le?Le.scrollY:e.scrollTop,s=e===Le?Le.scrollX:e.scrollLeft;return{top:t.top+a-n,left:t.left+s-r}}return null}function b(){return this[0]?Le.getComputedStyle(this[0],null):{}}function w(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return Le.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 T(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 _(e){if(void 0===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 S(e){if(void 0===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 x(t){var i,n,r=this[0];if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(i=e(t),n=0;n<i.length;n+=1)if(i[n]===r)return!0;return!1}if(t===De)return r===De;if(t===Le)return r===Le;if(t.nodeType||t instanceof Ne){for(i=t.nodeType?[t]:t,n=0;n<i.length;n+=1)if(i[n]===r)return!0;return!1}return!1}function E(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function k(e){if(void 0===e)return this;var t,i=this.length;return e>i-1?new Ne([]):e<0?(t=i+e,new Ne(t<0?[]:[this[t]])):new Ne([this[e]])}function C(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i,n=0;n<e.length;n+=1){i=e[n];for(var r=0;r<this.length;r+=1)if("string"==typeof i){var a=De.createElement("div");for(a.innerHTML=i;a.firstChild;)this[r].appendChild(a.firstChild)}else if(i instanceof Ne)for(var s=0;s<i.length;s+=1)this[r].appendChild(i[s]);else this[r].appendChild(i)}return this}function O(e){var t,i;for(t=0;t<this.length;t+=1)if("string"==typeof e){var n=De.createElement("div");for(n.innerHTML=e,i=n.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof Ne)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function P(t){return new Ne(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function j(t){var i=[],n=this[0];if(!n)return new Ne([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;t?e(r).is(t)&&i.push(r):i.push(r),n=r}return new Ne(i)}function I(t){if(this.length>0){var i=this[0];return new Ne(t?i.previousElementSibling&&e(i.previousElementSibling).is(t)?[i.previousElementSibling]:[]:i.previousElementSibling?[i.previousElementSibling]:[])}return new Ne([])}function A(t){var i=[],n=this[0];if(!n)return new Ne([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;t?e(r).is(t)&&i.push(r):i.push(r),n=r}return new Ne(i)}function M(i){for(var n=[],r=0;r<this.length;r+=1)null!==this[r].parentNode&&(i?e(this[r].parentNode).is(i)&&n.push(this[r].parentNode):n.push(this[r].parentNode));return e(t(n))}function D(i){for(var n=[],r=0;r<this.length;r+=1)for(var a=this[r].parentNode;a;)i?e(a).is(i)&&n.push(a):n.push(a),a=a.parentNode;return e(t(n))}function L(e){var t=this;return void 0===e?new Ne([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function N(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return new Ne(t)}function R(i){for(var n=[],r=0;r<this.length;r+=1)for(var a=this[r].childNodes,s=0;s<a.length;s+=1)i?1===a[s].nodeType&&e(a[s]).is(i)&&n.push(a[s]):1===a[s].nodeType&&n.push(a[s]);return new Ne(t(n))}function B(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function z(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var n,r,a=this;for(n=0;n<t.length;n+=1){var s=e(t[n]);for(r=0;r<s.length;r+=1)a[a.length]=s[r],a.length+=1}return a}function U(){var e,t,i=this,n=i.$el;e=void 0!==i.params.width?i.params.width:n[0].clientWidth,t=void 0!==i.params.height?i.params.height:n[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),Be.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function F(){var e=this,t=e.params,i=e.$wrapperEl,n=e.size,r=e.rtlTranslate,a=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=i.children("."+e.params.slideClass),u=s?e.virtual.slides.length:l.length,d=[],c=[],p=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var v=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,y=-h,b=0,w=0;if(void 0!==n){"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*n),e.virtualSize=-g,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var T;t.slidesPerColumn>1&&(T=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var _,S=t.slidesPerColumn,x=T/S,E=Math.floor(u/t.slidesPerColumn),k=0;k<u;k+=1){_=0;var C=l.eq(k);if(t.slidesPerColumn>1){var O=void 0,P=void 0,j=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)P=Math.floor(k/S),j=k-P*S,(P>E||P===E&&j===S-1)&&(j+=1)>=S&&(j=0,P+=1);else{var I=Math.floor(k/t.slidesPerGroup);j=Math.floor(k/t.slidesPerView)-I*t.slidesPerColumn,P=k-j*t.slidesPerView-I*t.slidesPerView}O=P+j*T/S,C.css({"-webkit-box-ordinal-group":O,"-moz-box-ordinal-group":O,"-ms-flex-order":O,"-webkit-order":O,order:O})}else j=Math.floor(k/x),P=k-j*x;C.css("margin-"+(e.isHorizontal()?"top":"left"),0!==j&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",P).attr("data-swiper-row",j)}if("none"!==C.css("display")){if("auto"===t.slidesPerView){var A=Le.getComputedStyle(C[0],null),M=C[0].style.transform,D=C[0].style.webkitTransform;if(M&&(C[0].style.transform="none"),D&&(C[0].style.webkitTransform="none"),t.roundLengths)_=e.isHorizontal()?C.outerWidth(!0):C.outerHeight(!0);else if(e.isHorizontal()){var L=parseFloat(A.getPropertyValue("width")),N=parseFloat(A.getPropertyValue("padding-left")),R=parseFloat(A.getPropertyValue("padding-right")),B=parseFloat(A.getPropertyValue("margin-left")),z=parseFloat(A.getPropertyValue("margin-right")),U=A.getPropertyValue("box-sizing");_=U&&"border-box"===U&&!Ue.isIE?L+B+z:L+N+R+B+z}else{var F=parseFloat(A.getPropertyValue("height")),H=parseFloat(A.getPropertyValue("padding-top")),V=parseFloat(A.getPropertyValue("padding-bottom")),q=parseFloat(A.getPropertyValue("margin-top")),G=parseFloat(A.getPropertyValue("margin-bottom")),W=A.getPropertyValue("box-sizing");_=W&&"border-box"===W&&!Ue.isIE?F+q+G:F+H+V+q+G}M&&(C[0].style.transform=M),D&&(C[0].style.webkitTransform=D),t.roundLengths&&(_=Math.floor(_))}else _=(n-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(_=Math.floor(_)),l[k]&&(e.isHorizontal()?l[k].style.width=_+"px":l[k].style.height=_+"px");l[k]&&(l[k].swiperSlideSize=_),p.push(_),t.centeredSlides?(y=y+_/2+b/2+g,0===b&&0!==k&&(y=y-n/2-g),0===k&&(y=y-n/2-g),Math.abs(y)<.001&&(y=0),t.roundLengths&&(y=Math.floor(y)),w%t.slidesPerGroup==0&&d.push(y),c.push(y)):(t.roundLengths&&(y=Math.floor(y)),w%t.slidesPerGroup==0&&d.push(y),c.push(y),y=y+_+g),e.virtualSize+=_+g,b=_,w+=1}}e.virtualSize=Math.max(e.virtualSize,n)+f;var X;if(r&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),ze.flexbox&&!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=(_+t.spaceBetween)*T,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 $=0;$<d.length;$+=1){var Y=d[$];t.roundLengths&&(Y=Math.floor(Y)),d[$]<e.virtualSize+d[0]&&X.push(Y)}d=X}if(!t.centeredSlides){X=[];for(var K=0;K<d.length;K+=1){var Q=d[K];t.roundLengths&&(Q=Math.floor(Q)),d[K]<=e.virtualSize-n&&X.push(Q)}d=X,Math.floor(e.virtualSize-n)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-n)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?r?l.css({marginLeft:g+"px"}):l.css({marginRight:g+"px"}):l.css({marginBottom:g+"px"})),t.centerInsufficientSlides){var J=0;if(p.forEach(function(e){J+=e+(t.spaceBetween?t.spaceBetween:0)}),(J-=t.spaceBetween)<n){var Z=(n-J)/2;d.forEach(function(e,t){d[t]=e-Z}),c.forEach(function(e,t){c[t]=e+Z})}}Be.extend(e,{slides:l,snapGrid:d,slidesGrid:c,slidesSizesGrid:p}),u!==o&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),c.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function H(e){var t,i=this,n=[],r=0;if("number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&i.params.slidesPerView>1)for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var a=i.activeIndex+t;if(a>i.slides.length)break;n.push(i.slides.eq(a)[0])}else n.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var s=n[t].offsetHeight;r=s>r?s:r}r&&i.$wrapperEl.css("height",r+"px")}function V(){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 q(t){void 0===t&&(t=this&&this.translate||0);var i=this,n=i.params,r=i.slides,a=i.rtlTranslate;if(0!==r.length){void 0===r[0].swiperSlideOffset&&i.updateSlidesOffset();var s=-t;a&&(s=t),r.removeClass(n.slideVisibleClass),i.visibleSlidesIndexes=[],i.visibleSlides=[];for(var o=0;o<r.length;o+=1){var l=r[o],u=(s+(n.centeredSlides?i.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var d=-(s-l.swiperSlideOffset),c=d+i.slidesSizesGrid[o];(d>=0&&d<i.size-1||c>1&&c<=i.size||d<=0&&c>=i.size)&&(i.visibleSlides.push(l),i.visibleSlidesIndexes.push(o),r.eq(o).addClass(n.slideVisibleClass))}l.progress=a?-u:u}i.visibleSlides=e(i.visibleSlides)}}function G(e){void 0===e&&(e=this&&this.translate||0);var t=this,i=t.params,n=t.maxTranslate()-t.minTranslate(),r=t.progress,a=t.isBeginning,s=t.isEnd,o=a,l=s;0===n?(r=0,a=!0,s=!0):(r=(e-t.minTranslate())/n,a=r<=0,s=r>=1),Be.extend(t,{progress:r,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesProgress(e),a&&!o&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(o&&!a||l&&!s)&&t.emit("fromEdge"),t.emit("progress",r)}function W(){var e=this,t=e.slides,i=e.params,n=e.$wrapperEl,r=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass);var o;o=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=o.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));var u=o.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===u.length&&(u=t.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function X(e){var t,i=this,n=i.rtlTranslate?i.translate:-i.translate,r=i.slidesGrid,a=i.snapGrid,s=i.params,o=i.activeIndex,l=i.realIndex,u=i.snapIndex,d=e;if(void 0===d){for(var c=0;c<r.length;c+=1)void 0!==r[c+1]?n>=r[c]&&n<r[c+1]-(r[c+1]-r[c])/2?d=c:n>=r[c]&&n<r[c+1]&&(d=c+1):n>=r[c]&&(d=c);s.normalizeSlideIndex&&(d<0||void 0===d)&&(d=0)}if(t=a.indexOf(n)>=0?a.indexOf(n):Math.floor(d/s.slidesPerGroup),t>=a.length&&(t=a.length-1),d===o)return void(t!==u&&(i.snapIndex=t,i.emit("snapIndexChange")));var p=parseInt(i.slides.eq(d).attr("data-swiper-slide-index")||d,10);Be.extend(i,{snapIndex:t,realIndex:p,previousIndex:o,activeIndex:d}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==p&&i.emit("realIndexChange"),(i.initialized||i.runCallbacksOnInit)&&i.emit("slideChange")}function $(t){var i=this,n=i.params,r=e(t.target).closest("."+n.slideClass)[0],a=!1;if(r)for(var s=0;s<i.slides.length;s+=1)i.slides[s]===r&&(a=!0);if(!r||!a)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=r,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(e(r).attr("data-swiper-slide-index"),10):i.clickedIndex=e(r).index(),n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}function Y(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,i=t.params,n=t.rtlTranslate,r=t.translate,a=t.$wrapperEl;if(i.virtualTranslate)return n?-r:r;var s=Be.getTranslate(a[0],e);return n&&(s=-s),s||0}function K(e,t){var i=this,n=i.rtlTranslate,r=i.params,a=i.$wrapperEl,s=i.progress,o=0,l=0;i.isHorizontal()?o=n?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.virtualTranslate||(ze.transforms3d?a.transform("translate3d("+o+"px, "+l+"px, 0px)"):a.transform("translate("+o+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l;var u,d=i.maxTranslate()-i.minTranslate();u=0===d?0:(e-i.minTranslate())/d,u!==s&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function Q(){return-this.snapGrid[0]}function J(){return-this.snapGrid[this.snapGrid.length-1]}function Z(e,t){var i=this;i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function ee(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.params,a=i.previousIndex;r.autoHeight&&i.updateAutoHeight();var s=t;if(s||(s=n>a?"next":n<a?"prev":"reset"),i.emit("transitionStart"),e&&n!==a){if("reset"===s)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===s?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}function te(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,r=i.previousIndex;i.animating=!1,i.setTransition(0);var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),i.emit("transitionEnd"),e&&n!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}function ie(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,a=e;a<0&&(a=0);var s=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,c=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(a/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(d||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var h=-o[p];if(r.updateProgress(h),s.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*h)>=Math.floor(100*l[f])&&(a=f);if(r.initialized&&a!==d){if(!r.allowSlideNext&&h<r.translate&&h<r.minTranslate())return!1;if(!r.allowSlidePrev&&h>r.translate&&h>r.maxTranslate()&&(d||0)!==a)return!1}var v;return v=a>d?"next":a<d?"prev":"reset",c&&-h===r.translate||!c&&h===r.translate?(r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(h),"reset"!==v&&(r.transitionStart(i,v),r.transitionEnd(i,v)),!1):(0!==t&&ze.transition?(r.setTransition(t),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,v))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.transitionEnd(i,v)),!0)}function ne(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var r=this,a=e;return r.params.loop&&(a+=r.loopedSlides),r.slideTo(a,t,i,n)}function re(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.params,a=n.animating;return r.loop?!a&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)}function ae(e,t,i){function n(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,a=r.params,s=r.animating,o=r.snapGrid,l=r.slidesGrid,u=r.rtlTranslate;if(a.loop){if(s)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var d,c=u?r.translate:-r.translate,p=n(c),h=o.map(function(e){return n(e)}),f=(l.map(function(e){return n(e)}),o[h.indexOf(p)],o[h.indexOf(p)-1]);return void 0!==f&&(d=l.indexOf(f))<0&&(d=r.activeIndex-1),r.slideTo(d,e,t,i)}function se(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this;return n.slideTo(n.activeIndex,e,t,i)}function oe(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,r=n.activeIndex,a=Math.floor(r/n.params.slidesPerGroup);if(a<n.snapGrid.length-1){var s=n.rtlTranslate?n.translate:-n.translate,o=n.snapGrid[a];s-o>(n.snapGrid[a+1]-o)/2&&(r=n.params.slidesPerGroup)}return n.slideTo(r,e,t,i)}function le(){var t,i=this,n=i.params,r=i.$wrapperEl,a="auto"===n.slidesPerView?i.slidesPerViewDynamic():n.slidesPerView,s=i.clickedIndex;if(n.loop){if(i.animating)return;t=parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?s<i.loopedSlides-a/2||s>i.slides.length-i.loopedSlides+a/2?(i.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Be.nextTick(function(){i.slideTo(s)})):i.slideTo(s):s>i.slides.length-a?(i.loopFix(),s=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Be.nextTick(function(){i.slideTo(s)})):i.slideTo(s)}else i.slideTo(s)}function ue(){var t=this,i=t.params,n=t.$wrapperEl;n.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var r=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var a=i.slidesPerGroup-r.length%i.slidesPerGroup;if(a!==i.slidesPerGroup){for(var s=0;s<a;s+=1){var o=e(De.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);n.append(o)}r=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=r.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>r.length&&(t.loopedSlides=r.length);var l=[],u=[];r.each(function(i,n){var a=e(n);i<t.loopedSlides&&u.push(n),i<r.length&&i>=r.length-t.loopedSlides&&l.push(n),a.attr("data-swiper-slide-index",i)});for(var d=0;d<u.length;d+=1)n.append(e(u[d].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var c=l.length-1;c>=0;c-=1)n.prepend(e(l[c].cloneNode(!0)).addClass(i.slideDuplicateClass))}function de(){var e,t=this,i=t.params,n=t.activeIndex,r=t.slides,a=t.loopedSlides,s=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,u=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var d=-l[n],c=d-t.getTranslate();if(n<a){e=r.length-3*a+n,e+=a;t.slideTo(e,0,!1,!0)&&0!==c&&t.setTranslate((u?-t.translate:t.translate)-c)}else if("auto"===i.slidesPerView&&n>=2*a||n>=r.length-a){e=-r.length+n+a,e+=a;var p=t.slideTo(e,0,!1,!0);p&&0!==c&&t.setTranslate((u?-t.translate:t.translate)-c)}t.allowSlidePrev=s,t.allowSlideNext=o}function ce(){var e=this,t=e.$wrapperEl,i=e.params,n=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}function pe(e){var t=this;if(!(ze.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){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 he(){var e=this;ze.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}function fe(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"===(void 0===e?"undefined":a(e))&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&ze.observer||t.update()}function ve(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var s=r+1;if("object"===(void 0===e?"undefined":a(e))&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&n.prepend(e[o]);s=r+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&ze.observer||t.update(),t.slideTo(s,0,!1)}function me(e,t){var i=this,n=i.$wrapperEl,r=i.params,s=i.activeIndex,o=s;r.loop&&(o-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+r.slideClass));var l=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=l)return void i.appendSlide(t);for(var u=o>e?o+1:o,d=[],c=l-1;c>=e;c-=1){var p=i.slides.eq(c);p.remove(),d.unshift(p)}if("object"===(void 0===t?"undefined":a(t))&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&n.append(t[h]);u=o>e?o+t.length:o}else n.append(t);for(var f=0;f<d.length;f+=1)n.append(d[f]);r.loop&&i.loopCreate(),r.observer&&ze.observer||i.update(),r.loop?i.slideTo(u+i.loopedSlides,0,!1):i.slideTo(u,0,!1)}function ge(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex,s=r;i.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var o,l=s;if("object"===(void 0===e?"undefined":a(e))&&"length"in e){for(var u=0;u<e.length;u+=1)o=e[u],t.slides[o]&&t.slides.eq(o).remove(),o<l&&(l-=1);l=Math.max(l,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<l&&(l-=1),l=Math.max(l,0);i.loop&&t.loopCreate(),i.observer&&ze.observer||t.update(),i.loop?t.slideTo(l+t.loopedSlides,0,!1):t.slideTo(l,0,!1)}function ye(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function be(t){var i=this,n=i.touchEventsData,r=i.params,a=i.touches;if(!i.animating||!r.preventInteractionOnTransition){var s=t;if(s.originalEvent&&(s=s.originalEvent),n.isTouchEvent="touchstart"===s.type,(n.isTouchEvent||!("which"in s)||3!==s.which)&&!(!n.isTouchEvent&&"button"in s&&s.button>0||n.isTouched&&n.isMoved)){if(r.noSwiping&&e(s.target).closest(r.noSwipingSelector?r.noSwipingSelector:"."+r.noSwipingClass)[0])return void(i.allowClick=!0);if(!r.swipeHandler||e(s).closest(r.swipeHandler)[0]){a.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,a.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var o=a.currentX,l=a.currentY,u=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,d=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!u||!(o<=d||o>=Le.screen.width-d)){if(Be.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=o,a.startY=l,n.touchStartTime=Be.now(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,r.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==s.type){var c=!0;e(s.target).is(n.formElements)&&(c=!1),De.activeElement&&e(De.activeElement).is(n.formElements)&&De.activeElement!==s.target&&De.activeElement.blur();var p=c&&i.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||p)&&s.preventDefault()}i.emit("touchStart",s)}}}}}function we(t){var i=this,n=i.touchEventsData,r=i.params,a=i.touches,s=i.rtlTranslate,o=t;if(o.originalEvent&&(o=o.originalEvent),!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",o));if(!n.isTouchEvent||"mousemove"!==o.type){var l="touchmove"===o.type?o.targetTouches[0].pageX:o.pageX,u="touchmove"===o.type?o.targetTouches[0].pageY:o.pageY;if(o.preventedByNestedSwiper)return a.startX=l,void(a.startY=u);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(Be.extend(a,{startX:l,startY:u,currentX:l,currentY:u}),n.touchStartTime=Be.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(i.isVertical()){if(u<a.startY&&i.translate<=i.maxTranslate()||u>a.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(l<a.startX&&i.translate<=i.maxTranslate()||l>a.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&De.activeElement&&o.target===De.activeElement&&e(o.target).is(n.formElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",o),!(o.targetTouches&&o.targetTouches.length>1)){a.currentX=l,a.currentY=u;var d=a.currentX-a.startX,c=a.currentY-a.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(c,2))<i.params.threshold)){if(void 0===n.isScrolling){var p;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:d*d+c*c>=25&&(p=180*Math.atan2(Math.abs(c),Math.abs(d))/Math.PI,n.isScrolling=i.isHorizontal()?p>r.touchAngle:90-p>r.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",o),void 0===n.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(n.startMoving=!0)),n.isScrolling)return void(n.isTouched=!1);if(n.startMoving){i.allowClick=!1,o.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&o.stopPropagation(),n.isMoved||(r.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",o)),i.emit("sliderMove",o),n.isMoved=!0;var h=i.isHorizontal()?d:c;a.diff=h,h*=r.touchRatio,s&&(h=-h),i.swipeDirection=h>0?"prev":"next",n.currentTranslate=h+n.startTranslate;var f=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),h>0&&n.currentTranslate>i.minTranslate()?(f=!1,r.resistance&&(n.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+n.startTranslate+h,v))):h<0&&n.currentTranslate<i.maxTranslate()&&(f=!1,r.resistance&&(n.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-n.startTranslate-h,v))),f&&(o.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(h)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:a[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:a[i.isHorizontal()?"currentX":"currentY"],time:Be.now()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}}}}}function Te(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,a=t.rtlTranslate,s=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=Be.now(),c=d-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),c<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=Be.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),c<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",u))),i.lastClickTime=Be.now(),Be.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);i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;var p;if(p=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var h=i.velocities.pop(),f=i.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(m>150||Be.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var g=1e3*n.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var w,T,_=!1,S=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(b<t.maxTranslate())n.freeModeMomentumBounce?(b+t.maxTranslate()<-S&&(b=t.maxTranslate()-S),w=t.maxTranslate(),_=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(b>t.minTranslate())n.freeModeMomentumBounce?(b-t.minTranslate()>S&&(b=t.minTranslate()+S),w=t.minTranslate(),_=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(n.freeModeSticky){for(var x,E=0;E<l.length;E+=1)if(l[E]>-b){x=E;break}b=Math.abs(l[x]-b)<Math.abs(l[x-1]-b)||"next"===t.swipeDirection?l[x]:l[x-1],b=-b}if(T&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&_?(t.updateProgress(w),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(w),s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(b),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();return void((!n.freeModeMomentum||c>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var k=0,C=t.slidesSizesGrid[0],O=0;O<o.length;O+=n.slidesPerGroup)void 0!==o[O+n.slidesPerGroup]?p>=o[O]&&p<o[O+n.slidesPerGroup]&&(k=O,C=o[O+n.slidesPerGroup]-o[O]):p>=o[O]&&(k=O,C=o[o.length-1]-o[o.length-2]);var P=(p-o[k])/C;if(c>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(P>=n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(P>1-n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}function _e(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=e.allowSlideNext,r=e.allowSlidePrev,a=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!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=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function Se(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function xe(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl;e.onTouchStart=be.bind(e),e.onTouchMove=we.bind(e),e.onTouchEnd=Te.bind(e),e.onClick=Se.bind(e);var a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(ze.touch||!ze.pointerEvents&&!ze.prefixedPointerEvents){if(ze.touch){var o=!("touchstart"!==i.start||!ze.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(i.start,e.onTouchStart,o),a.addEventListener(i.move,e.onTouchMove,ze.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!Ke.ios&&!Ke.android||t.simulateTouch&&!ze.touch&&Ke.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),De.addEventListener("mousemove",e.onTouchMove,s),De.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(i.start,e.onTouchStart,!1),De.addEventListener(i.move,e.onTouchMove,s),De.addEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(Ke.ios||Ke.android?"resize orientationchange observerUpdate":"resize observerUpdate",_e,!0)}function Ee(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl,a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(ze.touch||!ze.pointerEvents&&!ze.prefixedPointerEvents){if(ze.touch){var o=!("onTouchStart"!==i.start||!ze.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(i.start,e.onTouchStart,o),a.removeEventListener(i.move,e.onTouchMove,s),a.removeEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!Ke.ios&&!Ke.android||t.simulateTouch&&!ze.touch&&Ke.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),De.removeEventListener("mousemove",e.onTouchMove,s),De.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(i.start,e.onTouchStart,!1),De.removeEventListener(i.move,e.onTouchMove,s),De.removeEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(Ke.ios||Ke.android?"resize orientationchange observerUpdate":"resize observerUpdate",_e)}function ke(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides;void 0===n&&(n=0);var r=e.params,a=r.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var s=e.getBreakpoint(a);if(s&&e.currentBreakpoint!==s){var o=s in a?a[s]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(e){var t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});var l=o||e.originalParams,u=l.direction&&l.direction!==r.direction,d=r.loop&&(l.slidesPerView!==r.slidesPerView||u);u&&i&&e.changeDirection(),Be.extend(e.params,l),Be.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=s,d&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}}}function Ce(e){var t=this;if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var a=n[r];t.params.breakpointsInverse?a<=Le.innerWidth&&(i=a):a>=Le.innerWidth&&!i&&(i=a)}return i||"max"}}function Oe(){var e=this,t=e.classNames,i=e.params,n=e.rtl,r=e.$el,a=[];a.push("initialized"),a.push(i.direction),i.freeMode&&a.push("free-mode"),ze.flexbox||a.push("no-flexbox"),i.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),i.slidesPerColumn>1&&a.push("multirow"),Ke.android&&a.push("android"),Ke.ios&&a.push("ios"),(Ue.isIE||Ue.isEdge)&&(ze.pointerEvents||ze.prefixedPointerEvents)&&a.push("wp8-"+i.direction),a.forEach(function(e){t.push(i.containerModifierClass+e)}),r.addClass(t.join(" "))}function Pe(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}function je(e,t,i,n,r,a){function s(){a&&a()}var o;e.complete&&r?s():t?(o=new Le.Image,o.onload=s,o.onerror=s,n&&(o.sizes=n),i&&(o.srcset=i),t&&(o.src=t)):s()}function Ie(){function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}function Ae(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}function Me(){var e="onwheel"in De;if(!e){var t=De.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&De.implementation&&De.implementation.hasFeature&&!0!==De.implementation.hasFeature("","")&&(e=De.implementation.hasFeature("Events.wheel","3.0")),e}var De="undefined"==typeof document?{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[]}}},location:{hash:""}}:document,Le="undefined"==typeof window?{document:De,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,Ne=function(e){for(var t=this,i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this};e.fn=Ne.prototype,e.Class=Ne,e.Dom7=Ne;var Re={addClass:i,removeClass:n,hasClass:r,toggleClass:s,attr:o,removeAttr:l,data:u,transform:d,transition:c,on:p,off:h,trigger:f,transitionEnd:v,outerWidth:m,outerHeight:g,offset:y,css:w,each:T,html:_,text:S,is:x,index:E,eq:k,append:C,prepend:O,next:P,nextAll:j,prev:I,prevAll:A,parent:M,parents:D,closest:L,find:N,children:R,remove:B,add:z,styles:b};Object.keys(Re).forEach(function(t){e.fn[t]=e.fn[t]||Re[t]});var Be={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){void 0===t&&(t="x");var i,n,r,a=Le.getComputedStyle(e,null);return Le.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new Le.WebKitCSSMatrix("none"===n?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(n=Le.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=Le.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(e){var t,i,n,r,a={},s=e||Le.location.href;if("string"==typeof s&&s.length)for(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"",i=s.split("&").filter(function(e){return""!==e}),r=i.length,t=0;t<r;t+=1)n=i[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return a},isObject:function(e){return"object"===(void 0===e?"undefined":a(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),n=1;n<e.length;n+=1){var r=e[n];if(void 0!==r&&null!==r)for(var a=Object.keys(Object(r)),s=0,o=a.length;s<o;s+=1){var l=a[s],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(Be.isObject(i[l])&&Be.isObject(r[l])?Be.extend(i[l],r[l]):!Be.isObject(i[l])&&Be.isObject(r[l])?(i[l]={},Be.extend(i[l],r[l])):i[l]=r[l])}}return i}},ze=function(){var e=De.createElement("div");return{touch:Le.Modernizr&&!0===Le.Modernizr.touch||function(){return!!(Le.navigator.maxTouchPoints>0||"ontouchstart"in Le||Le.DocumentTouch&&De instanceof Le.DocumentTouch)}(),pointerEvents:!!(Le.navigator.pointerEnabled||Le.PointerEvent||"maxTouchPoints"in Le.navigator&&Le.navigator.maxTouchPoints>0),prefixedPointerEvents:!!Le.navigator.msPointerEnabled,transition:function(){var t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:Le.Modernizr&&!0===Le.Modernizr.csstransforms3d||function(){var t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<i.length;n+=1)if(i[n]in t)return!0;return!1}(),observer:function(){return"MutationObserver"in Le||"WebkitMutationObserver"in Le}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});Le.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in Le}()}}(),Ue=function(){return{isIE:!!Le.navigator.userAgent.match(/Trident/g)||!!Le.navigator.userAgent.match(/MSIE/g),isEdge:!!Le.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=Le.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Le.navigator.userAgent)}}(),Fe=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])})},He={components:{configurable:!0}};Fe.prototype.on=function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n},Fe.prototype.once=function(e,t,i){function n(){for(var i=[],a=arguments.length;a--;)i[a]=arguments[a];t.apply(r,i),r.off(e,n),n.f7proxy&&delete n.f7proxy}var r=this;return"function"!=typeof t?r:(n.f7proxy=t,r.on(e,n,i))},Fe.prototype.off=function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach(function(n,r){(n===t||n.f7proxy&&n.f7proxy===t)&&i.eventsListeners[e].splice(r,1)})}),i):i},Fe.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i=this;if(!i.eventsListeners)return i;var n,r,a;return"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=i):(n=e[0].events,r=e[0].data,a=e[0].context||i),(Array.isArray(n)?n:n.split(" ")).forEach(function(e){if(i.eventsListeners&&i.eventsListeners[e]){var t=[];i.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(a,r)})}}),i},Fe.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&Be.extend(e,n.params)})},Fe.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})},He.components.set=function(e){var t=this;t.use&&t.use(e)},Fe.installModule=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var r=e.name||Object.keys(n.prototype.modules).length+"_"+Be.now();return n.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach(function(t){n.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){n[t]=e.static[t]}),e.install&&e.install.apply(n,t),n},Fe.use=function(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];var n=this;return Array.isArray(e)?(e.forEach(function(e){return n.installModule(e)}),n):n.installModule.apply(n,[e].concat(t))},Object.defineProperties(Fe,He);var Ve={updateSize:U,updateSlides:F,updateAutoHeight:H,updateSlidesOffset:V,updateSlidesProgress:q,updateProgress:G,updateSlidesClasses:W,updateActiveIndex:X,updateClickedSlide:$},qe={getTranslate:Y,setTranslate:K,minTranslate:Q,maxTranslate:J},Ge={setTransition:Z,transitionStart:ee,transitionEnd:te},We={slideTo:ie,slideToLoop:ne,slideNext:re,slidePrev:ae,slideReset:se,slideToClosest:oe,slideToClickedSlide:le},Xe={loopCreate:ue,loopFix:de,loopDestroy:ce},$e={setGrabCursor:pe,unsetGrabCursor:he},Ye={appendSlide:fe,prependSlide:ve,addSlide:me,removeSlide:ge,removeAllSlides:ye},Ke=function(){var e=Le.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Le.cordova||Le.phonegap,phonegap:Le.cordova||Le.phonegap},i=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(t.os="windows",t.osVersion=i[2],t.windows=!0),n&&!i&&(t.os="android",t.osVersion=n[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||s||a)&&(t.os="ios",t.ios=!0),s&&!a&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),r&&(t.osVersion=r[2].replace(/_/g,"."),t.ipad=!0),a&&(t.osVersion=a[3]?a[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||r||a)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=De.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(a||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=Le.devicePixelRatio||1,t}(),Qe={attachEvents:xe,detachEvents:Ee},Je={setBreakpoint:ke,getBreakpoint:Ce},Ze={addClasses:Oe,removeClasses:Pe},et={loadImage:je,preloadImages:Ie},tt={checkOverflow:Ae},it={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,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,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!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:!0,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},nt={update:Ve,translate:qe,transition:Ge,slide:We,loop:Xe,grabCursor:$e,manipulation:Ye,events:Qe,breakpoints:Je,checkOverflow:tt,classes:Ze,images:et},rt={},at=function(t){function i(){for(var n,r=[],s=arguments.length;s--;)r[s]=arguments[s];var o,l;1===r.length&&r[0].constructor&&r[0].constructor===Object?l=r[0]:(n=r,o=n[0],l=n[1]),l||(l={}),l=Be.extend({},l),o&&!l.el&&(l.el=o),t.call(this,l),Object.keys(nt).forEach(function(e){Object.keys(nt[e]).forEach(function(t){i.prototype[t]||(i.prototype[t]=nt[e][t])})});var u=this;void 0===u.modules&&(u.modules={}),Object.keys(u.modules).forEach(function(e){var t=u.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!==(void 0===n?"undefined":a(n))||null===n)return;if(!(i in l&&"enabled"in n))return;!0===l[i]&&(l[i]={enabled:!0}),"object"!==a(l[i])||"enabled"in l[i]||(l[i].enabled=!0),l[i]||(l[i]={enabled:!1})}});var d=Be.extend({},it);u.useModulesParams(d),u.params=Be.extend({},d,rt,l),u.originalParams=Be.extend({},u.params),u.passedParams=Be.extend({},l),u.$=e;var c=e(u.params.el);if(o=c[0]){if(c.length>1){var p=[];return c.each(function(e,t){var n=Be.extend({},l,{el:t});p.push(new i(n))}),p}o.swiper=u,c.data("swiper",u);var h=c.children("."+u.params.wrapperClass);return Be.extend(u,{$el:c,el:o,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:e(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===u.params.direction},isVertical:function(){return"vertical"===u.params.direction},rtl:"rtl"===o.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===u.params.direction&&("rtl"===o.dir.toLowerCase()||"rtl"===c.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:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return ze.pointerEvents?t=["pointerdown","pointermove","pointerup"]:ze.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEventsTouch={start:e[0],move:e[1],end:e[2]},u.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},ze.touch||!u.params.simulateTouch?u.touchEventsTouch:u.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",lastClickTime:Be.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.params.init&&u.init(),u}}t&&(i.__proto__=t),i.prototype=Object.create(t&&t.prototype),i.prototype.constructor=i;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return i.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,r=e.size,a=e.activeIndex,s=1;if(t.centeredSlides){for(var o,l=i[a].swiperSlideSize,u=a+1;u<i.length;u+=1)i[u]&&!o&&(l+=i[u].swiperSlideSize,s+=1,l>r&&(o=!0));for(var d=a-1;d>=0;d-=1)i[d]&&!o&&(l+=i[d].swiperSlideSize,s+=1,l>r&&(o=!0))}else for(var c=a+1;c<i.length;c+=1)n[c]-n[a]<r&&(s+=1);return s},i.prototype.update=function(){function e(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var i=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}},i.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e?i:(i.$el.removeClass(""+i.params.containerModifierClass+n+" wp8-"+n).addClass(""+i.params.containerModifierClass+e),(Ue.isIE||Ue.isEdge)&&(ze.pointerEvents||ze.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+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)},i.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"))},i.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,n=i.params,r=i.$el,a=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),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),Be.deleteProps(i)),i.destroyed=!0,null)},i.extendDefaults=function(e){Be.extend(rt,e)},n.extendedDefaults.get=function(){return rt},n.defaults.get=function(){return it},n.Class.get=function(){return t},n.$.get=function(){return e},Object.defineProperties(i,n),i}(Fe),st={name:"device",proto:{device:Ke},static:{device:Ke}},ot={name:"support",proto:{support:ze},static:{support:ze}},lt={name:"browser",proto:{browser:Ue},static:{browser:Ue}},ut={name:"resize",create:function(){var e=this;Be.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;Le.addEventListener("resize",e.resize.resizeHandler),Le.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;Le.removeEventListener("resize",e.resize.resizeHandler),Le.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},dt={func:Le.MutationObserver||Le.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,n=dt.func,r=new n(function(e){if(1===e.length)return void i.emit("observerUpdate",e[0]);var t=function(){i.emit("observerUpdate",e[0])};Le.requestAnimationFrame?Le.requestAnimationFrame(t):Le.setTimeout(t,0)});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(r)},init:function(){var e=this;if(ze.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=[]}},ct={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;Be.extend(e,{observer:{init:dt.init.bind(e),attach:dt.attach.bind(e),destroy:dt.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},pt={update:function(e){function t(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,n=i.params,r=n.slidesPerView,a=n.slidesPerGroup,s=n.centeredSlides,o=i.params.virtual,l=o.addSlidesBefore,u=o.addSlidesAfter,d=i.virtual,c=d.from,p=d.to,h=d.slides,f=d.slidesGrid,v=d.renderSlide,m=d.offset;i.updateActiveIndex();var g,y=i.activeIndex||0;g=i.rtlTranslate?"right":i.isHorizontal()?"left":"top";var b,w;s?(b=Math.floor(r/2)+a+l,w=Math.floor(r/2)+a+u):(b=r+(a-1)+l,w=a+u);var T=Math.max((y||0)-w,0),_=Math.min((y||0)+b,h.length-1),S=(i.slidesGrid[T]||0)-(i.slidesGrid[0]||0);if(Be.extend(i.virtual,{from:T,to:_,offset:S,slidesGrid:i.slidesGrid}),c===T&&p===_&&!e)return i.slidesGrid!==f&&S!==m&&i.slides.css(g,S+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:S,from:T,to:_,slides:function(){for(var e=[],t=T;t<=_;t+=1)e.push(h[t]);return e}()}),void t();var x=[],E=[];if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var k=c;k<=p;k+=1)(k<T||k>_)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var C=0;C<h.length;C+=1)C>=T&&C<=_&&(void 0===p||e?E.push(C):(C>p&&E.push(C),C<c&&x.push(C)));E.forEach(function(e){i.$wrapperEl.append(v(h[e],e))}),x.sort(function(e,t){return t-e}).forEach(function(e){i.$wrapperEl.prepend(v(h[e],e))}),i.$wrapperEl.children(".swiper-slide").css(g,S+"px"),t()},renderSlide:function(t,i){var n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[i])return n.virtual.cache[i];var a=e(r.renderSlide?r.renderSlide.call(n,t,i):'<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+i+'">'+t+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",i),r.cache&&(n.virtual.cache[i]=a),a},appendSlide:function(e){var t=this;if("object"===(void 0===e?"undefined":a(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,n=i+1,r=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);n=i+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var s=t.virtual.cache,o={};Object.keys(s).forEach(function(e){o[parseInt(e,10)+r]=s[e]}),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(n,0)},removeSlide:function(e){var t=this;if(void 0!==e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)t.virtual.slides.splice(e[n],1),t.params.virtual.cache&&delete t.virtual.cache[e[n]],e[n]<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)}},ht={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;Be.extend(e,{virtual:{update:pt.update.bind(e),appendSlide:pt.appendSlide.bind(e),prependSlide:pt.prependSlide.bind(e),removeSlide:pt.removeSlide.bind(e),removeAllSlides:pt.removeAllSlides.bind(e),renderSlide:pt.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};Be.extend(e.params,t),Be.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},ft={handle:function(e){var t=this,i=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r||34===r))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||De.activeElement&&De.activeElement.nodeName&&("input"===De.activeElement.nodeName.toLowerCase()||"textarea"===De.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var a=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var s=Le.innerWidth,o=Le.innerHeight,l=t.$el.offset();i&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<u.length;d+=1){var c=u[d];c[0]>=0&&c[0]<=s&&c[1]>=0&&c[1]<=o&&(a=!0)}if(!a)return}t.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||i)&&(33!==r&&37!==r||!i)||t.slideNext(),(33!==r&&37!==r||i)&&(34!==r&&39!==r||!i)||t.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||t.slideNext(),33!==r&&38!==r||t.slidePrev()),t.emit("keyPress",r)}},enable:function(){var t=this;t.keyboard.enabled||(e(De).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(e(De).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},vt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;Be.extend(e,{keyboard:{enabled:!1,enable:ft.enable.bind(e),disable:ft.disable.bind(e),handle:ft.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()}}},mt={lastScrollTime:Be.now(),event:function(){return Le.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Me()?"wheel":"mousewheel"}(),normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var r=0,a=i.rtlTranslate?-1:1,s=mt.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===r)return!0;if(n.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var o=i.getTranslate()+r*n.sensitivity,l=i.isBeginning,u=i.isEnd;if(o>=i.minTranslate()&&(o=i.minTranslate()),o<=i.maxTranslate()&&(o=i.maxTranslate()),i.setTransition(0),i.setTranslate(o),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=Be.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),o===i.minTranslate()||o===i.maxTranslate())return!0}else{if(Be.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",t);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",t);i.mousewheel.lastScrollTime=(new Le.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var t=this;if(!mt.event)return!1;if(t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(mt.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!mt.event)return!1;if(!t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.off(mt.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},gt={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;Be.extend(e,{mousewheel:{enabled:!1,enable:mt.enable.bind(e),disable:mt.disable.bind(e),handle:mt.handle.bind(e),handleMouseEnter:mt.handleMouseEnter.bind(e),handleMouseLeave:mt.handleMouseLeave.bind(e),lastScrollTime:Be.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},yt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=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)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[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 t=this,i=t.params.navigation;if(i.nextEl||i.prevEl){var n,r;i.nextEl&&(n=e(i.nextEl),t.params.uniqueNavElements&&"string"==typeof i.nextEl&&n.length>1&&1===t.$el.find(i.nextEl).length&&(n=t.$el.find(i.nextEl))),i.prevEl&&(r=e(i.prevEl),t.params.uniqueNavElements&&"string"==typeof i.prevEl&&r.length>1&&1===t.$el.find(i.prevEl).length&&(r=t.$el.find(i.prevEl))),n&&n.length>0&&n.on("click",t.navigation.onNextClick),r&&r.length>0&&r.on("click",t.navigation.onPrevClick),Be.extend(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]})}},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,n=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}},bt={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;Be.extend(e,{navigation:{init:yt.init.bind(e),update:yt.update.bind(e),destroy:yt.destroy.bind(e),onNextClick:yt.onNextClick.bind(e),onPrevClick:yt.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var i=this,n=i.navigation,r=n.$nextEl,a=n.$prevEl;if(i.params.navigation.hideOnClick&&!e(t.target).is(a)&&!e(t.target).is(r)){var s;r?s=r.hasClass(i.params.navigation.hiddenClass):a&&(s=a.hasClass(i.params.navigation.hiddenClass)),!0===s?i.emit("navigationShow",i):i.emit("navigationHide",i),r&&r.toggleClass(i.params.navigation.hiddenClass),a&&a.toggleClass(i.params.navigation.hiddenClass)}}}},wt={update:function(){var t=this,i=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var r,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el,o=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(r=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),r>a-1-2*t.loopedSlides&&(r-=a-2*t.loopedSlides),r>o-1&&(r-=o),r<0&&"bullets"!==t.params.paginationType&&(r=o+r)):r=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var l,u,d,c=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=c.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=r-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),l=r-t.pagination.dynamicBulletIndex,u=l+(Math.min(c.length,n.dynamicMainBullets)-1),d=(u+l)/2),c.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),s.length>1)c.each(function(t,i){var a=e(i),s=a.index();s===r&&a.addClass(n.bulletActiveClass),n.dynamicBullets&&(s>=l&&s<=u&&a.addClass(n.bulletActiveClass+"-main"),s===l&&a.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),s===u&&a.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))});else{if(c.eq(r).addClass(n.bulletActiveClass),n.dynamicBullets){for(var p=c.eq(l),h=c.eq(u),f=l;f<=u;f+=1)c.eq(f).addClass(n.bulletActiveClass+"-main");p.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),h.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}}if(n.dynamicBullets){var v=Math.min(c.length,n.dynamicMainBullets+4),m=(t.pagination.bulletSize*v-t.pagination.bulletSize)/2-d*t.pagination.bulletSize,g=i?"right":"left";c.css(t.isHorizontal()?g:"top",m+"px")}}if("fraction"===n.type&&(s.find("."+n.currentClass).text(n.formatFractionCurrent(r+1)),s.find("."+n.totalClass).text(n.formatFractionTotal(o))),"progressbar"===n.type){var y;y=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var b=(r+1)/o,w=1,T=1;"horizontal"===y?w=b:T=b,s.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+w+") scaleY("+T+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(t,r+1,o)),t.emit("paginationRender",t,s[0])):t.emit("paginationUpdate",t,s[0]),s[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.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,n=e.pagination.$el,r="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<a;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(r),e.pagination.bullets=n.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>',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(r)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var t=this,i=t.params.pagination;if(i.el){var n=e(i.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===t.$el.find(i.el).length&&(n=t.$el.find(i.el)),"bullets"===i.type&&i.clickable&&n.addClass(i.clickableClass),n.addClass(i.modifierClass+i.type),"bullets"===i.type&&i.dynamicBullets&&(n.addClass(""+i.modifierClass+i.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&n.addClass(i.progressbarOppositeClass),i.clickable&&n.on("click","."+i.bulletClass,function(i){i.preventDefault();var n=e(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),Be.extend(t.pagination,{$el:n,el:n[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)}}},Tt={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;Be.extend(e,{pagination:{init:wt.init.bind(e),render:wt.render.bind(e),update:wt.update.bind(e),destroy:wt.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?e.pagination.update():void 0===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(){this.pagination.destroy()},click:function(t){var i=this;if(i.params.pagination.el&&i.params.pagination.hideOnClick&&i.pagination.$el.length>0&&!e(t.target).hasClass(i.params.pagination.bulletClass)){!0===i.pagination.$el.hasClass(i.params.pagination.hiddenClass)?i.emit("paginationShow",i):i.emit("paginationHide",i),i.pagination.$el.toggleClass(i.params.pagination.hiddenClass)}}}},_t={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,r=t.dragSize,a=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,u=r,d=(a-r)*n;i?(d=-d,d>0?(u=r-d,d=0):-d+r>a&&(u=a+d)):d<0?(u=r+d,d=0):d+r>a&&(u=a-d),e.isHorizontal()?(ze.transforms3d?s.transform("translate3d("+d+"px, 0, 0)"):s.transform("translateX("+d+"px)"),s[0].style.width=u+"px"):(ze.transforms3d?s.transform("translate3d(0px, "+d+"px, 0)"):s.transform("translateY("+d+"px)"),s[0].style.height=u+"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,n=t.$el;i[0].style.width="",i[0].style.height="";var r,a=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,s=e.size/e.virtualSize,o=s*(a/e.size);r="auto"===e.params.scrollbar.dragSize?a*s:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=r+"px":i[0].style.height=r+"px",n[0].style.display=s>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),Be.extend(t,{trackSize:a,divider:s,moveDivider:o,dragSize:r}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,i=this,n=i.scrollbar,r=i.rtlTranslate,a=n.$el,s=n.dragSize,o=n.trackSize,l=n.dragStartPos;t=(n.getPointerPosition(e)-a.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:s/2))/(o-s),t=Math.max(Math.min(t,1),0),r&&(t=1-t);var u=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(u),i.setTranslate(u),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=t.$wrapperEl,a=n.$el,s=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),i.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,n=t.$wrapperEl,r=i.$el,a=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),n.transition(0),r.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=n.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=Be.nextTick(function(){r.css("opacity",0),r.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,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};ze.touch?(s.addEventListener(i.start,e.scrollbar.onDragStart,o),s.addEventListener(i.move,e.scrollbar.onDragMove,o),s.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.addEventListener(n.start,e.scrollbar.onDragStart,o),De.addEventListener(n.move,e.scrollbar.onDragMove,o),De.addEventListener(n.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!ze.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};ze.touch?(s.removeEventListener(i.start,e.scrollbar.onDragStart,o),s.removeEventListener(i.move,e.scrollbar.onDragMove,o),s.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.removeEventListener(n.start,e.scrollbar.onDragStart,o),De.removeEventListener(n.move,e.scrollbar.onDragMove,o),De.removeEventListener(n.end,e.scrollbar.onDragEnd,l))}},init:function(){var t=this;if(t.params.scrollbar.el){var i=t.scrollbar,n=t.$el,r=t.params.scrollbar,a=e(r.el);t.params.uniqueNavElements&&"string"==typeof r.el&&a.length>1&&1===n.find(r.el).length&&(a=n.find(r.el));var s=a.find("."+t.params.scrollbar.dragClass);0===s.length&&(s=e('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(s)),Be.extend(i,{$el:a,el:a[0],$dragEl:s,dragEl:s[0]}),r.draggable&&i.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},St={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;Be.extend(e,{scrollbar:{init:_t.init.bind(e),destroy:_t.destroy.bind(e),updateSize:_t.updateSize.bind(e),setTranslate:_t.setTranslate.bind(e),setTransition:_t.setTransition.bind(e),enableDraggable:_t.enableDraggable.bind(e),disableDraggable:_t.disableDraggable.bind(e),setDragPosition:_t.setDragPosition.bind(e),getPointerPosition:_t.getPointerPosition.bind(e),onDragStart:_t.onDragStart.bind(e),onDragMove:_t.onDragMove.bind(e),onDragEnd:_t.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(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},xt={setTransform:function(t,i){var n=this,r=n.rtl,a=e(t),s=r?-1:1,o=a.attr("data-swiper-parallax")||"0",l=a.attr("data-swiper-parallax-x"),u=a.attr("data-swiper-parallax-y"),d=a.attr("data-swiper-parallax-scale"),c=a.attr("data-swiper-parallax-opacity");if(l||u?(l=l||"0",u=u||"0"):n.isHorizontal()?(l=o,u="0"):(u=o,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*i*s+"%":l*i*s+"px",u=u.indexOf("%")>=0?parseInt(u,10)*i+"%":u*i+"px",void 0!==c&&null!==c){var p=c-(c-1)*(1-Math.abs(i));a[0].style.opacity=p}if(void 0===d||null===d)a.transform("translate3d("+l+", "+u+", 0px)");else{var h=d-(d-1)*(1-Math.abs(i));a.transform("translate3d("+l+", "+u+", 0px) scale("+h+")")}},setTranslate:function(){var t=this,i=t.$el,n=t.slides,r=t.progress,a=t.snapGrid;i.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,r)}),n.each(function(i,n){var s=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(i/2)-r*(a.length-1)),s=Math.min(Math.max(s,-1),1),e(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,s)})})},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(i,n){var r=e(n),a=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),r.transition(a)})}},Et={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;Be.extend(e,{parallax:{setTransform:xt.setTransform.bind(e),setTranslate:xt.setTranslate.bind(e),setTransition:xt.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)}}},kt={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(t){var i=this,n=i.params.zoom,r=i.zoom,a=r.gesture;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!ze.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;r.fakeGestureTouched=!0,a.scaleStart=kt.getDistanceBetweenTouches(t)}if(!(a.$slideEl&&a.$slideEl.length||(a.$slideEl=e(t.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=i.slides.eq(i.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+n.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==a.$imageWrapEl.length)))return void(a.$imageEl=void 0);a.$imageEl.transition(0),i.zoom.isScaling=!0},onGestureChange:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!ze.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=kt.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(ze.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!ze.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Ke.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,n=i.gesture,r=i.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(Ke.android&&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,n=i.gesture,r=i.image,a=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=Be.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=Be.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*i.scale,o=r.height*i.scale;if(!(s<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(n.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.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)),a.prevPositionX||(a.prevPositionX=r.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=r.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(r.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(r.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(r.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(r.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=r.touchesCurrent.x,a.prevPositionY=r.touchesCurrent.y,a.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,n=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var a=300,s=300,o=r.x*a,l=n.currentX+o,u=r.y*s,d=n.currentY+u;0!==r.x&&(a=Math.abs((l-n.currentX)/r.x)),0!==r.y&&(s=Math.abs((d-n.currentY)/r.y));var c=Math.max(a,s);n.currentX=l,n.currentY=d;var p=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(i.slideWidth/2-p/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),i.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl.transform("translate3d(0,0,0) scale(1)"),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(t){var i=this,n=i.zoom,r=i.params.zoom,a=n.gesture,s=n.image;if(a.$slideEl||(a.$slideEl=i.clickedSlide?e(i.clickedSlide):i.slides.eq(i.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+r.containerClass)),a.$imageEl&&0!==a.$imageEl.length){a.$slideEl.addClass(""+r.zoomedSlideClass);var o,l,u,d,c,p,h,f,v,m,g,y,b,w,T,_,S,x;void 0===s.touchesStart.x&&t?(o="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,l="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(o=s.touchesStart.x,l=s.touchesStart.y),n.scale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,t?(S=a.$slideEl[0].offsetWidth,x=a.$slideEl[0].offsetHeight,u=a.$slideEl.offset().left,d=a.$slideEl.offset().top,c=u+S/2-o,p=d+x/2-l,v=a.$imageEl[0].offsetWidth,m=a.$imageEl[0].offsetHeight,g=v*n.scale,y=m*n.scale,b=Math.min(S/2-g/2,0),w=Math.min(x/2-y/2,0),T=-b,_=-w,h=c*n.scale,f=p*n.scale,h<b&&(h=b),h>T&&(h=T),f<w&&(f=w),f>_&&(f=_)):(h=0,f=0),a.$imageWrapEl.transition(300).transform("translate3d("+h+"px, "+f+"px,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+n.scale+")")}},out:function(){var t=this,i=t.zoom,n=t.params.zoom,r=i.gesture;r.$slideEl||(r.$slideEl=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length&&(i.scale=1,i.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(""+n.zoomedSlideClass),r.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!ze.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};ze.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!ze.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};ze.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Ct={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]=kt[i].bind(e)}),Be.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var n=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,n,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.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()}}},Ot={loadInSlide:function(t,i){void 0===i&&(i=!0);var n=this,r=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled,s=a?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),o=s.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!s.hasClass(r.elementClass)||s.hasClass(r.loadedClass)||s.hasClass(r.loadingClass)||(o=o.add(s[0])),0!==o.length&&o.each(function(t,a){var o=e(a);o.addClass(r.loadingClass);var l=o.attr("data-background"),u=o.attr("data-src"),d=o.attr("data-srcset"),c=o.attr("data-sizes");n.loadImage(o[0],u||l,d,c,!1,function(){if(void 0!==n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(d&&(o.attr("srcset",d),o.removeAttr("data-srcset")),c&&(o.attr("sizes",c),o.removeAttr("data-sizes")),u&&(o.attr("src",u),o.removeAttr("data-src"))),o.addClass(r.loadedClass).removeClass(r.loadingClass),s.find("."+r.preloaderClass).remove(),n.params.loop&&i){var e=s.attr("data-swiper-slide-index");if(s.hasClass(n.params.slideDuplicateClass)){var t=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(t.index(),!1)}else{var a=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(a.index(),!1)}}n.emit("lazyImageReady",s[0],o[0])}}),n.emit("lazyImageLoad",s[0],o[0])})}},load:function(){function t(e){if(l){if(r.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function i(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var n=this,r=n.$wrapperEl,a=n.params,s=n.slides,o=n.activeIndex,l=n.virtual&&a.virtual.enabled,u=a.lazy,d=a.slidesPerView;if("auto"===d&&(d=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)r.children("."+a.slideVisibleClass).each(function(t,i){var r=l?e(i).attr("data-swiper-slide-index"):e(i).index();n.lazy.loadInSlide(r)});else if(d>1)for(var c=o;c<o+d;c+=1)t(c)&&n.lazy.loadInSlide(c);else n.lazy.loadInSlide(o);if(u.loadPrevNext)if(d>1||u.loadPrevNextAmount&&u.loadPrevNextAmount>1){for(var p=u.loadPrevNextAmount,h=d,f=Math.min(o+h+Math.max(p,h),s.length),v=Math.max(o-Math.max(h,p),0),m=o+d;m<f;m+=1)t(m)&&n.lazy.loadInSlide(m);for(var g=v;g<o;g+=1)t(g)&&n.lazy.loadInSlide(g)}else{var y=r.children("."+a.slideNextClass);y.length>0&&n.lazy.loadInSlide(i(y));var b=r.children("."+a.slidePrevClass);b.length>0&&n.lazy.loadInSlide(i(b))}}},Pt={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;Be.extend(e,{lazy:{initialImageLoaded:!1,load:Ot.load.bind(e),loadInSlide:Ot.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()}}},jt={LinearSpline:function(e,t){var i=function(){var e,t,i;return function(n,r){for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var n,r;return this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new jt.LinearSpline(t.slidesGrid,e.slidesGrid):new jt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),r=-a.controller.spline.interpolate(-t)),r&&"container"!==a.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),r=(t-a.minTranslate())*n+e.minTranslate()),a.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,a),e.updateActiveIndex(),e.updateSlidesClasses()}var n,r,a=this,s=a.controller.control;if(Array.isArray(s))for(var o=0;o<s.length;o+=1)s[o]!==t&&s[o]instanceof at&&i(s[o]);else s instanceof at&&t!==s&&i(s)},setTransition:function(e,t){function i(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&Be.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){a&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var n,r=this,a=r.controller.control;if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==t&&a[n]instanceof at&&i(a[n]);else a instanceof at&&t!==a&&i(a)}},It={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;Be.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:jt.getInterpolateFunction.bind(e),setTranslate:jt.setTranslate.bind(e),setTransition:jt.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)}}},At={makeElFocusable:function(e){return e.attr("tabIndex","0"),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(t){var i=this,n=i.params.a11y;if(13===t.keyCode){var r=e(t.target);i.navigation&&i.navigation.$nextEl&&r.is(i.navigation.$nextEl)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?i.a11y.notify(n.lastSlideMessage):i.a11y.notify(n.nextSlideMessage)),i.navigation&&i.navigation.$prevEl&&r.is(i.navigation.$prevEl)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?i.a11y.notify(n.firstSlideMessage):i.a11y.notify(n.prevSlideMessage)),i.pagination&&r.is("."+i.params.pagination.bulletClass)&&r[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){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&i.length>0&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(i))}},updatePagination:function(){var t=this,i=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(n,r){var a=e(r);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,i.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,n=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,n.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,n.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=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t,i;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),i&&i.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},Mt={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 t=this;Be.extend(t,{a11y:{liveRegion:e('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(At).forEach(function(e){t.a11y[e]=At[e].bind(t)})},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()}}},Dt={init:function(){var e=this;if(e.params.history){if(!Le.history||!Le.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=Dt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Le.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||Le.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Dt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=Le.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var n=i.slides.eq(t),r=Dt.slugify(n.attr("data-history"));Le.location.pathname.includes(e)||(r=e+"/"+r);var a=Le.history.state;a&&a.value===r||(i.params.history.replaceState?Le.history.replaceState({value:r},null,r):Le.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var r=0,a=n.slides.length;r<a;r+=1){var s=n.slides.eq(r),o=Dt.slugify(s.attr("data-history"));if(o===t&&!s.hasClass(n.params.slideDuplicateClass)){var l=s.index();n.slideTo(l,e,i)}}else n.slideTo(0,e,i)}},Lt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;Be.extend(e,{history:{init:Dt.init.bind(e),setHistory:Dt.setHistory.bind(e),setHistoryPopState:Dt.setHistoryPopState.bind(e),scrollToSlide:Dt.scrollToSlide.bind(e),destroy:Dt.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)}}},Nt={onHashCange:function(){var e=this,t=De.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&Le.history&&Le.history.replaceState)Le.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");De.location.hash=i||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var i=De.location.hash.replace("#","");if(i)for(var n=0,r=t.slides.length;n<r;n+=1){var a=t.slides.eq(n),s=a.attr("data-hash")||a.attr("data-history");if(s===i&&!a.hasClass(t.params.slideDuplicateClass)){var o=a.index();t.slideTo(o,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&e(Le).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){var t=this;t.params.hashNavigation.watchState&&e(Le).off("hashchange",t.hashNavigation.onHashCange)}},Rt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;Be.extend(e,{hashNavigation:{initialized:!1,init:Nt.init.bind(e),destroy:Nt.destroy.bind(e),setHash:Nt.setHash.bind(e),onHashCange:Nt.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()}}},Bt={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=Be.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"))},i)},start:function(){var e=this;return void 0===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&&(void 0!==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())))}},zt={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;Be.extend(e,{autoplay:{running:!1,paused:!1,run:Bt.run.bind(e),start:Bt.start.bind(e),stop:Bt.stop.bind(e),pause:Bt.pause.bind(e),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()},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())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},Ut={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),r=n[0].swiperSlideOffset,a=-r;e.params.virtualTranslate||(a-=e.translate);var s=0;e.isHorizontal()||(s=a,a=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d("+a+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=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)n.trigger(e[i])}})}}},Ft={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;Be.extend(e,{fadeEffect:{setTranslate:Ut.setTranslate.bind(e),setTransition:Ut.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};Be.extend(e.params,t),Be.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)}}},Ht={setTranslate:function(){var t,i=this,n=i.$el,r=i.$wrapperEl,a=i.slides,s=i.width,o=i.height,l=i.rtlTranslate,u=i.size,d=i.params.cubeEffect,c=i.isHorizontal(),p=i.virtual&&i.params.virtual.enabled,h=0;d.shadow&&(c?(t=r.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),r.append(t)),t.css({height:s+"px"})):(t=n.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),n.append(t))));for(var f=0;f<a.length;f+=1){var v=a.eq(f),m=f;p&&(m=parseInt(v.attr("data-swiper-slide-index"),10));var g=90*m,y=Math.floor(g/360);l&&(g=-g,y=Math.floor(-g/360));var b=Math.max(Math.min(v[0].progress,1),-1),w=0,T=0,_=0;m%4==0?(w=4*-y*u,_=0):(m-1)%4==0?(w=0,_=4*-y*u):(m-2)%4==0?(w=u+4*y*u,_=u):(m-3)%4==0&&(w=-u,_=3*u+4*u*y),l&&(w=-w),c||(T=w,w=0);var S="rotateX("+(c?0:-g)+"deg) rotateY("+(c?g:0)+"deg) translate3d("+w+"px, "+T+"px, "+_+"px)";if(b<=1&&b>-1&&(h=90*m+90*b,l&&(h=90*-m-90*b)),v.transform(S),d.slideShadows){var x=c?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=c?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===x.length&&(x=e('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),v.append(x)),0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),v.append(E)),x.length&&(x[0].style.opacity=Math.max(-b,0)),E.length&&(E[0].style.opacity=Math.max(b,0))}}if(r.css({"-webkit-transform-origin":"50% 50% -"+u/2+"px","-moz-transform-origin":"50% 50% -"+u/2+"px","-ms-transform-origin":"50% 50% -"+u/2+"px","transform-origin":"50% 50% -"+u/2+"px"}),d.shadow)if(c)t.transform("translate3d(0px, "+(s/2+d.shadowOffset)+"px, "+-s/2+"px) rotateX(90deg) rotateZ(0deg) scale("+d.shadowScale+")");else{var k=Math.abs(h)-90*Math.floor(Math.abs(h)/90),C=1.5-(Math.sin(2*k*Math.PI/360)/2+Math.cos(2*k*Math.PI/360)/2),O=d.shadowScale,P=d.shadowScale/C,j=d.shadowOffset;t.transform("scale3d("+O+", 1, "+P+") translate3d(0px, "+(o/2+j)+"px, "+-o/2/P+"px) rotateX(-90deg)")}var I=Ue.isSafari||Ue.isUiWebView?-u/2:0;r.transform("translate3d(0px,0,"+I+"px) rotateX("+(i.isHorizontal()?0:h)+"deg) rotateY("+(i.isHorizontal()?-h:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el;t.slides.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)}},Vt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;Be.extend(e,{cubeEffect:{setTranslate:Ht.setTranslate.bind(e),setTransition:Ht.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};Be.extend(e.params,t),Be.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 t=this,i=t.slides,n=t.rtlTranslate,r=0;r<i.length;r+=1){var a=i.eq(r),s=a[0].progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(a[0].progress,1),-1));var o=a[0].swiperSlideOffset,l=-180*s,u=l,d=0,c=-o,p=0;if(t.isHorizontal()?n&&(u=-u):(p=c,c=0,d=-u,u=0),a[0].style.zIndex=-Math.abs(Math.round(s))+i.length,t.params.flipEffect.slideShadows){var h=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===h.length&&(h=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),a.append(h)),0===f.length&&(f=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),h.length&&(h[0].style.opacity=Math.max(-s,0)),f.length&&(f[0].style.opacity=Math.max(s,0))}a.transform("translate3d("+c+"px, "+p+"px, 0px) rotateX("+d+"deg) rotateY("+u+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=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 a=!1;i.eq(n).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},Gt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;Be.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};Be.extend(e.params,t),Be.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)}}},Wt={setTranslate:function(){for(var t=this,i=t.width,n=t.height,r=t.slides,a=t.$wrapperEl,s=t.slidesSizesGrid,o=t.params.coverflowEffect,l=t.isHorizontal(),u=t.translate,d=l?i/2-u:n/2-u,c=l?o.rotate:-o.rotate,p=o.depth,h=0,f=r.length;h<f;h+=1){var v=r.eq(h),m=s[h],g=v[0].swiperSlideOffset,y=(d-g-m/2)/m*o.modifier,b=l?c*y:0,w=l?0:c*y,T=-p*Math.abs(y),_=l?0:o.stretch*y,S=l?o.stretch*y:0;Math.abs(S)<.001&&(S=0),Math.abs(_)<.001&&(_=0),Math.abs(T)<.001&&(T=0),Math.abs(b)<.001&&(b=0),Math.abs(w)<.001&&(w=0);var x="translate3d("+S+"px,"+_+"px,"+T+"px) rotateX("+w+"deg) rotateY("+b+"deg)";if(v.transform(x),v[0].style.zIndex=1-Math.abs(Math.round(y)),o.slideShadows){var E=l?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),k=l?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),v.append(E)),0===k.length&&(k=e('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),v.append(k)),E.length&&(E[0].style.opacity=y>0?y:0),k.length&&(k[0].style.opacity=-y>0?-y:0)}}if(ze.pointerEvents||ze.prefixedPointerEvents){a[0].style.perspectiveOrigin=d+"px 50%"}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},Xt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;Be.extend(e,{coverflowEffect:{setTranslate:Wt.setTranslate.bind(e),setTransition:Wt.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)}}},$t={init:function(){var e=this,t=e.params,i=t.thumbs,n=e.constructor;i.swiper instanceof n?(e.thumbs.swiper=i.swiper,Be.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Be.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Be.isObject(i.swiper)&&(e.thumbs.swiper=new n(Be.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 t=this,i=t.thumbs.swiper;if(i){var n=i.clickedIndex,r=i.clickedSlide;if(!(r&&e(r).hasClass(t.params.thumbs.slideThumbActiveClass)||void 0===n||null===n)){var a;if(a=i.params.loop?parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var s=t.activeIndex;t.slides.eq(s).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,s=t.activeIndex);var o=t.slides.eq(s).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),l=t.slides.eq(s).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===o?l:void 0===l?o:l-s<s-o?l:o}t.slideTo(a)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;if(t.realIndex!==i.realIndex){var r,a=i.activeIndex;if(i.params.loop){i.slides.eq(a).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,a=i.activeIndex);var s=i.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();r=void 0===s?o:void 0===o?s:o-a==a-s?a:o-a<a-s?o:s}else r=t.realIndex;i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(r)<0&&(i.params.centeredSlides?r=r>a?r-Math.floor(n/2)+1:r+Math.floor(n/2)-1:r>a&&(r=r-n+1),i.slideTo(r,e?0:void 0))}var l=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),i.slides.removeClass(u),i.params.loop||i.params.virtual)for(var d=0;d<l;d+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+d)+'"]').addClass(u);else for(var c=0;c<l;c+=1)i.slides.eq(t.realIndex+c).addClass(u)}}},Yt={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;Be.extend(e,{thumbs:{swiper:null,init:$t.init.bind(e),update:$t.update.bind(e),onThumbClick:$t.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()}}},Kt=[st,ot,lt,ut,ct,ht,vt,gt,bt,Tt,St,Et,Ct,Pt,It,Mt,Lt,Rt,zt,Ft,Vt,Gt,Xt,Yt];return void 0===at.use&&(at.use=at.Class.use,at.installModule=at.Class.installModule),at.use(Kt),at})},function(e,t,i){"use strict";function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(){var e=this,t=void 0,i=void 0,n=e.$el;t=void 0!==e.params.width?e.params.width:n[0].clientWidth,i=void 0!==e.params.height?e.params.height:n[0].clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),i=i-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),ae.extend(e,{width:t,height:i,size:e.isHorizontal()?t:i}))}function o(){var e=this,t=e.params,i=e.$wrapperEl,n=e.size,r=e.rtlTranslate,a=e.wrongRTL,s=e.virtual&&t.virtual.enabled,o=s?e.virtual.slides.length:e.slides.length,l=i.children("."+e.params.slideClass),u=s?e.virtual.slides.length:l.length,d=[],c=[],p=[],h=t.slidesOffsetBefore;"function"==typeof h&&(h=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var v=e.snapGrid.length,m=e.snapGrid.length,g=t.spaceBetween,y=-h,b=0,w=0;if(void 0!==n){"string"==typeof g&&g.indexOf("%")>=0&&(g=parseFloat(g.replace("%",""))/100*n),e.virtualSize=-g,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var T=void 0;t.slidesPerColumn>1&&(T=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var _=void 0,S=t.slidesPerColumn,x=T/S,E=Math.floor(u/t.slidesPerColumn),k=0;k<u;k+=1){_=0;var C=l.eq(k);if(t.slidesPerColumn>1){var O=void 0,P=void 0,j=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)P=Math.floor(k/S),j=k-P*S,(P>E||P===E&&j===S-1)&&(j+=1)>=S&&(j=0,P+=1);else{var I=Math.floor(k/t.slidesPerGroup);j=Math.floor(k/t.slidesPerView)-I*t.slidesPerColumn,P=k-j*t.slidesPerView-I*t.slidesPerView}O=P+j*T/S,C.css({"-webkit-box-ordinal-group":O,"-moz-box-ordinal-group":O,"-ms-flex-order":O,"-webkit-order":O,order:O})}else j=Math.floor(k/x),P=k-j*x;C.css("margin-"+(e.isHorizontal()?"top":"left"),0!==j&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",P).attr("data-swiper-row",j)}if("none"!==C.css("display")){if("auto"===t.slidesPerView){var A=te.b.getComputedStyle(C[0],null),M=C[0].style.transform,D=C[0].style.webkitTransform;if(M&&(C[0].style.transform="none"),D&&(C[0].style.webkitTransform="none"),t.roundLengths)_=e.isHorizontal()?C.outerWidth(!0):C.outerHeight(!0);else if(e.isHorizontal()){var L=parseFloat(A.getPropertyValue("width")),N=parseFloat(A.getPropertyValue("padding-left")),R=parseFloat(A.getPropertyValue("padding-right")),B=parseFloat(A.getPropertyValue("margin-left")),z=parseFloat(A.getPropertyValue("margin-right")),U=A.getPropertyValue("box-sizing");_=U&&"border-box"===U&&!oe.isIE?L+B+z:L+N+R+B+z}else{var F=parseFloat(A.getPropertyValue("height")),H=parseFloat(A.getPropertyValue("padding-top")),V=parseFloat(A.getPropertyValue("padding-bottom")),q=parseFloat(A.getPropertyValue("margin-top")),G=parseFloat(A.getPropertyValue("margin-bottom")),W=A.getPropertyValue("box-sizing");_=W&&"border-box"===W&&!oe.isIE?F+q+G:F+H+V+q+G}M&&(C[0].style.transform=M),D&&(C[0].style.webkitTransform=D),t.roundLengths&&(_=Math.floor(_))}else _=(n-(t.slidesPerView-1)*g)/t.slidesPerView,t.roundLengths&&(_=Math.floor(_)),l[k]&&(e.isHorizontal()?l[k].style.width=_+"px":l[k].style.height=_+"px");l[k]&&(l[k].swiperSlideSize=_),p.push(_),t.centeredSlides?(y=y+_/2+b/2+g,0===b&&0!==k&&(y=y-n/2-g),0===k&&(y=y-n/2-g),Math.abs(y)<.001&&(y=0),t.roundLengths&&(y=Math.floor(y)),w%t.slidesPerGroup==0&&d.push(y),c.push(y)):(t.roundLengths&&(y=Math.floor(y)),w%t.slidesPerGroup==0&&d.push(y),c.push(y),y=y+_+g),e.virtualSize+=_+g,b=_,w+=1}}e.virtualSize=Math.max(e.virtualSize,n)+f;var X=void 0;if(r&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),se.flexbox&&!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=(_+t.spaceBetween)*T,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 $=0;$<d.length;$+=1){var Y=d[$];t.roundLengths&&(Y=Math.floor(Y)),d[$]<e.virtualSize+d[0]&&X.push(Y)}d=X}if(!t.centeredSlides){X=[];for(var K=0;K<d.length;K+=1){var Q=d[K];t.roundLengths&&(Q=Math.floor(Q)),d[K]<=e.virtualSize-n&&X.push(Q)}d=X,Math.floor(e.virtualSize-n)-Math.floor(d[d.length-1])>1&&d.push(e.virtualSize-n)}if(0===d.length&&(d=[0]),0!==t.spaceBetween&&(e.isHorizontal()?r?l.css({marginLeft:g+"px"}):l.css({marginRight:g+"px"}):l.css({marginBottom:g+"px"})),t.centerInsufficientSlides){var J=0;if(p.forEach(function(e){J+=e+(t.spaceBetween?t.spaceBetween:0)}),(J-=t.spaceBetween)<n){var Z=(n-J)/2;d.forEach(function(e,t){d[t]=e-Z}),c.forEach(function(e,t){c[t]=e+Z})}}ae.extend(e,{slides:l,snapGrid:d,slidesGrid:c,slidesSizesGrid:p}),u!==o&&e.emit("slidesLengthChange"),d.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),c.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function l(e){var t=this,i=[],n=0,r=void 0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){var a=t.activeIndex+r;if(a>t.slides.length)break;i.push(t.slides.eq(a)[0])}else i.push(t.slides.eq(t.activeIndex)[0]);for(r=0;r<i.length;r+=1)if(void 0!==i[r]){var s=i[r].offsetHeight;n=s>n?s:n}n&&t.$wrapperEl.css("height",n+"px")}function u(){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 d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,i=t.params,n=t.slides,r=t.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();var a=-e;r&&(a=e),n.removeClass(i.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var s=0;s<n.length;s+=1){var o=n[s],l=(a+(i.centeredSlides?t.minTranslate():0)-o.swiperSlideOffset)/(o.swiperSlideSize+i.spaceBetween);if(i.watchSlidesVisibility){var u=-(a-o.swiperSlideOffset),d=u+t.slidesSizesGrid[s];(u>=0&&u<t.size-1||d>1&&d<=t.size||u<=0&&d>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(s),n.eq(s).addClass(i.slideVisibleClass))}o.progress=r?-l:l}t.visibleSlides=Object(ee.a)(t.visibleSlides)}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,t=this,i=t.params,n=t.maxTranslate()-t.minTranslate(),r=t.progress,a=t.isBeginning,s=t.isEnd,o=a,l=s;0===n?(r=0,a=!0,s=!0):(r=(e-t.minTranslate())/n,a=r<=0,s=r>=1),ae.extend(t,{progress:r,isBeginning:a,isEnd:s}),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesProgress(e),a&&!o&&t.emit("reachBeginning toEdge"),s&&!l&&t.emit("reachEnd toEdge"),(o&&!a||l&&!s)&&t.emit("fromEdge"),t.emit("progress",r)}function p(){var e=this,t=e.slides,i=e.params,n=e.$wrapperEl,r=e.activeIndex,a=e.realIndex,s=e.virtual&&i.virtual.enabled;t.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass);var o=void 0;o=s?e.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):t.eq(r),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(i.slideDuplicateActiveClass));var l=o.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=t.eq(0),l.addClass(i.slideNextClass));var u=o.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===u.length&&(u=t.eq(-1),u.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),u.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))}function h(e){var t=this,i=t.rtlTranslate?t.translate:-t.translate,n=t.slidesGrid,r=t.snapGrid,a=t.params,s=t.activeIndex,o=t.realIndex,l=t.snapIndex,u=e,d=void 0;if(void 0===u){for(var c=0;c<n.length;c+=1)void 0!==n[c+1]?i>=n[c]&&i<n[c+1]-(n[c+1]-n[c])/2?u=c:i>=n[c]&&i<n[c+1]&&(u=c+1):i>=n[c]&&(u=c);a.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if(d=r.indexOf(i)>=0?r.indexOf(i):Math.floor(u/a.slidesPerGroup),d>=r.length&&(d=r.length-1),u===s)return void(d!==l&&(t.snapIndex=d,t.emit("snapIndexChange")));var p=parseInt(t.slides.eq(u).attr("data-swiper-slide-index")||u,10);ae.extend(t,{snapIndex:d,realIndex:p,previousIndex:s,activeIndex:u}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==p&&t.emit("realIndexChange"),(t.initialized||t.runCallbacksOnInit)&&t.emit("slideChange")}function f(e){var t=this,i=t.params,n=Object(ee.a)(e.target).closest("."+i.slideClass)[0],r=!1;if(n)for(var a=0;a<t.slides.length;a+=1)t.slides[a]===n&&(r=!0);if(!n||!r)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(Object(ee.a)(n).attr("data-swiper-slide-index"),10):t.clickedIndex=Object(ee.a)(n).index(),i.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",t=this,i=t.params,n=t.rtlTranslate,r=t.translate,a=t.$wrapperEl;if(i.virtualTranslate)return n?-r:r;var s=ae.getTranslate(a[0],e);return n&&(s=-s),s||0}function m(e,t){var i=this,n=i.rtlTranslate,r=i.params,a=i.$wrapperEl,s=i.progress,o=0,l=0;i.isHorizontal()?o=n?-e:e:l=e,r.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),r.virtualTranslate||(se.transforms3d?a.transform("translate3d("+o+"px, "+l+"px, 0px)"):a.transform("translate("+o+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l;var u=void 0,d=i.maxTranslate()-i.minTranslate();u=0===d?0:(e-i.minTranslate())/d,u!==s&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)}function g(){return-this.snapGrid[0]}function y(){return-this.snapGrid[this.snapGrid.length-1]}function b(e,t){var i=this;i.$wrapperEl.transition(e),i.emit("setTransition",e,t)}function w(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments[1],i=this,n=i.activeIndex,r=i.params,a=i.previousIndex;r.autoHeight&&i.updateAutoHeight();var s=t;if(s||(s=n>a?"next":n<a?"prev":"reset"),i.emit("transitionStart"),e&&n!==a){if("reset"===s)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===s?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}}function T(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments[1],i=this,n=i.activeIndex,r=i.previousIndex;i.animating=!1,i.setTransition(0);var a=t;if(a||(a=n>r?"next":n<r?"prev":"reset"),i.emit("transitionEnd"),e&&n!==r){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments[3],r=this,a=e;a<0&&(a=0);var s=r.params,o=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,d=r.activeIndex,c=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var p=Math.floor(a/s.slidesPerGroup);p>=o.length&&(p=o.length-1),(d||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var h=-o[p];if(r.updateProgress(h),s.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*h)>=Math.floor(100*l[f])&&(a=f);if(r.initialized&&a!==d){if(!r.allowSlideNext&&h<r.translate&&h<r.minTranslate())return!1;if(!r.allowSlidePrev&&h>r.translate&&h>r.maxTranslate()&&(d||0)!==a)return!1}var v=void 0;return v=a>d?"next":a<d?"prev":"reset",c&&-h===r.translate||!c&&h===r.translate?(r.updateActiveIndex(a),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(h),"reset"!==v&&(r.transitionStart(i,v),r.transitionEnd(i,v)),!1):(0!==t&&se.transition?(r.setTransition(t),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(e){r&&!r.destroyed&&e.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,v))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(h),r.updateActiveIndex(a),r.updateSlidesClasses(),r.emit("beforeTransitionStart",t,n),r.transitionStart(i,v),r.transitionEnd(i,v)),!0)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments[3],r=this,a=e;return r.params.loop&&(a+=r.loopedSlides),r.slideTo(a,t,i,n)}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this,r=n.params,a=n.animating;return r.loop?!a&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+r.slidesPerGroup,e,t,i)}function E(){function e(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments[2],r=this,a=r.params,s=r.animating,o=r.snapGrid,l=r.slidesGrid,u=r.rtlTranslate;if(a.loop){if(s)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var d=u?r.translate:-r.translate,c=e(d),p=o.map(function(t){return e(t)}),h=(l.map(function(t){return e(t)}),o[p.indexOf(c)],o[p.indexOf(c)-1]),f=void 0;return void 0!==h&&(f=l.indexOf(h))<0&&(f=r.activeIndex-1),r.slideTo(f,t,i,n)}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this;return n.slideTo(n.activeIndex,e,t,i)}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this,r=n.activeIndex,a=Math.floor(r/n.params.slidesPerGroup);if(a<n.snapGrid.length-1){var s=n.rtlTranslate?n.translate:-n.translate,o=n.snapGrid[a];s-o>(n.snapGrid[a+1]-o)/2&&(r=n.params.slidesPerGroup)}return n.slideTo(r,e,t,i)}function O(){var e=this,t=e.params,i=e.$wrapperEl,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView,r=e.clickedIndex,a=void 0;if(t.loop){if(e.animating)return;a=parseInt(Object(ee.a)(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?r<e.loopedSlides-n/2||r>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),r=i.children("."+t.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.'+t.slideDuplicateClass+")").eq(0).index(),ae.nextTick(function(){e.slideTo(r)})):e.slideTo(r):r>e.slides.length-n?(e.loopFix(),r=i.children("."+t.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.'+t.slideDuplicateClass+")").eq(0).index(),ae.nextTick(function(){e.slideTo(r)})):e.slideTo(r)}else e.slideTo(r)}function P(){var e=this,t=e.params,i=e.$wrapperEl;i.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var n=i.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var r=t.slidesPerGroup-n.length%t.slidesPerGroup;if(r!==t.slidesPerGroup){for(var a=0;a<r;a+=1){var s=Object(ee.a)(te.a.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);i.append(s)}n=i.children("."+t.slideClass)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=n.length),e.loopedSlides=parseInt(t.loopedSlides||t.slidesPerView,10),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>n.length&&(e.loopedSlides=n.length);var o=[],l=[];n.each(function(t,i){var r=Object(ee.a)(i);t<e.loopedSlides&&l.push(i),t<n.length&&t>=n.length-e.loopedSlides&&o.push(i),r.attr("data-swiper-slide-index",t)});for(var u=0;u<l.length;u+=1)i.append(Object(ee.a)(l[u].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var d=o.length-1;d>=0;d-=1)i.prepend(Object(ee.a)(o[d].cloneNode(!0)).addClass(t.slideDuplicateClass))}function j(){var e=this,t=e.params,i=e.activeIndex,n=e.slides,r=e.loopedSlides,a=e.allowSlidePrev,s=e.allowSlideNext,o=e.snapGrid,l=e.rtlTranslate,u=void 0;e.allowSlidePrev=!0,e.allowSlideNext=!0;var d=-o[i],c=d-e.getTranslate();if(i<r){u=n.length-3*r+i,u+=r;e.slideTo(u,0,!1,!0)&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}else if("auto"===t.slidesPerView&&i>=2*r||i>=n.length-r){u=-n.length+i+r,u+=r;var p=e.slideTo(u,0,!1,!0);p&&0!==c&&e.setTranslate((l?-e.translate:e.translate)-c)}e.allowSlidePrev=a,e.allowSlideNext=s}function I(){var e=this,t=e.$wrapperEl,i=e.params,n=e.slides;t.children("."+i.slideClass+"."+i.slideDuplicateClass+",."+i.slideClass+"."+i.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}function A(e){var t=this;if(!(se.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){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 M(){var e=this;se.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}function D(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"===(void 0===e?"undefined":ne(e))&&"length"in e)for(var r=0;r<e.length;r+=1)e[r]&&i.append(e[r]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&se.observer||t.update()}function L(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex;i.loop&&t.loopDestroy();var a=r+1;if("object"===(void 0===e?"undefined":ne(e))&&"length"in e){for(var s=0;s<e.length;s+=1)e[s]&&n.prepend(e[s]);a=r+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&se.observer||t.update(),t.slideTo(a,0,!1)}function N(e,t){var i=this,n=i.$wrapperEl,r=i.params,a=i.activeIndex,s=a;r.loop&&(s-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+r.slideClass));var o=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=o)return void i.appendSlide(t);for(var l=s>e?s+1:s,u=[],d=o-1;d>=e;d-=1){var c=i.slides.eq(d);c.remove(),u.unshift(c)}if("object"===(void 0===t?"undefined":ne(t))&&"length"in t){for(var p=0;p<t.length;p+=1)t[p]&&n.append(t[p]);l=s>e?s+t.length:s}else n.append(t);for(var h=0;h<u.length;h+=1)n.append(u[h]);r.loop&&i.loopCreate(),r.observer&&se.observer||i.update(),r.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function R(e){var t=this,i=t.params,n=t.$wrapperEl,r=t.activeIndex,a=r;i.loop&&(a-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var s=a,o=void 0;if("object"===(void 0===e?"undefined":ne(e))&&"length"in e){for(var l=0;l<e.length;l+=1)o=e[l],t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1);s=Math.max(s,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1),s=Math.max(s,0);i.loop&&t.loopCreate(),i.observer&&se.observer||t.update(),i.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)}function B(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function z(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches;if(!t.animating||!n.preventInteractionOnTransition){var a=e;if(a.originalEvent&&(a=a.originalEvent),i.isTouchEvent="touchstart"===a.type,(i.isTouchEvent||!("which"in a)||3!==a.which)&&!(!i.isTouchEvent&&"button"in a&&a.button>0||i.isTouched&&i.isMoved)){if(n.noSwiping&&Object(ee.a)(a.target).closest(n.noSwipingSelector?n.noSwipingSelector:"."+n.noSwipingClass)[0])return void(t.allowClick=!0);if(!n.swipeHandler||Object(ee.a)(a).closest(n.swipeHandler)[0]){r.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,r.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var s=r.currentX,o=r.currentY,l=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,u=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!l||!(s<=u||s>=te.b.screen.width-u)){if(ae.extend(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=s,r.startY=o,i.touchStartTime=ae.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(i.allowThresholdMove=!1),"touchstart"!==a.type){var d=!0;Object(ee.a)(a.target).is(i.formElements)&&(d=!1),te.a.activeElement&&Object(ee.a)(te.a.activeElement).is(i.formElements)&&te.a.activeElement!==a.target&&te.a.activeElement.blur();var c=d&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||c)&&a.preventDefault()}t.emit("touchStart",a)}}}}}function U(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,a=t.rtlTranslate,s=e;if(s.originalEvent&&(s=s.originalEvent),!i.isTouched)return void(i.startMoving&&i.isScrolling&&t.emit("touchMoveOpposite",s));if(!i.isTouchEvent||"mousemove"!==s.type){var o="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,l="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return r.startX=o,void(r.startY=l);if(!t.allowTouchMove)return t.allowClick=!1,void(i.isTouched&&(ae.extend(r,{startX:o,startY:l,currentX:o,currentY:l}),i.touchStartTime=ae.now()));if(i.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(t.isVertical()){if(l<r.startY&&t.translate<=t.maxTranslate()||l>r.startY&&t.translate>=t.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(o<r.startX&&t.translate<=t.maxTranslate()||o>r.startX&&t.translate>=t.minTranslate())return;if(i.isTouchEvent&&te.a.activeElement&&s.target===te.a.activeElement&&Object(ee.a)(s.target).is(i.formElements))return i.isMoved=!0,void(t.allowClick=!1);if(i.allowTouchCallbacks&&t.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){r.currentX=o,r.currentY=l;var u=r.currentX-r.startX,d=r.currentY-r.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(u,2)+Math.pow(d,2))<t.params.threshold)){if(void 0===i.isScrolling){var c=void 0;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?i.isScrolling=!1:u*u+d*d>=25&&(c=180*Math.atan2(Math.abs(d),Math.abs(u))/Math.PI,i.isScrolling=t.isHorizontal()?c>n.touchAngle:90-c>n.touchAngle)}if(i.isScrolling&&t.emit("touchMoveOpposite",s),void 0===i.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(i.startMoving=!0)),i.isScrolling)return void(i.isTouched=!1);if(i.startMoving){t.allowClick=!1,s.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&s.stopPropagation(),i.isMoved||(n.loop&&t.loopFix(),i.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!n.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",s)),t.emit("sliderMove",s),i.isMoved=!0;var p=t.isHorizontal()?u:d;r.diff=p,p*=n.touchRatio,a&&(p=-p),t.swipeDirection=p>0?"prev":"next",i.currentTranslate=p+i.startTranslate;var h=!0,f=n.resistanceRatio;if(n.touchReleaseOnEdges&&(f=0),p>0&&i.currentTranslate>t.minTranslate()?(h=!1,n.resistance&&(i.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+i.startTranslate+p,f))):p<0&&i.currentTranslate<t.maxTranslate()&&(h=!1,n.resistance&&(i.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-i.startTranslate-p,f))),h&&(s.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),n.threshold>0){if(!(Math.abs(p)>n.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,i.currentTranslate=i.startTranslate,void(r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),n.freeMode&&(0===i.velocities.length&&i.velocities.push({position:r[t.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:r[t.isHorizontal()?"currentX":"currentY"],time:ae.now()})),t.updateProgress(i.currentTranslate),t.setTranslate(i.currentTranslate))}}}}}function F(e){var t=this,i=t.touchEventsData,n=t.params,r=t.touches,a=t.rtlTranslate,s=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var d=ae.now(),c=d-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),c<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=ae.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),c<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",u))),i.lastClickTime=ae.now(),ae.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);i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;var p=void 0;if(p=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(p<-t.minTranslate())return void t.slideTo(t.activeIndex);if(p>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var h=i.velocities.pop(),f=i.velocities.pop(),v=h.position-f.position,m=h.time-f.time;t.velocity=v/m,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(m>150||ae.now()-h.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var g=1e3*n.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;a&&(b=-b);var w=!1,T=void 0,_=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio,S=void 0;if(b<t.maxTranslate())n.freeModeMomentumBounce?(b+t.maxTranslate()<-_&&(b=t.maxTranslate()-_),T=t.maxTranslate(),w=!0,i.allowMomentumBounce=!0):b=t.maxTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(b>t.minTranslate())n.freeModeMomentumBounce?(b-t.minTranslate()>_&&(b=t.minTranslate()+_),T=t.minTranslate(),w=!0,i.allowMomentumBounce=!0):b=t.minTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(n.freeModeSticky){for(var x=void 0,E=0;E<l.length;E+=1)if(l[E]>-b){x=E;break}b=Math.abs(l[x]-b)<Math.abs(l[x-1]-b)||"next"===t.swipeDirection?l[x]:l[x-1],b=-b}if(S&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)g=a?Math.abs((-b-t.translate)/t.velocity):Math.abs((b-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&w?(t.updateProgress(T),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(T),s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(b),t.setTransition(g),t.setTranslate(b),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(b),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();return void((!n.freeModeMomentum||c>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}for(var k=0,C=t.slidesSizesGrid[0],O=0;O<o.length;O+=n.slidesPerGroup)void 0!==o[O+n.slidesPerGroup]?p>=o[O]&&p<o[O+n.slidesPerGroup]&&(k=O,C=o[O+n.slidesPerGroup]-o[O]):p>=o[O]&&(k=O,C=o[o.length-1]-o[o.length-2]);var P=(p-o[k])/C;if(c>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(P>=n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(P>1-n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}function H(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=e.allowSlideNext,r=e.allowSlidePrev,a=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var s=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(s),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!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=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function V(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function q(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl;e.onTouchStart=z.bind(e),e.onTouchMove=U.bind(e),e.onTouchEnd=F.bind(e),e.onClick=V.bind(e);var a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(se.touch||!se.pointerEvents&&!se.prefixedPointerEvents){if(se.touch){var o=!("touchstart"!==i.start||!se.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(i.start,e.onTouchStart,o),a.addEventListener(i.move,e.onTouchMove,se.passiveListener?{passive:!1,capture:s}:s),a.addEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!me.ios&&!me.android||t.simulateTouch&&!se.touch&&me.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),te.a.addEventListener("mousemove",e.onTouchMove,s),te.a.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(i.start,e.onTouchStart,!1),te.a.addEventListener(i.move,e.onTouchMove,s),te.a.addEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(me.ios||me.android?"resize orientationchange observerUpdate":"resize observerUpdate",H,!0)}function G(){var e=this,t=e.params,i=e.touchEvents,n=e.el,r=e.wrapperEl,a="container"===t.touchEventsTarget?n:r,s=!!t.nested;if(se.touch||!se.pointerEvents&&!se.prefixedPointerEvents){if(se.touch){var o=!("onTouchStart"!==i.start||!se.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(i.start,e.onTouchStart,o),a.removeEventListener(i.move,e.onTouchMove,s),a.removeEventListener(i.end,e.onTouchEnd,o)}(t.simulateTouch&&!me.ios&&!me.android||t.simulateTouch&&!se.touch&&me.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),te.a.removeEventListener("mousemove",e.onTouchMove,s),te.a.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(i.start,e.onTouchStart,!1),te.a.removeEventListener(i.move,e.onTouchMove,s),te.a.removeEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(me.ios||me.android?"resize orientationchange observerUpdate":"resize observerUpdate",H)}function W(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides,r=void 0===n?0:n,a=e.params,s=a.breakpoints;if(s&&(!s||0!==Object.keys(s).length)){var o=e.getBreakpoint(s);if(o&&e.currentBreakpoint!==o){var l=o in s?s[o]:void 0;l&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(e){var t=l[e];void 0!==t&&(l[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")});var u=l||e.originalParams,d=u.direction&&u.direction!==a.direction,c=a.loop&&(u.slidesPerView!==a.slidesPerView||d);d&&i&&e.changeDirection(),ae.extend(e.params,u),ae.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,c&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",u)}}}function X(e){var t=this;if(e){var i=!1,n=[];Object.keys(e).forEach(function(e){n.push(e)}),n.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var r=0;r<n.length;r+=1){var a=n[r];t.params.breakpointsInverse?a<=te.b.innerWidth&&(i=a):a>=te.b.innerWidth&&!i&&(i=a)}return i||"max"}}function $(){var e=this,t=e.classNames,i=e.params,n=e.rtl,r=e.$el,a=[];a.push("initialized"),a.push(i.direction),i.freeMode&&a.push("free-mode"),se.flexbox||a.push("no-flexbox"),i.autoHeight&&a.push("autoheight"),n&&a.push("rtl"),i.slidesPerColumn>1&&a.push("multirow"),me.android&&a.push("android"),me.ios&&a.push("ios"),(oe.isIE||oe.isEdge)&&(se.pointerEvents||se.prefixedPointerEvents)&&a.push("wp8-"+i.direction),a.forEach(function(e){t.push(i.containerModifierClass+e)}),r.addClass(t.join(" "))}function Y(){var e=this,t=e.$el,i=e.classNames;t.removeClass(i.join(" "))}function K(e,t,i,n,r,a){function s(){a&&a()}var o=void 0;e.complete&&r?s():t?(o=new te.b.Image,o.onload=s,o.onerror=s,n&&(o.sizes=n),i&&(o.srcset=i),t&&(o.src=t)):s()}function Q(){function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}function J(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}function Z(){var e="onwheel"in te.a;if(!e){var t=te.a.createElement("div");t.setAttribute("onwheel","return;"),e="function"==typeof t.onwheel}return!e&&te.a.implementation&&te.a.implementation.hasFeature&&!0!==te.a.implementation.hasFeature("","")&&(e=te.a.implementation.hasFeature("Events.wheel","3.0")),e}Object.defineProperty(t,"__esModule",{value:!0});var ee=i(144),te=i(146),ie=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re={addClass:ee.c,removeClass:ee.E,hasClass:ee.m,toggleClass:ee.H,attr:ee.e,removeAttr:ee.D,data:ee.i,transform:ee.I,transition:ee.J,on:ee.u,off:ee.s,trigger:ee.L,transitionEnd:ee.K,outerWidth:ee.w,outerHeight:ee.v,offset:ee.t,css:ee.h,each:ee.j,html:ee.n,text:ee.G,is:ee.p,index:ee.o,eq:ee.k,append:ee.d,prepend:ee.z,next:ee.q,nextAll:ee.r,prev:ee.A,prevAll:ee.B,parent:ee.x,parents:ee.y,closest:ee.g,find:ee.l,children:ee.f,remove:ee.C,add:ee.b,styles:ee.F};Object.keys(re).forEach(function(e){ee.a.fn[e]=ee.a.fn[e]||re[e]});var ae={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})},nextTick:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=void 0,n=void 0,r=void 0,a=te.b.getComputedStyle(e,null);return te.b.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new te.b.WebKitCSSMatrix("none"===n?"":n)):(r=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=r.toString().split(",")),"x"===t&&(n=te.b.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=te.b.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(e){var t={},i=e||te.b.location.href,n=void 0,r=void 0,a=void 0,s=void 0;if("string"==typeof i&&i.length)for(i=i.indexOf("?")>-1?i.replace(/\S*\?/,""):"",r=i.split("&").filter(function(e){return""!==e}),s=r.length,n=0;n<s;n+=1)a=r[n].replace(/#\S+/g,"").split("="),t[decodeURIComponent(a[0])]=void 0===a[1]?void 0:decodeURIComponent(a[1])||"";return t},isObject:function(e){return"object"===(void 0===e?"undefined":ne(e))&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=1;t<arguments.length;t+=1){var i=arguments.length<=t?void 0:arguments[t];if(void 0!==i&&null!==i)for(var n=Object.keys(Object(i)),r=0,a=n.length;r<a;r+=1){var s=n[r],o=Object.getOwnPropertyDescriptor(i,s);void 0!==o&&o.enumerable&&(ae.isObject(e[s])&&ae.isObject(i[s])?ae.extend(e[s],i[s]):!ae.isObject(e[s])&&ae.isObject(i[s])?(e[s]={},ae.extend(e[s],i[s])):e[s]=i[s])}}return e}},se=function(){var e=te.a.createElement("div");return{touch:te.b.Modernizr&&!0===te.b.Modernizr.touch||function(){return!!(te.b.navigator.maxTouchPoints>0||"ontouchstart"in te.b||te.b.DocumentTouch&&te.a instanceof te.b.DocumentTouch)}(),pointerEvents:!!(te.b.navigator.pointerEnabled||te.b.PointerEvent||"maxTouchPoints"in te.b.navigator&&te.b.navigator.maxTouchPoints>0),prefixedPointerEvents:!!te.b.navigator.msPointerEnabled,transition:function(){var t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:te.b.Modernizr&&!0===te.b.Modernizr.csstransforms3d||function(){var t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=e.style,i="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<i.length;n+=1)if(i[n]in t)return!0;return!1}(),observer:function(){return"MutationObserver"in te.b||"WebkitMutationObserver"in te.b}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});te.b.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:function(){return"ongesturestart"in te.b}()}}(),oe=function(){return{isIE:!!te.b.navigator.userAgent.match(/Trident/g)||!!te.b.navigator.userAgent.match(/MSIE/g),isEdge:!!te.b.navigator.userAgent.match(/Edge/g),isSafari:function(){var e=te.b.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(te.b.navigator.userAgent)}}(),le=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e);var i=this;i.params=t,i.eventsListeners={},i.params&&i.params.on&&Object.keys(i.params.on).forEach(function(e){i.on(e,i.params.on[e])})}return ie(e,[{key:"on",value:function(e,t,i){var n=this;if("function"!=typeof t)return n;var r=i?"unshift":"push";return e.split(" ").forEach(function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][r](t)}),n}},{key:"once",value:function(e,t,i){function n(){for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];t.apply(r,a),r.off(e,n),n.f7proxy&&delete n.f7proxy}var r=this;return"function"!=typeof t?r:(n.f7proxy=t,r.on(e,n,i))}},{key:"off",value:function(e,t){var i=this;return i.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach(function(n,r){(n===t||n.f7proxy&&n.f7proxy===t)&&i.eventsListeners[e].splice(r,1)})}),i):i}},{key:"emit",value:function(){var e=this;if(!e.eventsListeners)return e;for(var t=void 0,i=void 0,n=void 0,r=arguments.length,a=Array(r),s=0;s<r;s++)a[s]=arguments[s];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),n=e):(t=a[0].events,i=a[0].data,n=a[0].context||e),(Array.isArray(t)?t:t.split(" ")).forEach(function(t){if(e.eventsListeners&&e.eventsListeners[t]){var r=[];e.eventsListeners[t].forEach(function(e){r.push(e)}),r.forEach(function(e){e.apply(n,i)})}}),e}},{key:"useModulesParams",value:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i];n.params&&ae.extend(e,n.params)})}},{key:"useModules",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this;t.modules&&Object.keys(t.modules).forEach(function(i){var n=t.modules[i],r=e[i]||{};n.instance&&Object.keys(n.instance).forEach(function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i}),n.on&&t.on&&Object.keys(n.on).forEach(function(e){t.on(e,n.on[e])}),n.create&&n.create.bind(t)(r)})}}],[{key:"installModule",value:function(e){var t=this;t.prototype.modules||(t.prototype.modules={});var i=e.name||Object.keys(t.prototype.modules).length+"_"+ae.now();if(t.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(function(i){t.prototype[i]=e.proto[i]}),e.static&&Object.keys(e.static).forEach(function(i){t[i]=e.static[i]}),e.install){for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];e.install.apply(t,r)}return t}},{key:"use",value:function(e){var t=this;if(Array.isArray(e))return e.forEach(function(e){return t.installModule(e)}),t;for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return t.installModule.apply(t,[e].concat(n))}},{key:"components",set:function(e){var t=this;t.use&&t.use(e)}}]),e}(),ue={updateSize:s,updateSlides:o,updateAutoHeight:l,updateSlidesOffset:u,updateSlidesProgress:d,updateProgress:c,updateSlidesClasses:p,updateActiveIndex:h,updateClickedSlide:f},de={getTranslate:v,setTranslate:m,minTranslate:g,maxTranslate:y},ce={setTransition:b,transitionStart:w,transitionEnd:T},pe={slideTo:_,slideToLoop:S,slideNext:x,slidePrev:E,slideReset:k,slideToClosest:C,slideToClickedSlide:O},he={loopCreate:P,loopFix:j,loopDestroy:I},fe={setGrabCursor:A,unsetGrabCursor:M},ve={appendSlide:D,prependSlide:L,addSlide:N,removeSlide:R,removeAllSlides:B},me=function(){var e=te.b.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:te.b.cordova||te.b.phonegap,phonegap:te.b.cordova||te.b.phonegap},i=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=e.match(/(Android);?[\s\/]+([\d.]+)?/),r=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),s=!r&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(t.os="windows",t.osVersion=i[2],t.windows=!0),n&&!i&&(t.os="android",t.osVersion=n[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(r||s||a)&&(t.os="ios",t.ios=!0),s&&!a&&(t.osVersion=s[2].replace(/_/g,"."),t.iphone=!0),r&&(t.osVersion=r[2].replace(/_/g,"."),t.ipad=!0),a&&(t.osVersion=a[3]?a[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(s||r||a)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var o=t.osVersion.split("."),l=te.a.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(a||s)&&(1*o[0]==7?1*o[1]>=1:1*o[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=te.b.devicePixelRatio||1,t}(),ge={attachEvents:q,detachEvents:G},ye={setBreakpoint:W,getBreakpoint:X},be={addClasses:$,removeClasses:Y},we={loadImage:K,preloadImages:Q},Te={checkOverflow:J},_e={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,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,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!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:!0,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},Se={update:ue,translate:de,transition:ce,slide:pe,loop:he,grabCursor:fe,manipulation:ve,events:ge,breakpoints:ye,checkOverflow:Te,classes:be,images:we},xe={},Ee=function(e){function t(){var e;a(this,t);for(var i=void 0,r=void 0,s=arguments.length,o=Array(s),l=0;l<s;l++)o[l]=arguments[l];1===o.length&&o[0].constructor&&o[0].constructor===Object?r=o[0]:(i=o[0],r=o[1]),r||(r={}),r=ae.extend({},r),i&&!r.el&&(r.el=i);var u=n(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));Object.keys(Se).forEach(function(e){Object.keys(Se[e]).forEach(function(i){t.prototype[i]||(t.prototype[i]=Se[e][i])})});var d=u;void 0===d.modules&&(d.modules={}),Object.keys(d.modules).forEach(function(e){var t=d.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!==(void 0===n?"undefined":ne(n))||null===n)return;if(!(i in r&&"enabled"in n))return;!0===r[i]&&(r[i]={enabled:!0}),"object"!==ne(r[i])||"enabled"in r[i]||(r[i].enabled=!0),r[i]||(r[i]={enabled:!1})}});var c=ae.extend({},_e);d.useModulesParams(c),d.params=ae.extend({},c,xe,r),d.originalParams=ae.extend({},d.params),d.passedParams=ae.extend({},r),d.$=ee.a;var p=Object(ee.a)(d.params.el);if(!(i=p[0])){var h;return h=void 0,n(u,h)}if(p.length>1){var f,v=[];return p.each(function(e,i){var n=ae.extend({},r,{el:i});v.push(new t(n))}),f=v,n(u,f)}i.swiper=d,p.data("swiper",d);var m=p.children("."+d.params.wrapperClass);return ae.extend(d,{$el:p,el:i,$wrapperEl:m,wrapperEl:m[0],classNames:[],slides:Object(ee.a)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===d.params.direction},isVertical:function(){return"vertical"===d.params.direction},rtl:"rtl"===i.dir.toLowerCase()||"rtl"===p.css("direction"),rtlTranslate:"horizontal"===d.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===p.css("direction")),wrongRTL:"-webkit-box"===m.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return se.pointerEvents?t=["pointerdown","pointermove","pointerup"]:se.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),d.touchEventsTouch={start:e[0],move:e[1],end:e[2]},d.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},se.touch||!d.params.simulateTouch?d.touchEventsTouch:d.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",lastClickTime:ae.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.useModules(),d.params.init&&d.init(),e=d,n(u,e)}return r(t,e),ie(t,[{key:"slidesPerViewDynamic",value:function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,r=e.size,a=e.activeIndex,s=1;if(t.centeredSlides){for(var o=i[a].swiperSlideSize,l=void 0,u=a+1;u<i.length;u+=1)i[u]&&!l&&(o+=i[u].swiperSlideSize,s+=1,o>r&&(l=!0));for(var d=a-1;d>=0;d-=1)i[d]&&!l&&(o+=i[d].swiperSlideSize,s+=1,o>r&&(l=!0))}else for(var c=a+1;c<i.length;c+=1)n[c]-n[a]<r&&(s+=1);return s}},{key:"update",value:function(){function e(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var i=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}}},{key:"changeDirection",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e?i:(i.$el.removeClass(""+i.params.containerModifierClass+n+" wp8-"+n).addClass(""+i.params.containerModifierClass+e),(oe.isIE||oe.isEdge)&&(se.pointerEvents||se.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+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)}},{key:"init",value: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"))}},{key:"destroy",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params,r=i.$el,a=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),r.removeAttr("style"),a.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),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),ae.deleteProps(i)),i.destroyed=!0,null)}}],[{key:"extendDefaults",value:function(e){ae.extend(xe,e)}},{key:"extendedDefaults",get:function(){return xe}},{key:"defaults",get:function(){return _e}},{key:"Class",get:function(){return le}},{key:"$",get:function(){return ee.a}}]),t}(le),ke={name:"device",proto:{device:me},static:{device:me}},Ce={name:"support",proto:{support:se},static:{support:se}},Oe={name:"browser",proto:{browser:oe},static:{browser:oe}},Pe={name:"resize",create:function(){var e=this;ae.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;te.b.addEventListener("resize",e.resize.resizeHandler),te.b.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;te.b.removeEventListener("resize",e.resize.resizeHandler),te.b.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},je={func:te.b.MutationObserver||te.b.WebkitMutationObserver,attach:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,n=je.func,r=new n(function(e){if(1===e.length)return void i.emit("observerUpdate",e[0]);var t=function(){i.emit("observerUpdate",e[0])};te.b.requestAnimationFrame?te.b.requestAnimationFrame(t):te.b.setTimeout(t,0)});r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(r)},init:function(){var e=this;if(se.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=[]}},Ie={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;ae.extend(e,{observer:{init:je.init.bind(e),attach:je.attach.bind(e),destroy:je.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},Ae={update:function(e){function t(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,n=i.params,r=n.slidesPerView,a=n.slidesPerGroup,s=n.centeredSlides,o=i.params.virtual,l=o.addSlidesBefore,u=o.addSlidesAfter,d=i.virtual,c=d.from,p=d.to,h=d.slides,f=d.slidesGrid,v=d.renderSlide,m=d.offset;i.updateActiveIndex();var g=i.activeIndex||0,y=void 0;y=i.rtlTranslate?"right":i.isHorizontal()?"left":"top";var b=void 0,w=void 0;s?(b=Math.floor(r/2)+a+l,w=Math.floor(r/2)+a+u):(b=r+(a-1)+l,w=a+u);var T=Math.max((g||0)-w,0),_=Math.min((g||0)+b,h.length-1),S=(i.slidesGrid[T]||0)-(i.slidesGrid[0]||0);if(ae.extend(i.virtual,{from:T,to:_,offset:S,slidesGrid:i.slidesGrid}),c===T&&p===_&&!e)return i.slidesGrid!==f&&S!==m&&i.slides.css(y,S+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:S,from:T,to:_,slides:function(){for(var e=[],t=T;t<=_;t+=1)e.push(h[t]);return e}()}),void t();var x=[],E=[];if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var k=c;k<=p;k+=1)(k<T||k>_)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var C=0;C<h.length;C+=1)C>=T&&C<=_&&(void 0===p||e?E.push(C):(C>p&&E.push(C),C<c&&x.push(C)));E.forEach(function(e){i.$wrapperEl.append(v(h[e],e))}),x.sort(function(e,t){return t-e}).forEach(function(e){i.$wrapperEl.prepend(v(h[e],e))}),i.$wrapperEl.children(".swiper-slide").css(y,S+"px"),t()},renderSlide:function(e,t){var i=this,n=i.params.virtual;if(n.cache&&i.virtual.cache[t])return i.virtual.cache[t];var r=n.renderSlide?Object(ee.a)(n.renderSlide.call(i,e,t)):Object(ee.a)('<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),n.cache&&(i.virtual.cache[t]=r),r},appendSlide:function(e){var t=this;if("object"===(void 0===e?"undefined":ne(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,n=i+1,r=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);n=i+e.length,r=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var s=t.virtual.cache,o={};Object.keys(s).forEach(function(e){o[parseInt(e,10)+r]=s[e]}),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(n,0)},removeSlide:function(e){var t=this;if(void 0!==e&&null!==e){var i=t.activeIndex;if(Array.isArray(e))for(var n=e.length-1;n>=0;n-=1)t.virtual.slides.splice(e[n],1),t.params.virtual.cache&&delete t.virtual.cache[e[n]],e[n]<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)}},Me={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;ae.extend(e,{virtual:{update:Ae.update.bind(e),appendSlide:Ae.appendSlide.bind(e),prependSlide:Ae.prependSlide.bind(e),removeSlide:Ae.removeSlide.bind(e),removeAllSlides:Ae.removeAllSlides.bind(e),renderSlide:Ae.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};ae.extend(e.params,t),ae.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},De={handle:function(e){var t=this,i=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var r=n.keyCode||n.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r||34===r))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r||33===r))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||te.a.activeElement&&te.a.activeElement.nodeName&&("input"===te.a.activeElement.nodeName.toLowerCase()||"textarea"===te.a.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===r||34===r||37===r||39===r||38===r||40===r)){var a=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var s=te.b.innerWidth,o=te.b.innerHeight,l=t.$el.offset();i&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],d=0;d<u.length;d+=1){var c=u[d];c[0]>=0&&c[0]<=s&&c[1]>=0&&c[1]<=o&&(a=!0)}if(!a)return}t.isHorizontal()?(33!==r&&34!==r&&37!==r&&39!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==r&&39!==r||i)&&(33!==r&&37!==r||!i)||t.slideNext(),(33!==r&&37!==r||i)&&(34!==r&&39!==r||!i)||t.slidePrev()):(33!==r&&34!==r&&38!==r&&40!==r||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==r&&40!==r||t.slideNext(),33!==r&&38!==r||t.slidePrev()),t.emit("keyPress",r)}},enable:function(){var e=this;e.keyboard.enabled||(Object(ee.a)(te.a).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable:function(){var e=this;e.keyboard.enabled&&(Object(ee.a)(te.a).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}},Le={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;ae.extend(e,{keyboard:{enabled:!1,enable:De.enable.bind(e),disable:De.disable.bind(e),handle:De.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()}}},Ne={lastScrollTime:ae.now(),event:function(){return te.b.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Z()?"wheel":"mousewheel"}(),normalize:function(e){var t=0,i=0,n=0,r=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,r=10*i,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||r)&&e.deltaMode&&(1===e.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!t&&(t=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var r=0,a=i.rtlTranslate?-1:1,s=Ne.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;r=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;r=s.pixelY}else r=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===r)return!0;if(n.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var o=i.getTranslate()+r*n.sensitivity,l=i.isBeginning,u=i.isEnd;if(o>=i.minTranslate()&&(o=i.minTranslate()),o<=i.maxTranslate()&&(o=i.maxTranslate()),i.setTransition(0),i.setTranslate(o),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!l&&i.isBeginning||!u&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=ae.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),o===i.minTranslate()||o===i.maxTranslate())return!0}else{if(ae.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",t);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",t);i.mousewheel.lastScrollTime=(new te.b.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var e=this;if(!Ne.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Object(ee.a)(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(Ne.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!Ne.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=Object(ee.a)(e.params.mousewheel.eventsTarged)),t.off(Ne.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},Re={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;ae.extend(e,{mousewheel:{enabled:!1,enable:Ne.enable.bind(e),disable:Ne.disable.bind(e),handle:Ne.handle.bind(e),handleMouseEnter:Ne.handleMouseEnter.bind(e),handleMouseLeave:Ne.handleMouseLeave.bind(e),lastScrollTime:ae.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},Be={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=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)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[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=this,t=e.params.navigation;if(t.nextEl||t.prevEl){var i=void 0,n=void 0;t.nextEl&&(i=Object(ee.a)(t.nextEl),e.params.uniqueNavElements&&"string"==typeof t.nextEl&&i.length>1&&1===e.$el.find(t.nextEl).length&&(i=e.$el.find(t.nextEl))),t.prevEl&&(n=Object(ee.a)(t.prevEl),e.params.uniqueNavElements&&"string"==typeof t.prevEl&&n.length>1&&1===e.$el.find(t.prevEl).length&&(n=e.$el.find(t.prevEl))),i&&i.length>0&&i.on("click",e.navigation.onNextClick),n&&n.length>0&&n.on("click",e.navigation.onPrevClick),ae.extend(e.navigation,{$nextEl:i,nextEl:i&&i[0],$prevEl:n,prevEl:n&&n[0]})}},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,n=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}},ze={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;ae.extend(e,{navigation:{init:Be.init.bind(e),update:Be.update.bind(e),destroy:Be.destroy.bind(e),onNextClick:Be.onNextClick.bind(e),onPrevClick:Be.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(e){var t=this,i=t.navigation,n=i.$nextEl,r=i.$prevEl;if(t.params.navigation.hideOnClick&&!Object(ee.a)(e.target).is(r)&&!Object(ee.a)(e.target).is(n)){var a=void 0;n?a=n.hasClass(t.params.navigation.hiddenClass):r&&(a=r.hasClass(t.params.navigation.hiddenClass)),!0===a?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}}},Ue={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 n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,a=void 0,s=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(a=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),a>n-1-2*e.loopedSlides&&(a-=n-2*e.loopedSlides),a>s-1&&(a-=s),a<0&&"bullets"!==e.params.paginationType&&(a=s+a)):a=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var o=e.pagination.bullets,l=void 0,u=void 0,d=void 0;if(i.dynamicBullets&&(e.pagination.bulletSize=o.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(i.dynamicMainBullets+4)+"px"),i.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=a-e.previousIndex,e.pagination.dynamicBulletIndex>i.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=a-e.pagination.dynamicBulletIndex,u=l+(Math.min(o.length,i.dynamicMainBullets)-1),d=(u+l)/2),o.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),r.length>1)o.each(function(e,t){var n=Object(ee.a)(t),r=n.index();r===a&&n.addClass(i.bulletActiveClass),i.dynamicBullets&&(r>=l&&r<=u&&n.addClass(i.bulletActiveClass+"-main"),r===l&&n.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),r===u&&n.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next"))});else{if(o.eq(a).addClass(i.bulletActiveClass),i.dynamicBullets){for(var c=o.eq(l),p=o.eq(u),h=l;h<=u;h+=1)o.eq(h).addClass(i.bulletActiveClass+"-main");c.prev().addClass(i.bulletActiveClass+"-prev").prev().addClass(i.bulletActiveClass+"-prev-prev"),p.next().addClass(i.bulletActiveClass+"-next").next().addClass(i.bulletActiveClass+"-next-next")}}if(i.dynamicBullets){var f=Math.min(o.length,i.dynamicMainBullets+4),v=(e.pagination.bulletSize*f-e.pagination.bulletSize)/2-d*e.pagination.bulletSize,m=t?"right":"left";o.css(e.isHorizontal()?m:"top",v+"px")}}if("fraction"===i.type&&(r.find("."+i.currentClass).text(i.formatFractionCurrent(a+1)),r.find("."+i.totalClass).text(i.formatFractionTotal(s))),"progressbar"===i.type){var g=void 0;g=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var y=(a+1)/s,b=1,w=1;"horizontal"===g?b=y:w=y,r.find("."+i.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+w+")").transition(e.params.speed)}"custom"===i.type&&i.renderCustom?(r.html(i.renderCustom(e,a+1,s)),e.emit("paginationRender",e,r[0])):e.emit("paginationUpdate",e,r[0]),r[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,n=e.pagination.$el,r="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,s=0;s<a;s+=1)t.renderBullet?r+=t.renderBullet.call(e,s,t.bulletClass):r+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(r),e.pagination.bullets=n.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>',n.html(r)),"progressbar"===t.type&&(r=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.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=Object(ee.a)(t.el);0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&i.length>1&&1===e.$el.find(t.el).length&&(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=Object(ee.a)(this).index()*e.params.slidesPerGroup;e.params.loop&&(i+=e.loopedSlides),e.slideTo(i)}),ae.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)}}},Fe={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;ae.extend(e,{pagination:{init:Ue.init.bind(e),render:Ue.render.bind(e),update:Ue.update.bind(e),destroy:Ue.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?e.pagination.update():void 0===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(){this.pagination.destroy()},click:function(e){var t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!Object(ee.a)(e.target).hasClass(t.params.pagination.bulletClass)){!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}},He={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,r=t.dragSize,a=t.trackSize,s=t.$dragEl,o=t.$el,l=e.params.scrollbar,u=r,d=(a-r)*n;i?(d=-d,d>0?(u=r-d,d=0):-d+r>a&&(u=a+d)):d<0?(u=r+d,d=0):d+r>a&&(u=a-d),e.isHorizontal()?(se.transforms3d?s.transform("translate3d("+d+"px, 0, 0)"):s.transform("translateX("+d+"px)"),s[0].style.width=u+"px"):(se.transforms3d?s.transform("translate3d(0px, "+d+"px, 0)"):s.transform("translateY("+d+"px)"),s[0].style.height=u+"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,n=t.$el;i[0].style.width="",i[0].style.height="";var r=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,a=e.size/e.virtualSize,s=a*(r/e.size),o=void 0;o="auto"===e.params.scrollbar.dragSize?r*a:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=o+"px":i[0].style.height=o+"px",n[0].style.display=a>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),ae.extend(t,{trackSize:r,divider:a,moveDivider:s,dragSize:o}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t=this,i=t.scrollbar,n=t.rtlTranslate,r=i.$el,a=i.dragSize,s=i.trackSize,o=i.dragStartPos,l=void 0;l=(i.getPointerPosition(e)-r.offset()[t.isHorizontal()?"left":"top"]-(null!==o?o:a/2))/(s-a),l=Math.max(Math.min(l,1),0),n&&(l=1-l);var u=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*l;t.updateProgress(u),t.setTranslate(u),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=t.$wrapperEl,a=n.$el,s=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===s[0]||e.target===s?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),s.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),i.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,i=t.scrollbar,n=t.$wrapperEl,r=i.$el,a=i.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,i.setDragPosition(e),n.transition(0),r.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,r=n.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=ae.nextTick(function(){r.css("opacity",0),r.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,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!se.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!se.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};se.touch?(s.addEventListener(i.start,e.scrollbar.onDragStart,o),s.addEventListener(i.move,e.scrollbar.onDragMove,o),s.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.addEventListener(n.start,e.scrollbar.onDragStart,o),te.a.addEventListener(n.move,e.scrollbar.onDragMove,o),te.a.addEventListener(n.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,r=e.params,a=t.$el,s=a[0],o=!(!se.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},l=!(!se.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};se.touch?(s.removeEventListener(i.start,e.scrollbar.onDragStart,o),s.removeEventListener(i.move,e.scrollbar.onDragMove,o),s.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(s.removeEventListener(n.start,e.scrollbar.onDragStart,o),te.a.removeEventListener(n.move,e.scrollbar.onDragMove,o),te.a.removeEventListener(n.end,e.scrollbar.onDragEnd,l))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.$el,n=e.params.scrollbar,r=Object(ee.a)(n.el);e.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===i.find(n.el).length&&(r=i.find(n.el));var a=r.find("."+e.params.scrollbar.dragClass);0===a.length&&(a=Object(ee.a)('<div class="'+e.params.scrollbar.dragClass+'"></div>'),r.append(a)),ae.extend(t,{$el:r,el:r[0],$dragEl:a,dragEl:a[0]}),n.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},Ve={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;ae.extend(e,{scrollbar:{init:He.init.bind(e),destroy:He.destroy.bind(e),updateSize:He.updateSize.bind(e),setTranslate:He.setTranslate.bind(e),setTransition:He.setTransition.bind(e),enableDraggable:He.enableDraggable.bind(e),disableDraggable:He.disableDraggable.bind(e),setDragPosition:He.setDragPosition.bind(e),getPointerPosition:He.getPointerPosition.bind(e),onDragStart:He.onDragStart.bind(e),onDragMove:He.onDragMove.bind(e),onDragEnd:He.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(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},qe={setTransform:function(e,t){var i=this,n=i.rtl,r=Object(ee.a)(e),a=n?-1:1,s=r.attr("data-swiper-parallax")||"0",o=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),d=r.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):i.isHorizontal()?(o=s,l="0"):(l=s,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*t*a+"%":o*t*a+"px",l=l.indexOf("%")>=0?parseInt(l,10)*t+"%":l*t+"px",void 0!==d&&null!==d){var c=d-(d-1)*(1-Math.abs(t));r[0].style.opacity=c}if(void 0===u||null===u)r.transform("translate3d("+o+", "+l+", 0px)");else{var p=u-(u-1)*(1-Math.abs(t));r.transform("translate3d("+o+", "+l+", 0px) scale("+p+")")}},setTranslate:function(){var e=this,t=e.$el,i=e.slides,n=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,n)}),i.each(function(t,i){var a=i.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(a+=Math.ceil(t/2)-n*(r.length-1)),a=Math.min(Math.max(a,-1),1),Object(ee.a)(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,a)})})},setTransition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed;this.$el.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 n=Object(ee.a)(i),r=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),n.transition(r)})}},Ge={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;ae.extend(e,{parallax:{setTransform:qe.setTransform.bind(e),setTranslate:qe.setTranslate.bind(e),setTransition:qe.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)}}},We={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(r-i,2))},onGestureStart:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!se.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=We.getDistanceBetweenTouches(e)}if(!(r.$slideEl&&r.$slideEl.length||(r.$slideEl=Object(ee.a)(e.target).closest(".swiper-slide"),0===r.$slideEl.length&&(r.$slideEl=t.slides.eq(t.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+i.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==r.$imageWrapEl.length)))return void(r.$imageEl=void 0);r.$imageEl.transition(0),t.zoom.isScaling=!0},onGestureChange:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!se.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=We.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(se.gestures?n.scale=e.scale*n.currentScale:n.scale=r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+Math.pow(n.scale-r.maxRatio+1,.5)),n.scale<i.minRatio&&(n.scale=i.minRatio+1-Math.pow(i.minRatio-n.scale+1,.5)),r.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(e){var t=this,i=t.params.zoom,n=t.zoom,r=n.gesture;if(!se.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!me.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,r.maxRatio),i.minRatio),r.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(r.$slideEl=void 0))},onTouchStart:function(e){var t=this,i=t.zoom,n=i.gesture,r=i.image;n.$imageEl&&0!==n.$imageEl.length&&(r.isTouched||(me.android&&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,n=i.gesture,r=i.image,a=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,r.isTouched&&n.$slideEl)){r.isMoved||(r.width=n.$imageEl[0].offsetWidth,r.height=n.$imageEl[0].offsetHeight,r.startX=ae.getTranslate(n.$imageWrapEl[0],"x")||0,r.startY=ae.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(r.startX=-r.startX,r.startY=-r.startY));var s=r.width*i.scale,o=r.height*i.scale;if(!(s<n.slideWidth&&o<n.slideHeight)){if(r.minX=Math.min(n.slideWidth/2-s/2,0),r.maxX=-r.minX,r.minY=Math.min(n.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.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)),a.prevPositionX||(a.prevPositionX=r.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=r.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(r.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(r.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(r.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(r.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=r.touchesCurrent.x,a.prevPositionY=r.touchesCurrent.y,a.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,i=t.gesture,n=t.image,r=t.velocity;if(i.$imageEl&&0!==i.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var a=300,s=300,o=r.x*a,l=n.currentX+o,u=r.y*s,d=n.currentY+u;0!==r.x&&(a=Math.abs((l-n.currentX)/r.x)),0!==r.y&&(s=Math.abs((d-n.currentY)/r.y));var c=Math.max(a,s);n.currentX=l,n.currentY=d;var p=n.width*t.scale,h=n.height*t.scale;n.minX=Math.min(i.slideWidth/2-p/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-h/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),i.$imageWrapEl.transition(c).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,i=t.gesture;i.$slideEl&&e.previousIndex!==e.activeIndex&&(i.$imageEl.transform("translate3d(0,0,0) scale(1)"),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=this,i=t.zoom,n=t.params.zoom,r=i.gesture,a=i.image;if(r.$slideEl||(r.$slideEl=t.clickedSlide?Object(ee.a)(t.clickedSlide):t.slides.eq(t.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+n.containerClass)),r.$imageEl&&0!==r.$imageEl.length){r.$slideEl.addClass(""+n.zoomedSlideClass);var s=void 0,o=void 0,l=void 0,u=void 0,d=void 0,c=void 0,p=void 0,h=void 0,f=void 0,v=void 0,m=void 0,g=void 0,y=void 0,b=void 0,w=void 0,T=void 0,_=void 0,S=void 0;void 0===a.touchesStart.x&&e?(s="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,o="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(s=a.touchesStart.x,o=a.touchesStart.y),i.scale=r.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,i.currentScale=r.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,e?(_=r.$slideEl[0].offsetWidth,S=r.$slideEl[0].offsetHeight,l=r.$slideEl.offset().left,u=r.$slideEl.offset().top,d=l+_/2-s,c=u+S/2-o,f=r.$imageEl[0].offsetWidth,v=r.$imageEl[0].offsetHeight,m=f*i.scale,g=v*i.scale,y=Math.min(_/2-m/2,0),b=Math.min(S/2-g/2,0),w=-y,T=-b,p=d*i.scale,h=c*i.scale,p<y&&(p=y),p>w&&(p=w),h<b&&(h=b),h>T&&(h=T)):(p=0,h=0),r.$imageWrapEl.transition(300).transform("translate3d("+p+"px, "+h+"px,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+i.scale+")")}},out:function(){var e=this,t=e.zoom,i=e.params.zoom,n=t.gesture;n.$slideEl||(n.$slideEl=e.clickedSlide?Object(ee.a)(e.clickedSlide):e.slides.eq(e.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+i.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(t.scale=1,t.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+i.zoomedSlideClass),n.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!se.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};se.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!se.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};se.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Xe={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]=We[i].bind(e)}),ae.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var n=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,n,r)}i=t}})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){this.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()}}},$e={loadInSlide:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled,a=r?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),s=a.find("."+n.elementClass+":not(."+n.loadedClass+"):not(."+n.loadingClass+")");!a.hasClass(n.elementClass)||a.hasClass(n.loadedClass)||a.hasClass(n.loadingClass)||(s=s.add(a[0])),0!==s.length&&s.each(function(e,r){var s=Object(ee.a)(r);s.addClass(n.loadingClass);var o=s.attr("data-background"),l=s.attr("data-src"),u=s.attr("data-srcset"),d=s.attr("data-sizes");i.loadImage(s[0],l||o,u,d,!1,function(){if(void 0!==i&&null!==i&&i&&(!i||i.params)&&!i.destroyed){if(o?(s.css("background-image",'url("'+o+'")'),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),d&&(s.attr("sizes",d),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(n.loadedClass).removeClass(n.loadingClass),a.find("."+n.preloaderClass).remove(),i.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.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 c=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadInSlide(c.index(),!1)}}i.emit("lazyImageReady",a[0],s[0])}}),i.emit("lazyImageLoad",a[0],s[0])})}},load:function(){function e(e){if(o){if(n.children("."+r.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(a[e])return!0;return!1}function t(e){return o?Object(ee.a)(e).attr("data-swiper-slide-index"):Object(ee.a)(e).index()}var i=this,n=i.$wrapperEl,r=i.params,a=i.slides,s=i.activeIndex,o=i.virtual&&r.virtual.enabled,l=r.lazy,u=r.slidesPerView;if("auto"===u&&(u=0),i.lazy.initialImageLoaded||(i.lazy.initialImageLoaded=!0),i.params.watchSlidesVisibility)n.children("."+r.slideVisibleClass).each(function(e,t){var n=o?Object(ee.a)(t).attr("data-swiper-slide-index"):Object(ee.a)(t).index();i.lazy.loadInSlide(n)});else if(u>1)for(var d=s;d<s+u;d+=1)e(d)&&i.lazy.loadInSlide(d);else i.lazy.loadInSlide(s);if(l.loadPrevNext)if(u>1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){for(var c=l.loadPrevNextAmount,p=u,h=Math.min(s+p+Math.max(c,p),a.length),f=Math.max(s-Math.max(p,c),0),v=s+u;v<h;v+=1)e(v)&&i.lazy.loadInSlide(v);for(var m=f;m<s;m+=1)e(m)&&i.lazy.loadInSlide(m)}else{var g=n.children("."+r.slideNextClass);g.length>0&&i.lazy.loadInSlide(t(g));var y=n.children("."+r.slidePrevClass);y.length>0&&i.lazy.loadInSlide(t(y))}}},Ye={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;ae.extend(e,{lazy:{initialImageLoaded:!1,load:$e.load.bind(e),loadInSlide:$e.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()}}},Ke={LinearSpline:function(e,t){var i=function(){var e=void 0,t=void 0,i=void 0;return function(n,r){for(t=-1,e=n.length;e-t>1;)i=e+t>>1,n[i]<=r?t=i:e=i;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var n=void 0,r=void 0;return this.interpolate=function(e){return e?(r=i(this.x,e),n=r-1,(e-this.x[n])*(this.y[r]-this.y[n])/(this.x[r]-this.x[n])+this.y[n]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new Ke.LinearSpline(t.slidesGrid,e.slidesGrid):new Ke.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(e){var t=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(e),s=-n.controller.spline.interpolate(-t)),s&&"container"!==n.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),s=(t-n.minTranslate())*a+e.minTranslate()),n.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,n),e.updateActiveIndex(),e.updateSlidesClasses()}var n=this,r=n.controller.control,a=void 0,s=void 0;if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof Ee&&i(r[o]);else r instanceof Ee&&t!==r&&i(r)},setTransition:function(e,t){function i(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&ae.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var n=this,r=n.controller.control,a=void 0;if(Array.isArray(r))for(a=0;a<r.length;a+=1)r[a]!==t&&r[a]instanceof Ee&&i(r[a]);else r instanceof Ee&&t!==r&&i(r)}},Qe={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;ae.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:Ke.getInterpolateFunction.bind(e),setTranslate:Ke.setTranslate.bind(e),setTransition:Ke.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)}}},Je={makeElFocusable:function(e){return e.attr("tabIndex","0"),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 n=Object(ee.a)(e.target);t.navigation&&t.navigation.$nextEl&&n.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&&n.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&&n.is("."+t.params.pagination.bulletClass)&&n[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){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&i.length>0&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(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,n){var r=Object(ee.a)(n);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=e.params.a11y,i=void 0,n=void 0;e.navigation&&e.navigation.$nextEl&&(i=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,t.nextSlideMessage),i.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.prevSlideMessage),n.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=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t=void 0,i=void 0;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),i&&i.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},Ze={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;ae.extend(e,{a11y:{liveRegion:Object(ee.a)('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Je).forEach(function(t){e.a11y[t]=Je[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()}}},et={init:function(){var e=this;if(e.params.history){if(!te.b.history||!te.b.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=et.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||te.b.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||te.b.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=et.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=te.b.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){var i=this;if(i.history.initialized&&i.params.history.enabled){var n=i.slides.eq(t),r=et.slugify(n.attr("data-history"));te.b.location.pathname.includes(e)||(r=e+"/"+r);var a=te.b.history.state;a&&a.value===r||(i.params.history.replaceState?te.b.history.replaceState({value:r},null,r):te.b.history.pushState({value:r},null,r))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var r=0,a=n.slides.length;r<a;r+=1){var s=n.slides.eq(r),o=et.slugify(s.attr("data-history"));if(o===t&&!s.hasClass(n.params.slideDuplicateClass)){var l=s.index();n.slideTo(l,e,i)}}else n.slideTo(0,e,i)}},tt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;ae.extend(e,{history:{init:et.init.bind(e),setHistory:et.setHistory.bind(e),setHistoryPopState:et.setHistoryPopState.bind(e),scrollToSlide:et.scrollToSlide.bind(e),destroy:et.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)}}},it={onHashCange:function(){var e=this,t=te.a.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&te.b.history&&te.b.history.replaceState)te.b.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");te.a.location.hash=i||""}},init:function(){var e=this;if(!(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)){e.hashNavigation.initialized=!0;var t=te.a.location.hash.replace("#","");if(t)for(var i=0,n=e.slides.length;i<n;i+=1){var r=e.slides.eq(i),a=r.attr("data-hash")||r.attr("data-history");if(a===t&&!r.hasClass(e.params.slideDuplicateClass)){var s=r.index();e.slideTo(s,0,e.params.runCallbacksOnInit,!0)}}e.params.hashNavigation.watchState&&Object(ee.a)(te.b).on("hashchange",e.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&Object(ee.a)(te.b).off("hashchange",e.hashNavigation.onHashCange)}},nt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;ae.extend(e,{hashNavigation:{initialized:!1,init:it.init.bind(e),destroy:it.destroy.bind(e),setHash:it.setHash.bind(e),onHashCange:it.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()}}},rt={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=ae.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"))},i)},start:function(){var e=this;return void 0===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&&(void 0!==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())))}},at={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;ae.extend(e,{autoplay:{running:!1,paused:!1,run:rt.run.bind(e),start:rt.start.bind(e),stop:rt.stop.bind(e),pause:rt.pause.bind(e),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()},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())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},st={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),r=n[0].swiperSlideOffset,a=-r;e.params.virtualTranslate||(a-=e.translate);var s=0;e.isHorizontal()||(s=a,a=0);var o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d("+a+"px, "+s+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=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)n.trigger(e[i])}})}}},ot={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;ae.extend(e,{fadeEffect:{setTranslate:st.setTranslate.bind(e),setTransition:st.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};ae.extend(e.params,t),ae.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)}}},lt={setTranslate:function(){var e=this,t=e.$el,i=e.$wrapperEl,n=e.slides,r=e.width,a=e.height,s=e.rtlTranslate,o=e.size,l=e.params.cubeEffect,u=e.isHorizontal(),d=e.virtual&&e.params.virtual.enabled,c=0,p=void 0;l.shadow&&(u?(p=i.find(".swiper-cube-shadow"),0===p.length&&(p=Object(ee.a)('<div class="swiper-cube-shadow"></div>'),i.append(p)),p.css({height:r+"px"})):(p=t.find(".swiper-cube-shadow"),0===p.length&&(p=Object(ee.a)('<div class="swiper-cube-shadow"></div>'),t.append(p))));for(var h=0;h<n.length;h+=1){var f=n.eq(h),v=h;d&&(v=parseInt(f.attr("data-swiper-slide-index"),10));var m=90*v,g=Math.floor(m/360);s&&(m=-m,g=Math.floor(-m/360));var y=Math.max(Math.min(f[0].progress,1),-1),b=0,w=0,T=0;v%4==0?(b=4*-g*o,T=0):(v-1)%4==0?(b=0,T=4*-g*o):(v-2)%4==0?(b=o+4*g*o,T=o):(v-3)%4==0&&(b=-o,T=3*o+4*o*g),s&&(b=-b),u||(w=b,b=0);var _="rotateX("+(u?0:-m)+"deg) rotateY("+(u?m:0)+"deg) translate3d("+b+"px, "+w+"px, "+T+"px)";if(y<=1&&y>-1&&(c=90*v+90*y,s&&(c=90*-v-90*y)),f.transform(_),l.slideShadows){var S=u?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),x=u?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===S.length&&(S=Object(ee.a)('<div class="swiper-slide-shadow-'+(u?"left":"top")+'"></div>'),f.append(S)),0===x.length&&(x=Object(ee.a)('<div class="swiper-slide-shadow-'+(u?"right":"bottom")+'"></div>'),f.append(x)),S.length&&(S[0].style.opacity=Math.max(-y,0)),x.length&&(x[0].style.opacity=Math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+o/2+"px","-moz-transform-origin":"50% 50% -"+o/2+"px","-ms-transform-origin":"50% 50% -"+o/2+"px","transform-origin":"50% 50% -"+o/2+"px"}),l.shadow)if(u)p.transform("translate3d(0px, "+(r/2+l.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+l.shadowScale+")");else{var E=Math.abs(c)-90*Math.floor(Math.abs(c)/90),k=1.5-(Math.sin(2*E*Math.PI/360)/2+Math.cos(2*E*Math.PI/360)/2),C=l.shadowScale,O=l.shadowScale/k,P=l.shadowOffset;p.transform("scale3d("+C+", 1, "+O+") translate3d(0px, "+(a/2+P)+"px, "+-a/2/O+"px) rotateX(-90deg)")}var j=oe.isSafari||oe.isUiWebView?-o/2:0;i.transform("translate3d(0px,0,"+j+"px) rotateX("+(e.isHorizontal()?0:c)+"deg) rotateY("+(e.isHorizontal()?-c:0)+"deg)")},setTransition:function(e){var t=this,i=t.$el;t.slides.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)}},ut={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;ae.extend(e,{cubeEffect:{setTranslate:lt.setTranslate.bind(e),setTransition:lt.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};ae.extend(e.params,t),ae.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)}}},dt={setTranslate:function(){for(var e=this,t=e.slides,i=e.rtlTranslate,n=0;n<t.length;n+=1){var r=t.eq(n),a=r[0].progress;e.params.flipEffect.limitRotation&&(a=Math.max(Math.min(r[0].progress,1),-1));var s=r[0].swiperSlideOffset,o=-180*a,l=o,u=0,d=-s,c=0;if(e.isHorizontal()?i&&(l=-l):(c=d,d=0,u=-l,l=0),r[0].style.zIndex=-Math.abs(Math.round(a))+t.length,e.params.flipEffect.slideShadows){var p=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===p.length&&(p=Object(ee.a)('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),r.append(p)),0===h.length&&(h=Object(ee.a)('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),p.length&&(p[0].style.opacity=Math.max(-a,0)),h.length&&(h[0].style.opacity=Math.max(a,0))}r.transform("translate3d("+d+"px, "+c+"px, 0px) rotateX("+u+"deg) rotateY("+l+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=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 a=!1;i.eq(n).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},ct={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;ae.extend(e,{flipEffect:{setTranslate:dt.setTranslate.bind(e),setTransition:dt.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};ae.extend(e.params,t),ae.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)}}},pt={setTranslate:function(){for(var e=this,t=e.width,i=e.height,n=e.slides,r=e.$wrapperEl,a=e.slidesSizesGrid,s=e.params.coverflowEffect,o=e.isHorizontal(),l=e.translate,u=o?t/2-l:i/2-l,d=o?s.rotate:-s.rotate,c=s.depth,p=0,h=n.length;p<h;p+=1){var f=n.eq(p),v=a[p],m=f[0].swiperSlideOffset,g=(u-m-v/2)/v*s.modifier,y=o?d*g:0,b=o?0:d*g,w=-c*Math.abs(g),T=o?0:s.stretch*g,_=o?s.stretch*g:0;Math.abs(_)<.001&&(_=0),Math.abs(T)<.001&&(T=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0);var S="translate3d("+_+"px,"+T+"px,"+w+"px) rotateX("+b+"deg) rotateY("+y+"deg)";if(f.transform(S),f[0].style.zIndex=1-Math.abs(Math.round(g)),s.slideShadows){var x=o?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),E=o?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===x.length&&(x=Object(ee.a)('<div class="swiper-slide-shadow-'+(o?"left":"top")+'"></div>'),f.append(x)),0===E.length&&(E=Object(ee.a)('<div class="swiper-slide-shadow-'+(o?"right":"bottom")+'"></div>'),f.append(E)),x.length&&(x[0].style.opacity=g>0?g:0),E.length&&(E[0].style.opacity=-g>0?-g:0)}}if(se.pointerEvents||se.prefixedPointerEvents){r[0].style.perspectiveOrigin=u+"px 50%"}},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ht={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;ae.extend(e,{coverflowEffect:{setTranslate:pt.setTranslate.bind(e),setTransition:pt.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)}}},ft={init:function(){var e=this,t=e.params.thumbs,i=e.constructor;t.swiper instanceof i?(e.thumbs.swiper=t.swiper,ae.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),ae.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):ae.isObject(t.swiper)&&(e.thumbs.swiper=new i(ae.extend({},t.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,n=t.clickedSlide;if(!(n&&Object(ee.a)(n).hasClass(e.params.thumbs.slideThumbActiveClass)||void 0===i||null===i)){var r=void 0;if(r=t.params.loop?parseInt(Object(ee.a)(t.clickedSlide).attr("data-swiper-slide-index"),10):i,e.params.loop){var a=e.activeIndex;e.slides.eq(a).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,a=e.activeIndex);var s=e.slides.eq(a).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),o=e.slides.eq(a).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r=void 0===s?o:void 0===o?s:o-a<a-s?o:s}e.slideTo(r)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;if(t.realIndex!==i.realIndex){var r=i.activeIndex,a=void 0;if(i.params.loop){i.slides.eq(r).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,r=i.activeIndex);var s=i.slides.eq(r).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(r).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();a=void 0===s?o:void 0===o?s:o-r==r-s?r:o-r<r-s?o:s}else a=t.realIndex;i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>r?a-Math.floor(n/2)+1:a+Math.floor(n/2)-1:a>r&&(a=a-n+1),i.slideTo(a,e?0:void 0))}var l=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),i.slides.removeClass(u),i.params.loop||i.params.virtual)for(var d=0;d<l;d+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+d)+'"]').addClass(u);else for(var c=0;c<l;c+=1)i.slides.eq(t.realIndex+c).addClass(u)}}},vt={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;ae.extend(e,{thumbs:{swiper:null,init:ft.init.bind(e),update:ft.update.bind(e),onThumbClick:ft.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params.thumbs;t&&t.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()}}},mt=[ke,Ce,Oe,Pe,Ie,Me,Le,Re,ze,Fe,Ve,Ge,Xe,Ye,Qe,Ze,tt,nt,at,ot,ut,ct,ht,vt];void 0===Ee.use&&(Ee.use=Ee.Class.use,Ee.installModule=Ee.Class.installModule),Ee.use(mt),t.default=Ee},function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var i=[],n=0;if(e&&!t&&e instanceof q)return e;if(e)if("string"==typeof e){var r=void 0,a=void 0,s=e.trim();if(s.indexOf("<")>=0&&s.indexOf(">")>=0){var o="div";for(0===s.indexOf("<li")&&(o="ul"),0===s.indexOf("<tr")&&(o="tbody"),0!==s.indexOf("<td")&&0!==s.indexOf("<th")||(o="tr"),0===s.indexOf("<tbody")&&(o="table"),0===s.indexOf("<option")&&(o="select"),a=V.a.createElement(o),a.innerHTML=s,n=0;n<a.childNodes.length;n+=1)i.push(a.childNodes[n])}else for(r=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||V.a).querySelectorAll(e.trim()):[V.a.getElementById(e.trim().split("#")[1])],n=0;n<r.length;n+=1)r[n]&&i.push(r[n])}else if(e.nodeType||e===V.b||e===V.a)i.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)i.push(e[n]);return new q(i)}function a(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function s(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this}function o(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this}function l(e){return!!this[0]&&this[0].classList.contains(e)}function u(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this}function d(e,t){if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(var n in e)this[i][n]=e[n],this[i].setAttribute(n,e[n]);return this}if(this[0])return this[0].getAttribute(e)}function c(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function p(e,t){var i=void 0;{if(void 0!==t){for(var n=0;n<this.length;n+=1)i=this[n],i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[e];var r=i.getAttribute("data-"+e);if(r)return r;return}}}function h(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this}function f(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(){function e(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),r(t).is(o))l.apply(t,i);else for(var n=r(t).parents(),a=0;a<n.length;a+=1)r(n[a]).is(o)&&l.apply(n[a],i)}}function t(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var i=arguments.length,n=Array(i),a=0;a<i;a++)n[a]=arguments[a];var s=n[0],o=n[1],l=n[2],u=n[3];"function"==typeof n[1]&&(s=n[0],l=n[1],u=n[2],o=void 0),u||(u=!1);for(var d=s.split(" "),c=void 0,p=0;p<this.length;p+=1){var h=this[p];if(o)for(c=0;c<d.length;c+=1){var f=d[c];h.dom7LiveListeners||(h.dom7LiveListeners={}),h.dom7LiveListeners[f]||(h.dom7LiveListeners[f]=[]),h.dom7LiveListeners[f].push({listener:l,proxyListener:e}),h.addEventListener(f,e,u)}else for(c=0;c<d.length;c+=1){var v=d[c];h.dom7Listeners||(h.dom7Listeners={}),h.dom7Listeners[v]||(h.dom7Listeners[v]=[]),h.dom7Listeners[v].push({listener:l,proxyListener:t}),h.addEventListener(v,t,u)}}return this}function m(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=t[0],r=t[1],a=t[2],s=t[3];"function"==typeof t[1]&&(n=t[0],a=t[1],s=t[2],r=void 0),s||(s=!1);for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var u=o[l],d=0;d<this.length;d+=1){var c=this[d],p=void 0;if(!r&&c.dom7Listeners?p=c.dom7Listeners[u]:r&&c.dom7LiveListeners&&(p=c.dom7LiveListeners[u]),p&&p.length)for(var h=p.length-1;h>=0;h-=1){var f=p[h];a&&f.listener===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1)):a||(c.removeEventListener(u,f.proxyListener,s),p.splice(h,1))}}return this}function g(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var n=t[0].split(" "),r=t[1],a=0;a<n.length;a+=1)for(var s=n[a],o=0;o<this.length;o+=1){var l=this[o],u=void 0;try{u=new V.b.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0})}catch(e){u=V.a.createEvent("Event"),u.initEvent(s,!0,!0),u.detail=r}l.dom7EventData=t.filter(function(e,t){return t>0}),l.dispatchEvent(u),l.dom7EventData=[],delete l.dom7EventData}return this}function y(e){function t(a){if(a.target===this)for(e.call(this,a),r=0;r<i.length;r+=1)n.off(i[r],t)}var i=["webkitTransitionEnd","transitionend"],n=this,r=void 0;if(e)for(r=0;r<i.length;r+=1)n.on(i[r],t);return this}function b(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 T(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),i=V.a.body,n=e.clientTop||i.clientTop||0,r=e.clientLeft||i.clientLeft||0,a=e===V.b?V.b.scrollY:e.scrollTop,s=e===V.b?V.b.scrollX:e.scrollLeft;return{top:t.top+a-n,left:t.left+s-r}}return null}function _(){return this[0]?V.b.getComputedStyle(this[0],null):{}}function S(e,t){var i=void 0;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return V.b.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 x(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 E(e){if(void 0===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 k(e){if(void 0===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 C(e){var t=this[0],i=void 0,n=void 0;if(!t||void 0===e)return!1;if("string"==typeof e){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(i=r(e),n=0;n<i.length;n+=1)if(i[n]===t)return!0;return!1}if(e===V.a)return t===V.a;if(e===V.b)return t===V.b;if(e.nodeType||e instanceof q){for(i=e.nodeType?[e]:e,n=0;n<i.length;n+=1)if(i[n]===t)return!0;return!1}return!1}function O(){var e=this[0],t=void 0;if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}}function P(e){if(void 0===e)return this;var t=this.length,i=void 0;return e>t-1?new q([]):e<0?(i=t+e,new q(i<0?[]:[this[i]])):new q([this[e]])}function j(){for(var e=void 0,t=0;t<arguments.length;t+=1){e=arguments.length<=t?void 0:arguments[t];for(var i=0;i<this.length;i+=1)if("string"==typeof e){var n=V.a.createElement("div");for(n.innerHTML=e;n.firstChild;)this[i].appendChild(n.firstChild)}else if(e instanceof q)for(var r=0;r<e.length;r+=1)this[i].appendChild(e[r]);else this[i].appendChild(e)}return this}function I(e){var t=void 0,i=void 0;for(t=0;t<this.length;t+=1)if("string"==typeof e){var n=V.a.createElement("div");for(n.innerHTML=e,i=n.childNodes.length-1;i>=0;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof q)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function A(e){return new q(this.length>0?e?this[0].nextElementSibling&&r(this[0].nextElementSibling).is(e)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function M(e){var t=[],i=this[0];if(!i)return new q([]);for(;i.nextElementSibling;){var n=i.nextElementSibling;e?r(n).is(e)&&t.push(n):t.push(n),i=n}return new q(t)}function D(e){if(this.length>0){var t=this[0];return new q(e?t.previousElementSibling&&r(t.previousElementSibling).is(e)?[t.previousElementSibling]:[]:t.previousElementSibling?[t.previousElementSibling]:[])}return new q([])}function L(e){var t=[],i=this[0];if(!i)return new q([]);for(;i.previousElementSibling;){var n=i.previousElementSibling;e?r(n).is(e)&&t.push(n):t.push(n),i=n}return new q(t)}function N(e){for(var t=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?r(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return r(a(t))}function R(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)e?r(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return r(a(t))}function B(e){var t=this;return void 0===e?new q([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function z(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),r=0;r<n.length;r+=1)t.push(n[r]);return new q(t)}function U(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].childNodes,s=0;s<n.length;s+=1)e?1===n[s].nodeType&&r(n[s]).is(e)&&t.push(n[s]):1===n[s].nodeType&&t.push(n[s]);return new q(a(t))}function F(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function H(){for(var e=this,t=void 0,i=void 0,n=arguments.length,a=Array(n),s=0;s<n;s++)a[s]=arguments[s];for(t=0;t<a.length;t+=1){var o=r(a[t]);for(i=0;i<o.length;i+=1)e[e.length]=o[i],e.length+=1}return e}i.d(t,"a",function(){return r}),i.d(t,"c",function(){return s}),i.d(t,"E",function(){return o}),i.d(t,"m",function(){return l}),i.d(t,"H",function(){return u}),i.d(t,"e",function(){return d}),i.d(t,"D",function(){return c}),i.d(t,"i",function(){return p}),i.d(t,"I",function(){return h}),i.d(t,"J",function(){return f}),i.d(t,"u",function(){return v}),i.d(t,"s",function(){return m}),i.d(t,"L",function(){return g}),i.d(t,"K",function(){return y}),i.d(t,"w",function(){return b}),i.d(t,"v",function(){return w}),i.d(t,"t",function(){return T}),i.d(t,"F",function(){return _}),i.d(t,"h",function(){return S}),i.d(t,"j",function(){return x}),i.d(t,"n",function(){return E}),i.d(t,"G",function(){return k}),i.d(t,"p",function(){return C}),i.d(t,"o",function(){return O}),i.d(t,"k",function(){return P}),i.d(t,"d",function(){return j}),i.d(t,"z",function(){return I}),i.d(t,"q",function(){return A}),i.d(t,"r",function(){return M}),i.d(t,"A",function(){return D}),i.d(t,"B",function(){return L}),i.d(t,"x",function(){return N}),i.d(t,"y",function(){return R}),i.d(t,"g",function(){return B}),i.d(t,"l",function(){return z}),i.d(t,"f",function(){return U}),i.d(t,"C",function(){return F}),i.d(t,"b",function(){return H});var V=i(145),q=function e(t){n(this,e);for(var i=this,r=0;r<t.length;r+=1)i[r]=t[r];return i.length=t.length,this};r.fn=q.prototype,r.Class=q,r.Dom7=q;"resize scroll".split(" ")},function(e,t,i){"use strict";function n(e){return null!==e&&"object"===(void 0===e?"undefined":a(e))&&"constructor"in e&&e.constructor===Object}function r(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(i){void 0===e[i]?e[i]=t[i]:n(t[i])&&n(e[i])&&Object.keys(t[i]).length>0&&r(e[i],t[i])})}i.d(t,"a",function(){return s}),i.d(t,"b",function(){return l});var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s="undefined"!=typeof document?document:{},o={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:""}};r(s,o);var l="undefined"!=typeof window?window:{};r(l,{document:o,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{}}})},function(e,t,i){"use strict";i.d(t,"b",function(){return r}),i.d(t,"a",function(){return n});var n="undefined"==typeof document?{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[]}}},location:{hash:""}}:document,r="undefined"==typeof window?{document:n,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[i("section",{ref:"swiperSection",staticClass:"swiper",style:{height:e.bannerHeight}},[e.pageDataObj.bgStyle&&1===e.pageDataObj.bgStyle.status&&e.pageDataObj.bgStyle.picList[0].height?i("div",{staticClass:"swiper-bg",style:{height:e.bannerBgHeight}},[i("img",{staticClass:"swiper-bg-img",attrs:{src:e.pageDataObj.bgStyle.picList[0].resourcePath,alt:e.pageDataObj.bgStyle.picList[0].resourceName}})]):e._e(),e._v(" "),i("div",{ref:"swiper-main"+e.swiperId,class:["swiper-main","swiper-main"+e.swiperId]},[i("div",{class:["swiper-container"+e.swiperId,"swiper-container"]},[i("div",{staticClass:"swiper-wrapper"},e._l(e.pageDataObj.list,function(t,n){return i("div",{key:t.id,class:["swiper-slide",2===e.pageDataObj.styleType&&"mobile"===e.curSystem&&"swiper-slide-two"]},[i("hot-sport",{ref:"hotSport"+n,refInFor:!0,attrs:{"page-data":t,"cur-System":e.curSystem,showShadow:!0,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:1,isSwiper:!0},on:{clickUrl:e.navigatorPage,stopSwiperAuto:e.stopSwiperAuto,startSwiperAuto:e.startSwiperAuto,exposurePost:e.exposurePost}})],1)}),0),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-left"},[e._t("swiper-left-nav",function(){return[i("div",{staticClass:"swiper-navigation position-left"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])])]})],2):e._e(),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-right"},[e._t("swiper-right-nav",function(){return[i("div",{staticClass:"swiper-navigation position-right"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])])]})],2):e._e()]),e._v(" "),i("div",{class:["mobile"===e.curSystem&&"swiper-pagination-bullets-mob","swiper-pagination"]})])])])},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){var n=i(149);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("c82c34d6",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".video-pc[data-v-2bf40517]{width:100%;height:100%}.video-mob[data-v-2bf40517]{width:100%;font-size:0;animation:optionsShow-data-v-2bf40517 1s linear forwards}@keyframes optionsShow-data-v-2bf40517{0%{opacity:0}to{opacity:1}}.video-js[data-v-2bf40517]{width:100%;height:100%}.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-2bf40517]:active,.vjs-custom-skin>.video-js .vjs-big-play-button[data-v-2bf40517]:focus,[data-v-2bf40517] .video-js:hover .vjs-big-play-button{background-color:rgba(43,51,63,.7)}.load-image-d[data-v-2bf40517]{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5}.load-image[data-v-2bf40517]{width:100px;height:100px}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{ref:"comTitle",attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[e.isPC?[i("div",{ref:"videoRef",style:{width:"100%",fontSize:0,height:e.videoHeight+"px"}},[1===e.pageDataObj.isVideoHasHot?[i("hot-sport",{attrs:{"page-data":e.pageDataObj,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:3},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})]:[e.pageDataObj.videoUrl?i("video",{ref:"videoPlay",staticClass:"video-js vjs-default-skin vjs-big-play-centered",attrs:{id:"my-video"+e.pageDataObj.uniqueId,autoplay:e.pageDataObj.autoPlay,loop:e.pageDataObj.loop,controls:!e.pageDataObj.hasOwnProperty("controls")||!e.pageDataObj.controls,"x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","x5-video-player-fullscreen":"false","webkit-playsinline":"true",playsinline:"true",name:"viewport"},domProps:{muted:!e.pageDataObj.hasOwnProperty("mute")||e.pageDataObj.mute}}):i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)]:e._e(),e._v(" "),e.isPC?e._e():[i("div",{ref:"videoRef",staticClass:"video-mob",style:{height:e.videoHeight+"px"}},[1===e.pageDataObj.isVideoHasHot?[i("hot-sport",{attrs:{"page-data":e.pageDataObj,"unique-id":e.pageDataObj.uniqueId,"unique-name":e.pageDataObj.uniqueName,"env-url":e.envUrl,refererPagePath:e.refererPagePath,path:e.path,brand:e.brand,isReportCms:e.isReportCms,pathType:e.pathType,componentType:3,"cur-system":e.curSystem},on:{clickUrl:e.navigatorPage,exposurePost:e.exposurePost}})]:[e.pageDataObj.videoUrl?i("video",{ref:"videoPlay",staticClass:"video-js vjs-default-skin vjs-big-play-centered",attrs:{autoplay:e.pageDataObj.autoPlay,loop:e.pageDataObj.loop,controls:!e.pageDataObj.hasOwnProperty("controls")||!e.pageDataObj.controls,id:"my-video"+e.pageDataObj.uniqueId,"x5-playsinline":"","x5-video-orientation":"landscape|portrait","x5-video-player-type":"h5","x5-video-player-fullscreen":"false","webkit-playsinline":"true",playsinline:"true",name:"viewport"},domProps:{muted:!e.pageDataObj.hasOwnProperty("mute")||e.pageDataObj.mute}}):i("div",{staticClass:"load-image-d"},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])]],2)]],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(152)}var r=i(46),a=i(154),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-f3f30df2",null);t.a=l.exports},function(e,t,i){var n=i(153);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("265453dc",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".product-img[data-v-f3f30df2]{width:100%}.warp-title[data-v-f3f30df2]{font-size:20px;padding:10px 0;color:#333;text-align:left}.swiper[data-v-f3f30df2]{width:100%}.swiper[data-v-f3f30df2] .swiper-wrapper{cursor:pointer}.swiper-container[data-v-f3f30df2]{position:relative;height:100%;overflow:hidden}.swiper-container .swiper-slide[data-v-f3f30df2]{color:#000;font-size:16px}.swiper-pagination[data-v-f3f30df2]{text-align:center;width:100%;height:3px;position:absolute;bottom:33px}.swiper-button-next[data-v-f3f30df2],.swiper-button-prev[data-v-f3f30df2]{width:35px;height:35px;border-radius:100%;background-size:10px;color:#fff;text-align:center;line-height:35px;background:rgba(0,0,0,.1)}.swiper-button-next[data-v-f3f30df2]:hover,.swiper-button-prev[data-v-f3f30df2]:hover{background:rgba(0,0,0,.3)}.swiper-button-next.swiper-button-disabled[data-v-f3f30df2],.swiper-button-prev.swiper-button-disabled[data-v-f3f30df2]{pointer-events:auto;background:rgba(0,0,0,.1)}.swiper-slide[data-v-f3f30df2]{background-repeat:no-repeat;background-size:cover;background-position:50%}.bqCmsIconfont[data-v-f3f30df2]{font-family:bqCmsIconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.product-info[data-v-f3f30df2]{font-size:14px;color:#333;overflow:hidden;font-weight:400;padding-top:15px;text-align:left}.product-name[data-v-f3f30df2]{line-height:30px;padding-bottom:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-price[data-v-f3f30df2]{font-size:16px}.price-light[data-v-f3f30df2]{color:#c41230;font-weight:600}.price-dark[data-v-f3f30df2]{color:#000;font-weight:600}.price-standard[data-v-f3f30df2]{text-decoration:line-through;color:#949494;margin-left:4px;font-size:14px}.warp-two-pc[data-v-f3f30df2]{width:100%;display:flex;flex-wrap:wrap}.pb-15[data-v-f3f30df2]{padding-bottom:15px}.cursor-pointer[data-v-f3f30df2]{cursor:pointer}.load-image-d[data-v-f3f30df2]{width:100%;height:300px;display:flex;align-items:center;justify-content:center}.load-image[data-v-f3f30df2]{width:100px;height:100px}.load-product[data-v-f3f30df2]{display:flex;align-items:center;justify-content:center;background-color:#f5f5f5;margin-right:10px}.product-more[data-v-f3f30df2]{height:100%;display:flex;align-items:center;justify-content:center}[data-v-f3f30df2] .swiper-container-horizontal>.swiper-scrollbar{width:30%;left:40%;height:3px;position:relative;margin-top:20px}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[1===e.pageDataObj.styleType?[i("div",{staticClass:"product-warp",style:{padding:"0 "+e.pageDataObj.pageSpacing+"px"}},[e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.show?i("div",{staticClass:"warp-title",style:{fontWeight:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.fontWeight?"bolder":"",fontSize:e.isPC?"20px":"16px",textAlign:e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.align}},[e._v("\n "+e._s(e.pageDataObj.fontStyle&&e.pageDataObj.fontStyle.text)+"\n ")]):e._e(),e._v(" "),i("div",{ref:"swiperList"+e.swiperId,staticClass:"product-slide"},[i("div",{staticClass:"swiper"},[i("div",{class:["swiper-containerProduct"+e.swiperId,"swiper-container"],style:{width:"calc(100% + "+e.pageDataObj.itemSpacing+"px)"}},[i("div",{ref:"swiperWrapper",staticClass:"swiper-wrapper"},[e._l(e.pageDataObj.productShowList,function(t,n){return[(n+1<=e.pageDataObj.goodsType===1?e.pageDataObj.productShowList.length:e.pageDataObj.goodsInfo.showNum)?i("div",{key:n,staticClass:"swiper-slide"},[i("div",{ref:"lastSwiper",refInFor:!0},[i("div",{staticClass:"cursor-pointer",style:{marginRight:e.pageDataObj.itemSpacing+"px"}},[e._t("cmsProductSlot",function(){return[i("div",[i("img",{staticClass:"product-img",attrs:{src:t.mainPicUrl,alt:t.name}})]),e._v(" "),i("div",{staticClass:"product-info"},[i("div",{staticClass:"product-name"},[e._v("\n "+e._s(t.name)+"\n ")]),e._v(" "),i("div",{staticClass:"product-price"},[i("span",{class:t.salesPrice!=t.standardPrice?"price-light":"price-dark"},[e._v("¥"+e._s(t.salesPrice))]),e._v(" "),t.salesPrice!=t.standardPrice?i("span",{staticClass:"price-standard"},[e._v("¥"+e._s(t.standardPrice))]):e._e()])])]},{data:t})],2)])]):e._e()]}),e._v(" "),e.pageDataObj.goodsInfo&&e.pageDataObj.goodsInfo.isShowMore?i("div",{staticClass:"swiper-slide"},[i("div",{style:{width:"100%",height:e.moreHeight+"px"}},[e._t("cmsProductMoreSlot",function(){return[i("div",[e._v("查看更多")])]},{data:e.pageDataObj.goodsInfo})],2)]):e._e()],2),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-prev"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"===e.curSystem?i("div",{staticClass:"swiper-button-next"},[i("i",{staticClass:"bqCmsIconfont"},[e._v("")])]):e._e(),e._v(" "),"pc"!==e.curSystem?i("div",{staticClass:"swiper-scrollbar"}):e._e()])])])])]:e._e(),e._v(" "),!e.pageDataObj.styleType||e.pageDataObj.productShowList.length<=0?[i("div",{staticClass:"load-image-d"},e._l(e.pageDataObj.lineShowNum,function(t,n){return i("div",{key:n,staticClass:"load-product",style:{width:"calc(100% / "+e.pageDataObj.lineShowNum+")",height:"100%"}},[i("img",{staticClass:"load-image",attrs:{src:"https://mpimg.ibaiqiu.cn/mpresources/background.png"}})])}),0)]:e._e()],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(156)}var r=i(48),a=i(164),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-2d293b2e",null);t.a=l.exports},function(e,t,i){var n=i(157);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("cd1f0610",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".dec-bus-container[data-v-2d293b2e]{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%}.dec-components[data-v-2d293b2e]{width:100%}",""])},function(e,t,i){"use strict";var n=i(42),r=i(47),a=i(44),s=i(19),o=i(49),l=i(50),u=i(163);t.a={components:{banner:n.a,cmsVideo:a.a,cmsProduct:r.a,picNav:s.a,picText:o.a,cmsNavigate:l.a},props:{maxWidthMobile:{type:Number},curSystem:{type:String},envUrl:{type:String,default:"https://mpsit40.ibaiqiu.com/"}},methods:{getComponent:function(e){var t=u.a.find(function(t){return t.componentCode===e});if(t)return t.components}}}},function(e,t,i){var n=i(160);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(17)("6ee2034b",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,"",""])},function(e,t){e.exports=function(e,t){for(var i=[],n={},r=0;r<t.length;r++){var a=t[r],s=a[0],o=a[1],l=a[2],u=a[3],d={id:e+":"+r,css:o,media:l,sourceMap:u};n[s]?n[s].parts.push(d):i.push(n[s]={id:s,parts:[d]})}return i}},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";i.d(t,"a",function(){return n});var n=[{componentCode:"2",components:"banner"},{componentCode:"3",components:"cmsVideo"},{componentCode:"4",components:"picNav"},{componentCode:"5",components:"cmsProduct"},{componentCode:"6",components:"selfComponents"},{componentCode:"7",components:"picText"},{componentCode:"8",components:"cmsNavigate"}]},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dec-bus-container"},e._l(e.decorationList,function(t){return i("div",{key:t.id,staticClass:"dec-components"},[i(e.getComponent(t.componentCode),{tag:"component",attrs:{"page-data":JSON.parse(t.attributeJson),"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"env-url":e.envUrl}},["5"===t.componentCode?[e._t("product",null,{data:JSON.parse(t.attributeJson)})]:e._e(),e._v(" "),"6"===t.componentCode?[e._t("self",null,{data:JSON.parse(t.attributeJson)})]:e._e()],2)],1)}),0)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(166)}var r=i(52),a=i(168),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-09ca10a0",null);t.a=l.exports},function(e,t,i){var n=i(167);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(17)("cee7bed2",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,"",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement;return(e._self._c||t)("com-title",{attrs:{"warp-width":e.pageDataObj.width,"warp-height":e.pageDataObj.height,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem},on:{checkIsMobile:e.checkIsMobile}},[e._t("default")],2)},r=[],a={render:n,staticRenderFns:r};t.a=a},function(e,t,i){"use strict";function n(e){i(170),i(172)}var r=i(53),a=i(174),s=i(3),o=n,l=s(r.a,a.a,!1,o,"data-v-2f374c98",null);t.a=l.exports},function(e,t,i){var n=i(171);n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var r=i(2).default;r("07084c4a",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,"",""])},function(e,t,i){var n=i(173);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);i(17)("5f7e7f47",n,!0,{})},function(e,t,i){t=e.exports=i(0)(!1),t.push([e.i,".edit-text table{border-top:1px solid #ccc;border-left:1px solid #ccc}.edit-text table th{border-bottom:2px solid #ccc;text-align:center;background-color:#f1f1f1}.edit-text table td,table th{border-bottom:1px solid #ccc;border-right:1px solid #ccc;padding:3px 5px;min-height:30px;height:30px}.edit-text img{max-width:100%;display:initial}",""])},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("com-title",{attrs:{"width-style":e.pageDataObj&&e.pageDataObj.widthStyle,"max-width-mobile":e.maxWidthMobile,"cur-system":e.curSystem,"width-show":e.widthShow},on:{checkIsMobile:e.checkIsMobile}},[i("div",{ref:""+e.pageDataObj.uniqueId,style:e.background},[5===e.pageDataObj.styleType?[i("div",{staticClass:"edit-text",domProps:{innerHTML:e._s(e.pageDataObj.content)}})]:e._e()],2)])},r=[],a={render:n,staticRenderFns:r};t.a=a}])});
|
|
19
|
+
//# sourceMappingURL=baiqiu-cms-decoration1.min.js.map
|