/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ /*! * Bootstrap v3.4.1 (https://getbootstrap.com/) * Copyright 2011-2019 Twitter, Inc. * Licensed under the MIT license */ if(function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,s=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},a=n.push,o=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d=c.toString,h=d.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,r,s=(n=n||g).createElement("script");if(s.text=e,t)for(i in v)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,r);n.head.appendChild(s).parentNode.removeChild(s)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var _="3.5.1",T=function(e,t){return new T.fn.init(e,t)};function w(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!f(e)&&!m(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+$+")"+$+"*"),V=new RegExp($+"|>"),W=new RegExp(j),G=new RegExp("^"+U+"$"),X={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+$+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){h()},ae=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{O.apply(P=M.call(T.childNodes),T.childNodes),P[T.childNodes.length].nodeType}catch(t){O={apply:P.length?function(e,t){D.apply(e,M.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,i,r){var s,o,u,c,d,f,v,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return i;if(!r&&(h(t),t=t||p,m)){if(11!==T&&(d=Z.exec(e)))if(s=d[1]){if(9===T){if(!(u=t.getElementById(s)))return i;if(u.id===s)return i.push(u),i}else if(y&&(u=y.getElementById(s))&&b(t,u)&&u.id===s)return i.push(u),i}else{if(d[2])return O.apply(i,t.getElementsByTagName(e)),i;if((s=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(s)),i}if(n.qsa&&!k[e+" "]&&(!g||!g.test(e))&&(1!==T||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===T&&(V.test(e)||z.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=_)),o=(f=a(e)).length;o--;)f[o]=(c?"#"+c:":scope")+" "+be(f[o]);v=f.join(",")}try{return O.apply(i,y.querySelectorAll(v)),i}catch(t){k(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,i,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,i){for(var r,s=e([],n.length,t),a=s.length;a--;)n[r=s[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},s=oe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},h=oe.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:T;return a!=p&&9===a.nodeType&&a.documentElement&&(f=(p=a).documentElement,m=!s(p),T!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",se,!1):r.attachEvent&&r.attachEvent("onunload",se)),n.scope=ce((function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=ce((function(e){return f.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(r=t.getElementsByName(e),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=J.test(p.querySelectorAll))&&(ce((function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+$+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+$+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+$+"*name"+$+"*="+$+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+$+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=J.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",j)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==T&&b(T,e)?-1:t==p||t.ownerDocument==T&&b(T,t)?1:c?N(c,e)-N(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,s=t.parentNode,a=[e],o=[t];if(!r||!s)return e==p?-1:t==p?1:r?-1:s?1:c?N(c,e)-N(c,t):0;if(r===s)return he(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;a[i]===o[i];)i++;return i?he(a[i],o[i]):a[i]==T?-1:o[i]==T?1:0}),p},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!k[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){k(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+$+")"+e+"("+$+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=oe.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return f(t)?T.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||P,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:L.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),I.test(i[1])&&T.isPlainObject(t))for(i in t)f(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=g.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,P=T(g);var D=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e\x20\t\r\n\f]*)/i,fe=/^$|^module$|\/(?:java|ecma)script/i;ce=g.createDocumentFragment().appendChild(g.createElement("div")),(de=g.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ce.appendChild(de),p.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",p.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",p.option=!!ce.lastChild;var me={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?T.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n",""]);var ye=/<|&#?\w+;/;function be(e,t,n,i,r){for(var s,a,o,l,u,c,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p\s*$/g;function Le(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,i,r,s,a,o;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.get(e).events))for(r in Y.remove(t,"handle events"),o)for(n=0,i=o[r].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Vt,Wt=[],Gt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Wt.pop()||T.expando+"_"+St.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(t,n,i){var r,s,a,o=!1!==t.jsonp&&(Gt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Gt,"$1"+r):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return a||T.error(r+" was not called"),a[0]},t.dataTypes[0]="json",s=e[r],e[r]=function(){a=arguments},i.always((function(){void 0===s?T(e).removeProp(r):e[r]=s,t[r]&&(t.jsonpCallback=n.jsonpCallback,Wt.push(r)),a&&f(s)&&s(a[0]),a=s=void 0})),"script"})),p.createHTMLDocument=((Vt=g.implementation.createHTMLDocument("").body).innerHTML="
",2===Vt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((i=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(i)):t=g),s=!n&&[],(r=I.exec(e))?[t.createElement(r[1])]:(r=be([e],t,s),s&&s.length&&T(s).remove(),T.merge([],r.childNodes)));var i,r,s},T.fn.load=function(e,t,n){var i,r,s,a=this,o=e.indexOf(" ");return-1").append(T.parseHTML(e)).find(i):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var i,r,s,a,o,l,u=T.css(e,"position"),c=T(e),d={};"static"===u&&(e.style.position="relative"),o=c.offset(),s=T.css(e,"top"),l=T.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<(s+l).indexOf("auto")?(a=(i=c.position()).top,r=i.left):(a=parseFloat(s)||0,r=parseFloat(l)||0),f(t)&&(t=t.call(e,n,T.extend({},o))),null!=t.top&&(d.top=t.top-o.top+a),null!=t.left&&(d.left=t.left-o.left+r),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),c.css(d))}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ie}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(i){return H(this,(function(e,i,r){var s;if(m(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===r)return s?s[t]:e[i];s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):e[i]=r}),e,i,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=He(p.pixelPosition,(function(e,n){if(n)return n=Fe(e,t),$e.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){T.fn[i]=function(r,s){var a=arguments.length&&(n||"boolean"!=typeof r),o=n||(!0===r||!0===s?"margin":"border");return H(this,(function(t,n,r){var s;return m(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===r?T.css(t,n,o):T.style(t,n,r,o)}),t,a?r:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return 0
',leftArrow:"",rightArrow:"",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},s=function(){function n(t,i){var s=this;(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this._config=e.extend({},r,i),this._$modalArrows=null,this._galleryIndex=0,this._galleryName=null,this._padding=null,this._border=null,this._titleIsShown=!1,this._footerIsShown=!1,this._wantedWidth=0,this._wantedHeight=0,this._touchstartX=0,this._touchendX=0,this._modalId="ekkoLightbox-"+Math.floor(1e3*Math.random()+1),this._$element=t instanceof jQuery?t:e(t),this._isBootstrap3=3==e.fn.modal.Constructor.VERSION[0];var a='",o='',l='";e(this._config.doc.body).append('"),this._$modal=e("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName&&(this._$galleryItems=e(document.body).find('*[data-gallery="'+this._galleryName+'"]'),this._galleryIndex=this._$galleryItems.index(this._$element),e(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this)),this._config.showArrows&&this._$galleryItems.length>1&&(this._$lightboxContainer.append('"),this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first(),this._$lightboxContainer.on("click","a:first-child",(function(e){return e.preventDefault(),s.navigateLeft()})),this._$lightboxContainer.on("click","a:last-child",(function(e){return e.preventDefault(),s.navigateRight()})),this.updateNavigation())),this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",(function(){return s._toggleLoading(!0),s._handle(),s._config.onShown.call(s)})).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",(function(){return s._galleryName&&(e(document).off("keydown.ekkoLightbox"),e(window).off("resize.ekkoLightbox")),s._$modal.remove(),s._config.onHidden.call(s)})).modal(this._config),e(window).on("resize.ekkoLightbox",(function(){s._resize(s._wantedWidth,s._wantedHeight)})),this._$lightboxContainer.on("touchstart",(function(){s._touchstartX=event.changedTouches[0].screenX})).on("touchend",(function(){s._touchendX=event.changedTouches[0].screenX,s._swipeGesure()}))}return t(n,null,[{key:"Default",get:function(){return r}}]),t(n,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(t){return t<0||t>this._$galleryItems.length-1?this:(this._galleryIndex=t,this.updateNavigation(),this._$element=e(this._$galleryItems.get(this._galleryIndex)),void this._handle())}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(0===this._galleryIndex){if(!this._config.wrapping)return;this._galleryIndex=this._$galleryItems.length-1}else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&1!==this._$galleryItems.length){if(this._galleryIndex===this._$galleryItems.length-1){if(!this._config.wrapping)return;this._galleryIndex=0}else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){if(!this._config.wrapping){var e=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");0===this._galleryIndex?e.find("a:first-child").addClass("disabled"):e.find("a:first-child").removeClass("disabled"),this._galleryIndex===this._$galleryItems.length-1?e.find("a:last-child").addClass("disabled"):e.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(e){return 39===(e=e||window.event).keyCode?this.navigateRight():37===e.keyCode?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(e,t){return!(t=t||!1)&&this._isImage(e)&&(t="image"),!t&&this._getYoutubeId(e)&&(t="youtube"),!t&&this._getVimeoId(e)&&(t="vimeo"),!t&&this._getInstagramId(e)&&(t="instagram"),("audio"==t||"video"==t||!t&&this._isMedia(e))&&(t="media"),(!t||["image","youtube","vimeo","instagram","media","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_getRemoteContentType",value:function(t){return e.ajax({type:"HEAD",url:t,async:!1}).getResponseHeader("Content-Type")}},{key:"_isImage",value:function(e){return e&&e.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_isMedia",value:function(e){return e&&e.match(/(\.(mp3|mp4|ogg|webm|wav)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var e=this,t=this._$lightboxBodyTwo,n=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(t=this._$lightboxBodyOne,n=this._$lightboxBodyTwo),n.removeClass("in show"),setTimeout((function(){e._$lightboxBodyTwo.hasClass("in")||e._$lightboxBodyTwo.empty(),e._$lightboxBodyOne.hasClass("in")||e._$lightboxBodyOne.empty()}),500),t.addClass("in show"),t}},{key:"_handle",value:function(){var e=this._containerToUse();this._updateTitleAndFooter();var t=this._$element.attr("data-remote")||this._$element.attr("href"),n=this._detectRemoteType(t,this._$element.attr("data-type")||!1);if(["image","youtube","vimeo","instagram","media","url"].indexOf(n)<0)return this._error(this._config.strings.type);switch(n){case"image":this._preloadImage(t,e),this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(t,e);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(t),e);break;case"instagram":this._showInstagramVideo(this._getInstagramId(t),e);break;case"media":this._showHtml5Media(t,e);break;default:this._loadRemoteContent(t,e)}return this}},{key:"_getYoutubeId",value:function(e){if(!e)return!1;var t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return!(!t||11!==t[2].length)&&t[2]}},{key:"_getVimeoId",value:function(e){return!!(e&&e.indexOf("vimeo")>0)&&e}},{key:"_getInstagramId",value:function(e){return!!(e&&e.indexOf("instagram")>0)&&e}},{key:"_toggleLoading",value:function(t){return(t=t||!1)?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),e(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),e(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(e){return parseInt(this._$modalDialog.css(e),10)+parseInt(this._$modalContent.css(e),10)+parseInt(this._$modalBody.css(e),10)}},{key:"_updateTitleAndFooter",value:function(){var e=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,e||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(e||" ")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(e,t){var n=this._getYoutubeId(e),i=e.indexOf("&")>0?e.substr(e.indexOf("&")):"",r=this._$element.data("width")||560,s=this._$element.data("height")||r/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+n+"?badge=0&autoplay=1&html5=1"+i,r,s,t)}},{key:"_showVimeoVideo",value:function(e,t){var n=this._$element.data("width")||500,i=this._$element.data("height")||n/(560/315);return this._showVideoIframe(e+"?autoplay=1",n,i,t)}},{key:"_showInstagramVideo",value:function(e,t){var n=this._$element.data("width")||612,i=n+80;return e="/"!==e.substr(-1)?e+"/":e,t.html(''),this._resize(n,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(e,t,n,i){return n=n||t,i.html('
'),this._resize(t,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Media",value:function(e,t){var n=this._getRemoteContentType(e);if(!n)return this._error(this._config.strings.type);var i;i=n.indexOf("audio")>0?"audio":"video";var r=this._$element.data("width")||560,s=this._$element.data("height")||r/(560/315);return t.html('
<'+i+' width="'+r+'" height="'+s+'" preload="auto" autoplay controls class="embed-responsive-item">'+this._config.strings.type+"
"),this._resize(r,s),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(t,n){var i=this,r=this._$element.data("width")||560,s=this._$element.data("height")||560,a=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),a||this._isExternal(t)?(n.html(''),this._config.onContentLoaded.call(this)):n.load(t,e.proxy((function(){return i._$element.trigger("loaded.bs.modal")}))),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(r,s),this}},{key:"_isExternal",value:function(e){var t=e.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof t[1]&&t[1].length>0&&t[1].toLowerCase()!==location.protocol||"string"==typeof t[2]&&t[2].length>0&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(e){return console.error(e),this._containerToUse().html(e),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(t,n){if(this._$galleryItems){var i=e(this._$galleryItems.get(t),!1);if(void 0!==i){var r=i.attr("data-remote")||i.attr("href");return("image"===i.attr("data-type")||this._isImage(r))&&this._preloadImage(r,!1),n>0?this._preloadImageByIndex(t+1,n-1):void 0}}}},{key:"_preloadImage",value:function(t,n){var i=this;n=n||!1;var r=new Image;return n&&function(){var s=setTimeout((function(){n.append(i._config.loadingMessage)}),200);r.onload=function(){s&&clearTimeout(s),s=null;var t=e("");return t.attr("src",r.src),t.addClass("img-fluid"),t.css("width","100%"),n.html(t),i._$modalArrows&&i._$modalArrows.css("display",""),i._resize(r.width,r.height),i._toggleLoading(!1),i._config.onContentLoaded.call(i)},r.onerror=function(){return i._toggleLoading(!1),i._error(i._config.strings.fail+" "+t)}}(),r.src=t,r}},{key:"_swipeGesure",value:function(){return this._touchendXthis._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(t,n){n=n||t,this._wantedWidth=t,this._wantedHeight=n;var i=t/n,r=this._padding.left+this._padding.right+this._border.left+this._border.right,s=this._config.doc.body.clientWidth>575?20:0,a=this._config.doc.body.clientWidth>575?0:20,o=Math.min(t+r,this._config.doc.body.clientWidth-s,this._config.maxWidth);t+r>o?(n=(o-r-a)/i,t=o):t+=r;var l=0,u=0;this._footerIsShown&&(u=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(l=this._$modalHeader.outerHeight(!0)||67);var c=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,d=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),h=Math.min(n,e(window).height()-c-d-l-u,this._config.maxHeight-c-l-u);n>h&&(t=Math.ceil(h*i)+r),this._$lightboxContainer.css("height",h),this._$modalDialog.css("flex",1).css("maxWidth",t);var p=this._$modal.data("bs.modal");if(p)try{p._handleUpdate()}catch(e){p.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(t){var i=this;return t=t||{},this.each((function(){var r=e(i),s=e.extend({},n.Default,r.data(),"object"==typeof t&&t);new n(i,s)}))}}]),n}();e.fn[n]=s._jQueryInterface,e.fn[n].Constructor=s,e.fn[n].noConflict=function(){return e.fn[n]=i,s._jQueryInterface}}(jQuery)}(jQuery),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,(function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0];if(e&&(f=!0),f)return p=(0,d.default)(p,m),(0,c.default)(p,m.once),p},v=function(){p=(0,h.default)(),g()};e.exports={init:function(e){m=r(m,e),p=(0,h.default)();var t=document.all&&!window.atob;return function(e){return!0===e||"mobile"===e&&u.default.mobile()||"phone"===e&&u.default.phone()||"tablet"===e&&u.default.tablet()||"function"==typeof e&&!0===e()}(m.disable)||t?void p.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})):(m.disableMutationObserver||l.default.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),m.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",m.easing),document.querySelector("body").setAttribute("data-aos-duration",m.duration),document.querySelector("body").setAttribute("data-aos-delay",m.delay),"DOMContentLoaded"===m.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?g(!0):"load"===m.startEvent?window.addEventListener(m.startEvent,(function(){g(!0)})):document.addEventListener(m.startEvent,(function(){g(!0)})),window.addEventListener("resize",(0,o.default)(g,m.debounceDelay,!0)),window.addEventListener("orientationchange",(0,o.default)(g,m.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)((function(){(0,c.default)(p,m.once)}),m.throttleDelay)),m.disableMutationObserver||l.default.ready("[data-aos]",v),p)},refresh:g,refreshHard:v}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function r(t){var n=h,i=p;return h=p=void 0,y=t,m=e.apply(i,n)}function a(e){return y=e,g=setTimeout(u,t),w?r(e):m}function l(e){var n=e-v;return void 0===v||n>=t||n<0||S&&e-y>=f}function u(){var e=T();return l(e)?c(e):void(g=setTimeout(u,function(e){var n=t-(e-v);return S?_(n,f-(e-y)):n}(e)))}function c(e){return g=void 0,E&&h?r(e):(h=p=void 0,m)}function d(){var e=T(),n=l(e);if(h=arguments,p=this,v=e,n){if(void 0===g)return a(v);if(S)return g=setTimeout(u,t),r(v)}return void 0===g&&(g=setTimeout(u,t)),m}var h,p,f,m,g,v,y=0,w=!1,S=!1,E=!0;if("function"!=typeof e)throw new TypeError(o);return t=s(t)||0,i(n)&&(w=!!n.leading,f=(S="maxWait"in n)?b(s(n.maxWait)||0,t):f,E="trailing"in n?!!n.trailing:E),d.cancel=function(){void 0!==g&&clearTimeout(g),y=0,h=v=p=g=void 0},d.flush=function(){return void 0===g?m:c(T())},d}function i(e){var t=void 0===e?"undefined":a(e);return!!e&&("object"==t||"function"==t)}function r(e){return"symbol"==(void 0===e?"undefined":a(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":a(e))}(e)&&y.call(e)==u}function s(e){if("number"==typeof e)return e;if(r(e))return l;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(c,"");var n=h.test(e);return n||p.test(e)?f(e.slice(2),n?2:8):d.test(e)?l:+e}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="Expected a function",l=NaN,u="[object Symbol]",c=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,p=/^0o[0-7]+$/i,f=parseInt,m="object"==(void 0===t?"undefined":a(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":a(self))&&self&&self.Object===Object&&self,v=m||g||Function("return this")(),y=Object.prototype.toString,b=Math.max,_=Math.min,T=function(){return v.Date.now()};e.exports=function(e,t,r){var s=!0,a=!0;if("function"!=typeof e)throw new TypeError(o);return i(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:s,maxWait:t,trailing:a})}}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e){var t=void 0===e?"undefined":s(e);return!!e&&("object"==t||"function"==t)}function i(e){return"symbol"==(void 0===e?"undefined":s(e))||function(e){return!!e&&"object"==(void 0===e?"undefined":s(e))}(e)&&v.call(e)==l}function r(e){if("number"==typeof e)return e;if(i(e))return o;if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(u,"");var r=d.test(e);return r||h.test(e)?p(e.slice(2),r?2:8):c.test(e)?o:+e}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a="Expected a function",o=NaN,l="[object Symbol]",u=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,h=/^0o[0-7]+$/i,p=parseInt,f="object"==(void 0===t?"undefined":s(t))&&t&&t.Object===Object&&t,m="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,g=f||m||Function("return this")(),v=Object.prototype.toString,y=Math.max,b=Math.min,_=function(){return g.Date.now()};e.exports=function(e,t,i){function s(t){var n=h,i=p;return h=p=void 0,T=t,m=e.apply(i,n)}function o(e){return T=e,g=setTimeout(u,t),w?s(e):m}function l(e){var n=e-v;return void 0===v||n>=t||n<0||S&&e-T>=f}function u(){var e=_();return l(e)?c(e):void(g=setTimeout(u,function(e){var n=t-(e-v);return S?b(n,f-(e-T)):n}(e)))}function c(e){return g=void 0,E&&h?s(e):(h=p=void 0,m)}function d(){var e=_(),n=l(e);if(h=arguments,p=this,v=e,n){if(void 0===g)return o(v);if(S)return g=setTimeout(u,t),s(v)}return void 0===g&&(g=setTimeout(u,t)),m}var h,p,f,m,g,v,T=0,w=!1,S=!1,E=!0;if("function"!=typeof e)throw new TypeError(a);return t=r(t)||0,n(i)&&(w=!!i.leading,f=(S="maxWait"in i)?y(r(i.maxWait)||0,t):f,E="trailing"in i?!!i.trailing:E),d.cancel=function(){void 0!==g&&clearTimeout(g),T=0,h=v=p=g=void 0},d.flush=function(){return void 0===g?m:c(_())},d}}).call(t,function(){return this}())},function(e,t){"use strict";function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function i(e){e&&e.forEach((function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes);if(function e(t){var n=void 0,i=void 0;for(n=0;ne.position?e.node.classList.add("aos-animate"):void 0!==i&&("false"===i||!n&&"true"!==i)&&e.node.classList.remove("aos-animate")}(e,i+n,t)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(12));t.default=function(e,t){return e.forEach((function(e,n){e.node.classList.add("aos-init"),e.position=(0,i.default)(e.node,t.offset)})),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(13));t.default=function(e,t){var n=0,r=0,s=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(r=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,i.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=s/2;break;case"bottom-center":n+=s/2+e.offsetHeight;break;case"center-center":n+=s/2+e.offsetHeight/2;break;case"top-top":n+=s;break;case"bottom-top":n+=e.offsetHeight+s;break;case"center-top":n+=e.offsetHeight/2+s}return a.anchorPlacement||a.offset||isNaN(t)||(r=t),n+r}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,(function(e){return{node:e}}))}}])})),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=function(t,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(t)),e(n),n}:e(jQuery)}((function(e){var t,n,i,r,s,a,o,l,u,c,d,h,p,f,m;function g(e,t){return h.call(e,t)}function v(e,t){var n,i,r,s,a,o,l,u,d,h,p=t&&t.split("/"),m=c.map,g=m&&m["*"]||{};if(e){for(t=(e=e.split("/")).length-1,c.nodeIdCompat&&f.test(e[t])&&(e[t]=e[t].replace(f,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),u=0;u":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,(function(e){return t[e]}))},t.__cache={};var r=0;return t.GetUniqueElementId=function(e){var n=e.getAttribute("data-select2-id");return null!=n||(n=e.id?"select2-data-"+e.id:"select2-data-"+(++r).toString()+"-"+t.generateChars(4),e.setAttribute("data-select2-id",n)),n},t.StoreData=function(e,n,i){e=t.GetUniqueElementId(e),t.__cache[e]||(t.__cache[e]={}),t.__cache[e][n]=i},t.GetData=function(n,i){var r=t.GetUniqueElementId(n);return i?t.__cache[r]&&null!=t.__cache[r][i]?t.__cache[r][i]:e(n).data(i):t.__cache[r]},t.RemoveData=function(e){var n=t.GetUniqueElementId(e);null!=t.__cache[n]&&delete t.__cache[n],e.removeAttribute("data-select2-id")},t.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0===e.indexOf("select2-")}));t=(t=t.getAttribute("class").trim().split(/\s+/)).filter((function(e){return 0!==e.indexOf("select2-")})),t=n.concat(t);e.setAttribute("class",t.join(" "))},t})),w.define("select2/results",["jquery","./utils"],(function(e,t){function n(e,t,i){this.$element=e,this.data=i,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('
    ');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=e(''),r=this.options.get("translations").get(t.message);i.append(n(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n",{class:"select2-results__options select2-results__options--nested",role:"none"})).append(c),l.append(u),l.append(a)}else this.template(n,i);return t.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,s=n.id+"-results";this.$results.attr("id",s),n.on("results:all",(function(e){r.clear(),r.append(e.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),n.on("results:append",(function(e){r.append(e.data),n.isOpen()&&r.setClasses()})),n.on("query",(function(e){r.hideMessages(),r.showLoading(e)})),n.on("select",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("unselect",(function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),n.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),n.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),n.on("results:toggle",(function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")})),n.on("results:select",(function(){var e,n=r.getHighlightedResults();0!==n.length&&(e=t.GetData(n[0],"data"),n.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:e}))})),n.on("results:previous",(function(){var e,t=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(t);i<=0||(e=i-1,0===t.length&&(e=0),(i=n.eq(e)).trigger("mouseenter"),t=r.$results.offset().top,n=i.offset().top,i=r.$results.scrollTop()+(n-t),0===e?r.$results.scrollTop(0):n-t<0&&r.$results.scrollTop(i))})),n.on("results:next",(function(){var e,t=r.getHighlightedResults(),n=r.$results.find(".select2-results__option--selectable"),i=n.index(t)+1;i>=n.length||((e=n.eq(i)).trigger("mouseenter"),t=r.$results.offset().top+r.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=r.$results.scrollTop()+n-t,0===i?r.$results.scrollTop(0):tthis.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},n.prototype.template=function(t,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup");null==(t=i(t,n))?n.style.display="none":"string"==typeof t?n.innerHTML=r(t):e(n).append(t)},n})),w.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),w.define("select2/selection/base",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var n=e('');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n},i.prototype.bind=function(e,t){var i=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",(function(e){i.trigger("focus",e)})),this.$selection.on("blur",(function(e){i._handleBlur(e)})),this.$selection.on("keydown",(function(e){i.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()})),e.on("results:focus",(function(e){i.$selection.attr("aria-activedescendant",e.data._resultId)})),e.on("selection:update",(function(e){i.update(e.data)})),e.on("open",(function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(e)})),e.on("close",(function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(e)})),e.on("enable",(function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")})),e.on("disable",(function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")}))},i.prototype._handleBlur=function(t){var n=this;window.setTimeout((function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)}),1)},i.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,(function(n){var i=e(n.target).closest(".select2");e(".select2.select2-container--open").each((function(){this!=i[0]&&t.GetData(this,"element").select2("close")}))}))},i.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i})),w.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html(''),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.attr("aria-controls",i),this.$selection.on("mousedown",(function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})})),this.$selection.on("focus",(function(e){})),this.$selection.on("blur",(function(e){})),e.on("focus",(function(t){e.isOpen()||n.$selection.trigger("focus")}))},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("")},r.prototype.update=function(e){var t,n;0!==e.length?(n=e[0],t=this.$selection.find(".select2-selection__rendered"),e=this.display(n,t),t.empty().append(e),(n=n.title||n.text)?t.attr("title",n):t.removeAttr("title")):this.clear()},r})),w.define("select2/selection/multiple",["jquery","./base","../utils"],(function(e,t,n){function i(e,t){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('
      '),e},i.prototype.bind=function(t,r){var s=this;i.__super__.bind.apply(this,arguments);var a=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",a),this.$selection.on("click",(function(e){s.trigger("toggle",{originalEvent:e})})),this.$selection.on("click",".select2-selection__choice__remove",(function(t){var i;s.isDisabled()||(i=e(this).parent(),i=n.GetData(i[0],"data"),s.trigger("unselect",{originalEvent:t,data:i}))})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(e){s.isDisabled()||e.stopPropagation()}))},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e('
    • ')},i.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],i=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r')).attr("title",s()),t.attr("aria-label",s()),t.attr("aria-describedby",r),n.StoreData(t[0],"data",i),this.$selection.prepend(t),this.$selection[0].classList.add("select2-selection--clearable"))},i})),w.define("select2/selection/search",["jquery","../utils","../keys"],(function(e,t,n){function i(e,t,n){e.call(this,t,n)}return i.prototype.render=function(t){var n=this.options.get("translations").get("search"),i=e('');return this.$searchContainer=i,this.$search=i.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),t=t.call(this),this._transferTabIndex(),t.append(this.$searchContainer),t},i.prototype.bind=function(e,i,r){var s=this,a=i.id+"-results",o=i.id+"-container";e.call(this,i,r),s.$search.attr("aria-describedby",o),i.on("open",(function(){s.$search.attr("aria-controls",a),s.$search.trigger("focus")})),i.on("close",(function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),i.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),i.on("disable",(function(){s.$search.prop("disabled",!0)})),i.on("focus",(function(e){s.$search.trigger("focus")})),i.on("results:focus",(function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(e){s.trigger("focus",e)})),this.$selection.on("focusout",".select2-search--inline",(function(e){s._handleBlur(e)})),this.$selection.on("keydown",".select2-search--inline",(function(e){var i;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which!==n.BACKSPACE||""!==s.$search.val()||0<(i=s.$selection.find(".select2-selection__choice").last()).length&&(i=t.GetData(i[0],"data"),s.searchRemoveChoice(i),e.preventDefault())})),this.$selection.on("click",".select2-search--inline",(function(e){s.$search.val()&&e.stopPropagation()}));var l=(i=document.documentMode)&&i<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(e){l?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(e){var t;l&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&s.handleSearch(e)}))},i.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},i.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},i})),w.define("select2/selection/selectionCss",["../utils"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this);return-1!==(t=this.options.get("selectionCssClass")||"").indexOf(":all:")&&(t=t.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(t),n},t})),w.define("select2/selection/eventRelay",["jquery"],(function(e){function t(){}return t.prototype.bind=function(t,n,i){var r=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,i),n.on("*",(function(t,n){var i;-1!==s.indexOf(t)&&(n=n||{},i=e.Event("select2:"+t,{params:n}),r.$element.trigger(i),-1!==a.indexOf(t)&&(n.prevented=i.isDefaultPrevented()))}))},t})),w.define("select2/translation",["jquery","require"],(function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){var i;return e in n._cache||(i=t(e),n._cache[e]=i),new n(n._cache[e])},n})),w.define("select2/diacritics",[],(function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}})),w.define("select2/data/base",["../utils"],(function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){return t=t.id+"-result-",t+=e.generateChars(4),null!=n.id?t+="-"+n.id.toString():t+="-"+e.generateChars(4),t},t})),w.define("select2/data/select",["./base","../utils","jquery"],(function(e,t,n){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,e),i.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(e){return t.item(n(e))})))},i.prototype.select=function(e){var t,n=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");this.$element.prop("multiple")?this.current((function(t){var i=[];(e=[e]).push.apply(e,t);for(var r=0;rthis.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e})),w.define("select2/data/maximumSelectionLength",[],(function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",(function(){i._checkIfMaximumSelected()}))},e.prototype.query=function(e,t,n){var i=this;this._checkIfMaximumSelected((function(){e.call(i,t,n)}))},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current((function(e){e=null!=e?e.length:0,0=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()}))},e})),w.define("select2/dropdown",["jquery","./utils"],(function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n})),w.define("select2/dropdown/search",["jquery"],(function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),i=this.options.get("translations").get("search");t=e('');return this.$searchContainer=t,this.$search=t.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i()),n.prepend(t),n},t.prototype.bind=function(t,n,i){var r=this,s=n.id+"-results";t.call(this,n,i),this.$search.on("keydown",(function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()})),this.$search.on("input",(function(t){e(this).off("keyup")})),this.$search.on("keyup input",(function(e){r.handleSearch(e)})),n.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",s),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),n.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),n.on("focus",(function(){n.isOpen()||r.$search.trigger("focus")})),n.on("results:all",(function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),n.on("results:focus",(function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t})),w.define("select2/dropdown/hidePlaceholder",[],(function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e})),w.define("select2/dropdown/infiniteScroll",["jquery"],(function(e){function t(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",(function(e){i.lastParams=e,i.loading=!0})),t.on("query:append",(function(e){i.lastParams=e,i.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&t&&(t=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('
    • '),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t})),w.define("select2/dropdown/attachBody",["jquery","../utils"],(function(e,t){function n(t,n,i){this.$dropdownParent=e(i.get("dropdownParent")||document.body),t.call(this,n,i)}return n.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",(function(){i._showDropdown(),i._attachPositioningHandler(t),i._bindContainerResultHandlers(t)})),t.on("close",(function(){i._hideDropdown(),i._detachPositioningHandler(t)})),this.$dropdownContainer.on("mousedown",(function(e){e.stopPropagation()}))},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("");t=t.call(this);return n.append(t),this.$dropdownContainer=n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("results:message",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("select",(function(){n._positionDropdown(),n._resizeDropdown()})),t.on("unselect",(function(){n._positionDropdown(),n._resizeDropdown()})),this._containerResultsHandlersBound=!0)},n.prototype._attachPositioningHandler=function(n,i){var r=this,s="scroll.select2."+i.id,a="resize.select2."+i.id,o="orientationchange.select2."+i.id;(i=this.$container.parents().filter(t.hasScroll)).each((function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})})),i.on(s,(function(n){var i=t.GetData(this,"select2-scroll-position");e(this).scrollTop(i.y)})),e(window).on(s+" "+a+" "+o,(function(e){r._positionDropdown(),r._resizeDropdown()}))},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,s="resize.select2."+i.id;i="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(r),e(window).off(r+" "+s+" "+i)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),i=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=s.top,a.bottom=s.top+a.height;var o=this.$dropdown.outerHeight(!1),l=t.scrollTop(),u=t.scrollTop()+t.height(),c=ls.bottom+o,l={left:s.left,top:a.bottom};"static"===(u=this.$dropdownParent).css("position")&&(u=u.offsetParent()),s={top:0,left:0},(e.contains(document.body,u[0])||u[0].isConnected)&&(s=u.offset()),l.top-=s.top,l.left-=s.left,n||i||(r="below"),t||!c||n?!c&&t&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(l.top=a.top-s.top-o),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(l)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n})),w.define("select2/dropdown/minimumResultsForSearch",[],(function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},r})),w.define("jquery-mousewheel",["jquery"],(function(e){return e})),w.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(e,t,n,i,r){var s;return null==e.fn.select2&&(s=["open","close","destroy"],e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each((function(){var i=e.extend(!0,{},t);new n(e(this),i)})),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var i,a=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),i=e[t].apply(e,a)})),-1this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
      ',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},o.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),s=r.length;s--;){var a=r[s];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var o="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},o.prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.getOptions=function(n){var i=this.$element.data();for(var r in i)i.hasOwnProperty(r)&&-1!==e.inArray(r,t)&&delete i[r];return(n=e.extend({},this.getDefaults(),i,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=a(n.template,n.whiteList,n.sanitizeFn)),n},o.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,(function(e,i){n[e]!=i&&(t[e]=i)})),t},o.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},o.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},o.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},o.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var i=this,r=this.tip(),s=this.getUID(this.type);this.setContent(),r.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,u=l.test(a);u&&(a=a.replace(l,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(e(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(u){var p=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+h>f.bottom?"top":"top"==a&&c.top-hf.width?"left":"left"==a&&c.left-da.top+a.height&&(r.top=a.top+a.height-l)}else{var u=t.left-s,c=t.left+s+n;ua.right&&(r.left=a.left+a.width-c)}return r},o.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},o.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},o.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},o.prototype.enable=function(){this.enabled=!0},o.prototype.disable=function(){this.enabled=!1},o.prototype.toggleEnabled=function(){this.enabled=!this.enabled},o.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},o.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},o.prototype.sanitizeHtml=function(e){return a(e,this.options.whiteList,this.options.sanitizeFn)};var l=e.fn.tooltip;e.fn.tooltip=function(t){return this.each((function(){var n=e(this),i=n.data("bs.tooltip"),r="object"==typeof t&&t;!i&&/destroy|hide/.test(t)||(i||n.data("bs.tooltip",i=new o(this,r)),"string"==typeof t&&i[t]())}))},e.fn.tooltip.Constructor=o,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=l,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t).prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===i&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each((function(){var i=e(this),r=i.data("bs.popover"),s="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.popover",r=new t(this,s)),"string"==typeof n&&r[n]())}))},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var i=e(this),r=i.data("bs.scrollspy"),s="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new t(this,s)),"string"==typeof n&&r[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),r=t.data("target")||t.attr("href"),s=/^#./.test(r)&&e(r);return s&&s.length&&s.is(":visible")&&[[s[n]().top+i,r]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=t)return a!=(e=s[s.length-1])&&this.activate(e);if(a&&t=r[e]&&(void 0===r[e+1]||t .active"),a=r&&e.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o(),s.removeClass("in")};var i=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var r=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(e){"use strict";var t=function(n,i){this.options=e.extend({},t.DEFAULTS,i);var r=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var i=e(this),r=i.data("bs.affix"),s="object"==typeof n&&n;r||i.data("bs.affix",r=new t(this,s)),"string"==typeof n&&r[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),s=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r * Copyright (c) 2014 David Björklund * Available under the MIT license * */};var qt=Vt;C=Vt;function zt(e,t,n){var i=e;return function(e){if(!e)return!1;var t=Ht.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)}(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=m({},t,{uri:e}),i.callback=n,i}function Vt(e,t,n){return Wt(t=zt(e,t,n))}function Wt(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){var e=void 0;e=u.response||u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u);if(m)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(l),(e=e instanceof Error?e:new Error(""+(e||"Unknown XMLHttpRequest Error"))).statusCode=0,n(e,g)}function s(){if(!o){clearTimeout(l);var t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status,r=g,s=null;return 0!==t?(r={body:i(),statusCode:t,method:d,headers:{},url:c,rawRequest:u},u.getAllResponseHeaders&&(r.headers=function(e){var t={};return e&&e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase();n=e.slice(n+1).trim();void 0===t[i]?t[i]=n:Array.isArray(t[i])?t[i].push(n):t[i]=[t[i],n]})),t}(u.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,r,r.body)}}var a,o,l,u=e.xhr||null,c=(u=u||new(e.cors||e.useXDR?Vt.XDomainRequest:Vt.XMLHttpRequest)).url=e.uri||e.url,d=u.method=e.method||"GET",h=e.body||e.data,p=u.headers=e.headers||{},f=!!e.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:u};if("json"in e&&!1!==e.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(s,0)},u.onload=s,u.onerror=r,u.onprogress=function(){},u.onabort=function(){o=!0},u.ontimeout=r,u.open(d,c,!f,e.username,e.password),f||(u.withCredentials=!!e.withCredentials),!f&&0=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var s=0;s]*>?)?/);return e=e[1]||e[2],t=t.substr(e.length),e}());)"<"!==n[0]?p.appendChild(e.document.createTextNode((a=n,un.innerHTML=a,a=un.textContent,un.textContent="",a))):"/"!==n[1]?(s=sn(n.substr(1,n.length-2)))?(i=e.document.createProcessingInstruction("timestamp",s),p.appendChild(i)):(r=n.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(u=r[1],c=r[3],d=void 0,(i=(d=cn[u])?(d=e.document.createElement(d),(u=hn[u])&&c&&(d[u]=c.trim()),d):null)&&(o=p,pn[(l=i).localName]&&pn[l.localName]!==o.localName||(r[2]&&((s=r[2].split(".")).forEach((function(e){var t=/^bg_/.test(e);e=t?e.slice(3):e;dn.hasOwnProperty(e)&&(e=dn[e],i.style[t?"background-color":"color"]=e)})),i.className=s.join(" ")),f.push(r[1]),p.appendChild(i),p=i))):f.length&&f[f.length-1]===n.substr(2).replace(">","")&&(f.pop(),p=p.parentNode);return h}var mn=[[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 gn(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;0<=n;n--)e.push(t.childNodes[n])}for(i(t,e);n=function e(t){if(!t||!t.length)return null;var n=t.pop(),r=n.textContent||n.innerText;if(r){var s=r.match(/^.*(\n|\r)/);return s?s[t.length=0]:r}return"ruby"===n.tagName?e(t):n.childNodes?(i(t,n),e(t)):void 0}(t);)for(var r=0;r=n[0]&&e<=n[1])return 1}}(n.charCodeAt(r)))return"rtl";return"ltr"}function vn(){}function yn(e,t,n){vn.call(this),this.cue=t,this.cueDiv=fn(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:gn(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function bn(e){var t,n,i,r;e.div&&(t=e.div.offsetHeight,n=e.div.offsetWidth,i=e.div.offsetTop,r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects(),e=e.div.getBoundingClientRect(),r=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0),this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||t,this.bottom=e.bottom||i+(e.height||t),this.width=e.width||n,this.lineHeight=void 0!==r?r:e.lineHeight}function _n(e,t,n,i){var r,s=new bn(t),a=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;rd&&(c=c<0?-1:1,c*=Math.ceil(d/u)*u),o<0&&(c+=""===a.vertical?n.height:n.width,l=l.reverse()),s.move(h,c)}else{var p=s.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}l=["+y","-x","+x","-y"],s=new bn(t)}s=function(e,t){for(var r,s=new bn(e),a=1,o=0;oe.left&&this.tope.top},bn.prototype.overlapsAny=function(e){for(var t=0;t=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},bn.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.lefte.right;case"+y":return this.tope.bottom}},bn.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)},bn.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}},bn.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,i=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||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},Tn.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Tn.convertCueToDOMTree=function(e,t){return e&&t?fn(e,t):null},Tn.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;tn.length;u--)t.el_.removeChild(r[u-1]);r.length=n.length}))},t}(ut)),ut.registerComponent("TimeTooltip",function(e){function t(t,n){return(n=e.call(this,t,n)||this).update=Fe(je(ct(n),n.update),30),n}dt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=ce(this.el_),r=ue(this.player_.el()),s=e.width*t;r&&i&&(t=e.left-r.left+s,r=e.width-s+(r.right-e.right),t<(e=i.width/2)?e+=e-t:ri.width&&(e=i.width),e=Math.round(e),this.el_.style.right="-"+e+"px",this.write(n))},n.write=function(e){K(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var s,a,o=r.player_.duration();o=r.player_.liveTracker&&r.player_.liveTracker.isLive()?((a=(s=r.player_.liveTracker.liveWindow())-t*s)<1?"":"-")+Jn(a,s):Jn(n,o),r.update(e,t,o),i&&i()}))},t}(ut)),(en=function(e){function t(t,n){return(n=e.call(this,t,n)||this).update=Fe(je(ct(n),n.update),30),n}dt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n,i=this.getChild("timeTooltip");i&&(n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),i.updateTime(e,t,n))},t}(ut)).prototype.options_={children:[]},j||k||en.prototype.options_.children.push("timeTooltip"),ut.registerComponent("PlayProgressBar",en),(C=function(e){function t(t,n){return(n=e.call(this,t,n)||this).update=Fe(je(ct(n),n.update),30),n}dt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(ut)).prototype.options_={children:["timeTooltip"]},ut.registerComponent("MouseTimeDisplay",C),(Lt=function(e){function t(t,n){return(n=e.call(this,t,n)||this).setEventHandlers_(),n}dt(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=je(this,this.update),this.update=Fe(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.on(document,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===document.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==document.visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[Jn(e,r),Jn(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(ue(n.el()),n.getProgress())})),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){ve(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),ve(e)){t||this.player_.scrubbing()||this.player_.scrubbing(!0);var n=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(.99<=n)return void i.seekToLiveEdge();var r;t=i.seekableStart();if((r=(r=(e=i.liveCurrentTime())<=(r=t+n*i.liveWindow())?e:r)<=t?t+.1:r)===1/0)return}else(r=n*this.player_.duration())===this.player_.duration()&&(r-=.1);this.userSeek_(r)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.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?bt(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n,i=this.player_.liveTracker;lt.isEventKey(t,"Space")||lt.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.handleAction(t)):lt.isEventKey(t,"Home")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(0)):lt.isEventKey(t,"End")?(t.preventDefault(),t.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(lt(t))?(t.preventDefault(),t.stopPropagation(),n=10*(lt.codes[lt(t)]-lt.codes[0])/100,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*n):this.userSeek_(this.player_.duration()*n)):lt.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):lt.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in document&&"visibilityState"in document&&this.off(document,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(ci)).prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},j||k||Lt.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),ut.registerComponent("SeekBar",Lt),(Dt=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.handleMouseMove=Fe(je(ct(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=Fe(je(ct(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}dt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t,n,i,r,s=this.getChild("seekBar");s&&(t=s.getChild("playProgressBar"),n=s.getChild("mouseTimeDisplay"),(t||n)&&(r=ce(i=s.el()),e=Zn(e=de(i,e).x,0,1),n&&n.update(r,e),t&&t.update(r,s.getProgress())))},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){var e;this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing()&&(e=this.getChild("seekBar"),this.player_.scrubbing(!1),e.videoWasPlaying&&bt(this.player_.play())))},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.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.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(ut)).prototype.options_={children:["seekBar"]},ut.registerComponent("ProgressControl",Dt),(Mt=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}dt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){document.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Yn)).prototype.controlText_="Picture-in-Picture",ut.registerComponent("PictureInPictureToggle",Mt),(U=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===document[t.fsApi_.fullscreenEnabled]&&i.disable(),i}dt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Yn)).prototype.controlText_="Fullscreen",ut.registerComponent("FullscreenToggle",U),ut.registerComponent("VolumeLevel",function(e){function t(){return e.apply(this,arguments)||this}return dt(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(ut)),ut.registerComponent("VolumeLevelTooltip",function(e){function t(t,n){return(n=e.call(this,t,n)||this).update=Fe(je(ct(n),n.update),30),n}dt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=ue(this.el_),s=ue(this.player_.el());n=e.width*t;if(!s||!r)return;t=e.left-s.left+n,s=e.width-n+(s.right-e.right),t<(e=r.width/2)?e+=e-t:sr.width&&(e=r.width),this.el_.style.right="-"+e+"px"}this.write(i+"%")},n.write=function(e){K(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var s=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){s.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(ut)),(Ot=function(e){function t(t,n){return(n=e.call(this,t,n)||this).update=Fe(je(ct(n),n.update),30),n}dt(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(ut)).prototype.options_={children:["volumeLevelTooltip"]},ut.registerComponent("MouseVolumeLevelDisplay",Ot),(p=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}dt(t,e);var n=t.prototype;return n.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"})},n.handleMouseDown=function(t){ve(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t,n,i,r=this.getChild("mouseVolumeLevelDisplay");r&&(t=ue(i=this.el()),n=this.vertical(),i=de(i,e),i=Zn(i=n?i.y:i.x,0,1),r.update(t,i,n)),ve(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(ci)).prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},j||k||p.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),p.prototype.playerEvent="volumechange",ut.registerComponent("VolumeBar",p),(Zt=function(e){function t(t,n){var i,r,s;return(n=void 0===n?{}:n).vertical=n.vertical||!1,void 0!==n.volumeBar&&!T(n.volumeBar)||(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,r=ct(i),(s=t).tech_&&!s.tech_.featuresVolumeControl&&r.addClass("vjs-hidden"),r.on(s,"loadstart",(function(){s.tech_.featuresVolumeControl?r.removeClass("vjs-hidden"):r.addClass("vjs-hidden")})),i.throttledHandleMouseMove=Fe(je(ct(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}dt(t,e);var n=t.prototype;return n.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})},n.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.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.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.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(ut)).prototype.options_={children:["volumeBar"]},ut.registerComponent("VolumeControl",Zt),(en=function(e){function t(t,n){var i,r,s=e.call(this,t,n)||this;return i=ct(s),(r=t).tech_&&!r.tech_.featuresMuteControl&&i.addClass("vjs-hidden"),i.on(r,"loadstart",(function(){r.tech_.featuresMuteControl?i.removeClass("vjs-hidden"):i.addClass("vjs-hidden")})),s.on(t,["loadstart","volumechange"],(function(e){return s.update(e)})),s}dt(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();0===t?(this.player_.volume(n<.1?.1:n),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;j&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)ee(this.el_,"vjs-vol-"+n);Z(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Yn)).prototype.controlText_="Mute",ut.registerComponent("MuteToggle",en),(C=function(e){function t(t,n){var i;return void 0!==(n=void 0===n?{}:n).inline?n.inline=n.inline:n.inline=!0,void 0!==n.volumeControl&&!T(n.volumeControl)||(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}dt(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.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")},n.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})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){lt.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ne(document,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Re(document,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){lt.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(ut)).prototype.options_={children:["muteToggle","volumeControl"]},ut.registerComponent("VolumePanel",C);var ti=function(e){function t(t,n){var i=e.call(this,t,n)||this;return n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}dt(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof ut&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof ut&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){(e=this.addChild(e))&&this.addEventListenerForItem(e)},n.createEl=function(){var t=this.options_.contentElType||"ul";return this.contentEl_=Y(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),(t=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"})).appendChild(this.contentEl_),Ne(t,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),t},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||document.activeElement;this.children().some((function(e){return e.el()===t}))||(e=this.menuButton_)&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()},n.handleTapClick=function(e){var t;this.menuButton_&&(this.menuButton_.unpressButton(),t=this.children(),!Array.isArray(t)||(t=t.filter((function(t){return t.el()===e.target}))[0])&&"CaptionSettingsMenuItem"!==t.name()&&this.menuButton_.focus())},n.handleKeyDown=function(e){lt.isEventKey(e,"Left")||lt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(lt.isEventKey(e,"Right")||lt.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},t}(ut);ut.registerComponent("Menu",ti),Lt=function(e){function t(t,n){var i;return(i=e.call(this,t,n=void 0===n?{}:n)||this).menuButton_=new Yn(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true"),n=Yn.prototype.buildCSSClass(),i.menuButton_.el_.className=i.buildCSSClass()+" "+n,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0,n=function(e){return i.handleClick(e)},i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",n),i.on(i.menuButton_,"click",n),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),Ne(document,"keyup",i.handleMenuKeyUp_)})),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}dt(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e,t=new ti(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=Y("li",{className:"vjs-menu-title",textContent:rt(this.options_.title),tabIndex:-1}),e=new ut(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var n=0;n select",id:"captions-background-color-%s",label:"Color",options:[Zt=["#000","Black"],Lt=["#FFF","White"],Mt=["#F00","Red"],Dt=["#0F0","Green"],U=["#00F","Blue"],E=["#FF0","Yellow"],C=["#F0F","Magenta"],en=["#0FF","Cyan"]]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ot=["1","Opaque"],ci=["0.5","Semi-Transparent"],p=["0","Transparent"]]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Lt,Zt,Mt,Dt,U,E,C,en]},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:[Ot,ci]},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:[p,ci,Ot]}};function pi(e,t){if((e=t?t(e):e)&&"none"!==e)return e}hi.windowColor.options=hi.backgroundColor.options,ut.registerComponent("TextTrackSettings",function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(ct(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=Y("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),y(hi,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}dt(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=(e=hi[e]).id.replace("%s",this.id_),s=[t,r].join(" ").trim();return["<"+n+' id="'+r+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(e.label),"",'").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['
      ','',this.localize("Text"),"",this.createElSelect_("color",e),'',this.createElSelect_("textOpacity",e),"","
      "].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['
      ','',this.localize("Background"),"",this.createElSelect_("backgroundColor",e),'',this.createElSelect_("backgroundOpacity",e),"","
      "].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['
      ','',this.localize("Window"),"",this.createElSelect_("windowColor",e),'',this.createElSelect_("windowOpacity",e),"","
      "].join("")},n.createElColors_=function(){return Y("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Y("div",{className:"vjs-track-settings-font",innerHTML:['
      ',this.createElSelect_("fontPercent","","legend"),"
      ",'
      ',this.createElSelect_("edgeStyle","","legend"),"
      ",'
      ',this.createElSelect_("fontFamily","","legend"),"
      "].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Y("div",{className:"vjs-track-settings-controls",innerHTML:['",'"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,i=this;return t=function(e,t,n){var r;return void 0!==(t=(r=i.$(t.selector),t=t.parser,pi(r.options[r.options.selectedIndex].value,t)))&&(e[n]=t),e},void 0===(n={})&&(n=0),v(e=hi).reduce((function(n,i){return t(n,e[i],i)}),n)},n.setValues=function(e){var t=this;y(hi,(function(n,i){!function(e,t,n){if(t)for(var i=0;ithis.options_.liveTolerance,(t=!(!this.timeupdateSeen_||e===1/0)&&t)!==this.behindLiveEdge_&&(this.behindLiveEdge_=t,this.trigger("liveedgechange")))},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&2=t.length&&i.call(t,(function(t,n){return t===(s[n]?s[n]&e[r+n]:e[r+n])}))}function or(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"");var n="function"==typeof window.URL,i=/^\/\//.test(e),r=!window.location&&!/\/\//i.test(e);return n?e=new window.URL(e,window.location||Tr):/\/\//i.test(e)||(e=qi.buildAbsoluteURL(window.location&&window.location.href||"",e)),n?(n=new URL(t,e),r?n.href.slice(Tr.length):i?n.href.slice(n.protocol.length):n.href):qi.buildAbsoluteURL(e,t)} /*! @name m3u8-parser @version 4.7.1 @license Apache-2.0 */var lr=function(e){function t(){var t=e.call(this)||this;return t.buffer="",t}return dt(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function ts(e,t){if(t(e))return 1;if(e=e.firstChild)do{if(ts(e,t))return 1}while(e=e.nextSibling)}function ns(){}function is(e,t,n){e&&e._inc++,n.namespaceURI===xr.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function rs(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,s=0;r;)r=(i[s++]=r).nextSibling;i.length=s}}}function ss(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,rs(e.ownerDocument,e),t}function as(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===Hr){var r=t.firstChild;if(null==r)return t;var s=t.lastChild}else r=s=t;for(i=n?n.previousSibling:e.lastChild,r.previousSibling=i,s.nextSibling=n,i?i.nextSibling=r:e.firstChild=r,null==n?e.lastChild=s:n.previousSibling=s;r.parentNode=e,r!==s&&(r=r.nextSibling););return rs(e.ownerDocument||e,e),t.nodeType==Hr&&(t.firstChild=t.lastChild=null),t}function os(){this._nsMap={}}function ls(){}function us(){}function cs(){}function ds(){}function hs(){}function ps(){}function fs(){}function ms(){}function gs(){}function vs(){}function ys(){}function bs(){}function _s(e,t){var n,i=[],r=9==this.nodeType&&this.documentElement||this,s=r.prefix,a=r.namespaceURI;return Ss(this,i,e,t,n=a&&null==s&&null==(s=r.lookupPrefix(a))?[{namespace:a,prefix:null}]:n),i.join("")}function Ts(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(r&&("xml"!==i||r!==xr.XML)&&r!==xr.XMLNS){for(var s=n.length;s--;){var a=n[s];if(a.prefix===i)return a.namespace!==r}return 1}}function ws(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,es),'"')}function Ss(e,t,n,i,r){if(r=r||[],i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case Or:var s=e.attributes,a=s.length,o=e.firstChild,l=e.tagName,u=l;if(!(n=xr.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var c,d=0;d"),n&&/^script$/i.test(l))for(;o;)o.data?t.push(o.data):Ss(o,t,n,i,r.slice()),o=o.nextSibling;else for(;o;)Ss(o,t,n,i,r.slice()),o=o.nextSibling;t.push("")}else t.push("/>");return;case jr:case Hr:for(o=e.firstChild;o;)Ss(o,t,n,i,r.slice()),o=o.nextSibling;return;case Mr:return ws(t,e.name,e.value),0;case Nr:return t.push(e.data.replace(/[<&]/g,es).replace(/]]>/g,"]]>"));case Rr:return t.push("");case Br:return t.push("\x3c!--",e.data,"--\x3e");case Fr:var y=e.publicId,b=e.systemId;return t.push("")):b&&"."!=b?t.push(" SYSTEM ",b,">"):((b=e.internalSubset)&&t.push(" [",b,"]"),t.push(">")));case Ur:return t.push("");case $r:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Es(e,t,n){e[t]=n}x.INDEX_SIZE_ERR=(qr[1]="Index size error",1),x.DOMSTRING_SIZE_ERR=(qr[2]="DOMString size error",2),x.HIERARCHY_REQUEST_ERR=(qr[3]="Hierarchy request error",3),x.WRONG_DOCUMENT_ERR=(qr[4]="Wrong document",4),x.INVALID_CHARACTER_ERR=(qr[5]="Invalid character",5),x.NO_DATA_ALLOWED_ERR=(qr[6]="No data allowed",6),x.NO_MODIFICATION_ALLOWED_ERR=(qr[7]="No modification allowed",7),x.NOT_FOUND_ERR=(qr[8]="Not found",8),x.NOT_SUPPORTED_ERR=(qr[9]="Not supported",9),x.INUSE_ATTRIBUTE_ERR=(qr[10]="Attribute in use",10),x.INVALID_STATE_ERR=(qr[11]="Invalid state",11),x.SYNTAX_ERR=(qr[12]="Syntax error",12),x.INVALID_MODIFICATION_ERR=(qr[13]="Invalid modification",13),x.NAMESPACE_ERR=(qr[14]="Invalid namespace",14),x.INVALID_ACCESS_ERR=(qr[15]="Invalid access",15),zr.prototype=Error.prototype,Pr(x,zr),Vr.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i",lt:"<",quot:'"'}),t.HTML_ENTITIES=n({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"×",divide:"÷",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),t.entityMap=t.HTML_ENTITIES}));Cs.XML_ENTITIES,Cs.HTML_ENTITIES,Cs.entityMap;var xs=Cr.NAMESPACE,ks=(jt=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Vi=new RegExp("[\\-\\.0-9"+jt.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),new RegExp("^"+jt.source+Vi.source+"*(?::"+jt.source+Vi.source+"*)?$"));function Is(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,Is)}function As(){}function Ps(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Ls(e,t,n){for(var i=e.tagName,r=null,s=e.length;s--;){var a=e[s],o=a.qName,l=a.value;o=0<(c=o.indexOf(":"))?(u=a.prefix=o.slice(0,c),d=o.slice(c+1),"xmlns"===u&&d):(u=null,"xmlns"===(d=o)&&"");a.localName=d,!1!==o&&(null==r&&(r={},Ds(n,n={})),n[o]=r[o]=l,a.uri=xs.XMLNS,t.startPrefixMapping(o,l))}var u;for(s=e.length;s--;)(u=(a=e[s]).prefix)&&("xml"===u&&(a.uri=xs.XML),"xmlns"!==u&&(a.uri=n[u||""]));var c,d=0<(c=i.indexOf(":"))?(u=e.prefix=i.slice(0,c),e.localName=i.slice(c+1)):(u=null,e.localName=i),h=e.uri=n[u||""];if(t.startElement(h,d,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=r,1;if(t.endElement(h,d,i),r)for(u in r)t.endPrefixMapping(u)}function Ds(e,t){for(var n in e)t[n]=e[n]}function Os(){this.attributeNames={}}(Is.prototype=new Error).name=Is.name,As.prototype={parse:function(e,t,n){var i=this.domBuilder;i.startDocument(),Ds(t,t={}),function(e,t,n,i,r){function s(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?65535<(t=parseInt(t.substr(1).replace("x","0x")))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(r.error("entity not found:"+e),e)}function a(t){var n;f",v+3),b=e.substring(v+2,y).replace(/[ \t\n\r]+$/g,""),_=h.pop();y<0?(b=e.substring(v+2).replace(/[\s<].*/,""),r.error("end tag name: "+b+" is not complete:"+_.tagName),y=v+1+b.length):b.match(/\s",t);return i&&(t=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/))?(t[0].length,n.processingInstruction(t[1],t[2]),i+2):-1}(e,v,i);break;case"!":d&&o(v),y=function(e,t,n,i){if("-"===e.charAt(t+2)){if("-"!==e.charAt(t+3))return-1;var r=e.indexOf("--\x3e",t+4);return t",t+9),n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3;var s=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}(e,t);return 1<(i=s.length)&&/!doctype/i.test(s[0][0])?(r=s[1][0],e=!1,t=!1,3":switch(u){case 0:n.setTagName(e.slice(t,l));case 5:case 6:case 7:break;case 4:case 1:"/"===(d=e.slice(t,l)).slice(-1)&&(n.closed=!0,d=d.slice(0,-1));case 2:2===u&&(d=o),4==u?(s.warning('attribute "'+d+'" missed quot(")!'),a(o,d.replace(/&#?\w+;/g,r),t)):(xs.isHTML(i[""])&&d.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),a(d,d,t));break;case 3:throw new Error("attribute value missed!!")}return l;case"€":c=" ";default:if(c<=" ")switch(u){case 0:n.setTagName(e.slice(t,l)),u=6;break;case 1:o=e.slice(t,l),u=2;break;case 4:var d=e.slice(t,l).replace(/&#?\w+;/g,r);s.warning('attribute "'+d+'" missed quot(")!!'),a(o,d,t);case 5:u=6}else switch(u){case 2:n.tagName,xs.isHTML(i[""])&&o.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,t),t=l,u=1;break;case 5:s.warning('attribute space is required"'+o+'"!!');case 6:u=1,t=l;break;case 3:u=4,t=l;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}l++}}(e,v,E,C,s,r),E.length);if(!E.closed&&function(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf(""))",t);e=e.substring(t+1,s);if(/[&<]/.test(e))return/^script$/i.test(n)||(e=e.replace(/&#?\w+;/g,i)),r.characters(e,0,e.length),s}return t+1}(e,y,E.tagName,s,i):y++}}catch(t){if(t instanceof Is)throw t;r.error("element parse error: "+t),y=-1}f=t+n||t?new java.lang.String(e,t,n)+"":e}function Hs(e,t){(e.currentElement||e.doc).appendChild(t)}function qs(e){return!!e&&"object"==typeof e}function zs(){for(var e=arguments.length,t=new Array(e),n=0;nt.timeline?1:-1}));var t}function ta(e){var t,n,i=[];return t=e,n=function(e,t,n,r){i=i.concat(e.playlists||[])},Fa.forEach((function(e){for(var i in t.mediaGroups[e])for(var r in t.mediaGroups[e][i]){var s=t.mediaGroups[e][i][r];n(s)}})),i}function na(e){var t=e.playlist;e=e.mediaSequence;t.mediaSequence=e,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))}function ia(e){return e&&e.uri+"-"+(e="bigint"==typeof(t=e.byterange).offset||"bigint"==typeof t.length?window.BigInt(t.offset)+window.BigInt(t.length)-window.BigInt(1):t.offset+t.length-1,t.offset+"-"+e);var t}function ra(e){return Vs(e.reduce((function(e,t){var n,i=t.attributes.id+(t.attributes.lang||"");return e[i]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[i].segments).push.apply(n,t.segments)),t.attributes.contentProtection&&(e[i].attributes.contentProtection=t.attributes.contentProtection)):(e[i]=t,e[i].attributes.timelineStarts=[]),e[i].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t;return e.discontinuityStarts=(t=e.segments||[],"discontinuity",t.reduce((function(e,t,n){return t.discontinuity&&e.push(n),e}),[])),e}))}function sa(e,t){var n=ia(e.sidx);return(n=n&&t[n]&&t[n].sidx)&&Zs(e,n,e.sidx.resolvedUri),e}function aa(e){var t=e.attributes,n=e.segments,i=e.sidx,r=e.discontinuityStarts;n={attributes:((e={NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,e),uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:"",targetDuration:t.duration,discontinuityStarts:r,timelineStarts:t.timelineStarts,segments:n};return t.contentProtection&&(n.contentProtection=t.contentProtection),i&&(n.sidx=i),n}function oa(e){return"video/mp4"===(e=e.attributes).mimeType||"video/webm"===e.mimeType||"video"===e.contentType}function la(e){return"audio/mp4"===(e=e.attributes).mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType}function ua(e){return"text/vtt"===(e=e.attributes).mimeType||"text"===e.contentType}function ca(e){return e?Object.keys(e).reduce((function(t,n){return n=e[n],t.concat(n.playlists)}),[]):[]}function da(e){var t=e.dashPlaylists,n=e.locations,i=void 0===(c=e.sidxMapping)?{}:c,r=e.previousManifest;if(!t.length)return{};var s=(d=t[0].attributes).sourceDuration,a=d.type,o=d.suggestedPresentationDelay,l=d.minimumUpdatePeriod,u=ra(t.filter(oa)).map(aa),c=ra(t.filter(la)),d=(e=ra(t.filter(ua)),t.map((function(e){return e.attributes.captionServices})).filter(Boolean));s={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((t={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:s,playlists:function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=sa(e[n],t);return e}(u,i)};0<=l&&(s.minimumUpdatePeriod=1e3*l),n&&(s.locations=n),"dynamic"===a&&(s.suggestedPresentationDelay=o);var h,p;o=0===s.playlists.length,o=c.length?function(e,t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=!1),e=e.reduce((function(e,r){var s=r.attributes.role&&r.attributes.role.value||"",a=r.attributes.lang||"",o=r.attributes.label||"main";e[o=a&&!r.attributes.label?r.attributes.lang+(s?" ("+s+")":""):o]||(e[o]={language:a,autoselect:!0,default:"main"===s,playlists:[],uri:""});var l,u,c,d,h,p,f=sa((u=n,c=(l=r).attributes,f=l.segments,d=l.sidx,h=l.mediaSequence,p=l.discontinuitySequence,a=l.discontinuityStarts,f={attributes:((l={NAME:c.id,BANDWIDTH:c.bandwidth,CODECS:c.codecs})["PROGRAM-ID"]=1,l),uri:"",endList:"static"===c.type,timeline:c.periodStart,resolvedUri:"",targetDuration:c.duration,discontinuitySequence:p,discontinuityStarts:a,timelineStarts:c.timelineStarts,mediaSequence:h,segments:f},c.contentProtection&&(f.contentProtection=c.contentProtection),d&&(f.sidx=d),u&&(f.attributes.AUDIO="audio",f.attributes.SUBTITLES="subs"),f),t);return e[o].playlists.push(f),void 0===i&&"main"===s&&((i=r).default=!0),e}),{}),i||(e[Object.keys(e)[0]].default=!0),e}(c,i,o):null,i=e.length?(void 0===(h=i)&&(h={}),e.reduce((function(e,t){var n=t.attributes.lang||"text";return e[n]||(e[n]={language:n,default:!1,autoselect:!1,playlists:[],uri:""}),e[n].playlists.push(sa(function(e){var t=e.attributes,n=e.segments,i=e.mediaSequence,r=e.discontinuityStarts,s=e.discontinuitySequence;return void 0===n&&(n=[{uri:t.baseUrl,timeline:t.periodStart,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration),(e={NAME:t.id,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,t.codecs&&(e.CODECS=t.codecs),{attributes:e,uri:"",endList:"static"===t.type,timeline:t.periodStart,resolvedUri:t.baseUrl||"",targetDuration:t.duration,timelineStarts:t.timelineStarts,discontinuityStarts:r,discontinuitySequence:s,mediaSequence:i,segments:n}}(t),h)),e}),{})):null,u=(e=u.concat(ca(o),ca(i))).map((function(e){return e.timelineStarts}));return s.timelineStarts=ea(u),e=e,p=s.timelineStarts,e.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=Xs(p,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))})),o&&(s.mediaGroups.AUDIO.audio=o),i&&(s.mediaGroups.SUBTITLES.subs=i),d.length&&(s.mediaGroups["CLOSED-CAPTIONS"].cc=d.reduce((function(e,t){return t&&t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e}),{})),r?function(e){var t,n,i=e.oldManifest,r=e.newManifest,s=i.playlists.concat(ta(i));return e=r.playlists.concat(ta(r)),r.timelineStarts=ea([i.timelineStarts,r.timelineStarts]),s={oldPlaylists:s,newPlaylists:e,timelineStarts:r.timelineStarts},t=s.oldPlaylists,e=s.newPlaylists,n=s.timelineStarts,e.forEach((function(e){e.discontinuitySequence=Xs(n,(function(t){return t.timeline===e.timeline}));var i=function(e,t){for(var n=0;ni.timeline||i.segments.length&&e.timeline>i.segments[i.segments.length-1].timeline)&&e.discontinuitySequence--);i.segments[s].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),na({playlist:e,mediaSequence:i.segments[s].number})}})),r}({oldManifest:r,newManifest:s}):s}function ha(e,t){for(var n,i,r,s,a,o,l=e.type,u=e.minimumUpdatePeriod,c=void 0===u?0:u,d=void 0===(u=e.media)?"":u,h=e.sourceDuration,p=void 0===(u=e.timescale)?1:u,f=void 0===(u=e.startNumber)?1:u,m=e.periodStart,g=[],v=-1,y=0;y>4?20+t:10+t}(e,t))}function ka(e){return"string"==typeof e?sr(e):e}function Ia(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(e){for(var t=1,n=0;n=t.length)return t.length;var i=Ia(t,n,!1);if(ar(e.bytes,i.bytes))return n;var r=Ia(t,n+i.length);return Pa(e,t,n+r.length+r.value+i.length)}function La(e,t){var n;n=t,t=Array.isArray(n)?n.map(Aa):[Aa(n)],e=rr(e);var i=[];if(!t.length)return i;for(var r=0;re.length?e.length:o+a.value;l=e.subarray(o,l);ar(t[0],s.bytes)&&(1===t.length?i.push(l):i=i.concat(La(l,t.slice(1)))),r+=s.length+a.length+l.length}return i}function Da(e,t,n,i){void 0===i&&(i=1/0),e=rr(e),n=[].concat(n);for(var r,s=0,a=0;s>1&63),-1!==n.indexOf(l)&&(r=s+o),s+=o+("h264"===t?1:2)}else s++}return e.subarray(0,0)}Us.prototype.parseFromString=function(e,t){var n=this.options,i=new $s,r=n.domBuilder||new Bs,s=n.errorHandler,a=n.locator,o=n.xmlns||{},l=/\/x?html?$/.test(t);t=l?Cs.HTML_ENTITIES:Cs.XML_ENTITIES;return a&&r.setDocumentLocator(a),i.errorHandler=function(e,t,n){if(!e){if(t instanceof Bs)return t;e=t}var i={},r=e instanceof Function;function s(t){var s=e[t];!s&&r&&(s=2==e.length?function(n){e(t,n)}:e),i[t]=s?function(e){s("[xmldom "+t+"]\t"+e+function(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(n))}:function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),i}(s,r,a),i.domBuilder=n.domBuilder||r,l&&(o[""]=Ns.HTML),o.xml=o.xml||Ns.XML,e&&"string"==typeof e?i.parse(e,o,t):i.errorHandler.error("invalid doc source"),r.doc},Bs.prototype={startDocument:function(){this.doc=(new Ms).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,s=r.createElementNS(e,n||t),a=i.length;Hs(this,s),this.currentElement=s,this.locator&&js(this.locator,s);for(var o=0;o"):function(){}}function so(e,t){var n,i=[];if(e&&e.length)for(n=0;n "+e.end(n));return t.join(", ")}function uo(e){for(var t=[],n=0;nDate.now()}function So(e){return e.excludeUntil&&e.excludeUntil===1/0}function Eo(e){var t=wo(e);return!e.disabled&&!t}function Co(e,t){return t.attributes&&t.attributes[e]}function xo(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!Eo(e)&&(e.attributes.BANDWIDTH||0)>>0,l=t.subarray(a+4,a+8);if(0==o)break;var u=a+o;if(u>t.length){if(i)break;u=t.length}o=t.subarray(a+8,u),ar(l,n[0])&&(1===n.length?s.push(o):s.push.apply(s,e(o,n.slice(1),i))),a=u}return s}(f,["moof"]).length){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e){d(t,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};el({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var i=e.data;e=e.startTime;n=i.buffer,t.bytes=f=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",e),g.hasVideo&&r(t,"video","start",e),m.video&&i.byteLength&&t.transmuxer?el({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach((function(e){p(Hi.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=no(f)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),h(null,t,{}),0;sl({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})}function ol(e,t){var n=e.id,i=e.key,r=e.encryptedBytes,s=e.decryptionWorker;e=function e(i){i.data.source===n&&(s.removeEventListener("message",e),i=i.data.decrypted,t(new Uint8Array(i.bytes,i.byteOffset,i.byteLength)))};s.addEventListener("message",e),e=i.bytes.slice?i.bytes.slice():new Uint32Array(Array.prototype.slice.call(i.bytes)),s.postMessage(zo({source:n,encrypted:r,key:e,iv:i.iv}),[r.buffer,e.buffer])}function ll(e){var t,n,i,r=e.xhr,s=e.xhrOptions,a=e.decryptionWorker,o=e.segment,l=e.abortFn,u=e.progressFn,c=e.trackInfoFn,d=e.timingInfoFn,h=e.videoSegmentTimingInfoFn,p=e.audioSegmentTimingInfoFn,f=e.id3Fn,m=e.captionsFn,g=e.isEndOfTimeline,v=e.endedTimelineFn,y=e.dataFn,b=e.doneFn,_=(e=e.onTransmuxerLog,[]);b=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,s=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,tl(t),h(e,g);if((f+=1)===t.length){var v=function(){if(g.encryptedBytes)return t=(e={decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p}).decryptionWorker,m=e.trackInfoFn,v=e.timingInfoFn,y=e.videoSegmentTimingInfoFn,b=e.audioSegmentTimingInfoFn,_=e.id3Fn,T=e.captionsFn,w=e.isEndOfTimeline,S=e.endedTimelineFn,E=e.dataFn,C=e.doneFn,x=e.onTransmuxerLog,void ol({id:(f=e.segment).requestId,key:f.key,encryptedBytes:f.encryptedBytes,decryptionWorker:t},(function(e){f.bytes=e,al({segment:f,bytes:f.bytes,trackInfoFn:m,timingInfoFn:v,videoSegmentTimingInfoFn:y,audioSegmentTimingInfoFn:b,id3Fn:_,captionsFn:T,isEndOfTimeline:w,endedTimelineFn:S,dataFn:E,doneFn:C,onTransmuxerLog:x})}));var e,t,f,m,v,y,b,_,T,w,S,E,C,x;al({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:s,audioSegmentTimingInfoFn:a,id3Fn:o,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return ol({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(e){g.map.bytes=e,rl(g,(function(e){return e?(tl(t),h(e,g)):void v()}))}));v()}}}}({activeXhrs:_,decryptionWorker:a,trackInfoFn:c,timingInfoFn:d,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:p,id3Fn:f,captionsFn:m,isEndOfTimeline:g,endedTimelineFn:v,dataFn:y,doneFn:b,onTransmuxerLog:e});o.key&&!o.key.bytes&&(e=[o.key],o.map&&!o.map.bytes&&o.map.key&&o.map.key.resolvedUri===o.key.resolvedUri&&e.push(o.map.key),e=r(Hi.mergeOptions(s,{uri:o.key.resolvedUri,responseType:"arraybuffer"}),il(o,e,b)),_.push(e)),o.map&&!o.map.bytes&&(!o.map.key||o.key&&o.key.resolvedUri===o.map.key.resolvedUri||(t=r(Hi.mergeOptions(s,{uri:o.map.key.resolvedUri,responseType:"arraybuffer"}),il(o,[o.map.key],b)),_.push(t)),t=r(Hi.mergeOptions(s,{uri:o.map.resolvedUri,responseType:"arraybuffer",headers:Fo(o.map)}),(n=(t={segment:o,finishProcessingFn:b}).segment,i=t.finishProcessingFn,function(e,t){return(e=nl(e,t))?i(e,n):(e=new Uint8Array(t.response),n.map.key?(n.map.encryptedBytes=e,i(null,n)):(n.map.bytes=e,void rl(n,(function(e){return e?(e.xhr=t,e.status=t.status,i(e,n)):void i(null,n)}))))})),_.push(t)),(s=r(s=Hi.mergeOptions(s,{uri:o.part&&o.part.resolvedUri||o.resolvedUri,responseType:"arraybuffer",headers:Fo(o)}),function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){return(e=nl(e,r))?n(e,t):(e="arraybuffer"!==i&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;nn||e.height>i}))).filter((function(e){return e.width===h[0].width&&e.height===h[0].height})),c=p[p.length-1],p=p.filter((function(e){return e.bandwidth===c.bandwidth}))[0]),s.experimentalLeastPixelDiffSelector&&(ml(m=d.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e})),(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),f=m[0]);var m=f||p||e||o||u[0]||l[0];return m&&m.playlist?(l="sortedPlaylistReps",f?l="leastPixelDiffRep":p?l="resolutionPlusOneRep":e?l="resolutionBestRep":o?l="bandwidthBestRep":u[0]&&(l="enabledPlaylistReps"),Vl("choosing "+pl(m)+" using "+l+" with options",a),m.playlist):(Vl("could not choose a playlist with options",a),null)}}function yl(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)}function bl(e){return"number"==typeof e&&isFinite(e)}function _l(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,s=e.playlist,a=s.mediaSequence,o=s.id,l=s.segments,u=e.mediaIndex,c=e.partIndex,d=e.timeline,h=(void 0===l?[]:l).length-1,p="mediaIndex/partIndex increment";return e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent),s="number"==typeof c,l=e.segment.uri?"segment":"pre-segment",e=s?go({preloadSegment:i})-1:0,l+" ["+(a+u)+"/"+(a+h)+"]"+(s?" part ["+c+"/"+e+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(s?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+d+"] selected by ["+p+"] playlist ["+o+"]"}function Tl(e){return e+"TimingInfo"}function wl(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType;e=e.audioDisabled;if(n!==i){if("audio"===r)return!(n=t.lastTimelineChange({type:"main"}))||n.to!==i;if("main"===r&&e)return!(t=t.pendingTimelineChange({type:"audio"}))||t.to!==i}}function Sl(e){var t=e.segmentDuration;e=e.maxDuration;return!!t&&Math.round(t)>e+kl}to.forEach((function(e){var t=eo[e];eo[e]=function(e){return t(rr(e))}}));var El=eo,Cl=9e4,xl=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=window.location&&window.location.href||"");var n="function"==typeof window.URL,i=/^\/\//.test(e),r=!window.location&&!/\/\//i.test(e);return n?e=new window.URL(e,window.location||zi):/\/\//i.test(e)||(e=qi.buildAbsoluteURL(window.location&&window.location.href||"",e)),n?(n=new URL(t,e),r?n.href.slice(zi.length):i?n.href.slice(n.protocol.length):n.href):qi.buildAbsoluteURL(e,t)},kl=1/30,Il=Hi.createTimeRange,Al={liveEdgeDelay:vo,duration:bo,seekable:function(e,t,n){var i=t||0;return null===(n=To(e,t,!0,n))?Il():Il(i,n)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,s=e.startTime,a=e.experimentalExactManifestTimings,o=n-s,l=fo(t),u=0,c=0;c>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return n}(rr(r.response).subarray(8))}catch(i){return void s.requestErrored_(i,r,t)}return i[a]={sidxInfo:e.sidx,sidx:o},Zs(e,o,e.sidx.resolvedUri),n(!0)}},this.request=function(e,t,n){function i(e,t,i,r){return t.abort(),o=!0,n(e,t,i,r)}function r(e,t){if(!o){if(e)return i(e,t,"",a);var n=t.responseText.substring(a&&a.byteLength||0,t.responseText.length);return a=function(){for(var e=arguments.length,t=new Array(e),n=0;n=l+a)return r(t,{response:o.subarray(a,a+l),status:n.status,uri:n.uri});s.request=s.vhs_.xhr({uri:i,responseType:"arraybuffer",headers:Fo({byterange:e.sidx.byterange})},r)}))):this.mediaRequest_=window.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},window.clearTimeout(this.minimumUpdatePeriodTimeout_),window.clearTimeout(this.mediaRequest_),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState;e=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[e.id]=e,this.mediaRequest_=null,this.refreshMedia_(e.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(window.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;window.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();e?(e=n?n.targetDuration/2*1e3:5e3,this.mediaUpdateTimeout=window.setTimeout((function(){return t.load()}),e)):this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=window.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=io(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=function(e){return function(e){if(!(e=va(e,"UTCTiming")[0]))return null;var t=_a(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Ba)}return t}(Ea(e))}(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:xl(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();r="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=r-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=(Oo(n=Ca((n={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e}).masterXml,{manifestUri:t=n.srcUrl,clientOffset:n.clientOffset,sidxMapping:n.sidxMapping,previousManifest:n=n.previousManifest}),t),n);e&&(t=function(e,t,n){for(var i=!0,r=Nl(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),s=0;s>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},p=function(t){return e(_.hdlr,x[t])},h=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(_.mdhd,n)},d=function(t){return e(_.mdia,h(t),p(t.type),s(t))},r=function(t){return e(_.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},s=function(n){return e(_.minf,"video"===n.type?e(_.vmhd,k):e(_.smhd,I),t(),m(n))},Ee=function(t,n){for(var i=[],s=n.length;s--;)i[s]=v(n[s]);return e.apply(null,[_.moof,r(t)].concat(i))},a=function(t){for(var n=t.length,i=[];n--;)i[n]=u(t[n]);return e.apply(null,[_.moov,l(4294967295)].concat(i).concat(o(t)))},o=function(t){for(var n=t.length,i=[];n--;)i[n]=y(t[n]);return e.apply(null,[_.mvex].concat(i))},l=function(t){return t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]),e(_.mvhd,t)},f=function(t){for(var n,i=t.samples||[],r=new Uint8Array(4+i.length),s=0;s>>8),a.push(255&r[l].byteLength),a=a.concat(Array.prototype.slice.call(r[l]));for(l=0;l>>8),o.push(255&s[l].byteLength),o=o.concat(Array.prototype.slice.call(s[l]));return n=[_.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(_.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length],a,[s.length],o))),e(_.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],t.sarRatio&&(i=t.sarRatio[0],t=t.sarRatio[1],n.push(e(_.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])))),e.apply(null,n)},N=function(t){return e(_.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),n(t))},c=function(t){return t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]),e(_.tkhd,t)},v=function(t){var n,i=e(_.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),r=Math.floor(t.baseMediaDecodeTime/F),s=Math.floor(t.baseMediaDecodeTime%F);r=e(_.tfdt,new Uint8Array([1,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,s>>>24&255,s>>>16&255,s>>>8&255,255&s]));return"audio"===t.type?(n=b(t,92),e(_.traf,i,r,n)):(s=f(t),n=b(t,s.length+92),e(_.traf,i,r,n,s))},u=function(t){return t.duration=t.duration||4294967295,e(_.trak,c(t),d(t))},y=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(_.trex,n)},R=function(e,t){var n=0,i=0,r=0,s=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(s=8)),[0,0,n|i|r|s,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},$=function(t,n){var i,r,s,a,o=t.samples||[];for(n+=20+16*o.length,n=R(o,n),(r=new Uint8Array(n.length+16*o.length)).set(n),i=n.length,a=0;a>>24,r[i++]=(16711680&s.duration)>>>16,r[i++]=(65280&s.duration)>>>8,r[i++]=255&s.duration,r[i++]=(4278190080&s.size)>>>24,r[i++]=(16711680&s.size)>>>16,r[i++]=(65280&s.size)>>>8,r[i++]=255&s.size,r[i++]=s.flags.isLeading<<2|s.flags.dependsOn,r[i++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,r[i++]=61440&s.flags.degradationPriority,r[i++]=15&s.flags.degradationPriority,r[i++]=(4278190080&s.compositionTimeOffset)>>>24,r[i++]=(16711680&s.compositionTimeOffset)>>>16,r[i++]=(65280&s.compositionTimeOffset)>>>8,r[i++]=255&s.compositionTimeOffset;return e(_.trun,r)},U=function(t,n){var i,r,s,a,o=t.samples||[];for(n+=20+8*o.length,n=R(o,n),(i=new Uint8Array(n.length+8*o.length)).set(n),r=n.length,a=0;a>>24,i[r++]=(16711680&s.duration)>>>16,i[r++]=(65280&s.duration)>>>8,i[r++]=255&s.duration,i[r++]=(4278190080&s.size)>>>24,i[r++]=(16711680&s.size)>>>16,i[r++]=(65280&s.size)>>>8,i[r++]=255&s.size;return e(_.trun,i)},b=function(e,t){return("audio"===e.type?U:$)(e,t)},i=function(){return e(_.ftyp,T,w,T,S)};var z,V=function(t){return e(_.mdat,t)},W=Ee,G=function(e){var t=i(),n=a(e);return(e=new Uint8Array(t.byteLength+n.byteLength)).set(t),e.set(n,t.byteLength),e},X=[33,16,5,32,164,27],Y=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],K=function(e){return 9e4*e},Q=function(e){return e/9e4},J=9e4,Z=K,ee=Q,te=function(e,t){return K(function(e,t){return e/t}(e,t))},ne=function(e,t,n){return Q(n?e:e-t)},ie=function(e,t,n,i){var r,s,a,o,l,u,c=0,d=0;if(t.length&&(r=te(e.baseMediaDecodeTime,e.samplerate),s=Math.ceil(J/(e.samplerate/1024)),n&&i&&(a=r-Math.max(n,i),d=(c=Math.floor(a/s))*s),!(c<1||J/2=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),0this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ue.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},ue.prototype.addText=function(e){this.rows[this.rowIdx]+=e},ue.prototype.backspace=function(){var e;this.isEmpty()||(e=this.rows[this.rowIdx],this.rows[this.rowIdx]=e.substr(0,e.length-1))},de.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new ue(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},de.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},de.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var he=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},s={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(s[e]=n.encoding)})),this.serviceEncodings=s,this.current708Packet=null,this.services={},this.push=function(e){(3===e.type||null===i.current708Packet)&&i.new708Packet(),i.add708Bytes(e)}};function pe(e){return null===e?"":(e=me[e]||e,String.fromCharCode(e))}function fe(){for(var e=[],t=15;t--;)e.push("");return e}he.prototype=new B,he.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},he.prototype.add708Bytes=function(e){var t=(n=e.ccData)>>>8,n=255&n;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(t),this.current708Packet.data.push(n)},he.prototype.push708Packet=function(){var e,t=this.current708Packet,n=t.data,i=null,r=0,s=n[r++];for(t.seq=s>>6,t.sizeCode=63&s;r>5)&&0>5,t.rowLock=(16&i)>>4,t.columnLock=(8&i)>>3,t.priority=7&i,i=n[++e],t.relativePositioning=(128&i)>>7,t.anchorVertical=127&i,i=n[++e],t.anchorHorizontal=i,i=n[++e],t.anchorPoint=(240&i)>>4,t.rowCount=15&i,i=n[++e],t.columnCount=63&i,i=n[++e],t.windowStyle=(56&i)>>3,t.penStyle=7&i,t.virtualRowCount=t.rowCount+1,e},he.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e];t=t.currentWindow.winAttr,i=n[++e];return t.fillOpacity=(192&i)>>6,t.fillRed=(48&i)>>4,t.fillGreen=(12&i)>>2,t.fillBlue=3&i,i=n[++e],t.borderType=(192&i)>>6,t.borderRed=(48&i)>>4,t.borderGreen=(12&i)>>2,t.borderBlue=3&i,i=n[++e],t.borderType+=(128&i)>>5,t.wordWrap=(64&i)>>6,t.printDirection=(48&i)>>4,t.scrollDirection=(12&i)>>2,t.justify=3&i,i=n[++e],t.effectSpeed=(240&i)>>4,t.effectDirection=(12&i)>>2,t.displayEffect=3&i,e},he.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},he.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},he.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<>4,t.offset=(12&i)>>2,t.penSize=3&i,i=n[++e],t.italics=(128&i)>>7,t.underline=(64&i)>>6,t.edgeType=(56&i)>>3,t.fontStyle=7&i,e},he.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e];t=t.currentWindow.penColor,i=n[++e];return t.fgOpacity=(192&i)>>6,t.fgRed=(48&i)>>4,t.fgGreen=(12&i)>>2,t.fgBlue=3&i,i=n[++e],t.bgOpacity=(192&i)>>6,t.bgRed=(48&i)>>4,t.bgGreen=(12&i)>>2,t.bgBlue=3&i,i=n[++e],t.edgeRed=(48&i)>>4,t.edgeGreen=(12&i)>>2,t.edgeBlue=3&i,e},he.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},he.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var me={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},ge=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ve=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,s=32639&e.ccData;s!==this.lastControlCode_?(4096==(61440&s)?this.lastControlCode_=s:s!==this.PADDING_&&(this.lastControlCode_=null),t=s>>>8,n=255&s,s===this.PADDING_||(s===this.RESUME_CAPTION_LOADING_?this.mode_="popOn":s===this.END_OF_CAPTION_?(this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts):s===this.ROLL_UP_2_ROWS_?(this.rollUpRows_=2,this.setRollUp(e.pts)):s===this.ROLL_UP_3_ROWS_?(this.rollUpRows_=3,this.setRollUp(e.pts)):s===this.ROLL_UP_4_ROWS_?(this.rollUpRows_=4,this.setRollUp(e.pts)):s===this.CARRIAGE_RETURN_?(this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts):s===this.BACKSPACE_?"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1):s===this.ERASE_DISPLAYED_MEMORY_?(this.flushDisplayed(e.pts),this.displayed_=fe()):s===this.ERASE_NON_DISPLAYED_MEMORY_?this.nonDisplayed_=fe():s===this.RESUME_DIRECT_CAPTIONING_?("paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=fe()),this.mode_="paintOn",this.startPts_=e.pts):this.isSpecialCharacter(t,n)?(i=pe((t=(3&t)<<8)|n),this[this.mode_](e.pts,i),this.column_++):this.isExtCharacter(t,n)?("popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),i=pe((t=(3&t)<<8)|n),this[this.mode_](e.pts,i),this.column_++):this.isMidRowCode(t,n)?(this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&n)&&this.addFormatting(e.pts,["i"]),1==(1&n)&&this.addFormatting(e.pts,["u"])):this.isOffsetControlCode(t,n)?this.column_+=3&n:this.isPAC(t,n)?(r=ge.indexOf(7968&s),"rollUp"===this.mode_&&(r-this.rollUpRows_+1<0&&(r=this.rollUpRows_-1),this.setRollUp(e.pts,r)),r!==this.row_&&(this.clearFormatting(e.pts),this.row_=r),1&n&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&s)&&(this.column_=4*((14&s)>>1)),this.isColorPAC(n)&&14==(14&n)&&this.addFormatting(e.pts,["i"])):this.isNormalChar(t)&&(0===n&&(n=null),i=pe(t),i+=pe(n),this[this.mode_](e.pts,i),this.column_+=i.length))):this.lastControlCode_=null}};function ye(e,t){var n=1;for(t=this.BASE_&&e"}),""),this[this.mode_](e,t)},ve.prototype.clearFormatting=function(e){var t;this.formatting_.length&&(t=this.formatting_.reverse().reduce((function(e,t){return e+""}),""),this.formatting_=[],this[this.mode_](e,t))},ve.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=n+=t},ve.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];this.displayed_[this.row_]=n+=t},ve.prototype.shiftRowsUp_=function(){for(var e=0;e>>2,u*=4,u+=3&l[7],c.timeStamp=u,void 0===t.pts&&void 0===t.dts&&(t.pts=c.timeStamp,t.dts=c.timeStamp),this.trigger("timestamp",c))),t.frames.push(c),n+=10,(n+=a)>>4&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=_e.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=_e.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new B,Ie.STREAM_TYPES={h264:27,adts:15},(Ae=function(){function e(e,t,i){var r,s,a,o,l=new Uint8Array(e.size),u={type:t},c=0,d=0;if(e.data.length&&!(e.size<9)){for(u.trackId=e.data[0].pid,c=0;c>>3,a.pts*=4,a.pts+=(6&s[13])>>>1,a.dts=a.pts,64&o&&(a.dts=(14&s[14])<<27|(255&s[15])<<20|(254&s[16])<<12|(255&s[17])<<5|(254&s[18])>>>3,a.dts*=4,a.dts+=(6&s[18])>>>1)),a.data=s.subarray(9+s[8])),t="video"===t||u.packetLength<=e.size,(i||t)&&(e.size=0,e.data.length=0),t&&n.trigger("data",u)}}var t,n=this,i=!1,r={data:[],size:0},s={data:[],size:0},a={data:[],size:0};Ae.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var t,n;switch(o.streamType){case _e.H264_STREAM_TYPE:t=r,n="video";break;case _e.ADTS_STREAM_TYPE:t=s,n="audio";break;case _e.METADATA_STREAM_TYPE:t=a,n="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&e(t,n,!0),t.data.push(o),t.size+=o.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=o.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),i=!0,n.trigger("data",e)}})[o.type]()},this.reset=function(){r.size=0,r.data.length=0,s.size=0,s.data.length=0,this.trigger("reset")},this.flushStreams_=function(){e(r,"video"),e(s,"audio"),e(a,"timed-metadata")},this.flush=function(){var e;!i&&t&&(e={type:"metadata",tracks:[]},null!==t.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),n.trigger("data",e)),i=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new B;var De,Oe={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Le,TransportParseStream:Ie,ElementaryStream:Ae,TimestampRolloverStream:Ee,CaptionStream:be.CaptionStream,Cea608Stream:be.Cea608Stream,Cea708Stream:be.Cea708Stream,MetadataStream:Pe};for(De in _e)_e.hasOwnProperty(De)&&(Oe[De]=_e[De]);var Me=Oe,Ne=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Re=function(e){var t,n=0;Re.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,s,a,o,l,u,c=0;if(e||(n=0),"audio"===i.type){for(t&&t.length?(a=t,(t=new Uint8Array(a.byteLength+i.data.byteLength)).set(a),t.set(i.data,a.byteLength)):t=i.data;c+7>5,l=9e4*(o=1024*(1+(3&t[c+6])))/Ne[(60&t[c+2])>>>2],t.byteLength-c>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:Ne[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+s,c+r)}),n++,c+=r}else"number"!=typeof u&&(u=c),c++;"number"==typeof u&&(this.skipWarn_(u,c),u=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}};Re.prototype=new B;var $e,Ue,Be=Re,je=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,s=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");s.set(e.subarray(r,r+a)),n=new DataView(s.buffer).getUint32(0),i=8*a,t-=a},this.skipBits=function(e){var r;e>>32-r;return 0<(i-=r)?n<<=r:0>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},Fe=function(){var e,t,n=0;Fe.prototype.init.call(this),this.push=function(i){for(var r,s=(t=t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),r):i.data).byteLength;n>4?n+20:n+10}function qe(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}Fe.prototype=new B,Ue={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},($e=function(){var e,t,n,i,r,s,a,o=new Fe;$e.prototype.init.call(this),(e=this).push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",(function(a){var o={trackId:t,pts:n,dts:i,data:a,nalUnitTypeCode:31&a[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(a.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(a.subarray(1)),o.config=s(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},a=function(e,t){for(var n=8,i=8,r=0;r=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:He,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5>>2];t++}return null},parseAacTimestamp:function(e){var t,n=10;64&e[5]&&(n+=4,n+=qe(e.subarray(10,14)));do{if((t=qe(e.subarray(n+4,n+8)))<1)return null;if("PRIV"===String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]))for(var i=e.subarray(n+10,n+t+10),r=0;r>>2;return(a*=4)+(3&s[7])}}while(n+=10,(n+=t)e.length)break;i={type:"audio",data:e.subarray(a,a+s),pts:t,dts:t},this.trigger("data",i),a+=s}else{if(e.length-a<10)break;if(a+(s=Ve.parseId3TagSize(e,a))>e.length)break;i={type:"timed-metadata",data:e.subarray(a,a+s)},this.trigger("data",i),a+=s}n=e.length-a,e=0=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))}(n,e,i),e.baseMediaDecodeTime=se(e,t.keepOriginalTimestamps),d=ie(e,o,r,s),e.samples=function(e){for(var t,n=[],i=0;i>>4&&(t+=e[4]+1),t}function ut(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}st.prototype=new B,(Qe=function(e,t){var n,i,r=[],s=[],a=(t=t||{}).firstSequenceNumber||0;Qe.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){ae(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],nt.forEach((function(t){e[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),r.push(t)},this.flush=function(){for(var n,i,o,l=0;r.length&&"access_unit_delimiter_rbsp"!==r[0].nalUnitType;)r.shift();if(0===r.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,t=i.byteLength=0;tn.pts?u++:(t++,a-=i.byteLength,o-=i.nalCount,l-=i.duration);return 0===t?e:t===e.length?null:((r=e.slice(t)).byteLength=a,r.duration=l,r.nalCount=o,r.pts=r[0].pts,r.dts=r[0].dts,r)},this.alignGopsAtEnd_=function(e){for(var t,n,i=s.length-1,r=e.length-1,a=null,o=!1;0<=i&&0<=r;){if(t=s[i],n=e[r],t.pts===n.pts){o=!0;break}t.pts>n.pts?i--:(i===s.length-1&&(a=r),r--)}if(!o&&null===a)return null;if(0===(u=o?r:a))return e;var l=e.slice(u),u=l.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return l.byteLength=u.byteLength,l.duration=u.duration,l.nalCount=u.nalCount,l.pts=l[0].pts,l.dts=l[0].dts,l},this.alignGopsWith=function(e){s=e}}).prototype=new B,(Ze=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Ze.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new B,Ze.prototype.flush=function(e){var t,n,i,r=0,s={captions:[],captionStreams:{},metadata:[],info:{}},a=0;if(this.pendingTracks.length=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(a=this.videoTrack.timelineStartInfo.pts,nt.forEach((function(e){s.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(a=this.audioTrack.timelineStartInfo.pts,tt.forEach((function(e){s.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,e=G(this.pendingTracks),s.initSegment=new Uint8Array(e.byteLength),s.initSegment.set(e),s.data=new Uint8Array(this.pendingBytes),i=0;i=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ze.prototype.setRemux=function(e){this.remuxTracks=e},(Je=function(e){var t,n,i=this,r=!0;Je.prototype.init.call(this),this.baseMediaDecodeTime=(e=e||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};(this.transmuxPipeline_=r).type="aac",r.metadataStream=new Me.MetadataStream,r.aacStream=new et,r.audioTimestampRolloverStream=new Me.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new Me.TimestampRolloverStream("timed-metadata"),r.adtsStream=new Be,r.coalesceStream=new Ze(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new st(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Xe(this,r)},this.setupTsPipeline=function(){var r={};(this.transmuxPipeline_=r).type="ts",r.metadataStream=new Me.MetadataStream,r.packetStream=new Me.TransportPacketStream,r.parseStream=new Me.TransportParseStream,r.elementaryStream=new Me.ElementaryStream,r.timestampRolloverStream=new Me.TimestampRolloverStream,r.adtsStream=new Be,r.h264Stream=new it,r.captionStream=new Me.CaptionStream(e),r.coalesceStream=new Ze(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(s){var a;if("metadata"===s.type){for(a=s.tracks.length;a--;)t||"video"!==s.tracks[a].type?n||"audio"!==s.tracks[a].type||((n=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=s.tracks[a]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Qe(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new st(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),Xe(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,re(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,re(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){var t;r&&((t=rt(e))&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1),this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new B;var ct,dt={Transmuxer:Je,VideoSegmentStream:Qe,AudioSegmentStream:st,AUDIO_PROPERTIES:tt,VIDEO_PROPERTIES:nt,generateSegmentTimingInfo:Ke},ht=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},pt=Pe=function(e){return e>>>0},ft=function e(t,n){var i,r,s,a=[];if(!n.length)return null;for(i=0;i>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},bt=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],s=4&n.flags[2],a=1&n.flags[1],o=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),s&&c&&(t={flags:yt(e.subarray(d,d+4))},d+=4,a&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},a&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=yt(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},_t=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4)},i=1&n.flags[2],r=2&n.flags[2],s=8&n.flags[2],a=16&n.flags[2],o=32&n.flags[2],l=65536&n.flags[0],u=131072&n.flags[0];e=8;return i&&(e+=4,n.baseDataOffset=t.getUint32(12),e+=4),r&&(n.sampleDescriptionIndex=t.getUint32(e),e+=4),s&&(n.defaultSampleDuration=t.getUint32(e),e+=4),a&&(n.defaultSampleSize=t.getUint32(e),e+=4),o&&(n.defaultSampleFlags=t.getUint32(e)),l&&(n.durationIsEmpty=!0),!i&&u&&(n.baseDataOffsetIsMoof=!0),n},Tt=(B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},B="undefined"!=typeof window?window:void 0!==B?B:"undefined"!=typeof self?self:{}),wt=oe,St=be.CaptionStream,Et=function(){var e,t,n,i,r,s,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new St,a=!0,s=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStreams[e.stream]=!0})),e.on("log",(function(e){r.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length||n===e[0]&&i===t[n])},this.parse=function(e,s,a){if(!this.isInitialized())return null;if(!s||!a)return null;if(this.isNewInit(s,a))n=s[0],i=a[n];else if(null===n||!i)return t.push(e),null;for(;0>>2&63).replace(/^0/,"")):n.codec="mp4a.40.2"):n.codec=n.codec.toLowerCase())),(e=ft(e,["mdia","mdhd"])[0])&&(n.timescale=function(e){var t=0===e[0]?12:20;return Ct(e[t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])}(e)),t.push(n)})),t},Pt=Ce,Lt={};function Dt(e,t,n){for(var i,r,s,a,o=0,l=188,u=!1;l<=e.byteLength;)if(71!==e[o]||71!==e[l]&&l!==e.byteLength)o++,l++;else{if(i=e.subarray(o,l),"pes"===Lt.ts.parseType(i,t.pid)&&(r=Lt.ts.parsePesType(i,t.table),s=Lt.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(a=Lt.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),u=!0)),u)break;o+=188,l+=188}for(o=(l=e.byteLength)-188,u=!1;0<=o;)if(71!==e[o]||71!==e[l]&&l!==e.byteLength)o--,l--;else{if(i=e.subarray(o,l),"pes"===Lt.ts.parseType(i,t.pid)&&(r=Lt.ts.parsePesType(i,t.table),s=Lt.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(a=Lt.ts.parsePesTime(i))&&(a.type="audio",n.audio.push(a),u=!0)),u)break;o-=188,l-=188}}function Ot(e){var t,n={pid:null,table:null},i={};for(t in function(e,t){for(var n,i=0,r=188;r=e.byteLength)return null;var n=null,i=e[t+7];return 192&i&&((n={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,n.pts*=4,n.pts+=(6&e[t+13])>>>1,n.dts=n.pts,64&i&&(n.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,n.dts*=4,n.dts+=(6&e[t+18])>>>1)),n},videoPacketContainsKeyFrame:function(e){for(var t=4+lt(e),n=e.subarray(t),i=0,r=0,s=!1;re.length){n=!0;break}null===s&&(t=e.subarray(o,o+a),s=Lt.aac.parseAacTimestamp(t)),o+=a;break;case"audio":if(e.length-o<7){n=!0;break}if((a=Lt.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+a),r=Lt.aac.parseSampleRate(t)),i++,o+=a;break;default:o++}if(n)return null}if(null===r||null===s)return null;var l=Mt/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*i*l,pts:s+1024*i*l}]}}:Ot)(e);return r&&(r.audio||r.video)?(e=t,(t=r).audio&&t.audio.length&&(void 0!==(n=e)&&!isNaN(n)||(n=t.audio[0].dts),t.audio.forEach((function(e){e.dts=Pt(e.dts,n),e.pts=Pt(e.pts,n),e.dtsTime=e.dts/Mt,e.ptsTime=e.pts/Mt}))),t.video&&t.video.length&&(void 0!==(i=e)&&!isNaN(i)||(i=t.video[0].dts),t.video.forEach((function(e){e.dts=Pt(e.dts,i),e.pts=Pt(e.pts,i),e.dtsTime=e.dts/Mt,e.ptsTime=e.pts/Mt})),t.firstKeyFrame&&((t=t.firstKeyFrame).dts=Pt(t.dts,i),t.pts=Pt(t.pts,i),t.dtsTime=t.dts/Mt,t.ptsTime=t.pts/Mt)),r):null},Rt=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){var e,t;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new dt.Transmuxer(this.options),e=this.self,(t=this.transmuxer).on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength},n=t.data,t.data=n.buffer,e.postMessage({action:"data",segment:t,byteOffset:n.byteOffset,byteLength:n.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:ee(t.start.dts),presentation:ee(t.start.pts)},end:{decode:ee(t.end.dts),presentation:ee(t.end.pts)},baseMediaDecodeTime:ee(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ee(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:ee(t.start.dts),presentation:ee(t.start.pts)},end:{decode:ee(t.end.dts),presentation:ee(t.end.pts)},baseMediaDecodeTime:ee(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ee(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ee(t.start),end:ee(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ee(t.start),end:ee(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Et,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);e=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:e&&e.captions||[],logs:e&&e.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales;e=e.data,t=It(t,e);this.self.postMessage({action:"probeMp4StartTime",startTime:t,data:e},[e.buffer])},t.probeMp4Tracks=function(e){var t=e.data;e=At(t);this.self.postMessage({action:"probeMp4Tracks",tracks:e,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=(e="number"!=typeof(n=e.baseStartTime)||isNaN(n)?void 0:n*J,Nt(t,e));e=null;n&&((e={hasVideo:n.video&&2===n.video.length||!1,hasAudio:n.audio&&2===n.audio.length||!1}).hasVideo&&(e.videoStart=n.video[0].ptsTime),e.hasAudio&&(e.audioStart=n.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:e,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){e=new Uint8Array(e.data,e.byteOffset,e.byteLength),this.transmuxer.push(e)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){e=e.timestampOffset||0,this.transmuxer.setBaseMediaDecodeTime(Math.round(Z(e)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(Z(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new Rt(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new Rt(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})))),Bl=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():Jo(e.currentTransmux))},jl=function(e){!function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,Zo(t,e),0;t.transmuxQueue.push(Zo.bind(null,t,e))}("reset",e)},Fl=2,Hl=-101,ql=-102,zl=ro("CodecUtils"),Vl=ro("PlaylistSelector"),Wl=(Vi=function(){var e=this.useDevicePixelRatio&&window.devicePixelRatio||1;return vl(this.playlists.master,this.systemBandwidth,parseInt(fl(this.tech_.el(),"width"),10)*e,parseInt(fl(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},function(e){function t(t,n){var i=e.call(this)||this;if(!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=11<=Hi.browser.IE_VERSION,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=ro("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(ct(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i}dt(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return function(e){var t=new Ul;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t}({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,window.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&jl(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Hi.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo;e=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!e)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Vo(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Wo(e),i=this.keyCache_[n];return this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes}),e={resolvedUri:(i||e).resolvedUri},i&&(e.bytes=i.bytes),e},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");t=e.mediaSequence-n.mediaSequence,this.logger_("live window shift ["+t+"]"),null!==this.mediaIndex&&(this.mediaIndex-=t,this.mediaIndex<0?(this.mediaIndex=null,this.partIndex=null):(r=this.playlist_.segments[this.mediaIndex],!this.partIndex||r.parts&&r.parts.length&&r.parts[this.partIndex]||(r=this.mediaIndex,this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=r))),i&&(i.mediaIndex-=t,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(0<=i.mediaIndex&&(i.segment=e.segments[i.mediaIndex]),0<=i.partIndex&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&jl(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),(t=t===1/0?this.duration_():t)<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r,s=1,a=function(){0==--s&&n()};for(r in!i&&this.audioDisabled_||(s++,this.sourceUpdater_.removeAudio(e,t,a)),!i&&"main"!==this.loaderType_||(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*Cl),s=Math.ceil((n-i)*Cl),a=(i=e.slice(),e.length);a--&&!(e[a].pts<=s););if(-1===a)return i;for(var o=a+1;o--&&!(e[o].pts<=r););return o=Math.max(o,0),i.splice(o,a-o+1),i}(this.gopBuffer_,e,t,this.timeMapping_),s++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)yl(e,t,this.inbandTextTracks_[r]);yl(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&window.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=window.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){var e;this.sourceUpdater_.updating()||(e=this.chooseNextRequest_())&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e];e=e+1===t.segments.length,i=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&e&&i},n.chooseNextRequest_=function(){var e,t,n=co(e=this.buffered_())||0,i=ho(e,this.currentTime_()),r=!this.hasPlayed_()&&1<=i,s=i>=this.goalBufferLength_();if(!(e=this.playlist_.segments).length||r||s)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()),(r={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)}).isSyncRequest?r.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,s=0;s=e.length-1&&a&&!this.seeking_()?null:this.generateSegmentInfo_(r))},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,s=e.isSyncRequest,a=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=n.segments[i];e="number"==typeof a&&u.parts[a],t={requestId:"segment-loader-"+Math.random(),uri:e&&e.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:e?a:null,isSyncRequest:s,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:e&&e.duration||u.duration,segment:u,part:e,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},o=void 0!==o?o:this.isPendingTimestampOffset_;return t.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:o}),"number"==typeof(o=co(this.sourceUpdater_.audioBuffered()))&&(t.audioAppendStart=o-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(t.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];for(var i=Math.ceil((t-n+3)*Cl),r=0;ri);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),t},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,i=t.currentTimeline,r=t.startOfSegment,e=t.buffered,t.overrideCheck||n!==i?n "+g+" for "+e),t=y,s=r.vhs_.tech_,t[a=e]||(s.trigger({type:"usage",name:"vhs-608"}),s.trigger({type:"usage",name:"hls-608"}),/^cc708_/.test(o=a)&&(o="SERVICE"+a.split("_")[1]),(c=s.textTracks().getTrackById(o))?t[a]=c:(u=l=a,f=!1,(c=(s.options_.vhs&&s.options_.vhs.captionServices||{})[o])&&(l=c.label,u=c.language,f=c.default),t[a]=s.addRemoteTextTrack({kind:"captions",id:o,default:f,label:l,language:u},!1).track)),yl(m,g,y[e]),h=(v={captionArray:v,inbandTextTracks:y,timestampOffset:n}).inbandTextTracks,y=v.captionArray,p=v.timestampOffset,y&&(d=window.WebKitDataCue||window.VTTCue,y.forEach((function(e){var t=e.stream;h[t].addCue(new d(e.startTime+p,e.endTime+p,e.text))})))})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})):this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t)):this.logger_("SegmentLoader received no captions from a caption event"))},n.handleId3_=function(e,t,n){var i,r,s,a;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?(i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r=this.inbandTextTracks_,s=n,a=this.vhs_.tech_,r.metadataTrack_||(r.metadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,r.metadataTrack_.inBandMetadataTrackDispatchType=s),function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var s=window.WebKitDataCue||window.VTTCue,a=t.metadataTrack_;if(a&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!=typeof t||window.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n,i=new s(t,t,e.value||e.url||e.data||"");i.frame=e,i.value=e,n=i,Object.defineProperties(n.frame,{id:{get:function(){return Hi.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),n.value.key}},value:{get:function(){return Hi.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),n.value.data}},privateData:{get:function(){return Hi.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),n.value.data}}}),a.addCue(i)}))})),a.cues&&a.cues.length)){for(var o=a.cues,l=[],u=0;u=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(e)}},n.setTimeMapping_=function(e){null!==(e=this.syncController_.mappingForTimeline(e))&&(this.timeMapping_=e)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,s=e.currentVideoTimestampOffset,a=e.useVideoTimingInfo,o=e.videoTimingInfo;e=e.audioTimingInfo;return void 0!==t?t:a?(n=n.segments[i-1],0!==i&&n&&void 0!==n.start&&n.end===r+s?o.start:r):e.start},n.waitForAppendsToComplete_=function(e){if(!(i=this.getCurrentMediaInfo_(e)))return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var t=i.hasAudio,n=i.hasVideo,i=i.isMuxed;n="main"===this.loaderType_&&n,i=!this.audioDisabled_&&t&&!i;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,i&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),i&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t,n;return!!(e=(t=this.loaderType_,n=this.getCurrentMediaInfo_(),e=e,"main"===t&&n&&e?e.hasAudio||e.hasVideo?n.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!n.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null))&&(this.error({message:e,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){var t;null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_||(t=!1,e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset"))},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo;e=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:e.start:e.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_();(t="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo)&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;if(this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_}),(n=function(e,t){if("hls"!==t)return null;var n,i,r=(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach((function(e){var t,r=n[e+"TimingInfo"];r&&(e=r.start,r=r.end,"bigint"==typeof e||"bigint"==typeof r?t=window.BigInt(r)-window.BigInt(e):"number"==typeof e&&"number"==typeof r&&(t=r-e),void 0!==t&&i3*e.playlist.targetDuration,n=n&&n.end&&this.currentTime_()-n.end>3*e.playlist.partTargetDuration;if(t||n)return this.logger_("bad "+(t?"segment":"part")+" "+_l(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+_l(e))},n.recordThroughput_=function(e){var t,n;e.duration<1/60?this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60):(t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,n=Math.floor(e.byteLength/n*8*1e3),this.throughput.rate+=(n-t)/++this.throughput.count)},n.addSegmentMetadataCue_=function(e){var t,n,i,r;this.segmentMetadataTrack_&&(n=(t=e.segment).start,r=t.end,bl(n)&&bl(r)&&(yl(n,r,this.segmentMetadataTrack_),i=window.WebKitDataCue||window.VTTCue,e={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:r},(r=new i(n,r,JSON.stringify(e))).value=e,this.segmentMetadataTrack_.addCue(r)))},t}(Hi.EventTarget));function Gl(){}function Xl(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))}function Yl(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]}function Kl(e,t){if(0!==t.queue.length){var n=0,i=t.queue[n];if("mediaSource"!==i.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!Yl(e,t)){if(i.type!==e){if(null===(n=function(e,t){for(var n=0;n=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Hl&&this.handleTimeout_(),e.code===ql?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var s=r.segment;if(s.map&&(s.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof window.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var a=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",o),i.stopForError({message:"Error loading vtt.js"})},o=function(){i.subtitlesTrack_.tech_.off("vttjserror",a),i.segmentRequestFinished_(e,t,n)};return this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",a)}s.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,r.cues.forEach((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new window.VTTCue(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var n=0;nl)&&(void 0,r=o<0?n.start-_o({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:s}):n.end+_o({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:s}),this.discontinuities[a]={time:r,accuracy:l})}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Hi.EventTarget),wu=function(e){function t(){var t=e.call(this)||this;return t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}dt(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from;e=e.to;return"number"==typeof n&&"number"==typeof e&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:e},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from;e=e.to;return"number"==typeof n&&"number"==typeof e&&(this.lastTimelineChanges_[t]={type:t,from:n,to:e},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Hi.EventTarget),Su=x(N(H((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var n=t((function(e){function t(e,t){for(var n=0;n>7))^f]=f;for(e=t=0;!c[e];e^=n||1,t=p[t]||1)for(a=16843009*h[i=h[n=h[d[c[e]=r=(r=t^t<<1^t<<2^t<<3^t<<4)>>8^255&r^99]=e]]]^65537*i^257*n^16843008*e,s=257*h[r]^16843008*r,f=0;f<4;f++)l[f][e]=s=s<<24^s>>>8,u[f][r]=a=a<<24^a>>>8;for(f=0;f<5;f++)l[f]=l[f].slice(0),u[f]=u[f].slice(0);return o}(),this._tables=[[a[0][0].slice(),a[0][1].slice(),a[0][2].slice(),a[0][3].slice(),a[0][4].slice()],[a[1][0].slice(),a[1][1].slice(),a[1][2].slice(),a[1][3].slice(),a[1][4].slice()]];var r=this._tables[0][4],s=this._tables[1],o=e.length,l=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var u=e.slice(0),c=[];for(this._key=[u,c],t=o;t<4*o+28;t++)i=u[t-1],(t%o==0||8===o&&t%o==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%o==0&&(i=i<<8^i>>>24^l<<24,l=l<<1^283*(l>>7))),u[t]=u[t-o]^i;for(n=0;t;n++,t--)i=u[3&n?t:t-4],c[n]=t<=4||n<4?i:s[0][r[i>>>24]]^s[1][r[i>>16&255]]^s[2][r[i>>8&255]]^s[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,s){for(var a,o,l,u=this._key[1],c=e^u[0],d=i^u[1],h=n^u[2],p=t^u[3],f=u.length/4-2,m=4,g=(t=this._tables[1])[0],v=t[1],y=t[2],b=t[3],_=t[4],T=0;T>>24]^v[d>>16&255]^y[h>>8&255]^b[255&p]^u[m],o=g[d>>>24]^v[h>>16&255]^y[p>>8&255]^b[255&c]^u[m+1],l=g[h>>>24]^v[p>>16&255]^y[c>>8&255]^b[255&d]^u[m+2],p=g[p>>>24]^v[c>>16&255]^y[d>>8&255]^b[255&h]^u[m+3],m+=4,c=a,d=o,h=l;for(T=0;T<4;T++)r[(3&-T)+s]=_[c>>>24]<<24^_[d>>16&255]<<16^_[h>>8&255]<<8^_[255&p]^u[m++],a=c,c=d,d=h,h=p,p=a},e}(),l=function(e){function t(){var t=e.call(this,s)||this;return t.jobs=[],t.delay=1,t.timeout_=null,t}r(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),u=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},c=function(){function e(t,n,i,r){var s=e.STEP,a=new Int32Array(t.buffer),o=new Uint8Array(t.byteLength),c=0;for(this.asyncStream_=new l,this.asyncStream_.push(this.decryptChunk_(a.subarray(c,c+s),n,i,o)),c=s;c>2),c=new o(Array.prototype.slice.call(t)),d=(e=new Uint8Array(e.byteLength),new Int32Array(e.buffer)),h=n[0],p=n[1],f=n[2],m=n[3],g=0;g "+r+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=window.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(window.clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var s,a=i.main||r.length&&i[r[0]];for(s in a)if(a[s].default){n={label:s};break}}if(!n)return t;var o,l=[];for(o in i)if(i[o][n.label]){var u=i[o][n.label];if(u.playlists&&u.playlists.length)l.push.apply(l,u.playlists);else if(u.uri)l.push(u);else if(e.playlists.length)for(var c=0;c "+r.id;return t?r.id!==t.id&&(e=Boolean(ao(n,i).length),t.endList?(n=ho(n,i),o<(i=l?$l.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:$l.MAX_BUFFER_LOW_WATER_LINE)?(u(c+" as duration < max low water line ("+o+" < "+i+")"),!0):(i=r.attributes.BANDWIDTH)<(r=t.attributes.BANDWIDTH)&&(!l||n= bufferLowWaterLine ("+n+" >= "+s+")",l&&(s+=" and next bandwidth > current bandwidth ("+i+" > "+r+")"),u(s),!0):(u("not "+c+" as no switching criteria met"),!1)):e||"number"!=typeof t.partTargetDuration?(u(c+" as current playlist is live"),!0):(u("not "+c+" as current playlist is live llhls, but currentTime isn't in buffered."),!1)):(u(c+" as current playlist is not set"),!0)}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;function t(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)}this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))})),this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;(e=void 0===e?this.selectPlaylist():e)!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Hi.browser.IE_VERSION||Hi.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=s,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),(r=this.selectPlaylist())?(t=e.internal?this.logger_:Hi.log.warn,s=e.message?" "+e.message:"",t((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+s+" Switching to playlist "+r.id+"."),r.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),r.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]),s=r.targetDuration/2*1e3||5e3,s="number"==typeof r.lastRequest&&Date.now()-r.lastRequest<=s,this.switchMedia_(r,"exclude",a||s)):(this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error")))},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;!r&&"main"!==e||i.push(this.masterPlaylistLoader_);var s=[];!r&&"audio"!==e||s.push("AUDIO"),!r&&"subtitle"!==e||(s.push("CLOSED-CAPTIONS"),s.push("SUBTITLES")),s.forEach((function(e){(e=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader)&&i.push(e)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"==typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=ao(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:au.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i,r,s=this.masterPlaylistLoader_.master,a=au.Playlist.seekable(t,n,au.Playlist.liveEdgeDelay(s,t));if(0!==a.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=au.Playlist.seekable(t,n,au.Playlist.liveEdgeDelay(s,t))).length)return}this.seekable_&&this.seekable_.length&&(i=this.seekable_.end(0),r=this.seekable_.start(0)),!e||e.start(0)>a.end(0)||a.start(0)>e.end(0)?this.seekable_=a:this.seekable_=Hi.createTimeRanges([[(e.start(0)>a.start(0)?e:a).start(0),(e.end(0) "'+i[t]+'"')})),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}r=Object.keys(o).reduce((function(e,t){return e&&(e+=", "),e+(t+' does not support codec(s): "')+o[t].join(",")+'"'}),"")+".",this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:r,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){var e;"open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_()||(e=this.getCodecsOrExclude_())&&(this.sourceUpdater_.createSourceBuffers(e),e=[e.video,e.audio].filter(Boolean).join(","),this.excludeIncompatibleVariants_(e))},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r,s=t[i];-1===n.indexOf(s.id)&&(n.push(s.id),r=[],!(i=hl(e.master,s)).audio||tr(i.audio)||er(i.audio)||r.push("audio codec "+i.audio),!i.video||tr(i.video)||er(i.video)||r.push("video codec "+i.video),i.text&&"stpp.ttml.im1t"===i.text&&r.push("text codec "+i.text),r.length&&(s.excludeUntil=1/0,e.logger_("excluding "+s.id+" for unsupported: "+r.join(", "))))}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=dl(e=cl(Qi(e))),s=e.video&&Qi(e.video)[0]||null,a=e.audio&&Qi(e.audio)[0]||null;Object.keys(i).forEach((function(e){var o,l,u=i[e];-1===n.indexOf(u.id)&&u.excludeUntil!==1/0&&(n.push(u.id),o=[],e=dl(l=hl(t.masterPlaylistLoader_.master,u)),(l.audio||l.video)&&(e!==r&&o.push('codec count "'+e+'" !== "'+r+'"'),t.sourceUpdater_.canChangeType()||(e=l.video&&Qi(l.video)[0]||null,l=l.audio&&Qi(l.audio)[0]||null,e&&s&&e.type.toLowerCase()!==s.type.toLowerCase()&&o.push('video codec "'+e.type+'" !== "'+s.type+'"'),l&&a&&l.type.toLowerCase()!==a.type.toLowerCase()&&o.push('audio codec "'+l.type+'" !== "'+a.type+'"')),o.length&&(u.excludeUntil=1/0,t.logger_("blacklisting "+u.id+": "+o.join(" && ")))))}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i=n,r=0;r=r.adStartTime&&t<=r.adEndTime)return r}return null}(t,i+l.duration/2)){if("cueIn"in l){o.endTime=i,o.adEndTime=i,i+=l.duration,o=null;continue}if(i=t.end(t.length-1)))return this.techWaiting_();5<=this.consecutiveUpdates&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();if(this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),void 0!==(e=this.beforeSeekableWindow_(t,n)?(s=t.start(0))+(s===t.end(0)?0:.1):e))return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+lo(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var i=this.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered(),s=i.audioBuffer?i.audioBuffered():null,a=(t=i.videoBuffer?i.videoBuffered():null,(i=this.media()).partTargetDuration||2*(i.targetDuration-kl)),o=[s,t],l=0;l "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})))},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}return e=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,n=this.tech_.buffered(),this.videoUnderflow_({audioBuffered:e.audioBuffered(),videoBuffered:e.videoBuffered(),currentTime:t})?(this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0):0<(e=oo(n,t)).length&&(n=e.start(0)-t,this.logger_("Stopped at "+t+", setting timer for "+n+", seeking to "+e.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*n,t),!0)},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+.1;return(r=!n.endList&&i?e.end(e.length-1)+3*n.targetDuration:r)i+.25*s.duration)return null;n=s}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,t))?"estimate"===e.type?n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:e.estimatedStart}):(t={mediaSeconds:i},(e=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds;n=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*n)}(i,e.segment))&&(t.programDateTime=e.toISOString()),n(null,t)):n({message:"valid programTime was not found"}):n({message:"getProgramTime: playlist and time must be provided"})}({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,s=void 0===r?2:r,a=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,u=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");return void 0!==n&&i&&a?i.endList||u.hasStarted_?function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t{void 0===n[r]?n[r]=i[r]:e(i[r])&&e(n[r])&&Object.keys(i[r]).length>0&&t(n[r],i[r])})}const n={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function i(){const e="undefined"!=typeof document?document:{};return t(e,n),e}const r={document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function s(){const e="undefined"!=typeof window?window:{};return t(e,r),e}class a extends Array{constructor(e){"number"==typeof e?super(e):(super(...e||[]),function(e){const t=e.__proto__;Object.defineProperty(e,"__proto__",{get:()=>t,set(e){t.__proto__=e}})}(this))}}function o(e){void 0===e&&(e=[]);const t=[];return e.forEach(e=>{Array.isArray(e)?t.push(...o(e)):t.push(e)}),t}function l(e,t){return Array.prototype.filter.call(e,t)}function u(e,t){const n=s(),r=i();let o=[];if(!t&&e instanceof a)return e;if(!e)return new a(o);if("string"==typeof e){const n=e.trim();if(n.indexOf("<")>=0&&n.indexOf(">")>=0){let e="div";0===n.indexOf("e.split(" ")));return this.forEach(e=>{e.classList.add(...i)}),this},removeClass:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.split(" ")));return this.forEach(e=>{e.classList.remove(...i)}),this},hasClass:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.split(" ")));return l(this,e=>i.filter(t=>e.classList.contains(t)).length>0).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.split(" ")));this.forEach(e=>{i.forEach(t=>{e.classList.toggle(t)})})},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let n=0;n=0;e-=1){const r=i[e];s&&r.listener===s||s&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===s?(n.removeEventListener(t,r.proxyListener,a),i.splice(e,1)):s||(n.removeEventListener(t,r.proxyListener,a),i.splice(e,1))}}}return this},trigger:function(){const e=s();for(var t=arguments.length,n=new Array(t),i=0;it>0),r.dispatchEvent(t),r.dom7EventData=[],delete r.dom7EventData}}}return this},transitionEnd:function(e){const t=this;return e&&t.on("transitionend",(function n(i){i.target===this&&(e.call(this,i),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const e=s();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const e=s(),t=i(),n=this[0],r=n.getBoundingClientRect(),a=t.body,o=n.clientTop||a.clientTop||0,l=n.clientLeft||a.clientLeft||0,u=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:r.top+u-o,left:r.left+c-l}}return null},css:function(e,t){const n=s();let i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i{e.apply(t,[t,n])}),this):this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:null;for(let t=0;tt-1)return u([]);if(e<0){const n=t+e;return u(n<0?[]:[this[n]])}return u([this[e]])},append:function(){let e;const t=i();for(let n=0;n=0;r-=1)this[n].insertBefore(i.childNodes[r],this[n].childNodes[0])}else if(e instanceof a)for(r=0;r0?e?this[0].nextElementSibling&&u(this[0].nextElementSibling).is(e)?u([this[0].nextElementSibling]):u([]):this[0].nextElementSibling?u([this[0].nextElementSibling]):u([]):u([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return u([]);for(;n.nextElementSibling;){const i=n.nextElementSibling;e?u(i).is(e)&&t.push(i):t.push(i),n=i}return u(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&u(t.previousElementSibling).is(e)?u([t.previousElementSibling]):u([]):t.previousElementSibling?u([t.previousElementSibling]):u([])}return u([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return u([]);for(;n.previousElementSibling;){const i=n.previousElementSibling;e?u(i).is(e)&&t.push(i):t.push(i),n=i}return u(t)},parent:function(e){const t=[];for(let n=0;n6&&(r=r.split(", ").map(e=>e.replace(",",".")).join(", ")),a=new n.WebKitCSSMatrix("none"===r?"":r)):(a=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=a.toString().split(",")),"x"===t&&(r=n.WebKitCSSMatrix?a.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(r=n.WebKitCSSMatrix?a.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0}function f(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function m(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function g(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;nt.indexOf(e)<0);for(let t=0,r=n.length;ta?"next":"prev",d=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,h=()=>{o=(new Date).getTime(),null===l&&(l=o);const e=Math.max(Math.min((o-l)/u,1),0),s=.5-Math.cos(e*Math.PI)/2;let c=a+s*(n-a);if(d(c,n)&&(c=n),t.wrapperEl.scrollTo({[i]:c}),d(c,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:c})}),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(h)};h()}let b,_,T;function w(){return b||(b=function(){const e=s(),t=i();return{smoothScroll:t.documentElement&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),passiveListener:function(){let t=!1;try{const n=Object.defineProperty({},"passive",{get(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),b}function S(e){return void 0===e&&(e={}),_||(_=function(e){let{userAgent:t}=void 0===e?{}:e;const n=w(),i=s(),r=i.navigator.platform,a=t||i.navigator.userAgent,o={ios:!1,android:!1},l=i.screen.width,u=i.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let d=a.match(/(iPad).*OS\s([\d_]+)/);const h=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!d&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===r;let m="MacIntel"===r;return!d&&m&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${u}`)>=0&&(d=a.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),m=!1),c&&!f&&(o.os="android",o.android=!0),(d||p||h)&&(o.os="ios",o.ios=!0),o}(e)),_}function E(){return T||(T=function(){const e=s();return{isSafari:function(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),T}function C(e){let{swiper:t,runCallbacks:n,direction:i,step:r}=e;const{activeIndex:s,previousIndex:a}=t;let o=i;if(o||(o=s>a?"next":s0)return;if(a.isTouched&&a.isMoved)return;const f=!!o.noSwipingClass&&""!==o.noSwipingClass,m=e.composedPath?e.composedPath():e.path;f&&d.target&&d.target.shadowRoot&&m&&(p=u(m[0]));const g=o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass,v=!(!d.target||!d.target.shadowRoot);if(o.noSwiping&&(v?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===i()||n===s())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(g,p[0]):p.closest(g)[0]))return void(t.allowClick=!0);if(o.swipeHandler&&!p.closest(o.swipeHandler)[0])return;l.currentX="touchstart"===d.type?d.targetTouches[0].pageX:d.pageX,l.currentY="touchstart"===d.type?d.targetTouches[0].pageY:d.pageY;const y=l.currentX,b=l.currentY,_=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,T=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(_&&(y<=T||y>=r.innerWidth-T)){if("prevent"!==_)return;e.preventDefault()}if(Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=y,l.startY=b,a.touchStartTime=h(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(a.allowThresholdMove=!1),"touchstart"!==d.type){let e=!0;p.is(a.focusableElements)&&(e=!1,"SELECT"===p[0].nodeName&&(a.isTouched=!1)),n.activeElement&&u(n.activeElement).is(a.focusableElements)&&n.activeElement!==p[0]&&n.activeElement.blur();const i=e&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!i||p[0].isContentEditable||d.preventDefault()}t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",d)}function k(e){const t=i(),n=this,r=n.touchEventsData,{params:s,touches:a,rtlTranslate:o,enabled:l}=n;if(!l)return;let c=e;if(c.originalEvent&&(c=c.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c));if(r.isTouchEvent&&"touchmove"!==c.type)return;const d="touchmove"===c.type&&c.targetTouches&&(c.targetTouches[0]||c.changedTouches[0]),p="touchmove"===c.type?d.pageX:c.pageX,f="touchmove"===c.type?d.pageY:c.pageY;if(c.preventedByNestedSwiper)return a.startX=p,void(a.startY=f);if(!n.allowTouchMove)return u(c.target).is(r.focusableElements)||(n.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:p,startY:f,currentX:p,currentY:f}),r.touchStartTime=h()));if(r.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(n.isVertical()){if(fa.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(pa.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&c.target===t.activeElement&&u(c.target).is(r.focusableElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",c),c.targetTouches&&c.targetTouches.length>1)return;a.currentX=p,a.currentY=f;const m=a.currentX-a.startX,g=a.currentY-a.startY;if(n.params.threshold&&Math.sqrt(m**2+g**2)=25&&(e=180*Math.atan2(Math.abs(g),Math.abs(m))/Math.PI,r.isScrolling=n.isHorizontal()?e>s.touchAngle:90-e>s.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;n.allowClick=!1,!s.cssMode&&c.cancelable&&c.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&c.stopPropagation(),r.isMoved||(s.loop&&!s.cssMode&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!s.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",c)),n.emit("sliderMove",c),r.isMoved=!0;let v=n.isHorizontal()?m:g;a.diff=v,v*=s.touchRatio,o&&(v=-v),n.swipeDirection=v>0?"prev":"next",r.currentTranslate=v+r.startTranslate;let y=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),v>0&&r.currentTranslate>n.minTranslate()?(y=!1,s.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+v)**b)):v<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),s.threshold>0){if(!(Math.abs(v)>s.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}s.followFinger&&!s.cssMode&&((s.freeMode&&s.freeMode.enabled&&n.freeMode||s.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&s.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function I(e){const t=this,n=t.touchEventsData,{params:i,touches:r,rtlTranslate:s,slidesGrid:a,enabled:o}=t;if(!o)return;let l=e;if(l.originalEvent&&(l=l.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",l),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const u=h(),c=u-n.touchStartTime;if(t.allowClick){const e=l.path||l.composedPath&&l.composedPath();t.updateClickedSlide(e&&e[0]||l.target),t.emit("tap click",l),c<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",l)}if(n.lastClickTime=h(),d(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let p;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,p=i.followFinger?s?t.translate:-t.translate:-n.currentTranslate,i.cssMode)return;if(t.params.freeMode&&i.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:p});let f=0,m=t.slidesSizesGrid[0];for(let e=0;e=a[e]&&p=a[e]&&(f=e,m=a[a.length-1]-a[a.length-2])}let g=null,v=null;i.rewind&&(t.isBeginning?v=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const y=(p-a[f])/m,b=fi.longSwipesMs){if(!i.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(y>=i.longSwipesRatio?t.slideTo(i.rewind&&t.isEnd?g:f+b):t.slideTo(f)),"prev"===t.swipeDirection&&(y>1-i.longSwipesRatio?t.slideTo(f+b):null!==v&&y<0&&Math.abs(y)>i.longSwipesRatio?t.slideTo(v):t.slideTo(f))}else{if(!i.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||l.target!==t.navigation.nextEl&&l.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==g?g:f+b),"prev"===t.swipeDirection&&t.slideTo(null!==v?v:f)):l.target===t.navigation.nextEl?t.slideTo(f+b):t.slideTo(f)}}function A(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&s!==e.snapGrid&&e.checkOverflow()}function P(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function L(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:i}=e;if(!i)return;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const s=e.maxTranslate()-e.minTranslate();r=0===s?0:(e.translate-e.minTranslate())/s,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}Object.keys(c).forEach(e=>{Object.defineProperty(u.fn,e,{value:c[e],writable:!0})});let D=!1;function O(){}const M=(e,t)=>{const n=i(),{params:r,touchEvents:s,el:a,wrapperEl:o,device:l,support:u}=e,c=!!r.nested,d="on"===t?"addEventListener":"removeEventListener",h=t;if(u.touch){const t=!("touchstart"!==s.start||!u.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};a[d](s.start,e.onTouchStart,t),a[d](s.move,e.onTouchMove,u.passiveListener?{passive:!1,capture:c}:c),a[d](s.end,e.onTouchEnd,t),s.cancel&&a[d](s.cancel,e.onTouchEnd,t)}else a[d](s.start,e.onTouchStart,!1),n[d](s.move,e.onTouchMove,c),n[d](s.end,e.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&a[d]("click",e.onClick,!0),r.cssMode&&o[d]("scroll",e.onScroll),r.updateOnWindowResize?e[h](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",A,!0):e[h]("observerUpdate",A,!0)};const N=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var R={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",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,_emitClasses:!1};function $(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],r=n[i];"object"==typeof r&&null!==r?(["navigation","pagination","scrollbar"].indexOf(i)>=0&&!0===e[i]&&(e[i]={auto:!0}),i in e&&"enabled"in r?(!0===e[i]&&(e[i]={enabled:!0}),"object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),g(t,n)):g(t,n)):g(t,n)}}const U={eventsEmitter:{on(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=n?"unshift":"push";return e.split(" ").forEach(e=>{i.eventsListeners[e]||(i.eventsListeners[e]=[]),i.eventsListeners[e][r](t)}),i},once(e,t,n){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;function r(){i.off(e,r),r.__emitterProxy&&delete r.__emitterProxy;for(var n=arguments.length,s=new Array(n),a=0;a=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed?n:n.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((i,r)=>{(i===t||i.__emitterProxy&&i.__emitterProxy===t)&&n.eventsListeners[e].splice(r,1)})}),n):n},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,n,i;for(var r=arguments.length,s=new Array(r),a=0;a{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(i,[t,...n])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(i,n)})}),e}},update:{updateSize:function(){const e=this;let t,n;const i=e.$el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:i[0].clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i[0].clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(i.css("padding-left")||0,10)-parseInt(i.css("padding-right")||0,10),n=n-parseInt(i.css("padding-top")||0,10)-parseInt(i.css("padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this;function t(t){return e.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}function n(e,n){return parseFloat(e.getPropertyValue(t(n))||0)}const i=e.params,{$wrapperEl:r,size:s,rtlTranslate:a,wrongRTL:o}=e,l=e.virtual&&i.virtual.enabled,u=l?e.virtual.slides.length:e.slides.length,c=r.children("."+e.params.slideClass),d=l?e.virtual.slides.length:c.length;let h=[];const p=[],f=[];let m=i.slidesOffsetBefore;"function"==typeof m&&(m=i.slidesOffsetBefore.call(e));let g=i.slidesOffsetAfter;"function"==typeof g&&(g=i.slidesOffsetAfter.call(e));const y=e.snapGrid.length,b=e.slidesGrid.length;let _=i.spaceBetween,T=-m,w=0,S=0;if(void 0===s)return;"string"==typeof _&&_.indexOf("%")>=0&&(_=parseFloat(_.replace("%",""))/100*s),e.virtualSize=-_,a?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),i.centeredSlides&&i.cssMode&&(v(e.wrapperEl,"--swiper-centered-offset-before",""),v(e.wrapperEl,"--swiper-centered-offset-after",""));const E=i.grid&&i.grid.rows>1&&e.grid;let C;E&&e.grid.initSlides(d);const x="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let r=0;r1&&h.push(e.virtualSize-s)}if(0===h.length&&(h=[0]),0!==i.spaceBetween){const n=e.isHorizontal()&&a?"marginLeft":t("marginRight");c.filter((e,t)=>!i.cssMode||t!==c.length-1).css({[n]:_+"px"})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;f.forEach(t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)}),e-=i.spaceBetween;const t=e-s;h=h.map(e=>e<0?-m:e>t?t+g:e)}if(i.centerInsufficientSlides){let e=0;if(f.forEach(t=>{e+=t+(i.spaceBetween?i.spaceBetween:0)}),e-=i.spaceBetween,e{h[n]=e-t}),p.forEach((e,n)=>{p[n]=e+t})}}if(Object.assign(e,{slides:c,snapGrid:h,slidesGrid:p,slidesSizesGrid:f}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){v(e.wrapperEl,"--swiper-centered-offset-before",-h[0]+"px"),v(e.wrapperEl,"--swiper-centered-offset-after",e.size/2-f[f.length-1]/2+"px");const t=-e.snapGrid[0],n=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+n)}if(d!==u&&e.emit("slidesLengthChange"),h.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=i.containerModifierClass+"backface-hidden",n=e.$el.hasClass(t);d<=i.maxBackfaceHiddenSlides?n||e.$el.addClass(t):n&&e.$el.removeClass(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,s=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const a=e=>i?t.slides.filter(t=>parseInt(t.getAttribute("data-swiper-slide-index"),10)===e)[0]:t.slides.eq(e)[0];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||u([])).each(e=>{n.push(e)});else for(r=0;rt.slides.length&&!i)break;n.push(a(e))}else n.push(a(t.activeIndex));for(r=0;rs?e:s}(s||0===s)&&t.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){const e=this,t=e.slides;for(let n=0;n=0&&d1&&h<=t.size||d<=0&&h>=t.size)&&(t.visibleSlides.push(o),t.visibleSlidesIndexes.push(e),i.eq(e).addClass(n.slideVisibleClass)),o.progress=r?-u:u,o.originalProgress=r?-c:c}t.visibleSlides=u(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,i=t.maxTranslate()-t.minTranslate();let{progress:r,isBeginning:s,isEnd:a}=t;const o=s,l=a;0===i?(r=0,s=!0,a=!0):(r=(e-t.minTranslate())/i,s=r<=0,a=r>=1),Object.assign(t,{progress:r,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),s&&!o&&t.emit("reachBeginning toEdge"),a&&!l&&t.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,$wrapperEl:i,activeIndex:r,realIndex:s}=e,a=e.virtual&&n.virtual.enabled;let o;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),o=a?e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${r}"]`):t.eq(r),o.addClass(n.slideActiveClass),n.loop&&(o.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(n.slideDuplicateActiveClass));let l=o.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=t.eq(0),l.addClass(n.slideNextClass));let u=o.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===u.length&&(u=t.eq(-1),u.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),u.hasClass(n.slideDuplicateClass)?i.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):i.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${u.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass)),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:i,snapGrid:r,params:s,activeIndex:a,realIndex:o,snapIndex:l}=t;let u,c=e;if(void 0===c){for(let e=0;e=i[e]&&n=i[e]&&n=i[e]&&(c=e);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(r.indexOf(n)>=0)u=r.indexOf(n);else{const e=Math.min(s.slidesPerGroupSkip,c);u=e+Math.floor((c-e)/s.slidesPerGroup)}if(u>=r.length&&(u=r.length-1),c===a)return void(u!==l&&(t.snapIndex=u,t.emit("snapIndexChange")));const d=parseInt(t.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(t,{snapIndex:u,realIndex:d,previousIndex:a,activeIndex:c}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),o!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,n=t.params,i=u(e).closest("."+n.slideClass)[0];let r,s=!1;if(i)for(let e=0;el?l:i&&e=l.length&&(g=l.length-1);const v=-l[g];if(o.normalizeSlideIndex)for(let e=0;e=n&&t=n&&t=n&&(a=e)}if(s.initialized&&a!==d){if(!s.allowSlideNext&&vs.translate&&v>s.maxTranslate()&&(d||0)!==a)return!1}let b;if(a!==(c||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(v),b=a>d?"next":a{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1})}else{if(!s.support.smoothScroll)return y({swiper:s,targetPosition:n,side:e?"left":"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return s.setTransition(t),s.setTranslate(v),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,i),s.transitionStart(n,b),0===t?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,n,i){if(void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"==typeof e){const t=parseInt(e,10);if(!isFinite(t))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`);e=t}const r=this;let s=e;return r.params.loop&&(s+=r.loopedSlides),r.slideTo(s,t,n,i)},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,{animating:r,enabled:s,params:a}=i;if(!s)return i;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndexc(e));let p=a[h.indexOf(d)-1];if(void 0===p&&r.cssMode){let e;a.forEach((t,n)=>{d>=t&&(e=n)}),void 0!==e&&(p=a[e>0?e-1:e])}let f=0;if(void 0!==p&&(f=o.indexOf(p),f<0&&(f=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(f=f-i.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),r.rewind&&i.isBeginning){const r=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(r,e,t,n)}return i.slideTo(f,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===i&&(i=.5);const r=this;let s=r.activeIndex;const a=Math.min(r.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[o]){const e=r.snapGrid[o];l-e>(r.snapGrid[o+1]-e)*i&&(s+=r.params.slidesPerGroup)}else{const e=r.snapGrid[o-1];l-e<=(r.snapGrid[o]-e)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let r,s=e.clickedIndex;if(t.loop){if(e.animating)return;r=parseInt(u(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?se.slides.length-e.loopedSlides+i/2?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),d(()=>{e.slideTo(s)})):e.slideTo(s):s>e.slides.length-i?(e.loopFix(),s=n.children(`.${t.slideClass}[data-swiper-slide-index="${r}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),d(()=>{e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}},loop:{loopCreate:function(){const e=this,t=i(),{params:n,$wrapperEl:r}=e,s=r.children().length>0?u(r.children()[0].parentNode):r;s.children(`.${n.slideClass}.${n.slideDuplicateClass}`).remove();let a=s.children("."+n.slideClass);if(n.loopFillGroupWithBlank){const e=n.slidesPerGroup-a.length%n.slidesPerGroup;if(e!==n.slidesPerGroup){for(let i=0;ia.length&&e.params.loopedSlidesLimit&&(e.loopedSlides=a.length);const o=[],l=[];a.each((e,t)=>{u(e).attr("data-swiper-slide-index",t)});for(let t=0;t=0;e-=1)s.prepend(u(o[e].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:i,allowSlidePrev:r,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=e;let l;e.allowSlidePrev=!0,e.allowSlideNext=!0;const u=-a[t]-e.getTranslate();t=n.length-i&&(l=-n.length+t+i,l+=i,e.slideTo(l,0,!1,!0)&&0!==u&&e.setTranslate((o?-e.translate:e.translate)-u)),e.allowSlidePrev=r,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.removeAttr("data-swiper-slide-index")}},grabCursor:{setGrabCursor:function(e){const t=this;if(t.support.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;n.style.cursor="move",n.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;e.support.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:{attachEvents:function(){const e=this,t=i(),{params:n,support:r}=e;e.onTouchStart=x.bind(e),e.onTouchMove=k.bind(e),e.onTouchEnd=I.bind(e),n.cssMode&&(e.onScroll=L.bind(e)),e.onClick=P.bind(e),r.touch&&!D&&(t.addEventListener("touchstart",O),D=!0),M(e,"on")},detachEvents:function(){M(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:n,loopedSlides:i=0,params:r,$el:s}=e,a=r.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const o=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!o||e.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||e.originalParams,u=N(e,r),c=N(e,l),d=r.enabled;u&&!c?(s.removeClass(`${r.containerModifierClass}grid ${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!u&&c&&(s.addClass(r.containerModifierClass+"grid"),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===r.grid.fill)&&s.addClass(r.containerModifierClass+"grid-column"),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{const n=r[t]&&r[t].enabled,i=l[t]&&l[t].enabled;n&&!i&&e[t].disable(),!n&&i&&e[t].enable()});const h=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||h);h&&n&&e.changeDirection(),g(e.params,l);const f=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!f?e.disable():!d&&f&&e.enable(),e.currentBreakpoint=o,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-i+e.loopedSlides,0,!1)),e.emit("breakpoint",l)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let i=!1;const r=s(),a="window"===t?r.innerHeight:n.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:a*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;en}else e.isLocked=1===e.snapGrid.length;!0===n.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===n.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:n,rtl:i,$el:r,device:s,support:a}=e,o=function(e,t){const n=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(i=>{e[i]&&n.push(t+i)}):"string"==typeof e&&n.push(t+e)}),n}(["initialized",n.direction,{"pointer-events":!a.touch},{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:i},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&"column"===n.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...o),r.addClass([...t].join(" ")),e.emitContainerClasses()},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" ")),this.emitContainerClasses()}},images:{loadImage:function(e,t,n,i,r,a){const o=s();let l;function c(){a&&a()}u(e).parent("picture")[0]||e.complete&&r?c():t?(l=new o.Image,l.onload=c,l.onerror=c,i&&(l.sizes=i),n&&(l.srcset=n),t&&(l.src=t)):c()},preloadImages:function(){const 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(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let n=0;n1){const e=[];return u(t.el).each(n=>{const i=g({},t,{el:n});e.push(new j(i))}),e}const s=this;s.__swiper__=!0,s.support=w(),s.device=S({userAgent:t.userAgent}),s.browser=E(),s.eventsListeners={},s.eventsAnyListeners=[],s.modules=[...s.__modules__],t.modules&&Array.isArray(t.modules)&&s.modules.push(...t.modules);const a={};s.modules.forEach(e=>{e({swiper:s,extendParams:$(t,a),on:s.on.bind(s),once:s.once.bind(s),off:s.off.bind(s),emit:s.emit.bind(s)})});const o=g({},R,a);return s.params=g({},o,B,t),s.originalParams=g({},s.params),s.passedParams=g({},t),s.params&&s.params.on&&Object.keys(s.params.on).forEach(e=>{s.on(e,s.params.on[e])}),s.params&&s.params.onAny&&s.onAny(s.params.onAny),s.$=u,Object.assign(s,{enabled:s.params.enabled,el:e,classNames:[],slides:u(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===s.params.direction,isVertical:()=>"vertical"===s.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:s.params.allowSlideNext,allowSlidePrev:s.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"],t=["pointerdown","pointermove","pointerup"];return s.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},s.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},s.support.touch||!s.params.simulateTouch?s.touchEventsTouch:s.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,focusableElements:s.params.focusableElements,lastClickTime:h(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:s.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),s.emit("_swiper"),s.params.init&&s.init(),s}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),r=(n.maxTranslate()-i)*e+i;n.translateTo(r,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.each(n=>{const i=e.getSlideClasses(n);t.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:n,slides:i,slidesGrid:r,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if(n.centeredSlides){let e,t=i[o].swiperSlideSize;for(let n=o+1;na&&(e=!0));for(let n=o-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>a&&(e=!0))}else if("current"===e)for(let e=o+1;e=0;e-=1)r[o]-r[e]1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),r||i()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const n=this,i=n.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(`${n.params.containerModifierClass}${i}`).addClass(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.each(t=>{"vertical"===e?t.style.width="":t.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.$el.addClass(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.$el.removeClass(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;const n=u(e||t.params.el);if(!(e=n[0]))return!1;e.swiper=t;const r=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let s=(()=>{if(e&&e.shadowRoot&&e.shadowRoot.querySelector){const t=u(e.shadowRoot.querySelector(r()));return t.children=e=>n.children(e),t}return n.children?n.children(r()):u(n).children(r())})();if(0===s.length&&t.params.createElements){const e=i().createElement("div");s=u(e),e.className=t.params.wrapperClass,n.append(e),n.children("."+t.params.slideClass).each(e=>{s.append(e)})}return Object.assign(t,{$el:n,el:e,$wrapperEl:s,wrapperEl:s[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===n.css("direction")),wrongRTL:"-webkit-box"===s.css("display")}),!0}init(e){const t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const n=this,{params:i,$el:r,$wrapperEl:s,slides:a}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),r.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.$el[0].swiper=null,function(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}(n)),n.destroyed=!0),null}static extendDefaults(e){g(B,e)}static get extendedDefaults(){return B}static get defaults(){return R}static installModule(e){j.prototype.__modules__||(j.prototype.__modules__=[]);const t=j.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>j.installModule(e)),j):(j.installModule(e),j)}}function F(e,t,n,r){const s=i();return e.params.createElements&&Object.keys(r).forEach(i=>{if(!n[i]&&!0===n.auto){let a=e.$el.children("."+r[i])[0];a||(a=s.createElement("div"),a.className=r[i],e.$el.append(a)),n[i]=a,t[i]=a}}),n}function H(e){return void 0===e&&(e=""),"."+e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function q(e){const t=this,{$wrapperEl:n,params:i}=t;if(i.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let t=0;t=o)return void n.appendSlide(t);let l=a>e?a+1:a;const u=[];for(let t=o-1;t>=e;t-=1){const e=n.slides.eq(t);e.remove(),u.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;ee?a+t.length:a}else i.append(t);for(let e=0;e{if(n.params.effect!==t)return;n.classNames.push(`${n.params.containerModifierClass}${t}`),o&&o()&&n.classNames.push(n.params.containerModifierClass+"3d");const e=a?a():{};Object.assign(n.params,e),Object.assign(n.originalParams,e)}),i("setTranslate",()=>{n.params.effect===t&&r()}),i("setTransition",(e,i)=>{n.params.effect===t&&s(i)}),i("transitionEnd",()=>{if(n.params.effect===t&&l){if(!u||!u().slideShadows)return;n.slides.each(e=>{n.$(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()}),l()}}),i("virtualUpdate",()=>{n.params.effect===t&&(n.slides.length||(c=!0),requestAnimationFrame(()=>{c&&n.slides&&n.slides.length&&(r(),c=!1)}))})}function Y(e,t){return e.transformEl?t.find(e.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):t}function K(e){let{swiper:t,duration:n,transformEl:i,allSlides:r}=e;const{slides:s,activeIndex:a,$wrapperEl:o}=t;if(t.params.virtualTranslate&&0!==n){let e,n=!1;e=r?i?s.find(i):s:i?s.eq(a).find(i):s.eq(a),e.transitionEnd(()=>{if(n)return;if(!t||t.destroyed)return;n=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t`),r.append(s)),s}Object.keys(U).forEach(e=>{Object.keys(U[e]).forEach(t=>{j.prototype[t]=U[e][t]})}),j.use([function(e){let{swiper:t,on:n,emit:i}=e;const r=s();let a=null,o=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},u=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(a=new ResizeObserver(e=>{o=r.requestAnimationFrame(()=>{const{width:n,height:i}=t;let r=n,s=i;e.forEach(e=>{let{contentBoxSize:n,contentRect:i,target:a}=e;a&&a!==t.el||(r=i?i.width:(n[0]||n).inlineSize,s=i?i.height:(n[0]||n).blockSize)}),r===n&&s===i||l()})}),a.observe(t.el)):(r.addEventListener("resize",l),r.addEventListener("orientationchange",u))}),n("destroy",()=>{o&&r.cancelAnimationFrame(o),a&&a.unobserve&&t.el&&(a.unobserve(t.el),a=null),r.removeEventListener("resize",l),r.removeEventListener("orientationchange",u)})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a=[],o=s(),l=function(e,t){void 0===t&&(t={});const n=new(o.MutationObserver||o.WebkitMutationObserver)(e=>{if(1===e.length)return void r("observerUpdate",e[0]);const t=function(){r("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(t):o.setTimeout(t,0)});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),a.push(n)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t{a.forEach(e=>{e.disconnect()}),a.splice(0,a.length)})}]);const J=[function(e){let t,{swiper:n,extendParams:i,on:r,emit:s}=e;function a(e,t){const i=n.params.virtual;if(i.cache&&n.virtual.cache[t])return n.virtual.cache[t];const r=i.renderSlide?u(i.renderSlide.call(n,e,t)):u(`
      ${e}
      `);return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",t),i.cache&&(n.virtual.cache[t]=r),r}function o(e){const{slidesPerView:t,slidesPerGroup:i,centeredSlides:r}=n.params,{addSlidesBefore:o,addSlidesAfter:l}=n.params.virtual,{from:u,to:c,slides:d,slidesGrid:h,offset:p}=n.virtual;n.params.cssMode||n.updateActiveIndex();const f=n.activeIndex||0;let m,g,v;m=n.rtlTranslate?"right":n.isHorizontal()?"left":"top",r?(g=Math.floor(t/2)+i+l,v=Math.floor(t/2)+i+o):(g=t+(i-1)+l,v=i+o);const y=Math.max((f||0)-v,0),b=Math.min((f||0)+g,d.length-1),_=(n.slidesGrid[y]||0)-(n.slidesGrid[0]||0);function T(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.lazy&&n.params.lazy.enabled&&n.lazy.load(),s("virtualUpdate")}if(Object.assign(n.virtual,{from:y,to:b,offset:_,slidesGrid:n.slidesGrid}),u===y&&c===b&&!e)return n.slidesGrid!==h&&_!==p&&n.slides.css(m,_+"px"),n.updateProgress(),void s("virtualUpdate");if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:_,from:y,to:b,slides:function(){const e=[];for(let t=y;t<=b;t+=1)e.push(d[t]);return e}()}),void(n.params.virtual.renderExternalUpdate?T():s("virtualUpdate"));const w=[],S=[];if(e)n.$wrapperEl.find("."+n.params.slideClass).remove();else for(let e=u;e<=c;e+=1)(eb)&&n.$wrapperEl.find(`.${n.params.slideClass}[data-swiper-slide-index="${e}"]`).remove();for(let t=0;t=y&&t<=b&&(void 0===c||e?S.push(t):(t>c&&S.push(t),t{n.$wrapperEl.append(a(d[e],e))}),w.sort((e,t)=>t-e).forEach(e=>{n.$wrapperEl.prepend(a(d[e],e))}),n.$wrapperEl.children(".swiper-slide").css(m,_+"px"),T()}i({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}}),n.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]},r("beforeInit",()=>{n.params.virtual.enabled&&(n.virtual.slides=n.params.virtual.slides,n.classNames.push(n.params.containerModifierClass+"virtual"),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0,n.params.initialSlide||o())}),r("setTranslate",()=>{n.params.virtual.enabled&&(n.params.cssMode&&!n._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{o()},100)):o())}),r("init update resize",()=>{n.params.virtual.enabled&&n.params.cssMode&&v(n.wrapperEl,"--swiper-virtual-size",n.virtualSize+"px")}),Object.assign(n.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t{const i=e[n],s=i.attr("data-swiper-slide-index");s&&i.attr("data-swiper-slide-index",parseInt(s,10)+r),t[parseInt(n,10)+r]=i}),n.virtual.cache=t}o(!0),n.slideTo(i,0)},removeSlide:function(e){if(null==e)return;let t=n.activeIndex;if(Array.isArray(e))for(let i=e.length-1;i>=0;i-=1)n.virtual.slides.splice(e[i],1),n.params.virtual.cache&&delete n.virtual.cache[e[i]],e[i]0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;const i=t.$el,r=i[0].clientWidth,s=i[0].clientHeight,a=l.innerWidth,o=l.innerHeight,u=t.$el.offset();n&&(u.left-=t.$el[0].scrollLeft);const c=[[u.left,u.top],[u.left+r,u.top],[u.left,u.top+s],[u.left+r,u.top+s]];for(let t=0;t=0&&n[0]<=a&&n[1]>=0&&n[1]<=o){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((u||c||d||h)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((c||h)&&!n||(u||d)&&n)&&t.slideNext(),((u||d)&&!n||(c||h)&&n)&&t.slidePrev()):((u||c||p||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(c||f)&&t.slideNext(),(u||p)&&t.slidePrev()),a("keyPress",r)}}function d(){t.keyboard.enabled||(u(o).on("keydown",c),t.keyboard.enabled=!0)}function h(){t.keyboard.enabled&&(u(o).off("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),r("init",()=>{t.params.keyboard.enabled&&d()}),r("destroy",()=>{t.keyboard.enabled&&h()}),Object.assign(t.keyboard,{enable:d,disable:h})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a=s();let o;n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null}}),t.mousewheel={enabled:!1};let l,c=h();const p=[];function f(){t.enabled&&(t.mouseEntered=!0)}function m(){t.enabled&&(t.mouseEntered=!1)}function g(e){return!(t.params.mousewheel.thresholdDelta&&e.delta=6&&h()-c<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),r("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),r("scroll",e.raw)),c=(new a.Date).getTime(),1))}function v(e){let n=e,i=!0;if(!t.enabled)return;const s=t.params.mousewheel;t.params.cssMode&&n.preventDefault();let a=t.$el;if("container"!==t.params.mousewheel.eventsTarget&&(a=u(t.params.mousewheel.eventsTarget)),!t.mouseEntered&&!a[0].contains(n.target)&&!s.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);let c=0;const f=t.rtlTranslate?-1:1,m=function(e){let t=0,n=0,i=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),i=10*t,r=10*n,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(i=e.deltaX),e.shiftKey&&!i&&(i=r,r=0),(i||r)&&e.deltaMode&&(1===e.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!t&&(t=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:i,pixelY:r}}(n);if(s.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(m.pixelX)>Math.abs(m.pixelY)))return!0;c=-m.pixelX*f}else{if(!(Math.abs(m.pixelY)>Math.abs(m.pixelX)))return!0;c=-m.pixelY}else c=Math.abs(m.pixelX)>Math.abs(m.pixelY)?-m.pixelX*f:-m.pixelY;if(0===c)return!0;s.invert&&(c=-c);let v=t.getTranslate()+c*s.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),i=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()),i&&t.params.nested&&n.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:h(),delta:Math.abs(c),direction:Math.sign(c)},i=l&&e.time=t.minTranslate()&&(a=t.minTranslate()),a<=t.maxTranslate()&&(a=t.maxTranslate()),t.setTransition(0),t.setTranslate(a),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!u&&t.isBeginning||!h&&t.isEnd)&&t.updateSlidesClasses(),t.params.freeMode.sticky){clearTimeout(o),o=void 0,p.length>=15&&p.shift();const n=p.length?p[p.length-1]:void 0,i=p[0];if(p.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))p.splice(0);else if(p.length>=15&&e.time-i.time<500&&i.delta-e.delta>=1&&e.delta<=6){const n=c>0?.8:.2;l=e,p.splice(0),o=d(()=>{t.slideToClosest(t.params.speed,!0,void 0,n)},0)}o||(o=d(()=>{l=e,p.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5)},500))}if(i||r("scroll",n),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),a===t.minTranslate()||a===t.maxTranslate())return!0}}else{const n={time:h(),delta:Math.abs(c),direction:Math.sign(c),raw:e};p.length>=2&&p.shift();const i=p.length?p[p.length-1]:void 0;if(p.push(n),i?(n.direction!==i.direction||n.delta>i.delta||n.time>i.time+150)&&g(n):g(n),function(e){const n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.releaseOnEdges)return!0;return!1}(n))return!0}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1}function y(e){let n=t.$el;"container"!==t.params.mousewheel.eventsTarget&&(n=u(t.params.mousewheel.eventsTarget)),n[e]("mouseenter",f),n[e]("mouseleave",m),n[e]("wheel",v)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",v),!0):!t.mousewheel.enabled&&(y("on"),t.mousewheel.enabled=!0,!0)}function _(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,v),!0):!!t.mousewheel.enabled&&(y("off"),t.mousewheel.enabled=!1,!0)}i("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&_(),t.params.mousewheel.enabled&&b()}),i("destroy",()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&_()}),Object.assign(t.mousewheel,{enable:b,disable:_})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;function s(e){let n;return e&&(n=u(e),t.params.uniqueNavElements&&"string"==typeof e&&n.length>1&&1===t.$el.find(e).length&&(n=t.$el.find(e))),n}function a(e,n){const i=t.params.navigation;e&&e.length>0&&(e[n?"addClass":"removeClass"](i.disabledClass),e[0]&&"BUTTON"===e[0].tagName&&(e[0].disabled=n),t.params.watchOverflow&&t.enabled&&e[t.isLocked?"addClass":"removeClass"](i.lockClass))}function o(){if(t.params.loop)return;const{$nextEl:e,$prevEl:n}=t.navigation;a(n,t.isBeginning&&!t.params.rewind),a(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=F(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;const n=s(e.nextEl),i=s(e.prevEl);n&&n.length>0&&n.on("click",c),i&&i.length>0&&i.on("click",l),Object.assign(t.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:i,prevEl:i&&i[0]}),t.enabled||(n&&n.addClass(e.lockClass),i&&i.addClass(e.lockClass))}function h(){const{$nextEl:e,$prevEl:n}=t.navigation;e&&e.length&&(e.off("click",c),e.removeClass(t.params.navigation.disabledClass)),n&&n.length&&(n.off("click",l),n.removeClass(t.params.navigation.disabledClass))}n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,$nextEl:null,prevEl:null,$prevEl:null},i("init",()=>{!1===t.params.navigation.enabled?p():(d(),o())}),i("toEdge fromEdge lock unlock",()=>{o()}),i("destroy",()=>{h()}),i("enable disable",()=>{const{$nextEl:e,$prevEl:n}=t.navigation;e&&e[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass),n&&n[t.enabled?"removeClass":"addClass"](t.params.navigation.lockClass)}),i("click",(e,n)=>{const{$nextEl:i,$prevEl:s}=t.navigation,a=n.target;if(t.params.navigation.hideOnClick&&!u(a).is(s)&&!u(a).is(i)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===a||t.pagination.el.contains(a)))return;let e;i?e=i.hasClass(t.params.navigation.hiddenClass):s&&(e=s.hasClass(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),i&&i.toggleClass(t.params.navigation.hiddenClass),s&&s.toggleClass(t.params.navigation.hiddenClass)}});const p=()=>{t.$el.addClass(t.params.navigation.navigationDisabledClass),h()};Object.assign(t.navigation,{enable:()=>{t.$el.removeClass(t.params.navigation.navigationDisabledClass),d(),o()},disable:p,update:o,init:d,destroy:h})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const s="swiper-pagination";let a;n({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:e=>e,formatFractionTotal:e=>e,bulletClass:s+"-bullet",bulletActiveClass:s+"-bullet-active",modifierClass:s+"-",currentClass:s+"-current",totalClass:s+"-total",hiddenClass:s+"-hidden",progressbarFillClass:s+"-progressbar-fill",progressbarOppositeClass:s+"-progressbar-opposite",clickableClass:s+"-clickable",lockClass:s+"-lock",horizontalClass:s+"-horizontal",verticalClass:s+"-vertical",paginationDisabledClass:s+"-disabled"}}),t.pagination={el:null,$el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||!t.pagination.$el||0===t.pagination.$el.length}function c(e,n){const{bulletActiveClass:i}=t.params.pagination;e[n]().addClass(`${i}-${n}`)[n]().addClass(`${i}-${n}-${n}`)}function d(){const e=t.rtl,n=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,s=t.pagination.$el;let d;const h=t.params.loop?Math.ceil((i-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(d=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),d>i-1-2*t.loopedSlides&&(d-=i-2*t.loopedSlides),d>h-1&&(d-=h),d<0&&"bullets"!==t.params.paginationType&&(d=h+d)):d=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const i=t.pagination.bullets;let r,l,h;if(n.dynamicBullets&&(a=i.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),s.css(t.isHorizontal()?"width":"height",a*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==t.previousIndex&&(o+=d-(t.previousIndex-t.loopedSlides||0),o>n.dynamicMainBullets-1?o=n.dynamicMainBullets-1:o<0&&(o=0)),r=Math.max(d-o,0),l=r+(Math.min(i.length,n.dynamicMainBullets)-1),h=(l+r)/2),i.removeClass(["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`).join(" ")),s.length>1)i.each(e=>{const t=u(e),i=t.index();i===d&&t.addClass(n.bulletActiveClass),n.dynamicBullets&&(i>=r&&i<=l&&t.addClass(n.bulletActiveClass+"-main"),i===r&&c(t,"prev"),i===l&&c(t,"next"))});else{const e=i.eq(d),s=e.index();if(e.addClass(n.bulletActiveClass),n.dynamicBullets){const e=i.eq(r),a=i.eq(l);for(let e=r;e<=l;e+=1)i.eq(e).addClass(n.bulletActiveClass+"-main");if(t.params.loop)if(s>=i.length){for(let e=n.dynamicMainBullets;e>=0;e-=1)i.eq(i.length-e).addClass(n.bulletActiveClass+"-main");i.eq(i.length-n.dynamicMainBullets-1).addClass(n.bulletActiveClass+"-prev")}else c(e,"prev"),c(a,"next");else c(e,"prev"),c(a,"next")}}if(n.dynamicBullets){const r=Math.min(i.length,n.dynamicMainBullets+4),s=(a*r-a)/2-h*a,o=e?"right":"left";i.css(t.isHorizontal()?o:"top",s+"px")}}if("fraction"===n.type&&(s.find(H(n.currentClass)).text(n.formatFractionCurrent(d+1)),s.find(H(n.totalClass)).text(n.formatFractionTotal(h))),"progressbar"===n.type){let e;e=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const i=(d+1)/h;let r=1,a=1;"horizontal"===e?r=i:a=i,s.find(H(n.progressbarFillClass)).transform(`translate3d(0,0,0) scaleX(${r}) scaleY(${a})`).transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(s.html(n.renderCustom(t,d+1,h)),r("paginationRender",s[0])):r("paginationUpdate",s[0]),t.params.watchOverflow&&t.enabled&&s[t.isLocked?"addClass":"removeClass"](n.lockClass)}function h(){const e=t.params.pagination;if(l())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,i=t.pagination.$el;let s="";if("bullets"===e.type){let r=t.params.loop?Math.ceil((n-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&!t.params.loop&&r>n&&(r=n);for(let n=0;n`;i.html(s),t.pagination.bullets=i.find(H(e.bulletClass))}"fraction"===e.type&&(s=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):` / `,i.html(s)),"progressbar"===e.type&&(s=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):``,i.html(s)),"custom"!==e.type&&r("paginationRender",t.pagination.$el[0])}function p(){t.params.pagination=F(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n=u(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&(n=t.$el.find(e.el),n.length>1&&(n=n.filter(e=>u(e).parents(".swiper")[0]===t.el))),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),n.addClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click",H(e.bulletClass),(function(e){e.preventDefault();let n=u(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)})),Object.assign(t.pagination,{$el:n,el:n[0]}),t.enabled||n.addClass(e.lockClass))}function f(){const e=t.params.pagination;if(l())return;const n=t.pagination.$el;n.removeClass(e.hiddenClass),n.removeClass(e.modifierClass+e.type),n.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.pagination.bullets&&t.pagination.bullets.removeClass&&t.pagination.bullets.removeClass(e.bulletActiveClass),e.clickable&&n.off("click",H(e.bulletClass))}i("init",()=>{!1===t.params.pagination.enabled?m():(p(),h(),d())}),i("activeIndexChange",()=>{(t.params.loop||void 0===t.snapIndex)&&d()}),i("snapIndexChange",()=>{t.params.loop||d()}),i("slidesLengthChange",()=>{t.params.loop&&(h(),d())}),i("snapGridLengthChange",()=>{t.params.loop||(h(),d())}),i("destroy",()=>{f()}),i("enable disable",()=>{const{$el:e}=t.pagination;e&&e[t.enabled?"removeClass":"addClass"](t.params.pagination.lockClass)}),i("lock unlock",()=>{d()}),i("click",(e,n)=>{const i=n.target,{$el:s}=t.pagination;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&s&&s.length>0&&!u(i).hasClass(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=s.hasClass(t.params.pagination.hiddenClass);r(!0===e?"paginationShow":"paginationHide"),s.toggleClass(t.params.pagination.hiddenClass)}});const m=()=>{t.$el.addClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.addClass(t.params.pagination.paginationDisabledClass),f()};Object.assign(t.pagination,{enable:()=>{t.$el.removeClass(t.params.pagination.paginationDisabledClass),t.pagination.$el&&t.pagination.$el.removeClass(t.params.pagination.paginationDisabledClass),p(),h(),d()},disable:m,render:h,update:d,init:p,destroy:f})},function(e){let{swiper:t,extendParams:n,on:r,emit:s}=e;const a=i();let o,l,c,h,p=!1,f=null,m=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:n,progress:i}=t,{$dragEl:r,$el:s}=e,a=t.params.scrollbar;let o=l,u=(c-l)*i;n?(u=-u,u>0?(o=l-u,u=0):-u+l>c&&(o=c+u)):u<0?(o=l+u,u=0):u+l>c&&(o=c-u),t.isHorizontal()?(r.transform(`translate3d(${u}px, 0, 0)`),r[0].style.width=o+"px"):(r.transform(`translate3d(0px, ${u}px, 0)`),r[0].style.height=o+"px"),a.hide&&(clearTimeout(f),s[0].style.opacity=1,f=setTimeout(()=>{s[0].style.opacity=0,s.transition(400)},1e3))}function v(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{$dragEl:n,$el:i}=e;n[0].style.width="",n[0].style.height="",c=t.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,h=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),l="auto"===t.params.scrollbar.dragSize?c*h:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?n[0].style.width=l+"px":n[0].style.height=l+"px",i[0].style.display=h>=1?"none":"",t.params.scrollbar.hide&&(i[0].style.opacity=0),t.params.watchOverflow&&t.enabled&&e.$el[t.isLocked?"addClass":"removeClass"](t.params.scrollbar.lockClass)}function y(e){return t.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY}function b(e){const{scrollbar:n,rtlTranslate:i}=t,{$el:r}=n;let s;s=(y(e)-r.offset()[t.isHorizontal()?"left":"top"]-(null!==o?o:l/2))/(c-l),s=Math.max(Math.min(s,1),0),i&&(s=1-s);const a=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*s;t.updateProgress(a),t.setTranslate(a),t.updateActiveIndex(),t.updateSlidesClasses()}function _(e){const n=t.params.scrollbar,{scrollbar:i,$wrapperEl:r}=t,{$el:a,$dragEl:l}=i;p=!0,o=e.target===l[0]||e.target===l?y(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),r.transition(100),l.transition(100),b(e),clearTimeout(m),a.transition(0),n.hide&&a.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),s("scrollbarDragStart",e)}function T(e){const{scrollbar:n,$wrapperEl:i}=t,{$el:r,$dragEl:a}=n;p&&(e.preventDefault?e.preventDefault():e.returnValue=!1,b(e),i.transition(0),r.transition(0),a.transition(0),s("scrollbarDragMove",e))}function w(e){const n=t.params.scrollbar,{scrollbar:i,$wrapperEl:r}=t,{$el:a}=i;p&&(p=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),r.transition("")),n.hide&&(clearTimeout(m),m=d(()=>{a.css("opacity",0),a.transition(400)},1e3)),s("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())}function S(e){const{scrollbar:n,touchEventsTouch:i,touchEventsDesktop:r,params:s,support:o}=t,l=n.$el;if(!l)return;const u=l[0],c=!(!o.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},d=!(!o.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};if(!u)return;const h="on"===e?"addEventListener":"removeEventListener";o.touch?(u[h](i.start,_,c),u[h](i.move,T,c),u[h](i.end,w,d)):(u[h](r.start,_,c),a[h](r.move,T,c),a[h](r.end,w,d))}function E(){const{scrollbar:e,$el:n}=t;t.params.scrollbar=F(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const i=t.params.scrollbar;if(!i.el)return;let r=u(i.el);t.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===n.find(i.el).length&&(r=n.find(i.el)),r.addClass(t.isHorizontal()?i.horizontalClass:i.verticalClass);let s=r.find("."+t.params.scrollbar.dragClass);0===s.length&&(s=u(`
      `),r.append(s)),Object.assign(e,{$el:r,el:r[0],$dragEl:s,dragEl:s[0]}),i.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&S("on"),r&&r[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}function C(){const e=t.params.scrollbar,n=t.scrollbar.$el;n&&n.removeClass(t.isHorizontal()?e.horizontalClass:e.verticalClass),t.params.scrollbar.el&&t.scrollbar.el&&S("off")}n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null,$el:null,$dragEl:null},r("init",()=>{!1===t.params.scrollbar.enabled?x():(E(),v(),g())}),r("update resize observerUpdate lock unlock",()=>{v()}),r("setTranslate",()=>{g()}),r("setTransition",(e,n)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)}(n)}),r("enable disable",()=>{const{$el:e}=t.scrollbar;e&&e[t.enabled?"removeClass":"addClass"](t.params.scrollbar.lockClass)}),r("destroy",()=>{C()});const x=()=>{t.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.addClass(t.params.scrollbar.scrollbarDisabledClass),C()};Object.assign(t.scrollbar,{enable:()=>{t.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),t.scrollbar.$el&&t.scrollbar.$el.removeClass(t.params.scrollbar.scrollbarDisabledClass),E(),v(),g()},disable:x,updateSize:v,setTranslate:g,init:E,destroy:C})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({parallax:{enabled:!1}});const r=(e,n)=>{const{rtl:i}=t,r=u(e),s=i?-1:1,a=r.attr("data-swiper-parallax")||"0";let o=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y");const c=r.attr("data-swiper-parallax-scale"),d=r.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):t.isHorizontal()?(o=a,l="0"):(l=a,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*n*s+"%":o*n*s+"px",l=l.indexOf("%")>=0?parseInt(l,10)*n+"%":l*n+"px",null!=d){const e=d-(d-1)*(1-Math.abs(n));r[0].style.opacity=e}if(null==c)r.transform(`translate3d(${o}, ${l}, 0px)`);else{const e=c-(c-1)*(1-Math.abs(n));r.transform(`translate3d(${o}, ${l}, 0px) scale(${e})`)}},s=()=>{const{$el:e,slides:n,progress:i,snapGrid:s}=t;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{r(e,i)}),n.each((e,n)=>{let a=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(n/2)-i*(s.length-1)),a=Math.min(Math.max(a,-1),1),u(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(e=>{r(e,a)})})};i("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),i("init",()=>{t.params.parallax.enabled&&s()}),i("setTranslate",()=>{t.params.parallax.enabled&&s()}),i("setTransition",(e,n)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{$el:n}=t;n.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(t=>{const n=u(t);let i=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),n.transition(i)})}(n)})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;const a=s();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o,l,c,d=1,h=!1;const f={$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},m={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:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v=1;function y(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,i=e.targetTouches[1].pageX,r=e.targetTouches[1].pageY;return Math.sqrt((i-t)**2+(r-n)**2)}function b(e){const n=t.support,i=t.params.zoom;if(l=!1,c=!1,!n.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;l=!0,f.scaleStart=y(e)}f.$slideEl&&f.$slideEl.length||(f.$slideEl=u(e.target).closest("."+t.params.slideClass),0===f.$slideEl.length&&(f.$slideEl=t.slides.eq(t.activeIndex)),f.$imageEl=f.$slideEl.find("."+i.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),f.$imageWrapEl=f.$imageEl.parent("."+i.containerClass),f.maxRatio=f.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,0!==f.$imageWrapEl.length)?(f.$imageEl&&f.$imageEl.transition(0),h=!0):f.$imageEl=void 0}function _(e){const n=t.support,i=t.params.zoom,r=t.zoom;if(!n.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;c=!0,f.scaleMove=y(e)}f.$imageEl&&0!==f.$imageEl.length?(n.gestures?r.scale=e.scale*d:r.scale=f.scaleMove/f.scaleStart*d,r.scale>f.maxRatio&&(r.scale=f.maxRatio-1+(r.scale-f.maxRatio+1)**.5),r.scalem.touchesStart.x))return void(m.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(m.minY)===Math.floor(m.startY)&&m.touchesCurrent.ym.touchesStart.y))return void(m.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),m.isMoved=!0,m.currentX=m.touchesCurrent.x-m.touchesStart.x+m.startX,m.currentY=m.touchesCurrent.y-m.touchesStart.y+m.startY,m.currentXm.maxX&&(m.currentX=m.maxX-1+(m.currentX-m.maxX+1)**.8),m.currentYm.maxY&&(m.currentY=m.maxY-1+(m.currentY-m.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=m.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=m.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(m.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(m.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(m.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(m.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=m.touchesCurrent.x,g.prevPositionY=m.touchesCurrent.y,g.prevTime=Date.now(),f.$imageWrapEl.transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`)}}function S(){const e=t.zoom;f.$slideEl&&t.previousIndex!==t.activeIndex&&(f.$imageEl&&f.$imageEl.transform("translate3d(0,0,0) scale(1)"),f.$imageWrapEl&&f.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,d=1,f.$slideEl=void 0,f.$imageEl=void 0,f.$imageWrapEl=void 0)}function E(e){const n=t.zoom,i=t.params.zoom;if(f.$slideEl||(e&&e.target&&(f.$slideEl=u(e.target).closest("."+t.params.slideClass)),f.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):f.$slideEl=t.slides.eq(t.activeIndex)),f.$imageEl=f.$slideEl.find("."+i.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),f.$imageWrapEl=f.$imageEl.parent("."+i.containerClass)),!f.$imageEl||0===f.$imageEl.length||!f.$imageWrapEl||0===f.$imageWrapEl.length)return;let r,s,o,l,c,h,p,g,v,y,b,_,T,w,S,E,C,x;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),f.$slideEl.addClass(""+i.zoomedSlideClass),void 0===m.touchesStart.x&&e?(r="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,s="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(r=m.touchesStart.x,s=m.touchesStart.y),n.scale=f.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,d=f.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,e?(C=f.$slideEl[0].offsetWidth,x=f.$slideEl[0].offsetHeight,o=f.$slideEl.offset().left+a.scrollX,l=f.$slideEl.offset().top+a.scrollY,c=o+C/2-r,h=l+x/2-s,v=f.$imageEl[0].offsetWidth,y=f.$imageEl[0].offsetHeight,b=v*n.scale,_=y*n.scale,T=Math.min(C/2-b/2,0),w=Math.min(x/2-_/2,0),S=-T,E=-w,p=c*n.scale,g=h*n.scale,pS&&(p=S),gE&&(g=E)):(p=0,g=0),f.$imageWrapEl.transition(300).transform(`translate3d(${p}px, ${g}px,0)`),f.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${n.scale})`)}function C(){const e=t.zoom,n=t.params.zoom;f.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?f.$slideEl=t.$wrapperEl.children("."+t.params.slideActiveClass):f.$slideEl=t.slides.eq(t.activeIndex),f.$imageEl=f.$slideEl.find("."+n.containerClass).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0),f.$imageWrapEl=f.$imageEl.parent("."+n.containerClass)),f.$imageEl&&0!==f.$imageEl.length&&f.$imageWrapEl&&0!==f.$imageWrapEl.length&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,d=1,f.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),f.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),f.$slideEl.removeClass(""+n.zoomedSlideClass),f.$slideEl=void 0)}function x(e){const n=t.zoom;n.scale&&1!==n.scale?C():E(e)}function k(){const e=t.support;return{passiveListener:!("touchstart"!==t.touchEvents.start||!e.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1},activeListenerWithCapture:!e.passiveListener||{passive:!1,capture:!0}}}function I(){return"."+t.params.slideClass}function A(e){const{passiveListener:n}=k(),i=I();t.$wrapperEl[e]("gesturestart",i,b,n),t.$wrapperEl[e]("gesturechange",i,_,n),t.$wrapperEl[e]("gestureend",i,T,n)}function P(){o||(o=!0,A("on"))}function L(){o&&(o=!1,A("off"))}function D(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const n=t.support,{passiveListener:i,activeListenerWithCapture:r}=k(),s=I();n.gestures?(t.$wrapperEl.on(t.touchEvents.start,P,i),t.$wrapperEl.on(t.touchEvents.end,L,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.on(t.touchEvents.start,s,b,i),t.$wrapperEl.on(t.touchEvents.move,s,_,r),t.$wrapperEl.on(t.touchEvents.end,s,T,i),t.touchEvents.cancel&&t.$wrapperEl.on(t.touchEvents.cancel,s,T,i)),t.$wrapperEl.on(t.touchEvents.move,"."+t.params.zoom.containerClass,w,r)}function O(){const e=t.zoom;if(!e.enabled)return;const n=t.support;e.enabled=!1;const{passiveListener:i,activeListenerWithCapture:r}=k(),s=I();n.gestures?(t.$wrapperEl.off(t.touchEvents.start,P,i),t.$wrapperEl.off(t.touchEvents.end,L,i)):"touchstart"===t.touchEvents.start&&(t.$wrapperEl.off(t.touchEvents.start,s,b,i),t.$wrapperEl.off(t.touchEvents.move,s,_,r),t.$wrapperEl.off(t.touchEvents.end,s,T,i),t.touchEvents.cancel&&t.$wrapperEl.off(t.touchEvents.cancel,s,T,i)),t.$wrapperEl.off(t.touchEvents.move,"."+t.params.zoom.containerClass,w,r)}Object.defineProperty(t.zoom,"scale",{get:()=>v,set(e){if(v!==e){const t=f.$imageEl?f.$imageEl[0]:void 0,n=f.$slideEl?f.$slideEl[0]:void 0;r("zoomChange",e,t,n)}v=e}}),i("init",()=>{t.params.zoom.enabled&&D()}),i("destroy",()=>{O()}),i("touchStart",(e,n)=>{t.zoom.enabled&&function(e){const n=t.device;f.$imageEl&&0!==f.$imageEl.length&&(m.isTouched||(n.android&&e.cancelable&&e.preventDefault(),m.isTouched=!0,m.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,m.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))}(n)}),i("touchEnd",(e,n)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!f.$imageEl||0===f.$imageEl.length)return;if(!m.isTouched||!m.isMoved)return m.isTouched=!1,void(m.isMoved=!1);m.isTouched=!1,m.isMoved=!1;let n=300,i=300;const r=g.x*n,s=m.currentX+r,a=g.y*i,o=m.currentY+a;0!==g.x&&(n=Math.abs((s-m.currentX)/g.x)),0!==g.y&&(i=Math.abs((o-m.currentY)/g.y));const l=Math.max(n,i);m.currentX=s,m.currentY=o;const u=m.width*e.scale,c=m.height*e.scale;m.minX=Math.min(f.slideWidth/2-u/2,0),m.maxX=-m.minX,m.minY=Math.min(f.slideHeight/2-c/2,0),m.maxY=-m.minY,m.currentX=Math.max(Math.min(m.currentX,m.maxX),m.minX),m.currentY=Math.max(Math.min(m.currentY,m.maxY),m.minY),f.$imageWrapEl.transition(l).transform(`translate3d(${m.currentX}px, ${m.currentY}px,0)`)}()}),i("doubleTap",(e,n)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&x(n)}),i("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&S()}),i("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&S()}),Object.assign(t.zoom,{enable:D,disable:O,in:E,out:C,toggle:x})},function(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;n({lazy:{checkInView:!1,enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,scrollingElement:"",elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}}),t.lazy={};let a=!1,o=!1;function l(e,n){void 0===n&&(n=!0);const i=t.params.lazy;if(void 0===e)return;if(0===t.slides.length)return;const s=t.virtual&&t.params.virtual.enabled?t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`):t.slides.eq(e),a=s.find(`.${i.elementClass}:not(.${i.loadedClass}):not(.${i.loadingClass})`);!s.hasClass(i.elementClass)||s.hasClass(i.loadedClass)||s.hasClass(i.loadingClass)||a.push(s[0]),0!==a.length&&a.each(e=>{const a=u(e);a.addClass(i.loadingClass);const o=a.attr("data-background"),c=a.attr("data-src"),d=a.attr("data-srcset"),h=a.attr("data-sizes"),p=a.parent("picture");t.loadImage(a[0],c||o,d,h,!1,()=>{if(null!=t&&t&&(!t||t.params)&&!t.destroyed){if(o?(a.css("background-image",`url("${o}")`),a.removeAttr("data-background")):(d&&(a.attr("srcset",d),a.removeAttr("data-srcset")),h&&(a.attr("sizes",h),a.removeAttr("data-sizes")),p.length&&p.children("source").each(e=>{const t=u(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeAttr("data-srcset"))}),c&&(a.attr("src",c),a.removeAttr("data-src"))),a.addClass(i.loadedClass).removeClass(i.loadingClass),s.find("."+i.preloaderClass).remove(),t.params.loop&&n){const e=s.attr("data-swiper-slide-index");s.hasClass(t.params.slideDuplicateClass)?l(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(),!1):l(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(),!1)}r("lazyImageReady",s[0],a[0]),t.params.autoHeight&&t.updateAutoHeight()}}),r("lazyImageLoad",s[0],a[0])})}function c(){const{$wrapperEl:e,params:n,slides:i,activeIndex:r}=t,s=t.virtual&&n.virtual.enabled,a=n.lazy;let c=n.slidesPerView;function d(t){if(s){if(e.children(`.${n.slideClass}[data-swiper-slide-index="${t}"]`).length)return!0}else if(i[t])return!0;return!1}function h(e){return s?u(e).attr("data-swiper-slide-index"):u(e).index()}if("auto"===c&&(c=0),o||(o=!0),t.params.watchSlidesProgress)e.children("."+n.slideVisibleClass).each(e=>{l(s?u(e).attr("data-swiper-slide-index"):u(e).index())});else if(c>1)for(let e=r;e1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){const e=a.loadPrevNextAmount,t=Math.ceil(c),n=Math.min(r+t+Math.max(e,t),i.length),s=Math.max(r-Math.max(t,e),0);for(let e=r+t;e0&&l(h(t));const i=e.children("."+n.slidePrevClass);i.length>0&&l(h(i))}}function d(){const e=s();if(!t||t.destroyed)return;const n=t.params.lazy.scrollingElement?u(t.params.lazy.scrollingElement):u(e),i=n[0]===e,r=i?e.innerWidth:n[0].offsetWidth,o=i?e.innerHeight:n[0].offsetHeight,l=t.$el.offset(),{rtlTranslate:h}=t;let p=!1;h&&(l.left-=t.$el[0].scrollLeft);const f=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]];for(let e=0;e=0&&t[0]<=r&&t[1]>=0&&t[1]<=o){if(0===t[0]&&0===t[1])continue;p=!0}}const m=!("touchstart"!==t.touchEvents.start||!t.support.passiveListener||!t.params.passiveListeners)&&{passive:!0,capture:!1};p?(c(),n.off("scroll",d,m)):a||(a=!0,n.on("scroll",d,m))}i("beforeInit",()=>{t.params.lazy.enabled&&t.params.preloadImages&&(t.params.preloadImages=!1)}),i("init",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?d():c())}),i("scroll",()=>{t.params.freeMode&&t.params.freeMode.enabled&&!t.params.freeMode.sticky&&c()}),i("scrollbarDragMove resize _freeModeNoMomentumRelease",()=>{t.params.lazy.enabled&&(t.params.lazy.checkInView?d():c())}),i("transitionStart",()=>{t.params.lazy.enabled&&(t.params.lazy.loadOnTransitionStart||!t.params.lazy.loadOnTransitionStart&&!o)&&(t.params.lazy.checkInView?d():c())}),i("transitionEnd",()=>{t.params.lazy.enabled&&!t.params.lazy.loadOnTransitionStart&&(t.params.lazy.checkInView?d():c())}),i("slideChange",()=>{const{lazy:e,cssMode:n,watchSlidesProgress:i,touchReleaseOnEdges:r,resistanceRatio:s}=t.params;e.enabled&&(n||i&&(r||0===s))&&c()}),i("destroy",()=>{t.$el&&t.$el.find("."+t.params.lazy.loadingClass).removeClass(t.params.lazy.loadingClass)}),Object.assign(t.lazy,{load:c,loadInSlide:l})},function(e){let{swiper:t,extendParams:n,on:i}=e;function r(e,t){const n=function(){let e,t,n;return(i,r)=>{for(t=-1,e=i.length;e-t>1;)n=e+t>>1,i[n]<=r?t=n:e=n;return e}}();let i,r;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=n(this.x,e),i=r-1,(e-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0},this}function s(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}n({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},i("beforeInit",()=>{t.controller.control=t.params.controller.control}),i("update",()=>{s()}),i("resize",()=>{s()}),i("observerUpdate",()=>{s()}),i("setTranslate",(e,n,i)=>{t.controller.control&&t.controller.setTranslate(n,i)}),i("setTransition",(e,n,i)=>{t.controller.control&&t.controller.setTransition(n,i)}),Object.assign(t.controller,{setTranslate:function(e,n){const i=t.controller.control;let s,a;const o=t.constructor;function l(e){const n=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline||(t.controller.spline=t.params.loop?new r(t.slidesGrid,e.slidesGrid):new r(t.snapGrid,e.snapGrid))}(e),a=-t.controller.spline.interpolate(-n)),a&&"container"!==t.params.controller.by||(s=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),a=(n-t.minTranslate())*s+e.minTranslate()),t.params.controller.inverse&&(a=e.maxTranslate()-a),e.updateProgress(a),e.setTranslate(a,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(i))for(let e=0;e{n.updateAutoHeight()}),n.$wrapperEl.transitionEnd(()=>{r&&(n.params.loop&&"slide"===t.params.controller.by&&n.loopFix(),n.transitionEnd())}))}if(Array.isArray(r))for(s=0;s{a(e),"BUTTON"!==e[0].tagName&&(l(e,"button"),e.on("keydown",f)),d(e,n),function(e,t){e.attr("aria-controls",t)}(e,t)},y=()=>{t.a11y.clicked=!0},b=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.a11y.clicked=!1})})},_=e=>{if(t.a11y.clicked)return;const n=e.target.closest("."+t.params.slideClass);if(!n||!t.slides.includes(n))return;const i=t.slides.indexOf(n)===t.activeIndex,r=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(n);i||r||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(n),0))},T=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&c(u(t.slides),e.itemRoleDescriptionMessage),e.slideRole&&l(u(t.slides),e.slideRole);const n=t.params.loop?t.slides.filter(e=>!e.classList.contains(t.params.slideDuplicateClass)).length:t.slides.length;e.slideLabelMessage&&t.slides.each((i,r)=>{const s=u(i),a=t.params.loop?parseInt(s.attr("data-swiper-slide-index"),10):r;d(s,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))})};i("beforeInit",()=>{r=u(``)}),i("afterInit",()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.$el.append(r);const n=t.$el;e.containerRoleDescriptionMessage&&c(n,e.containerRoleDescriptionMessage),e.containerMessage&&d(n,e.containerMessage);const i=t.$wrapperEl,s=e.id||i.attr("id")||"swiper-wrapper-"+(void 0===(a=16)&&(a=16),"x".repeat(a).replace(/x/g,()=>Math.round(16*Math.random()).toString(16)));var a;const o=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var l;let u,h;l=s,i.attr("id",l),function(e,t){e.attr("aria-live",t)}(i,o),T(),t.navigation&&t.navigation.$nextEl&&(u=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(h=t.navigation.$prevEl),u&&u.length&&v(u,s,e.nextSlideMessage),h&&h.length&&v(h,s,e.prevSlideMessage),g()&&t.pagination.$el.on("keydown",H(t.params.pagination.bulletClass),f),t.$el.on("focus",_,!0),t.$el.on("pointerdown",y,!0),t.$el.on("pointerup",b,!0)})()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&T()}),i("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{$nextEl:e,$prevEl:n}=t.navigation;n&&n.length>0&&(t.isBeginning?(h(n),o(n)):(p(n),a(n))),e&&e.length>0&&(t.isEnd?(h(e),o(e)):(p(e),a(e)))}()}),i("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;m()&&t.pagination.bullets.each(n=>{const i=u(n);t.params.pagination.clickable&&(a(i),t.params.pagination.renderBullet||(l(i,"button"),d(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,i.index()+1)))),i.is("."+t.params.pagination.bulletActiveClass)?i.attr("aria-current","true"):i.removeAttr("aria-current")})}()}),i("destroy",()=>{t.params.a11y.enabled&&function(){let e,n;r&&r.length>0&&r.remove(),t.navigation&&t.navigation.$nextEl&&(e=t.navigation.$nextEl),t.navigation&&t.navigation.$prevEl&&(n=t.navigation.$prevEl),e&&e.off("keydown",f),n&&n.off("keydown",f),g()&&t.pagination.$el.off("keydown",H(t.params.pagination.bulletClass),f),t.$el.off("focus",_,!0),t.$el.off("pointerdown",y,!0),t.$el.off("pointerup",b,!0)}()})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let r=!1,a={};const o=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=s();let n;n=e?new URL(e):t.location;const i=n.pathname.slice(1).split("/").filter(e=>""!==e),r=i.length;return{key:i[r-2],value:i[r-1]}},u=(e,n)=>{const i=s();if(!r||!t.params.history.enabled)return;let a;a=t.params.url?new URL(t.params.url):i.location;const l=t.slides.eq(n);let u=o(l.attr("data-history"));if(t.params.history.root.length>0){let n=t.params.history.root;"/"===n[n.length-1]&&(n=n.slice(0,n.length-1)),u=`${n}/${e}/${u}`}else a.pathname.includes(e)||(u=`${e}/${u}`);t.params.history.keepQuery&&(u+=a.search);const c=i.history.state;c&&c.value===u||(t.params.history.replaceState?i.history.replaceState({value:u},null,u):i.history.pushState({value:u},null,u))},c=(e,n,i)=>{if(n)for(let r=0,s=t.slides.length;r{a=l(t.params.url),c(t.params.speed,a.value,!1)};i("init",()=>{t.params.history.enabled&&(()=>{const e=s();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);r=!0,a=l(t.params.url),(a.key||a.value)&&(c(0,a.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",d))}})()}),i("destroy",()=>{t.params.history.enabled&&(()=>{const e=s();t.params.history.replaceState||e.removeEventListener("popstate",d)})()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{r&&u(t.params.history.key,t.activeIndex)}),i("slideChange",()=>{r&&t.params.cssMode&&u(t.params.history.key,t.activeIndex)})},function(e){let{swiper:t,extendParams:n,emit:r,on:a}=e,o=!1;const l=i(),c=s();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}});const d=()=>{r("hashChange");const e=l.location.hash.replace("#","");if(e!==t.slides.eq(t.activeIndex).attr("data-hash")){const n=t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index();if(void 0===n)return;t.slideTo(n)}},h=()=>{if(o&&t.params.hashNavigation.enabled)if(t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState)c.history.replaceState(null,null,"#"+t.slides.eq(t.activeIndex).attr("data-hash")||""),r("hashSet");else{const e=t.slides.eq(t.activeIndex),n=e.attr("data-hash")||e.attr("data-history");l.location.hash=n||"",r("hashSet")}};a("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=l.location.hash.replace("#","");if(e){const n=0;for(let i=0,r=t.slides.length;i{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&u(c).off("hashchange",d)}),a("transitionEnd _freeModeNoMomentumRelease",()=>{o&&h()}),a("slideChange",()=>{o&&t.params.cssMode&&h()})},function(e){let t,{swiper:n,extendParams:r,on:s,emit:a}=e;function o(){if(!n.size)return n.autoplay.running=!1,void(n.autoplay.paused=!1);const e=n.slides.eq(n.activeIndex);let i=n.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||n.params.autoplay.delay),clearTimeout(t),t=d(()=>{let e;n.params.autoplay.reverseDirection?n.params.loop?(n.loopFix(),e=n.slidePrev(n.params.speed,!0,!0),a("autoplay")):n.isBeginning?n.params.autoplay.stopOnLastSlide?u():(e=n.slideTo(n.slides.length-1,n.params.speed,!0,!0),a("autoplay")):(e=n.slidePrev(n.params.speed,!0,!0),a("autoplay")):n.params.loop?(n.loopFix(),e=n.slideNext(n.params.speed,!0,!0),a("autoplay")):n.isEnd?n.params.autoplay.stopOnLastSlide?u():(e=n.slideTo(0,n.params.speed,!0,!0),a("autoplay")):(e=n.slideNext(n.params.speed,!0,!0),a("autoplay")),(n.params.cssMode&&n.autoplay.running||!1===e)&&o()},i)}function l(){return void 0===t&&!n.autoplay.running&&(n.autoplay.running=!0,a("autoplayStart"),o(),!0)}function u(){return!!n.autoplay.running&&void 0!==t&&(t&&(clearTimeout(t),t=void 0),n.autoplay.running=!1,a("autoplayStop"),!0)}function c(e){n.autoplay.running&&(n.autoplay.paused||(t&&clearTimeout(t),n.autoplay.paused=!0,0!==e&&n.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach(e=>{n.$wrapperEl[0].addEventListener(e,p)}):(n.autoplay.paused=!1,o())))}function h(){const e=i();"hidden"===e.visibilityState&&n.autoplay.running&&c(),"visible"===e.visibilityState&&n.autoplay.paused&&(o(),n.autoplay.paused=!1)}function p(e){n&&!n.destroyed&&n.$wrapperEl&&e.target===n.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach(e=>{n.$wrapperEl[0].removeEventListener(e,p)}),n.autoplay.paused=!1,n.autoplay.running?o():u())}function f(){n.params.autoplay.disableOnInteraction?u():(a("autoplayPause"),c()),["transitionend","webkitTransitionEnd"].forEach(e=>{n.$wrapperEl[0].removeEventListener(e,p)})}function m(){n.params.autoplay.disableOnInteraction||(n.autoplay.paused=!1,a("autoplayResume"),o())}n.autoplay={running:!1,paused:!1},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),s("init",()=>{n.params.autoplay.enabled&&(l(),i().addEventListener("visibilitychange",h),n.params.autoplay.pauseOnMouseEnter&&(n.$el.on("mouseenter",f),n.$el.on("mouseleave",m)))}),s("beforeTransitionStart",(e,t,i)=>{n.autoplay.running&&(i||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(t):u())}),s("sliderFirstMove",()=>{n.autoplay.running&&(n.params.autoplay.disableOnInteraction?u():c())}),s("touchEnd",()=>{n.params.cssMode&&n.autoplay.paused&&!n.params.autoplay.disableOnInteraction&&o()}),s("destroy",()=>{n.$el.off("mouseenter",f),n.$el.off("mouseleave",m),n.autoplay.running&&u(),i().removeEventListener("visibilitychange",h)}),Object.assign(n.autoplay,{pause:c,run:o,start:l,stop:u})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,s=!1;function a(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const n=e.clickedIndex,i=e.clickedSlide;if(i&&u(i).hasClass(t.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let r;if(r=e.params.loop?parseInt(u(e.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){let e=t.activeIndex;t.slides.eq(e).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,e=t.activeIndex);const n=t.slides.eq(e).prevAll(`[data-swiper-slide-index="${r}"]`).eq(0).index(),i=t.slides.eq(e).nextAll(`[data-swiper-slide-index="${r}"]`).eq(0).index();r=void 0===n?i:void 0===i?n:i-e1&&!t.params.centeredSlides&&(r=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(r=1),r=Math.floor(r),n.slides.removeClass(s),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let e=0;e1?i:l:i-lt.previousIndex?"next":"prev"}else r=t.realIndex,s=r>t.previousIndex?"next":"prev";o&&(r+="next"===s?a:-1*a),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(r)<0&&(n.params.centeredSlides?r=r>l?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>l&&n.params.slidesPerGroup,n.slideTo(r,e?0:void 0))}}t.thumbs={swiper:null},i("beforeInit",()=>{const{thumbs:e}=t.params;e&&e.swiper&&(o(),l(!0))}),i("slideChange update resize observerUpdate",()=>{l()}),i("setTransition",(e,n)=>{const i=t.thumbs.swiper;i&&!i.destroyed&&i.setTransition(n)}),i("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&s&&e.destroy()}),Object.assign(t.thumbs,{init:o,update:l})},function(e){let{swiper:t,extendParams:n,emit:i,once:r}=e;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:n}=t;0===e.velocities.length&&e.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:h()})},onTouchEnd:function(e){let{currentPos:n}=e;const{params:s,$wrapperEl:a,rtlTranslate:o,snapGrid:l,touchEventsData:u}=t,c=h()-u.touchStartTime;if(n<-t.minTranslate())t.slideTo(t.activeIndex);else if(n>-t.maxTranslate())t.slides.length1){const e=u.velocities.pop(),n=u.velocities.pop(),i=e.position-n.position,r=e.time-n.time;t.velocity=i/r,t.velocity/=2,Math.abs(t.velocity)150||h()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freeMode.momentumVelocityRatio,u.velocities.length=0;let e=1e3*s.freeMode.momentumRatio;const n=t.velocity*e;let c=t.translate+n;o&&(c=-c);let d,p=!1;const f=20*Math.abs(t.velocity)*s.freeMode.momentumBounceRatio;let m;if(ct.minTranslate())s.freeMode.momentumBounce?(c-t.minTranslate()>f&&(c=t.minTranslate()+f),d=t.minTranslate(),p=!0,u.allowMomentumBounce=!0):c=t.minTranslate(),s.loop&&s.centeredSlides&&(m=!0);else if(s.freeMode.sticky){let e;for(let t=0;t-c){e=t;break}c=Math.abs(l[e]-c){t.loopFix()}),0!==t.velocity){if(e=o?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),s.freeMode.sticky){const n=Math.abs((o?-c:c)-t.translate),i=t.slidesSizesGrid[t.activeIndex];e=n{t&&!t.destroyed&&u.allowMomentumBounce&&(i("momentumBounce"),t.setTransition(s.speed),setTimeout(()=>{t.setTranslate(d),a.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(i("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,a.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(s.freeMode.sticky)return void t.slideToClosest();s.freeMode&&i("_freeModeNoMomentumRelease")}(!s.freeMode.momentum||c>=s.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,n,i,{swiper:r,extendParams:s}=e;s({grid:{rows:1,fill:"column"}}),r.grid={initSlides:e=>{const{slidesPerView:s}=r.params,{rows:a,fill:o}=r.params.grid;n=t/a,i=Math.floor(e/a),t=Math.floor(e/a)===e/a?e:Math.ceil(e/a)*a,"auto"!==s&&"row"===o&&(t=Math.max(t,s*a))},updateSlide:(e,s,a,o)=>{const{slidesPerGroup:l,spaceBetween:u}=r.params,{rows:c,fill:d}=r.params.grid;let h,p,f;if("row"===d&&l>1){const n=Math.floor(e/(l*c)),i=e-c*l*n,r=0===n?l:Math.min(Math.ceil((a-n*c*l)/c),l);f=Math.floor(i/r),p=i-f*r+n*l,h=p+f*t/c,s.css({"-webkit-order":h,order:h})}else"column"===d?(p=Math.floor(e/c),f=e-p*c,(p>i||p===i&&f===c-1)&&(f+=1,f>=c&&(f=0,p+=1))):(f=Math.floor(e/n),p=e-f*n);s.css(o("margin-top"),0!==f?u&&u+"px":"")},updateWrapperSize:(e,n,i)=>{const{spaceBetween:s,centeredSlides:a,roundLengths:o}=r.params,{rows:l}=r.params.grid;if(r.virtualSize=(e+s)*t,r.virtualSize=Math.ceil(r.virtualSize/l)-s,r.$wrapperEl.css({[i("width")]:r.virtualSize+s+"px"}),a){n.splice(0,n.length);const e=[];for(let t=0;t{const{slides:e}=t,n=t.params.fadeEffect;for(let i=0;i{const{transformEl:n}=t.params.fadeEffect;(n?t.slides.find(n):t.slides).transition(e),K({swiper:t,duration:e,transformEl:n,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const r=(e,t,n)=>{let i=n?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=n?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===i.length&&(i=u(`
      `),e.append(i)),0===r.length&&(r=u(`
      `),e.append(r)),i.length&&(i[0].style.opacity=Math.max(-t,0)),r.length&&(r[0].style.opacity=Math.max(t,0))};X({effect:"cube",swiper:t,on:i,setTranslate:()=>{const{$el:e,$wrapperEl:n,slides:i,width:s,height:a,rtlTranslate:o,size:l,browser:c}=t,d=t.params.cubeEffect,h=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let f,m=0;d.shadow&&(h?(f=n.find(".swiper-cube-shadow"),0===f.length&&(f=u('
      '),n.append(f)),f.css({height:s+"px"})):(f=e.find(".swiper-cube-shadow"),0===f.length&&(f=u('
      '),e.append(f))));for(let e=0;e-1&&(m=90*n+90*u,o&&(m=90*-n-90*u)),t.transform(v),d.slideShadows&&r(t,u,h)}if(n.css({"-webkit-transform-origin":`50% 50% -${l/2}px`,"transform-origin":`50% 50% -${l/2}px`}),d.shadow)if(h)f.transform(`translate3d(0px, ${s/2+d.shadowOffset}px, ${-s/2}px) rotateX(90deg) rotateZ(0deg) scale(${d.shadowScale})`);else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),n=d.shadowScale,i=d.shadowScale/t,r=d.shadowOffset;f.transform(`scale3d(${n}, 1, ${i}) translate3d(0px, ${a/2+r}px, ${-a/2/i}px) rotateX(-90deg)`)}const g=c.isSafari||c.isWebView?-l/2:0;n.transform(`translate3d(0px,0,${g}px) rotateX(${t.isHorizontal()?0:m}deg) rotateY(${t.isHorizontal()?-m:0}deg)`),n[0].style.setProperty("--swiper-cube-translate-z",g+"px")},setTransition:e=>{const{$el:n,slides:i}=t;i.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)},recreateShadows:()=>{const e=t.isHorizontal();t.slides.each(t=>{const n=Math.max(Math.min(t.progress,1),-1);r(u(t),n,e)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({flipEffect:{slideShadows:!0,limitRotation:!0,transformEl:null}});const r=(e,n,i)=>{let r=t.isHorizontal()?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),s=t.isHorizontal()?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===r.length&&(r=Q(i,e,t.isHorizontal()?"left":"top")),0===s.length&&(s=Q(i,e,t.isHorizontal()?"right":"bottom")),r.length&&(r[0].style.opacity=Math.max(-n,0)),s.length&&(s[0].style.opacity=Math.max(n,0))};X({effect:"flip",swiper:t,on:i,setTranslate:()=>{const{slides:e,rtlTranslate:n}=t,i=t.params.flipEffect;for(let s=0;s{const{transformEl:n}=t.params.flipEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),K({swiper:t,duration:e,transformEl:n})},recreateShadows:()=>{const e=t.params.flipEffect;t.slides.each(n=>{const i=u(n);let s=i[0].progress;t.params.flipEffect.limitRotation&&(s=Math.max(Math.min(n.progress,1),-1)),r(i,s,e)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0,transformEl:null}}),X({effect:"coverflow",swiper:t,on:i,setTranslate:()=>{const{width:e,height:n,slides:i,slidesSizesGrid:r}=t,s=t.params.coverflowEffect,a=t.isHorizontal(),o=t.translate,l=a?e/2-o:n/2-o,u=a?s.rotate:-s.rotate,c=s.depth;for(let e=0,t=i.length;e0?d:0),n.length&&(n[0].style.opacity=-d>0?-d:0)}}},setTransition:e=>{const{transformEl:n}=t.params.coverflowEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({creativeEffect:{transformEl:null,limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const r=e=>"string"==typeof e?e:e+"px";X({effect:"creative",swiper:t,on:i,setTranslate:()=>{const{slides:e,$wrapperEl:n,slidesSizesGrid:i}=t,s=t.params.creativeEffect,{progressMultiplier:a}=s,o=t.params.centeredSlides;if(o){const e=i[0]/2-t.params.slidesOffsetBefore||0;n.transform(`translateX(calc(50% - ${e}px))`)}for(let n=0;n0&&(m=s.prev,f=!0),h.forEach((e,t)=>{h[t]=`calc(${e}px + (${r(m.translate[t])} * ${Math.abs(u*a)}))`}),p.forEach((e,t)=>{p[t]=m.rotate[t]*Math.abs(u*a)}),i[0].style.zIndex=-Math.abs(Math.round(l))+e.length;const g=h.join(", "),v=`rotateX(${p[0]}deg) rotateY(${p[1]}deg) rotateZ(${p[2]}deg)`,y=c<0?`scale(${1+(1-m.scale)*c*a})`:`scale(${1-(1-m.scale)*c*a})`,b=c<0?1+(1-m.opacity)*c*a:1-(1-m.opacity)*c*a,_=`translate3d(${g}) ${v} ${y}`;if(f&&m.shadow||!f){let e=i.children(".swiper-slide-shadow");if(0===e.length&&m.shadow&&(e=Q(s,i)),e.length){const t=s.shadowPerProgress?u*(1/s.limitProgress):u;e[0].style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const T=Y(s,i);T.transform(_).css({opacity:b}),m.origin&&T.css("transform-origin",m.origin)}},setTransition:e=>{const{transformEl:n}=t.params.creativeEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),K({swiper:t,duration:e,transformEl:n,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:n,on:i}=e;n({cardsEffect:{slideShadows:!0,transformEl:null,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),X({effect:"cards",swiper:t,on:i,setTranslate:()=>{const{slides:e,activeIndex:n}=t,i=t.params.cardsEffect,{startTranslate:r,isTouched:s}=t.touchEventsData,a=t.translate;for(let o=0;o0&&c<1&&(s||t.params.cssMode)&&a-1&&(s||t.params.cssMode)&&a>r;if(b||_){const e=(1-Math.abs((Math.abs(c)-.5)/.5))**.5;g+=-28*c*e,m+=-.5*e,v+=96*e,p=-25*e*Math.abs(c)+"%"}if(h=c<0?`calc(${h}px + (${v*Math.abs(c)}%))`:c>0?`calc(${h}px + (-${v*Math.abs(c)}%))`:h+"px",!t.isHorizontal()){const e=p;p=h,h=e}const T=c<0?""+(1+(1-m)*c):""+(1-(1-m)*c),w=`\n translate3d(${h}, ${p}, ${f}px)\n rotateZ(${i.rotate?g:0}deg)\n scale(${T})\n `;if(i.slideShadows){let e=l.find(".swiper-slide-shadow");0===e.length&&(e=Q(i,l)),e.length&&(e[0].style.opacity=Math.min(Math.max((Math.abs(c)-.5)/.5,0),1))}l[0].style.zIndex=-Math.abs(Math.round(u))+e.length,Y(i,l).transform(w)}},setTransition:e=>{const{transformEl:n}=t.params.cardsEffect;(n?t.slides.find(n):t.slides).transition(e).find(".swiper-slide-shadow").transition(e),K({swiper:t,duration:e,transformEl:n})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return j.use(J),j})),console.log("website developed by:"),console.log("%cDimo Visual Creatives","background: #222; color: #2ed5fa; font-size: 40px"),console.log("%chttps://dimo.cat","background: #222; color: #000; font-size: 10px"),function(e){e.TcMathHelper={lerp:function(e,t,n){return e+(t-e)*(n=(n=n<0?0:n)>1?1:n)}}}(window),document.querySelectorAll(".accordion-wrapper").forEach((function(e){e.querySelector(".toggle-trigger").addEventListener("click",(function(t){var n=t.target.closest(".accordion-wrapper"),i=n.querySelector(".accoridon-content");e.dataset.maxHeight&&!n.classList.contains("active")?i.style="max-height: ".concat(e.dataset.maxHeight,"px"):i.style="",n.classList.toggle("active")}))})),function(e,t){jQuery(document).ready((function(){e.init()}))}(AOS),function(e,t){e(window).on("load",(function(){var e=document.querySelectorAll(".wpcf7-form");if(!(e.length<=0||"nl"!==t.lang))for(var n=0,i=e.length;n li'),n=t.filter(".active").next("li");(n.length?n.find("a"):t.eq(0).find("a")).tab("show")}),3e3);e('[role="tabpanel"] .nav-tabs > li').one("click","a",(function(){t&&(window.clearInterval(t),t=null)}))}}))}(jQuery),function(e){e(window).on("load",(function(){var t=e(".banner-home");0!==t.length&&window.setTimeout((function(){t.addClass("loaded")}),100)}))}(jQuery),function(e){var t=document.querySelectorAll("[data-toggle-modal-search-cable]");if(!(t.length<=0)){var n=document.querySelector(".modal-search-cable"),i=document.querySelector(".container-found-cables"),r=n.querySelector(".spinner-container"),s=n.querySelector(".not-found-cables");t.forEach((function(e){e.addEventListener("click",(function(e){e.preventDefault(),n.classList.toggle("active"),window.setTimeout((function(){n.querySelector("input").focus()}),500)}))}));var a=document.querySelector(".cable-searchbox"),o=void 0,l=function(t,n){var i=new Headers({"Content-Type":"application/json","X-WP-Nonce":e.nonce});r.classList.add("active"),s.classList.remove("active"),fetch(e.search_cables_ep,{method:"POST",headers:i,cache:"no-cache",credentials:"same-origin",body:JSON.stringify({s:t})}).then((function(e){return e.json()})).then((function(e){"function"==typeof n&&n(JSON.parse(e))})).catch((function(e){console.log({error:e})})).finally((function(){r.classList.remove("active")}))},u=function(e){if(i.innerHTML="",e.length<=0)s.classList.add("active");else{for(var t=new DocumentFragment,n=0,r=e.length;n\n ').concat(a.title,"\n

      ").concat(a.claim,"

      \n "),t.append(o)}i.appendChild(t)}};a.addEventListener("input",(function(e){var t=e.target.value;o&&window.clearTimeout(o),o=window.setTimeout((function(){l(t,u)}),300)})),l("",u)}}(wpSiteInfo),function(e){e(document).on("click",'[data-toggle="lightbox"]',(function(t){t.preventDefault(),e(this).ekkoLightbox({timestart:e(this).data("timestart")?e(this).data("timestart"):null})}))}(jQuery),jQuery(window).on("load",(function(){var e=document.querySelector(".content-blog-entries-container");if(e){var t=function(e){return'
      \n \n
      \n

      ').concat(e.title.rendered,"

      \n ").concat(e.excerpt.rendered,'\n

      \n Read more >\n

      \n
      \n
      ')};fetch("https://www.topcable.com/blog-electric-cable/wp-json/wp/v2/posts?tags=12&_embed").then((function(n){n.json().then((function(n){console.log(n);for(var i=e.querySelector(".previous-entries-container"),r="",s=0;s0&&window.location.hash){var t=window.location.hash.replace("#","");switch(t){case"innovationandsustainability":case"innovacionysostenibilidad":case"esg":case"movingreen":t="innovation",console.log("is about to scroll"),window.setTimeout((function(){e("html, body").animate({scrollTop:e("#intro-block").offset().top},500)}),100)}switch(t){case"manufacturers":case"benefits":case"service":case"innovation":e('[aria-controls="'.concat(t,'"]')).click()}}}))}(jQuery),function(e){document.addEventListener("wpcf7submit",(function(t){e(this).find('input[type="submit"]').removeAttr("disabled")})),e("form.wpcf7-form").on("submit",(function(){e(this).find('input[type="submit"]').attr("disabled",!0)}))}(jQuery),function(e){e(document).on("ready",(function(){e("body").on("contextmenu","img",(function(e){return!1}))}))}(jQuery);var myCFCntrl=function(e,t){var n=function(e,t,n){var i=JSON.parse(window.localStorage.getItem("tc_data_forms"));i||(window.localStorage.setItem("tc_data_forms",JSON.stringify({"cont-contacto-form":{},"cont-detall-form":{},"cont-pdf-form":{}})),i=JSON.parse(window.localStorage.getItem("tc_data_forms"))),i[t]||(i[t]={}),i[t][n]=e,window.localStorage.setItem("tc_data_forms",JSON.stringify(i))},i=function(e,t){e=e||"cont-contacto-form",t=t||"en";var n=JSON.parse(window.localStorage.getItem("tc_data_forms"));return(n=n||{})[e]=n[e]?n[e]:{},!!n[e][t]&&n[e][t]},r=function(t,n){var r=e("#"+t);if(r.length>0){var s=i(t,n);s&&(r.find('select[name="country_comercial"]').val(s.u_country),r.find('input[name="your-name"]').val(s.u_name),r.find('input[name="company"]').val(s.u_company),r.find('input[name="your-email"]').val(s.u_email),r.find('select[name="activity"]').val(s.u_activity),r.find('input[name="phone"]').val(s.u_phone),r.find('textarea[name="your-message"]').val(s.u_message))}};return e(document).on("ready",(function(){e("#cont-contacto-form, #cont-detall-form, #cont-pdf-form").each((function(){r(e(this).attr("id"),t.currentLang)}))})),{sayHello:function(){},msnSended:function(e){switch(e=e||"cont-contacto-form"){case"cont-contacto-form":case"cont-detall-form":case"cont-pdf-form":window.location.href=t.redirectPageOnOk}},updateSessionForm:function(i){switch(i=i||"cont-contacto-form"){case"cont-contacto-form":case"cont-detall-form":case"cont-pdf-form":!function(i){var r=e("#"+i).find(".wpcf7").find("form"),s={u_lang:t.currentLang,u_country:r.find('select[name="country_comercial"]').val(),u_name:r.find('input[name="your-name"]').val(),u_company:r.find('input[name="company"]').val(),u_email:r.find('input[name="your-email"]').val(),u_activity:r.find('select[name="activity"]').val(),u_phone:r.find('input[name="phone"]').val(),u_message:r.find('textarea[name="your-message"]').val()};console.log(s),n(s,i,t.currentLang)}(i)}},loadSavedDataToForm:i,chargeDataToForm:r}}(jQuery,contextDataForm);function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e("[data-scrollto]").on("click",(function(t){var n="#"+e(this).data("scrollto");"#__top__"!==n?e(n).length>=0&&(e(".mobile-menu-wrapper").removeClass("active"),t.preventDefault(),e("html, body").animate({scrollTop:e(n).offset().top},500)):e("html, body").animate({scrollTop:0},500)}))}(jQuery),function(e){$(document).ready((function(){var t=$('[name="country_comercial"]').select2();0!==t.length&&fetch("".concat(e.domain,"/wp-content/plugins/tc-get-ip/index.php")).then((function(e){return e.json()})).then((function(e){if(e.ip){var n=e.ip;fetch("https://www.iplocate.io/api/lookup/".concat(n)).then((function(e){return e.json()})).then((function(n){if(!n.error&&n.country){for(var i=null,r=0,s=e.countries.length;r0){r=r+3-a;for(var l=1;l3&&{el:".swiper-pagination",clickable:r>3},autoplay:0},"loop",r>3),_defineProperty(n,"slidesPerView",3),_defineProperty(n,"slidesPerGroup",3),_defineProperty(n,"grabCursor",!0),n));function c(){i||(e(u.$wrapperEl).one("mouseenter",d),i=window.setInterval((function(){u.moveSliderTo("next")}),5e3))}function d(){i&&(e(u.$wrapperEl).one("mouseleave",c),window.clearInterval(i),i=null)}u.moveSliderTo=function(e){if(a>0&&3==u.params.slidesPerGroup){switch(e){case"next":o=o>=s.length-1?0:o+1;break;case"prev":o=o<=0?s.length-1:o-1;break;default:o=1}u.slideTo(s[o])}else switch(e){case"next":u.slideNext();break;case"prev":u.slidePrev();break;default:u.slideTo(1)}},u.$wrapperEl&&(r>3?(e("#btn-slidercables-left").on("click",(function(e){e.preventDefault(),u.moveSliderTo("next")})).on("mouseover",d).on("mouseout",c),e("#btn-slidercables-right").on("click",(function(e){e.preventDefault(),u.moveSliderTo("prev")})).on("mouseover",d).on("mouseout",c)):(e("#btn-slidercables-left").remove(),e("#btn-slidercables-right").remove()),e(window).on("resize",(function(){e(this).width()<700?(u.params.slidesPerView=1,u.params.slidesPerGroup=1,u.moveSliderTo(),u.update()):(u.params.slidesPerView=3,u.params.slidesPerGroup=3,u.moveSliderTo(),u.update())})),e(window).trigger("resize"),c());var h=new t(".swiper-container-rrhh",{direction:"horizontal",loop:!0,speed:1e3,autoplay:1e4,grabCursor:!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}});new t(".solar-cables-swiper-container",{pagination:{el:".swiper-pagination",clickable:!0}});return[u,h]}))}(jQuery,Swiper),function(e){var t,n,i=void 0,r=e("#find-a-distributor-solar-contact");if(r[0]){var s=r.find(".wpcf7");s[0]&&(i=e(".landing-solar-cables__tab-sections-wrapper").find(".tab-content").find(".tab-pane.active").find("[data-url-datasheet]"))[0]&&(n=i.data("url-datasheet"),t=i.data("translated-label-datasheet"),s[0].addEventListener("wpcf7submit",(function(e){for(var i=e.detail.inputs,r=0;r10?(t.hasClass("active")||t.addClass("active"),e(this).scrollTop()1e3?e(window).height():1e3})})),e(".dan-cont-menu-inf .dropdown").on("hide.bs.dropdown",(function(){e(".navbar").addClass("navbar-fixed-top"),e("body").css({"padding-top":"110px"}),e(".container-general").removeClass("with-menu-opened").css({height:"auto"})}))}(jQuery),function(e){e('input[type="submit"]').on("click",(function(t){0==e(this).closest("form").find('select[name="country_comercial"]').val()&&(t.preventDefault(),alert("You have to select a valid country"))}))}(jQuery),function(){var e=document.querySelector(".see-more-btn"),t=document.querySelector(".dan-overview-cable-tabs-area .tab-content .dan-extended-content");t&&e&&e.addEventListener("click",(function(){t.classList.toggle("active"),e.querySelector(".see-more-label").classList.toggle("d-none"),e.querySelector(".see-less-label").classList.toggle("d-none")}))}(),function(e,t){var n=document.querySelector(".container-movigreen-slider-videos");if(n){var i=new e(".swiperMovigreenThumbs",{spaceBetween:10,slidesPerView:1,watchSlidesProgress:!0,navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},breakpoints:{320:{slidesPerView:2,navigation:!1},768:{slidesPerView:3},1024:{slidesPerView:5}}});new e(".swiperMovigreenMain",{thumbs:{swiper:i}});var r=document.querySelector(".embed-responsive-item");n.addEventListener("click",(function(e){if(e.target.classList.contains("snap-video")){var t=e.target.closest(".swiper-slide").dataset.video;console.log(t),r.setAttribute("src",t)}}),!1);var s=t("#myModalSwiperVideoSlider");s.on("hidden.bs.modal",(function(){r.setAttribute("src","")}));var a=document.querySelector(".keep-planet-green-btn");a&&a.addEventListener("click",(function(e){e.preventDefault(),r.setAttribute("src","https://www.youtube.com/embed/8XBUufM2y0U?si=sS8bVkGCnAoxkrkr&autoplay=1"),s.modal("show")}))}}(Swiper,jQuery);