1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{147:function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(28))},148:function(e,t,n){e.exports={}},150:function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var d=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",function(){n.$forceUpdate()}),o.placeholderTag&&(o.placeholder||d)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||d):c.length>0?c.map(function(){return e(!1)}):e(!1))}};e.exports=r},153:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return nt});var o=n(37),l=n.n(o),c=n(1),d="object"==typeof e&&e&&e.Object===Object&&e,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")(),v=f.Symbol,m=Object.prototype,y=m.hasOwnProperty,w=m.toString,T=v?v.toStringTag:void 0;var _=Object.prototype.toString;var C=v?v.toStringTag:void 0;function E(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":C&&C in Object(e)?function(e){var t=y.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(e){}var o=w.call(e);return r&&(t?e[T]=n:delete e[T]),o}(e):function(e){return _.call(e)}(e)}function x(e){return null!=e&&"object"==typeof e}var S=Array.isArray,k=/\s/;var M=/^\s+/;function P(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&k.test(e.charAt(t)););return t}(e)+1).replace(M,""):e}function O(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var j=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,I=/^0o[0-7]+$/i,D=parseInt;function L(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||x(e)&&"[object Symbol]"==E(e)}(e))return NaN;if(O(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=O(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=P(e);var n=A.test(e);return n||I.test(e)?D(e.slice(2),n?2:8):j.test(e)?NaN:+e}function z(e){return e}function N(e){if(!O(e))return!1;var t=E(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var R,B=f["__core-js_shared__"],$=(R=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"";var F=Function.prototype.toString;var H=/^\[object .+?Constructor\]$/,V=Function.prototype,X=Object.prototype,W=V.toString,Y=X.hasOwnProperty,G=RegExp("^"+W.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function U(e){return!(!O(e)||(t=e,$&&$ in t))&&(N(e)?G:H).test(function(e){if(null!=e){try{return F.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}var K=Date.now;var J,Z,Q,ee=function(){try{var e=U(t=function(object,e){return null==object?void 0:object[e]}(Object,"defineProperty"))?t:void 0;return e({},"",{}),e}catch(e){}var t}(),te=ee,ie=te?function(e,t){return te(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:z,ne=(J=ie,Z=0,Q=0,function(){var e=K(),t=16-(e-Q);if(Q=e,t>0){if(++Z>=800)return arguments[0]}else Z=0;return J.apply(void 0,arguments)}),re=ne,ae=/^(?:0|[1-9]\d*)$/;function se(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ae.test(e))&&e>-1&&e%1==0&&e<t}function oe(object,e,t){"__proto__"==e&&te?te(object,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):object[e]=t}function le(e,t){return e===t||e!=e&&t!=t}var ce=Object.prototype.hasOwnProperty;function ue(object,e,t){var n=object[e];ce.call(object,e)&&le(n,t)&&(void 0!==t||e in object)||oe(object,e,t)}var de=Math.max;function he(e,t){return re(function(e,t,n){return t=de(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,l=de(r.length-t,0),c=Array(l);++o<l;)c[o]=r[t+o];o=-1;for(var d=Array(t+1);++o<t;)d[o]=r[o];return d[t]=n(c),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,d)}}(e,t,z),e+"")}function pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function fe(e){return null!=e&&pe(e.length)&&!N(e)}var ve=Object.prototype;function ge(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ve)}function me(e){return x(e)&&"[object Arguments]"==E(e)}var ye=Object.prototype,be=ye.hasOwnProperty,we=ye.propertyIsEnumerable,Te=me(function(){return arguments}())?me:function(e){return x(e)&&be.call(e,"callee")&&!we.call(e,"callee")},_e=Te;var Ce="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=Ce&&"object"==typeof r&&r&&!r.nodeType&&r,xe=Ee&&Ee.exp
2orts===Ce?f.Buffer:void 0,Se=(xe?xe.isBuffer:void 0)||function(){return!1},ke={};ke["[object Float32Array]"]=ke["[object Float64Array]"]=ke["[object Int8Array]"]=ke["[object Int16Array]"]=ke["[object Int32Array]"]=ke["[object Uint8Array]"]=ke["[object Uint8ClampedArray]"]=ke["[object Uint16Array]"]=ke["[object Uint32Array]"]=!0,ke["[object Arguments]"]=ke["[object Array]"]=ke["[object ArrayBuffer]"]=ke["[object Boolean]"]=ke["[object DataView]"]=ke["[object Date]"]=ke["[object Error]"]=ke["[object Function]"]=ke["[object Map]"]=ke["[object Number]"]=ke["[object Object]"]=ke["[object RegExp]"]=ke["[object Set]"]=ke["[object String]"]=ke["[object WeakMap]"]=!1;var Me="object"==typeof exports&&exports&&!exports.nodeType&&exports,Pe=Me&&"object"==typeof r&&r&&!r.nodeType&&r,Oe=Pe&&Pe.exports===Me&&d.process,je=function(){try{var e=Pe&&Pe.require&&Pe.require("util").types;return e||Oe&&Oe.binding&&Oe.binding("util")}catch(e){}}(),Ae=je&&je.isTypedArray,Ie=Ae?function(e){return function(t){return e(t)}}(Ae):function(e){return x(e)&&pe(e.length)&&!!ke[E(e)]},De=Ie,Le=Object.prototype.hasOwnProperty;function ze(e,t){var n=S(e),r=!n&&_e(e),o=!n&&!r&&Se(e),l=!n&&!r&&!o&&De(e),c=n||r||o||l,d=c?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],h=d.length;for(var f in e)!t&&!Le.call(e,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||l&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||se(f,h))||d.push(f);return d}var Ne=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Re=Ne,Be=Object.prototype.hasOwnProperty;function $e(object){return fe(object)?ze(object):function(object){if(!ge(object))return Re(object);var e=[];for(var t in Object(object))Be.call(object,t)&&"constructor"!=t&&e.push(t);return e}(object)}var Fe,He=Object.prototype.hasOwnProperty,Ve=(Fe=function(object,source){if(ge(source)||fe(source))!function(source,e,object,t){var n=!object;object||(object={});for(var r=-1,o=e.length;++r<o;){var l=e[r],c=t?t(object[l],source[l],l,object,source):void 0;void 0===c&&(c=source[l]),n?oe(object,l,c):ue(object,l,c)}}(source,$e(source),object);else for(var e in source)He.call(source,e)&&ue(object,e,source[e])},he(function(object,e){var t=-1,n=e.length,r=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(r=Fe.length>3&&"function"==typeof r?(n--,r):void 0,o&&function(e,t,object){if(!O(object))return!1;var n=typeof t;return!!("number"==n?fe(object)&&se(t,object.length):"string"==n&&t in object)&&le(object[t],e)}(e[0],e[1],o)&&(r=n<3?void 0:r,n=1),object=Object(object);++t<n;){var source=e[t];source&&Fe(object,source,t,r)}return object})),Xe=function(){return f.Date.now()},We=Math.max,Ye=Math.min;function qe(e,t,n){var r,o,l,c,d,h,f=0,v=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(time){var t=r,n=o;return r=o=void 0,f=time,c=e.apply(n,t)}function T(time){var e=time-h;return void 0===h||e>=t||e<0||m&&time-f>=l}function _(){var time=Xe();if(T(time))return C(time);d=setTimeout(_,function(time){var e=t-(time-h);return m?Ye(e,l-(time-f)):e}(time))}function C(time){return d=void 0,y&&r?w(time):(r=o=void 0,c)}function E(){var time=Xe(),e=T(time);if(r=arguments,o=this,h=time,e){if(void 0===d)return function(time){return f=time,d=setTimeout(_,t),v?w(time):c}(h);if(m)return clearTimeout(d),d=setTimeout(_,t),w(h)}return void 0===d&&(d=setTimeout(_,t)),c}return t=L(t)||0,O(n)&&(v=!!n.leading,l=(m="maxWait"in n)?We(L(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),E.cancel=function(){void 0!==d&&clearTimeout(d),f=0,r=h=o=d=void 0},E.flush=function(){return void 0===d?c:C(Xe())},E}var Ge=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",[e._t("default",null,{images:e.images,options:e.options})],2)},Ue=[];function Ke(e,t,n,r,o,l,c,d){var h,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),l&&(f._scopeId="data-v-"+l),c?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},f._ssrRegister=h):o&&(h=d?function(){o.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:o),h)if(f.functional){f._injectStyles=h;var v=f.render;f.render=function(e,t){return h.call(t),v(e,t)}}else{var m=f.beforeCreate;f.beforeCreate=m?[].concat(m,h):[h]}return{exports:e,options:f}}const Je={props:{images:{type:Array},rebuild:{type:Boolean,default:!1},trigger:{},options:{type:Object}},data:()=>({}),computed:{},watch:{images(){this.$nextTick(()=>{this.onChange()})},trigger:{handler(){this.$nextTick(()=>{this.onChange()})},deep:!0},options:{handler(){this.$nextTick(()=>{this.rebuildViewer()})},deep:!0}},mounted(){this.createViewer()},unmounted(){this.destroyViewer()}
2,methods:{onChange(){this.rebuild?this.rebuildViewer():this.updateViewer()},rebuildViewer(){this.destroyViewer(),this.createViewer()},updateViewer(){this.$viewer?(this.$viewer.update(),this.$emit("inited",this.$viewer)):this.createViewer()},destroyViewer(){this.$viewer&&this.$viewer.destroy()},createViewer(){this.$viewer=new l.a(this.$el,this.options),this.$emit("inited",this.$viewer)}}},Ze={};var Qe=Ke(Je,Ge,Ue,!1,et,null,null,null);function et(e){for(let e in Ze)this[e]=Ze[e]}var component=function(){return Qe.exports}();const tt=({name:e="viewer",debug:t=!1}={})=>{function n(t,n,o=!1,h=!1){c.a.nextTick(()=>{h&&!function(e){const t=e.innerHTML.match(/<img([\w\W]+?)[\\/]?>/g),n=t?t.join(""):void 0;return e.__viewerImageDiffCache===n?(d("Element change detected, but image(s) has not changed"),!1):(d("Image change detected"),e.__viewerImageDiffCache=n,!0)}(t)||(o||!t[`$${e}`]?(r(t),t[`$${e}`]=new l.a(t,n),d("Viewer created")):(t[`$${e}`].update(),d("Viewer updated")))})}function r(t){t[`$${e}`]&&(t[`$${e}`].destroy(),delete t[`$${e}`],d("Viewer destroyed"))}function o(e){e.__viewerMutationObserver&&(e.__viewerMutationObserver.disconnect(),delete e.__viewerMutationObserver,d("Observer destroyed"))}function d(){t&&console.log(...arguments)}return{bind(e,t,r){d("Viewer bind");const l=qe(n,50);l(e,t.value),function(e,{expression:t},n,r){t&&/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/.test(t)?(e.__viewerUnwatch=n.context.$watch(t,(n,o)=>{d("Change detected by watcher: ",t),r(e,n,!0)},{deep:!0}),d("Watcher created, expression: ",t)):d("Only simple dot-delimited paths can create watcher")}(e,t,r,l),t.modifiers.static||function(e,t,n,r){o(e);const l=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(!l)return void d("Observer not supported");const c=new l(o=>{o.forEach(o=>{d(`Viewer mutation:${o.type}`),n(e,t,r,!0)})});c.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__viewerMutationObserver=c,d("Observer created")}(e,t.value,l,t.modifiers.rebuild)},unbind(e,t){d("Viewer unbind"),o(e),function(e){e.__viewerUnwatch&&(e.__viewerUnwatch(),delete e.__viewerUnwatch,d("Watcher destroyed"))}(e),r(e)}}},it=({images:e=[],options:t={}}={})=>{t=Ve(t,{inline:!1});const n=new(c.a.extend({render:t=>t("div",{style:{display:"none"},class:["__viewer-token"]},e.map(e=>t("img",{attrs:"string"==typeof e?{src:e}:e})))}));n.$mount(),document.body.appendChild(n.$el);const r=new l.a(n.$el,t),o=r.destroy.bind(r);return r.destroy=function(){return o(),n.$destroy(),document.body.removeChild(n.$el),r},r.show(),n.$el.addEventListener("hidden",function(){this.viewer===r&&r.destroy()}),r};var nt={install(e,{name:t="viewer",debug:n=!1,defaultOptions:r}={}){l.a.setDefaults(r),e.component(t,Ve(component,{name:t})),e.directive(t,tt({name:t,debug:n})),e.prototype[`$${t}Api`]=it},setDefaults(e){l.a.setDefaults(e)}}}).call(this,n(28),n(353)(e))},220:function(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var s=new XMLHttpRequest,o=[],u={},a=function e(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:e,headers:{keys:function(){return o},entries:function(){return o.map(function(e){return[e,s.getResponseHeader(e)]})},get:function(e){return s.getResponseHeader(e)},has:function(e){return null!=s.getResponseHeader(e)}}}};for(var i in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(e,t){u[t]||o.push(u[t]=t)}),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(i,t.headers[i]);s.send(t.body||null)})}n.d(t,"a",function(){return r})},222:function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?v((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,source,t){return e.concat(source).map(function(element){return l(element,t)})}function d(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(symbol){return Object.propertyIsEnumerable.call(e,symbol)}):[]}(e))}function h(object,e){try{return e in object}catch(e){return!1}}function f(e,source,t){var n={};return t.isMergeableObject(e)&&d(e).forEach(function(r){n[r]=l(e[r],t)}),d(source).forEach(function(r){(function(e,t){return h(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(h(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return v;var n=t.customMerge(e);return"function"==typeof n?n:v}(r,t)(e[r],source[r],t):n[r]=l(source[r],t))}),n}function v(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||c,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=l;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):f(e,source,t):l(source,t)}v.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return v(e,n,t)},{})};var m=v;e.exports=m},227:function(e,t,n){var r;e.exports=(r=n(355),function(e){function t(i){if(n[i])return n[i].exports;var s=n[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})}
2,t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=4)}([function(e,t){e.exports=r},function(e,t){e.exports=function(e,t,n,i,s,r){var o,a=e=e||{},u=typeof e.default;"object"!==u&&"function"!==u||(o=e,a=e.default);var l,p="function"==typeof a?a.options:a;if(t&&(p.render=t.render,p.staticRenderFns=t.staticRenderFns,p._compiled=!0),n&&(p.functional=!0),s&&(p._scopeId=s),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},p._ssrRegister=l):i&&(l=i),l){var c=p.functional,d=c?p.render:p.beforeCreate;c?(p._injectStyles=l,p.render=function(e,t){return l.call(t),d(e,t)}):p.beforeCreate=d?[].concat(d,l):[l]}return{esModule:o,exports:a,options:p}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),s=n.n(i),r=n(8),a=n(1)(s.a,r.a,!1,null,null,null);t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),s=n.n(i),r=n(7),a=n(1)(s.a,r.a,!1,null,null,null);t.default=a.exports},function(e,t,n){"use strict";function i(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(n(0)),a=i(n(2)),p=i(n(3)),o=window.Swiper||r.default,l=p.default,c=a.default,d=function(e,t){t&&(p.default.props.globalOptions.default=function(){return t}),e.component(p.default.name,p.default),e.component(a.default.name,a.default)},h={Swiper:o,swiper:l,swiperSlide:c,install:d};t.default=h,t.Swiper=o,t.swiper=l,t.swiperSlide=c,t.install=d},function(e,t,n){"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,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){return e&&e.__esModule?e:{default:e}}(n(0)),r=window.Swiper||s.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 n=Object(e),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])}return n},writable:!0,configurable:!0});var o=["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 r(this.$el,e),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var e=this,t=this;
2o.forEach(function(n){e.swiper.on(n,function(){t.$emit.apply(t,[n].concat(Array.prototype.slice.call(arguments))),t.$emit.apply(t,[n.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))})})}}}},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"swiper-container"},[e._t("parallax-bg"),e._v(" "),n("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={render:i,staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:e.slideClass},[e._t("default")],2)},r={render:i,staticRenderFns:[]};t.a=r}]))},235:function(e,t,n){e.exports={}},241:function(e,t,n){(function(e){e.installComponents=function(component,e){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},e)n.components[i]=n.components[i]||e[i];n.functional&&function(component,e){if(component.exports[t])return;component.exports[t]=!0;var n=component.exports.render;component.exports.render=function(t,r){return n(t,Object.assign({},r,{_c:function(t,a,b){return r._c(e[t]||t,a,b)}}))}}(component,n.components)};var t="_functionalComponents"}).call(this,n(28))},311:function(e,t,n){e.exports={}},338:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.videoPlayer=t.videojs=void 0;var r=l(n(339)),o=l(n(352));function l(e){return e&&e.__esModule?e:{default:e}}var c=["loadeddata","canplay","canplaythrough","play","pause","waiting","playing","ended","error"],d=function(e){e.events=e.events||[],e.options=e.options||{};var t=function(e,t,n){var r=null;return t.arg?r=t.arg:n.data.attrs&&(n.data.attrs.instanceName||n.data.attrs["instance-name"])?r=n.data.attrs.instanceName||n.data.attrs["instance-name"]:e.id&&(r=e.id),r||"player"},n=function(e){if(!e.children.length){var video=document.createElement("video");video.className="video-js",e.appendChild(video)}},l=function(n,l,d){var h=d.context,f=d.data.attrs||{},v=l.value||{},m=t(n,l,d),y=f.customEventName||"statechanged",w=h[m],T=f.events||[],_=f.playsinline||!1;if(_&&(n.children[0].setAttribute("playsinline",_),n.children[0].setAttribute("webkit-playsinline",_),n.children[0].setAttribute("x5-playsinline",_),n.children[0].setAttribute("x5-video-player-type","h5"),n.children[0].setAttribute("x5-video-player-fullscreen",!1)),f.crossOrigin&&(n.children[0].crossOrigin=f.crossOrigin,n.children[0].setAttribute("crossOrigin",f.crossOrigin)),!w){var C=(0,o.default)({},{controls:!0,controlBar:{remainingTimeDisplay:!1,playToggle:{},progressControl:{},fullscreenToggle:{},volumeMenuButton:{inline:!1,vertical:!0}},techOrder:["html5"],plugins:{}},e.options,v);C.plugins&&delete C.plugins.__ob__;var E=function(e,t,data){var n=e.data&&e.data.on||e.componentOptions&&e.componentOptions.listeners;n&&n[t]&&n[t].fns(data)},x=function(e,t){e&&E(d,e,w),t&&E(d,y,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t))};w=h[m]=(0,r.default)(n.children[0],C,function(){for(var t=this,n=c.concat(T).concat(e.events),r={},i=0;i<n.length;i++)"string"==typeof n[i]&&void 0===r[n[i]]&&function(e){r[e]=null,t.on(e,function(){x(e,!0)})}(n[i]);this.on("timeupdate",function(){x("timeupdate",this.currentTime())}),x("ready")})}},d=function(e,r,o){var l=o.context,c=t(e,r,o),d=l[c];d&&d.dispose&&("Flash"!==d.techName_&&d.pause&&d.pause(),d.dispose(),n(e),l[c]=null,delete l[c])};return{inserted:l,bind:function(e,t,r){n(e)},update:function(e,t,n){var r=t.value||{};d(e,t,n),r&&r.sources&&r.sources.length&&l(e,t,n)},unbind:d}},h=d({}),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{options:{},events:[]};e.directive("video-player",d(t))},v={videojs:r.default,videoPlayer:h,install:f};t.default=v,t.videojs=r.default,t.videoPlayer=h,t.install=f},339:function(e,t,n){function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o,l=r(n(147)),c=r(n(340)),d=r(n(342)),h=r(n(343)),f=r(n(344)),v=r(n(348)),m="6.13.0",y=l.navigator&&l.navigator.userAgent||"",w=/AppleWeb
2Kit\/([\d.]+)/i.exec(y),T=w?parseFloat(w.pop()):null,_=/iPad/i.test(y),C=/iPhone/i.test(y)&&!_,E=/iPod/i.test(y),x=C||_||E,S=(o=y.match(/OS (\d+)_/i))&&o[1]?o[1]:null,k=/Android/i.test(y),M=function(){var e=y.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),P=k&&/webkit/i.test(y)&&M<2.3,O=k&&M<5&&T<537,j=/Firefox/i.test(y),A=/Edge/i.test(y),I=!A&&(/Chrome/i.test(y)||/CriOS/i.test(y)),D=function(){var e=y.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),L=/MSIE\s8\.0/.test(y),z=function(){var e=/MSIE\s(\d+)\.\d/.exec(y),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(y)&&/rv:11.0/.test(y)&&(t=11),t}(),N=/Safari/i.test(y)&&!I&&!k&&!A,R=(N||x)&&!I,B=oe()&&("ontouchstart"in l||l.navigator.maxTouchPoints||l.DocumentTouch&&l.document instanceof l.DocumentTouch),$=oe()&&"backgroundSize"in l.document.createElement("video").style,F=(Object.freeze||Object)({IS_IPAD:_,IS_IPHONE:C,IS_IPOD:E,IS_IOS:x,IOS_VERSION:S,IS_ANDROID:k,ANDROID_VERSION:M,IS_OLD_ANDROID:P,IS_NATIVE_ANDROID:O,IS_FIREFOX:j,IS_EDGE:A,IS_CHROME:I,CHROME_VERSION:D,IS_IE8:L,IE_VERSION:z,IS_SAFARI:N,IS_ANY_SAFARI:R,TOUCH_ENABLED:B,BACKGROUND_SIZE_SUPPORTED:$}),H="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},V=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},X=function(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)},W=function(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},Y=function(e,t){return e.raw=t,e},G=Object.prototype.toString,U=function(object){return Z(object)?Object.keys(object):[]};function K(object,e){U(object).forEach(function(t){return e(object[t],t)})}function J(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(source){source&&K(source,function(t,n){e[n]=t})}),e)}function Z(e){return!!e&&"object"===(void 0===e?"undefined":H(e))}function Q(e){return Z(e)&&"[object Object]"===G.call(e)&&e.constructor===Object}var ee=[];var te=function e(t){var n="info",r=void 0,o=function e(){for(var t=e.stringify||z&&z<11,o=arguments.length,l=Array(o),c=0;c<o;c++)l[c]=arguments[c];r("log",n,l,t)};return r=function(e,t){return function(n,r,o,c){var d=t.levels[r],h=new RegExp("^("+d+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),ee&&ee.push([].concat(o)),l.console){var f=l.console[n];f||"debug"!==n||(f=l.console.info||l.console.log),f&&d&&h.test(n)&&(c&&(o=o.map(function(a){if(Z(a)||Array.isArray(a))try{return JSON.stringify(a)}catch(e){return String(a)}return String(a)}).join(" ")),f.apply?f[Array.isArray(o)?"apply":"call"](l.console,o):f(o))}}}(t,o),o.createLogger=function(n){return e(t+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},o.level=function(e){if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(o.history=function(){return ee?[].concat(ee):[]}).filter=function(e){return(ee||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},o.history.clear=function(){ee&&(ee.length=0)},o.history.disable=function(){null!==ee&&(ee.length=0,ee=null)},o.history.enable=function(){null===ee&&(ee=[])},o.error=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r("error",n,t)},o.warn=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r("warn",n,t)},o.debug=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return r("debug",n,t)},o}("VIDEOJS"),ie=te.createLogger;function ne(e,t){if(!e||!t)return"";if("function"==typeof l.getComputedStyle){var n=l.getComputedStyle(e);return n?n[t]:""}return e.currentStyle[t]||""}var re=Y(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."],["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);function ae(e){return"string"==typeof e&&/\S/.test(e)}function se(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function oe(){return c===l.document&&void 0!==c.createElement}function le(e){return Z(e)&&1===e.nodeType}function ce(){try{return l.parent!==l.self}catch(e){return!0}}function ue(e){return function(t,n){if(!ae(t))return c[e](null);ae(n)&&(n=c.querySelector(n));var r=le(n)?n:c;return r[e]&&r[e](t)}}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},content=arguments[3],r=c.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(te.warn(d(re,e,n)),r.setAttribute(e,n)):"textContent"===e?he(r,n):r[e]=n}
vendor: 22,924 bytes, line 2
2),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),content&&je(r,content),r}function he(e,text){return void 0===e.textContent?e.innerText=text:e.textContent=text,e}function pe(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function fe(element,e){return se(e),element.classList?element.classList.contains(e):(t=e,new RegExp("(^|\\s)"+t+"($|\\s)")).test(element.className);var t}function ve(element,e){return element.classList?element.classList.add(e):fe(element,e)||(element.className=(element.className+" "+e).trim()),element}function ge(element,e){return element.classList?element.classList.remove(e):(se(e),element.className=element.className.split(/\s+/).filter(function(t){return t!==e}).join(" ")),element}function me(element,e,t){var n=fe(element,e);if("function"==typeof t&&(t=t(element,e)),"boolean"!=typeof t&&(t=!n),t!==n)return t?ve(element,e):ge(element,e),element}function ye(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)})}function be(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,l=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(l=null!==l),t[o]=l}return t}function we(e,t){return e.getAttribute(t)}function Te(e,t,n){e.setAttribute(t,n)}function _e(e,t){e.removeAttribute(t)}function Ce(){c.body.focus(),c.onselectstart=function(){return!1}}function Ee(){c.onselectstart=function(){return!0}}function xe(e){if(e&&e.getBoundingClientRect&&e.parentNode){var rect=e.getBoundingClientRect(),t={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==rect[e]&&(t[e]=rect[e])}),t.height||(t.height=parseFloat(ne(e,"height"))),t.width||(t.width=parseFloat(ne(e,"width"))),t}}function Se(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=c.documentElement,body=c.body,r=n.clientLeft||body.clientLeft||0,o=l.pageXOffset||body.scrollLeft,d=t.left+o-r,h=n.clientTop||body.clientTop||0,f=l.pageYOffset||body.scrollTop,v=t.top+f-h;return{left:Math.round(d),top:Math.round(v)}}function ke(e,t){var n={},r=Se(e),o=e.offsetWidth,l=e.offsetHeight,c=r.top,d=r.left,h=t.pageY,f=t.pageX;return t.changedTouches&&(f=t.changedTouches[0].pageX,h=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(c-h+l)/l)),n.x=Math.max(0,Math.min(1,(f-d)/o)),n}function Me(e){return Z(e)&&3===e.nodeType}function Pe(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Oe(content){return"function"==typeof content&&(content=content()),(Array.isArray(content)?content:[content]).map(function(e){return"function"==typeof e&&(e=e()),le(e)||Me(e)?e:"string"==typeof e&&/\S/.test(e)?c.createTextNode(e):void 0}).filter(function(e){return e})}function je(e,content){return Oe(content).forEach(function(t){return e.appendChild(t)}),e}function Ae(e,content){return je(Pe(e),content)}function Ie(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===z||0===e.button&&1===e.buttons))}var De=ue("querySelector"),Le=ue("querySelectorAll"),ze=(Object.freeze||Object)({isReal:oe,isEl:le,isInFrame:ce,createEl:de,textContent:he,prependTo:pe,hasClass:fe,addClass:ve,removeClass:ge,toggleClass:me,setAttributes:ye,getAttributes:be,getAttribute:we,setAttribute:Te,removeAttribute:_e,blockTextSelection:Ce,unblockTextSelection:Ee,getBoundingClientRect:xe,findPosition:Se,getPointerPosition:ke,isTextNode:Me,emptyEl:Pe,normalizeContent:Oe,appendContent:je,insertContent:Ae,isSingleLeftClick:Ie,$:De,$$:Le}),Ne=1;function Re(){return Ne++}var Be={},$e="vdata"+(new Date).getTime();function Fe(e){var t=e[$e];return t||(t=e[$e]=Re()),Be[t]||(Be[t]={}),Be[t]}function He(e){var t=e[$e];return!!t&&!!Object.getOwnPropertyNames(Be[t]).length}function Ve(e){var t=e[$e];if(t){delete Be[t];try{delete e[$e]}catch(t){e.removeAttribute?e.removeAttribute($e):e[$e]=null}}}function Xe(e,t){var data=Fe(e);0===data.handlers[t].length&&(delete data.handlers[t],e.removeEventListener?e.removeEventListener(t,data.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,data.dispatcher)),Object.getOwnPropertyNames(data.handlers).length<=0&&(delete data.handlers,delete data.dispatcher,delete data.disabled),0===Object.getOwnPropertyNames(data).length&&Ve(e)}function We(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function Ye(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||l.event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||c),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var d=c.documentElement,body=c.body;e.pageX=e.clientX+(d&&d.scrollLeft||body&&body.scrollLeft||0)-(d&&d.clientLeft||body&&body.clientLeft||0),e.pageY=e.clientY+(d&&d.scrollTop||body&&body.scrollTop||0)-(d&&d.clientTop||body&&body.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}var qe=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){qe=!0}});l.addEventListener("test",null,e),l.removeEventListener("test",null,e)}catch(e){}}();var Ge=["touchstart","touchmove"];function Ue(e,t,n){if(Array.isArray(t))return We(Ue,e,t,n);var data=Fe(e);if(data.handlers||(data.handlers={}),data.handlers[t]||(data.handlers[t]=[]),n.guid||(n.guid=Re()),data.handlers[t].push(n),data.dispatcher||(data.disabled=!1,data.dispatcher=function(t,n){if(!data.disabled){t=Ye(t);var r=data.handlers[t.type];if(r)for(var o=r.slice(0),l=0,c=o.length;l<c&&!t.isImmediatePropagationStopped();l++)try{o[l].call(e,t,n)}catch(e){te.error(e)}}}),1===data.handlers[t].length)if(e.addEventListener){var r=!1;qe&&Ge.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,data.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,data.dispatcher)}function Ke(e,t,n){if(He(e)){var data=Fe(e);if(data.handlers){if(Array.isArray(t))return We(Ke,e,t,n);var r=function(e,t){data.handlers[t]=[],Xe(e,t)};if(void 0!==t){var o=data.handlers[t];if(o)if(n){if(n.guid)for(var l=0;l<o.length;l++)o[l].guid===n.guid&&o.splice(l--,1);Xe(e,t)}else r(e,t)}else for(var c in data.handlers)Object.prototype.hasOwnProperty.call(data.handlers||{},c)&&r(e,c)}}}function Je(e,t,n){var r=He(e)?Fe(e):{},o=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Ye(t),r.dispatcher&&r.dispatcher.call(e,t,n),o&&!t.isPropagationStopped()&&!0===t.bubbles)Je.call(null,o,t,n);else if(!o&&!t.defaultPrevented){var l=Fe(t.target);t.target[t.type]&&(l.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),l.disabled=!1)}return!t.defaultPrevented}function Ze(e,t,n){if(Array.isArray(t))return We(Ze,e,t,n);var r=function r(){Ke(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Re(),Ue(e,t,r)}var Qe=(Object.freeze||Object)({fixEvent:Ye,on:Ue,off:Ke,trigger:Je,one:Ze}),et=!1,tt=void 0,it=function(){if(oe()&&!1!==tt.options.autoSetup){var e=c.getElementsByTagName("video"),t=c.getElementsByTagName("audio"),n=c.getElementsByTagName("video-js"),r=[];if(e&&e.length>0)for(var i=0,o=e.length;i<o;i++)r.push(e[i]);if(t&&t.length>0)for(var l=0,d=t.length;l<d;l++)r.push(t[l]);if(n&&n.length>0)for(var h=0,f=n.length;h<f;h++)r.push(n[h]);if(r&&r.length>0)for(var v=0,m=r.length;v<m;v++){var y=r[v];if(!y||!y.getAttribute){nt(1);break}void 0===y.player&&null!==y.getAttribute("data-setup")&&tt(y)}else et||nt(1)}};function nt(e,t){t&&(tt=t),l.setTimeout(it,e)}oe()&&"complete"===c.readyState?et=!0:Ze(l,"load",function(){et=!0});var at=function(e){var style=c.createElement("style");return style.className=e,style},st=function(e,content){e.styleSheet?e.styleSheet.cssText=content:e.textContent=content},ot=function(e,t,n){t.guid||(t.guid=Re());var r=function(){return t.apply(e,arguments)};return r.guid=n?n+"_"+t.guid:t.guid,r},lt=function(e,t){var n=Date.now();return function(){var r=Date.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},ct=function(){};ct.prototype.allowedEvents_={},ct.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ue(this,e,t),this.addEventListener=n},ct.prototype.addEventListener=ct.prototype.on,ct.prototype.off=function(e,t){Ke(this,e,t)},ct.prototype.removeEventListener=ct.prototype.off,ct.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ze(this,e,t),this.addEventListener=n},ct.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Ye(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Je(this,e)},ct.prototype.dispatchEvent=ct.prototype.trigger;var ut=function(object){return object instanceof ct||!!object.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof object[e]})},ht=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},pt=function(e){if(!e.nodeName&&!ut(e))throw new Error("Invalid target; must be a DOM node or evented object.")},ft=function(e){if(!ht(e))throw new Error("Invalid event type; must be a non-empty string or array.")},vt=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},gt=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,r=void 0,o=void 0,l=void 0;return n?(r=e.eventBusEl_,t.length>=3&&t.shift(),o=t[0],l=t[1]):(r=t[0],o=t[1],l=t[2]),pt(r),ft(o),vt(l),{isTargetingSelf:n,target:r,type:o,listener:l=ot(e,l)}},mt=function(e,t,n,r){pt(e),e.nodeName?Qe[t](e,n,r):e[t](n,r)},yt={on:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=gt(this,n),l=o.isTargetingSelf,c=o.target,d=o.type,h=o.listener;if(mt(c,"on",d,h),!l){var f=function(){return e.off(c,d,h)};f.guid=h.guid;var v=function(){return e.off("dispose",f)};v.guid=h.guid,mt(this,"on","dispose",f),mt(c,"on","dispose",v)}},one:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=gt(this,n),l=o.isTargetingSelf,c=o.target,d=o.type,h=o.listener;if(l)mt(c,"one",d,h);else{var f=function t(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];e.off(c,d,t),h.apply(null,r)};f.guid=h.guid,mt(c,"one",d,f)}},off:function(e,t,n){if(!e||ht(e))Ke(this.eventBusEl_,e,t);else{var r=e,o=t;pt(r),ft(o),vt(n),n=ot(this,n),this.off("dispose",n),r.nodeName?(Ke(r,o,n),Ke(r,"dispose",n)):ut(r)&&(r.off(o,n),r.off("dispose",n))}},trigger:function(e,t){return Je(this.eventBusEl_,e,t)}};function bt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).eventBusKey;if(t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=de("span",{className:"vjs-event-bus"});return J(e,yt),e.on("dispose",function(){e.off(),l.setTimeout(function(){e.eventBusEl_=null},0)}),e}var wt={state:{},setState:function(e){var t=this;"function"==typeof e&&(e=e());var n=void 0;return K(e,function(e,r){t.state[r]!==e&&((n=n||{})[r]={from:t.state[r],to:e}),t.state[r]=e}),n&&ut(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function Tt(e,t){return J(e,wt),e.state=J({},e.state,t),"function"==typeof e.handleStateChanged&&ut(e)&&e.on("statechanged",e.handleStateChanged),e}function _t(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function Ct(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(source){source&&K(source,function(t,n){Q(t)?(Q(e[n])||(e[n]={}),e[n]=Ct(e[n],t)):e[n]=t})}),e}var Et=function(){function e(t,n,r){if(V(this,e),!t&&this.play?this.player_=t=this:this.player_=t,this.options_=Ct({},this.options_),n=this.options_=Ct(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){var o=t&&t.id&&t.id()||"no_player";this.id_=o+"_component_"+Re()}this.name_=n.name||null,n.el?this.el_=n.el:!1!==n.createEl&&(this.el_=this.createEl()),!1!==n.evented&&bt(this,{eventBusKey:this.el_?"el_":null}),Tt(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},!1!==n.initChildren&&this.initChildren(),this.ready(r),!1!==n.reportTouchActivity&&this.enableTouchActivity()}return e.prototype.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var i=this.children_.length-1;i>=0;i--)this.children_[i].dispose&&this.children_[i].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Ve(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return te.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=Ct(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return de(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,code=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[code],l=code&&code.split("-")[0],c=r&&r[l],d=n;return o&&o[e]?d=o[e]:c&&c[e]&&(d=c[e]),t&&(d=d.replace(/\{(\d+)\}/g,function(e,n){var r=t[n-1],o=r;return void 0===r&&(o=e),o})),d},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=_t(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,component=void 0,o=void 0;if("string"==typeof t){o=_t(t);var l=n.componentClass||o;n.name=o;var c=e.getComponent(l);if(!c)throw new Error("Component "+l+" does not exist");if("function"!=typeof c)return null;component=new c(this.player_||this,n)}else component=t;if(this.children_.splice(r,0,component),"function"==typeof component.id&&(this.childIndex_[component.id()]=component),(o=o||component.name&&_t(component.name()))&&(this.childNameIndex_[o]=component),"function"==typeof component.el&&component.el()){var d=this.contentEl().children[r]||null;this.contentEl().insertBefore(component.el(),d)}return component},e.prototype.removeChild=function(component){if("string"==typeof component&&(component=this.getChild(component)),component&&this.children_){for(var e=!1,i=this.children_.length-1;i>=0;i--)if(this.children_[i]===component){e=!0,this.children_.splice(i,1);break}if(e){this.childIndex_[component.id()]=null,this.childNameIndex_[component.name()]=null;var t=component.el();t&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(component.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var r=this.options_,o=void 0,l=e.getComponent("Tech");(o=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter(function(e){return!o.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r=void 0,o=void 0;return"string"==typeof e?o=n[r=e]||t.options_[r]||{}:(r=e.name,o=e),{name:r,opts:o}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||_t(t.name));return n&&!l.isTech(n)}).forEach(function(e){var n=e.name,o=e.opts;if(void 0!==r[n]&&(o=r[n]),!1!==o){!0===o&&(o={}),o.playerOptions=t.options_.playerOptions;var l=t.addChild(n,o);l&&(t[n]=l)}})}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=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))},e.prototype.triggerReady=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)},e.prototype.$=function(e,t){return De(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Le(e,t||this.contentEl())},e.prototype.hasClass=function(e){return fe(this.el_,e)},e.prototype.addClass=function(e){ve(this.el_,e)},e.prototype.removeClass=function(e){ge(this.el_,e)},e.prototype.toggleClass=function(e,t){me(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return we(this.el_,e)},e.prototype.setAttribute=function(e,t){Te(this.el_,e,t)},e.prototype.removeAttribute=function(e){_e(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){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(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],o=r.indexOf("px");return-1!==o?parseInt(r.slice(0,o),10):parseInt(this.el_["offset"+_t(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof l.getComputedStyle){var n=l.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(0===(t=parseFloat(t))){var r="offset"+_t(e);t=this.el_[r]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=void 0;this.on("touchstart",function(r){1===r.touches.length&&(t={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},e=(new Date).getTime(),n=!0)}),this.on("touchmove",function(e){if(e.touches.length>1)n=!1;else if(t){var r=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY;Math.sqrt(r*r+o*o)>10&&(n=!1)}});var r=function(){n=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",function(r){(t=null,!0===n)&&((new Date).getTime()-e<200&&(r.preventDefault(),this.trigger("tap")))})},e.prototype.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e=ot(this.player(),this.player().reportUserActivity),t=void 0;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});var n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}},e.prototype.setTimeout=function(e,t){var n,r,o=this;return e=ot(this,e),n=l.setTimeout(function(){o.off("dispose",r),e()},t),(r=function(){return o.clearTimeout(n)}).guid="vjs-timeout-"+n,this.on("dispose",r),n},e.prototype.clearTimeout=function(e){l.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},e.prototype.setInterval=function(e,t){var n=this;e=ot(this,e);var r=l.setInterval(e,t),o=function(){return n.clearInterval(r)};return o.guid="vjs-interval-"+r,this.on("dispose",o),r},e.prototype.clearInterval=function(e){l.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},e.prototype.requestAnimationFrame=function(e){var t,n,r=this;return this.supportsRaf_?(e=ot(this,e),t=l.requestAnimationFrame(function(){r.off("dispose",n),e()}),(n=function(){return r.cancelAnimationFrame(t)}).guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},e.prototype.cancelAnimationFrame=function(e){if(this.supportsRaf_){l.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r=e.getComponent("Tech"),o=r&&r.isTech(n),l=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!l){var c=void 0;throw c=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+c+".")}t=_t(t),e.components_||(e.components_={});var d=e.getComponent("Player");if("Player"===t&&d&&d.players){var h=d.players,f=Object.keys(h);if(h&&f.length>0&&f.map(function(e){return h[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=_t(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function xt(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function St(e){return 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:xt.bind(null,"start",0,e),end:xt.bind(null,"end",1,e)}}function kt(e,t){return Array.isArray(e)?St(e):void 0===e||void 0===t?St():St([[e,t]])}function Mt(e,t){var n=0,r=void 0,o=void 0;if(!t)return 0;e&&e.length||(e=kt(0,0));for(var i=0;i<e.length;i++)r=e.start(i),(o=e.end(i))>t&&(o=t),n+=o-r;return n/t}Et.prototype.supportsRaf_="function"==typeof l.requestAnimationFrame&&"function"==typeof l.cancelAnimationFrame,Et.registerComponent("Component",Et);for(var Pt={},Ot=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["
2webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],jt=Ot[0],At=void 0,i=0;i<Ot.length;i++)if(Ot[i][1]in c){At=Ot[i];break}if(At)for(var It=0;It<At.length;It++)Pt[jt[It]]=At[It];function Dt(e){if(e instanceof Dt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:Z(e)&&("number"==typeof e.code&&(this.code=e.code),J(this,e)),this.message||(this.message=Dt.defaultMessages[this.code]||"")}Dt.prototype.code=0,Dt.prototype.message="",Dt.prototype.status=null,Dt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Dt.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 Lt=0;Lt<Dt.errorTypes.length;Lt++)Dt[Dt.errorTypes[Lt]]=Lt,Dt.prototype[Dt.errorTypes[Lt]]=Lt;function zt(e){return null!=e&&"function"==typeof e.then}function Nt(e){zt(e)&&e.then(null,function(e){})}var Rt=function(track){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,t,i){return track[t]&&(e[t]=track[t]),e},{cues:track.cues&&Array.prototype.map.call(track.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})},Bt=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=Rt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(track){return-1===n.indexOf(track)}).map(Rt))},$t=function(e,t){return e.forEach(function(track){var e=t.addRemoteTextTrack(track).track;!track.src&&track.cues&&track.cues.forEach(function(t){return e.addCue(t)})}),t.textTracks()},Ft="vjs-modal-dialog",Ht=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.opened_=o.hasBeenOpened_=o.hasBeenFilled_=!1,o.closeable(!o.options_.uncloseable),o.content(o.options_.content),o.contentEl_=de("div",{className:Ft+"-content"},{role:"document"}),o.descEl_=de("p",{className:Ft+"-description vjs-control-text",id:o.el().getAttribute("aria-describedby")}),he(o.descEl_,o.description()),o.el_.appendChild(o.descEl_),o.el_.appendChild(o.contentEl_),o}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.prototype.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return Ft+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},t.prototype.handleKeyPress=function(e){27===e.which&&this.closeable()&&this.close()},t.prototype.label=function(){return this.localize(this.options_.label||"Modal Window")},t.prototype.description=function(){var desc=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(desc+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),desc},t.prototype.open=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.closeable()&&this.on(this.el_.ownerDocument,"keydown",ot(this,this.handleKeyPress)),this.hadControl
vendor: 4,775 bytes, line 2
2s_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},t.prototype.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.prototype.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",ot(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},t.prototype.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},t.prototype.fill=function(){this.fillWith(this.content())},t.prototype.fillWith=function(content){var e=this.contentEl(),t=e.parentNode,n=e.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,t.removeChild(e),this.empty(),Ae(e,content),this.trigger("modalfill"),n?t.insertBefore(e,n):t.appendChild(e);var r=this.getChild("closeButton");r&&t.appendChild(r.el_)},t.prototype.empty=function(){this.trigger("beforemodalempty"),Pe(this.contentEl()),this.trigger("modalempty")},t.prototype.content=function(e){return void 0!==e&&(this.content_=e),this.content_},t.prototype.conditionalFocus_=function(){var e=c.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(c,"keydown",this.handleKeyDown))},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(c,"keydown",this.handleKeyDown)},t.prototype.handleKeyDown=function(e){if(9===e.which){for(var t=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=void 0,i=0;i<t.length;i++)if(n===t[i]){r=i;break}c.activeElement===this.el_&&(r=0),e.shiftKey&&0===r?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||r!==t.length-1||(t[0].focus(),e.preventDefault())}},t.prototype.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof l.HTMLAnchorElement||e instanceof l.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof l.HTMLInputElement||e instanceof l.HTMLSelectElement||e instanceof l.HTMLTextAreaElement||e instanceof l.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof l.HTMLIFrameElement||e instanceof l.HTMLObjectElement||e instanceof l.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},t}(Et);Ht.prototype.options_={pauseOnOpen:!0,temporary:!0},Et.registerComponent("ModalDialog",Ht);var Vt=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;V(this,t);var o=W(this,e.call(this));if(!r&&(r=o,L))for(var l in r=c.createElement("custom"),t.prototype)"constructor"!==l&&(r[l]=t.prototype[l]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var i=0;i<n.length;i++)r.addTrack(n[i]);return W(o,r)}return X(t,e),t.prototype.addTrack=function(track){var e=this.tracks_.length;""+e in this||Object.defineProperty(this,e,{get:function(){return this.tracks_[e]}}),-1===this.tracks_.indexOf(track)&&(this.tracks_.push(track),this.trigger({track:track,type:"addtrack"}))},t.prototype.removeTrack=function(e){for(var track=void 0,i=0,t=this.length;i<t;i++)if(this[i]===e){(track=this[i]).off&&track.off(),this.tracks_.splice(i,1);break}track&&this.trigger({track:track,type:"removetrack"})},t.prototype.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var track=this[i];if(track.id===e){t=track;break}}return t},t}(ct);for(var Xt in Vt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"},Vt.prototype.allowedEvents_)Vt.prototype["on"+Xt]=null;var Wt=function(e,track){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&track.id!==e[i].id&&(e[i].enabled=!1)},Yt=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];V(this,t);for(var o=void 0,i=r.length-1;i>=0;i--)if(r[i].enabled){Wt(r,r[i]);break}if(L){for(var l in o=c.createElement("custom"),Vt.prototype)"constructor"!==l&&(o[l]=Vt.prototype[l]);for(var d in t.prototype)"constructor"!==d&&(o[d]=t.prototype[d])}
2return(o=n=W(this,e.call(this,r,o))).changing_=!1,W(n,o)}return X(t,e),t.prototype.addTrack=function(track){var t=this;track.enabled&&Wt(this,track),e.prototype.addTrack.call(this,track),track.addEventListener&&track.addEventListener("enabledchange",function(){t.changing_||(t.changing_=!0,Wt(t,track),t.changing_=!1,t.trigger("change"))})},t}(Vt),qt=function(e,track){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&track.id!==e[i].id&&(e[i].selected=!1)},Gt=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];V(this,t);for(var o=void 0,i=r.length-1;i>=0;i--)if(r[i].selected){qt(r,r[i]);break}if(L){for(var l in o=c.createElement("custom"),Vt.prototype)"constructor"!==l&&(o[l]=Vt.prototype[l]);for(var d in t.prototype)"constructor"!==d&&(o[d]=t.prototype[d])}return(o=n=W(this,e.call(this,r,o))).changing_=!1,Object.defineProperty(o,"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),W(n,o)}return X(t,e),t.prototype.addTrack=function(track){var t=this;track.selected&&qt(this,track),e.prototype.addTrack.call(this,track),track.addEventListener&&track.addEventListener("selectedchange",function(){t.changing_||(t.changing_=!0,qt(t,track),t.changing_=!1,t.trigger("change"))})},t}(Vt),Ut=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];V(this,t);var o=void 0;if(L){for(var l in o=c.createElement("custom"),Vt.prototype)"constructor"!==l&&(o[l]=Vt.prototype[l]);for(var d in t.prototype)"constructor"!==d&&(o[d]=t.prototype[d])}return n=W(this,e.call(this,r,o)),W(n,o=n)}return X(t,e),t.prototype.addTrack=function(track){e.prototype.addTrack.call(this,track),track.addEventListener("modechange",ot(this,function(){this.trigger("change")}));-1===["metadata","chapters"].indexOf(track.kind)&&track.addEventListener("modechange",ot(this,function(){this.trigger("selectedlanguagechange")}))},t}(Vt),Kt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];V(this,e);var n=this;if(L)for(var r in n=c.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var i=0,o=t.length;i<o;i++)n.addTrackElement_(t[i]);if(L)return n}return e.prototype.addTrackElement_=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)},e.prototype.getTrackElementByTrack_=function(track){for(var e=void 0,i=0,t=this.trackElements_.length;i<t;i++)if(track===this.trackElements_[i].track){e=this.trackElements_[i];break}return e},e.prototype.removeTrackElement_=function(e){for(var i=0,t=this.trackElements_.length;i<t;i++)if(e===this.trackElements_[i]){this.trackElements_.splice(i,1);break}},e}(),Jt=function(){function e(t){V(this,e);var n=this;if(L)for(var r in n=c.createElement("custom"),e.prototype)"constructor"!==r&&(n[r]=e.prototype[r]);if(e.prototype.setCues_.call(n,t),Object.defineProperty(n,"length",{get:function(){return this.length_}}),L)return n}return e.prototype.setCues_=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)},e.prototype.getCueById=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}(),Zt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Qt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},ei={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},ti={disabled:"disabled",hidden:"hidden",showing:"showing"},ii=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};V(this,t);var r=W(this,e.call(this)),track=r;if(L)for(var o in track=c.createElement("custom"),t.prototype)"constructor"!==o&&(track[o]=t.prototype[o]);var l={id:n.id||"vjs_track_"+Re(),kind:n.kind||"",label:n.label||"",language:n.language||""},d=function(e){Object.defineProperty(track,e,{get:function(){return l[e]}
2,set:function(){}})};for(var h in l)d(h);return W(r,track)}return X(t,e),t}(ct),ni=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],a=c.createElement("a");a.href=e;var n=""===a.host&&"file:"!==a.protocol,div=void 0;n&&((div=c.createElement("div")).innerHTML='<a href="'+e+'"></a>',a=div.firstChild,div.setAttribute("style","display:none; position:absolute;"),c.body.appendChild(div));for(var details={},i=0;i<t.length;i++)details[t[i]]=a[t[i]];return"http:"===details.protocol&&(details.host=details.host.replace(/:80$/,"")),"https:"===details.protocol&&(details.host=details.host.replace(/:443$/,"")),details.protocol||(details.protocol=l.location.protocol),n&&c.body.removeChild(div),details},ri=function(e){if(!e.match(/^https?:\/\//)){var div=c.createElement("div");div.innerHTML='<a href="'+e+'">x</a>',e=div.firstChild.href}return e},ai=function(path){if("string"==typeof path){var e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i.exec(path);if(e)return e.pop().toLowerCase()}return""},si=function(e){var t=l.location,n=ni(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},oi=(Object.freeze||Object)({parseUrl:ni,getAbsoluteURL:ri,getFileExtension:ai,isCrossOrigin:si}),ci=function(e,track){var t=new l.WebVTT.Parser(l,l.vttjs,l.WebVTT.StringDecoder()),n=[];t.oncue=function(e){track.addCue(e)},t.onparsingerror=function(e){n.push(e)},t.onflush=function(){track.trigger({type:"loadeddata",target:track})},t.parse(e),n.length>0&&(l.console&&l.console.groupCollapsed&&l.console.groupCollapsed("Text Track parsing errors for "+track.src),n.forEach(function(e){return te.error(e)}),l.console&&l.console.groupEnd&&l.console.groupEnd()),t.flush()},ui=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(V(this,t),!r.tech)throw new Error("A tech was not provided.");var o=Ct(r,{kind:ei[r.kind]||"subtitles",language:r.language||r.srclang||""}),c=ti[o.mode]||"disabled",d=o.default;"metadata"!==o.kind&&"chapters"!==o.kind||(c="hidden");var h=n=W(this,e.call(this,o));if(h.tech_=o.tech,L)for(var v in t.prototype)"constructor"!==v&&(h[v]=t.prototype[v]);h.cues_=[],h.activeCues_=[];var m=new Jt(h.cues_),y=new Jt(h.activeCues_),w=!1,T=ot(h,function(){this.activeCues=this.activeCues,w&&(this.trigger("cuechange"),w=!1)});return"disabled"!==c&&h.tech_.ready(function(){h.tech_.on("timeupdate",T)},!0),Object.defineProperty(h,"default",{get:function(){return d},set:function(){}}),Object.defineProperty(h,"mode",{get:function(){return c},set:function(e){var t=this;ti[e]&&("disabled"!==(c=e)?this.tech_.ready(function(){t.tech_.on("timeupdate",T)},!0):this.tech_.off("timeupdate",T),this.trigger("modechange"))}}),Object.defineProperty(h,"cues",{get:function(){return this.loaded_?m:null},set:function(){}}),Object.defineProperty(h,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return y;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||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(w=!1,t.length!==this.activeCues_.length)w=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(w=!0);return this.activeCues_=t,y.setCues_(this.activeCues_),y},set:function(){}}),o.src?(h.src=o.src,function(e,track){var t={uri:e},n=si(e);n&&(t.cors=n),f(t,ot(this,function(e,t,n){if(e)return te.error(e,t);if(track.loaded_=!0,"function"!=typeof l.WebVTT){if(track.tech_){var r=function(){return ci(n,track)};track.tech_.on("vttjsloaded",r),track.tech_.on("vttjserror",function(){te.error("vttjs failed to load, stopping trying to process "+track.src),track.tech_.off("vttjsloaded",r)})}}else ci(n,track)}))}(o.src,h)):h.loaded_=!0,W(n,h)}return X(t,e),t.prototype.addCue=function(e){var t=e;if(l.vttjs&&!(e instanceof l.vttjs.VTTCue)){for(var n in t=new l.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.prototype.removeCue=function(e){for(var i=this.cues_.length;i--;){var t=this.cues_[i];if(t===e||t.originalCue_&&t.originalCue_===e){this.cues_.splice(i,1),this.cues.setCues_(this.cues_);break}}},t}(ii);ui.prototype.allowedEvents_={cuechange:"cuechange"};var di=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};V(this,t);var o=Ct(r,{kind:Qt[r.kind]||""}),track=n=W(this,e.call(this,o)),l=!1;if(L)for(var c in t.prototype)"constructor"!==c&&(track[c]=t.prototype[c]);return Object.defineProperty(track,"enabled",{get:function(){return l},set:function(e){"boolean"==typeof e&&e!==l&&(l=e,this.trigger("enabledchange"))}}),o.enabled&&(track.enabled=o.enabled),track.loaded_=!0,W(n,track)}return X(t,e),t}(ii),hi=function(e){function t(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};V(this,t);var o=Ct(r,{kind:Zt[r.kind]||""}),track=n=W(this,e.call(this,o)),l=!1;if(L)for(var c in t.prototype)"constructor"!==c&&(track[c]=t.prototype[c]);return Object.defineProperty(track,"selected",{get:function(){return l},set:function(e){"boolean"==typeof e&&e!==l&&(l=e,this.trigger("selectedchange"))}}),o.selected&&(track.selected=o.selected),W(n,track)}return X(t,e),t}(ii),pi=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};V(this,t);var r=W(this,e.call(this)),o=void 0,l=r;if(L)for(var d in l=c.createElement("custom"),t.prototype)"constructor"!==d&&(l[d]=t.prototype[d]);var track=new ui(n);return l.kind=track.kind,l.src=track.src,l.srclang=track.language,l.label=track.label,l.default=track.default,Object.defineProperty(l,"readyState",{get:function(){return o}}),Object.defineProperty(l,"track",{get:function(){return track}}),o=0,track.addEventListener("loadeddata",function(){o=2,l.trigger({type:"load",target:l})}),L?W(r,l):r}return X(t,e),t}(ct);pi.prototype.allowedEvents_={load:"load"},pi.NONE=0,pi.LOADING=1,pi.LOADED=2,pi.ERROR=3;
vendor: 3,745 bytes, line 2
2var fi={audio:{ListClass:Yt,TrackClass:di,capitalName:"Audio"},video:{ListClass:Gt,TrackClass:hi,capitalName:"Video"},text:{ListClass:Ut,TrackClass:ui,capitalName:"Text"}};Object.keys(fi).forEach(function(e){fi[e].getterName=e+"Tracks",fi[e].privateName=e+"Tracks_"});var vi={remoteText:{ListClass:Ut,TrackClass:ui,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Kt,TrackClass:pi,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},gi=Ct(fi,vi);vi.names=Object.keys(vi),fi.names=Object.keys(fi),gi.names=[].concat(vi.names).concat(fi.names);var mi=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};V(this,t),n.reportTouchActivity=!1;var o=W(this,e.call(this,null,n,r));return o.hasStarted_=!1,o.on("playing",function(){this.hasStarted_=!0}),o.on("loadstart",function(){this.hasStarted_=!1}),gi.names.forEach(function(e){var t=gi[e];n&&n[t.getterName]&&(o[t.privateName]=n[t.getterName])}),o.featuresProgressEvents||o.manualProgressOn(),o.featuresTimeupdateEvents||o.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(track){!1===n["native"+track+"Tracks"]&&(o["featuresNative"+track+"Tracks"]=!1)}),!1===n.nativeCaptions||!1===n.nativeTextTracks?o.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(o.featuresNativeTextTracks=!0),o.featuresNativeTextTracks||o.emulateTextTracks(),o.autoRemoteTextTracks_=new gi.text.ListClass,o.initTrackListeners(),n.nativeControlsForTouch||o.emitTapEvents(),o.constructor&&(o.name_=o.constructor.name||"Unknown Tech"),o}return X(t,e),t.prototype.triggerSourceset=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"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(ot(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return kt(0,0)},t.prototype.bufferedPercent=function(){return Mt(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(fi.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;
vendor: 4,587 bytes, line 2
2(e=[].concat(e)).forEach(function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var track=n[i];"text"===e&&t.removeRemoteTextTrack(track),n.removeTrack(track)}})},t.prototype.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],i=e.length;i--;){var track=e[i];this.removeRemoteTextTrack(track)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new Dt(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?kt(0,0):kt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;fi.names.forEach(function(t){var n=fi[t],r=function(){e.trigger(t+"trackchange")},o=e[n.getterName]();o.addEventListener("removetrack",r),o.addEventListener("addtrack",r),e.on("dispose",function(){o.removeEventListener("removetrack",r),o.removeEventListener("addtrack",r)})})},t.prototype.addWebVttScript_=function(){var e=this;if(!l.WebVTT)if(c.body.contains(this.el())){if(!this.options_["vtt.js"]&&Q(v)&&Object.keys(v).length>0)return void this.trigger("vttjsloaded");var script=c.createElement("script");script.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",script.onload=function(){e.trigger("vttjsloaded")},script.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){script.onload=null,script.onerror=null}),l.WebVTT=!0,this.el().parentNode.appendChild(script)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},o=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",o),this.addWebVttScript_();var l=function(){return e.trigger("texttrackchange")},c=function(){l();for(var i=0;i<t.length;i++){var track=t[i];track.removeEventListener("cuechange",l),"showing"===track.mode&&track.addEventListener("cuechange",l)}};c(),t.addEventListener("change",c),t.addEventListener("addtrack",c),t.addEventListener("removetrack",c),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",o),t.removeEventListener("change",c),t.removeEventListener("addtrack",c),t.removeEventListener("removetrack",c);for(var i=0;i<t.length;i++){t[i].removeEventListener("cuechange",l)}})},t.prototype.addTextTrack=function(e,label,t){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,label,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();r.kind=t,label&&(r.label=label),n&&(r.language=n),r.tech=e;var track=new gi.text.TrackClass(r);return o.addTrack(track),track}(this,e,label,t)},t.prototype.createRemoteTextTrack=function(e){var track=Ct(e,{tech:this});return new vi.remoteTextEl.TrackClass(track)},t.prototype.addRemoteTextTrack=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],r=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(te.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==n&&this.ready(function(){return e.autoRemoteTextTracks_.addTrack(r.track)}),r},t.prototype.removeRemoteTextTrack=function(track){var e=this.remoteTextTrackEls().getTrackElementByTrack_(track);this.remoteTextTrackEls().removeTrackElement_(e),this.remoteTextTracks().removeTrack(track),this.autoRemoteTextTracks_.removeTrack(track)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(component){return component.prototype instanceof t||component instanceof t||component===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))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=_t(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=_t(e),t.techs_&&t.techs_[e]?t.techs_[e]:l&&l.videojs&&l.videojs[e]?(te.warn("The "+e+" tech w
2as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),l.videojs[e]):void 0},t}(Et);gi.names.forEach(function(e){var t=gi[e];mi.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),mi.prototype.featuresVolumeControl=!0,mi.prototype.featuresMuteControl=!0,mi.prototype.featuresFullscreenResize=!1,mi.prototype.featuresPlaybackRate=!1,mi.prototype.featuresProgressEvents=!1,mi.prototype.featuresSourceset=!1,mi.prototype.featuresTimeupdateEvents=!1,mi.prototype.featuresNativeTextTracks=!1,mi.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],r=void 0,i=0;i<n.length;i++)if(r=n[i].canPlayType(t))return r;return""},e.selectSourceHandler=function(source,t){for(var n=e.sourceHandlers||[],i=0;i<n.length;i++)if(n[i].canHandleSource(source,t))return n[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["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(source){var t=e.selectSourceHandler(source,this.options_);t||(e.nativeSourceHandler?t=e.nativeSourceHandler:te.error("No source hander found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),t!==e.nativeSourceHandler&&(this.currentSource_=source),this.sourceHandler_=t.handleSource(source,this,this.options_),this.on("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)}},Et.registerComponent("Tech",mi),mi.registerTech("Tech",mi),mi.defaultTechOrder_=[];var yi={},bi={},wi={};function Ti(e,t,n){e.setTimeout(function(){return ki(t,yi[t.type],n,e)},1)}function _i(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o="call"+_t(n),l=e.reduce(Si(o),r),c=l===wi,d=c?null:t[n](l);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,d,c),d}var Ci={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},Ei={setCurrentTime:1},xi={play:1,pause:1};function Si(e){return function(t,n){return t===wi?wi:n[e]?n[e](t):t}}function ki(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],r=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=t[0],d=t.slice(1);if("string"==typeof c)ki(e,yi[c],n,r,o,l);else if(c){var h=function(e,t){var n=bi[e.id()],r=null;if(null==n)return r=t(e),bi[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i],l=o[0],c=o[1];l===t&&(r=c)}return null===r&&(r=t(e),n.push([t,r])),r}(r,c);if(!h.setSource)return o.push(h),ki(e,d,n,r,o,l);h.setSource(J({},e),function(t,c){if(t)return ki(e,d,n,r,o,l);o.push(h),ki(c,e.type===c.type?d:yi[c.type],n,r,o,l)})}else d.length?ki(e,d,n,r,o,l):l?n(e,o):ki(e,yi["*"],n,r,o,!0)}var Mi={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},Pi=function(){var e=ai(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"");return Mi[e.toLowerCase()]||""},Oi=function e(t){if(Array.isArray(t)){var n=[];t.forEach(function(t){t=e(t),Array.isArray(t)?n=n.concat(t):Z(t)&&n.push(t)}),t=n}else t="string"==typeof t&&t.trim()?[ji({src:t})]:Z(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[ji(t)]:[];return t};function ji(e){var t=Pi(e.src);return!e.type&&t&&(e.type=t),e}var Ai=function(e){function t(n,r,o){V(this,t);var l=Ct({createEl:!1},r),c=W(this,e.call(this,n,l,o));if(r.playerOptions.sources&&0!==r.playerOptions.sources.length)n.src(r.playerOptions.sources);else for(var i=0,d=r.playerOptions.techOrder;i<d.length;i++){var h=_t(d[i]),f=mi.getTech(h);if(h||(f=Et.getComponent(h)),f&&f.isSupported()){n.loadTech_(h);break}}return c}return X(t,e),t}(Et);Et.registerComponent("MediaLoader",Ai);var Ii=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.emitTapEvents(),o.enable(),o}return X(t,e),t.prototype.createEl=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=J({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&te.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=J({role:"button"},r),this.tabIndex_=n.tabIndex;var o=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(o),o},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=de("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(text){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===text)return this.controlText_||"Need Text";var t=this.localize(text);this.controlText_=text,he(this.controlTextEl_,t),this.nonIconControl||e.setAttribute("title",t)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=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("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){Ue(c,"keydown",ot(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){Ke(c,"keydown",ot(this,this.handleKeyPress))},t}(Et);Et.registerComponent("ClickableComponent",Ii);var Di=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.update(),n.on("posterchange",ot(o,o.update)),o}return X(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=de("div",{className:"vjs-poster",tabIndex:-1});return $||(this.fallbackImg_=de("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?Nt(this.player_.play()):this.player_.pause())},t}(Ii);Et.registerComponent("PosterImage",Di);var Li="#222",zi={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',
vendor: 4,219 bytes, line 2
2script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Ni(e,t){var n=void 0;if(4===e.length)n=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.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Ri(e,style,t){try{e.style[style]=t}catch(e){return}}var Bi=function(e){function t(n,r,o){V(this,t);var c=W(this,e.call(this,n,r,o)),d=ot(c,c.updateDisplay);return n.on("loadstart",ot(c,c.toggleDisplay)),n.on("texttrackchange",d),n.on("loadstart",ot(c,c.preselectTrack)),n.ready(ot(c,function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",d),n.on("playerresize",d),l.addEventListener&&l.addEventListener("orientationchange",d),n.on("dispose",function(){return l.removeEventListener("orientationchange",d)});for(var e=this.options_.playerOptions.tracks||[],i=0;i<e.length;i++)this.player_.addRemoteTextTrack(e[i],!0);this.preselectTrack()}})),c}return X(t,e),t.prototype.preselectTrack=function(){for(var e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage,r=void 0,o=void 0,l=void 0,i=0;i<t.length;i++){var track=t[i];n&&n.enabled&&n.language===track.language?track.kind===n.kind?l=track:l||(l=track):n&&!n.enabled?(l=null,r=null,o=null):track.default&&("descriptions"!==track.kind||r?track.kind in e&&!o&&(o=track):r=track)}l?l.mode="showing":o?o.mode="showing":r&&(r.mode="showing")},t.prototype.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.prototype.clearDisplay=function(){"function"==typeof l.WebVTT&&l.WebVTT.processCues(l,[],this.el_)},t.prototype.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var t=null,n=null,i=e.length;i--;){var track=e[i];"showing"===track.mode&&("descriptions"===track.kind?t=track:n=track)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},t.prototype.updateForTrack=function(track){if("function"==typeof l.WebVTT&&track.activeCues){for(var e=[],t=0;t<track.activeCues.length;t++)e.push(track.activeCues[t]);if(l.WebVTT.processCues(l,e,this.el_),this.player_.textTrackSettings)for(var n=this.player_.textTrackSettings.getValues(),i=e.length;i--;){var r=e[i];if(r){var o=r.displayState;if(n.color&&(o.firstChild.style.color=n.color),n.textOpacity&&Ri(o.firstChild,"color",Ni(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(o.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&Ri(o.firstChild,"backgroundColor",Ni(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?Ri(o,"backgroundColor",Ni(n.windowColor,n.windowOpacity)):o.style.backgroundColor=n.windowColor),n.edgeStyle&&("dropshadow"===n.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+Li:"raised"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+Li:"depressed"===n.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+Li:"uniform"===n.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+Li)),n.fontPercent&&1!==n.fontPercent){var c=l.parseFloat(o.style.fontSize);o.style.fontSize=c*n.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}n.fontFamily&&"default"!==n.fontFamily&&("small-caps"===n.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=zi[n.fontFamily])}}}},t}(Et);Et.registerComponent("TextTrackDisplay",Bi);var $i=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
2Video Player"),r=de("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),o=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return o.appendChild(r),o},t}(Et);Et.registerComponent("LoadingSpinner",$i);var Fi=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=J({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=J({type:"button"},n);var r=Et.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(r),r},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return te.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Et.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Ii);Et.registerComponent("Button",Fi);var Hi=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));
vendor: 27,501 bytes, line 2
2return o.mouseused_=!1,o.on("mousedown",o.handleMouseDown),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)Nt(t);else{var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(r){var o=function(){return r.focus()};zt(t)?t.then(o,function(){}):this.setTimeout(o,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(Fi);Hi.prototype.controlText_="Play Video",Et.registerComponent("BigPlayButton",Hi);var Vi=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.controlText(r&&r.controlText||o.localize("Close")),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(Fi);Et.registerComponent("CloseButton",Vi);var Xi=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on(n,"play",o.handlePlay),o.on(n,"pause",o.handlePause),o.on(n,"ended",o.handleEnded),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Fi);Xi.prototype.controlText_="Play",Et.registerComponent("PlayToggle",Xi);var Wi=function(e,t){e=e<0?0:e;var s=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),l=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=n=s="-"),(r=r>0||l>0?r+":":"")+(n=((r||o>=10)&&n<10?"0"+n:n)+":")+(s=s<10?"0"+s:s)},Yi=Wi;var qi=function(e){return Yi(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e)},Gi=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.throttledUpdateContent=lt(ot(o,o.updateContent),25),o.on(n,"timeupdate",o.throttledUpdateContent),o}return X(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),r=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+"Â </span>"});return this.contentEl_=de("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),r.appendChild(this.contentEl_),r},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=c.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(time){return qi(time)},t.prototype.updateFormattedTime_=function(time){var e=this.formatTime_(time);e!==this.formattedTime_&&(this.formattedTime_=e,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(Et);Gi.prototype.labelText_="Time",Gi.prototype.controlText_="Time",Et.registerComponent("TimeDisplay",Gi);var Ui=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on(n,"ended",o.handleEnded),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var time=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(time)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(Gi);Ui.prototype.labelText_="Current Time",Ui.prototype.controlText_="Current Time",Et.registerComponent("CurrentTimeDisplay",Ui);var Ki=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on(n,"durationchange",o.updateContent),o.on(n,"loadedmetadata",o.throttledUpdateContent),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(Gi);Ki.prototype.labelText_="Duration",Ki.prototype.controlText_="Duration",Et.registerComponent("DurationDisplay",Ki);var Ji=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(Et);Et.registerComponent("TimeDivider",Ji);var Zi=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on(n,"durationchange",o.throttledUpdateContent),o.on(n,"ended",o.handleEnded),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(time){return"-"+e.prototype.formatTime_.call(this,time)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(Gi);Zi.prototype.labelText_="Remaining Time",Zi.prototype.controlText_="Remaining Time",Et.registerComponent("RemainingTimeDisplay",Zi);var Qi=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.updateShowing(),o.on(o.player(),"durationchange",o.updateShowing),o}return X(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=de("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"Â </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Et);Et.registerComponent("LiveDisplay",Qi);var en=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.bar=o.getChild(o.options_.barName),o.vertical(!!o.options_.vertical),o.enable(),o}return X(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),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)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),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}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=J({tabIndex:0},n),r=J({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||I||e.preventDefault(),Ce(),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)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Ee(),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()},t.prototype.update=function(){if(this.el_){var progress=this.getPercent(),e=this.bar;if(e){("number"!=typeof progress||progress!=progress||progress<0||progress===1/0)&&(progress=0);var t=(100*progress).toFixed(2)+"%",style=e.el().style;return this.vertical()?style.height=t:style.width=t,progress}}},t.prototype.calculateDistance=function(e){var t=ke(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=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}(Et);Et.registerComponent("Slider",en);var tn=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.partEls_=[],o.on(n,"progress",o.update),o}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),o=this.partEls_,l=function(time,e){var t=time/e||0;return 100*(t>=1?1:t)+"%"};this.el_.style.width=l(r,n);for(var i=0;i<t.length;i++){var c=t.start(i),d=t.end(i),h=o[i];h||(h=this.el_.appendChild(de()),o[i]=h),h.style.left=l(c,r),h.style.width=l(d-c,r)}for(var f=o.length;f>t.length;f--)this.el_.removeChild(o[f-1]);o.length=t.length},t}(Et);Et.registerComponent("LoadProgressBar",tn);var nn=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,content){var n=xe(this.el_),r=xe(this.player_.el()),o=e.width*t;if(r&&n){var l=e.left-r.left+o,c=e.width-o+(r.right-e.right),d=n.width/2;l<d?d+=d-l:c<d&&(d=c),d<0?d=0:d>n.width&&(d=n.width),this.el_.style.right="-"+d+"px",he(this.el_,content)}},t}(Et);Et.registerComponent("TimeTooltip",nn);var rn=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var time=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),content=qi(time,n.player_.duration()),r=n.getChild("timeTooltip");r&&r.update(e,t,content)})},t}(Et);rn.prototype.options_={children:[]},z&&!(z>8)||x||k||rn.prototype.options_.children.push("timeTooltip"),Et.registerComponent("PlayProgressBar",rn);var an=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.update=lt(ot(o,o.update),25),o}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.duration(),content=qi(t*r,r);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,content)})},t}(Et);an.prototype.options_={children:["timeTooltip"]},Et.registerComponent("MouseTimeDisplay",an);var sn=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.setEventHandlers_(),o}return X(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=lt(ot(this,this.update),30),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval(function(){e.requestAnimationFrame(function(){e.update()})},30)}),this.on(this.player_,["ended","pause","waiting"],function(){e.clearInterval(e.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[qi(e,n),qi(n,n)],"{1} of {2}")),this.bar.update(xe(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){Ie(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(Ie(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&Nt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(en);sn.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},z&&!(z>8)||x||k||sn.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),sn.prototype.playerEvent="timeupdate",Et.registerComponent("SeekBar",sn);var on=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.handleMouseMove=lt(ot(o,o.handleMouseMove),25),o.throttledHandleMouseSeek=lt(ot(o,o.handleMouseSeek),25),o.enable(),o}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),r=t.el(),o=xe(r),l=ke(r,e).x;l>1?l=1:l<0&&(l=0),n&&n.update(o,l)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(Et);on.prototype.options_={children:["seekBar"]},Et.registerComponent("ProgressControl",on);var ln=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on(n,"fullscreenchange",o.handleFullscreenChange),!1===c[Pt.fullscreenEnabled]&&o.disable(),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Fi);ln.prototype.controlText_="Fullscreen",Et.registerComponent("FullscreenToggle",ln);var cn=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Et);Et.registerComponent("VolumeLevel",cn);var un=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on("slideractive",o.updateLastVolume_),o.on(n,"volumechange",o.updateARIAAttributes),n.ready(function(){return o.updateARIAAttributes()}),o}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){Ie(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){Ie(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(en);un.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},un.prototype.playerEvent="volumechange",Et.registerComponent("VolumeBar",un);var dn=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(this,t),r.vertical=r.vertical||!1,(void 0===r.volumeBar||Q(r.volumeBar))&&(r.volumeBar=r.volumeBar||{},r.volumeBar.vertical=r.vertical);var o=W(this,e.call(this,n,r));return 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")})}(o,n),o.throttledHandleMouseMove=lt(ot(o,o.handleMouseMove),25),o.on("mousedown",o.handleMouseDown),o.on("touchstart",o.handleMouseDown),o.on(o.volumeBar,["focus","slideractive"],function(){o.volumeBar.addClass("vjs-slider-active"),o.addClass("vjs-slider-active"),o.trigger("slideractive")}),o.on(o.volumeBar,["blur","sliderinactive"],function(){o.volumeBar.removeClass("vjs-slider-active"),o.removeClass("vjs-slider-active"),o.trigger("sliderinactive")}),o}return X(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Et);dn.prototype.options_={children:["volumeBar"]},Et.registerComponent("VolumeControl",dn);var hn=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return 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")})}(o,n),o.on(n,["loadstart","volumechange"],o.update),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;x&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)ge(this.el_,"vjs-vol-"+i);ve(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var text=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==text&&this.controlText(text)},t}(Fi);hn.prototype.controlText_="Mute",Et.registerComponent("MuteToggle",hn);var pn=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(this,t),void 0!==r.inline?r.inline=r.inline:r.inline=!0,(void 0===r.volumeControl||Q(r.volumeControl))&&(r.volumeControl=r.volumeControl||{},r.volumeControl.vertical=!r.inline);var o=W(this,e.call(this,n,r));return o.on(n,["loadstart"],o.volumePanelState_),o.on(o.volumeControl,["slideractive"],o.sliderActive_),o.on(o.volumeControl,["sliderinactive"],o.sliderInactive_),o}return X(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=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")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(Et);pn.prototype.options_={children:["muteToggle","volumeControl"]},Et.registerComponent("VolumePanel",pn);var fn=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return r&&(o.menuButton_=r.menuButton),o.focusedChild_=-1,o.on("keydown",o.handleKeyPress),o}return X(t,e),t.prototype.addItem=function(component){this.addChild(component),component.on("click",ot(this,function(e){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==component.name()&&this.menuButton_.focus())}))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=de(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ue(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice();t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className)&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Et);Et.registerComponent("Menu",fn);var vn=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(this,t);var o=W(this,e.call(this,n,r));o.menuButton_=new Fi(n,r),o.menuButton_.controlText(o.controlText_),o.menuButton_.el_.setAttribute("aria-haspopup","true");var l=Fi.prototype.buildCSSClass();return o.menuButton_.el_.className=o.buildCSSClass()+" "+l,o.menuButton_.removeClass("vjs-control"),o.addChild(o.menuButton_),o.update(),o.enabled_=!0,o.on(o.menuButton_,"tap",o.handleClick),o.on(o.menuButton_,"click",o.handleClick),o.on(o.menuButton_,"focus",o.handleFocus),o.on(o.menuButton_,"blur",o.handleBlur),o.on("keydown",o.handleSubmenuKeyPress),o}return X(t,e),t.prototype.update=function(){var menu=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=menu,this.addChild(menu),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","fal
2se"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var menu=new fn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var title=de("li",{className:"vjs-menu-title",innerHTML:_t(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,menu.children_.unshift(title),pe(title,menu.contentEl())}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)menu.addItem(this.items[i]);return menu},t.prototype.createItems=function(){},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.prototype.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Fi.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},t.prototype.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},t.prototype.controlText=function(text){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(text,e)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",ot(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){Ue(c,"keydown",ot(this,this.handleKeyPress))},t.prototype.handleBlur=function(){Ke(c,"keydown",ot(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),x&&ce())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Et);Et.registerComponent("MenuButton",vn);var gn=function(e){function t(n,r){V(this,t);var o=r.tracks,l=W(this,e.call(this,n,r));if(l.items.length<=1&&l.hide(),!o)return W(l);var c=ot(l,l.update);return o.addEventListener("removetrack",c),o.addEventListener("addtrack",c),l.player_.on("ready",c),l.player_.on("dispose",function(){o.removeEventListener("removetrack",c),o.removeEventListener("addtrack",c)}),l}return X(t,e),t}(vn);Et.registerComponent("TrackButton",gn);var mn=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.selectable=r.selectable,o.isSelected_=r.selected||!1,o.multiSelectable=r.multiSelectable,o.selected(o.isSelected_),o.selectable?o.multiSelectable?o.el_.setAttribute("role","menuitemcheckbox"):o.el_.setAttribute("role","menuitemradio"):o.el_.setAttribute("role","menuitem"),o}return X(t,e),t.prototype.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",J({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=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","fal
2se"),this.controlText(""),this.isSelected_=!1))},t}(Ii);Et.registerComponent("MenuItem",mn);var yn=function(e){function t(n,r){V(this,t);var track=r.track,o=n.textTracks();r.label=track.label||track.language||"Unknown",r.selected="showing"===track.mode;var d=W(this,e.call(this,n,r));d.track=track;var h=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];d.handleTracksChange.apply(d,t)},f=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];d.handleSelectedLanguageChange.apply(d,t)};if(n.on(["loadstart","texttrackchange"],h),o.addEventListener("change",h),o.addEventListener("selectedlanguagechange",f),d.on("dispose",function(){n.off(["loadstart","texttrackchange"],h),o.removeEventListener("change",h),o.removeEventListener("selectedlanguagechange",f)}),void 0===o.onchange){var v=void 0;d.on(["tap","click"],function(){if("object"!==H(l.Event))try{v=new l.Event("change")}catch(e){}v||(v=c.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(v)})}return d.handleTracksChange(),d}return X(t,e),t.prototype.handleClick=function(t){var n=this.track.kind,r=this.track.kinds,o=this.player_.textTracks();if(r||(r=[n]),e.prototype.handleClick.call(this,t),o)for(var i=0;i<o.length;i++){var track=o[i];track===this.track&&r.indexOf(track.kind)>-1?"showing"!==track.mode&&(track.mode="showing"):"disabled"!==track.mode&&(track.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=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}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(mn);Et.registerComponent("TextTrackMenuItem",yn);var bn=function(e){function t(n,r){return V(this,t),r.track={player:n,kind:r.kind,kinds:r.kinds,default:!1,mode:"disabled"},r.kinds||(r.kinds=[r.kind]),r.label?r.track.label=r.label:r.track.label=r.kinds.join(" and ")+" off",r.selectable=!0,r.multiSelectable=!1,W(this,e.call(this,n,r))}return X(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var track=t[i];if(this.options_.kinds.indexOf(track.kind)>-1&&"showing"===track.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var track=t[i];if(["captions","descriptions","subtitles"].indexOf(track.kind)>-1&&"showing"===track.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(yn);Et.registerComponent("OffTextTrackMenuItem",bn);var wn=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return V(this,t),r.tracks=n.textTracks(),W(this,e.call(this,n,r))}return X(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn,label=void 0;this.label_&&(label=this.label_+" off"),e.push(new bn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:label})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<n.length;i++){var track=n[i];if(this.kinds_.indexOf(track.kind)>-1){var r=new t(this.player_,{track:track,selectable:!0,multiSelectable:!1});r.addClass("vjs-"+track.kind+"-menu-item"),e.push(r)}}return e},t}(gn);Et.registerComponent("TextTrackButton",wn);var Tn=function(e){function t(n,r){V(this,t);var track=r.track,o=r.cue,l=n.currentTime();r.selectable=!0,r.multiSelectable=!1,r.label=o.text,r.selected=o.startTime<=l&&l<o.endTime;var c=W(this,e.call(this,n,r));return c.track=track,c.cue=o,track.addEventListener("cuechange",ot(c,c.update)),c}return X(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.prototype.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(mn);Et.registerComponent("ChaptersTrackMenuItem",Tn);var _n=function(e){function t(n,r,o){return V(this,t),W(this,e.call(this,n,r,o))}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChapter
vendor: 5,841 bytes, line 2
2sTrack()),e.prototype.update.call(this)},t.prototype.setTrack=function(track){if(this.track_!==track){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=track,this.track_){this.track_.mode="hidden";var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.addEventListener("load",this.updateHandler_)}}},t.prototype.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],i=e.length-1;i>=0;i--){var track=e[i];if(track.kind===this.kind_)return track}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(_t(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=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],o=new Tn(this.player_,{track:this.track_,cue:r});e.push(o)}return e},t}(wn);_n.prototype.kind_="chapters",_n.prototype.controlText_="Chapters",Et.registerComponent("ChaptersButton",_n);var Cn=function(e){function t(n,r,o){V(this,t);var l=W(this,e.call(this,n,r,o)),c=n.textTracks(),d=ot(l,l.handleTracksChange);return c.addEventListener("change",d),l.on("dispose",function(){c.removeEventListener("change",d)}),l}return X(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var track=t[i];if(track.kind!==this.kind_&&"showing"===track.mode){n=!0;break}}n?this.disable():this.enable()},t.prototype.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(wn);Cn.prototype.kind_="descriptions",Cn.prototype.controlText_="Descriptions",Et.registerComponent("DescriptionsButton",Cn);var En=function(e){function t(n,r,o){return V(this,t),W(this,e.call(this,n,r,o))}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(wn);En.prototype.kind_="subtitles",En.prototype.controlText_="Subtitles",Et.registerComponent("SubtitlesButton",En);var xn=function(e){function t(n,r){V(this,t),r.track={player:n,kind:r.kind,label:r.kind+" settings",selectable:!1,default:!1,mode:"disabled"},r.selectable=!1,r.name="CaptionSettingsMenuItem";var o=W(this,e.call(this,n,r));return o.addClass("vjs-texttrack-settings"),o.controlText(", opens "+r.kind+" settings dialog"),o}return X(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(yn);Et.registerComponent("CaptionSettingsMenuItem",xn);var Sn=function(e){function t(n,r,o){return V(this,t),W(this,e.call(this,n,r,o))}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new xn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(wn);Sn.prototype.kind_="captions",Sn.prototype.controlText_="Captions",Et.registerComponent("CaptionsButton",Sn);var kn=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(t,n,r){var o='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(o+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),o+="</span>",e.prototype.createEl.call(this,t,J({innerHTML:o},n),r)},t}(yn);Et.registerComponent("SubsCapsMenuItem",kn);var Mn=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(this,t);var o=W(this,e.call(this,n,r));return o.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(o.player_.language_)>-1&&(o.label_="captions"),o.menuButton_.controlText(_t(o.label_)),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new xn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,kn)},t}(wn);Mn.prototype.kinds_=["captions","subtitles"],Mn.prototype.controlText_="Subtitles",Et.registerComponent("SubsCapsButton",Mn);var Pn=function(e){function t(n,r){V(this,t);var track=r.track,o=n.audioTracks();r.label=track.label||track.language||"Unknown",r.selected=track.enabled;var l=W(this,e.call(this,n,r));l.track=track,l.addClass("vjs-"+track.kind+"-menu-item");var c=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];l.handleTracksChange.apply(l,t)};return o.addEventListener("change",c),l.on("dispose",function(){o.removeEventListener("change",c)}),l}return X(t,e),t.prototype.createEl=function(t,n,r){var o='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(o+='\n <sp
2an aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),o+="</span>",e.prototype.createEl.call(this,t,J({innerHTML:o},n),r)},t.prototype.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var i=0;i<n.length;i++){var track=n[i];track.enabled=track===this.track}},t.prototype.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(mn);Et.registerComponent("AudioTrackMenuItem",Pn);var On=function(e){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return V(this,t),r.tracks=n.audioTracks(),W(this,e.call(this,n,r))}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createItems=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 track=t[i];e.push(new Pn(this.player_,{track:track,selectable:!0,multiSelectable:!1}))}return e},t}(gn);On.prototype.controlText_="Audio Track",Et.registerComponent("AudioTrackButton",On);var jn=function(e){function t(n,r){V(this,t);var label=r.rate,o=parseFloat(label,10);r.label=label,r.selected=1===o,r.selectable=!0,r.multiSelectable=!1;var l=W(this,e.call(this,n,r));return l.label=label,l.rate=o,l.on(n,"ratechange",l.update),l}return X(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.prototype.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(mn);jn.prototype.contentElType="button",Et.registerComponent("PlaybackRateMenuItem",jn);var An=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.updateVisibility(),o.updateLabel(),o.on(n,"loadstart",o.updateVisibility),o.on(n,"ratechange",o.updateLabel),o}return X(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=de("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},t.prototype.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},t.prototype.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},t.prototype.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},t.prototype.createMenu=function(){var menu=new fn(this.player()),e=this.playbackRates();if(e)for(var i=e.length-1;i>=0;i--)menu.addChild(new jn(this.player(),{rate:e[i]+"x"}));return menu},t.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.prototype.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},t.prototype.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},t.prototype.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},t.prototype.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.prototype.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(vn);An.prototype.controlText_="Playback Rate",Et.registerComponent("PlaybackRateMenuButton",An);var In=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Et);Et.registerComponent("Spacer",In);var Dn=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="Â ",t},t}(In);Et.registerComponent("CustomControlSpacer",Dn);var Ln=function(e){function t(){return V(this,t),W(this,e.apply(this,arguments))}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Et);Ln.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},Et.registerComponent("ControlBar",Ln);var zn=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r));return o.on(n,"error",o.open),o}return X(t,e),t.prototype.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},t.prototype.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(Ht);
vendor: 7,486 bytes, line 2
2zn.prototype.options_=Ct(Ht.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Et.registerComponent("ErrorDisplay",zn);var Nn="vjs-text-track-settings",Rn=["#000","Black"],Bn=["#00F","Blue"],$n=["#0FF","Cyan"],Fn=["#0F0","Green"],Hn=["#F0F","Magenta"],Vn=["#F00","Red"],Xn=["#FFF","White"],Wn=["#FF0","Yellow"],Yn=["1","Opaque"],qn=["0.5","Semi-Transparent"],Gn=["0","Transparent"],Un={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Rn,Xn,Vn,Fn,Bn,Wn,Hn,$n]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Yn,qn,Gn]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Xn,Rn,Vn,Fn,Bn,Wn,Hn,$n]},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:[Yn,qn]},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:[Gn,qn,Yn]}};function Kn(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}Un.windowColor.options=Un.backgroundColor.options;var Jn=function(e){function t(n,r){V(this,t),r.temporary=!1;var o=W(this,e.call(this,n,r));return o.updateDisplay=ot(o,o.updateDisplay),o.fill(),o.hasBeenOpened_=o.hasBeenFilled_=!0,o.endDialog=de("p",{className:"vjs-control-text",textContent:o.localize("End of dialog window.")}),o.el().appendChild(o.endDialog),o.setDefaults(),void 0===r.persistTextTrackSettings&&(o.options_.persistTextTrackSettings=o.options_.playerOptions.persistTextTrackSettings),o.on(o.$(".vjs-done-button"),"click",function(){o.saveSettings(),o.close()}),o.on(o.$(".vjs-default-button"),"click",function(){o.setDefaults(),o.updateDisplay()}),K(Un,function(e){o.on(o.$(e.selector),"change",o.updateDisplay)}),o.options_.persistTextTrackSettings&&o.restoreSettings(),o}return X(t,e),t.prototype.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},t.prototype.createElSelect_=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"label",o=Un[e],l=o.id.replace("%s",this.id_),c=[n,l].join(" ").trim();return["<"+r+' id="'+l+'" class="'+("label"===r?"vjs-label":"")+'">',this.localize(o.label),"</"+r+">",'<select aria-labelledby="'+c+'">'].concat(o.options.map(function(e){var n=l+"-"+e[1].replace(/\W+/g,"");return['<option id="'+n+'" value="'+e[0]+'" ','aria-labelledby="'+c+" "+n+'">',t.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.prototype.createElFgColor_=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("")},t.prototype.createElBgColor_=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("")},t.prototype.createElWinColor_=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("")},t.prototype.createElColors_=function(){return de("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.prototype.createElFont_=function(){return de("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("")})},t.prototype.createElControls_=function(){var e=this.localize("restore all settings to the default values");return de("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("")})},t.prototype.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.prototype.label=function(){return this.localize("Caption Settings Dialog")},t.prototype.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.prototype.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.prototype.getValues=function(){var e=this;return function(object,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return U(object).reduce(function(t,n){return e(t,object[n],n)},t)}(Un,function(t,n,r){var o,l,c=(o=e.$(n.selector),l=n.parser,Kn(o.options[o.options.selectedIndex].value,l));return void 0!==c&&(t[r]=c),t},{})},t.prototype.setValues=function(e){var t=this;K(Un,function(n,r){!function(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(Kn(e.options[i].value,n)===t){e.selectedIndex=i;break}}(t.$(n.selector),e[r],n.parser)})},t.prototype.setDefaults=function(){var e=this;K(Un,function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n})},t.prototype.restoreSettings=function(){var e=void 0;try{e=JSON.parse(l.localStorage.getItem(Nn))}catch(e){te.warn(e)}e&&this.setValues(e)},t.prototype.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?l.localStorage.setItem(Nn,JSON.stringify(e)):l.localStorage.removeItem(Nn)}catch(e){te.warn(e)}}},t.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.prototype.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(c,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;
2t?t.focus():n&&n.focus()},t}(Ht);Et.registerComponent("TextTrackSettings",Jn);var Zn=function(e){function t(n,r){V(this,t);var o=r.ResizeObserver||l.ResizeObserver;null===r.ResizeObserver&&(o=!1);var c=Ct({createEl:!o},r),d=W(this,e.call(this,n,c));return d.ResizeObserver=r.ResizeObserver||l.ResizeObserver,d.loadListener_=null,d.resizeObserver_=null,d.debouncedHandler_=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l,o=void 0,c=function(){var l=this,c=arguments,d=function(){o=null,d=null,n||e.apply(l,c)};!o&&n&&e.apply(l,c),r.clearTimeout(o),o=r.setTimeout(d,t)};return c.cancel=function(){r.clearTimeout(o),o=null},c}(function(){d.resizeHandler()},100,!1,d),o?(d.resizeObserver_=new d.ResizeObserver(d.debouncedHandler_),d.resizeObserver_.observe(n.el())):(d.loadListener_=function(){d.el_&&d.el_.contentWindow&&Ue(d.el_.contentWindow,"resize",d.debouncedHandler_)},d.one("load",d.loadListener_)),d}return X(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},t.prototype.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.prototype.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&Ke(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(Et);Et.registerComponent("ResizeManager",Zn);var Qn=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],o="";if(!n.length)return!1;for(var i=0;i<n.length;i++){var l=n[i].src;l&&-1===r.indexOf(l)&&r.push(l)}return!!r.length&&(1===r.length&&(o=r[0]),e.triggerSourceset(o),!0)},er={};L||(er=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=c.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=c.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",l.Element.prototype.appendChild.call(this,n),this.innerHTML}}));var ir=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},nr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return ir([e.el(),l.HTMLMediaElement.prototype,l.Element.prototype,er],"innerHTML")}(e),o=function(n){return function(){for(var r=arguments.length,o=Array(r),l=0;l<r;l++)o[l]=arguments[l];var c=n.apply(t,o);return Qn(e),c}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=o(n[e]))}),Object.defineProperty(t,"innerHTML",Ct(r,{set:o(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},rr={};L||(rr=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?ri(l.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return l.Element.prototype.setAttribute.call(this,"src",e),e}}));var ar=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return ir([e.el(),l.HTMLMediaElement.prototype,rr],"src")}(e),r=t.setAttribute,o=t.load;Object.defineProperty(t,"src",Ct(n,{set:function(r){var o=n.set.call(t,r);return e.triggerSourceset(t.src),o}})),t.setAttribute=function(n,o){var l=r.call(t,n,o);return/src/i.test(n)&&e.triggerSourceset(t.src),l},t.load=function(){var n=o.call(t);return Qn(e)||(e.triggerSourceset(""),nr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Qn(e)||nr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=o,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},sr=Y(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."],["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]),or=function(e){function t(n,r){V(this,t);var o=W(this,e.call(this,n,r)),source=n.source,l=!1;if(source&&(o.el_.currentSrc!==source.src||n.tag&&3===n.tag.initNetworkState_)?o.setSource(source):o.handleLateInit_(o.el_),n.enableSourceset&&o.setupSourcesetHandling_(),o.el_.hasChildNodes()){for(var c=o.el_.childNodes,h=c.length,f=[];h--;){var v=c[h];"track"===v.nodeName.toLowerCase()&&(o.featuresNativeTextTracks?(o.remoteTextTrackEls().addTrackElement_(v),o.remoteTextTracks().addTrack(v.track),o.textTracks().addTrack(v.track),l||o.el_.hasAttribute("crossorigin")||!si(v.src)||(l=!0)):f.push(v))}for(var i=0;i<f.length;i++)o.el_.removeChild(f[i])}return o.proxyNativeTracks_(),o.featuresNativeTextTracks&&l&&te.warn(d(sr)),o.restoreMetadataTracksInIOSNativePlayer_(),(B||C||O)&&!0===n.nativeControlsForTouch&&o.setControls(!0),o.proxyWebkitFullscreen_(),o.triggerReady(),o}return X(t,e),t.prototype.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
vendor: 11,274 bytes, line 2
2poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},t.prototype.setupSourcesetHandling_=function(){ar(this)},t.prototype.restoreMetadataTracksInIOSNativePlayer_=function(){var e=this.textTracks(),t=void 0,n=function(){t=[];for(var i=0;i<e.length;i++){var track=e[i];"metadata"===track.kind&&t.push({track:track,storedMode:track.mode})}};n(),e.addEventListener("change",n),this.on("dispose",function(){return e.removeEventListener("change",n)});var r=function n(){for(var i=0;i<t.length;i++){var r=t[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",function(){e.removeEventListener("change",n),e.removeEventListener("change",r),e.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",r)})},t.prototype.proxyNativeTracks_=function(){var e=this;fi.names.forEach(function(t){var n=fi[t],r=e.el()[n.getterName],o=e[n.getterName]();if(e["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var l={change:function(e){o.trigger({type:"change",target:o,currentTarget:o,srcElement:o})},addtrack:function(e){o.addTrack(e.track)},removetrack:function(e){o.removeTrack(e.track)}},c=function(){for(var e=[],i=0;i<o.length;i++){for(var t=!1,n=0;n<r.length;n++)if(r[n]===o[i]){t=!0;break}t||e.push(o[i])}for(;e.length;)o.removeTrack(e.shift())};Object.keys(l).forEach(function(t){var n=l[t];r.addEventListener(t,n),e.on("dispose",function(e){return r.removeEventListener(t,n)})}),e.on("loadstart",c),e.on("dispose",function(t){return e.off("loadstart",c)})}})},t.prototype.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=c.createElement("video");var r=Ct({},this.options_.tag&&be(this.options_.tag));B&&!0===this.options_.nativeControlsForTouch||delete r.controls,ye(e,J(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Te(e,"preload",this.options_.preload);for(var o=["loop","muted","playsinline","autoplay"],i=0;i<o.length;i++){var l=o[i],d=this.options_[l];void 0!==d&&(d?Te(e,l,l):_e(e,l),e[l]=d)}return e},t.prototype.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var o=["loadstart"];o.push("loadedmetadata"),e.readyState>=2&&o.push("loadeddata"),e.readyState>=3&&o.push("canplay"),e.readyState>=4&&o.push("canplaythrough"),this.ready(function(){o.forEach(function(e){this.trigger(e)},this)})}},t.prototype.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(e){te(e,"Video is not ready. (Video.js)")}},t.prototype.duration=function(){var e=this;if(this.el_.duration===1/0&&k&&I&&0===this.el_.currentTime){return this.on("timeupdate",function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))}),NaN}return this.el_.duration||NaN},t.prototype.width=function(){return this.el_.offsetWidth},t.prototype.height=function(){return this.el_.offsetHeight},t.prototype.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},t.prototype.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=l.navigator&&l.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},t.prototype.enterFullScreen=function(){var video=this.el_;video.paused&&video.networkState<=video.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){video.pause(),video.webkitEnterFullScreen()},0)):video.webkitEnterFullScreen()},t.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},t.prototype.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},t.prototype.reset=function(){t.resetMediaElement(this.el_)},t.prototype.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},t.prototype.setControls=function(e){this.el_.controls=!!e},t.prototype.addTextTrack=function(t,label,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,label,n):e.prototype.addTextTrack.call(this,t,label,n)},t.prototype.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=c.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},t.prototype.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},t.prototype.removeRemoteTextTrack=function(track){if(e.prototype.removeRemoteTextTrack.call(this,track),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)track!==t[i]&&track!==t[i].track||this.el().removeChild(t[i])},t.prototype.getVideoPlaybackQuality=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),l.performance&&"function"==typeof l.performance.now?e.creationTime=l.performance.now():l.performance&&l.performance.timing&&"number"==typeof l.performance.timing.navigationStart&&(e.creationTime=l.Date.now()-l.performance.timing.navigationStart),e},t}(mi);if(oe()){or.TEST_VID=c.createElement("video");var track=c.createElement("track");track.kind="captions",track.srclang="en",track.label="English",or.TEST_VID.appendChild(track)}or.isSupported=function(){try{or.TEST_VID.volume=.5}catch(e){return!1}return!(!or.TEST_VID||!or.TEST_VID.canPlayType)},or.canPlayType=function(e){return or.TEST_VID.canPlayType(e)},or.canPlaySource=function(e,t){return or.canPlayType(e.type)},or.canControlVolume=function(){try{var e=or.TEST_VID.volume;return or.TEST_VID.volume=e/2+.1,e!==or.TEST_VID.volume}catch(e){return!1}},or.canMuteVolume=function(){try{var e=or.TEST_VID.muted;return or.TEST_VID.muted=!e,or.TEST_VID.muted?Te(or.TEST_VID,"muted","muted"):_e(or.TEST_VID,"muted"),e!==or.TEST_VID.muted}catch(e){return!1}},or.canControlPlaybackRate=function(){if(k&&I&&D<58)return!1;try{var e=or.TEST_VID.playbackRate;return or.TEST_VID.playbackRate=e/2+.1,e!==or.TEST_VID.playbackRate}catch(e){return!1}},or.canOverrideAttributes=function(){if(L)return!1;try{var e=function(){};Object.defineProperty(c.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(c.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(c.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(c.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},or.supportsNativeTextTracks=function(){return R||x&&I},or.supportsNativeVideoTracks=function(){return!(!or.TEST_VID||!or.TEST_VID.videoTracks)},or.supportsNativeAudioTracks=function(){return!(!or.TEST_VID||!or.TEST_VID.audioTracks)},or.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],or.prototype.featuresVolumeControl=or.canControlVolume(),or.prototype.featuresMuteControl=or.canMuteVolume(),or.prototype.featuresPlaybackRate=or.canControlPlaybackRate(),or.prototype.featuresSourceset=or.canOverrideAttributes(),or.prototype.movingMediaElementInDOM=!x,or.prototype.featuresFullscreenResize=!0,or.prototype.featuresProgressEvents=!0,or.prototype.featuresTimeupdateEvents=!0,or.prototype.featuresNativeTextTracks=or.supportsNativeTextTracks(),or.prototype.featuresNativeVideoTracks=or.supportsNativeVideoTracks(),or.prototype.featuresNativeAudioTracks=or.supportsNativeAudioTracks();var lr=or.TEST_VID&&or.TEST_VID.constructor.prototype.canPlayType,cr=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,ur=/^video\/mp4/i;or.patchCanPlayType=function(){M>=4&&!j&&!I?or.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&cr.test(e)?"maybe":lr.call(this,e)}:P&&(or.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&ur.test(e)?"maybe":lr.call(this,e)})},or.unpatchCanPlayType=function(){var e=or.TEST_VID.constructor.prototype.canPlayType;return or.TEST_VID.constructor.prototype.canPlayType=lr,e},or.patchCanPlayType(),or.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){}}()}},or.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){or.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){or.prototype["set"+_t(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","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){or.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){or.prototype["set"+_t(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){or.prototype[e]=function(){return this.el_[e]()}}),mi.withSourceHandlers(or),or.nativeSourceHandler={},or.nativeSourceHandler.canPlayType=function(e){try{return or.TEST_VID.canPlayType(e)}catch(e){return""}},or.nativeSourceHandler.canHandleSource=function(source,e){if(source.type)return or.nativeSourceHandler.canPlayType(source.type);if(source.src){var t=ai(source.src);return or.nativeSourceHandler.canPlayType("video/"+t)}return""},or.nativeSourceHandler.handleSource=function(source,e,t){e.setSrc(source.src)},or.nativeSourceHandler.dispose=function(){},or.registerSourceHandler(or.nativeSourceHandler),mi.registerTech("Html5",or);var dr=Y(["\n Using the tech directly can be dangerous. I hope you know
2what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "],["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]),pr=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],fr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},vr=["tiny","xsmall","small","medium","large","xlarge","huge"],gr={};vr.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;gr[e]="vjs-layout-"+t});var mr={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},yr=function(e){function t(n,r,o){if(V(this,t),n.id=n.id||r.id||"vjs_video_"+Re(),(r=J(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var l=n.closest("[lang]");l&&l.getAttribute&&(r.language=l.getAttribute("lang"))}else for(var element=n;element&&1===element.nodeType;){if(be(element).hasOwnProperty("lang")){r.language=element.getAttribute("lang");break}element=element.parentNode}var c=W(this,e.call(this,null,r,o));if(c.log=ie(c.id_),c.isPosterFromTech_=!1,c.queuedCallbacks_=[],c.isReady_=!1,c.hasStarted_=!1,c.userActive_=!1,!c.options_||!c.options_.techOrder||!c.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(c.tag=n,c.tagAttributes=n&&be(n),c.language(c.options_.language),r.languages){var d={};Object.getOwnPropertyNames(r.languages).forEach(function(e){d[e.toLowerCase()]=r.languages[e]}),c.languages_=d}else c.languages_=t.prototype.options_.languages;c.cache_={},c.poster_=r.poster||"",c.controls_=!!r.controls,c.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?c.options_.autoplay=!0:c.autoplay(c.options_.autoplay),c.scrubbing_=!1,c.el_=c.createEl(),c.cache_.lastPlaybackRate=c.defaultPlaybackRate(),bt(c,{eventBusKey:"el_"});var h=Ct(c.options_);if(r.plugins){var f=r.plugins;Object.keys(f).forEach(function(e){if("function"!=typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](f[e])},c)}c.options_.playerOptions=h,c.middleware_=[],c.initChildren(),c.isAudio("audio"===n.nodeName.toLowerCase()),c.controls()?c.addClass("vjs-controls-enabled"):c.addClass("vjs-controls-disabled"),c.el_.setAttribute("role","region"),c.isAudio()?c.el_.setAttribute("aria-label",c.localize("Audio Player")):c.el_.setAttribute("aria-label",c.localize("Video Player")),c.isAudio()&&c.addClass("vjs-audio"),c.flexNotSupported_()&&c.addClass("vjs-no-flex"),x||c.addClass("vjs-workinghover"),t.players[c.id_]=c;var v=m.split(".")[0];return c.addClass("vjs-v"+v),c.userActive(!0),c.reportUserActivity(),c.one("play",c.listenForUserActivity_),c.on("fullscreenchange",c.handleFullscreenChange_),c.on("stageclick",c.handleStageClick_),c.breakpoints(c.options_.breakpoints),c.responsive(c.options_.responsive),c.changingSrc_=!1,c.playWaitingForReady_=!1,c.playOnLoadstart_=null,c}return X(t,e),t.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),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),bi[this.id()]=null,e.prototype.dispose.call(this)},t.prototype.createEl=function(){var t=this.tag,n=void 0,r=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?n=this.el_=t.parentNode:o||(n=this.el_=e.prototype.createEl.call(this,"div"));var d=be(t);if(o){for(n=this.el_=t,t=this.tag=c.createElement("video");n.children.length;)t.appendChild(n.firstChild);fe(n,"video-js")||ve(n,"video-js"),n.appendChild(t),r=this.playerElIngest_=n,["autoplay","controls","crossOrigin","defaultMuted","defaultPlaybackRate","loop","muted","playbackRate","src","volume"].forEach(function(e){void 0!==n[e]&&(t[e]=n[e])})}if(t.setAttribute("tabindex","-1"),d.tabindex="-1",z&&(t.setAttribute("role","application"),d.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in d&&delete d.width,"height"in d&&delete d.height,Object.getOwnPropertyNames(d).forEac
vendor: 4,583 bytes, line 2
2h(function(e){"class"===e?(n.className+=" "+d[e],o&&(t.className+=" "+d[e])):(n.setAttribute(e,d[e]),o&&t.setAttribute(e,d[e]))}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused"),!0!==l.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=at("vjs-styles-dimensions");var h=De(".vjs-styles-defaults"),head=De("head");head.insertBefore(this.styleEl_,h?h.nextSibling:head.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);for(var f=t.getElementsByTagName("a"),i=0;i<f.length;i++){var v=f.item(i);ve(v,"vjs-hidden"),v.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!r&&t.parentNode.insertBefore(n,t),pe(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_=n,n},t.prototype.width=function(e){return this.dimension("width",e)},t.prototype.height=function(e){return this.dimension("height",e)},t.prototype.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?te.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},t.prototype.fluid=function(e){if(void 0===e)return!!this.fluid_;this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),this.updateStyleEl_()},t.prototype.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},t.prototype.aspectRatio=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_()},t.prototype.updateStyleEl_=function(){if(!0!==l.VIDEOJS_NO_DYNAMIC_STYLE){var e=void 0,t=void 0,n=void 0,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),st(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var c="number"==typeof this.width_?this.width_:this.options_.width,d="number"==typeof this.height_?this.height_:this.options_.height,h=this.tech_&&this.tech_.el();h&&(c>=0&&(h.width=c),d>=0&&(h.height=d))}},t.prototype.loadTech_=function(e,source){var t=this;this.tech_&&this.unloadTech_();var n=_t(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(mi.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var o={source:source,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,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};gi.names.forEach(function(e){var n=gi[e];o[n.getterName]=t[n.privateName]}),J(o,this.options_[n]),J(o,this.options_[r]),J(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),source&&source.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var l=mi.getTech(e);if(!l)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new l(o),this.tech_.ready(ot(this,this.handleTechReady_),!0),$t(this.textTracksJson_||[],this.tech_),pr.forEach(function(e){t.on(t.tech_,e,t["handleTech"+_t(e)+"_"])}),Object.keys(fr).forEach(function(e){t.on(t.tech_,e,function(n){0===t.tech_.playbackRate()&&t.tech_.seeking()?t.queuedCallbacks_.push({callback:t["handleTech"+fr[e]+"_"].bind(t),event:n}):t["handleTech"+fr[e]+"_"](n)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"
2waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||pe(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},t.prototype.unloadTech_=function(){var e=this;gi.names.forEach(function(t){var n=gi[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=Bt(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},t.prototype.tech=function(e){return void 0===e&&te.warn(d(dr)),this.tech_},t.prototype.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},t.prototype.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_)},t.prototype.handleTechReady_=function(){if(this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_(),(this.src()||this.currentSrc())&&this.tag&&this.options_.autoplay&&this.paused())try{delete this.tag.poster}catch(e){te("deleting tag.poster throws in some browsers",e)}},t.prototype.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},t.prototype.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n.catch)return n.catch(function(n){t.muted(e)})},r=void 0;if("any"===e?(r=this.play())&&r.then&&r.catch&&r.catch(function(){return n()}):r="muted"===e?n():this.play(),r&&r.then&&r.catch)return r.then(function(){t.trigger({type:"autoplay-success",autoplay:e})}).catch(function(n){t.trigger({type:"autoplay-failure",autoplay:e})})}},t.prototype.updateSourceCaches_=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(s){return s.src===t});if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var s=r[i];if(s.type&&s.src&&s.src===t)return s.type}return Pi(t)}(this,t)),this.cache_.source=Ct({},e,{src:t,type:n});for(var r=this.cache_.sources.filter(function(s){return s.src&&s.src===t}),o=[],l=this.$$("source"),c=[],i=0;i<l.length;i++){var d=be(l[i]);o.push(d),d.src&&d.src===t&&c.push(d.src)}c.length&&!r.length?this.cache_.sources=o:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},t.prototype.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,o=e.src;if(r&&!/^blob:/.test(r)&&/^blob:/.test(o)&&(!this.lastSource_||this.lastSource_.tech!==o&&this.lastSource_.player!==r)&&(n=function(){}),n(o),!e.src){this.tech_.one(["sourceset","loadstart"],function e(n){if("sourceset"!==n.type){var r=t.techGet("currentSrc");t.lastSource_.tech=r,t.updateSourceCaches_(r)}t.tech_.off(["sourceset","loadstart"],e)})}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},t.prototype.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},t.prototype.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},t.prototype.handleTechRateChange_=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")},t.prototype.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},t.prototype.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},t.prototype.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},t.prototype.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},t.prototype.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},t.prototype.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},t.prototype.handleTechFirstPlay_=function(){this.options_.starttime&&(te.warn("Passing the `starttime` option to the player will be deprecated
2in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},t.prototype.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},t.prototype.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},t.prototype.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},t.prototype.handleTechClick_=function(e){Ie(e)&&this.controls_&&(this.paused()?Nt(this.play()):this.pause())},t.prototype.handleTechTap_=function(){this.userActive(!this.userActive())},t.prototype.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},t.prototype.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},t.prototype.handleTechTouchEnd_=function(e){e.preventDefault()},t.prototype.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},t.prototype.handleStageClick_=function(){this.reportUserActivity()},t.prototype.handleTechFullscreenChange_=function(e,data){data&&this.isFullscreen(data.isFullscreen),this.trigger("fullscreenchange")},t.prototype.handleTechError_=function(){var e=this.tech_.error();this.error(e)},t.prototype.handleTechTextData_=function(){var data=null;arguments.length>1&&(data=arguments[1]),this.trigger("textdata",data)},t.prototype.getCache=function(){return this.cache_},t.prototype.techCall_=function(e,t){this.ready(function(){if(e in Ei)return function(e,t,n,r){return t[n](e.reduce(Si(n),r))}(this.middleware_,this.tech_,e,t);if(e in xi)return _i(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw te(e),e}},!0)},t.prototype.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Ci)return function(e,t,n){return e.reduceRight(Si(n),t[n]())}(this.middleware_,this.tech_,e);if(e in xi)return _i(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw te("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw te("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw te(t),t}}},t.prototype.play=function(){var e=this,t=this.options_.Promise||l.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},t.prototype.play_=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nt;if(this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void t(this.techGet_("play"));this.playOnLoadstart_=function(){e.playOnLoadstart_=null,t(e.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){e.playWaitingForReady_=!1,t(e.play())})}},t.prototype.pause=function(){this.techCall_("pause")},t.prototype.paused=function(){return!1!==this.techGet_("paused")},t.prototype.played=function(){return this.techGet_("played")||kt(0,0)},t.prototype.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},t.prototype.currentTime=function(e){return void 0!==e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},t.prototype.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))},t.prototype.remainingTime=function(){return this.duration()-this.currentTime()},t.prototype.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},t.prototype.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=kt(0,0)),e},t.prototype.bufferedPercent=function(){return Mt(this.buffered(),this.duration())},t.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},t.prototype.volume=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)},t.prototype.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},t.prototype.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},t.prototype.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},t.prototype.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},t.prototype.isFullscreen=function(e){if(void 0===e)return!!this.isFullscreen_;this.isFullscreen_=!!e},t.prototype.requestFullscreen=function(){var e=Pt;this.isFullscreen(!0),e.requestFullscreen?(Ue(c,e.fullscreenchange,ot(this,function t(n){this.isFullscreen(c[e.fullscreenElement]),!1===this.isFullscreen()&&Ke(c,e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},t.prototype.exitFullscreen=function(){var e=Pt;this.isFullscreen(!1),e.requestFullscreen?c[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},t.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=c.documentElement.style.overflow,Ue(c,"keydown",ot(this,this.fullWindowOnEscKey)),c.documentElement.style.overflow="hidden",ve(c.body,"vjs-full-window"),this.trigger("enterFullWindow")}
vendor: 4,463 bytes, line 2
2,t.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},t.prototype.exitFullWindow=function(){this.isFullWindow=!1,Ke(c,"keydown",this.fullWindowOnEscKey),c.documentElement.style.overflow=this.docOrigOverflow,ge(c.body,"vjs-full-window"),this.trigger("exitFullWindow")},t.prototype.canPlayType=function(e){for(var t=void 0,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],o=mi.getTech(r);if(o||(o=Et.getComponent(r)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else te.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},t.prototype.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map(function(e){return[e,mi.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(te.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),o=function(e,t,n){var r=void 0;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},l=function(e,source){var t=e[0];if(e[1].canPlaySource(source,n.options_[t.toLowerCase()]))return{source:source,tech:t}};return(this.options_.sourceOrder?o(e,r,(t=l,function(a,b){return t(b,a)})):o(r,e,l))||!1},t.prototype.src=function(source){var e=this;if(void 0===source)return this.cache_.src||"";var t=Oi(source);t.length?(this.changingSrc_=!0,this.cache_.sources=t,this.updateSourceCaches_(t[0]),Ti(this,t[0],function(n,r){var o,l;if(e.middleware_=r,e.cache_.sources=t,e.updateSourceCaches_(n),e.src_(n))return t.length>1?e.src(t.slice(1)):(e.changingSrc_=!1,e.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void e.triggerReady());o=r,l=e.tech_,o.forEach(function(e){return e.setTech&&e.setTech(l)})})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},t.prototype.src_=function(source){var e,t,n=this,r=this.selectSource([source]);return!r||(e=r.tech,t=this.techName_,_t(e)!==_t(t)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1}),!1):(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",source):this.techCall_("src",source.src),this.changingSrc_=!1},!0),!1))},t.prototype.load=function(){this.techCall_("load")},t.prototype.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},t.prototype.currentSources=function(){var source=this.currentSource(),e=[];return 0!==Object.keys(source).length&&e.push(source),this.cache_.sources||e},t.prototype.currentSource=function(){return this.cache_.source||{}},t.prototype.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},t.prototype.currentType=function(){return this.currentSource()&&this.currentSource().type||""},t.prototype.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},t.prototype.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t=void 0;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},t.prototype.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},t.prototype.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},t.prototype.poster=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"))},t.prototype.handleTechPosterChange_=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"))}},t.prototype.controls=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.addTechControl
2sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},t.prototype.usingNativeControls=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")))},t.prototype.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new Dt(e),this.addClass("vjs-error"),te.error("(CODE:"+this.error_.code+" "+Dt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},t.prototype.reportUserActivity=function(e){this.userActivity_=!0},t.prototype.userActive=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")}},t.prototype.listenForUserActivity_=function(){var e=void 0,t=void 0,n=void 0,r=ot(this,this.reportUserActivity);this.on("mousedown",function(){r(),this.clearInterval(e),e=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())}),this.on("mouseup",function(t){r(),this.clearInterval(e)}),this.on("keydown",r),this.on("keyup",r);var o=void 0;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},t.prototype.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},t.prototype.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},t.prototype.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},t.prototype.addTextTrack=function(e,label,t){if(this.tech_)return this.tech_.addTextTrack(e,label,t)},t.prototype.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},t.prototype.removeRemoteTextTrack=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).track,track=void 0===e?arguments[0]:e;if(this.tech_)return this.tech_.removeRemoteTextTrack(track)},t.prototype.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},t.prototype.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},t.prototype.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},t.prototype.language=function(code){if(void 0===code)return this.language_;this.language_=String(code).toLowerCase()},t.prototype.languages=function(){return Ct(t.prototype.options_.languages,this.languages_)},t.prototype.toJSON=function(){var e=Ct(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var track=t[i];(track=Ct(track)).player=void 0,e.tracks[i]=track}return e},t.prototype.createModal=function(content,e){var t=this;(e=e||{}).content=content||"";var n=new Ht(this,e);return this.addChild(n),n.on("dispose",function(){t.removeChild(n)}),n.open(),n},t.prototype.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<vr.length;i++){var n=vr[i];if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(gr[e]),this.addClass(gr[n]),this.breakpoint_=n;break}}},t.prototype.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},t.prototype.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=J({},mr,e),this.updateCurrentBreakpoint_()),J(this.breakpoints_)},t.prototype.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},t.prototype.currentBreakpoint=function(){return this.breakpoint_},t.prototype.currentBreakpointClass=function(){return gr[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=be(e),r=n["data-setup"];if(fe(e,"vjs-fill")&&(n.fill=!0),fe(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var o=h(r||"{}"),l=o[0],data=o[1];l&&te.error(l),J(n,data)}if(J(t,n),e.hasChildNodes())for(var c=e.childNodes,i=0,d=c.length;i<d;i++){var f=c[i],v=f.nodeName.toLowerCase();"source"===v?t.sources.push(be(f)):"track"===v&&t.tracks.push(be(f))}return t},t.prototype.flexNotSupported_=function(){var e=c.createElement("i");
vendor: 4,299 bytes, line 2
2return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(Et);gi.names.forEach(function(e){var t=gi[e];yr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),yr.players={};var wr=l.navigator;yr.prototype.options_={techOrder:mi.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings"],language:wr&&(wr.languages&&wr.languages[0]||wr.userLanguage||wr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},L||yr.prototype.options_.children.push("resizeManager"),["ended","seeking","seekable","networkState","readyState"].forEach(function(e){yr.prototype[e]=function(){return this.techGet_(e)}}),pr.forEach(function(e){yr.prototype["handleTech"+_t(e)+"_"]=function(){return this.trigger(e)}}),Et.registerComponent("Player",yr);var Tr="plugin",_r="activePlugins_",Cr={},Er=function(e){return Cr.hasOwnProperty(e)},xr=function(e){return Er(e)?Cr[e]:void 0},Sr=function(e,t){e[_r]=e[_r]||{},e[_r][t]=!0},kr=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},Mr=function(e,t){return t.prototype.name=e,function(){kr(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var l=new(Function.prototype.bind.apply(t,[null].concat([this].concat(r))));return this[e]=function(){return l},kr(this,l.getEventHash()),l}},Pr=function(){function e(t){if(V(this,e),this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,bt(this),delete this.trigger,Tt(this,this.constructor.defaultState),Sr(t,this.name),this.dispose=ot(this,this.dispose),t.on("dispose",this.dispose)}return e.prototype.version=function(){return this.constructor.VERSION},e.prototype.getEventHash=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},e.prototype.trigger=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Je(this.eventBusEl_,e,this.getEventHash(t))},e.prototype.handleStateChanged=function(e){},e.prototype.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[_r][e]=!1,this.player=this.state=null,t[e]=Mr(e,Cr[e])},e.isBasic=function(t){var p="string"==typeof t?xr(t):t;return"function"==typeof p&&!e.prototype.isPrototypeOf(p.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+(void 0===t?"undefined":H(t))+".");if(Er(t))te.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(yr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+(void 0===n?"undefined":H(n))+".");return Cr[t]=n,t!==Tr&&(e.isBasic(n)?yr.prototype[t]=function(e,t){var n=function(){kr(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Sr(this,e),kr(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(t,n):yr.prototype[t]=Mr(t,n)),n},e.deregisterPlugin=function(e){if(e===Tr)throw new Error("Cannot de-register base plugin.");Er(e)&&(delete Cr[e],delete yr.prototype[e])},e.getPlugins=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(Cr),t=void 0;return e.forEach(function(e){var n=xr(e);n&&((t=t||{})[e]=n)}),t},e.getPluginVersion=function(e){var t=xr(e);return t&&t.VERSION||""},e}();Pr.getPlugin=xr,Pr.BASE_PLUGIN_NAME=Tr,Pr.registerPlugin(Tr,Pr),yr.prototype.usingPlugin=function(e){return!!this[_r]&&!0===this[_r][e]},yr.prototype.hasPlugin=function(e){return!!Er(e)};"undefined"==typeof HTMLVideoElement&&oe()&&(c.createElement("video"),c.createElement("audio"),c.createElement("track"),
vendor: 11,003 bytes, line 2
2c.createElement("video-js"));var Or=function(e){return 0===e.indexOf("#")?e.slice(1):e};function jr(e,t,n){var r=jr.getPlayer(e);if(r)return t&&te.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var o="string"==typeof e?De("#"+Or(e)):e;if(!le(o))throw new TypeError("The element or ID supplied is not valid. (videojs)");c.body.contains(o)||te.warn("The element supplied is not included in the DOM"),t=t||{},jr.hooks("beforesetup").forEach(function(e){var n=e(o,Ct(t));Z(n)&&!Array.isArray(n)?t=Ct(t,n):te.error("please return an object in beforesetup hooks")});var l=Et.getComponent("Player");return r=new l(o,t,n),jr.hooks("setup").forEach(function(e){return e(r)}),r}if(jr.hooks_={},jr.hooks=function(e,t){return jr.hooks_[e]=jr.hooks_[e]||[],t&&(jr.hooks_[e]=jr.hooks_[e].concat(t)),jr.hooks_[e]},jr.hook=function(e,t){jr.hooks(e,t)},jr.hookOnce=function(e,t){jr.hooks(e,[].concat(t).map(function(t){return function n(){return jr.removeHook(e,n),t.apply(void 0,arguments)}}))},jr.removeHook=function(e,t){var n=jr.hooks(e).indexOf(t);return!(n<=-1)&&(jr.hooks_[e]=jr.hooks_[e].slice(),jr.hooks_[e].splice(n,1),!0)},!0!==l.VIDEOJS_NO_DYNAMIC_STYLE&&oe()){var style=De(".vjs-styles-defaults");if(!style){style=at("vjs-styles-defaults");var head=De("head");head&&head.insertBefore(style,head.firstChild),st(style,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}nt(1,jr),jr.VERSION=m,jr.options=yr.prototype.options_,jr.getPlayers=function(){return yr.players},jr.getPlayer=function(e){var t=yr.players,n=void 0;if("string"==typeof e){var r=Or(e),o=t[r];if(o)return o;n=De("#"+r)}else n=e;if(le(n)){var l=n,c=l.player,d=l.playerId;if(c||t[d])return c||t[d]}},jr.getAllPlayers=function(){return Object.keys(yr.players).map(function(e){return yr.players[e]}).filter(Boolean)},jr.players=yr.players,jr.getComponent=Et.getComponent,jr.registerComponent=function(e,t){mi.isTech(t)&&te.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Et.registerComponent.call(Et,e,t)},jr.getTech=mi.getTech,jr.registerTech=mi.registerTech,jr.use=function(e,t){yi[e]=yi[e]||[],yi[e].push(t)},!L&&Object.defineProperty?(Object.defineProperty(jr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(jr.middleware,"TERMINATOR",{value:wi,writeable:!1,enumerable:!0})):jr.middleware={TERMINATOR:wi},jr.browser=F,jr.TOUCH_ENABLED=B,jr.extend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(){e.apply(this,arguments)},r={};for(var o in"object"===(void 0===t?"undefined":H(t))?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":H(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.super_=t)}(n,e),r)r.hasOwnProperty(o)&&(n.prototype[o]=r[o]);return n},jr.mergeOptions=Ct,jr.bind=ot,jr.registerPlugin=Pr.registerPlugin,jr.deregisterPlugin=Pr.deregisterPlugin,jr.plugin=function(e,t){return te.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Pr.registerPlugin(e,t)},jr.getPlugins=Pr.getPlugins,jr.getPlugin=Pr.getPlugin,jr.getPluginVersion=Pr.getPluginVersion,jr.addLanguage=function(code,data){var e;return code=(""+code).toLowerCase(),jr.options.languages=Ct(jr.options.languages,((e={})[code]=data,e)),jr.options.languages[code]},jr.log=te,jr.createLogger=ie,jr.createTimeRange=jr.createTimeRanges=kt,jr.formatTime=qi,jr.setFormatTime=function(e){Yi=e},jr.resetFormatTime=function(){Yi=Wi},jr.parseUrl=ni,jr.isCrossOrigin=si,jr.EventTarget=ct,jr.on=Ue,jr.one=Ze,jr.off=Ke,jr.trigger=Je,jr.xhr=f,jr.TextTrack=ui,jr.AudioTrack=di,jr.VideoTrack=hi,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){jr[e]=function(){return te.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),ze[e].apply(null,arguments)}}),jr.computedStyle=ne,jr.dom=ze,jr.url=oi,e.exports=jr},340:function(e,t,n){(function(t){var r,o=void 0!==t?t:"undefined"!=typeof window?window:{},l=n(341);"undefined"!=typeof document?r=document:(r=o["__GLOBAL_DOCUMENT_CACHE@4"])||(r=o["__GLOBAL_DOCUMENT_CACHE@4"]=l),e.exports=r}).call(this,n(28))},342:function(e,t){function n(s){return s.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var s="",i=0;i<arguments.length;i++)s+=n(e[i])+(arguments[i+1]||"");return s}},343:function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},344:function(e,t,n){"use strict";var r=n(147),o=n(345),l=n(346),c=n(347);function d(e,t,n){var r=e;return o(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=c(t,{uri:e}),r.callback=n,r}function h(e,t,n){return f(t=d(e,t,n))}function f(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,body){t||(t=!0,e.callback(n,r,body))};function r(){var body=void 0;if(body=v.response?v.response:v.responseText||function(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML;return null}(v),C)try{body=JSON.parse(body)}catch(e){}return body}function o(e){return clearTimeout(m),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,E)}function c(){if(!f){var t;clearTimeout(m),t=e.useXDR&&void 0===v.status?200:1223===v.status?204:v.status;var o=E,c=null;return 0!==t?(o={body:r(),statusCode:t,method:w,headers:{},url:y,rawRequest:v},v.getAllResponseHeaders&&(o.headers=l(v.getAllResponseHeaders()))):c=new Error("Internal XMLHttpRequest Error"),n(c,o,o.body)}}var d,f,v=e.xhr||null;v||(v=e.cors||e.useXDR?new h.XDomainRequest:new h.XMLHttpRequest);var m,y=v.url=e.uri||e.url,w=v.method=e.method||"GET",body=e.body||e.data,T=v.headers=e.headers||{},_=!!e.sync,C=!1,E={body:void 0,headers:{},statusCode:0,method:w,url:y,rawRequest:v};if("json"in e&&!1!==e.json&&(C=!0,T.accept||T.Accept||(T.Accept="application/json"),"GET"!==w&&"HEAD"!==w&&(T["content-type"]||T["Content-Type"]||(T["Content-Type"]="application/json"),body=JSON.stringify(!0===e.json?body:e.json))),v.onreadystatechange=function(){4===v.readyState&&setTimeout(c,0)},v.onload=c,v.onerror=o,v.onprogress=function(){},v.onabort=function(){f=!0},v.ontimeout=o,v.open(w,y,!_,e.username,e.password),_||(v.withCredentials=!!e.withCredentials),!_&&e.timeout>0&&(m=setTimeout(function(){if(!f){f=!0,v.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",o(e)}},e.timeout)),v.setRequestHeader)for(d in T)T.hasOwnProperty(d)&&v.setRequestHeader(d,T[d]);else if(e.headers&&!function(e){for(var i in e)if(e.hasOwnProperty(i))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(v.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(v),v.send(body||null),v}e.exports=h,h.XMLHttpRequest=r.XMLHttpRequest||function(){},h.XDomainRequest="withCredentials"in new h.XMLHttpRequest?h.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){h["delete"===e?"del":e]=function(t,n,r){return(n=d(t,n,r)).method=e.toUpperCase(),f(n)}})},345:function(e,t){e.exports=function(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)};var n=Object.prototype.toString},346:function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")},r=function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e){if(!e)return{};for(var t=Object.create(null),o=n(e).split("\n"),i=0;i<o.length;i++){var l=o[i],c=l.indexOf(":"),d=n(l.slice(0,c)).toLowerCase(),h=n(l.slice(c+1));void 0===t[d]?t[d]=h:r(t[d])?t[d].push(h):t[d]=[t[d],h]}return t}},347:function(e,t){e.exports=function(){for(var e={},i=0;i<arguments.length;i++){var source=arguments[i];for(var t in source)n.call(source,t)&&(e[t]=source[t])}return e};var n=Object.prototype.hasOwnProperty},348:function(e,t,n){var r=n(147),o=e.exports={WebVTT:n(349),VTTCue:n(350),VTTRegion:n(351)};r.vttjs=o,r.WebVTT=o.WebVTT;var l=o.VTTCue,c=o.VTTRegion,d=r.VTTCue,h=r.VTTRegion;o.shim=function(){r.VTTCue=l,r.VTTRegion=c},o.restore=function(){r.VTTCue=d,r.VTTRegion=h},r.VTTCue||o.shim()},349:function(e,t){var n=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function r(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(input){function e(e,t,s,n){return 3600*(0|e)+60*(0|t)+(0|s)+(0|n)/1e3}var t=input.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return t?t[3]?e(t[1],t[2],t[3].replace(":",""),t[4]):t[1]>59?e(t[1],t[2],0,t[4]):e(0,t[1],t[2],t[4]):null}function l(){this.values=n(null)}function c(input,e,t,n){var r=n?input.split(n):[input];for(var i in r)if("string"==typeof r[i]){var o=r[i].split(t);if(2===o.length)e(o[0],o[1])}}function d(input,e,t){var n=input;function d(){var e=o(input);if(null===e)throw new r(r.Errors.BadTimeStamp,"Malformed timestamp: "+n);return input=input.replace(/^[^\sa-zA-Z-]+/,""),e}function h(){input=input.replace(/^\s+/,"")}if(h(),e.startTime=d(),h(),"--\x3e"!==input.substr(0,3))throw new r(r.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);input=input.substr(3),h(),e.endTime=d(),h(),function(input,e){var n=new l;c(input,function(e,r){switch(e){case"region":for(var i=t.length-1;i>=0;i--)if(t[i].id===r){n.set(e,t[i].region);break}break;case"vertical":n.alt(e,r,["rl","lr"]);break;case"line":var o=r.split(","),l=o[0];n.integer(e,l),n.percent(e,l)&&n.set("snapToLines",!1),n.alt(e,l,["auto"]),2===o.length&&n.alt("lineAlign",o[1],["start","middle","end"]);break;case"position":o=r.split(","),n.percent(e,o[0]),2===o.length&&n.alt("positionAlign",o[1],["start","middle","end"]);break;case"size":n.percent(e,r);break;case"align":n.alt(e,r,["start","middle","end","left","right"])}},/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical",""),e.line=n.get("line","auto"),e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align","middle"),e.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},e.align),e.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},e.align)}
2(input,e)}r.prototype=n(Error.prototype),r.prototype.constructor=r,r.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},l.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,a){for(var n=0;n<a.length;++n)if(t===a[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 h={"&":"&","<":"<",">":">","‎":"â","‏":"â"," ":"Â "},f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},v={v:"title",lang:"lang"},m={rt:"ruby"};function y(e,input){function t(){if(!input)return null;var e,t=input.match(/^([^<]*)(<[^>]*>?)?/);return e=t[1]?t[1]:t[2],input=input.substr(e.length),e}function n(e){return h[e]}function r(s){for(;E=s.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)s=s.replace(E[0],n);return s}function l(e,element){return!m[element.localName]||m[element.localName]===e.localName}function c(t,n){var r=f[t];if(!r)return null;var element=e.document.createElement(r);element.localName=r;var o=v[t];return o&&n&&(element[o]=n.trim()),element}for(var d,y=e.document.createElement("div"),w=y,T=[];null!==(d=t());)if("<"!==d[0])w.appendChild(e.document.createTextNode(r(d)));else{if("/"===d[1]){T.length&&T[T.length-1]===d.substr(2).replace(">","")&&(T.pop(),w=w.parentNode);continue}var _,C=o(d.substr(1,d.length-2));if(C){_=e.document.createProcessingInstruction("timestamp",C),w.appendChild(_);continue}var E=d.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!E)continue;if(!(_=c(E[1],E[3])))continue;if(!l(w,_))continue;E[2]&&(_.className=E[2].substr(1).replace("."," ")),T.push(E[1]),w.appendChild(_),w=_}return y}var w=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function T(e){for(var i=0;i<w.length;i++){var t=w[i];if(e>=t[0]&&e<=t[1])return!0}return!1}function _(){}function C(e,t,n){var r=/MSIE\s8\.0/.test(navigator.userAgent),o="rgba(255, 255, 255, 1)",l="rgba(0, 0, 0, 0.8)";r&&(o="rgb(255, 255, 255)",l="rgb(0, 0, 0)"),_.call(this),this.cue=t,this.cueDiv=y(e,t.text);var c={color:o,backgroundColor:l,position:"relative",left:0,right:0,top:0,bottom:0,display:"inline"};r||(c.writingMode=""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",c.unicodeBidi="plaintext"),this.applyStyles(c,this.cueDiv),this.div=e.document.createElement("div"),c={textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},r||(c.direction=function(e){var t=[],text="";if(!e||!e.childNodes)return"ltr";function n(e,t){for(var i=t.childNodes.length-1;i>=0;i--)e.push(t.childNodes[i])}function r(e){if(!e||!e.length)return null;var t=e.pop(),text=t.textContent||t.innerText;if(text){var o=text.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):text}return"ruby"===t.tagName?r(e):t.childNodes?(n(e,t),r(e)):void 0}for(n(t,e);text=r(t);)for(var i=0;i<text.length;i++)if(T(text.charCodeAt(i)))return"rtl";return"ltr"}(this.cueDiv),c.writingMode=""===t.vertical?"horizontal-tb":"lr"
vendor: 6,892 bytes, line 2
2===t.vertical?"vertical-lr":"vertical-rl".stylesunicodeBidi="plaintext"),this.applyStyles(c),this.div.appendChild(this.cueDiv);var d=0;switch(t.positionAlign){case"start":d=t.position;break;case"middle":d=t.position-t.size/2;break;case"end":d=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(d,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(d,"%"),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 E(e){var t,n,r,o,l=/MSIE\s8\.0/.test(navigator.userAgent);if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,o=e.div.offsetTop;var c=(c=e.div.childNodes)&&(c=c[0])&&c.getClientRects&&c.getClientRects();e=e.div.getBoundingClientRect(),t=c?Math.max(c[0]&&c[0].height||0,e.height/c.length):0}this.left=e.left,this.right=e.right,this.top=e.top||o,this.height=e.height||n,this.bottom=e.bottom||o+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight,l&&!this.lineHeight&&(this.lineHeight=13)}function x(e,t,n,r){var o=new E(t),l=t.cue,c=function(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 track=e.track,t=track.textTrackList,n=0,i=0;i<t.length&&t[i]!==track;i++)"showing"===t[i].mode&&n++;return-1*++n}(l),d=[];if(l.snapToLines){var h;switch(l.vertical){case"":d=["+y","-y"],h="height";break;case"rl":d=["+x","-x"],h="width";break;case"lr":d=["-x","+x"],h="width"}var f=o.lineHeight,v=f*Math.round(c),m=n[h]+f,y=d[0];Math.abs(v)>m&&(v=v<0?-1:1,v*=Math.ceil(m/f)*f),c<0&&(v+=""===l.vertical?n.height:n.width,d=d.reverse()),o.move(y,v)}else{var w=o.lineHeight/n.height*100;switch(l.lineAlign){case"middle":c-=w/2;break;case"end":c-=w}switch(l.vertical){case"":t.applyStyles({top:t.formatStyle(c,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(c,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(c,"%")})}d=["+y","-x","+x","-y"],o=new E(t)}var T=function(b,e){for(var t,o=new E(b),l=1,i=0;i<e.length;i++){for(;b.overlapsOppositeAxis(n,e[i])||b.within(n)&&b.overlapsAny(r);)b.move(e[i]);if(b.within(n))return b;var p=b.intersectPercentage(n);l>p&&(t=new E(b),l=p),b=new E(o)}return t||o}(o,d);t.move(T.toCSSCompatValues(n))}function S(){}_.prototype.applyStyles=function(e,div){for(var t in div=div||this.div,e)e.hasOwnProperty(t)&&(div.style[t]=e[t])},_.prototype.formatStyle=function(e,t){return 0===e?0:e+t},C.prototype=n(_.prototype),C.prototype.constructor=C,E.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}},E.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},E.prototype.overlapsAny=function(e){for(var i=0;i<e.length;i++)if(this.overlaps(e[i]))return!0;return!1},E.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},E.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}},E.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)},E.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}},E.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},S.StringDecoder=function(){return{decode:function(data){if(!data)return"";if("string"!=typeof data)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(data))}}},S.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};S.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var i=0;i<e.length;i++)if(e[i].hasBeenReset||!e[i].displayState)return!0;return!1}(t)){var o=[],l=E.getSimpleBoxPosition(r),c={font:Math.round(.05*l.height*100)/100+"px sans-serif"};!function(){for(var n,d,i=0;i<t.length;i++)d=t[i],n=new C(e,d,c),r.appendChild(n.div),x(0,n,l,o),d.displayState=n.div,o.push(E.getSimpleBoxPosition(n))}()}else for(var i=0;i<t.length;i++)r.appendChild(t[i].displayState)},S.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},S.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof r))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(data){var e=this;function t(){for(var t=e.buffer,n=0;n<t.length&&"\r"!==t[n]&&"\n"!==t[n];)++n;var line=t.substr(0,n);return"\r"===t[n]&&++n,"\n"===t[n]&&++n,e.buffer=t.substr(n),line}function n(input){input.match(/X-TIMESTAMP-MAP/)?c(input,function(t,n){if("X-TIMESTAMP-MAP"===t)!function(input){var t=new l;c(input,function(e,n){switch(e){case"MPEGT":t.integer(e+"S",n);break;case"LOCA":t.set(e+"L",o(n))}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}(n)},/=/):c(input,function(t,n){if("Region"===t)!function(input){var t=new l;if(c(input,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var o=new l;if(o.percent("x",r[0]),o.percent("y",r[1]),!o.has("x")||!o.has("y"))break;t.set(e+"X",o.get("x")),t.set(e+"Y",o.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var n=new(e.vttjs.VTTRegion||e.window.VTTRegion);n.width=t.get("width",100),n.lines=t.get("lines",3),n.regionAnchorX=t.get("regionanchorX",0),n.regionAnchorY=t.get("regionanchorY",100),n.viewportAnchorX=t.get("viewportanchorX",0),n.viewportAnchorY=t.get("viewportanchorY",100),n.scroll=t.get("scroll",""),e.onregion&&e.onregion(n),e.regi
2onList.push({id:t.get("id"),region:n})}}(n)},/:/)}data&&(e.buffer+=e.decoder.decode(data,{stream:!0}));try{var line;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var h=(line=t()).match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new r(r.Errors.BadSignature);e.state="HEADER"}for(var f=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(f?f=!1:line=t(),e.state){case"HEADER":/:/.test(line)?n(line):line||(e.state="ID");continue;case"NOTE":line||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(line)){e.state="NOTE";break}if(!line)continue;if(e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,""),e.state="CUE",-1===line.indexOf("--\x3e")){e.cue.id=line;continue}case"CUE":try{d(line,e.cue,e.regionList)}catch(t){e.reportOrThrowError(t),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var v=-1!==line.indexOf("--\x3e");if(!line||v&&(f=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=line;continue;case"BADCUE":line||(e.state="ID");continue}}}catch(t){e.reportOrThrowError(t),"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.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 r(r.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=S},350:function(e,t){var n={"":!0,lr:!0,rl:!0},r={start:!0,middle:!0,end:!0,left:!0,right:!0};function o(e){return"string"==typeof e&&(!!r[e.toLowerCase()]&&e.toLowerCase())}function l(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var p in t)e[p]=t[p]}return e}function c(e,t,text){var r=this,c=/MSIE\s8\.0/.test(navigator.userAgent),d={};c?r=document.createElement("custom"):d.enumerable=!0,r.hasBeenReset=!1;var h="",f=!1,v=e,m=t,y=text,w=null,T="",_=!0,C="auto",E="start",x=50,S="middle",k=50,M="middle";if(Object.defineProperty(r,"id",l({},d,{get:function(){return h},set:function(e){h=""+e}})),Object.defineProperty(r,"pauseOnExit",l({},d,{get:function(){return f},set:function(e){f=!!e}})),Object.defineProperty(r,"startTime",l({},d,{get:function(){return v},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",l({},d,{get:function(){return m},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",l({},d,{get:function(){return y},set:function(e){y=""+e,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",l({},d,{get:function(){return w},set:function(e){w=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",l({},d,{get:function(){return T},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");T=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",l({},d,{get:function(){return _},set:function(e){_=!!e,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",l({},d,{get:function(){return C},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");C=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",l({},d,{get:function(){return E},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");E=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",l({},d,{get:function(){return x},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");x=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",l({},d,{get:function(){return S},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");S=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",l({},d,{get:function(){return k},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");k=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",l({},d,{get:function(){return M},set:function(e){var t=o(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");M=t,this.hasBeenReset=!0}})),r.displayState=void 0,c)return r}c.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=c},351:function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,o=0,l=100,c=0,d=100,h="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return l},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");l=e}},regionAnchorX:{enumerable:!0,get:function(){return o}
2,set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");o=e}},viewportAnchorY:{enumerable:!0,get:function(){return d},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");d=e}},viewportAnchorX:{enumerable:!0,get:function(){return c},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");c=e}},scroll:{enumerable:!0,get:function(){return h},set:function(e){var t=function(e){return"string"==typeof e&&!!n[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");h=t}}})}},352:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},i=0;i<10;i++)t["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,source){for(var t,n,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var d in t=Object(arguments[s]))o.call(t,d)&&(c[d]=t[d]);if(r){n=r(t);for(var i=0;i<n.length;i++)l.call(t,n[i])&&(c[n[i]]=t[n[i]])}}return c}},354:function(e,t,n){e.exports={}},355:function(e,t,n){e.exports=function(){"use strict";var e="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,t="undefined"==typeof window?{document:e,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,n=function(e){for(var t=this,i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this};function r(r,o){var l=[],i=0;if(r&&!o&&r instanceof n)return r;if(r)if("string"==typeof r){var c,d,html=r.trim();if(html.indexOf("<")>=0&&html.indexOf(">")>=0){var h="div";for(0===html.indexOf("<li")&&(h="ul"),0===html.indexOf("<tr")&&(h="tbody"),0!==html.indexOf("<td")&&0!==html.indexOf("<th")||(h="tr"),0===html.indexOf("<tbody")&&(h="table"),0===html.indexOf("<option")&&(h="select"),(d=e.createElement(h)).innerHTML=html,i=0;i<d.childNodes.length;i+=1)l.push(d.childNodes[i])}else for(c=o||"#"!==r[0]||r.match(/[ .<>:~]/)?(o||e).querySelectorAll(r.trim()):[e.getElementById(r.trim().split("#")[1])],i=0;i<c.length;i+=1)c[i]&&l.push(c[i])}else if(r.nodeType||r===t||r===e)l.push(r);else if(r.length>0&&r[0].nodeType)for(i=0;i<r.length;i+=1)l.push(r[i]);return new n(l)}function o(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function l(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 c(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 d(e){return!!this[0]&&this[0].classList.contains(e)}function h(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var 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 f(e,t){var n=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var i=0;i<this.length;i+=1)if(2===n.length)this[i].setAttribute(e,t);else for(var r in e)this[i][r]=e[r],this[i].setAttribute(r,e[r]);return this}function v(e){for(var i=0;i<this.length;i+=1)this[i].removeAttribute(e);return this}function data(e,t){var n;if(void 0!==t){for(var i=0;i<this.length;i+=1)(n=this[i]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var r=n.getAttribute("data-"+e);return r||void 0}}function m(e){for(var i=0;i<this.length;i+=1){var t=this[i].style;t.webkitTransform=e,t.transform=e}return this}function y(e){"string"!=typeof e&&(e+="ms");for(var i=0;i<this.length;i+=1){var t=this[i].style;t.webkitTransitionDuration=e,t.transitionDuration=e}return this}function w(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=t[0],l=t[1],c=t[2],d=t[3];function h(e){var t=e.target;if(t){var n=e.target.dom7EventData||[];if(n.indexOf(e)<0&&n.unshift(e),r(t).is(l))c.apply(t,n);else for(var o=r(t).parents(),d=0;d<o.length;d+=1)r(o[d]).is(l)&&c.apply(o[d],n)}}function f(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),c.apply(this,t)}"function"==typeof t[1]&&(o=(e=t)[0],c=e[1],d=e[2],l=void 0),d||(d=!1);for(var v,m=o.split(" "),i=0;i<this.length;i+=1){var y=this[i];if(l)for(v=0;v<m.length;v+=1){var w=m[v];y.dom7LiveListeners||(y.dom7LiveListeners={}),y.dom7LiveListeners[w]||(y.dom7LiveListeners[w]=[]),y.dom7LiveListeners[w].push({listener:c,proxyListener:h}),y.addEventListener(w,h,d)}else for(v=0;v<m.length;v+=1){var T=m[v];y.dom7Listeners||(y.dom7Listeners={}),y.dom7Listeners[T]||(y.dom7Listeners[T]=[]),y.dom7Listeners[T].push({listener:c,proxyListener:f}),y.addEventListener(T,f,d)}}return this}function T(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],o=t[1],l=t[2],c=t[3];"function"==typeof t[1]&&(r=(e=t)[0],l=e[1],c=e[2],o=void 0),c||(c=!1);for(var d=r.split(" "),i=0;i<d.length;i+=1)for(var h=d[i],f=0;f<this.length;f+=1){var v=this[f],m=void 0;if(!o&&v.dom7Listeners?m=v.dom7Listeners[h]:o&&v.dom7LiveListeners&&(m=v.dom7LiveListeners[h]),m&&m.length)for(var y=m.length-1;y>=0;y-=1){var w=m[y];l&&w.listener===l||l&&w.listener&&w.listener.dom7proxy&&w.listener.dom7proxy===l?(v.removeEventListener(h,w.proxyListener,c),m.splice(y,1)):l||(v.removeEventListener(h,w.proxyListener,c),m.splice(y,1))}}return this}function _(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var o=n[0].split(" "),l=n[1],i=0;i<o.length;i+=1)for(var c=o[i],d=0;d<this.length;d+=1){var h=this[d],f=void 0;try{f=new t.CustomEvent(c,{detail:l,bubbles:!0,cancelable:!0})}
2catch(t){(f=e.createEvent("Event")).initEvent(c,!0,!0),f.detail=l}h.dom7EventData=n.filter(function(data,e){return e>0}),h.dispatchEvent(f),h.dom7EventData=[],delete h.dom7EventData}return this}function C(e){var i,t=["webkitTransitionEnd","transitionend"],n=this;function r(o){if(o.target===this)for(e.call(this,o),i=0;i<t.length;i+=1)n.off(t[i],r)}if(e)for(i=0;i<t.length;i+=1)n.on(t[i],r);return this}function E(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 x(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 S(){if(this.length>0){var n=this[0],r=n.getBoundingClientRect(),body=e.body,o=n.clientTop||body.clientTop||0,l=n.clientLeft||body.clientLeft||0,c=n===t?t.scrollY:n.scrollTop,d=n===t?t.scrollX:n.scrollLeft;return{top:r.top+c-o,left:r.left+d-l}}return null}function k(){return this[0]?t.getComputedStyle(this[0],null):{}}function M(e,n){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var r in e)this[i].style[r]=e[r];return this}if(this[0])return t.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]=n;return this}return this}function P(e){if(!e)return this;for(var i=0;i<this.length;i+=1)if(!1===e.call(this[i],i,this[i]))return this;return this}function html(html){if(void 0===html)return this[0]?this[0].innerHTML:void 0;for(var i=0;i<this.length;i+=1)this[i].innerHTML=html;return this}function text(text){if(void 0===text)return this[0]?this[0].textContent.trim():null;for(var i=0;i<this.length;i+=1)this[i].textContent=text;return this}function O(o){var l,i,c=this[0];if(!c||void 0===o)return!1;if("string"==typeof o){if(c.matches)return c.matches(o);if(c.webkitMatchesSelector)return c.webkitMatchesSelector(o);if(c.msMatchesSelector)return c.msMatchesSelector(o);for(l=r(o),i=0;i<l.length;i+=1)if(l[i]===c)return!0;return!1}if(o===e)return c===e;if(o===t)return c===t;if(o.nodeType||o instanceof n){for(l=o.nodeType?[o]:o,i=0;i<l.length;i+=1)if(l[i]===c)return!0;return!1}return!1}function j(){var i,e=this[0];if(e){for(i=0;null!==(e=e.previousSibling);)1===e.nodeType&&(i+=1);return i}}function A(e){if(void 0===e)return this;var t,r=this.length;return new n(e>r-1?[]:e<0?(t=r+e)<0?[]:[this[t]]:[this[e]])}function I(){for(var t,r=[],o=arguments.length;o--;)r[o]=arguments[o];for(var l=0;l<r.length;l+=1){t=r[l];for(var i=0;i<this.length;i+=1)if("string"==typeof t){var c=e.createElement("div");for(c.innerHTML=t;c.firstChild;)this[i].appendChild(c.firstChild)}else if(t instanceof n)for(var d=0;d<t.length;d+=1)this[i].appendChild(t[d]);else this[i].appendChild(t)}return this}function D(t){var i,r;for(i=0;i<this.length;i+=1)if("string"==typeof t){var o=e.createElement("div");for(o.innerHTML=t,r=o.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(o.childNodes[r],this[i].childNodes[0])}else if(t instanceof n)for(r=0;r<t.length;r+=1)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this}function L(e){return this.length>0?e?this[0].nextElementSibling&&r(this[0].nextElementSibling).is(e)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])}function z(e){var t=[],o=this[0];if(!o)return new n([]);for(;o.nextElementSibling;){var l=o.nextElementSibling;e?r(l).is(e)&&t.push(l):t.push(l),o=l}return new n(t)}function N(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&r(t.previousElementSibling).is(e)?new n([t.previousElementSibling]):new n([]):t.previousElementSibling?new n([t.previousElementSibling]):new n([])}return new n([])}function R(e){var t=[],o=this[0];if(!o)return new n([]);for(;o.previousElementSibling;){var l=o.previousElementSibling;e?r(l).is(e)&&t.push(l):t.push(l),o=l}return new n(t)}function B(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(o(t))}function $(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(o(t))}function F(e){var t=this;return void 0===e?new n([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function H(e){for(var t=[],i=0;i<this.length;i+=1)for(var r=this[i].querySelectorAll(e),o=0;o<r.length;o+=1)t.push(r[o]);return new n(t)}function V(e){for(var t=[],i=0;i<this.length;i+=1)for(var l=this[i].childNodes,c=0;c<l.length;c+=1)e?1===l[c].nodeType&&r(l[c]).is(e)&&t.push(l[c]):1===l[c].nodeType&&t.push(l[c]);return new n(o(t))}function X(){for(var i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this}function W(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,n,o=this;for(i=0;i<e.length;i+=1){var l=r(e[i]);for(n=0;n<l.length;n+=1)o[o.length]=l[n],o.length+=1}return o}r.fn=n.prototype,r.Class=n,r.Dom7=n;var Y={addClass:l,removeClass:c,hasClass:d,toggleClass:h,attr:f,removeAttr:v,data:data,transform:m,transition:y,on:w,off:T,trigger:_,transitionEnd:C,outerWidth:E,outerHeight:x,offset:S,css:M,each:P,html:html,text:text,is:O,index:j,eq:A,append:I,prepend:D,next:L,nextAll:z,prev:N,prevAll:R,parent:B,parents:$,closest:F,find:H,children:V,remove:X,add:W,
2styles:k};Object.keys(Y).forEach(function(e){r.fn[e]=r.fn[e]||Y[e]});var style,G,U={deleteProps:function(e){var object=e;Object.keys(object).forEach(function(e){try{object[e]=null}catch(e){}try{delete object[e]}catch(e){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,n){var r,o,l;void 0===n&&(n="x");var c=t.getComputedStyle(e,null);return t.WebKitCSSMatrix?((o=c.transform||c.webkitTransform).split(",").length>6&&(o=o.split(", ").map(function(a){return a.replace(",",".")}).join(", ")),l=new t.WebKitCSSMatrix("none"===o?"":o)):r=(l=c.MozTransform||c.OTransform||c.MsTransform||c.msTransform||c.transform||c.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(o=t.WebKitCSSMatrix?l.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===n&&(o=t.WebKitCSSMatrix?l.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),o||0},parseUrlQuery:function(e){var i,n,param,r,o={},l=e||t.location.href;if("string"==typeof l&&l.length)for(r=(n=(l=l.indexOf("?")>-1?l.replace(/\S*\?/,""):"").split("&").filter(function(e){return""!==e})).length,i=0;i<r;i+=1)param=n[i].replace(/#\S+/g,"").split("="),o[decodeURIComponent(param[0])]=void 0===param[1]?void 0:decodeURIComponent(param[1])||"";return o},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=Object(e[0]),i=1;i<e.length;i+=1){var r=e[i];if(null!=r)for(var o=Object.keys(Object(r)),l=0,c=o.length;l<c;l+=1){var d=o[l],desc=Object.getOwnPropertyDescriptor(r,d);void 0!==desc&&desc.enumerable&&(U.isObject(n[d])&&U.isObject(r[d])?U.extend(n[d],r[d]):!U.isObject(n[d])&&U.isObject(r[d])?(n[d]={},U.extend(n[d],r[d])):n[d]=r[d])}}return n}},K=(G=e.createElement("div"),{touch:t.Modernizr&&!0===t.Modernizr.touch||!!(t.navigator.maxTouchPoints>0||"ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),pointerEvents:!!(t.navigator.pointerEnabled||t.PointerEvent||"maxTouchPoints"in t.navigator&&t.navigator.maxTouchPoints>0),prefixedPointerEvents:!!t.navigator.msPointerEnabled,transition:(style=G.style,"transition"in style||"webkitTransition"in style||"MozTransition"in style),transforms3d:t.Modernizr&&!0===t.Modernizr.csstransforms3d||function(){var style=G.style;return"webkitPerspective"in style||"MozPerspective"in style||"OPerspective"in style||"MsPerspective"in style||"perspective"in style}(),flexbox:function(){for(var style=G.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in style)return!0;return!1}(),observer:"MutationObserver"in t||"WebkitMutationObserver"in t,passiveListener:function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.addEventListener("testPassiveListener",null,n)}catch(e){}return e}(),gestures:"ongesturestart"in t}),J=function(){function e(){var e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isIE:!!t.navigator.userAgent.match(/Trident/g)||!!t.navigator.userAgent.match(/MSIE/g),isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}(),Z=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={}
vendor: 11,228 bytes, line 2
2,t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},Q={components:{configurable:!0}};function ee(){var e,t,n=this,r=n.$el;e=void 0!==n.params.width?n.params.width:r[0].clientWidth,t=void 0!==n.params.height?n.params.height:r[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||(e=e-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),t=t-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),U.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function te(){var e=this,n=e.params,r=e.$wrapperEl,o=e.size,l=e.rtlTranslate,c=e.wrongRTL,d=e.virtual&&n.virtual.enabled,h=d?e.virtual.slides.length:e.slides.length,f=r.children("."+e.params.slideClass),v=d?e.virtual.slides.length:f.length,m=[],y=[],w=[],T=n.slidesOffsetBefore;"function"==typeof T&&(T=n.slidesOffsetBefore.call(e));var _=n.slidesOffsetAfter;"function"==typeof _&&(_=n.slidesOffsetAfter.call(e));var C=e.snapGrid.length,E=e.snapGrid.length,x=n.spaceBetween,S=-T,k=0,M=0;if(void 0!==o){var P,O;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*o),e.virtualSize=-x,l?f.css({marginLeft:"",marginTop:""}):f.css({marginRight:"",marginBottom:""}),n.slidesPerColumn>1&&(P=Math.floor(v/n.slidesPerColumn)===v/e.params.slidesPerColumn?v:Math.ceil(v/n.slidesPerColumn)*n.slidesPerColumn,"auto"!==n.slidesPerView&&"row"===n.slidesPerColumnFill&&(P=Math.max(P,n.slidesPerView*n.slidesPerColumn)));for(var j,A=n.slidesPerColumn,I=P/A,D=Math.floor(v/n.slidesPerColumn),i=0;i<v;i+=1){O=0;var L=f.eq(i);if(n.slidesPerColumn>1){var z=void 0,N=void 0,R=void 0;if("column"===n.slidesPerColumnFill||"row"===n.slidesPerColumnFill&&n.slidesPerGroup>1){if("column"===n.slidesPerColumnFill)R=i-(N=Math.floor(i/A))*A,(N>D||N===D&&R===A-1)&&(R+=1)>=A&&(R=0,N+=1);else{var B=Math.floor(i/n.slidesPerGroup);N=i-(R=Math.floor(i/n.slidesPerView)-B*n.slidesPerColumn)*n.slidesPerView-B*n.slidesPerView}z=N+R*P/A,L.css({"-webkit-box-ordinal-group":z,"-moz-box-ordinal-group":z,"-ms-flex-order":z,"-webkit-order":z,order:z})}else N=i-(R=Math.floor(i/I))*I;L.css("margin-"+(e.isHorizontal()?"top":"left"),0!==R&&n.spaceBetween&&n.spaceBetween+"px").attr("data-swiper-column",N).attr("data-swiper-row",R)}if("none"!==L.css("display")){if("auto"===n.slidesPerView){var $=t.getComputedStyle(L[0],null),F=L[0].style.transform,H=L[0].style.webkitTransform;if(F&&(L[0].style.transform="none"),H&&(L[0].style.webkitTransform="none"),n.roundLengths)O=e.isHorizontal()?L.outerWidth(!0):L.outerHeight(!0);else if(e.isHorizontal()){var V=parseFloat($.getPropertyValue("width")),X=parseFloat($.getPropertyValue("padding-left")),W=parseFloat($.getPropertyValue("padding-right")),Y=parseFloat($.getPropertyValue("margin-left")),G=parseFloat($.getPropertyValue("margin-right")),Z=$.getPropertyValue("box-sizing");O=Z&&"border-box"===Z&&!J.isIE?V+Y+G:V+X+W+Y+G}else{var Q=parseFloat($.getPropertyValue("height")),ee=parseFloat($.getPropertyValue("padding-top")),te=parseFloat($.getPropertyValue("padding-bottom")),ie=parseFloat($.getPropertyValue("margin-top")),ne=parseFloat($.getPropertyValue("margin-bottom")),re=$.getPropertyValue("box-sizing");O=re&&"border-box"===re&&!J.isIE?Q+ie+ne:Q+ee+te+ie+ne}F&&(L[0].style.transform=F),H&&(L[0].style.webkitTransform=H),n.roundLengths&&(O=Math.floor(O))}else O=(o-(n.slidesPerView-1)*x)/n.slidesPerView,n.roundLengths&&(O=Math.floor(O)),f[i]&&(e.isHorizontal()?f[i].style.width=O+"px":f[i].style.height=O+"px");f[i]&&(f[i].swiperSlideSize=O),w.push(O),n.centeredSlides?(S=S+O/2+k/2+x,0===k&&0!==i&&(S=S-o/2-x),0===i&&(S=S-o/2-x),Math.abs(S)<.001&&(S=0),n.roundLengths&&(S=Math.floor(S)),M%n.slidesPerGroup===0&&m.push(S),y.push(S)):(n.roundLengths&&(S=Math.floor(S)),M%n.slidesPerGroup===0&&m.push(S),y.push(S),S=S+O+x),e.virtualSize+=O+x,k=O,M+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+_,l&&c&&("slide"===n.effect||"coverflow"===n.effect)&&r.css({width:e.virtualSize+n.spaceBetween+"px"}),K.flexbox&&!n.setWrapperSize||(e.isHorizontal()?r.css({width:e.virtualSize+n.spaceBetween+"px"}):r.css({height:e.virtualSize+n.spaceBetween+"px"})),n.slidesPerColumn>1&&(e.virtualSize=(O+n.spaceBetween)*P,e.virtualSize=Math.ceil(e.virtualSize/n.slidesPerColumn)-n.spaceBetween,e.isHorizontal()?r.css({width:e.virtualSize+n.spaceBetween+"px"}):r.css({height:e.virtualSize+n.spaceBetween+"px"}),n.centeredSlides)){j=[];for(var ae=0;ae<m.length;ae+=1){var se=m[ae];n.roundLengths&&(se=Math.floor(se)),m[ae]<e.virtualSize+m[0]&&j.push(se)}m=j}if(!n.centeredSlides){j=[];for(var oe=0;oe<m.length;oe+=1){var le=m[oe];n.roundLengths&&(le=Math.floor(le)),m[oe]<=e.virtualSize-o&&j.push(le)}m=j,Math.floor(e.virtualSize-o)-Math.floor(m[m.length-1])>1&&m.push(e.virtualSize-o)}if(0===m.length&&(m=[0]),0!==n.spaceBetween&&(e.isHorizontal()?l?f.css({marginLeft:x+"px"}):f.css({marginRight:x+"px"}):f.css({marginBottom:x+"px"})),n.centerInsufficientSlides){var ce=0;if(w.forEach(function(e){ce+=e+(n.spaceBetween?n.spaceBetween:0)}),(ce-=n.spaceBetween)<o){var ue=(o-ce)/2;m.forEach(function(e,t){m[t]=e-ue}),y.forEach(function(e,t){y[t]=e+ue})}}U.extend(e,{slides:f,snapGrid:m,slidesGrid:y,slidesSizesGrid:w}),v!==h&&e.emit("slidesLengthChange"),m.length!==C&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),y.length!==E&&e.emit("slidesGridLengthChange"),(n.watchSlidesProgress||n.watchSlidesVisibility)&&e.updateSlidesOffset()}}function ie(e){var i,t=this,n=[],r=0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){var o=t.activeIndex+i;if(o>t.slides.length)break;n.push(t.slides.eq(o)[0])}else n.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(void 0!==n[i]){var l=n[i].offsetHeight;r=l>r?l:r}r&&t.$wrapperEl.css("height",r+"px")}function ne(){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 re(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,o=t.slides,l=t.rtlTranslate;if(0!==o.length){void 0===o[0].swiperSlideOffset&&t.updateSlidesOffset();var c=-e;l&&(c=e),o.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(var i=0;i<o.length;i+=1){var d=o[i],h=(c+(n.centeredSlides?t.minTranslate():0)-d.swiperSlideOffset)/(d.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var f=-(c-d.swiperSlideOffset),v=f+t.slidesSizesGrid[i];(f>=0&&f<t.size-1||v>1&&v<=t.size||f<=0&&v>=t.size)&&(t.visibleSlides.push(d),t.visibleSlidesIndexes.push(i),o.eq(i).addClass(n.slideVisibleClass))}d.progress=l?-h:h}t.visibleSlides=r(t.visibleSlides)}}function ae(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,r=t.maxTranslate()-t.minTranslate(),progress=t.progress,o=t.isBeginning,l=t.isEnd,c=o,d=l;0===r?(progress=0,o=!0,l=!0):(o=(progress=(e-t.minTranslate())/r)<=0,l=progress>=1),U.extend(t,{progress:progress,isBeginning:o,isEnd:l}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),o&&!c&&t.emit("reachBeginning toEdge"),l&&!d&&t.emit("reachEnd toEdge"),(c&&!o||d&&!l)&&t.emit("fromEdge"),t.emit("progress",progress)}function se(){var e,t=this,n=t.slides,r=t.params,o=t.$wrapperEl,l=t.activeIndex,c=t.realIndex,d=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=d?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+l+'"]'):n.eq(l)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+c+'"]').addClass(r.slideDuplicateActiveClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+c+'"]').addClass(r.slideDuplicateActiveClass));var h=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===h.length&&(h=n.eq(0)).addClass(r.slideNextClass);var f=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===f.length&&(f=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(h.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+h.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+h.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),f.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+f.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+f.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass))}function oe(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,o=n.slidesGrid,l=n.snapGrid,c=n.params,d=n.activeIndex,h=n.realIndex,f=n.snapIndex,v=e;if(void 0===v){for(var i=0;i<o.length;i+=1)void 0!==o[i+1]?r>=o[i]&&r<o[i+1]-(o[i+1]-o[i])/2?v=i:r>=o[i]&&r<o[i+1]&&(v=i+1):r>=o[i]&&(v=i);c.normalizeSlideIndex&&(v<0||void 0===v)&&(v=0)}if((t=l.indexOf(r)>=0?l.indexOf(r):Math.floor(v/c.slidesPerGroup))>=l.length&&(t=l.length-1),v!==d){var m=parseInt(n.slides.eq(v).attr("data-swiper-slide-index")||v,10);U.extend(n,{snapIndex:t,realIndex:m,previousIndex:d,activeIndex:v}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),h!==m&&n.emit("realIndexChange"),(n.initialized||n.runCallbacksOnInit)&&n.emit("slideChange")}else t!==f&&(n.snapIndex=t,n.emit("snapIndexChange"))}function le(e){var t=this,n=t.params,o=r(e.target).closest("."+n.slideClass)[0],l=!1;if(o)for(var i=0;i<t.slides.length;i+=1)t.slides[i]===o&&(l=!0);if(!o||!l)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=o,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r(o).attr("data-swiper-slide-index"),10):t.clickedIndex=r(o).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}Z.prototype.on=function(e,t,n){var r=this;if("function"!=typeof t)return r;var o=n?"unshift":"push";return e.split(" ").forEach(function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][o](t)}),r},Z.prototype.once=function(e,t,n){var r=this;if("function"!=typeof t)return r;function o(){for(var n=[],l=arguments.length;l--;)n[l]=arguments[l];t.apply(r,n),r.off(e,o),o.f7proxy&&delete o.f7proxy}return o.f7proxy=t,r.on(e,o,n)},Z.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach(function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach(function(r,o){(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(o,1)})}),n):n},Z.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,data,r,o=this;return o.eventsListeners?("string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],data=e.slice(1,e.length),r=o):(n=e[0].events,data=e[0].data,r=e[0].context||o),(Array.isArray(n)?n:n.split(" ")).forEac
2h(function(e){if(o.eventsListeners&&o.eventsListeners[e]){var t=[];o.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(r,data)})}}),o):o},Z.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var r=t.modules[n];r.params&&U.extend(e,r.params)})},Z.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var r=t.modules[n],o=e[n]||{};r.instance&&Object.keys(r.instance).forEach(function(e){var n=r.instance[e];t[e]="function"==typeof n?n.bind(t):n}),r.on&&t.on&&Object.keys(r.on).forEach(function(e){t.on(e,r.on[e])}),r.create&&r.create.bind(t)(o)})},Q.components.set=function(e){var t=this;t.use&&t.use(e)},Z.installModule=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;r.prototype.modules||(r.prototype.modules={});var o=e.name||Object.keys(r.prototype.modules).length+"_"+U.now();return r.prototype.modules[o]=e,e.proto&&Object.keys(e.proto).forEach(function(t){r.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(function(t){r[t]=e.static[t]}),e.install&&e.install.apply(r,t),r},Z.use=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;return Array.isArray(e)?(e.forEach(function(e){return r.installModule(e)}),r):r.installModule.apply(r,[e].concat(t))},Object.defineProperties(Z,Q);var ce={updateSize:ee,updateSlides:te,updateAutoHeight:ie,updateSlidesOffset:ne,updateSlidesProgress:re,updateProgress:ae,updateSlidesClasses:se,updateActiveIndex:oe,updateClickedSlide:le};function ue(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,n=t.params,r=t.rtlTranslate,o=t.translate,l=t.$wrapperEl;if(n.virtualTranslate)return r?-o:o;var c=U.getTranslate(l[0],e);return r&&(c=-c),c||0}function de(e,t){var n=this,r=n.rtlTranslate,o=n.params,l=n.$wrapperEl,progress=n.progress,c=0,d=0,h=0;n.isHorizontal()?c=r?-e:e:d=e,o.roundLengths&&(c=Math.floor(c),d=Math.floor(d)),o.virtualTranslate||(K.transforms3d?l.transform("translate3d("+c+"px, "+d+"px, "+h+"px)"):l.transform("translate("+c+"px, "+d+"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?c:d;var f=n.maxTranslate()-n.minTranslate();(0===f?0:(e-n.minTranslate())/f)!==progress&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function he(){return-this.snapGrid[0]}function pe(){return-this.snapGrid[this.snapGrid.length-1]}var fe={getTranslate:ue,setTranslate:de,minTranslate:he,maxTranslate:pe};function ve(e,t){var n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function ge(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,o=n.params,l=n.previousIndex;o.autoHeight&&n.updateAutoHeight();var c=t;if(c||(c=r>l?"next":r<l?"prev":"reset"),n.emit("transitionStart"),e&&r!==l){if("reset"===c)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===c?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function me(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,o=n.previousIndex;n.animating=!1,n.setTransition(0);var l=t;if(l||(l=r>o?"next":r<o?"prev":"reset"),n.emit("transitionEnd"),e&&r!==o){if("reset"===l)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===l?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}var ye={setTransition:ve,transitionStart:ge,transitionEnd:me};function be(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var o=this,l=e;l<0&&(l=0);var c=o.params,d=o.snapGrid,h=o.slidesGrid,f=o.previousIndex,v=o.activeIndex,m=o.rtlTranslate;if(o.animating&&c.preventInteractionOnTransition)return!1;var y=Math.floor(l/c.slidesPerGroup);y>=d.length&&(y=d.length-1),(v||c.initialSlide||0)===(f||0)&&n&&o.emit("beforeSlideChangeStart");var w,T=-d[y];if(o.updateProgress(T),c.normalizeSlideIndex)for(var i=0;i<h.length;i+=1)-Math.floor(100*T)>=Math.floor(100*h[i])&&(l=i);if(o.initialized&&l!==v){if(!o.allowSlideNext&&T<o.translate&&T<o.minTranslate())return!1;if(!o.allowSlidePrev&&T>o.translate&&T>o.maxTranslate()&&(v||0)!==l)return!1}return w=l>v?"next":l<v?"prev":"reset",m&&-T===o.translate||!m&&T===o.translate?(
2o.updateActiveIndex(l),c.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==c.effect&&o.setTranslate(T),"reset"!==w&&(o.transitionStart(n,w),o.transitionEnd(n,w)),!1):(0!==t&&K.transition?(o.setTransition(t),o.setTranslate(T),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,w),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,w))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))):(o.setTransition(0),o.setTranslate(T),o.updateActiveIndex(l),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,w),o.transitionEnd(n,w)),!0)}function we(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var o=this,l=e;return o.params.loop&&(l+=o.loopedSlides),o.slideTo(l,t,n,r)}function Te(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,o=r.params,l=r.animating;return o.loop?!l&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,r.slideTo(r.activeIndex+o.slidesPerGroup,e,t,n)):r.slideTo(r.activeIndex+o.slidesPerGroup,e,t,n)}function _e(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,o=r.params,l=r.animating,c=r.snapGrid,d=r.slidesGrid,h=r.rtlTranslate;if(o.loop){if(l)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}var v,m=f(h?r.translate:-r.translate),y=c.map(function(e){return f(e)}),w=(d.map(function(e){return f(e)}),c[y.indexOf(m)],c[y.indexOf(m)-1]);return void 0!==w&&(v=d.indexOf(w))<0&&(v=r.activeIndex-1),r.slideTo(v,e,t,n)}function Ce(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this;return r.slideTo(r.activeIndex,e,t,n)}function Ee(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,o=r.activeIndex,l=Math.floor(o/r.params.slidesPerGroup);if(l<r.snapGrid.length-1){var c=r.rtlTranslate?r.translate:-r.translate,d=r.
2snapGrid[l];c-d>(r.snapGrid[l+1]-d)/2&&(o=r.params.slidesPerGroup)}return r.slideTo(o,e,t,n)}function xe(){var e,t=this,n=t.params,o=t.$wrapperEl,l="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,c=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(r(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?c<t.loopedSlides-l/2||c>t.slides.length-t.loopedSlides+l/2?(t.loopFix(),c=o.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),U.nextTick(function(){t.slideTo(c)})):t.slideTo(c):c>t.slides.length-l?(t.loopFix(),c=o.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),U.nextTick(function(){t.slideTo(c)})):t.slideTo(c)}else t.slideTo(c)}var Se={slideTo:be,slideToLoop:we,slideNext:Te,slidePrev:_e,slideReset:Ce,slideToClosest:Ee,slideToClickedSlide:xe};function ke(){var t=this,n=t.params,o=t.$wrapperEl;o.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var l=o.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var c=n.slidesPerGroup-l.length%n.slidesPerGroup;if(c!==n.slidesPerGroup){for(var i=0;i<c;i+=1){var d=r(e.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);o.append(d)}l=o.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=l.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>l.length&&(t.loopedSlides=l.length);var h=[],f=[];l.each(function(e,n){var o=r(n);e<t.loopedSlides&&f.push(n),e<l.length&&e>=l.length-t.loopedSlides&&h.push(n),o.attr("data-swiper-slide-index",e)});for(var v=0;v<f.length;v+=1)o.append(r(f[v].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var m=h.length-1;m>=0;m-=1)o.prepend(r(h[m].cloneNode(!0)).addClass(n.slideDuplicateClass))}function Me(){var e,t=this,n=t.params,r=t.activeIndex,o=t.slides,l=t.loopedSlides,c=t.allowSlidePrev,d=t.allowSlideNext,h=t.snapGrid,f=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var v=-h[r]-t.getTranslate();r<l?(e=o.length-3*l+r,e+=l,t.slideTo(e,0,!1,!0)&&0!==v&&t.setTranslate((f?-t.translate:t.translate)-v)):("auto"===n.slidesPerView&&r>=2*l||r>=o.length-l)&&(e=-o.length+r+l,e+=l,t.slideTo(e,0,!1,!0)&&0!==v&&t.setTranslate((f?-t.translate:t.translate)-v)),t.allowSlidePrev=c,t.allowSlideNext=d}function Pe(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}var Oe={loopCreate:ke,loopFix:Me,loopDestroy:Pe};function je(e){var t=this;if(!(K.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}}function Ae(){var e=this;K.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}var Ie={setGrabCursor:je,unsetGrabCursor:Ae};function De(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);r.loop&&t.loopCreate(),r.observer&&K.observer||t.update()}function Le(e){var t=this,n=t.params,r=t.$wrapperEl,o=t.activeIndex;n.loop&&t.loopDestroy();var l=o+1;if("object"==typeof e&&"length"in e){for(var i=0;i<e.length;i+=1)e[i]&&r.prepend(e[i]);l=o+e.length}else r.prepend(e);n.loop&&t.loopCreate(),n.observer&&K.observer||t.update(),t.slideTo(l,0,!1)}function ze(e,t){var n=this,r=n.$wrapperEl,o=n.params,l=n.activeIndex;o.loop&&(l-=n.loopedSlides,n.loopDestroy(),n.slides=r.children("."+o.slideClass));var c=n.slides.length;if(e<=0)n.prependSlide(t);else if(e>=c)n.appendSlide(t);else{for(var d=l>e?l+1:l,h=[],i=c-1;i>=e;i-=1){var f=n.slides.eq(i);f.remove(),h.unshift(f)}if("object"==typeof t&&"length"in t){for(var v=0;v<t.length;v+=1)t[v]&&r.append(t[v]);d=l>e?l+t.length:l}else r.append(t);for(var m=0;m<h.length;m+=1)r.append(h[m]);o.loop&&n.loopCreate(),o.observer&&K.observer||n.update(),o.loop?n.slideTo(d+n.loopedSlides,0,!1):n.slideTo(d,0,!1)}}function Ne(e){var t=this,n=t.params,r=t.$wrapperEl,o=t.activeIndex;n.loop&&(o-=t.loopedSlides,t.loopDestroy(),t.slides=r.children("."+n.slideClass));var l,c=o;if("object"==typeof e&&"length"in e){for(var i=0;i<e.length;i+=1)l=e[i],t.slides[l]&&t.slides.eq(l).remove(),l<c&&(c-=1);c=Math.max(c,0)}else l=e,t.slides[l]&&t.slides.eq(l).remove(),l<c&&(c-=1),c=Math.max(c,0);
vendor: 4,913 bytes, line 2
2n.loop&&t.loopCreate(),n.observer&&K.observer||t.update(),n.loop?t.slideTo(c+t.loopedSlides,0,!1):t.slideTo(c,0,!1)}function Re(){for(var e=this,t=[],i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}var Be={appendSlide:De,prependSlide:Le,addSlide:ze,removeSlide:Ne,removeAllSlides:Re},$e=function(){var n=t.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:t.cordova||t.phonegap,phonegap:t.cordova||t.phonegap},o=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),l=n.match(/(Android);?[\s\/]+([\d.]+)?/),c=n.match(/(iPad).*OS\s([\d_]+)/),d=n.match(/(iPod)(.*OS\s([\d_]+))?/),h=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(o&&(r.os="windows",r.osVersion=o[2],r.windows=!0),l&&!o&&(r.os="android",r.osVersion=l[2],r.android=!0,r.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(c||h||d)&&(r.os="ios",r.ios=!0),h&&!d&&(r.osVersion=h[2].replace(/_/g,"."),r.iphone=!0),c&&(r.osVersion=c[2].replace(/_/g,"."),r.ipad=!0),d&&(r.osVersion=d[3]?d[3].replace(/_/g,"."):null,r.iphone=!0),r.ios&&r.osVersion&&n.indexOf("Version/")>=0&&"10"===r.osVersion.split(".")[0]&&(r.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),r.desktop=!(r.os||r.android||r.webView),r.webView=(h||c||d)&&n.match(/.*AppleWebKit(?!.*Safari)/i),r.os&&"ios"===r.os){var f=r.osVersion.split("."),v=e.querySelector('meta[name="viewport"]');r.minimalUi=!r.webView&&(d||h)&&(1*f[0]==7?1*f[1]>=1:1*f[0]>7)&&v&&v.getAttribute("content").indexOf("minimal-ui")>=0}return r.pixelRatio=t.devicePixelRatio||1,r}();function Fe(n){var o=this,data=o.touchEventsData,l=o.params,c=o.touches;if(!o.animating||!l.preventInteractionOnTransition){var d=n;if(d.originalEvent&&(d=d.originalEvent),data.isTouchEvent="touchstart"===d.type,(data.isTouchEvent||!("which"in d)||3!==d.which)&&!(!data.isTouchEvent&&"button"in d&&d.button>0||data.isTouched&&data.isMoved))if(l.noSwiping&&r(d.target).closest(l.noSwipingSelector?l.noSwipingSelector:"."+l.noSwipingClass)[0])o.allowClick=!0;else if(!l.swipeHandler||r(d).closest(l.swipeHandler)[0]){c.currentX="touchstart"===d.type?d.targetTouches[0].pageX:d.pageX,c.currentY="touchstart"===d.type?d.targetTouches[0].pageY:d.pageY;var h=c.currentX,f=c.currentY,v=l.edgeSwipeDetection||l.iOSEdgeSwipeDetection,m=l.edgeSwipeThreshold||l.iOSEdgeSwipeThreshold;if(!v||!(h<=m||h>=t.screen.width-m)){if(U.extend(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=h,c.startY=f,data.touchStartTime=U.now(),o.allowClick=!0,o.updateSize(),o.swipeDirection=void 0,l.threshold>0&&(data.allowThresholdMove=!1),"touchstart"!==d.type){var y=!0;r(d.target).is(data.formElements)&&(y=!1),e.activeElement&&r(e.activeElement).is(data.formElements)&&e.activeElement!==d.target&&e.activeElement.blur();var w=y&&o.allowTouchMove&&l.touchStartPreventDefault;(l.touchStartForcePreventDefault||w)&&d.preventDefault()}o.emit("touchStart",d)}}}}function He(t){var n=this,data=n.touchEventsData,o=n.params,l=n.touches,c=n.rtlTranslate,d=t;if(d.originalEvent&&(d=d.originalEvent),data.isTouched){if(!data.isTouchEvent||"mousemove"!==d.type){var h="touchmove"===d.type?d.targetTouches[0].pageX:d.pageX,f="touchmove"===d.type?d.targetTouches[0].pageY:d.pageY;if(d.preventedByNestedSwiper)return l.startX=h,void(l.startY=f);if(!n.allowTouchMove)return n.allowClick=!1,void(data.isTouched&&(U.extend(l,{startX:h,startY:f,currentX:h,currentY:f}),data.touchStartTime=U.now()));if(data.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(f<l.startY&&n.translate<=n.maxTranslate()||f>l.startY&&n.translate>=n.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(h<l.startX&&n.translate<=n.maxTranslate()||h>l.startX&&n.translate>=n.minTranslate())return;if(data.isTouchEvent&&e.activeElement&&d.target===e.activeElement&&r(d.target).is(data.formElements))return data.isMoved=!0,void(n.allowClick=!1);if(data.allowTouchCallbacks&&n.emit("touchMove",d),!(d.targetTouches&&d.targetTouches.length>1)){l.currentX=h,l.currentY=f;var v,m=l.currentX-l.startX,y=l.currentY-l.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(m,2)+Math.pow(y,2))<n.params.threshold))if(void 0===data.isScrolling&&(n.isHorizontal()&&l.currentY===l.startY||n.isVertical()&&l.currentX===l.startX?data.isScrolling=!1:m*m+y*y>=25&&(v=180*Math.atan2(Math.abs(y),Math.abs(m))/Math.PI,data.isScrolling=n.isHorizontal()?v>o.touchAngle:90-v>o.touchAngle)),data.isScrolling&&n.emit("touchMoveOpposite",d),void 0===data.startMoving&&(l.currentX===l.startX&&l.currentY===l.startY||(data.startMoving=!0)),data.isScrolling)data.isTouched=!1;else if(data.startMoving){n.allowClick=!1,d.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&d.stopPropagation(),data.isMoved||(o.loop&&n.loopFix(),data.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),data.allowMomentumBounce
vendor: 1,100 bytes, line 2
2=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",d)),n.emit("sliderMove",d),data.isMoved=!0;var w=n.isHorizontal()?m:y;l.diff=w,w*=o.touchRatio,c&&(w=-w),n.swipeDirection=w>0?"prev":"next",data.currentTranslate=w+data.startTranslate;var T=!0,_=o.resistanceRatio;if(o.touchReleaseOnEdges&&(_=0),w>0&&data.currentTranslate>n.minTranslate()?(T=!1,o.resistance&&(data.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+data.startTranslate+w,_))):w<0&&data.currentTranslate<n.maxTranslate()&&(T=!1,o.resistance&&(data.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-data.startTranslate-w,_))),T&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),o.threshold>0){if(!(Math.abs(w)>o.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);
vendor: 5,454 bytes, line 2
2if(!data.allowThresholdMove)return data.allowThresholdMove=!0,l.startX=l.currentX,l.startY=l.currentY,data.currentTranslate=data.startTranslate,void(l.diff=n.isHorizontal()?l.currentX-l.startX:l.currentY-l.startY)}o.followFinger&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&(0===data.velocities.length&&data.velocities.push({position:l[n.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:l[n.isHorizontal()?"currentX":"currentY"],time:U.now()})),n.updateProgress(data.currentTranslate),n.setTranslate(data.currentTranslate))}}}}else data.startMoving&&data.isScrolling&&n.emit("touchMoveOpposite",d)}function Ve(e){var t=this,data=t.touchEventsData,n=t.params,r=t.touches,o=t.rtlTranslate,l=t.$wrapperEl,c=t.slidesGrid,d=t.snapGrid,h=e;if(h.originalEvent&&(h=h.originalEvent),data.allowTouchCallbacks&&t.emit("touchEnd",h),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&n.grabCursor&&t.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);n.grabCursor&&data.isMoved&&data.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var f,v=U.now(),m=v-data.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap",h),m<300&&v-data.lastClickTime>300&&(data.clickTimeout&&clearTimeout(data.clickTimeout),data.clickTimeout=U.nextTick(function(){t&&!t.destroyed&&t.emit("click",h)},300)),m<300&&v-data.lastClickTime<300&&(data.clickTimeout&&clearTimeout(data.clickTimeout),t.emit("doubleTap",h))),data.lastClickTime=U.now(),U.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!data.isTouched||!data.isMoved||!t.swipeDirection||0===r.diff||data.currentTranslate===data.startTranslate)return data.isTouched=!1,data.isMoved=!1,void(data.startMoving=!1);if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,f=n.followFinger?o?t.translate:-t.translate:-data.currentTranslate,n.freeMode){if(f<-t.minTranslate())return void t.slideTo(t.activeIndex);if(f>-t.maxTranslate())return void(t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(data.velocities.length>1){var y=data.velocities.pop(),w=data.velocities.pop(),T=y.position-w.position,time=y.time-w.time;t.velocity=T/time,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(time>150||U.now()-y.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,data.velocities.length=0;var _=1e3*n.freeModeMomentumRatio,C=t.velocity*_,E=t.translate+C;o&&(E=-E);var x,S,k=!1,M=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(E<t.maxTranslate())n.freeModeMomentumBounce?(E+t.maxTranslate()<-M&&(E=t.maxTranslate()-M),x=t.maxTranslate(),k=!0,data.allowMomentumBounce=!0):E=t.maxTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(E>t.minTranslate())n.freeModeMomentumBounce?(E-t.minTranslate()>M&&(E=t.minTranslate()+M),x=t.minTranslate(),k=!0,data.allowMomentumBounce=!0):E=t.minTranslate(),n.loop&&n.centeredSlides&&(S=!0);else if(n.freeModeSticky){for(var P,O=0;O<d.length;O+=1)if(d[O]>-E){P=O;break}E=-(E=Math.abs(d[P]-E)<Math.abs(d[P-1]-E)||"next"===t.swipeDirection?d[P]:d[P-1])}if(S&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)_=o?Math.abs((-E-t.translate)/t.velocity):Math.abs((E-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&k?(t.updateProgress(x),t.setTransition(_),t.setTranslate(E),t.transitionStart(!0,t.swipeDirection),t.animating=!0,l.transitionEnd(function(){t&&!t.destroyed&&data.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(x),l.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(E),t.setTransition(_),t.setTranslate(E),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,l.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(E),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();(!n.freeModeMomentum||m>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var j=0,A=t.slidesSizesGrid[0],i=0;i<c.length;i+=n.slidesPerGroup)void 0!==c[i+n.slidesPerGroup]?f>=c[i]&&f<c[i+n.slidesPerGroup]&&(j=i,A=c[i+n.slidesPerGroup]-c[i]):f>=c[i]&&(j=i,A=c[c.length-1]-c[c.length-2]);var I=(f-c[j])/A;if(m>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(I>=n.longSwipesRatio?t.slideTo(j+n.slidesPerGroup):t.slideTo(j)),"prev"===t.swipeDirection&&(I>1-n.longSwipesRatio?t.slideTo(j+n.slidesPerGroup):t.slideTo(j))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(j+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(j)}}}function Xe(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,o=e.allowSlidePrev,l=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var c=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(c),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);
2e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&l!==e.snapGrid&&e.checkOverflow()}}function We(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Ye(){var t=this,n=t.params,r=t.touchEvents,o=t.el,l=t.wrapperEl;t.onTouchStart=Fe.bind(t),t.onTouchMove=He.bind(t),t.onTouchEnd=Ve.bind(t),t.onClick=We.bind(t);var c="container"===n.touchEventsTarget?o:l,d=!!n.nested;if(K.touch||!K.pointerEvents&&!K.prefixedPointerEvents){if(K.touch){var h=!("touchstart"!==r.start||!K.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};c.addEventListener(r.start,t.onTouchStart,h),c.addEventListener(r.move,t.onTouchMove,K.passiveListener?{passive:!1,capture:d}:d),c.addEventListener(r.end,t.onTouchEnd,h)}(n.simulateTouch&&!$e.ios&&!$e.android||n.simulateTouch&&!K.touch&&$e.ios)&&(c.addEventListener("mousedown",t.onTouchStart,!1),e.addEventListener("mousemove",t.onTouchMove,d),e.addEventListener("mouseup",t.onTouchEnd,!1))}else c.addEventListener(r.start,t.onTouchStart,!1),e.addEventListener(r.move,t.onTouchMove,d),e.addEventListener(r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&c.addEventListener("click",t.onClick,!0),t.on($e.ios||$e.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xe,!0)}function qe(){var t=this,n=t.params,r=t.touchEvents,o=t.el,l=t.wrapperEl,c="container"===n.touchEventsTarget?o:l,d=!!n.nested;if(K.touch||!K.pointerEvents&&!K.prefixedPointerEvents){if(K.touch){var h=!("onTouchStart"!==r.start||!K.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};c.removeEventListener(r.start,t.onTouchStart,h),c.removeEventListener(r.move,t.onTouchMove,d),c.removeEventListener(r.end,t.onTouchEnd,h)}(n.simulateTouch&&!$e.ios&&!$e.android||n.simulateTouch&&!K.touch&&$e.ios)&&(c.removeEventListener("mousedown",t.onTouchStart,!1),e.removeEventListener("mousemove",t.onTouchMove,d),e.removeEventListener("mouseup",t.onTouchEnd,!1))}else c.removeEventListener(r.start,t.onTouchStart,!1),e.removeEventListener(r.move,t.onTouchMove,d),e.removeEventListener(r.end,t.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&c.removeEventListener("click",t.onClick,!0),t.off($e.ios||$e.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xe)}function Ge(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides;void 0===r&&(r=0);var o=e.params,l=o.breakpoints;if(l&&(!l||0!==Object.keys(l).length)){var c=e.getBreakpoint(l);if(c&&e.currentBreakpoint!==c){var d=c in l?l[c]:void 0;d&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(param){var e=d[param];void 0!==e&&(d[param]="slidesPerView"!==param||"AUTO"!==e&&"auto"!==e?"slidesPerView"===param?parseFloat(e):parseInt(e,10):"auto")});var h=d||e.originalParams,f=h.direction&&h.direction!==o.direction,v=o.loop&&(h.slidesPerView!==o.slidesPerView||f);f&&n&&e.changeDirection(),U.extend(e.params,h),U.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=c,v&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",h)}}}function Ue(e){var n=this;if(e){var r=!1,o=[];Object.keys(e).forEach(function(e){o.push(e)}),o.sort(function(a,b){return parseInt(a,10)-parseInt(b,10)});for(var i=0;i<o.length;i+=1){var l=o[i];n.params.breakpointsInverse?l<=t.innerWidth&&(r=l):l>=t.innerWidth&&!r&&(r=l)}return r||"max"}}function Ke(){var e=this,t=e.classNames,n=e.params,r=e.rtl,o=e.$el,l=[];l.push("initialized"),l.push(n.direction),n.freeMode&&l.push("free-mode"),K.flexbox||l.push("no-flexbox"),n.autoHeight&&l.push("autoheight"),r&&l.push("rtl"),n.slidesPerColumn>1&&l.push("multirow"),$e.android&&l.push("android"),$e.ios&&l.push("ios"),(J.isIE||J.isEdge)&&(K.pointerEvents||K.prefixedPointerEvents)&&l.push("wp8-"+n.direction),l.forEach(function(e){t.push(n.containerModifierClass+e)}),o.addClass(t.join(" "))}function Je(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" "))}function Ze(e,n,r,o,l,c){var image;function d(){c&&c()}e.complete&&l?d():n?((image=new t.Image).onload=d,image.onerror=d,o&&(image.sizes=o),r&&(image.srcset=r),n&&(image.src=n)):d()}function Qe(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(
2),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var i=0;i<e.imagesToLoad.length;i+=1){var n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}function et(){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())}var tt={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},it={update:ce,translate:fe,transition:ye,slide:Se,loop:Oe,grabCursor:Ie,manipulation:Be,events:{attachEvents:Ye,detachEvents:qe}
2,breakpoints:{setBreakpoint:Ge,getBreakpoint:Ue},checkOverflow:{checkOverflow:et},classes:{addClasses:Ke,removeClasses:Je},images:{loadImage:Ze,preloadImages:Qe}},nt={},at=function(e){function t(){for(var n,o,l,c=[],d=arguments.length;d--;)c[d]=arguments[d];1===c.length&&c[0].constructor&&c[0].constructor===Object?l=c[0]:(o=(n=c)[0],l=n[1]),l||(l={}),l=U.extend({},l),o&&!l.el&&(l.el=o),e.call(this,l),Object.keys(it).forEach(function(e){Object.keys(it[e]).forEach(function(n){t.prototype[n]||(t.prototype[n]=it[e][n])})});var h=this;void 0===h.modules&&(h.modules={}),Object.keys(h.modules).forEach(function(e){var t=h.modules[e];if(t.params){var n=Object.keys(t.params)[0],r=t.params[n];if("object"!=typeof r||null===r)return;if(!(n in l)||!("enabled"in r))return;!0===l[n]&&(l[n]={enabled:!0}),"object"!=typeof l[n]||"enabled"in l[n]||(l[n].enabled=!0),l[n]||(l[n]={enabled:!1})}});var f=U.extend({},tt);h.useModulesParams(f),h.params=U.extend({},f,nt,l),h.originalParams=U.extend({},h.params),h.passedParams=U.extend({},l),h.$=r;var v=r(h.params.el);if(o=v[0]){if(v.length>1){var m=[];return v.each(function(e,n){var r=U.extend({},l,{el:n});m.push(new t(r))}),m}o.swiper=h,v.data("swiper",h);var y,w,T=v.children("."+h.params.wrapperClass);return U.extend(h,{$el:v,el:o,$wrapperEl:T,wrapperEl:T[0],classNames:[],slides:r(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===h.params.direction},isVertical:function(){return"vertical"===h.params.direction},rtl:"rtl"===o.dir.toLowerCase()||"rtl"===v.css("direction"),rtlTranslate:"horizontal"===h.params.direction&&("rtl"===o.dir.toLowerCase()||"rtl"===v.css("direction")),wrongRTL:"-webkit-box"===T.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:h.params.allowSlideNext,allowSlidePrev:h.params.allowSlidePrev,touchEvents:(y=["touchstart","touchmove","touchend"],w=["mousedown","mousemove","mouseup"],K.pointerEvents?w=["pointerdown","pointermove","pointerup"]:K.prefixedPointerEvents&&(w=["MSPointerDown","MSPointerMove","MSPointerUp"]),h.touchEventsTouch={start:y[0],move:y[1],end:y[2]},h.touchEventsDesktop={start:w[0],move:w[1],end:w[2]},K.touch||!h.params.simulateTouch?h.touchEventsTouch:h.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:U.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:h.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),h.useModules(),h.params.init&&h.init(),h}}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return t.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,o=e.size,l=e.activeIndex,c=1;if(t.centeredSlides){for(var d,h=n[l].swiperSlideSize,i=l+1;i<n.length;i+=1)n[i]&&!d&&(c+=1,(h+=n[i].swiperSlideSize)>o&&(d=!0));for(var f=l-1;f>=0;f-=1)n[f]&&!d&&(c+=1,(h+=n[f].swiperSlideSize)>o&&(d=!0))}else for(var v=l+1;v<n.length;v+=1)r[v]-r[l]<o&&(c+=1);return c},t.prototype.update=function(){var e=this;if(e&&!e.destroyed){var t=e.snapGrid,n=e.params;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),e.params.autoHeight&&e.updateAutoHeight()):(("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},t.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r+" wp8-"+r).addClass(""+n.params.containerModifierClass+e),(J.isIE||J.isEdge)&&(K.pointerEvents||K.prefixedPointerEvents)&&n.$el.addClass(n.params.containerModifierClass+"wp8-"+e),n.params.direction=e,n.slides.each(function(t,n){"vertical"===e?n.style.width="":n.style.height=""}),n.emit("changeDirection"),t&&n.update()),n},t.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(
vendor: 4,110 bytes, line 2
2),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},t.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,r=n.params,o=n.$el,l=n.$wrapperEl,c=n.slides;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),o.removeAttr("style"),l.removeAttr("style"),c&&c.length&&c.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(function(e){n.off(e)}),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),U.deleteProps(n)),n.destroyed=!0),null},t.extendDefaults=function(e){U.extend(nt,e)},n.extendedDefaults.get=function(){return nt},n.defaults.get=function(){return tt},n.Class.get=function(){return e},n.$.get=function(){return r},Object.defineProperties(t,n),t}(Z),st={name:"device",proto:{device:$e},static:{device:$e}},ot={name:"support",proto:{support:K},static:{support:K}},lt={name:"browser",proto:{browser:J},static:{browser:J}},ct={name:"resize",create:function(){var e=this;U.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;t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},ut={func:t.MutationObserver||t.WebkitMutationObserver,attach:function(e,n){void 0===n&&(n={});var r=this,o=new(0,ut.func)(function(e){if(1!==e.length){var n=function(){r.emit("observerUpdate",e[0])};t.requestAnimationFrame?t.requestAnimationFrame(n):t.setTimeout(n,0)}else r.emit("observerUpdate",e[0])});o.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),r.observer.observers.push(o)},init:function(){var e=this;if(K.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=[]}},ht={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;U.extend(e,{observer:{init:ut.init.bind(e),attach:ut.attach.bind(e),destroy:ut.destroy.bind(e),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},pt={update:function(e){var t=this,n=t.params,r=n.slidesPerView,o=n.slidesPerGroup,l=n.centeredSlides,c=t.params.virtual,d=c.addSlidesBefore,h=c.addSlidesAfter,f=t.virtual,v=f.from,m=f.to,y=f.slides,w=f.slidesGrid,T=f.renderSlide,_=f.offset;t.updateActiveIndex();var C,E,x,S=t.activeIndex||0;C=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",l?(E=Math.floor(r/2)+o+d,x=Math.floor(r/2)+o+h):(E=r+(o-1)+d,x=o+h);var k=Math.max((S||0)-x,0),M=Math.min((S||0)+E,y.length-1),P=(t.slidesGrid[k]||0)-(t.slidesGrid[0]||0);function O(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(U.extend(t.virtual,{from:k,to:M,offset:P,slidesGrid:t.slidesGrid}),v===k&&m===M&&!e)return t.slidesGrid!==w&&P!==_&&t.slides.css(C,P+"px"),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:P,from:k,to:M,slides:function(){for(var e=[],i=k;i<=M;
2i+=1)e.push(y[i]);return e}()}),void O();var j=[],A=[];if(e)t.$wrapperEl.find("."+t.params.slideClass).remove();else for(var i=v;i<=m;i+=1)(i<k||i>M)&&t.$wrapperEl.find("."+t.params.slideClass+'[data-swiper-slide-index="'+i+'"]').remove();for(var I=0;I<y.length;I+=1)I>=k&&I<=M&&(void 0===m||e?A.push(I):(I>m&&A.push(I),I<v&&j.push(I)));A.forEach(function(e){t.$wrapperEl.append(T(y[e],e))}),j.sort(function(a,b){return b-a}).forEach(function(e){t.$wrapperEl.prepend(T(y[e],e))}),t.$wrapperEl.children(".swiper-slide").css(C,P+"px"),O()},renderSlide:function(e,t){var n=this,o=n.params.virtual;if(o.cache&&n.virtual.cache[t])return n.virtual.cache[t];var l=o.renderSlide?r(o.renderSlide.call(n,e,t)):r('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+t+'">'+e+"</div>");return l.attr("data-swiper-slide-index")||l.attr("data-swiper-slide-index",t),o.cache&&(n.virtual.cache[t]=l),l},appendSlide:function(e){var t=this;if("object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide:function(e){var t=this,n=t.activeIndex,r=n+1,o=1;if(Array.isArray(e)){for(var i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.unshift(e[i]);r=n+e.length,o=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var l=t.virtual.cache,c={};Object.keys(l).forEach(function(e){c[parseInt(e,10)+o]=l[e]}),t.virtual.cache=c}t.virtual.update(!0),t.slideTo(r,0)},removeSlide:function(e){var t=this;if(null!=e){var n=t.activeIndex;if(Array.isArray(e))for(var i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},ft={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;U.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};U.extend(e.params,t),U.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update(
2)}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},vt={handle:function(n){var r=this,o=r.rtlTranslate,l=n;l.originalEvent&&(l=l.originalEvent);var c=l.keyCode||l.charCode;if(!r.allowSlideNext&&(r.isHorizontal()&&39===c||r.isVertical()&&40===c||34===c))return!1;if(!r.allowSlidePrev&&(r.isHorizontal()&&37===c||r.isVertical()&&38===c||33===c))return!1;if(!(l.shiftKey||l.altKey||l.ctrlKey||l.metaKey||e.activeElement&&e.activeElement.nodeName&&("input"===e.activeElement.nodeName.toLowerCase()||"textarea"===e.activeElement.nodeName.toLowerCase()))){if(r.params.keyboard.onlyInViewport&&(33===c||34===c||37===c||39===c||38===c||40===c)){var d=!1;if(r.$el.parents("."+r.params.slideClass).length>0&&0===r.$el.parents("."+r.params.slideActiveClass).length)return;var h=t.innerWidth,f=t.innerHeight,v=r.$el.offset();o&&(v.left-=r.$el[0].scrollLeft);for(var m=[[v.left,v.top],[v.left+r.width,v.top],[v.left,v.top+r.height],[v.left+r.width,v.top+r.height]],i=0;i<m.length;i+=1){var y=m[i];y[0]>=0&&y[0]<=h&&y[1]>=0&&y[1]<=f&&(d=!0)}if(!d)return}r.isHorizontal()?(33!==c&&34!==c&&37!==c&&39!==c||(l.preventDefault?l.preventDefault():l.returnValue=!1),(34!==c&&39!==c||o)&&(33!==c&&37!==c||!o)||r.slideNext(),(33!==c&&37!==c||o)&&(34!==c&&39!==c||!o)||r.slidePrev()):(33!==c&&34!==c&&38!==c&&40!==c||(l.preventDefault?l.preventDefault():l.returnValue=!1),34!==c&&40!==c||r.slideNext(),33!==c&&38!==c||r.slidePrev()),r.emit("keyPress",c)}},enable:function(){var t=this;t.keyboard.enabled||(r(e).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(r(e).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},gt={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;U.extend(e,{keyboard:{enabled:!1,enable:vt.enable.bind(e),disable:vt.disable.bind(e),handle:vt.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}};function mt(){var t="onwheel",n=t in e;if(!n){var element=e.createElement("div");element.setAttribute(t,"return;"),n="function"==typeof element[t]}return!n&&e.implementation&&e.implementation.hasFeature&&!0!==e.implementation.hasFeature("","")&&(n=e.implementation.hasFeature("Events.wheel","3.0")),n}var yt={lastScrollTime:U.now(),event:t.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":mt()?"wheel":"mousewheel",normalize:function(e){var t=10,n=40,r=800,o=0,l=0,c=0,d=0;return"detail"in e&&(l=e.detail),"wheelDelta"in e&&(l=-e.wheelDelta/120),"wheelDeltaY"in e&&(l=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(o=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(o=l,l=0),c=o*t,d=l*t,"deltaY"in e&&(d=e.deltaY),"deltaX"in e&&(c=e.deltaX),(c||d)&&e.deltaMode&&(1===e.deltaMode?(c*=n,d*=n):(c*=r,d*=r)),c&&!o&&(o=c<1?-1:1),d&&!l&&(l=d<1?-1:1),{spinX:o,spinY:l,pixelX:c,pixelY:d}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var n=e,r=this,o=r.params.mousewheel;if(!r.mouseEntered&&!o.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var l=0,c=r.rtlTranslate?-1:1,data=yt.normalize(n);if(o.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(data.pixelX)>Math.abs(data.pixelY)))return!0;l=data.pixelX*c}else{if(!(Math.abs(data.pixelY)>Math.abs(data.pixelX)))return!0;l=data.pixelY}else l=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*c:-data.pixelY;if(0===l)return!0;if(o.invert&&(l=-l),r.params.freeMode){r.params.loop&&r.loopFix();var d=r.getTranslate()+l*o.sensitivity,h=r.isBeginning,f=r.isEnd;if(d>=r.minTranslate()&&(d=r.minTranslate()),d<=r.maxTranslate()&&(d=r.maxTranslate()),r.setTransition(0),r.setTranslate(d),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!h&&r.isBeginning||!f&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky&&(clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=U.nextTick(function(){r.slideToClosest()},300)),r.emit("scroll",n),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),d===r.minTranslate()||d===r.maxTranslate())return!0}else{if(U.now()-r.mousewheel.lastScrollTime>60)if(l<0)if(r.isEnd&&!r.params.loop||r.animating){if(o.releaseOnEdges)return!0}else r.slideNext(),r.emit("scroll",n);else if(r.isBeginning&&!r.params.loop||r.animating){if(o.releaseOnEdges)return!0}else r.slidePrev(),r.emit("scroll",n);r.mousewheel.lastScrollTime=(new t.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){var e=this;if(!yt.event)return!1;if(e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=r(e.params.mousewheel.eventsTarged)),t.on("mouseenter",e.mousewheel.handleMouseEnter),t.on("mouseleave",e.mousewheel.handleMouseLeave),t.on(yt.event,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable:function(){var e=this;if(!yt.event)return!1;if(!e.mousewheel.enabled)return!1;var t=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(t=r(e.params.mousewheel.eventsTarged)),t.off(yt.event,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}},bt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,r=n.$nextEl,o=n.$prevEl;o&&o.length>0&&(e.isBeginning?o.addClass(t.disabledClass):o.removeClass(t.disabledClass),o[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),r&&r.length>0&&(e.isEnd?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,o=n.params.navigation;(o.nextEl||o.prevEl)&&(o.nextEl&&(e=r(o.nextEl),n.params.uniqueNavElements&&"string"==typeof o.nextEl&&e.length>1&&1===n.$el.find(o.nextEl).length&&(e=n.$el.find(o.nextEl))),o.prevEl&&(t=r(o.prevEl),n.params.uniqueNavElements&&"string"==typeof o.prevEl&&t.length>1&&1===n.$el.find(o.prevEl).length&&(t=n.$el.find(o.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),U.extend(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;
vendor: 5,935 bytes, line 2
2n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}},wt={update:function(){var e=this,t=e.rtl,n=e.params.pagination;if(n.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var o,l=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,c=e.pagination.$el,d=e.params.loop?Math.ceil((l-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?((o=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup))>l-1-2*e.loopedSlides&&(o-=l-2*e.loopedSlides),o>d-1&&(o-=d),o<0&&"bullets"!==e.params.paginationType&&(o=d+o)):o=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){var h,f,v,m=e.pagination.bullets;if(n.dynamicBullets&&(e.pagination.bulletSize=m.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),c.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=o-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),h=o-e.pagination.dynamicBulletIndex,v=((f=h+(Math.min(m.length,n.dynamicMainBullets)-1))+h)/2),m.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),c.length>1)m.each(function(e,t){var l=r(t),c=l.index();c===o&&l.addClass(n.bulletActiveClass),n.dynamicBullets&&(c>=h&&c<=f&&l.addClass(n.bulletActiveClass+"-main"),c===h&&l.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),c===f&&l.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))});else if(m.eq(o).addClass(n.bulletActiveClass),n.dynamicBullets){for(var y=m.eq(h),w=m.eq(f),i=h;i<=f;i+=1)m.eq(i).addClass(n.bulletActiveClass+"-main");y.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),w.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}if(n.dynamicBullets){var T=Math.min(m.length,n.dynamicMainBullets+4),_=(e.pagination.bulletSize*T-e.pagination.bulletSize)/2-v*e.pagination.bulletSize,C=t?"right":"left";m.css(e.isHorizontal()?C:"top",_+"px")}}if("fraction"===n.type&&(c.find("."+n.currentClass).text(n.formatFractionCurrent(o+1)),c.find("."+n.totalClass).text(n.formatFractionTotal(d))),"progressbar"===n.type){var E;E=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";var x=(o+1)/d,S=1,k=1;"horizontal"===E?S=x:k=x,c.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+S+") scaleY("+k+")").transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(c.html(n.renderCustom(e,o+1,d)),e.emit("paginationRender",e,c[0])):e.emit("paginationUpdate",e,c[0]),c[e.params.watchOverflow&&e.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 n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,o="";if("bullets"===t.type){for(var l=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,i=0;i<l;i+=1)t.renderBullet?o+=t.renderBullet.call(e,i,t.bulletClass):o+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";r.html(o),e.pagination.bullets=r.find("."+t.bulletClass)}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',r.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',r.html(o)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var n=r(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&1===e.$el.find(t.el).length&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(""+t.modifierClass+t.type+"-dynamic"),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click","."+t.bulletClass,function(t){t.preventDefault();var n=r(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)}),U.extend(e.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 n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click","."+t.bulletClass)}}},Tt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,progress=e.progress,r=t.dragSize,o=t.trackSize,l=t.$dragEl,c=t.$el,d=e.params.scrollbar,h=r,f=(o-r)*progress;n?(f=-f)>0?(h=r-f,f=0):-f+r>o&&(h=o+f):f<0?(h=r+f,f=0):f+r>o&&(h=o-f),e.isHorizontal()?(K.transforms3d?l.transform("translate3d("+f+"px, 0, 0)"):l.transform("translateX("+f+"px)"),l[0].style.width=h+"px"):(K.transforms3d?l.transform("translate3d(0px, "+f+"px, 0)"):l.transform("translateY("+f+"px)"),l[0].style.height=h+"px"),d.hide&&(clearTimeout(e.scrollbar.timeout),c[
vendor: 7,485 bytes, line 2
20].style.opacity=1,e.scrollbar.timeout=setTimeout(function(){c[0].style.opacity=0,c.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,n=t.$dragEl,r=t.$el;n[0].style.width="",n[0].style.height="";var o,l=e.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,c=e.size/e.virtualSize,d=c*(l/e.size);o="auto"===e.params.scrollbar.dragSize?l*c:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=o+"px":n[0].style.height=o+"px",r[0].style.display=c>=1?"none":"",e.params.scrollbar.hide&&(r[0].style.opacity=0),U.extend(t,{trackSize:l,divider:c,moveDivider:d,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,n=this,r=n.scrollbar,o=n.rtlTranslate,l=r.$el,c=r.dragSize,d=r.trackSize,h=r.dragStartPos;t=(r.getPointerPosition(e)-l.offset()[n.isHorizontal()?"left":"top"]-(null!==h?h:c/2))/(d-c),t=Math.max(Math.min(t,1),0),o&&(t=1-t);var f=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*t;n.updateProgress(f),n.setTranslate(f),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar,o=t.$wrapperEl,l=r.$el,c=r.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===c[0]||e.target===c?r.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.transition(100),c.transition(100),r.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),l.transition(0),n.hide&&l.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,r=t.$wrapperEl,o=n.$el,l=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),r.transition(0),o.transition(0),l.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=U.nextTick(function(){r.css("opacity",0),r.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.touchEventsTouch,o=t.touchEventsDesktop,l=t.params,c=n.$el[0],d=!(!K.passiveListener||!l.passiveListeners)&&{passive:!1,capture:!1},h=!(!K.passiveListener||!l.passiveListeners)&&{passive:!0,capture:!1};K.touch?(c.addEventListener(r.start,t.scrollbar.onDragStart,d),c.addEventListener(r.move,t.scrollbar.onDragMove,d),c.addEventListener(r.end,t.scrollbar.onDragEnd,h)):(c.addEventListener(o.start,t.scrollbar.onDragStart,d),e.addEventListener(o.move,t.scrollbar.onDragMove,d),e.addEventListener(o.end,t.scrollbar.onDragEnd,h))}},disableDraggable:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.touchEventsTouch,o=t.touchEventsDesktop,l=t.params,c=n.$el[0],d=!(!K.passiveListener||!l.passiveListeners)&&{passive:!1,capture:!1},h=!(!K.passiveListener||!l.passiveListeners)&&{passive:!0,capture:!1};K.touch?(c.removeEventListener(r.start,t.scrollbar.onDragStart,d),c.removeEventListener(r.move,t.scrollbar.onDragMove,d),c.removeEventListener(r.end,t.scrollbar.onDragEnd,h)):(c.removeEventListener(o.start,t.scrollbar.onDragStart,d),e.removeEventListener(o.move,t.scrollbar.onDragMove,d),e.removeEventListener(o.end,t.scrollbar.onDragEnd,h))}},init:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.$el,o=e.params.scrollbar,l=r(o.el);e.params.uniqueNavElements&&"string"==typeof o.el&&l.length>1&&1===n.find(o.el).length&&(l=n.find(o.el));var c=l.find("."+e.params.scrollbar.dragClass);0===c.length&&(c=r('<div class="'+e.params.scrollbar.dragClass+'"></div>'),l.append(c)),U.extend(t,{$el:l,el:l[0],$dragEl:c,dragEl:c[0]}),o.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},_t={setTransform:function(e,progress){var t=this,n=t.rtl,o=r(e),l=n?-1:1,p=o.attr("data-swiper-parallax")||"0",c=o.attr("data-swiper-parallax-x"),d=o.attr("data-swiper-parallax-y"),h=o.attr("data-swiper-parallax-scale"),f=o.attr("data-swiper-parallax-opacity");if(c||d?(c=c||"0",d=d||"0"):t.isHorizontal()?(c=p,d="0"):(d=p,c="0"),c=c.indexOf("%")>=0?parseInt(c,10)*progress*l+"%":c*progress*l+"px",d=d.indexOf("%")>=0?parseInt(d,10)*progress+"%":d*progress+"px",null!=f){var v=f-(f-1)*(1-Math.abs(progress));o[0].style.opacity=v}if(null==h)o.transform("translate3d("+c+", "+d+", 0px)");else{var m=h-(h-1)*(1-Math.abs(progress));o.transform("translate3d("+c+", "+d+", 0px) scale("+m+")")}},setTranslate:function(){var e=this,t=e.$el,n=e.slides,progress=e.progress,o=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,n){e.parallax.setTransform(n,progress)}),n.each(function(t,n){var l=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(l+=Math.ceil(t/2)-progress*(o.length-1)),l=Math.min(Math.max(l,-1),1),r(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(t,n){e.parallax.setTransform(n,l)})})},setTransition:function(e){void 0===e&&(e=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,n){var o=r(n),l=parseInt(o.attr("data-swiper-parallax-duration"),10)||e;0===e&&(l=0),o.transition(l)})}},Ct={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,o=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(r-t,2)+Math.pow(o-n,2))},onGestureStart:function(e){var t=this,n=t.params.zoom,o=t.zoom,l=o.gesture;if(o.fakeGestureTouched=!1,o.fakeGestureMoved=!1,!K.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;o.fakeGestureTouched=!0,l.scaleStart=Ct.getDistanceBetweenTouches(e)}l.$slideEl&&l.$slideEl.length||(l.$slideEl=r(e.target).closest(".swiper-slide"),0===l.$slideEl.length&&(l.$slideEl=t.slides.eq(t.activeIndex)),l.$imageEl=l.$slideEl.find("img, svg, canvas"),l.$imageWrapEl=l.$imageEl.parent("."+n.containerClass),l.maxRatio=l.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==l.$imageWrapEl.length)?(l.$imageEl.transition(0),t.zoom.isScaling=!0):l.$imageEl=void 0},onGestureChange:function(e){var t=this,n=t.params.zoom,r=t.zoom,o=r.gesture;if(!K.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;r.fakeGestureMoved=!0,o.scaleMove=Ct.getDistanceBetweenTouches(e)}o.$imageEl&&0!==o.$imageEl.length&&(K.gestures?r.scale=e.scale*r.currentScale:r.scale=o.scaleMove/o.scaleStart*r.currentScale,r.scale>o.maxRatio&&(r.scale=o.maxRatio-1+Math.pow(r.scale-o.maxRatio+1,.5)),r.scale<n.minRatio&&(r.scale=n.minRatio+1-Math.pow(n.minRatio-r.scale+1,.5)),o.$imageEl.transform("translate3d(0,
20,0) scale("+r.scale+")"))},onGestureEnd:function(e){var t=this,n=t.params.zoom,r=t.zoom,o=r.gesture;if(!K.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!$e.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}o.$imageEl&&0!==o.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,o.maxRatio),n.minRatio),o.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+r.scale+")"),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(o.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,n=t.gesture,image=t.image;n.$imageEl&&0!==n.$imageEl.length&&(image.isTouched||($e.android&&e.preventDefault(),image.isTouched=!0,image.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,r=n.gesture,image=n.image,o=n.velocity;if(r.$imageEl&&0!==r.$imageEl.length&&(t.allowClick=!1,image.isTouched&&r.$slideEl)){image.isMoved||(image.width=r.$imageEl[0].offsetWidth,image.height=r.$imageEl[0].offsetHeight,image.startX=U.getTranslate(r.$imageWrapEl[0],"x")||0,image.startY=U.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),t.rtl&&(image.startX=-image.startX,image.startY=-image.startY));var l=image.width*n.scale,c=image.height*n.scale;if(!(l<r.slideWidth&&c<r.slideHeight)){if(image.minX=Math.min(r.slideWidth/2-l/2,0),image.maxX=-image.minX,image.minY=Math.min(r.slideHeight/2-c/2,0),image.maxY=-image.minY,image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!image.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(image.minX)===Math.floor(image.startX)&&image.touchesCurrent.x<image.touchesStart.x||Math.floor(image.maxX)===Math.floor(image.startX)&&image.touchesCurrent.x>image.touchesStart.x))return void(image.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.y<image.touchesStart.y||Math.floor(image.maxY)===Math.floor(image.startY)&&image.touchesCurrent.y>image.touchesStart.y))return void(image.isTouched=!1)}e.preventDefault(),e.stopPropagation(),image.isMoved=!0,image.currentX=image.touchesCurrent.x-image.touchesStart.x+image.startX,image.currentY=image.touchesCurrent.y-image.touchesStart.y+image.startY,image.currentX<image.minX&&(image.currentX=image.minX+1-Math.pow(image.minX-image.currentX+1,.8)),image.currentX>image.maxX&&(image.currentX=image.maxX-1+Math.pow(image.currentX-image.maxX+1,.8)),image.currentY<image.minY&&(image.currentY=image.minY+1-Math.pow(image.minY-image.currentY+1,.8)),image.currentY>image.maxY&&(image.currentY=image.maxY-1+Math.pow(image.currentY-image.maxY+1,.8)),o.prevPositionX||(o.prevPositionX=image.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=image.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(image.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(image.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(image.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(image.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=image.touchesCurrent.x,o.prevPositionY=image.touchesCurrent.y,o.prevTime=Date.now(),r.$imageWrapEl.transform("translate3d("+image.currentX+"px, "+image.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,image=e.image,n=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!image.isTouched||!image.isMoved)return image.isTouched=!1,void(image.isMoved=!1);image.isTouched=!1,image.isMoved=!1;var r=300,o=300,l=n.x*r,c=image.currentX+l,d=n.y*o,h=image.currentY+d;0!==n.x&&(r=Math.abs((c-image.currentX)/n.x)),0!==n.y&&(o=Math.abs((h-image.currentY)/n.y));var f=Math.max(r,o);image.currentX=c,image.currentY=h;var v=image.width*e.scale,m=image.height*e.scale;image.minX=Math.min(t.slideWidth/2-v/2,0),image.maxX=-image.minX,image.minY=Math.min(t.slideHeight/2-m/2,0),image.maxY=-image.minY,image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX),image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY),t.$imageWrapEl.transition(f).transform("translate3d("+image.currentX+"px, "+image.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,
20,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,n,o,l,c,d,h,f,v,m,y,w,T,_,C,E,x=this,S=x.zoom,k=x.params.zoom,M=S.gesture,image=S.image;M.$slideEl||(M.$slideEl=x.clickedSlide?r(x.clickedSlide):x.slides.eq(x.activeIndex),M.$imageEl=M.$slideEl.find("img, svg, canvas"),M.$imageWrapEl=M.$imageEl.parent("."+k.containerClass)),M.$imageEl&&0!==M.$imageEl.length&&(M.$slideEl.addClass(""+k.zoomedSlideClass),void 0===image.touchesStart.x&&e?(t="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,n="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(t=image.touchesStart.x,n=image.touchesStart.y),S.scale=M.$imageWrapEl.attr("data-swiper-zoom")||k.maxRatio,S.currentScale=M.$imageWrapEl.attr("data-swiper-zoom")||k.maxRatio,e?(C=M.$slideEl[0].offsetWidth,E=M.$slideEl[0].offsetHeight,o=M.$slideEl.offset().left+C/2-t,l=M.$slideEl.offset().top+E/2-n,h=M.$imageEl[0].offsetWidth,f=M.$imageEl[0].offsetHeight,v=h*S.scale,m=f*S.scale,T=-(y=Math.min(C/2-v/2,0)),_=-(w=Math.min(E/2-m/2,0)),(c=o*S.scale)<y&&(c=y),c>T&&(c=T),(d=l*S.scale)<w&&(d=w),d>_&&(d=_)):(c=0,d=0),M.$imageWrapEl.transition(300).transform("translate3d("+c+"px, "+d+"px,0)"),M.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+S.scale+")"))},out:function(){var e=this,t=e.zoom,n=e.params.zoom,o=t.gesture;o.$slideEl||(o.$slideEl=e.clickedSlide?r(e.clickedSlide):e.slides.eq(e.activeIndex),o.$imageEl=o.$slideEl.find("img, svg, canvas"),o.$imageWrapEl=o.$imageEl.parent("."+n.containerClass)),o.$imageEl&&0!==o.$imageEl.length&&(t.scale=1,t.currentScale=1,o.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),o.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),o.$slideEl.removeClass(""+n.zoomedSlideClass),o.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!K.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};K.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),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 n=!("touchstart"!==e.touchEvents.start||!K.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};K.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Et={loadInSlide:function(e,t){void 0===t&&(t=!0);var n=this,o=n.params.lazy;if(void 0!==e&&0!==n.slides.length){var l=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+e+'"]'):n.slides.eq(e),c=l.find("."+o.elementClass+":not(."+o.loadedClass+"):not(."+o.loadingClass+")");!l.hasClass(o.elementClass)||l.hasClass(o.loadedClass)||l.hasClass(o.loadingClass)||(c=c.add(l[0])),0!==c.length&&c.each(function(e,c){var d=r(c);d.addClass(o.loadingClass);var h=d.attr("data-background"),f=d.attr("data-src"),v=d.attr("data-srcset"),m=d.attr("data-sizes");n.loadImage(d[0],f||h,v,m,!1,function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(h?(d.css("background-image",'url("'+h+'")'),d.removeAttr("data-background")):(v&&(d.attr("srcset",v),d.removeAttr("data-srcset")),m&&(d.attr("sizes",m),d.removeAttr("data-sizes")),f&&(d.attr("src",f),d.removeAttr("data-src"))),d.addClass(o.loadedClass).removeClass(o.loadingClass),l.find("."+o.preloaderClass).remove(),n.params.loop&&t){var e=l.attr("data-swiper-slide-index");if(l.hasClass(n.params.slideDuplicateClass)){var r=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(r.index(),!1)}else{var c=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(c.index(),!1)}}n.emit("lazyImageReady",l[0],d[0])}}),n.emit("lazyImageLoad",l[0],d[0])})}},load:function(){var e=this,t=e.$wrapperEl,n=e.params,o=e.slides,l=e.activeIndex,c=e.virtual&&n.virtual.enabled,d=n.lazy,h=n.slidesPerView;function f(e){if(c){if(t.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(o[e])return!0;return!1}function v(e){return c?r(e).attr("data-swiper-slide-index"):r(e).index()}
2if("auto"===h&&(h=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children("."+n.slideVisibleClass).each(function(t,n){var o=c?r(n).attr("data-swiper-slide-index"):r(n).index();e.lazy.loadInSlide(o)});else if(h>1)for(var i=l;i<l+h;i+=1)f(i)&&e.lazy.loadInSlide(i);else e.lazy.loadInSlide(l);if(d.loadPrevNext)if(h>1||d.loadPrevNextAmount&&d.loadPrevNextAmount>1){for(var m=d.loadPrevNextAmount,y=h,w=Math.min(l+y+Math.max(m,y),o.length),T=Math.max(l-Math.max(y,m),0),_=l+h;_<w;_+=1)f(_)&&e.lazy.loadInSlide(_);for(var C=T;C<l;C+=1)f(C)&&e.lazy.loadInSlide(C)}else{var E=t.children("."+n.slideNextClass);E.length>0&&e.lazy.loadInSlide(v(E));var x=t.children("."+n.slidePrevClass);x.length>0&&e.lazy.loadInSlide(v(x))}}},xt={LinearSpline:function(e,t){var n,r,o,l,c,d=function(e,t){for(r=-1,n=e.length;n-r>1;)e[o=n+r>>1]<=t?r=o:n=o;return n};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(c=d(this.x,e),l=c-1,(e-this.x[l])*(this.y[c]-this.y[l])/(this.x[c]-this.x[l])+this.y[l]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new xt.LinearSpline(t.slidesGrid,e.slidesGrid):new xt.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){var n,r,o=this,l=o.controller.control;function c(e){var t=o.rtlTranslate?-o.translate:o.translate;"slide"===o.params.controller.by&&(o.controller.getInterpolateFunction(e),r=-o.controller.spline.interpolate(-t)),r&&"container"!==o.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(o.maxTranslate()-o.minTranslate()),r=(t-o.minTranslate())*n+e.minTranslate()),o.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,o),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(l))for(var i=0;i<l.length;i+=1)l[i]!==t&&l[i]instanceof at&&c(l[i]);else l instanceof at&&t!==l&&c(l)},setTransition:function(e,t){var i,n=this,r=n.controller.control;function o(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&U.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof at&&o(r[i]);else r instanceof at&&t!==r&&o(r)}},St={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;U.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:xt.getInterpolateFunction.bind(e),setTranslate:xt.setTranslate.bind(e),setTransition:xt.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 n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition:function(e,t){var n=this;n.controller.control&&n.controller.setTransition(e,t)}}},kt={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,label){return e.attr("aria-label",label),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,n=t.params.a11y;if(13===e.keyCode){var o=r(e.target);t.navigation&&t.navigation.$nextEl&&o.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&o.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&o.is("."+t.params.pagination.bulletClass)&&o[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(e.isBeginning?e.a11y.disableEl(r):e.a11y.enableEl(r)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},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(n,o){var l=r(o);e.a11y.makeElFocusable(l),e.a11y.addElRole(l,"button"),e.a11y.addElLabel(l,t.paginationBulletMessage.replace(/{{index}}/,l.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,n,r=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,r.nextSlideMessage),t.on("key
2down",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,r.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,t,n=this;n.a11y.liveRegion&&n.a11y.liveRegion.length>0&&n.a11y.liveRegion.remove(),n.navigation&&n.navigation.$nextEl&&(e=n.navigation.$nextEl),n.navigation&&n.navigation.$prevEl&&(t=n.navigation.$prevEl),e&&e.off("keydown",n.a11y.onEnterKey),t&&t.off("keydown",n.a11y.onEnterKey),n.pagination&&n.params.pagination.clickable&&n.pagination.bullets&&n.pagination.bullets.length&&n.pagination.$el.off("keydown","."+n.params.pagination.bulletClass,n.a11y.onEnterKey)}},Mt={init:function(){var e=this;if(e.params.history){if(!t.history||!t.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var n=e.history;n.initialized=!0,n.paths=Mt.getPathValues(),(n.paths.key||n.paths.value)&&(n.scrollToSlide(0,n.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||t.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||t.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Mt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=t.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),n=e.length;return{key:e[n-2],value:e[n-1]}},setHistory:function(e,n){var r=this;if(r.history.initialized&&r.params.history.enabled){var o=r.slides.eq(n),l=Mt.slugify(o.attr("data-history"));t.location.pathname.includes(e)||(l=e+"/"+l);var c=t.history.state;c&&c.value===l||(r.params.history.replaceState?t.history.replaceState({value:l},null,l):t.history.pushState({value:l},null,l))}},slugify:function(text){return text.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var r=this;if(t)for(var i=0,o=r.slides.length;i<o;i+=1){var l=r.slides.eq(i);if(Mt.slugify(l.attr("data-history"))===t&&!l.hasClass(r.params.slideDuplicateClass)){var c=l.index();r.slideTo(c,e,n)}}else r.slideTo(0,e,n)}},Pt={onHashCange:function(){var t=this,n=e.location.hash.replace("#","");if(n!==t.slides.eq(t.activeIndex).attr("data-hash")){var r=t.$wrapperEl.children("."+t.params.slideClass+'[data-hash="'+n+'"]').index();if(void 0===r)return;t.slideTo(r)}},setHash:function(){var n=this;if(n.hashNavigation.initialized&&n.params.hashNavigation.enabled)if(n.params.hashNavigation.replaceState&&t.history&&t.history.replaceState)t.history.replaceState(null,null,"#"+n.slides.eq(n.activeIndex).attr("data-hash")||!1);else{var r=n.slides.eq(n.activeIndex),o=r.attr("data-hash")||r.attr("data-history");e.location.hash=o||""}},init:function(){var n=this;if(!(!n.params.hashNavigation.enabled||n.params.history&&n.params.history.enabled)){n.hashNavigation.initialized=!0;var o=e.location.hash.replace("#","");if(o)for(var l=0,i=0,c=n.slides.length;i<c;i+=1){var d=n.slides.eq(i);if((d.attr("data-hash")||d.attr("data-history"))===o&&!d.hasClass(n.params.slideDuplicateClass)){var h=d.index();n.slideTo(h,l,n.params.runCallbacksOnInit,!0)}}n.params.hashNavigation.watchState&&r(t).on("hashchange",n.hashNavigation.onHashCange)}},destroy:function(){var e=this;e.params.hashNavigation.watchState&&r(t).off("hashchange",e.hashNavigation.onHashCange)}},Ot={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=U.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,
vendor: 20,888 bytes, line 2
2!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"))},n)},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())))}},jt={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;e.params.virtualTranslate||(r-=e.translate);var o=0;e.isHorizontal()||(o=r,r=0);var l=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:l}).transform("translate3d("+r+"px, "+o+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var o=!1;n.transitionEnd(function(){if(!o&&t&&!t.destroyed){o=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)r.trigger(e[i])}})}}},At={setTranslate:function(){var e,t=this,n=t.$el,o=t.$wrapperEl,l=t.slides,c=t.width,d=t.height,h=t.rtlTranslate,f=t.size,v=t.params.cubeEffect,m=t.isHorizontal(),y=t.virtual&&t.params.virtual.enabled,w=0;v.shadow&&(m?(0===(e=o.find(".swiper-cube-shadow")).length&&(e=r('<div class="swiper-cube-shadow"></div>'),o.append(e)),e.css({height:c+"px"})):0===(e=n.find(".swiper-cube-shadow")).length&&(e=r('<div class="swiper-cube-shadow"></div>'),n.append(e)));for(var i=0;i<l.length;i+=1){var T=l.eq(i),_=i;y&&(_=parseInt(T.attr("data-swiper-slide-index"),10));var C=90*_,E=Math.floor(C/360);h&&(C=-C,E=Math.floor(-C/360));var progress=Math.max(Math.min(T[0].progress,1),-1),x=0,S=0,k=0;_%4==0?(x=4*-E*f,k=0):(_-1)%4==0?(x=0,k=4*-E*f):(_-2)%4==0?(x=f+4*E*f,k=f):(_-3)%4==0&&(x=-f,k=3*f+4*f*E),h&&(x=-x),m||(S=x,x=0);var M="rotateX("+(m?0:-C)+"deg) rotateY("+(m?C:0)+"deg) translate3d("+x+"px, "+S+"px, "+k+"px)";if(progress<=1&&progress>-1&&(w=90*_+90*progress,h&&(w=90*-_-90*progress)),T.transform(M),v.slideShadows){var P=m?T.find(".swiper-slide-shadow-left"):T.find(".swiper-slide-shadow-top"),O=m?T.find(".swiper-slide-shadow-right"):T.find(".swiper-slide-shadow-bottom");0===P.length&&(P=r('<div class="swiper-slide-shadow-'+(m?"left":"top")+'"></div>'),T.append(P)),0===O.length&&(O=r('<div class="swiper-slide-shadow-'+(m?"right":"bottom")+'"></div>'),T.append(O)),P.length&&(P[0].style.opacity=Math.max(-progress,0)),O.length&&(O[0].style.opacity=Math.max(progress,0))}}if(o.css({"-webkit-transform-origin":"50% 50% -"+f/2+"px","-moz-transform-origin":"50% 50% -"+f/2+"px","-ms-transform-origin":"50% 50% -"+f/2+"px","transform-origin":"50% 50% -"+f/2+"px"}),v.shadow)if(m)e.transform("translate3d(0px, "+(c/2+v.shadowOffset)+"px, "+-c/2+"px) rotateX(90deg) rotateZ(0deg) scale("+v.shadowScale+")");else{var j=Math.abs(w)-90*Math.floor(Math.abs(w)/90),A=1.5-(Math.sin(2*j*Math.PI/360)/2+Math.cos(2*j*Math.PI/360)/2),I=v.shadowScale,D=v.shadowScale/A,L=v.shadowOffset;e.transform("scale3d("+I+", 1, "+D+") translate3d(0px, "+(d/2+L)+"px, "+-d/2/D+"px) rotateX(-90deg)")}var z=J.isSafari||J.isUiWebView?-f/2:0;o.transform("translate3d(0px,0,"+z+"px) rotateX("+(t.isHorizontal()?0:w)+"deg) rotateY("+(t.isHorizontal()?-w:0)+"deg)")},setTransition:function(e){var t=this,n=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()&&n.find(".swiper-cube-shadow").transition(e)}},It={setTranslate:function(){for(var e=this,t=e.slides,n=e.rtlTranslate,i=0;i<t.length;i+=1){var o=t.eq(i),progress=o[0].progress;e.params.flipEffect.limitRotation&&(progress=Math.max(Math.min(o[0].progress,1),-1));var l=-180*progress,c=0,d=-o[0].swiperSlideOffset,h=0;if(e.isHorizontal()?n&&(l=-l):(h=d,d=0,c=-l,l=0),o[0].style.zIndex=-Math.abs(Math.round(progress))+t.length,e.params.flipEffect.slideShadows){var f=e.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),v=e.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===f.length&&(f=r('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"left":"top")+'"></div>'),o.append(f)),0===v.length&&(v=r('<div class="swiper-slide-shadow-'+(e.isHorizontal()?"right":"bottom")+'"></div>'),o.append(v)),f.length&&(f[0].style.opacity=Math.max(-progress,0)),v.length&&(v[0].style.opacity=Math.max(progress,0))}o.transform("translate3d("+d+"px, "+h+"px, 0px) rotateX("+c+"deg) rotateY("+l+"deg)")}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,o=t.$wrapperEl;if(n.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 l=!1;n.eq(r).transitionEnd(function(){if(!l&&t&&!t.destroyed){l=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)o.trigger(e[i])}})}}},Dt={setTranslate:function(){for(var e=this,t=e.width,n=e.height,o=e.slides,l=e.$wrapperEl,c=e.slidesSizesGrid,d=e.params.coverflowEffect,h=e.isHorizontal(),f=e.translate,v=h?t/2-f:n/2-f,m=h?d.rotate:-d.rotate,y=d.depth,i=0,w=o.length;i<w;i+=1){var T=o.eq(i),_=c[i],C=(v-T[0].swiperSlideOffset-_/2)/_*d.modifier,E=h?m*C:0,x=h?0:m*C,S=-y*Math.abs(C),k=h?0:d.stretch*C,M=h?d.stretch*C:0;Math.abs(M)<.001&&(M=0),Math.abs(k)<.001&&(k=0),Math.abs(S)<.001&&(S=0),Math.abs(E)<.001&&(E=0),Math.abs(x)<.001&&(x=0);var P="translate3d("+M+"px,"+k+"px,"+S+"px) rotateX("+x+"deg) rotateY("+E+"deg)";if(T.transform(P),T[0].style.zIndex=1-Math.abs(Math.round(C)),d.slideShadows){var O=h?T.find(".swiper-slide-shadow-left"):T.find(".swiper-slide-shadow-top"),j=h?T.find(".swiper-slide-shadow-right"):T.find(".swiper-slide-shadow-bottom");0===O.length&&(O=r('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),T.append(O)),0===j.length&&(j=r('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),T.append(j)),O.length&&(O[0].style.opacity=C>0?C:0),j.length&&(j[0].style.opacity=-C>0?-C:0)}}(K.pointerEvents||K.prefixedPointerEvents)&&(l[0].style.perspectiveOrigin=v+"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)}},Lt={init:function(){var e=this,t=e.params.thumbs,n=e.constructor;t.swiper instanceof n?(e.thumbs.swiper=t.swiper,U.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),U.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):U.isObject(t.swiper)&&(e.thumbs.swiper=new n(U.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 n=t.clickedIndex,o=t.clickedSlide;if(!(o&&r(o).hasClass(e.params.thumbs.slideThumbActiveClass)||null==n)){var l;if(l=t.params.loop?parseInt(r(t.clickedSlide).attr("data-swiper-slide-index"),10):n,e.params.loop){var c=e.activeIndex;e.slides.eq(c).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,c=e.activeIndex);var d=e.slides.eq(c).prevAll('[data-swiper-slide-index="'+l+'"]').eq(0).index(),h=e.slides.eq(c).nextAll('[data-swiper-slide-index="'+l+'"]').eq(0).index();l=void 0===d?h:void 0===h?d:h-c<c-d?h:d}e.slideTo(l)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var o,l=n.activeIndex;if(n.params.loop){n.slides.eq(l).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,l=n.activeIndex);var c=n.slides.eq(l).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),d=n.slides.eq(l).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();o=void 0===c?d:void 0===d?c:d-l===l-c?l:d-l<l-c?d:c}else o=t.realIndex;n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(o)<0&&(n.params.centeredSlides?o=o>l?o-Math.floor(r/2)+1:o+Math.floor(r/2)-1:o>l&&(o=o-r+1),n.slideTo(o,e?0:void 0))}var h=1,f=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(h=t.params.slidesPerView),n.slides.removeClass(f),n.params.loop||n.params.virtual)for(var i=0;i<h;i+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+i)+'"]').addClass(f);else for(var v=0;v<h;v+=1)n.slides.eq(t.realIndex+v).addClass(f)}}},zt=[st,ot,lt,ct,ht,ft,gt,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;U.extend(e,{mousewheel:{enabled:!1,enable:yt.enable.bind(e),disable:yt.disable.bind(e),handle:yt.handle.bind(e),handleMouseEnter:yt.handleMouseEnter.bind(e),handleMouseLeave:yt.handleMouseLeave.bind(e),lastScrollTime:U.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()}}},{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;U.extend(e,{navigation:{init:bt.init.bind(e),update:bt.update.bind(e),destroy:bt.destroy.bind(e),onNextClick:bt.onNextClick.bind(e),onPrevClick:bt.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,n=this,o=n.navigation,l=o.$nextEl,c=o.$prevEl;!n.params.navigation.hideOnClick||r(e.target).is(c)||r(e.target).is(l)||(l?t=l.hasClass(n.params.navigation.hiddenClass):c&&(t=c.hasClass(n.params.navigation.hiddenClass)),!0===t?n.emit("navigationShow",n):n.emit("navigationHide",n),l&&l.toggleClass(n.params.navigation.hiddenClass),c&&c.toggleClass(n.params.navigation.hiddenClass))}}},{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;U.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||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;t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!r(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))}}},{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;U.extend(e,{scrollbar:{init:Tt.init.bind(e),destroy:Tt.destroy.bind(e),updateSize:Tt.updateSize.bind(e),setTranslate:Tt.setTranslate.bind(e),setTransition:Tt.setTransition.bind(e),enableDraggable:Tt.enableDraggable.bind(e),disableDraggable:Tt.disableDraggable.bind(e),setDragPosition:Tt.setDragPosition.bind(e),getPointerPosition:Tt.getPointerPosition.bind(e),onDragStart:Tt.onDragStart.bind(e),onDragMove:Tt.onDragMove.bind(e),onDragEnd:Tt.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()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;U.extend(e,{parallax:{setTransform:_t.setTransform.bind(e),setTranslate:_t.setTranslate.bind(e),setTransition:_t.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)}}},{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(n){t[n]=Ct[n].bind(e)}),U.extend(e,{zoom:t});var n=1;Object.defineProperty(e.zoom,"scale",{get:function(){return n},set:function(t){if(n!==t){var r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,o=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,o)}n=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()}}},{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;U.extend(e,{lazy:{initialImageLoaded:!1,load:Et.load.bind(e),loadInSlide:Et.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()}}},St,{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;U.extend(e,{a11y:{liveRegion:r('<span class="'+e.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(kt).forEach(function(t){e.a11y[t]=kt[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()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;U.extend(e,{history:{init:Mt.init.bind(e),setHistory:Mt.setHistory.bind(e),setHistoryPopState:Mt.setHistoryPopState.bind(e),scrollToSlide:Mt.scrollToSlide.bind(e),destroy:Mt.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)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;U.extend(e,{hashNavigation:{initialized:!1,init:Pt.init.bind(e),destroy:Pt.destroy.bind(e),setHash:Pt.setHash.bind(e),onHashCange:Pt.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()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;U.extend(e,{autoplay:{running:!1,paused:!1,run:Ot.run.bind(e),start:Ot.start.bind(e),stop:Ot.stop.bind(e),pause:Ot.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 n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.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()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;U.extend(e,{fadeEffect:{setTranslate:jt.setTranslate.bind(e),setTransition:jt.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};U.extend(e.params,t),U.extend(e.originalParams,t)}},setTranslate:fu
2nction(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;U.extend(e,{cubeEffect:{setTranslate:At.setTranslate.bind(e),setTransition:At.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};U.extend(e.params,t),U.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)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;U.extend(e,{flipEffect:{setTranslate:It.setTranslate.bind(e),setTransition:It.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};U.extend(e.params,t),U.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)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;U.extend(e,{coverflowEffect:{setTranslate:Dt.setTranslate.bind(e),setTransition:Dt.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)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;U.extend(e,{thumbs:{swiper:null,init:Lt.init.bind(e),update:Lt.update.bind(e),onThumbClick:Lt.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.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===at.use&&(at.use=at.Class.use,at.installModule=at.Class.installModule),at.use(zt),at}()},37:function(e,t,n){e.exports=function(){"use strict";function e(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 35,524 bytes, line 2
2t%2?o(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function d(e){var i=c(e,"string");return"symbol"==typeof i?i:i+""}function h(e){return h="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(e)}var f={backdrop:!0,button:!0,navbar:!0,title:!0,toolbar:!0,className:"",container:"body",filter:null,fullscreen:!0,inheritedAttributes:["crossOrigin","decoding","isMap","loading","referrerPolicy","sizes","srcset","useMap"],initialCoverage:.9,initialViewIndex:0,inline:!1,interval:5e3,keyboard:!0,focus:!0,loading:!0,loop:!0,minWidth:200,minHeight:100,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,slideOnTouch:!0,toggleOnDblclick:!0,tooltip:!0,transition:!0,zIndex:2015,zIndexInline:0,zoomRatio:.1,minZoomRatio:.01,maxZoomRatio:100,url:"src",ready:null,show:null,shown:null,hide:null,hidden:null,view:null,viewed:null,move:null,moved:null,rotate:null,rotated:null,scale:null,scaled:null,zoom:null,zoomed:null,play:null,stop:null},v='<div class="viewer-container" tabindex="-1" touch-action="none"><div class="viewer-canvas"></div><div class="viewer-footer"><div class="viewer-title"></div><div class="viewer-toolbar"></div><div class="viewer-navbar"><ul class="viewer-list" role="navigation"></ul></div></div><div class="viewer-tooltip" role="alert" aria-hidden="true"></div><div class="viewer-button" data-viewer-action="mix" role="button"></div><div class="viewer-player"></div></div>',m="undefined"!=typeof window&&void 0!==window.document,y=m?window:{},w=!(!m||!y.document.documentElement)&&"ontouchstart"in y.document.documentElement,T=!!m&&"PointerEvent"in y,_="viewer",C="move",E="switch",x="zoom",S="".concat(_,"-active"),k="".concat(_,"-close"),M="".concat(_,"-fade"),P="".concat(_,"-fixed"),O="".concat(_,"-fullscreen"),j="".concat(_,"-fullscreen-exit"),A="".concat(_,"-hide"),I="".concat(_,"-hide-md-down"),D="".concat(_,"-hide-sm-down"),L="".concat(_,"-hide-xs-down"),z="".concat(_,"-in"),N="".concat(_,"-invisible"),R="".concat(_,"-loading"),B="".concat(_,"-move"),$="".concat(_,"-open"),F="".concat(_,"-show"),H="".concat(_,"-transition"),V="click",X="dblclick",W="dragstart",Y="focusin",G="keydown",U="load",K="error",J=w?"touchend touchcancel":"mouseup",Z=w?"touchmove":"mousemove",Q=w?"touchstart":"mousedown",ee=T?"pointerdown":Q,te=T?"pointermove":Z,ie=T?"pointerup pointercancel":J,ne="resize",re="transitionend",ae="wheel",se="ready",oe="show",le="shown",ce="hide",ue="hidden",de="view",he="viewed",pe="move",fe="moved",ve="rotate",ge="rotated",me="scale",ye="scaled",be="zoom",we="zoomed",Te="play",_e="stop",Ce="".concat(_,"Action"),Ee=/\s\s*/,xe=["zoom-in","zoom-out","one-to-one","reset","prev","play","next","rotate-left","rotate-right","flip-horizontal","flip-vertical"];function Se(e){return"string"==typeof e}var ke=Number.isNaN||y.isNaN;function Me(e){return"number"==typeof e&&!ke(e)}function Pe(e){return void 0===e}function Oe(e){return"object"===h(e)&&null!==e}var je=Object.prototype.hasOwnProperty;function Ae(e){if(!Oe(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&je.call(n,"isPrototypeOf")}catch(e){return!1}}function Ie(e){return"function"==typeof e}function De(data,e){if(data&&Ie(e))if(Array.isArray(data)||Me(data.length)){var i,t=data.length;for(i=0;i<t&&!1!==e.call(data,data[i],i,data);i+=1);}else Oe(data)&&Object.keys(data).forEach(function(t){e.call(data,data[t],t,data)});return data}var Le=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Oe(e)&&n.length>0&&n.forEach(function(t){Oe(t)&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e},ze=/^(?:width|height|left|top|marginLeft|marginTop)$/;function Ne(element,e){var style=element.style;De(e,function(e,t){ze.test(t)&&Me(e)&&(e+="px"),style[t]=e})}function Re(e){return Se(e)?e.replace(/&(?!amp;|quot;|#39;|lt;|gt;)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">"):e}function Be(element,e){return!(!element||!e)&&(element.classList?element.classList.contains(e):element.className.indexOf(e)>-1)}function $e(element,e){if(element&&e)if(Me(element.length))De(element,function(t){$e(t,e)});else if(element.classList)element.classList.add(e);else{var t=element.className.trim();t?t.indexOf(e)<0&&(element.className="".concat(t," ").concat(e)):element.className=e}}function Fe(element,e){element&&e&&(Me(element.length)?De(element,function(t){Fe(t,e)}):element.classList?element.classList.remove(e):element.className.indexOf(e)>=0&&(element.className=element.className.replace(e,"")))}function He(element,e,t){e&&(Me(element.length)?De(element,function(n){He(n,e,t)}):t?$e(element,e):Fe(element,e))}var Ve=/([a-z\d])([A-Z])/g;function Xe(e){return e.replace(Ve,"$1-$2").toLowerCase()}function We(element,e){return Oe(element[e])?element[e]:element.dataset?element.dataset[e]:element.getAttribute("data-".concat(Xe(e)))}function Ye(element,e,data){Oe(data)?element[e]=data:element.dataset?element.dataset[e]=data:element.setAttribute("data-".concat(Xe(e)),data)}var qe=function(){var e=!1;if(m){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});y.addEventListener("test",n,r),y.removeEventListener("test",n,r)}return e}();function Ge(element,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t;e.trim().split(Ee).forEach(function(e){if(!qe){var o=element.listeners;o&&o[e]&&o[e][t]&&(r=o[e][t],delete o[e][t],0===Object.keys(o[e]).length&&delete o[e],0===Object.keys(o).length&&delete element.listeners)}element.removeEventListener(e,r,n)})}function Ue(element,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=t;e.trim().split(Ee).forEach(function(e){if(n.once&&!qe){var o=element.listeners,l=void 0===o?{}:o;r=function(){delete l[e][t],element.removeEventListener(e,r,n);for(var o=arguments.length,c=new Array(o),d=0;d<o;d++)c[d]=arguments[d];t.apply(element,c)},l[e]||(l[e]={}),l[e][t]&&element.removeEventListener(e,l[e][t],n),l[e][t]=r,element.listeners=l}element.addEventListener(e,r,n)})}function Ke(element,e,data,t){var n;return Ie(Event)&&Ie(CustomEvent)?n=new CustomEvent(e,l({bubbles:!0,cancelable:!0,detail:data},t)):(n=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,data),element.dispatchEvent(n)}function Je(element){var e=element.getBoundingClientRect();return{left:e.left+(window.pageXOffset-document.documentElement.clientLeft),top:e.top+(window.pageYOffset-document.documentElement.clientTop)}}function Ze(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,o=e.translateX,l=e.translateY,c=[];Me(o)&&0!==o&&c.push("translateX(".concat(o,"px)")),Me(l)&&0!==l&&c.push("translateY(".concat(l,"px)")),Me(t)&&0!==t&&c.push("rotate(".concat(t,"deg)")),Me(n)&&1!==n&&c.push("scaleX(".concat(n,")")),Me(r)&&1!==r&&c.push("scaleY(".concat(r,")"));var d=c.length?c.join(" "):"none";return{WebkitTransform:d,msTransform:d,transform:d}}function Qe(e){return Se(e)?decodeURIComponent(e.replace(/^.*\//,"").replace(/[?&#].*$/,"")):""}var et=y.navigator&&/Version\/\d+(\.\d+)+?\s+Safari/i.test(y.navigator.userAgent);function tt(image,e,t){var n=document.createElement("img");if(image.naturalWidth&&!et)return t(image.naturalWidth,image.naturalHeight),n;var body=document.body||document.documentElement;return n.onload=function(){t(n.width,n.height),et||body.removeChild(n)},De(e.inheritedAttributes,function(e){var t=image.getAttribute(e);null!==t&&n.setAttribute(e,t)}),n.src=image.src,et||(n.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",body.appendChild(n)),n}function it(e){switch(e){case 2:return L;case 3:return D;case 4:return I;default:return""}}function nt(e){var t=l({},e),n=[];return De(e,function(e,r){delete t[r],De(t,function(t){var r=Math.abs(e.startX-t.startX),o=Math.abs(e.startY-t.startY),l=Math.abs(e.endX-t.endX),c=Math.abs(e.endY-t.endY),d=Math.sqrt(r*r+o*o),h=(Math.sqrt(l*l+c*c)-d)/d;n.push(h)})}),n.sort(function(a,b){return Math.abs(a)<Math.abs(b)}),n[0]}function at(e,t){var n=e.pageX,r=e.pageY,o={endX:n,endY:r};return t?o:l({timeStamp:Date.now(),startX:n,startY:r},o)}function st(e){var t=0,n=0,r=0;return De(e,function(e){var o=e.startX,l=e.startY;t+=o,n+=l,r+=1}),{pageX:t/=r,pageY:n/=r}}var ot,lt={render:function(){this.initContainer(),this.initViewer(),this.initList(),this.renderViewer()},initBody:function(){var e=this.element.ownerDocument,body=e.body||e.documentElement;this.body=body,this.scrollbarWidth=window.innerWidth-e.documentElement.clientWidth,this.initialBodyPaddingRight=body.style.paddingRight,this.initialBodyComputedPaddingRight=window.getComputedStyle(body).paddingRight},initContainer:function(){this.containerData={width:window.innerWidth,height:window.innerHeight}},initViewer:function(){var e,t=this.options,n=this.parent;t.inline&&(e={width:Math.max(n.offsetWidth,t.minWidth),height:Math.max(n.offsetHeight,t.minHeight)},this.parentData=e),!this.fulled&&e||(e=this.containerData),this.viewerData=Le({},e)},renderViewer:function(){this.options.inline&&!this.fulled&&Ne(this.viewer,this.viewerData)},initList:function(){var e=this,element=this.element,t=this.options,n=this.list,r=[];n.innerHTML="",De(this.images,function(image,o){var l=image.src,c=image.alt||Qe(l),d=e.getImageURL(image);if(l||d){var h=document.createElement("li"),img=document.createElement("img");De(t.inheritedAttributes,function(e){var t=image.getAttribute(e);null!==t&&img.setAttribute(e,t)}),t.navbar&&(img.src=l||d),img.alt=c,img.setAttribute("data-original-url",d||l),h.setAttribute("data-index",o),h.setAttribute("data-viewer-action","view"),h.setAttribute("role","button"),t.keyboard&&h.setAttribute("tabindex",0),h.appendChild(img),n.appendChild(h),r.push(h)}}),this.items=r,De(r,function(n){var r,o,image=n.firstElementChild;Ye(image,"filled",!0),t.loading&&$e(n,R),Ue(image,U,r=function(r){Ge(image,K,o),t.loading&&Fe(n,R),e.loadImage(r)},{once:!0}),Ue(image,K,o=function(){Ge(image,U,r),t.loading&&Fe(n,R)},{once:!0})}),t.transition&&Ue(element,he,function(){$e(n,H)},{once:!0})},renderList:function(){var e=this.index,t=this.items[e];if(t){var n=t.nextElementSibling,r=parseInt(window.getComputedStyle(n||t).marginLeft,10),o=t.offsetWidth,l=o+r;Ne(this.list,Le({width:l*this.length-r},Ze({translateX:(this.viewerData.width-o)/2-l*e})))}},resetList:function(){var e=this.list;e.innerHTML="",Fe(e,H),Ne(e,Ze({translateX:0}))},initImage:function(e){var t,n=this,r=this.options,image=this.image,o=this.viewerData,l=this.footer.offsetHeight,c=o.width,d=Math.max(o.height-l,l),h=this.imageData||{};this.imageInitializing={abort:function(){t.onload=null}},t=tt(image,r,function(t,o){var l=t/o,f=Math.max(0,Math.min(1,r.initialCoverage)),v=c,m=d;n.imageInitializing=!1,d*l>c?m=c/l:v=d*l,f=Me(f)?f:.9,v=Math.min(v*f,t),m=Math.min(m*f,o);var y=(c-v)/2,w=(d-m)/2,T={left:y,top:w,x:y,y:w,width:v,height:m,oldRatio:1,ratio:v/t,aspectRatio:l,naturalWidth:t,naturalHeight:o},_=Le({},T);r.rotatable&&(T.rotate=h.rotate||0,_.rotate=0),r.scalable&&(T.scaleX=h.scaleX||1,T.scaleY=h.scaleY||1,_.scaleX=1,_.scaleY=1),n.imageData=T,n.initialImageData=_,e&&e()})},renderImage:function(e){var t=this,image=this.image,n=this.imageData;if(Ne(image,Le({width:n.width,height:n.height,marginLeft:n.x,marginTop:n.y},Ze(n))),e)if((this.viewing||this.moving||this.rotating||this.scaling||this.zooming)&&this.options.transition&&Be(image,H)){var r=function(){t.imageRendering=!1,e()};this.imageRendering={abort:function(){Ge(image,re,r)}},Ue(image,re,r,{once:!0})}else e()},resetImage:function(){var image=this.image;image&&(this.viewing&&this.viewing.abort(),image.parentNode.removeChild(image),this.image=null,this.title.innerHTML="")}},ct={bind:function(){var e=this.options,t=this.viewer,canvas=this.canvas,n=this.element.ownerDocument;Ue(t,V,this.onClick=this.click.bind(this)),Ue(t,W,this.onDragStart=this.dragstart.bind(this)),Ue(canvas,ee,this.onPointerDown=this.pointerdown.bind(this)),Ue(n,te,this.onPointerMove=this.pointermove.bind(this)),Ue(n,ie,this.onPointerUp=this.pointerup.bind(this)),Ue(n,G,this.onKeyDown=this.keydown.bind(this)),Ue(window,ne,this.onResize=this.resize.bind(this)),e.zoomable&&e.zoomOnWheel&&Ue(t,ae,this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),e.toggleOnDblclick&&Ue(canvas,X,this.onDblclick=this.dblclick.bind(this))},unbind:function(){var e=this.options,t=this.viewer,canvas=this.canvas,n=this.element.ownerDocument;Ge(t,V,this.onClick),Ge(t,W,this.onDragStart),Ge(canvas,ee,this.onPointerDown),Ge(n,te,this.onPointerMove),Ge(n,ie,this.onPointerUp),Ge(n,G,this.onKeyDown),Ge(window,ne,this.onResize),e.zoomable&&e.zoomOnWheel&&Ge(t,ae,this.onWheel,{passive:!1,capture:!0}),e.toggleOnDblclick&&Ge(canvas,X,this.onDblclick)}},ut={click:function(e){var t=this.options,n=this.imageData,r=e.target,o=We(r,Ce);switch(o||"img"!==r.localName||"li"!==r.parentElement.localName||(o=We(r=r.parentElement,Ce)),w&&e.isTrusted&&r===this.canvas&&clearTimeout(this.clickCanvasTimeout),o){case"mix":this.played?this.stop():t.inline?this.fulled?this.exit():this.full():this.hide();break;case"hide":this.pointerMoved||this.hide();break;case"view":this.view(We(r,"index"));break;case"zoom-in":this.zoom(.1,!0);break;case"zoom-out":this.zoom(-.1,!0);break;case"one-to-one":this.toggle();break;case"reset":this.reset();break;case"prev":this.prev(t.loop);break;case"play":this.play(t.fullscreen);break;case"next":this.next(t.loop);break;case"rotate-left":this.rotate(-90);break;case"rotate-right":this.rotate(90);break;case"flip-horizontal":this.scaleX(-n.scaleX||-1);break;case"flip-vertical":this.scaleY(-n.scaleY||-1);break;default:this.played&&this.stop()}},dblclick:function(e){e.preventDefault(),this.viewed&&e.target===this.image&&(w&&e.isTrusted&&clearTimeout(this.doubleClickImageTimeout),this.toggle(e.isTrusted?e:e.detail&&e.detail.originalEvent))},load:function(){var e=this;this.timeout&&(clearTimeout(this.timeout),this.timeout=!1);var element=this.element,t=this.options,image=this.image,n=this.index,r=this.viewerData;Fe(image,N),t.loading&&Fe(this.canvas,R),image.style.cssText="height:0;"+"margin-left:".concat(r.width/2,"px;")+"margin-top:".concat(r.height/2,"px;")+"max-width:none!important;position:relative;width:0;",this.initImage(function(){He(image,B,t.movable),He(image,H,t.transition),e.renderImage(function(){e.viewed=!0,e.viewing=!1,Ie(t.viewed)&&Ue(element,he,t.viewed,{once:!0}),Ke(element,he,{originalImage:e.images[n],index:n,image:image},{cancelable:!1})})})},loadImage:function(e){var image=e.target,t=image.parentNode,n=t.offsetWidth||30,r=t.offsetHeight||50,o=!!We(image,"filled");tt(image,this.options,function(e,t){var l=e/t,c=n,d=r;r*l>n?o?c=r*l:d=n/l:o?d=n/l:c=r*l,Ne(image,Le({width:c,height:d},Ze({translateX:(n-c)/2,translateY:(r-d)/2})))})},keydown:function(e){var t=this.options;if(t.keyboard){var n=e.keyCode||e.which||e.charCode;if(13===n&&this.viewer.contains(e.target)&&this.click(e),this.fulled)switch(n){case 27:this.played?this.stop():t.inline?this.fulled&&this.exit():this.hide();break;case 32:this.played&&this.stop();break;case 37:this.played&&this.playing?this.playing.prev():this.prev(t.loop);break;case 38:e.preventDefault(),this.zoom(t.zoomRatio,!0);break;case 39:this.played&&this.playing?this.playing.next():this.next(t.loop);break;case 40:e.preventDefault(),this.zoom(-t.zoomRatio,!0);break;case 48:case 49:e.ctrlKey&&(e.preventDefault(),this.toggle())}}},dragstart:function(e){"img"===e.target.localName&&e.preventDefault()},pointerdown:function(e){var t=this.options,n=this.pointers,r=e.buttons,button=e.button;if(this.pointerMoved=!1,!(!this.viewed||this.showing||this.viewing||this.hiding||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(Me(r)&&1!==r||Me(button)&&0!==button||e.ctrlKey))){e.preventDefault(),e.changedTouches?De(e.changedTouches,function(e){n[e.identifier]=at(e)}):n[e.pointerId||0]=at(e);var o=!!t.movable&&C;t.zoomOnTouch&&t.zoomable&&Object.keys(n).length>1?o=x:t.slideOnTouch&&("touch"===e.pointerType||"touchstart"===e.type)&&this.isSwitchable()&&(o=E),!t.transition||o!==C&&o!==x||Fe(this.image,H),this.action=o}},pointermove:function(e){var t=this.pointers,n=this.action;this.viewed&&n&&(e.preventDefault(),e.changedTouches?De(e.changedTouches,function(e){Le(t[e.identifier]||{},at(e,!0))}):Le(t[e.pointerId||0]||{},at(e,!0)),this.change(e))},pointerup:function(e){var t,n=this,r=this.options,o=this.action,l=this.pointers;e.changedTouches?De(e.changedTouches,function(e){t=l[e.identifier],delete l[e.identifier]}):(t=l[e.pointerId||0],delete l[e.pointerId||0]),o&&(e.preventDefault(),!r.transition||o!==C&&o!==x||$e(this.image,H),this.action=!1,w&&o!==x&&t&&Date.now()-t.timeStamp<500&&(clearTimeout(this.clickCanvasTimeout),clearTimeout(this.doubleClickImageTimeout),r.toggleOnDblclick&&this.viewed&&e.target===this.image?this.imageClicked?(this.imageClicked=!1,this.doubleClickImageTimeout=setTimeout(function(){Ke(n.image,X,{originalEvent:e})},50)):(this.imageClicked=!0,this.doubleClickImageTimeout=setTimeout(function(){n.imageClicked=!1},500)):(this.imageClicked=!1,r.backdrop&&"static"!==r.backdrop&&e.target===this.canvas&&(this.clickCanvasTimeout=setTimeout(function(){Ke(n.canvas,V,{originalEvent:e})},50)))))},resize:function(){var e=this;if(this.isShown&&!this.hiding&&(this.fulled&&(this.close(),this.initBody(),this.open()),this.initContainer(),this.initViewer(),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage()}),this.played)){if(this.options.fullscreen&&this.fulled&&!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement))return void this.stop();De(this.player.getElementsByTagName("img"),function(image){Ue(image,U,e.loadImage.bind(e),{once:!0}),Ke(image,U)})}},wheel:function(e){var t=this;if(this.viewed&&(e.preventDefault(),!this.wheeling)){this.wheeling=!0,setTimeout(function(){t.wheeling=!1},50);var n=Number(this.options.zoomRatio)||.1,r=1;e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,!0,null,e)}}},ht={show:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],element=this.element,t=this.options;if(t.inline||this.showing||this.isShown||this.showing)return this;if(!this.ready)return this.build(),this.ready&&this.show(e),this;if(Ie(t.show)&&Ue(element,oe,t.show,{once:!0}),!1===Ke(element,oe)||!this.ready)return this;this.hiding&&this.transitioning.abort(),this.showing=!0,this.open();var n=this.viewer;if(Fe(n,A),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("aria-hidden"),t.transition&&!e){var r=this.shown.bind(this);this.transitioning={abort:function(){Ge(n,re,r),Fe(n,z)}},$e(n,H),n.initialOffsetWidth=n.offsetWidth,Ue(n,re,r,{once:!0}),$e(n,z)}else $e(n,z),this.shown();return this},hide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],element=this.element,n=this.options;if(n.inline||this.hiding||!this.isShown&&!this.showing)return this;if(Ie(n.hide)&&Ue(element,ce,n.hide,{once:!0}),!1===Ke(element,ce))return this;this.showing&&this.transitioning.abort(),this.hiding=!0,this.played?this.stop():this.viewing&&this.viewing.abort();var r=this.viewer,image=this.image,o=function(){Fe(r,z),e.hidden()};if(n.transition&&!t){var l=function(t){t&&t.target===r&&(Ge(r,re,l),e.hidden())},c=function(){Be(r,H)?(Ue(r,re,l),Fe(r,z)):o()};this.transitioning={abort:function(){e.viewed&&Be(image,H)?Ge(image,re,c):Be(r,H)&&Ge(r,re,l)}},this.viewed&&Be(image,H)?(Ue(image,re,c,{once:!0}),this.zoomTo(0,!1,null,null,!0)):c()}else o();return this},view:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.initialViewIndex;if(t=Number(t)||0,this.hiding||this.played||t<0||t>=this.length||this.viewed&&t===this.index)return this;if(!this.isShown)return this.index=t,this.show();this.viewing&&this.viewing.abort();var element=this.element,n=this.options,title=this.title,canvas=this.canvas,r=this.items[t],img=r.querySelector("img"),o=We(img,"originalUrl"),l=img.getAttribute("alt"),image=document.createElement("img");if(De(n.inheritedAttributes,function(e){var t=img.getAttribute(e);null!==t&&image.setAttribute(e,t)}),image.src=o,image.alt=l,Ie(n.view)&&Ue(element,de,n.view,{once:!0}),!1===Ke(element,de,{originalImage:this.images[t],index:t,image:image})||!this.isShown||this.hiding||this.played)return this;var c=this.items[this.index];c&&(Fe(c,S),c.removeAttribute("aria-selected")),$e(r,S),r.setAttribute("aria-selected",!0),n.focus&&r.focus(),this.image=image,this.viewed=!1,this.index=t,this.imageData={},$e(image,N),n.loading&&$e(canvas,R),canvas.innerHTML="",canvas.appendChild(image),this.renderList(),title.innerHTML="";var d,h,f=function(){var t=e.imageData,r=Array.isArray(n.title)?n.title[1]:n.title;title.innerHTML=Re(Ie(r)?r.call(e,image,t):"".concat(l," (").concat(t.naturalWidth," Ã ").concat(t.naturalHeight,")"))};return Ue(element,he,f,{once:!0}),this.viewing={abort:function(){Ge(element,he,f),image.complete?e.imageRendering?e.imageRendering.abort():e.imageInitializing&&e.imageInitializing.abort():(image.src="",Ge(image,U,d),e.timeout&&clearTimeout(e.timeout))}},image.complete?this.load():(Ue(image,U,d=function(){Ge(image,K,h),e.load()},{once:!0}),Ue(image,K,h=function(){Ge(image,U,d),e.timeout&&(clearTimeout(e.timeout),e.timeout=!1),Fe(image,N),n.loading&&Fe(e.canvas,R)},{once:!0}),this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){Fe(image,N),e.timeout=!1},1e3)),this},prev:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.index-1;return t<0&&(t=e?this.length-1:0),this.view(t),this},next:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.length-1,n=this.index+1;return n>t&&(n=e?0:t),this.view(n),this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData;return this.moveTo(Pe(e)?e:n.x+Number(e),Pe(t)?t:n.y+Number(t)),this},moveTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,element=this.element,o=this.options,l=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&o.movable){var c=l.x,d=l.y,h=!1;if(Me(e)?h=!0:e=c,Me(n)?h=!0:n=d,h){if(Ie(o.move)&&Ue(element,pe,o.move,{once:!0}),!1===Ke(element,pe,{x:e,y:n,oldX:c,oldY:d,originalEvent:r}))return this;l.x=e,l.y=n,l.left=e,l.top=n,this.moving=!0,this.renderImage(function(){t.moving=!1,Ie(o.moved)&&Ue(element,fe,o.moved,{once:!0}),Ke(element,fe,{x:e,y:n,oldX:c,oldY:d,originalEvent:r},{cancelable:!1})})}}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e)),this},rotateTo:function(e){var t=this,element=this.element,n=this.options,r=this.imageData;if(Me(e=Number(e))&&this.viewed&&!this.played&&n.rotatable){var o=r.rotate;if(Ie(n.rotate)&&Ue(element,ve,n.rotate,{once:!0}),!1===Ke(element,ve,{degree:e,oldDegree:o}))return this;r.rotate=e,this.rotating=!0,this.renderImage(function(){t.rotating=!1,Ie(n.rotated)&&Ue(element,ge,n.rotated,{once:!0}),Ke(element,ge,{degree:e,oldDegree:o},{cancelable:!1})})}return this},scaleX:function(e){return this.scale(e,this.imageData.scaleY),this},scaleY:function(e){return this.scale(this.imageData.scaleX,e),this},scale:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,element=this.element,r=this.options,o=this.imageData;if(e=Number(e),n=Number(n),this.viewed&&!this.played&&r.scalable){var l=o.scaleX,c=o.scaleY,d=!1;if(Me(e)?d=!0:e=l,Me(n)?d=!0:n=c,d){if(Ie(r.scale)&&Ue(element,me,r.scale,{once:!0}),!1===Ke(element,me,{scaleX:e,scaleY:n,oldScaleX:l,oldScaleY:c}))return this;o.scaleX=e,o.scaleY=n,this.scaling=!0,this.renderImage(function(){t.scaling=!1,Ie(r.scaled)&&Ue(element,ye,r.scaled,{once:!0}),Ke(element,ye,{scaleX:e,scaleY:n,oldScaleX:l,oldScaleY:c},{cancelable:!1})})}}return this},zoom:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this.imageData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(o.width*e/o.naturalWidth,t,n,r),this},zoomTo:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],element=this.element,c=this.options,d=this.pointers,h=this.imageData,f=h.x,v=h.y,m=h.width,y=h.height,w=h.naturalWidth,T=h.naturalHeight;if(Me(e=Math.max(0,e))&&this.viewed&&!this.played&&(l||c.zoomable)){if(!l){var _=Math.max(.01,c.minZoomRatio),C=Math.min(100,c.maxZoomRatio);e=Math.min(Math.max(e,_),C)}if(o)switch(o.type){case"wheel":c.zoomRatio>=.055&&e>.95&&e<1.05&&(e=1);break;case"pointermove":case"touchmove":case"mousemove":e>.99&&e<1.01&&(e=1)}var E=w*e,x=T*e,S=E-m,k=x-y,M=h.ratio;if(Ie(c.zoom)&&Ue(element,be,c.zoom,{once:!0}),!1===Ke(element,be,{ratio:e,oldRatio:M,originalEvent:o}))return this;if(this.zooming=!0,o){var P=Je(this.viewer),O=d&&Object.keys(d).length>0?st(d):{pageX:o.pageX,pageY:o.pageY};h.x-=S*((O.pageX-P.left-f)/m),h.y-=k*((O.pageY-P.top-v)/y)}else Ae(r)&&Me(r.x)&&Me(r.y)?(h.x-=S*((r.x-f)/m),h.y-=k*((r.y-v)/y)):(h.x-=S/2,h.y-=k/2);h.left=h.x,h.top=h.y,h.width=E,h.height=x,h.oldRatio=M,h.ratio=e,this.renderImage(function(){t.zooming=!1,Ie(c.zoomed)&&Ue(element,we,c.zoomed,{once:!0}),Ke(element,we,{ratio:e,oldRatio:M,originalEvent:o},{cancelable:!1})}),n&&this.tooltip()}return this},play:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isShown||this.played)return this;var element=this.element,n=this.options;if(Ie(n.play)&&Ue(element,Te,n.play,{once:!0}),!1===Ke(element,Te))return this;var r=this.player,o=this.loadImage.bind(this),l=[],c=0,d=0;if(this.played=!0,this.onLoadWhenPlay=o,t&&this.requestFullscreen(t),$e(r,F),De(this.items,function(e,i){var img=e.querySelector("img"),image=document.createElement("img");image.src=We(img,"originalUrl"),image.alt=img.getAttribute("alt"),image.referrerPolicy=img.referrerPolicy,c+=1,$e(image,M),He(image,H,n.transition),Be(e,S)&&($e(image,z),d=i),l.push(image),Ue(image,U,o,{once:!0}),r.appendChild(image)}),Me(n.interval)&&n.interval>0){var h=function(){clearTimeout(e.playing.timeout),Fe(l[d],z),$e(l[d=(d-=1)>=0?d:c-1],z),e.playing.timeout=setTimeout(h,n.interval)},f=function(){clearTimeout(e.playing.timeout),Fe(l[d],z),$e(l[d=(d+=1)<c?d:0],z),e.playing.timeout=setTimeout(f,n.interval)};c>1&&(this.playing={prev:h,next:f,timeout:setTimeout(f,n.interval)})}return this},stop:function(){var e=this;if(!this.played)return this;var element=this.element,t=this.options;if(Ie(t.stop)&&Ue(element,_e,t.stop,{once:!0}),!1===Ke(element,_e))return this;var n=this.player;return clearTimeout(this.playing.timeout),this.playing=!1,this.played=!1,De(n.getElementsByTagName("img"),function(image){Ge(image,U,e.onLoadWhenPlay)}),Fe(n,F),n.innerHTML="",this.exitFullscreen(),this},full:function(){var e=this,t=this.options,n=this.viewer,image=this.image,r=this.list;return!this.isShown||this.played||this.fulled||!t.inline||(this.fulled=!0,this.open(),$e(this.button,j),t.transition&&(Fe(r,H),this.viewed&&Fe(image,H)),$e(n,P),n.setAttribute("role","dialog"),n.setAttribute("aria-labelledby",this.title.id),n.setAttribute("aria-modal",!0),n.removeAttribute("style"),Ne(n,{zIndex:t.zIndex}),t.focus&&this.enforceFocus(),this.initContainer(),this.viewerData=Le({},this.containerData),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){$e(image,H),$e(r,H)},0)})})),this},exit:function(){var e=this,t=this.options,n=this.viewer,image=this.image,r=this.list;return this.isShown&&!this.played&&this.fulled&&t.inline?(this.fulled=!1,this.close(),Fe(this.button,j),t.transition&&(Fe(r,H),this.viewed&&Fe(image,H)),t.focus&&this.clearEnforceFocus(),n.removeAttribute("role"),n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-modal"),Fe(n,P),Ne(n,{zIndex:t.zIndexInline}),this.viewerData=Le({},this.parentData),this.renderViewer(),this.renderList(),this.viewed&&this.initImage(function(){e.renderImage(function(){t.transition&&setTimeout(function(){$e(image,H),$e(r,H)},0)})}),this):this},tooltip:function(){var e=this,t=this.options,n=this.tooltipBox,r=this.imageData;return this.viewed&&!this.played&&t.tooltip?(n.textContent="".concat(Math.round(100*r.ratio),"%"),this.tooltipping?clearTimeout(this.tooltipping):t.transition?(this.fading&&Ke(n,re),$e(n,F),$e(n,M),$e(n,H),n.removeAttribute("aria-hidden"),n.initialOffsetWidth=n.offsetWidth,$e(n,z)):($e(n,F),n.removeAttribute("aria-hidden")),this.tooltipping=setTimeout(function(){t.transition?(Ue(n,re,function(){Fe(n,F),Fe(n,M),Fe(n,H),n.setAttribute("aria-hidden",!0),e.fading=!1},{once:!0}),Fe(n,z),e.fading=!0):(Fe(n,F),n.setAttribute("aria-hidden",!0)),e.tooltipping=!1},1e3),this):this},toggle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 1===this.imageData.ratio?this.zoomTo(this.imageData.oldRatio,!0,null,e):this.zoomTo(1,!0,null,e),this},reset:function(){return this.viewed&&!this.played&&(this.imageData=Le({},this.initialImageData),this.renderImage()),this},update:function(){var e=this,element=this.element,t=this.options,n=this.isImg;if(n&&!element.parentNode)return this.destroy();var r=[];if(De(n?[element]:element.querySelectorAll("img"),function(image){Ie(t.filter)?t.filter.call(e,image)&&r.push(image):e.getImageURL(image)&&r.push(image)}),!r.length)return this;if(this.images=r,this.length=r.length,this.ready){var o=[];if(De(this.items,function(e,i){var img=e.querySelector("img"),image=r[i];image&&img&&image.src===img.src&&image.alt===img.alt||o.push(i)}),Ne(this.list,{width:"auto"}),this.initList(),this.isShown)if(this.length){if(this.viewed){var l=o.indexOf(this.index);if(l>=0)this.viewed=!1,this.view(Math.max(Math.min(this.index-l,this.length-1),0));else{var c=this.items[this.index];$e(c,S),c.setAttribute("aria-selected",!0)}}}else this.image=null,this.viewed=!1,this.index=0,this.imageData={},this.canvas.innerHTML="",this.title.innerHTML=""}else this.build();return this},destroy:function(){var element=this.element,e=this.options;return element[_]?(this.destroyed=!0,this.ready?(this.played&&this.stop(),e.inline?(this.fulled&&this.exit(),this.unbind()):this.isShown?(this.viewing&&(this.imageRendering?this.imageRendering.abort():this.imageInitializing&&this.imageInitializing.abort()),this.hiding&&this.transitioning.abort(),this.hidden()):this.showing&&(this.transitioning.abort(),this.hidden()),this.ready=!1,this.viewer.parentNode.removeChild(this.viewer)):e.inline&&(this.delaying?this.delaying.abort():this.initializing&&this.initializing.abort()),e.inline||Ge(element,V,this.onStart),element[_]=void 0,this):this}},pt={getImageURL:function(image){var e=this.options.url;return e=Se(e)?image.getAttribute(e):Ie(e)?e.call(this,image):""},enforceFocus:function(){var e=this;this.clearEnforceFocus(),Ue(document,Y,this.onFocusin=function(t){var n=e.viewer,r=t.target;if(r!==document&&r!==n&&!n.contains(r)){for(;r;){if(null!==r.getAttribute("tabindex")||"true"===r.getAttribute("aria-modal"))return;r=r.parentElement}n.focus()}})},clearEnforceFocus:function(){this.onFocusin&&(Ge(document,Y,this.onFocusin),this.onFocusin=null)},open:function(){var body=this.body;$e(body,$),this.scrollbarWidth>0&&(body.style.paddingRight="".concat(this.scrollbarWidth+(parseFloat(this.initialBodyComputedPaddingRight)||0),"px"))},close:function(){var body=this.body;Fe(body,$),this.scrollbarWidth>0&&(body.style.paddingRight=this.initialBodyPaddingRight)},shown:function(){var element=this.element,e=this.options,t=this.viewer;this.fulled=!0,this.isShown=!0,this.render(),this.bind(),this.showing=!1,e.focus&&(t.focus(),this.enforceFocus()),Ie(e.shown)&&Ue(element,le,e.shown,{once:!0}),!1!==Ke(element,le)&&this.ready&&this.isShown&&!this.hiding&&this.view(this.index)},hidden:function(){var element=this.element,e=this.options,t=this.viewer;e.fucus&&this.clearEnforceFocus(),this.close(),this.unbind(),$e(t,A),t.removeAttribute("role"),t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-modal"),t.setAttribute("aria-hidden",!0),this.resetList(),this.resetImage(),this.fulled=!1,this.viewed=!1,this.isShown=!1,this.hiding=!1,this.destroyed||(Ie(e.hidden)&&Ue(element,ue,e.hidden,{once:!0}),Ke(element,ue,null,{cancelable:!1}))},requestFullscreen:function(e){var t=this.element.ownerDocument;if(this.fulled&&!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement)){var n=t.documentElement;n.requestFullscreen?Ae(e)?n.requestFullscreen(e):n.requestFullscreen():n.webkitRequestFullscreen?n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):n.mozRequestFullScreen?n.mozRequestFullScreen():n.msRequestFullscreen&&n.msRequestFullscreen()}},exitFullscreen:function(){var e=this.element.ownerDocument;this.fulled&&(e.fullscreenElement||e.webkitFullscreenElement||e.mozFullScreenElement||e.msFullscreenElement)&&(e.exitFullscreen?e.exitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen())},change:function(e){var t=this.options,n=this.pointers,r=n[Object.keys(n)[0]];if(r){var o=r.endX-r.startX,l=r.endY-r.startY;switch(this.action){case C:0===o&&0===l||(this.pointerMoved=!0,this.move(o,l,e));break;case x:this.zoom(nt(n),!1,null,e);break;case E:this.action="switched";var c=Math.abs(o);c>1&&c>Math.abs(l)&&(this.pointers={},o>1?this.prev(t.loop):o<-1&&this.next(t.loop))}De(n,function(p){p.startX=p.endX,p.startY=p.endY})}},isSwitchable:function(){var e=this.imageData,t=this.viewerData;return this.length>1&&e.x>=0&&e.y>=0&&e.width<=t.width&&e.height<=t.height}},ft=y.Viewer,vt=(ot=-1,function(){return ot+=1}),gt=function(){function t(element){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e(this,t),!element||1!==element.nodeType)throw new Error("The first argument is required and must be an element.");this.element=element,this.options=Le({},f,Ae(n)&&n),this.action=!1,this.fading=!1,this.fulled=!1,this.hiding=!1,this.imageClicked=!1,this.imageData={},this.index=this.options.initialViewIndex,this.isImg=!1,this.isShown=!1,this.length=0,this.moving=!1,this.played=!1,this.playing=!1,this.pointers={},this.ready=!1,this.rotating=!1,this.scaling=!1,this.showing=!1,this.timeout=!1,this.tooltipping=!1,this.viewed=!1,this.viewing=!1,this.wheeling=!1,this.zooming=!1,this.pointerMoved=!1,this.id=vt(),this.init()}return n(t,[{key:"init",value:function(){var e=this,element=this.element,t=this.options;
2if(!element[_]){element[_]=this,t.focus&&!t.keyboard&&(t.focus=!1);var n="img"===element.localName,r=[];if(De(n?[element]:element.querySelectorAll("img"),function(image){Ie(t.filter)?t.filter.call(e,image)&&r.push(image):e.getImageURL(image)&&r.push(image)}),this.isImg=n,this.length=r.length,this.images=r,this.initBody(),Pe(document.createElement(_).style.transition)&&(t.transition=!1),t.inline){var o=0,progress=function(){var t;(o+=1)===e.length&&(e.initializing=!1,e.delaying={abort:function(){clearTimeout(t)}},t=setTimeout(function(){e.delaying=!1,e.build()},0))};this.initializing={abort:function(){De(r,function(image){image.complete||(Ge(image,U,progress),Ge(image,K,progress))})}},De(r,function(image){var e,t;image.complete?progress():(Ue(image,U,e=function(){Ge(image,K,t),progress()},{once:!0}),Ue(image,K,t=function(){Ge(image,U,e),progress()},{once:!0}))})}else Ue(element,V,this.onStart=function(n){var r=n.target;"img"!==r.localName||Ie(t.filter)&&!t.filter.call(e,r)||e.view(e.images.indexOf(r))})}}},{key:"build",value:function(){if(!this.ready){var element=this.element,e=this.options,t=element.parentNode,template=document.createElement("div");template.innerHTML=v;var n=template.querySelector(".".concat(_,"-container")),title=n.querySelector(".".concat(_,"-title")),r=n.querySelector(".".concat(_,"-toolbar")),o=n.querySelector(".".concat(_,"-navbar")),button=n.querySelector(".".concat(_,"-button")),canvas=n.querySelector(".".concat(_,"-canvas"));if(this.parent=t,this.viewer=n,this.title=title,this.toolbar=r,this.navbar=o,this.button=button,this.canvas=canvas,this.footer=n.querySelector(".".concat(_,"-footer")),this.tooltipBox=n.querySelector(".".concat(_,"-tooltip")),this.player=n.querySelector(".".concat(_,"-player")),this.list=n.querySelector(".".concat(_,"-list")),n.id="".concat(_).concat(this.id),title.id="".concat(_,"Title").concat(this.id),$e(title,e.title?it(Array.isArray(e.title)?e.title[0]:e.title):A),$e(o,e.navbar?it(e.navbar):A),He(button,A,!e.button),e.keyboard&&button.setAttribute("tabindex",0),e.backdrop&&($e(n,"".concat(_,"-backdrop")),e.inline||"static"===e.backdrop||Ye(canvas,Ce,"hide")),Se(e.className)&&e.className&&e.className.split(Ee).forEach(function(e){$e(n,e)}),e.toolbar){var l=document.createElement("ul"),c=Ae(e.toolbar),d=xe.slice(0,3),h=xe.slice(7,9),f=xe.slice(9);c||$e(r,it(e.toolbar)),De(c?e.toolbar:xe,function(t,n){var r=c&&Ae(t),o=c?Xe(n):t,v=r&&!Pe(t.show)?t.show:t;if(v&&(e.zoomable||-1===d.indexOf(o))&&(e.rotatable||-1===h.indexOf(o))&&(e.scalable||-1===f.indexOf(o))){var m=r&&!Pe(t.size)?t.size:t,y=r&&!Pe(t.click)?t.click:t,w=document.createElement("li");e.keyboard&&w.setAttribute("tabindex",0),w.setAttribute("role","button"),$e(w,"".concat(_,"-").concat(o)),Ie(y)||Ye(w,Ce,o),Me(v)&&$e(w,it(v)),-1!==["small","large"].indexOf(m)?$e(w,"".concat(_,"-").concat(m)):"play"===o&&$e(w,"".concat(_,"-large")),Ie(y)&&Ue(w,V,y),l.appendChild(w)}}),r.appendChild(l)}else $e(r,A);if(!e.rotatable){var m=r.querySelectorAll('li[class*="rotate"]');$e(m,N),De(m,function(e){r.appendChild(e)})}if(e.inline)$e(button,O),Ne(n,{zIndex:e.zIndexInline}),"static"===window.getComputedStyle(t).position&&Ne(t,{position:"relative"}),t.insertBefore(n,element.nextSibling);else{$e(button,k),$e(n,P),$e(n,M),$e(n,A),Ne(n,{zIndex:e.zIndex});var y=e.container;Se(y)&&(y=element.ownerDocument.querySelector(y)),y||(y=this.body),y.appendChild(n)}e.inline&&(this.render(),this.bind(),this.isShown=!0),this.ready=!0,Ie(e.ready)&&Ue(element,se,e.ready,{once:!0}),!1!==Ke(element,se)?this.ready&&e.inline&&this.view(this.index):this.ready=!1}}}],[{key:"noConflict",value:function(){return window.Viewer=ft,t}},{key:"setDefaults",value:function(e){Le(f,Ae(e)&&e)}}])}();return Le(gt.prototype,lt,ct,ut,ht,pt),gt}()},66:function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,l=r(),c=l.default;void 0===c&&(c=[]);var d=l.placeholder;return n._isMounted?c:(n.$once("hook:mounted",function(){n.$forceUpdate()}),o.placeholderTag&&(o.placeholder||d)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||d):c.length>0?c.map(function(){return e(!1)}):e(!1))}};e.exports=r}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.