vendor: 5,517 bytes, lines 1-11
1!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=172)}([function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(57))},function(e,t,n){var i; 2/*! 3 * jQuery JavaScript Library v3.7.1 4 * https://jquery.com/ 5 * 6 * Copyright OpenJS Foundation and other contributors 7 * Released under the MIT license 8 * https://jquery.org/license 9 * 10 * Date: 2023-08-28T13:37Z 11 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var a=[],o=Object.getPrototypeOf,s=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,r,a=(n=n||b).createElement("script");if(a.text=e,t)for(i in _)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var S=/HTML$/i,k=function(e,t){return new k.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function C(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}k.fn=k.prototype={jquery:"3.7.1",constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},k.extend=k.fn.extend=function(){var e,t,n,i,r,a,o=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[s]||{},s++),"object"==typeof o||v(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)i=e[t],"__proto__"!==t&&o!==i&&(c&&i&&(k.isPlainObject(i)||(r=Array.isArray(i)))?(n=o[t],a=r&&!Array.isArray(n)?[]:r||k.isPlainObject(n)?n:{},r=!1,o[t]=k.extend(c,a,i)):void 0!==i&&(o[t]=i));return o},k.extend({expando:"jQuery"+("3.7.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=o(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(x(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=k.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!S.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,a=e.length,o=!n;r<a;r++)!t(e[r],r)!==o&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,o=[];if(x(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&o.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&o.push(r);return l(o)},guid:1,support:g}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=a[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));
vendor: 45,637 bytes, line 11
11var E=a.pop,A=a.sort,O=a.splice,P="[\\x20\\t\\r\\n\\f]",I=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");k.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function D(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}k.escapeSelector=function(e){return(e+"").replace(L,D)};var j=b,M=c;!function(){var e,t,i,r,o,l,c,d,h,p,m=M,v=k.expando,y=0,b=0,_=ee(),w=ee(),T=ee(),S=ee(),x=function(e,t){return e===t&&(o=!0),0},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+P+"*("+D+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+P+"*\\]",N=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",$=new RegExp(P+"+","g"),B=new RegExp("^"+P+"*,"+P+"*"),F=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),U=new RegExp(P+"|>"),z=new RegExp(N),H=new RegExp("^"+D+"$"),q={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,W=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),K=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))},Q=function(){le()},J=he((function(e){return!0===e.disabled&&C(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(a=s.call(j.childNodes),j.childNodes),a[j.childNodes.length].nodeType}catch(e){m={apply:function(e,t){M.apply(e,s.call(t))},call:function(e){M.apply(e,s.call(arguments,1))}}}function Z(e,t,n,i){var r,a,o,s,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=W.exec(e)))if(r=c[1]){if(9===y){if(!(o=t.getElementById(r)))return n;if(o.id===r)return m.call(n,o),n}else if(p&&(o=p.getElementById(r))&&Z.contains(t,o)&&o.id===r)return m.call(n,o),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(r)),n}if(!(S[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(U.test(e)||F.test(e))){for((p=G.test(e)&&se(t.parentNode)||t)==t&&g.scope||((s=t.getAttribute("id"))?s=k.escapeSelector(s):t.setAttribute("id",s=v)),a=(u=ue(e)).length;a--;)u[a]=(s?"#"+s:":scope")+" "+de(u[a]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(t){S(e,!0)}finally{s===v&&t.removeAttribute("id")}}}return ye(e.replace(I,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return C(t,"input")&&t.type===e}}function re(e){return function(t){return(C(t,"input")||C(t,"button"))&&t.type===e}}function ae(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&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function oe(e){return te((function(t){return t=+t,te((function(n,i){for(var r,a=e([],n.length,t),o=a.length;o--;)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function se(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:j;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!k.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&j!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),g.getById=ne((function(e){return c.appendChild(e).id=k.expando,!l.getElementsByName||!l.getElementsByName(k.expando).length})),g.disconnectedMatch=ne((function(e){return p.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(Y,K);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,K);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),i=0;a=r[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+P+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),x=function(e,t){if(e===t)return o=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==j&&Z.contains(j,e)?-1:t===l||t.ownerDocument==j&&Z.contains(j,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),d&&!S[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){S(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),k.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},k.uniqueSort=function(e){var t,n=[],i=0,a=0;if(o=!g.sortStable,r=!g.sortStable&&s.call(e,0),A.call(e,x),o){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)O.call(e,n[i],1)}return r=null,e},k.fn.uniqueSort=function(){return this.pushStack(k.uniqueSort(s.apply(this)))},(t=k.expr={cacheLength:50,createPseudo:te,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,K),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,K),"~="===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]||Z.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]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=ue(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(Y,K).toLowerCase();return"*"===e?function(){return!0}:function(e){return C(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&_(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=Z.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=a!==o?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!l&&!s,_=!1;if(m){if(a){for(;p;){for(d=t;d=d[p];)if(s?C(d,g):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&b){for(_=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(_=h=0)||f.pop();)if(1===d.nodeType&&++_&&d===t){u[e]=[y,h,_];break}}else if(b&&(_=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[p]||(_=h=0)||f.pop())&&(!(s?C(d,g):1===d.nodeType)||!++_||(b&&((u=d[v]||(d[v]={}))[e]=[y,_]),d!==t)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,a=r(e,n),o=a.length;o--;)e[i=u.call(e,a[o])]=!(t[i]=a[o])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(I,"$1"));return i[v]?te((function(e,t,n,r){for(var a,o=i(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(Y,K),function(t){return(t.textContent||k.text(t)).indexOf(e)>-1}})),lang:te((function(e){return H.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(Y,K).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ae(!1),disabled:ae(!0),checked:function(e){return C(e,"input")&&!!e.checked||C(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return C(e,"input")&&"button"===e.type||C(e,"button")},text:function(e){var t;return C(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:oe((function(){return[0]})),last:oe((function(e,t){return[t-1]})),eq:oe((function(e,t,n){return[n<0?n+t:n]})),even:oe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:oe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:oe((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:oe((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,a,o,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(o in i&&!(r=B.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(a=[])),i=!1,(r=F.exec(s))&&(i=r.shift(),a.push({value:i,type:r[0].replace(I," ")}),s=s.slice(i.length)),t.filter)!(r=q[o].exec(s))||c[o]&&!(r=c[o](r))||(i=r.shift(),a.push({value:i,type:o,matches:r}),s=s.slice(i.length));if(!i)break}return n?s.length:s?Z.error(e):w(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,a=r||i,o=n&&"parentNode"===a,s=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,s];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=t[v]||(t[v]={}),r&&C(t,r))t=t[i]||t;else{if((c=u[a])&&c[0]===y&&c[1]===s)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var a,o=[],s=0,l=e.length,c=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,i,r)||(o.push(a),c&&t.push(s)));return o}function me(e,t,n,i,r,a){return i&&!i[v]&&(i=me(i)),r&&!r[v]&&(r=me(r,a)),te((function(a,o,s,l){var c,d,h,f,p=[],g=[],v=o.length,y=a||function(e,t,n){for(var i=0,r=t.length;i<r;i++)Z(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!a&&t?y:pe(y,p,e,s,l);if(n?n(b,f=r||(a?e:v||i)?[]:o,s,l):f=b,i)for(c=pe(f,g),i(c,[],s,l),d=c.length;d--;)(h=c[d])&&(f[g[d]]=!(b[g[d]]=h));if(a){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(a,h):p[d])>-1&&(a[c]=!(o[c]=h))}}else f=pe(f===o?f.splice(v,f.length):f),r?r(null,o,f,l):m.apply(o,f)}))}function ge(e){for(var n,r,a,o=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,d=he((function(e){return e===n}),l,!0),h=he((function(e){return u.call(n,e)>-1}),l,!0),f=[function(e,t,r){var a=!s&&(r||t!=i)||((n=t).nodeType?d(e,t,r):h(e,t,r));return n=null,a}];c<o;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(a=++c;a<o&&!t.relative[e[a].type];a++);return me(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(I,"$1"),r,c<a&&ge(e.slice(c,a)),a<o&&ge(e=e.slice(a)),a<o&&de(e))}f.push(r)}return fe(f)}function ve(e,n){var r,a=[],o=[],s=T[e+" "];if(!s){for(n||(n=ue(e)),r=n.length;r--;)(s=ge(n[r]))[v]?a.push(s):o.push(s);(s=T(e,function(e,n){var r=n.length>0,a=e.length>0,o=function(o,s,c,u,h){var f,p,g,v=0,b="0",_=o&&[],w=[],T=i,S=o||a&&t.find.TAG("*",h),x=y+=null==T?1:Math.random()||.1,C=S.length;for(h&&(i=s==l||s||h);b!==C&&null!=(f=S[b]);b++){if(a&&f){for(p=0,s||f.ownerDocument==l||(le(f),c=!d);g=e[p++];)if(g(f,s||l,c)){m.call(u,f);break}h&&(y=x)}r&&((f=!g&&f)&&v--,o&&_.push(f))}if(v+=b,r&&b!==v){for(p=0;g=n[p++];)g(_,w,s,c);if(o){if(v>0)for(;b--;)_[b]||w[b]||(w[b]=E.call(u));w=pe(w)}m.apply(u,w),h&&!o&&w.length>0&&v+n.length>1&&k.uniqueSort(u)}return h&&(y=x,i=T),_};return r?te(o):o}(o,a))).selector=e}return s}function ye(e,n,i,r){var a,o,s,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((o=h[0]=h[0].slice(0)).length>2&&"ID"===(s=o[0]).type&&9===n.nodeType&&d&&t.relative[o[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Y,K),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(o.shift().value.length)}for(a=q.needsContext.test(e)?0:o.length;a--&&(s=o[a],!t.relative[l=s.type]);)if((c=t.find[l])&&(r=c(s.matches[0].replace(Y,K),G.test(o[0].type)&&se(n.parentNode)||n))){if(o.splice(a,1),!(e=r.length&&de(o)))return m.apply(i,r),i;break}}return(u||ve(e,h))(r,n,!d,i,!n||G.test(e)&&se(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(x).join("")===v,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),k.find=Z,k.expr[":"]=k.expr.pseudos,k.unique=k.uniqueSort,Z.compile=ve,Z.select=ye,Z.setDocument=le,Z.tokenize=ue,Z.escape=k.escapeSelector,Z.getText=k.text,Z.isXML=k.isXMLDoc,Z.selectors=k.expr,Z.support=k.support,Z.uniqueSort=k.uniqueSort}();var R=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&k(e).is(n))break;i.push(e)}return i},N=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},$=k.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return v(t)?k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return u.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++)if(k.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,r[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&$.test(e)?k(e):e||[],!1).length}});var U,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||U,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:z.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 k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),B.test(i[1])&&k.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,U=k(b);var H=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,a=[],o="string"!=typeof e&&k(e);if(!$.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?k.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(k(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&o(e.contentDocument)?e.contentDocument:(C(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,i){var r=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=k.filter(i,r)),this.length>1&&(q[e]||k.uniqueSort(r),H.test(e)&&r.reverse()),this.pushStack(r)}}));var X=/[^\x20\t\r\n\f]+/g;function W(e){return e}function G(e){throw e}function Y(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(X)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,i,r,a=[],o=[],s=-1,l=function(){for(r=r||e.once,i=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,r&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){k.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==T(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=o=[],n||t||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,r){var a=0;function o(e,t,i,r){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<a)){if((n=i.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?r?c.call(n,o(a,t,W,r),o(a,t,G,r)):(a++,c.call(n,o(a,t,W,r),o(a,t,G,r),o(a,t,W,t.notifyWith))):(i!==W&&(s=void 0,l=[n]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,u.error),e+1>=a&&(i!==G&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(k.Deferred.getErrorHook?u.error=k.Deferred.getErrorHook():k.Deferred.getStackHook&&(u.error=k.Deferred.getStackHook()),n.setTimeout(u))}}return k.Deferred((function(n){t[0][3].add(o(0,n,v(r)?r:W,n.notifyWith)),t[1][3].add(o(0,n,v(e)?e:W)),t[2][3].add(o(0,n,v(i)?i:G))})).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},a={};return k.each(t,(function(e,n){var o=n[2],s=n[5];r[n[1]]=o.add,s&&o.add((function(){i=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),a=k.Deferred(),o=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||a.resolveWith(i,r)}};if(t<=1&&(Y(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||v(r[n]&&r[n].then)))return a.then();for(;n--;)Y(r[n],o(n),a.reject);return a.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&K.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var Q=k.Deferred();function J(){b.removeEventListener("DOMContentLoaded",J),n.removeEventListener("load",J),k.ready()}k.fn.ready=function(e){return Q.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||Q.resolveWith(b,[k]))}}),k.ready.then=Q.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?n.setTimeout(k.ready):(b.addEventListener("DOMContentLoaded",J),n.addEventListener("load",J));var Z=function(e,t,n,i,r,a,o){var s=0,l=e.length,c=null==n;if("object"===T(n))for(s in r=!0,n)Z(e,t,s,n[s],!0,a,o);else if(void 0!==i&&(r=!0,v(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(k(e),n)})),t))for(;s<l;s++)t(e[s],n,o?i:i.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):a},ee=/^-ms-/,te=/-([a-z])/g;function ne(e,t){return t.toUpperCase()}function ie(e){return e.replace(ee,"ms-").replace(te,ne)}var re=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ae(){this.expando=k.expando+ae.uid++}ae.uid=1,ae.prototype={cache:function(e){var t=e[this.expando];return t||(t={},re(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[ie(t)]=n;else for(i in t)r[ie(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in i?[t]:t.match(X)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var oe=new ae,se=new ae,le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function ue(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:le.test(e)?JSON.parse(e):e)}(n)}catch(e){}se.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return se.hasData(e)||oe.hasData(e)},data:function(e,t,n){return se.access(e,t,n)},removeData:function(e,t){se.remove(e,t)},_data:function(e,t,n){return oe.access(e,t,n)},_removeData:function(e,t){oe.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,r,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(r=se.get(a),1===a.nodeType&&!oe.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(i=o[n].name).indexOf("data-")&&(i=ie(i.slice(5)),ue(a,i,r[i]));oe.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){se.set(this,e)})):Z(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=se.get(a,e))||void 0!==(n=ue(a,e))?n:void 0;this.each((function(){se.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){se.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=oe.get(e,t),n&&(!i||Array.isArray(n)?i=oe.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,r=n.shift(),a=k._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,(function(){k.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return oe.get(e,n)||oe.access(e,n,{empty:k.Callbacks("once memory").add((function(){oe.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=k.Deferred(),a=this,o=this.length,s=function(){--i||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=oe.get(a[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,he=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),fe=["Top","Right","Bottom","Left"],pe=b.documentElement,me=function(e){return k.contains(e.ownerDocument,e)},ge={composed:!0};pe.getRootNode&&(me=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(ge)===e.ownerDocument});var ve=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===k.css(e,"display")};function ye(e,t,n,i){var r,a,o=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=s(),c=n&&n[3]||(k.cssNumber[t]?"":"px"),u=e.nodeType&&(k.cssNumber[t]||"px"!==c&&+l)&&he.exec(k.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;o--;)k.style(e,t,u+c),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),u/=a;u*=2,k.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var be={};function _e(e){var t,n=e.ownerDocument,i=e.nodeName,r=be[i];return r||(t=n.body.appendChild(n.createElement(i)),r=k.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),be[i]=r,r)}function we(e,t){for(var n,i,r=[],a=0,o=e.length;a<o;a++)(i=e[a]).style&&(n=i.style.display,t?("none"===n&&(r[a]=oe.get(i,"display")||null,r[a]||(i.style.display="")),""===i.style.display&&ve(i)&&(r[a]=_e(i))):"none"!==n&&(r[a]="none",oe.set(i,"display",n)));for(a=0;a<o;a++)null!=r[a]&&(e[a].style.display=r[a]);return e}k.fn.extend({show:function(){return we(this,!0)},hide:function(){return we(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ve(this)?k(this).show():k(this).hide()}))}});var Te,Se,ke=/^(?:checkbox|radio)$/i,xe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;Te=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),Te.appendChild(Se),g.checkClone=Te.cloneNode(!0).cloneNode(!0).lastChild.checked,Te.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Te.cloneNode(!0).lastChild.defaultValue,Te.innerHTML="<option></option>",g.option=!!Te.lastChild;var Ee={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ae(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&C(e,t)?k.merge([e],n):n}function Oe(e,t){for(var n=0,i=e.length;n<i;n++)oe.set(e[n],"globalEval",!t||oe.get(t[n],"globalEval"))}Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,g.option||(Ee.optgroup=Ee.option=[1,"<select multiple='multiple'>","</select>"]);var Pe=/<|&#?\w+;/;function Ie(e,t,n,i,r){for(var a,o,s,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((a=e[f])||0===a)if("object"===T(a))k.merge(h,a.nodeType?[a]:a);else if(Pe.test(a)){for(o=o||d.appendChild(t.createElement("div")),s=(xe.exec(a)||["",""])[1].toLowerCase(),l=Ee[s]||Ee._default,o.innerHTML=l[1]+k.htmlPrefilter(a)+l[2],u=l[0];u--;)o=o.lastChild;k.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(a));for(d.textContent="",f=0;a=h[f++];)if(i&&k.inArray(a,i)>-1)r&&r.push(a);else if(c=me(a),o=Ae(d.appendChild(a),"script"),c&&Oe(o),n)for(u=0;a=o[u++];)Ce.test(a.type||"")&&n.push(a);return d}var Le=/^([^.]*)(?:\.(.+)|)/;function De(){return!0}function je(){return!1}function Me(e,t,n,i,r,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)Me(e,s,n,i,t[s],a);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=je;else if(!r)return e;return 1===a&&(o=r,(r=function(e){return k().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=k.guid++)),e.each((function(){k.event.add(this,t,r,i,n)}))}function Re(e,t,n){n?(oe.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var n,i=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),oe.set(this,t,i),this[t](),n=oe.get(this,t),oe.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(oe.set(this,t,k.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=De)}})):void 0===oe.get(e,t)&&k.event.add(e,t,De)}k.event={global:{},add:function(e,t,n,i,r){var a,o,s,l,c,u,d,h,f,p,m,g=oe.get(e);if(re(e))for(n.handler&&(n=(a=n).handler,r=a.selector),r&&k.find.matchesSelector(pe,r),n.guid||(n.guid=k.guid++),(l=g.events)||(l=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(X)||[""]).length;c--;)f=m=(s=Le.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=k.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=k.event.special[f]||{},u=k.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&k.expr.match.needsContext.test(r),namespace:p.join(".")},a),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),k.event.global[f]=!0)},remove:function(e,t,n,i,r){var a,o,s,l,c,u,d,h,f,p,m,g=oe.hasData(e)&&oe.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(X)||[""]).length;c--;)if(f=m=(s=Le.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=k.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;a--;)u=h[a],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||k.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)k.event.remove(e,f+t[c],n,i,!0);k.isEmptyObject(l)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,a,o,s=new Array(arguments.length),l=k.event.fix(e),c=(oe.get(this,"events")||Object.create(null))[l.type]||[],u=k.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(o=k.event.handlers.call(this,l,c),t=0;(r=o[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(i=((k.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,a,o,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],o={},n=0;n<l;n++)void 0===o[r=(i=t[n]).selector+" "]&&(o[r]=i.needsContext?k(r,this).index(c)>-1:k.find(r,this,null,[c]).length),o[r]&&a.push(i);a.length&&s.push({elem:c,handlers:a})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ke.test(t.type)&&t.click&&C(t,"input")&&Re(t,"click",!0),!1},trigger:function(e){var t=this||e;return ke.test(t.type)&&t.click&&C(t,"input")&&Re(t,"click"),!0},_default:function(e){var t=e.target;return ke.test(t.type)&&t.click&&C(t,"input")&&oe.get(t,"click")||C(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?De:je,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:je,isPropagationStopped:je,isImmediatePropagationStopped:je,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=De,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=De,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=De,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=oe.get(this,"handle"),i=k.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else k.event.simulate(t,e.target,k.event.fix(e))}k.event.special[e]={setup:function(){var i;if(Re(this,e,!0),!b.documentMode)return!1;(i=oe.get(this,t))||this.addEventListener(t,n),oe.set(this,t,(i||0)+1)},trigger:function(){return Re(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,n),oe.remove(this,t))},_default:function(t){return oe.get(t.target,e)},delegateType:t},k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,a=oe.get(r,t);a||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),oe.set(r,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,a=oe.get(r,t)-1;a?oe.set(r,t,a):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),oe.remove(r,t))}}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,a=e.handleObj;return r&&(r===i||k.contains(i,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,i){return Me(this,e,t,n,i)},one:function(e,t,n,i){return Me(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=je),this.each((function(){k.event.remove(this,e,n,t)}))}});var Ne=/<script|<style|<link/i,$e=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return C(e,"table")&&C(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function ze(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,r,a,o,s;if(1===t.nodeType){if(oe.hasData(e)&&(s=oe.get(e).events))for(r in oe.remove(t,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)k.event.add(t,r,s[r][n]);se.hasData(e)&&(a=se.access(e),o=k.extend({},a),se.set(t,o))}}function qe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ke.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ve(e,t,n,i){t=l(t);var r,a,o,s,c,u,d=0,h=e.length,f=h-1,p=t[0],m=v(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&$e.test(p))return e.each((function(r){var a=e.eq(r);m&&(t[0]=p.call(this,r,a.html())),Ve(a,t,n,i)}));if(h&&(a=(r=Ie(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(s=(o=k.map(Ae(r,"script"),Ue)).length;d<h;d++)c=r,d!==f&&(c=k.clone(c,!0,!0),s&&k.merge(o,Ae(c,"script"))),n.call(e[d],c,d);if(s)for(u=o[o.length-1].ownerDocument,k.map(o,ze),d=0;d<s;d++)c=o[d],Ce.test(c.type||"")&&!oe.access(c,"globalEval")&&k.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?k._evalUrl&&!c.noModule&&k._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Be,""),c,u))}return e}function Xe(e,t,n){for(var i,r=t?k.filter(t,e):e,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||k.cleanData(Ae(i)),i.parentNode&&(n&&me(i)&&Oe(Ae(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,a,o,s=e.cloneNode(!0),l=me(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(o=Ae(s),i=0,r=(a=Ae(e)).length;i<r;i++)qe(a[i],o[i]);if(t)if(n)for(a=a||Ae(e),o=o||Ae(s),i=0,r=a.length;i<r;i++)He(a[i],o[i]);else He(e,s);return(o=Ae(s,"script")).length>0&&Oe(o,!l&&Ae(e,"script")),s},cleanData:function(e){for(var t,n,i,r=k.event.special,a=0;void 0!==(n=e[a]);a++)if(re(n)){if(t=n[oe.expando]){if(t.events)for(i in t.events)r[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[oe.expando]=void 0}n[se.expando]&&(n[se.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return Z(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ve(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return Ve(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ve(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(Ae(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return Z(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!Ee[(xe.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(Ae(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ve(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(Ae(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,i=[],r=k(e),a=r.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),k(r[o])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var We=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),Ge=/^--/,Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ke=function(e,t,n){var i,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=a[r];return i},Qe=new RegExp(fe.join("|"),"i");function Je(e,t,n){var i,r,a,o,s=Ge.test(t),l=e.style;return(n=n||Ye(e))&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(I,"$1")||void 0),""!==o||me(e)||(o=k.style(e,t)),!g.pixelBoxStyles()&&We.test(o)&&Qe.test(t)&&(i=l.width,r=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=n.width,l.width=i,l.minWidth=r,l.maxWidth=a)),void 0!==o?o+"":o}function Ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;
11left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",pe.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),r=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),pe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var i,r,a,o,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,k.extend(g,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,i,r;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),i=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;
11border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",pe.appendChild(e).appendChild(t).appendChild(i),r=n.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,pe.removeChild(e)),s}}))}();var et=["Webkit","Moz","ms"],tt=b.createElement("div").style,nt={};function it(e){var t=k.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function st(e,t,n){var i=he.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function lt(e,t,n,i,r,a){var o="width"===t?1:0,s=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(c+=k.css(e,n+fe[o],!0,r)),i?("content"===n&&(l-=k.css(e,"padding"+fe[o],!0,r)),"margin"!==n&&(l-=k.css(e,"border"+fe[o]+"Width",!0,r))):(l+=k.css(e,"padding"+fe[o],!0,r),"padding"!==n?l+=k.css(e,"border"+fe[o]+"Width",!0,r):s+=k.css(e,"border"+fe[o]+"Width",!0,r));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))||0),l+c}function ct(e,t,n){var i=Ye(e),r=(!g.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),a=r,o=Je(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(o)){if(!n)return o;o="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&C(e,"tr")||"auto"===o||!parseFloat(o)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===k.css(e,"boxSizing",!1,i),(a=s in e)&&(o=e[s])),(o=parseFloat(o)||0)+lt(e,t,n||(r?"border":"content"),a,i,o)+"px"}function ut(e,t,n,i,r){return new ut.prototype.init(e,t,n,i,r)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,o,s=ie(t),l=Ge.test(t),c=e.style;if(l||(t=it(s)),o=k.cssHooks[t]||k.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:c[t];"string"===(a=typeof n)&&(r=he.exec(n))&&r[1]&&(n=ye(e,t,r),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=r&&r[3]||(k.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,a,o,s=ie(t);return Ge.test(t)||(t=it(s)),(o=k.cssHooks[t]||k.cssHooks[s])&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=Je(e,t,i)),"normal"===r&&t in ot&&(r=ot[t]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!rt.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,i):Ke(e,at,(function(){return ct(e,t,i)}))},set:function(e,n,i){var r,a=Ye(e),o=!g.scrollboxSize()&&"absolute"===a.position,s=(o||i)&&"border-box"===k.css(e,"boxSizing",!1,a),l=i?lt(e,t,i,s,a):0;return s&&o&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-lt(e,t,"border",!1,a)-.5)),l&&(r=he.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),st(0,n,l)}}})),k.cssHooks.marginLeft=Ze(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+fe[i]+t]=a[i]||a[i-2]||a[0];return r}},"margin"!==e&&(k.cssHooks[e+t].set=st)})),k.fn.extend({css:function(e,t){return Z(this,(function(e,t,n){var i,r,a={},o=0;if(Array.isArray(t)){for(i=Ye(e),r=t.length;o<r;o++)a[t[o]]=k.css(e,t[o],!1,i);return a}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=ut,ut.prototype={constructor:ut,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(k.cssNumber[n]?"":"px")},cur:function(){var e=ut.propHooks[this.prop];return e&&e.get?e.get(this):ut.propHooks._default.get(this)},run:function(e){var t,n=ut.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ut.propHooks._default.set(this),this}},ut.prototype.init.prototype=ut.prototype,ut.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},ut.propHooks.scrollTop=ut.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=ut.prototype.init,k.fx.step={};var dt,ht,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function mt(){ht&&(!1===b.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(mt):n.setTimeout(mt,k.fx.interval),k.fx.tick())}function gt(){return n.setTimeout((function(){dt=void 0})),dt=Date.now()}function vt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=fe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function yt(e,t,n){for(var i,r=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),a=0,o=r.length;a<o;a++)if(i=r[a].call(n,t,e))return i}function bt(e,t,n){var i,r,a=0,o=bt.prefilters.length,s=k.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=dt||gt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),a=0,o=c.tweens.length;a<o;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),i<1&&o?n:(o||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||
vendor: 28,970 bytes, line 11
11c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,a,o;for(n in e)if(r=t[i=ie(n)],a=e[n],Array.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(o=k.cssHooks[i])&&"expand"in o)for(n in a=o.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);a<o;a++)if(i=bt.prefilters[a].call(c,e,u,c.opts))return v(i.stop)&&(k._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return k.map(u,yt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}k.Animation=k.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ye(n.elem,e,he.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(X);for(var n,i=0,r=e.length;i<r;i++)n=e[i],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,a,o,s,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ve(e),g=oe.get(e,"fxshow");for(i in n.queue||(null==(o=k._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,k.queue(e,"fx").length||o.empty.fire()}))}))),t)if(r=t[i],ft.test(r)){if(delete t[i],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=oe.get(e,"display")),"none"===(u=k.css(e,"display"))&&(c?u=c:(we([e],!0),c=e.style.display||c,u=k.css(e,"display"),we([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===k.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=oe.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&we([e],!0),h.done((function(){for(i in m||we([e]),oe.remove(e,"fxshow"),f)k.style(e,i,f[i])}))),l=yt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ve).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=k.isEmptyObject(e),a=k.speed(t,n,i),o=function(){var t=bt(this,k.extend({},e),a);(r||oe.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",a=k.timers,o=oe.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&pt.test(r)&&i(o[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(n),t=!1,a.splice(r,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=oe.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],a=k.timers,o=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(vt(t,!0),e,i,r)}})),k.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),dt=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){ht||(ht=!0,mt())},k.fx.stop=function(){ht=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var _t,wt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return Z(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?k.prop(e,t,n):(1===a&&k.isXMLDoc(e)||(r=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&C(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(X);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||k.find.attr;wt[t]=function(e,t,i){var r,a,o=t.toLowerCase();return i||(a=wt[o],wt[o]=r,r=null!=n(e,t,i)?o:null,wt[o]=a),r}}));var Tt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function kt(e){return(e.match(X)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function Ct(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}k.fn.extend({prop:function(e,t){return Z(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&k.isXMLDoc(e)||(t=k.propFix[t]||t,r=k.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):Tt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,i,r,a,o;return v(e)?this.each((function(t){k(this).addClass(e.call(this,t,xt(this)))})):(t=Ct(e)).length?this.each((function(){if(i=xt(this),n=1===this.nodeType&&" "+kt(i)+" "){for(a=0;a<t.length;a++)r=t[a],n.indexOf(" "+r+" ")<0&&(n+=r+" ");o=kt(n),i!==o&&this.setAttribute("class",o)}})):this},removeClass:function(e){var t,n,i,r,a,o;return v(e)?this.each((function(t){k(this).removeClass(e.call(this,t,xt(this)))})):arguments.length?(t=Ct(e)).length?this.each((function(){if(i=xt(this),n=1===this.nodeType&&" "+kt(i)+" "){for(a=0;a<t.length;a++)for(r=t[a];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");o=kt(n),i!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,a,o=typeof e,s="string"===o||Array.isArray(e);return v(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,xt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Ct(e),this.each((function(){if(s)for(a=k(this),r=0;r<n.length;r++)i=n[r],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==e&&"boolean"!==o||((i=xt(this))&&oe.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":oe.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+kt(xt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Et=/\r/g;k.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,k(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=k.map(r,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=k.valHooks[r.type]||k.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Et,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:kt(k.text(e))}},select:{get:function(e){var t,n,i,r=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:r.length;for(i=a<0?l:o?a:0;i<l;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(t=k(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,r=e.options,a=k.makeArray(t),o=r.length;o--;)((i=r[o]).selected=k.inArray(k.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},g.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var At=n.location,Ot={guid:Date.now()},Pt=/\?/;k.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var It=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,r){var a,o,s,l,c,u,d,h,p=[i||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=i=i||b,3!==i.nodeType&&8!==i.nodeType&&!It.test(m+k.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[k.expando]?e:new k.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(i,t))){if(!r&&!d.noBubble&&!y(i)){for(l=d.delegateType||m,It.test(l+m)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(i.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||n)}for(a=0;(o=p[a++])&&!e.isPropagationStopped();)h=o,e.type=a>1?l:d.bindType||m,(u=(oe.get(o,"events")||Object.create(null))[e.type]&&oe.get(o,"handle"))&&u.apply(o,t),(u=c&&o[c])&&u.apply&&re(o)&&(e.result=u.apply(o,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!re(i)||c&&v(i[m])&&!y(i)&&((s=i[c])&&(i[c]=null),k.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Lt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,Lt),k.event.triggered=void 0,s&&(i[c]=s)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}});var Dt=/\[\]$/,jt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,n,i){var r;if(Array.isArray(t))k.each(t,(function(t,r){n||Dt.test(e)?i(e,r):Nt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==T(t))i(e,t);else for(r in t)Nt(e+"["+r+"]",t[r],n,i)}k.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){r(this.name,this.value)}));else for(n in e)Nt(n,e[n],t,r);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Rt.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!ke.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(jt,"\r\n")}})):{name:t.name,value:n.replace(jt,"\r\n")}})).get()}});var $t=/%20/g,Bt=/#.*$/,Ft=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,zt=/^(?:GET|HEAD)$/,Ht=/^\/\//,qt={},Vt={},Xt="*/".concat("*"),Wt=b.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,a=t.toLowerCase().match(X)||[];if(v(n))for(;i=a[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Yt(e,t,n,i){var r={},a=e===Vt;function o(s){var l;return r[s]=!0,k.each(e[s]||[],(function(e,s){var c=s(t,n,i);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Kt(e,t){var n,i,r=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Wt.href=At.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,k.ajaxSettings),t):Kt(k.ajaxSettings,e)},ajaxPrefilter:Gt(qt),ajaxTransport:Gt(Vt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,r,a,o,s,l,c,u,d,h,f=k.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?k(p):k.event,g=k.Deferred(),v=k.Callbacks("once memory"),y=f.statusCode||{},_={},w={},T="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!o)for(o={};t=Ut.exec(a);)o[t[1].toLowerCase()+" "]=(o[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=o[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||T;return i&&i.abort(t),x(0,t),this}};if(g.promise(S),f.url=((e||f.url||At.href)+"").replace(Ht,At.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=k.param(f.data,f.traditional)),Yt(qt,f,t,S),c)return S;for(d in(u=k.event&&f.global)&&0==k.active++&&k.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!zt.test(f.type),r=f.url.replace(Bt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace($t,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Pt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ft,"$1"),h=(Pt.test(r)?"&":"?")+"_="+Ot.guid+++h),f.url=r+h),f.ifModified&&(k.lastModified[r]&&S.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&S.setRequestHeader("If-None-Match",k.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xt+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||c))return S.abort();if(T="abort",v.add(f.complete),S.done(f.success),S.fail(f.error),i=Yt(Vt,f,t,S)){if(S.readyState=1,u&&m.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(s=n.setTimeout((function(){S.abort("timeout")}),f.timeout));try{c=!1,i.send(_,x)}catch(e){if(c)throw e;x(-1,e)}}else x(-1,"No Transport");function x(e,t,o,l){var d,h,b,_,w,T=t;c||(c=!0,s&&n.clearTimeout(s),i=void 0,a=l||"",S.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(_=function(e,t,n){for(var i,r,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}o||(o=r)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}(f,S,o)),!d&&k.inArray("script",f.dataTypes)>-1&&k.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(e,t,n,i){var r,a,o,s,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(o=c[l+" "+a]||c["* "+a]))for(r in c)if((s=r.split(" "))[1]===a&&(o=c[l+" "+s[0]]||c["* "+s[0]])){!0===o?o=c[r]:!0!==c[r]&&(a=s[0],u.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(f,_,S,d),d?(f.ifModified&&((w=S.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=w),(w=S.getResponseHeader("etag"))&&(k.etag[r]=w)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=_.state,h=_.data,d=!(b=_.error))):(b=T,!e&&T||(T="error",e<0&&(e=0))),S.status=e,S.statusText=(t||T)+"",d?g.resolveWith(p,[h,T,S]):g.rejectWith(p,[S,T,b]),S.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[S,f,d?h:b]),v.fireWith(p,[S,T]),u&&(m.trigger("ajaxComplete",[S,f]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:r,data:n,success:i},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Qt={0:200,1223:204},Jt=k.ajaxSettings.xhr();g.cors=!!Jt&&"withCredentials"in Jt,g.ajax=Jt=!!Jt,k.ajaxTransport((function(e){var t,i;if(g.cors||Jt&&!e.crossDomain)return{send:function(r,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(o,r[o]);t=function(e){return function(){t&&(t=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),i=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=k("<script>").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)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Zt,en=[],tn=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||k.expando+"_"+Ot.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,i){var r,a,o,s=!1!==e.jsonp&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(tn,"$1"+r):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",a=n[r],n[r]=function(){o=arguments},i.always((function(){void 0===a?k(n).removeProp(r):n[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,en.push(r)),o&&v(a)&&a(o[0]),o=a=void 0})),"script"})),g.createHTMLDocument=((Zt=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Zt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),a=!n&&[],(r=B.exec(e))?[t.createElement(r[1])]:(r=Ie([e],t,a),a&&a.length&&k(a).remove(),k.merge([],r.childNodes)));var i,r,a},k.fn.load=function(e,t,n){var i,r,a,o=this,s=e.indexOf(" ");return s>-1&&(i=kt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){a=arguments,o.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)})).always(n&&function(e,t){o.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var i,r,a,o,s,l,c=k.css(e,"position"),u=k(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),a=k.css(e,"top"),l=k.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(a)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(d.top=t.top-s.top+o),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.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"===k.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"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),r.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-k.css(i,"marginTop",!0),left:t.left-r.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||pe}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return Z(this,(function(e,i,r){var a;if(y(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===r)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):e[i]=r}),e,i,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=Ze(g.pixelPosition,(function(e,n){if(n)return n=Je(e,t),We.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(r,a){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===a?"margin":"border");return Z(this,(function(t,n,r){var a;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?k.css(t,n,s):k.style(t,n,r,s)}),t,o?r:void 0,o)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.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.on("mouseenter",e).on("mouseleave",t||e)}}),k.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){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var nn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=s.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,r},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=C,k.isFunction=v,k.isWindow=y,k.camelCase=ie,k.type=T,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(nn,"$1")},void 0===(i=function(){return k}
11.apply(t,[]))||(e.exports=i);var rn=n.jQuery,an=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=an),e&&n.jQuery===k&&(n.jQuery=rn),k},void 0===r&&(n.jQuery=n.$=k),k}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return x})),n.d(t,"g",(function(){return T})),n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return k})),n.d(t,"k",(function(){return c})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return w})),n.d(t,"n",(function(){return o})),n.d(t,"o",(function(){return _})),n.d(t,"p",(function(){return b})),n.d(t,"q",(function(){return f})),n.d(t,"r",(function(){return g})),n.d(t,"s",(function(){return h})),n.d(t,"t",(function(){return d})),n.d(t,"u",(function(){return a}));var i=n(7);function r(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function a(e){const t=e;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function s(){return Date.now()}function l(e,t){void 0===t&&(t="x");const n=Object(i.a)();let r,a,o;const s=function(e){const t=Object(i.a)();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(e=>e.replace(",",".")).join(", ")),o=new n.WebKitCSSMatrix("none"===a?"":a)):(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(a=n.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(a=n.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),a||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(e){return"undefined"!=typeof window&&void 0!==window.HTMLElement?e instanceof HTMLElement:e&&(1===e.nodeType||11===e.nodeType)}function d(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const i=n<0||arguments.length<=n?void 0:arguments[n];if(null!=i&&!u(i)){const n=Object.keys(Object(i)).filter(e=>t.indexOf(e)<0);for(let t=0,r=n.length;t<r;t+=1){const r=n[t],a=Object.getOwnPropertyDescriptor(i,r);void 0!==a&&a.enumerable&&(c(e[r])&&c(i[r])?i[r].__swiper__?e[r]=i[r]:d(e[r],i[r]):!c(e[r])&&c(i[r])?(e[r]={},i[r].__swiper__?e[r]=i[r]:d(e[r],i[r])):e[r]=i[r])}}}return e}function h(e,t,n){e.style.setProperty(t,n)}function f(e){let{swiper:t,targetPosition:n,side:r}=e;const a=Object(i.a)(),o=-t.translate;let s,l=null;const c=t.params.speed;t.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(t.cssModeFrameID);const u=n>o?"next":"prev",d=(e,t)=>"next"===u&&e>=t||"prev"===u&&e<=t,h=()=>{s=(new Date).getTime(),null===l&&(l=s);const e=Math.max(Math.min((s-l)/c,1),0),i=.5-Math.cos(e*Math.PI)/2;let u=o+i*(n-o);if(d(u,n)&&(u=n),t.wrapperEl.scrollTo({[r]:u}),d(u,n))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:u})}),void a.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=a.requestAnimationFrame(h)};h()}function p(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function m(e,t){return void 0===t&&(t=""),[...e.children].filter(e=>e.matches(t))}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:r(t)),n}function y(e){const t=Object(i.a)(),n=Object(i.b)(),r=e.getBoundingClientRect(),a=n.body,o=e.clientTop||a.clientTop||0,s=e.clientLeft||a.clientLeft||0,l=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;
11return{top:r.top+l-o,left:r.left+c-s}}function b(e,t){const n=[];for(;e.previousElementSibling;){const i=e.previousElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}function _(e,t){const n=[];for(;e.nextElementSibling;){const i=e.nextElementSibling;t?i.matches(t)&&n.push(i):n.push(i),e=i}return n}function w(e,t){return Object(i.a)().getComputedStyle(e,null).getPropertyValue(t)}function T(e){let t,n=e;if(n){for(t=0;null!==(n=n.previousSibling);)1===n.nodeType&&(t+=1);return t}}function S(e,t){const n=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&n.push(i):n.push(i),i=i.parentElement;return n}function k(e,t){t&&e.addEventListener("transitionend",(function n(i){i.target===e&&(t.call(e,i),e.removeEventListener("transitionend",n))}))}function x(e,t,n){const r=Object(i.a)();return n?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"j",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"h",(function(){return g})),n.d(t,"d",(function(){return v})),n.d(t,"a",(function(){return y}));var i,r,a=n(0),o=function(e,t,n){return void 0===n&&(n=" "),(function(e,t){for(var n="";t--;)n+=e;return n}(n,t)+e.toString()).slice(-t)},s=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},l=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||s(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},c=function(e){e=l(e);for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(16),2,"0");return t},u=function(e){e=l(e);for(var t="",n=0;n<e.length;n++)t+=o(e[n].toString(2),8,"0");return t},d=n.n(a).a.BigInt||Number,h=[d("0x1"),d("0x100"),d("0x10000"),d("0x1000000"),d("0x100000000"),d("0x10000000000"),d("0x1000000000000"),d("0x100000000000000"),d("0x10000000000000000")],f=(i=new Uint16Array([65484]),255===(r=new Uint8Array(i.buffer,i.byteOffset,i.byteLength))[0]||r[0],function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,o=void 0!==a&&a;e=l(e);var s=o?"reduce":"reduceRight",c=(e[s]?e[s]:Array.prototype[s]).call(e,(function(t,n,i){var r=o?i:Math.abs(i+1-e.length);return t+d(n)*h[r]}),d(0));if(r){var u=h[e.length]/d(2)-d(1);(c=d(c))>u&&(c-=u,c-=u,c-=d(2))}return Number(c)}),p=function(e,t){var n=(void 0===t?{}:t).le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=d(e);for(var r,a=(r=e,Math.ceil(function(e){return e.toString(2).length}(r)/8)),o=new Uint8Array(new ArrayBuffer(a)),s=0;s<a;s++){var l=i?s:Math.abs(s+1-o.length);o[l]=Number(e/h[s]&d(255)),e<0&&(o[l]=Math.abs(~o[l]),o[l]-=0===s?1:2)}return o},m=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,l(e));try{return decodeURIComponent(escape(t))}catch(e){}return t},g=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if((t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e}))).length<=1)return l(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=l(e),r.set(e,a),a+=e.byteLength})),r},y=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,o=i.mask,s=void 0===o?[]:o;e=l(e);var c=(t=l(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&c.call(t,(function(t,n){return t===(s[n]?s[n]&e[a+n]:e[a+n])}))}},function(e,t,n){var i=n(11),r=n(29),a=n(21),o=n(22),s=n(30),l=function(e,t,n){var c,u,d,h,f=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,y=p?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,b=p?r:r[t]||(r[t]={}),_=b.prototype||(b.prototype={});for(c in p&&(n=t),n)d=((u=!f&&y&&void 0!==y[c])?y:n)[c],h=v&&u?s(d,i):g&&"function"==typeof d?s(Function.call,d):d,y&&o(y,c,d,e&l.U),b[c]!=d&&a(b,c,h),g&&_[c]!=d&&(_[c]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){(function(t){var i,r=void 0!==t?t:"undefined"!=typeof window?window:{},a=n(376);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=i}).call(this,n(57))},function(e,t,n){var i=n(86);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function r(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(n=>{void 0===e[n]?e[n]=t[n]:i(t[n])&&i(e[n])&&Object.keys(t[n]).length>0&&r(e[n],t[n])})}n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return o}
11));const a={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 o(){const e="undefined"!=typeof document?document:{};return r(e,a),e}const s={document:a,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 l(){const e="undefined"!=typeof window?window:{};return r(e,s),e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,a=String(e);return(n=i[a.toLowerCase()])?n:(n=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=i[t.toLowerCase()])return a===n;if(a=r[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; 12/*! 13 * Programatically add the following 14 */ 15for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var o=t.names=t.title={};for(a in i)o[i[a]]=a;for(var s in r)i[s]=r[s]},function(e,t,n){var i=n(13);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return f})),n.d(t,"g",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return g}));var i=n(0),r=n.n(i),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e},c=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),o.forEach((function(i){var r=a[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var o=e.substring(0,r[1].length),s=e.replace(o,"");
15n.push({type:o,details:s,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n},u=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return c(r.playlists[0].attributes.CODECS)}return null},d=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},h=function(e){if(e&&"string"==typeof e){var t,n=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),i="video";1===n.length&&d(n[0])?i="audio":1===n.length&&(void 0===(t=n[0])&&(t=""),a.text.test(t.trim().toLowerCase()))&&(i="application");var r="mp4";return n.every((function(e){return a.mp4.test(e)}))?r="mp4":n.every((function(e){return a.webm.test(e)}))?r="webm":n.every((function(e){return a.ogg.test(e)}))&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},f=function(e){return void 0===e&&(e=""),r.a.MediaSource&&r.a.MediaSource.isTypeSupported&&r.a.MediaSource.isTypeSupported(h(e))||!1},p=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<s.length;t++){if(a["muxer"+s[t]].test(e))return!0}return!1}))},m="mp4a.40.2",g="avc1.4d400d"},function(e,t,n){var i=n(63)("wks"),r=n(45),a=n(11).Symbol,o="function"==typeof a;(e.exports=function(e){return i[e]||(i[e]=o&&a[e]||(o?a:r)("Symbol."+e))}).store=i},function(e,t,n){var i=n(32),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){e.exports=!n(12)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var i=n(10),r=n(122),a=n(34),o=Object.defineProperty;t.f=n(17)?Object.defineProperty:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var i=n(35);e.exports=function(e){return Object(i(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var i=n(18),r=n(44);e.exports=n(17)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(11),r=n(21),a=n(24),o=n(45)("src"),s=n(177),l=(""+s).split("toString");n(29).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(a(n,"name")||r(n,"name",t)),e[t]!==n&&(c&&(a(n,o)||r(n,o,e[t]?""+e[t]:l.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[o]||s.call(this)}))},function(e,t,n){var i=n(4),r=n(12),a=n(35),o=/"/g,s=function(e,t,n,i){var r=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,""")+'"'),s+">"+r+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),i(i.P+i.F*r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(64),r=n(35);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(65),r=n(44),a=n(25),o=n(34),s=n(24),l=n(122),c=Object.getOwnPropertyDescriptor;t.f=n(17)?c:function(e,t){if(e=a(e),t=o(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(24),r=n(19),a=n(90)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(20);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){"use strict";var i=n(12);e.exports=function(e,t){return!!e&&i((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var i=n(4),r=n(29),a=n(12);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],o={};o[e]=t(n),i(i.S+i.F*a((function(){n(1)})),"Object",o)}},function(e,t,n){var i=n(30),r=n(64),a=n(19),o=n(16),s=n(106);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,f=t||s;return function(t,s,p){for(var m,g,v=a(t),y=r(v),b=i(s,p,3),_=o(y.length),w=0,T=n?f(t,_):l?f(t,0):void 0;_>w;w++)if((h||w in y)&&(g=b(m=y[w],w,v),e))if(n)T[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:T.push(m)}else if(u)return!1;return d?-1:c||u?u:T}}},function(e,t,n){"use strict";if(n(17)){var i=n(40),r=n(11),a=n(12),o=n(4),s=n(82),l=n(114),c=n(30),u=n(51),d=n(44),h=n(21),f=n(53),p=n(32),m=n(16),g=n(150),v=n(47),y=n(34),b=n(24),_=n(59),w=n(13),T=n(19),S=n(103),k=n(48),x=n(27),C=n(49).f,E=n(105),A=n(45),O=n(15),P=n(37),I=n(72),L=n(67
vendor: 3,484 bytes, line 15
15),D=n(108),j=n(61),M=n(77),R=n(50),N=n(107),$=n(139),B=n(18),F=n(26),U=B.f,z=F.f,H=r.RangeError,q=r.TypeError,V=r.Uint8Array,X=Array.prototype,W=l.ArrayBuffer,G=l.DataView,Y=P(0),K=P(2),Q=P(3),J=P(4),Z=P(5),ee=P(6),te=I(!0),ne=I(!1),ie=D.values,re=D.keys,ae=D.entries,oe=X.lastIndexOf,se=X.reduce,le=X.reduceRight,ce=X.join,ue=X.sort,de=X.slice,he=X.toString,fe=X.toLocaleString,pe=O("iterator"),me=O("toStringTag"),ge=A("typed_constructor"),ve=A("def_constructor"),ye=s.CONSTR,be=s.TYPED,_e=s.VIEW,we=P(1,(function(e,t){return Ce(L(e,e[ve]),t)})),Te=a((function(){return 1===new V(new Uint16Array([1]).buffer)[0]})),Se=!!V&&!!V.prototype.set&&a((function(){new V(1).set({})})),ke=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},xe=function(e){if(w(e)&&be in e)return e;throw q(e+" is not a typed array!")},Ce=function(e,t){if(!w(e)||!(ge in e))throw q("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Ae(L(e,e[ve]),t)},Ae=function(e,t){for(var n=0,i=t.length,r=Ce(e,i);i>n;)r[n]=t[n++];return r},Oe=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,i,r,a,o,s=T(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,h=E(s);if(null!=h&&!S(h)){for(o=h.call(s),i=[],t=0;!(a=o.next()).done;t++)i.push(a.value);s=i}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,n=m(s.length),r=Ce(this,n);n>t;t++)r[t]=d?u(s[t],t):s[t];return r},Ie=function(){for(var e=0,t=arguments.length,n=Ce(this,t);t>e;)n[e]=arguments[e++];return n},Le=!!V&&a((function(){fe.call(new V(1))})),De=function(){return fe.apply(Le?de.call(xe(this)):xe(this),arguments)},je={copyWithin:function(e,t){return $.call(xe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(xe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(xe(this),arguments)},filter:function(e){return Ee(this,K(xe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(xe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(xe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){Y(xe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(xe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(xe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ce.apply(xe(this),arguments)},lastIndexOf:function(e){return oe.apply(xe(this),arguments)},map:function(e){return we(xe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(xe(this),arguments)},reduceRight:function(e){return le.apply(xe(this),arguments)},reverse:function(){for(var e,t=xe(this).length,n=Math.floor(t/2),i=0;i<n;)e=this[i],this[i++]=this[--t],this[t]=e;return this},some:function(e){return Q(xe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ue.call(xe(this),e)},subarray:function(e,t){var n=xe(this),i=n.length,r=v(e,i);return new(L(n,n[ve]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===t?i:v(t,i))-r))}},Me=function(e,t){return Ee(this,de.call(xe(this),e,t))},Re=function(e){xe(this);var t=ke(arguments[1],1),n=this.length,i=T(e),r=m(i.length),a=0;if(r+t>n)throw H("Wrong length!");for(;a<r;)this[t+a]=i[a++]},Ne={entries:function(){return ae.call(xe(this))},keys:function(){return re.call(xe(this))},values:function(){return ie.call(xe(this))}},$e=function(e,t){return w(e)&&e[be]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)}
vendor: 4,465 bytes, line 15
15,Be=function(e,t){return $e(e,t=y(t,!0))?d(2,e[t]):z(e,t)},Fe=function(e,t,n){return!($e(e,t=y(t,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?U(e,t,n):(e[t]=n.value,e)};ye||(F.f=Be,B.f=Fe),o(o.S+o.F*!ye,"Object",{getOwnPropertyDescriptor:Be,defineProperty:Fe}),a((function(){he.call({})}))&&(he=fe=function(){return ce.call(this)});var Ue=f({},je);f(Ue,Ne),h(Ue,pe,Ne.values),f(Ue,{slice:Me,set:Re,constructor:function(){},toString:he,toLocaleString:De}),Oe(Ue,"buffer","b"),Oe(Ue,"byteOffset","o"),Oe(Ue,"byteLength","l"),Oe(Ue,"length","e"),U(Ue,me,{get:function(){return this[be]}}),e.exports=function(e,t,n,l){var c=e+((l=!!l)?"Clamped":"")+"Array",d="get"+e,f="set"+e,p=r[c],v=p||{},y=p&&x(p),b=!p||!s.ABV,T={},S=p&&p.prototype,E=function(e,n){U(e,n,{get:function(){return function(e,n){var i=e._d;return i.v[d](n*t+i.o,Te)}(this,n)},set:function(e){return function(e,n,i){var r=e._d;l&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[f](n*t+r.o,i,Te)}(this,n,e)},enumerable:!0})};b?(p=n((function(e,n,i,r){u(e,p,c,"_d");var a,o,s,l,d=0,f=0;if(w(n)){if(!(n instanceof W||"ArrayBuffer"==(l=_(n))||"SharedArrayBuffer"==l))return be in n?Ae(p,n):Pe.call(p,n);a=n,f=ke(i,t);var v=n.byteLength;if(void 0===r){if(v%t)throw H("Wrong length!");if((o=v-f)<0)throw H("Wrong length!")}else if((o=m(r)*t)+f>v)throw H("Wrong length!");s=o/t}else s=g(n),a=new W(o=s*t);for(h(e,"_d",{b:a,o:f,l:o,e:s,v:new G(a)});d<s;)E(e,d++)})),S=p.prototype=k(Ue),h(S,"constructor",p)):a((function(){p(1)}))&&a((function(){new p(-1)}))&&M((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=n((function(e,n,i,r){var a;return u(e,p,c),w(n)?n instanceof W||"ArrayBuffer"==(a=_(n))||"SharedArrayBuffer"==a?void 0!==r?new v(n,ke(i,t),r):void 0!==i?new v(n,ke(i,t)):new v(n):be in n?Ae(p,n):Pe.call(p,n):new v(g(n))})),Y(y!==Function.prototype?C(v).concat(C(y)):C(v),(function(e){e in p||h(p,e,v[e])})),p.prototype=S,i||(S.constructor=p));var A=S[pe],O=!!A&&("values"==A.name||null==A.name),P=Ne.values;h(p,ge,!0),h(S,be,c),h(S,_e,!0),h(S,ve,p),(l?new p(1)[me]==c:me in S)||U(S,me,{get:function(){return c}}),T[c]=p,o(o.G+o.W+o.F*(p!=v),T),o(o.S,c,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*a((function(){v.of.call(p,1)})),c,{from:Pe,of:Ie}),"BYTES_PER_ELEMENT"in S||h(S,"BYTES_PER_ELEMENT",t),o(o.P,c,je),R(c),o(o.P+o.F*Se,c,{set:Re}),o(o.P+o.F*!O,c,Ne),i||S.toString==he||(S.toString=he),o(o.P+o.F*a((function(){new p(1).slice()})),c,{slice:Me}),o(o.P+o.F*(a((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:De}),j[c]=O?A:P,i||O||h(S,pe,P)}}else e.exports=function(){}},function(e,t,n){var i=n(145),r=n(4),a=n(63)("metadata"),o=a.store||(a.store=new(n(148))),s=function(e,t,n){var r=o.get(e);if(!r){if(!n)return;o.set(e,r=new i)}var a=r.get(t);if(!a){if(!n)return;r.set(t,a=new i)}return a};e.exports={store:o,map:s,has:function(e,t,n){var i=s(t,n,!1);return void 0!==i&&i.has(e)},get:function(e,t,n){var i=s(t,n,!1);return void 0===i?void 0:i.get(e)},set:function(e,t,n,i){s(n,i,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),i=[];return n&&n.forEach((function(e,t){i.push(t)})),i},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){r(r.S,"Reflect",e)}}},function(e,t){e.exports=!1},function(e,t,n){var i=n(45)("meta"),r=n(13),a=n(24),o=n(18).f,s=0,l=Object.isExtensible||function(){return!0},c=!n(12)((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[i].w},onFreeze:function(e){return c&&d.NEED&&l(e)&&!a(e,i)&&u(e),e}}},function(e,t,n){var i=n(15)("unscopables"),r=Array.prototype;null==r[i]&&n(21)(r,i,{}),e.exports=function(e){r[i][e]=!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return I})),n.d(t,"c",(function(){return ae})),n.d(t,"d",(function(){return oe}));var i=n(62),r=n(0),a=n.n(r),o=n(87),s=n(162),l=function(e){return!!e&&"object"==typeof e},c=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return"object"!=typeof n||Object.keys(n).forEac
15h((function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):l(t[i])&&l(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]})),t}),{})},u=function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},h=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},f=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},p="INVALID_NUMBER_OF_PERIOD",m="DASH_EMPTY_MANIFEST",g="DASH_INVALID_XML",v="NO_BASE_URL",y="SEGMENT_TIME_UNSPECIFIED",b="UNSUPPORTED_UTC_TIMING_SCHEME",_=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,o=void 0===r?"":r,s=e.range,l=void 0===s?"":s,c=e.indexRange,u=void 0===c?"":c,d={uri:o,resolvedUri:Object(i.a)(n||"",o)};if(l||u){var h,f=(l||u).split("-"),p=a.a.BigInt?a.a.BigInt(f[0]):parseInt(f[0],10),m=a.a.BigInt?a.a.BigInt(f[1]):parseInt(f[1],10);p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),m<Number.MAX_SAFE_INTEGER&&"bigint"==typeof m&&(m=Number(m)),"bigint"==typeof(h="bigint"==typeof m||"bigint"==typeof p?a.a.BigInt(m)-a.a.BigInt(p)+a.a.BigInt(1):m-p+1)&&h<Number.MAX_SAFE_INTEGER&&(h=Number(h)),d.byterange={length:h,offset:p}}return d},w=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},T={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,o=w(e.endNumber),s=t/i;return"number"==typeof o?{start:0,end:o}:"number"==typeof a?{start:0,end:a/s}:{start:0,end:r/s}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,o=e.duration,s=e.periodStart,l=void 0===s?0:s,c=e.minimumUpdatePeriod,u=void 0===c?0:c,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,f=w(e.endNumber),p=(t+n)/1e3,m=i+l,g=p+u-m,v=Math.ceil(g*a/o),y=Math.floor((p-m-h)*a/o),b=Math.floor((p-m)*a/o);return{start:Math.max(0,y),end:"number"==typeof f?f:Math.min(v,b)}}},S=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,o=e.sourceDuration,s=T[t](e),l=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n}(s.start,s.end).map(function(e){return function(t){var n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodStart,o=e.startNumber;return{number:(void 0===o?1:o)+t,duration:n/r,timeline:a,time:t*n}}}(e));if("static"===t){var c=l.length-1,u="number"==typeof a?a:o;l[c].duration=u-n/r*c}return l},k=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,o=void 0===a?"":a,s=e.periodStart,l=e.presentationTime,c=e.number,u=void 0===c?0:c,d=e.duration;if(!t)throw new Error(v);var h=_({baseUrl:t,source:i.sourceURL,range:i.range}),f=_({baseUrl:t,source:t,indexRange:o});if(f.map=h,d){var p=S(e);p.length&&(f.duration=p[0].duration,f.timeline=p[0].timeline)}else r&&(f.duration=r,f.timeline=s);return f.presentationTime=l||s,f.number=u,[f]},x=function(e,t,n){var i,r=e.sidx.map?e.sidx.map:null,o=e.sidx.duration,s=e.timeline||0,l=e.sidx.byterange,c=l.offset+l.length,u=t.timescale,d=t.references.filter((function(e){return 1!==e.referenceType})),h=[],f=e.endList?"static":"dynamic",p=e.sidx.timeline,m=p,g=e.mediaSequence||0;i="bigint"==typeof t.firstOffset?a.a.BigInt(c)+t.firstOffset:c+t.firstOffset;for(var v=0;v<d.length;v++){var y=t.references[v],b=y.referencedSize,_=y.subsegmentDuration,w=void 0;w="bigint"==typeof i?i+a.a.BigInt(b)-a.a.BigInt(1):i+b-1;var T=k({baseUrl:n,timescale:u,timeline:s,periodStart:p,presentationTime:m,number:g,duration:_,sourceDuration:o,indexRange:i+"-"+w,type:f})[0];r&&(T.map=r),h.push(T),i+="bigint"==typeof i?a.a.BigInt(b):b,m+=_/u,g++}return e.segments=h,e},C=["AUDIO","SUBTITLES"],E=function(e){return(t=e,n=function(e){return e.timeline},u(t.reduce((function(e,t){return t.forEach((function(t){e[n(t)]=t})),e}),{}))).sort((function(e,t){return e.timeline>t.timeline?1:-1}));var t,n},A=function(e){var t,n,i=[];return t=e,n=function(e,t,n,r){i=i.concat(e.playlists||[])},C.forEach((function(e){for(var i in t.mediaGroups[e])for(var r in t.mediaGroups[e][i]){var a=t.mediaGroups[e][i][r];n(a,e,i,r)}})),i},O=function(e){var t=e.playlist,n=e.mediaSequence;
15t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},P=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(A(t)),r=n.playlists.concat(A(n));return n.timelineStarts=E([t.timelineStarts,n.timelineStarts]),function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach((function(e){e.discontinuitySequence=f(i,(function(t){return t.timeline===e.timeline}));var n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null}(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=f(n.segments,(function(e){return Math.abs(e.presentationTime-r.presentationTime)<1/60}));if(-1===a)return O({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);n.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),O({playlist:e,mediaSequence:n.segments[a].number})}}))}({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},I=function(e){return e&&e.uri+"-"+(t=e.byterange,n="bigint"==typeof t.offset||"bigint"==typeof t.length?a.a.BigInt(t.offset)+a.a.BigInt(t.length)-a.a.BigInt(1):t.offset+t.length-1,t.offset+"-"+n);var t,n},L=function(e){return u(e.reduce((function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var i;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments);t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t,e[n].attributes.timelineStarts=[];return e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((function(e,t,i){return t[n]&&e.push(i),e}),[])),e}))},D=function(e,t){var n=I(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&x(e,i,e.sidx.resolvedUri),e},j=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=D(e[n],t);return e},M=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.frameRate&&(o.attributes["FRAME-RATE"]=n.frameRate),n.contentProtection&&(o.contentProtection=n.contentProtection),r&&(o.sidx=r),o},R=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},N=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},$=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},B=function(e){return e?Object.keys(e).reduce((function(t,n){var i=e[n];return t.concat(i.playlists)}),[]):[]},F=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,o=e.previousManifest;if(!n.length)return{};var s=n[0].attributes,l=s.sourceDuration,c=s.type,u=s.suggestedPresentationDelay,d=s.minimumUpdatePeriod,h=L(n.filter(R)).map(M),p=L(n.filter(N)),m=L(n.filter($)),g=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:j(h,a)};d>=0&&(v.minimumUpdatePeriod=1e3*d),i&&(v.locations=i),"dynamic"===c&&(v.suggestedPresentationDelay=u);var y,b,_=0===v.playlists.length,w=p.length?function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce((function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",s=r.attributes.label||"main";if(o&&!r.attributes.label){var l=a?" ("+a+")":"";s=""+r.attributes.lang+l}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=D(function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,o=e.mediaSequence,s=e.discontinuitySequence,l=e.discontinuityStarts,c={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs}
15,n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:s,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:o,segments:r};return i.contentProtection&&(c.contentProtection=i.contentProtection),a&&(c.sidx=a),t&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(r,n),t);return e[s].playlists.push(c),void 0===i&&"main"===a&&((i=r).default=!0),e}),{});i||(r[Object.keys(r)[0]].default=!0);return r}(p,a,_):null,T=m.length?function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(D(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,o=e.discontinuitySequence;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var s=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(s.CODECS=n.codecs),{attributes:s,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:r,segments:i}}(n),t)),e}),{})}(m,a):null,S=h.concat(B(w),B(T)),k=S.map((function(e){return e.timelineStarts}));return v.timelineStarts=E(k),y=S,b=v.timelineStarts,y.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=f(b,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))})),w&&(v.mediaGroups.AUDIO.audio=w),T&&(v.mediaGroups.SUBTITLES.subs=T),g.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=g.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):e}),{})),o?P({oldManifest:o,newManifest:v}):v},U=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,l=e.periodStart,c=void 0===l?0:l,u=e.minimumUpdatePeriod,d=(i+r)/1e3+(void 0===u?0:u)-(a+c);return Math.ceil((d*s-t)/n)},z=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,l=e.timescale,c=void 0===l?1:l,u=e.startNumber,d=void 0===u?1:u,h=e.periodStart,f=[],p=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,b=g.t||0;p<0&&(p=b),b&&b>p&&(p=b);var _=void 0;if(y<0){var w=m+1;_=w===t.length?"dynamic"===n&&r>0&&o.indexOf("$Number$")>0?U(e,p,v):(s*c-p)/v:(t[w].t-p)/v}else _=y+1;for(var T=d+f.length+_,S=d+f.length;S<T;)f.push({number:S,duration:v/c,time:p,timeline:h}),p+=v,S++}return f},H=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,q=function(e,t){return e.replace(H,function(e){return function(t,n,i,r){if("$$"===t)return"$";if(void 0===e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}}(t))},V=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,a=void 0===r?{sourceURL:"",range:""}:r,o=_({baseUrl:e.baseUrl,source:q(a.sourceURL,n),range:a.range});return function(e,t){return e.duration||t?e.duration?S(e):z(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t).map((function(t){n.Number=t.number,n.Time=t.time;var r=q(e.media||"",n),a=e.timescale||1,s=e.presentationTimeOffset||0,l=e.periodStart+(t.time-s)/a;return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:Object(i.a)(e.baseUrl||"",r),map:o,number:t.number,presentationTime:l}}))},X=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(y);var o,s=r.map((function(t){return function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=_({baseUrl:n,source:r.sourceURL,range:r.range}),o=_({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o}(e,t)}));return n&&(o=S(e)),t&&(o=z(e,t)),o.map((function(t,n){if(s[n]){var i=s[n],r=e.timescale||1,o=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-o)/r,i}})).filter((function(e){return e}))},W=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=V,t=c(i,r.template)):r.base?(n=k,t=c(i,r.base)):r.list&&(n=X,t=c(i,r.list));var a={attributes:i};if(!n)return a;var o=n(t,r.segmentTimeline);if(t.duration){var s=t,l=s.duration,u=s.timescale,d=void 0===u?1:u;t.duration=l/d}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,r.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},G=function(e,t){return h(e.childNodes).filter((function(e){return e.tagName===t}))},Y=function(e){return e.textContent.trim()},K=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),i=n[0],r=n[1],a=n[2],o=n[3],s=n[4],l=n[5];
15return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(l||0)},Q={mediaPresentationDuration:function(e){return K(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return K(e)},suggestedPresentationDelay:function(e){return K(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return K(e)},start:function(e){return K(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return function(e){return parseFloat(e.split("/").reduce((function(e,t){return e/t})))}(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?K(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},J=function(e){return e&&e.attributes?h(e.attributes).reduce((function(e,t){var n=Q[t.name]||Q.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},Z={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},ee=function(e,t){return t.length?d(e.map((function(e){return t.map((function(t){return Object(i.a)(e,Y(t))}))}))):e},te=function(e){var t=G(e,"SegmentTemplate")[0],n=G(e,"SegmentList")[0],i=n&&G(n,"SegmentURL").map((function(e){return c({tag:"SegmentURL"},J(e))})),r=G(e,"SegmentBase")[0],a=n||t,o=a&&G(a,"SegmentTimeline")[0],s=n||r||t,l=s&&G(s,"Initialization")[0],u=t&&J(t);u&&l?u.initialization=l&&J(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var d={template:u,segmentTimeline:o&&G(o,"S").map((function(e){return J(e)})),list:n&&c(J(n),{segmentUrls:i,initialization:J(l)}),base:r&&c(J(r),{initialization:J(l)})};return Object.keys(d).forEach((function(e){d[e]||delete d[e]})),d},ne=function(e,t,n){return function(i){var r,a=J(i),s=ee(t,G(i,"BaseURL")),l=G(i,"Role")[0],u={role:J(l)},h=c(e,a,u),f=G(i,"Accessibility")[0],p="urn:scte:dash:cc:cea-608:2015"===(r=J(f)).schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}})):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})):void 0;p&&(h=c(h,{captionServices:p}));var m=G(i,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();h=c(h,{label:g})}var v=G(i,"ContentProtection").reduce((function(e,t){var n=J(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=Z[n.schemeIdUri];if(i){e[i]={attributes:n};var r=G(t,"cenc:pssh")[0];if(r){var a=Y(r);e[i].pssh=a&&Object(o.a)(a)}}return e}),{});Object.keys(v).length&&(h=c(h,{contentProtection:v}));var y=te(i),b=G(i,"Representation"),_=c(n,y);return d(b.map(function(e,t,n){return function(i){var r=G(i,"BaseURL"),a=ee(t,r),o=c(e,J(i)),s=te(i);return a.map((function(e){return{segmentInfo:c(n,s),attributes:c(o,{baseUrl:e})}}))}}(h,s,_)))}},ie=function(e,t){return function(n,i){var r=ee(t,G(n.node,"BaseURL")),a=c(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var o=G(n.node,"AdaptationSet"),s=te(n.node);
15return d(o.map(ne(a,r,s)))}},re=function(e){if(""===e)throw new Error(m);var t,n,i=new s.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(g);return n},ae=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,l=void 0===s?0:s,c=G(e,"Period");if(!c.length)throw new Error(p);var u=G(e,"Location"),h=J(e),f=ee([r],G(e,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=l,u.length&&(h.locations=u.map(Y));var m=[];return c.forEach((function(e,t){var n=J(e),i=m[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==i?null:0}({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:h.type}),m.push({node:e,attributes:n})})),{locations:h.locations,representationInfo:d(m.map(ie(h,f)))}}(re(e),t),i=n.representationInfo.map(W);return F({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},oe=function(e){return function(e){var t=G(e,"UTCTiming")[0];if(!t)return null;var n=J(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.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":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.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(b)}return n}(re(e))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(124),r=n(91);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(32),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},function(e,t,n){var i=n(10),r=n(125),a=n(91),o=n(90)("IE_PROTO"),s=function(){},l=function(){var e,t=n(88)("iframe"),i=a.length;for(t.style.display="none",n(92).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),l=e.F;i--;)delete l.prototype[a[i]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(124),r=n(91).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){"use strict";var i=n(11),r=n(18),a=n(17),o=n(15)("species");e.exports=function(e){var t=i[e];a&&t&&!t[o]&&r.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(30),r=n(137),a=n(103),o=n(10),s=n(16),l=n(105),c={},u={};(t=e.exports=function(e,t,n,d,h){var f,p,m,g,v=h?function(){return e}:l(e),y=i(n,d,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(f=s(e.length);f>b;b++)if((g=t?y(o(p=e[b])[0],p[1]):y(e[b]))===c||g===u)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=r(m,y,p.value,t))===c||g===u)return g}).BREAK=c,t.RETURN=u},function(e,t,n){var i=n(22);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){var i=n(13);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";(function(e){for(var i,r=n(0),a=n.n(r),o=n(5),s=n.n(o),l=n(28),c=n.n(l),u=n(9),d=n.n(u),h=n(8),f=n.n(h),p=n(6),m=n.n(p),g=n(160),v=n.n(g),y=n(118),b=n.n(y),_=n(119),w=n.n(_),T=n(116),S=n.n(T),k=n(161),x=n.n(k),C=n(62),E=n(168),A=n(14),O=n(121),P=n(3),I=n(43),L=n(163),D=n.n(L),j=n(56),M=n(71),R=n(69),N=n(164),$=n.n(N),B={},F=function(e,t){return B[e]=B[e]||[],t&&(B[e]=B[e].concat(t)),B[e]},U=function(e,t){var n=F(e).indexOf(t);return!(n<=-1)&&(B[e]=B[e].slice(),B[e].splice(n,1),!0)},z={prefixed:!0},H=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],q=H[0],V=0;V<H.length;V++)if(H[V][1]in s.a){i=H[V];break}if(i){for(var X=0;X<i.length;X++)z[q[X]]=i[X];z.prefixed=i[0]!==q[0]}var W=[];var G=function e(t){var n,i="info",r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n("log",i,t)};return n=function(e,t){return function(n,i,r){var o=t.levels[i],s=new RegExp("^("+o+")$");if("log"!==n&&r.unshift(n.toUpperCase()+":"),r.unshift(e+":"),W){W.push([].concat(r));var l=W.length-1e3;W.splice(0,l>0?l:0)}if(a.a.console){var c=a.a.console[n];c||"debug"!==n||(c=a.a.console.info||a.a.console.log),c&&o&&s.test(n)&&c[Array.isArray(r)?"apply":"call"](a.a.console,r)}}}(t,r),r.createLogger=function(n){return e(t+": "+n)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');i=e}return i},(r.history=function(){return W?[].concat(W):[]}).filter=function(e){return(W||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},r.history.clear=function(){W&&(W.length=0)},r.history.disable=function(){null!==W&&(W.length=0,W=null)},r.history.enable=function(){null===W&&(W=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("error",i,t)},r.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("warn",i,t)},r.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("debug",i,t)},r}("VIDEOJS"),Y=G.createLogger,K=Object.prototype.toString,Q=function(e){return ee(e)?Object.keys(e):[]};function J(e,t){Q(e).forEach((function(n){return t(e[n],n)}))}function Z(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?c.a.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&J(t,(function(t,n){e[n]=t}))})),e)}function ee(e){return!!e&&"object"==typeof e}
15function te(e){return ee(e)&&"[object Object]"===K.call(e)&&e.constructor===Object}function ne(e,t){if(!e||!t)return"";if("function"==typeof a.a.getComputedStyle){var n;try{n=a.a.getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var ie,re=a.a.navigator&&a.a.navigator.userAgent||"",ae=/AppleWebKit\/([\d.]+)/i.exec(re),oe=ae?parseFloat(ae.pop()):null,se=/iPod/i.test(re),le=(ie=re.match(/OS (\d+)_/i))&&ie[1]?ie[1]:null,ce=/Android/i.test(re),ue=function(){var e=re.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),de=ce&&ue<5&&oe<537,he=/Firefox/i.test(re),fe=/Edg/i.test(re),pe=!fe&&(/Chrome/i.test(re)||/CriOS/i.test(re)),me=function(){var e=re.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),ge=function(){var e=/MSIE\s(\d+)\.\d/.exec(re),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(re)&&/rv:11.0/.test(re)&&(t=11),t}(),ve=/Safari/i.test(re)&&!pe&&!ce&&!fe,ye=/Windows/i.test(re),be=Boolean(Ee()&&("ontouchstart"in a.a||a.a.navigator.maxTouchPoints||a.a.DocumentTouch&&a.a.document instanceof a.a.DocumentTouch)),_e=/iPad/i.test(re)||ve&&be&&!/iPhone/i.test(re),we=/iPhone/i.test(re)&&!_e,Te=we||_e||se,Se=(ve||Te)&&!pe,ke=Object.freeze({__proto__:null,IS_IPOD:se,IOS_VERSION:le,IS_ANDROID:ce,ANDROID_VERSION:ue,IS_NATIVE_ANDROID:de,IS_FIREFOX:he,IS_EDGE:fe,IS_CHROME:pe,CHROME_VERSION:me,IE_VERSION:ge,IS_SAFARI:ve,IS_WINDOWS:ye,TOUCH_ENABLED:be,IS_IPAD:_e,IS_IPHONE:we,IS_IOS:Te,IS_ANY_SAFARI:Se});function xe(e){return"string"==typeof e&&Boolean(e.trim())}function Ce(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Ee(){return s.a===a.a.document}function Ae(e){return ee(e)&&1===e.nodeType}function Oe(){try{return a.a.parent!==a.a.self}catch(e){return!0}}function Pe(e){return function(t,n){if(!xe(t))return s.a[e](null);xe(n)&&(n=s.a.querySelector(n));var i=Ae(n)?n:s.a;return i[e]&&i[e](t)}}function Ie(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=s.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(G.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?Le(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Qe(r,i),r}function Le(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function De(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function je(e,t){return Ce(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function Me(e,t){return e.classList?e.classList.add(t):je(e,t)||(e.className=(e.className+" "+t).trim()),e}function Re(e,t){return e?(e.classList?e.classList.remove(t):(Ce(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(G.warn("removeClass was called with an element that doesn't exist"),null)}function Ne(e,t,n){var i=je(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?Me(e,t):Re(e,t),e}function $e(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Be(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,o=i[r].value;"boolean"!=typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function Fe(e,t){return e.getAttribute(t)}function Ue(e,t,n){e.setAttribute(t,n)}function ze(e,t){e.removeAttribute(t)}function He(){s.a.body.focus(),s.a.onselectstart=function(){return!1}}function qe(){s.a.onselectstart=function(){return!0}}function Ve(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(ne(e,"height"))),n.width||(n.width=parseFloat(ne(e,"width"))),n}}function Xe(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==s.a[z.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function We(e,t){var n={x:0,y:0};if(Te)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=ne(i,"transform");
15if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var o=r.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}i=i.parentNode}var s={},l=Xe(t.target),c=Xe(e),u=c.width,d=c.height,h=t.offsetY-(c.top-l.top),f=t.offsetX-(c.left-l.left);return t.changedTouches&&(f=t.changedTouches[0].pageX-c.left,h=t.changedTouches[0].pageY+c.top,Te&&(f-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/d)),s.x=Math.max(0,Math.min(1,f/u)),s}function Ge(e){return ee(e)&&3===e.nodeType}function Ye(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function Ke(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),Ae(e)||Ge(e)?e:"string"==typeof e&&/\S/.test(e)?s.a.createTextNode(e):void 0})).filter((function(e){return e}))}function Qe(e,t){return Ke(t).forEach((function(t){return e.appendChild(t)})),e}function Je(e,t){return Qe(Ye(e),t)}function Ze(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var et,tt=Pe("querySelector"),nt=Pe("querySelectorAll"),it=Object.freeze({__proto__:null,isReal:Ee,isEl:Ae,isInFrame:Oe,createEl:Ie,textContent:Le,prependTo:De,hasClass:je,addClass:Me,removeClass:Re,toggleClass:Ne,setAttributes:$e,getAttributes:Be,getAttribute:Fe,setAttribute:Ue,removeAttribute:ze,blockTextSelection:He,unblockTextSelection:qe,getBoundingClientRect:Ve,findPosition:Xe,getPointerPosition:We,isTextNode:Ge,emptyEl:Ye,normalizeContent:Ke,appendContent:Qe,insertContent:Je,isSingleLeftClick:Ze,$:tt,$$:nt}),rt=!1,at=function(){if(!1!==et.options.autoSetup){var e=Array.prototype.slice.call(s.a.getElementsByTagName("video")),t=Array.prototype.slice.call(s.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(s.a.getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var o=i[r];if(!o||!o.getAttribute){ot(1);break}void 0===o.player&&null!==o.getAttribute("data-setup")&&et(o)}else rt||ot(1)}};function ot(e,t){Ee()&&(t&&(et=t),a.a.setTimeout(at,e))}function st(){rt=!0,a.a.removeEventListener("load",st)}Ee()&&("complete"===s.a.readyState?st():a.a.addEventListener("load",st));var lt,ct=function(e){var t=s.a.createElement("style");return t.className=e,t},ut=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},dt=3;function ht(){return dt++}a.a.WeakMap||(lt=function(){function e(){this.vdata="vdata"+Math.floor(a.a.performance&&a.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||ht();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];G("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var ft,pt=a.a.WeakMap?new WeakMap:new lt;function mt(e,t){if(pt.has(e)){var n=pt.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&pt.delete(e)}}function gt(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function vt(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||a.a.event;for(var r in e={},i)"layerX"!==r&&"layerY"!==r&&"keyLocation"!==r&&"webkitMovementX"!==r&&"webkitMovementY"!==r&&"path"!==r&&("returnValue"===r&&i.preventDefault||(e[r]=i[r]));if(e.target||(e.target=e.srcElement||s.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var o=s.a.documentElement,l=s.a.body;e.pageX=e.clientX+(o&&o.scrollLeft||l&&l.scrollLeft||0)-(o&&o.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||l&&l.scrollTop||0)-(o&&o.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var yt=["touchstart","touchmove"];function bt(e,t,n){if(Array.isArray(t))return gt(bt,e,t,n);pt.has(e)||pt.set(e,{});var i=pt.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=ht()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=vt(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),o=0,s=a.length;o<s&&!t.isImmediatePropagationStopped();o++)try{a[o].call(e,t,n)}catch(e){G.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){var r=!1;(function(){if("boolean"!=typeof ft){ft=!1;try{var e=Object.defineProperty({},"passive",{get:function(){ft=!0}});a.a.addEventListener("test",null,e),a.a.removeEventListener("test",null,e)}catch(e){}}return ft})()&&yt.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function _t(e,t,n){if(pt.has(e)){var i=pt.get(e);if(i.handlers){if(Array.isArray(t))return gt(_t,e,t,n);var r=function(e,t){i.handlers[t]=[],mt(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);mt(e,t)}else r(e,t)}else for(var s in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},s)&&r(e,s)}}}function wt(e,t,n){var i=pt.has(e)?pt.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=vt(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)wt.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){pt.has(t.target)||pt.set(t.target,{});var a=pt.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function Tt(e,t,n){if(Array.isArray(t))return gt(Tt,e,t,n);var i=function i(){_t(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||ht(),bt(e,t,i)}function St(e,t,n){var i=function i(){_t(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||ht(),bt(e,t,i)}var kt,xt=Object.freeze({__proto__:null,fixEvent:vt,on:bt,off:_t,trigger:wt,one:Tt,any:St}),Ct=function(e,t,n){t.guid||(t.guid=ht());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},Et=function(e,t){var n=a.a.performance.now();return function(){var i=a.a.performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)}},At=function(){};At.prototype.allowedEvents_={},At.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},bt(this,e,t),this.addEventListener=n},At.prototype.addEventListener=At.prototype.on,At.prototype.off=function(e,t){_t(this,e,t)},At.prototype.removeEventListener=At.prototype.off,At.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Tt(this,e,t),this.addEventListener=n},At.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},St(this,e,t),this.addEventListener=n},At.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=vt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),wt(this,e)},At.prototype.dispatchEvent=At.prototype.trigger,At.prototype.queueTrigger=function(e){var t=this;kt||(kt=new Map);var n=e.type||e,i=kt.get(this);i||(i=new Map,kt.set(this,i));var r=i.get(n);i.delete(n),a.a.clearTimeout(r);var o=a.a.setTimeout((function(){i.delete(n),0===i.size&&(i=null,kt.delete(t)),t.trigger(e)}),0);i.set(n,o)};var Ot=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Pt=function(e){return e instanceof At||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},It=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Lt=function(e,t,n){if(!e||!e.nodeName&&!Pt(e))throw new Error("Invalid target for "+Ot(t)+"#"+n+"; must be a DOM node or evented object.")},Dt=function(e,t,n){if(!It(e))throw new Error("Invalid event type for "+Ot(t)+"#"+n+"; must be a non-empty string or array.")},jt=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+Ot(t)+"#"+n+"; must be a function.")},Mt=function(e,t,n){var i,r,a,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),Lt(i,e,n),Dt(r,e,n),jt(a,e,n),{isTargetingSelf:o,target:i,type:r,listener:a=Ct(e,a)}},Rt=function(e,t,n,i){Lt(e,e,t),e.nodeName?xt[t](e,n,i):e[t](n,i)},Nt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Mt(this,n,"on"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;if(Rt(o,"on",s,l),!a){var c=function(){return e.off(o,s,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,Rt(this,"on","dispose",c),Rt(o,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Mt(this,n,"one"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;if(a)Rt(o,"one",s,l);else{var c=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};
15c.guid=l.guid,Rt(o,"one",s,c)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Mt(this,n,"any"),a=r.isTargetingSelf,o=r.target,s=r.type,l=r.listener;if(a)Rt(o,"any",s,l);else{var c=function t(){e.off(o,s,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};c.guid=l.guid,Rt(o,"any",s,c)}},off:function(e,t,n){if(!e||It(e))_t(this.eventBusEl_,e,t);else{var i=e,r=t;Lt(i,this,"off"),Dt(r,this,"off"),jt(n,this,"off"),n=Ct(this,n),this.off("dispose",n),i.nodeName?(_t(i,r,n),_t(i,"dispose",n)):Pt(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){Lt(this.eventBusEl_,this,"trigger");var n=e&&"string"!=typeof e?e.type:e;if(!It(n)){var i="Invalid event type for "+Ot(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||G).error(i)}return wt(this.eventBusEl_,e,t)}};function $t(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=Ie("span",{className:"vjs-event-bus"});return Z(e,Nt),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&pt.has(e)&&pt.delete(e)})),a.a.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var Bt={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),J(e,(function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e})),t&&Pt(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Ft(e,t){return Z(e,Bt),e.state=Z({},e.state,t),"function"==typeof e.handleStateChanged&&Pt(e)&&e.on("statechanged",e.handleStateChanged),e}var Ut=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},zt=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))};function Ht(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&J(t,(function(t,n){te(t)?(te(e[n])||(e[n]={}),e[n]=Ht(e[n],t)):e[n]=t}))})),e}var qt=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Vt=a.a.Map?a.a.Map:qt,Xt=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Wt=a.a.Set?a.a.Set:Xt,Gt=function(){function e(e,t,n){var i=this;if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Ht({},this.options_),t=this.options_=Ht(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+ht()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((function(e){return i.addClass(e)})),!1!==t.evented&&($t(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Ft(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Wt,this.setIntervalIds_=new Wt,this.rafIds_=new Wt,this.namedRafs_=new Vt,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Ht(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return Ie(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],o=i&&i.split("-")[0],s=r&&r[o],l=n;return a&&a[e]?l=a[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){a=zt(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!=typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(a=a||r.name&&zt(r.name()))&&(this.childNameIndex_[a]=r,this.childNameIndex_[Ut(a)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[i+1]&&(this.children_[i+1].el_?l=this.children_[i+1].el_:Ae(this.children_[i+1])&&(l=this.children_[i+1])),this.contentEl().insertBefore(r.el(),l)}return r},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[zt(e.name())]=null,this.childNameIndex_[Ut(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||zt(t.name));return n&&!a.isTech(n)}
15)).forEach((function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return tt(e,t||this.contentEl())},t.$$=function(e,t){return nt(e,t||this.contentEl())},t.hasClass=function(e){return je(this.el_,e)},t.addClass=function(e){Me(this.el_,e)},t.removeClass=function(e){Re(this.el_,e)},t.toggleClass=function(e,t){Ne(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Fe(this.el_,e)},t.setAttribute=function(e,t){Ue(this.el_,e,t)},t.removeAttribute=function(e){ze(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+zt(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=ne(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+zt(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(d.a.isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=a.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(e=!1)}}));var i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){(n=null,!0===e)&&(a.a.performance.now()-t<200&&(i.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Ct(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=Ct(this,e),this.clearTimersOnDispose_(),n=a.a.setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),a.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=Ct(this,e),this.clearTimersOnDispose_();var n=a.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),a.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Ct(this,e),t=a.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Ct(this,t);var i=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),a.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
15h((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!o)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=zt(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,c=Object.keys(l);if(l&&c.length>0&&c.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Ut(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function Yt(e,t,n,i){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,i,n.length-1),n[i][t]}function Kt(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Yt.bind(null,"start",0,e),end:Yt.bind(null,"end",1,e)},a.a.Symbol&&a.a.Symbol.iterator&&(t[a.a.Symbol.iterator]=function(){return(e||[]).values()}),t}function Qt(e,t){return Array.isArray(e)?Kt(e):void 0===e||void 0===t?Kt():Kt([[e,t]])}function Jt(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=Qt(0,0));for(var a=0;a<e.length;a++)n=e.start(a),(i=e.end(a))>t&&(i=t),r+=i-n;return r/t}function Zt(e){if(e instanceof Zt)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:ee(e)&&("number"==typeof e.code&&(this.code=e.code),Z(this,e)),this.message||(this.message=Zt.defaultMessages[this.code]||"")}Gt.prototype.supportsRaf_="function"==typeof a.a.requestAnimationFrame&&"function"==typeof a.a.cancelAnimationFrame,Gt.registerComponent("Component",Gt),Zt.prototype.code=0,Zt.prototype.message="",Zt.prototype.status=null,Zt.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Zt.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var en=0;en<Zt.errorTypes.length;en++)Zt[Zt.errorTypes[en]]=en,Zt.prototype[Zt.errorTypes[en]]=en;function tn(e){return null!=e&&"function"==typeof e.then}function nn(e){tn(e)&&e.then(null,(function(e){}))}var rn=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,i){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})},an=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track}));return Array.prototype.map.call(t,(function(e){var t=rn(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(rn))},on=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},sn=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=Ie("div",{className:"vjs-modal-dialog-content"},{role:"document"}),i.descEl_=Ie("p",{className:"vjs-modal-dialog-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),Le(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}m()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
vendor: 7,090 bytes, line 15
15n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Je(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),Ye(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=s.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),d.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(d.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}s.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof a.a.HTMLAnchorElement||e instanceof a.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof a.a.HTMLInputElement||e instanceof a.a.HTMLSelectElement||e instanceof a.a.HTMLTextAreaElement||e instanceof a.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof a.a.HTMLIFrameElement||e instanceof a.a.HTMLObjectElement||e instanceof a.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(Gt);sn.prototype.options_={pauseOnOpen:!0,temporary:!0},Gt.registerComponent("ModalDialog",sn);var ln=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(f()(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}m()(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},Pt(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(At);for(var cn in ln.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},ln.prototype.allowedEvents_)ln.prototype["on"+cn]=null;var un=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},dn=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){un(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}m()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&un(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,un(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(ln),hn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},fn=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){hn(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(f()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}m()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&hn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,hn(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(ln),pn=function(e){function t(){return e.apply(this,arguments)||this}m()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(ln),mn=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
15),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),gn=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),vn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},yn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},bn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},_n={disabled:"disabled",hidden:"hidden",showing:"showing"},wn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+ht(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty(f()(n),e,{get:function(){return i[e]},set:function(){}})};for(var o in i)a(o);return Object.defineProperty(f()(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return m()(t,e),t}(At),Tn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=s.a.createElement("a");n.href=e;for(var i={},r=0;r<t.length;r++)i[t[r]]=n[t[r]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=a.a.location.protocol),i.host||(i.host=a.a.location.host),i},Sn=function(e){if(!e.match(/^https?:\/\//)){var t=s.a.createElement("a");t.href=e,e=t.href}return e},kn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},xn=function(e,t){void 0===t&&(t=a.a.location);var n=Tn(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},Cn=Object.freeze({__proto__:null,parseUrl:Tn,getAbsoluteURL:Sn,getFileExtension:kn,isCrossOrigin:xn}),En=function(e,t){var n=new a.a.WebVTT.Parser(a.a,a.a.vttjs,a.a.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(a.a.console&&a.a.console.groupCollapsed&&a.a.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return G.error(e)})),a.a.console&&a.a.console.groupEnd&&a.a.console.groupEnd()),n.flush()},An=function(e,t){var n={uri:e},i=xn(e);i&&(n.cors=i);var r="use-credentials"===t.tech_.crossOrigin();r&&(n.withCredentials=r),b()(n,Ct(this,(function(e,n,i){if(e)return G.error(e,n);t.loaded_=!0,"function"!=typeof a.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return En(i,t);G.error("vttjs failed to load, stopping trying to process "+t.src)})):En(i,t)})))},On=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Ht(t,{kind:bn[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=_n[i.mode]||"disabled",a=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new gn(n.cues_),s=new gn(n.activeCues_),l=!1;n.timeupdateHandler=Ct(f()(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));return n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==r&&n.startTracking(),Object.defineProperties(f()(n),{default:{get:function(){return a}
15,set:function(){}},mode:{get:function(){return r},set:function(e){_n[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||An(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(l=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&An(n.src,f()(n))):n.loaded_=!0,n}m()(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(e){var t=e;if(!("getCueAsHTML"in t)){for(var n in t=new a.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),r=0;r<i.length;r++)i[r]!==this&&i[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(wn);On.prototype.allowedEvents_={cuechange:"cuechange"};var Pn=function(e){function t(t){var n;void 0===t&&(t={});var i=Ht(t,{kind:yn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(f()(n),"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return m()(t,e),t}(wn),In=function(e){function t(t){var n;void 0===t&&(t={});var i=Ht(t,{kind:vn[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(f()(n),"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return m()(t,e),t}(wn),Ln=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new On(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(f()(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=0,r.addEventListener("loadeddata",(function(){i=2,n.trigger({type:"load",target:f()(n)})})),n}return m()(t,e),t}(At);Ln.prototype.allowedEvents_={load:"load"},Ln.NONE=0,Ln.LOADING=1,Ln.LOADED=2,Ln.ERROR=3;var Dn={audio:{ListClass:dn,TrackClass:Pn,capitalName:"Audio"},video:{ListClass:fn,TrackClass:In,capitalName:"Video"},text:{ListClass:pn,TrackClass:On,capitalName:"Text"}};Object.keys(Dn).forEach((function(e){Dn[e].getterName=e+"Tracks",Dn[e].privateName=e+"Tracks_"}));var jn={remoteText:{ListClass:pn,TrackClass:On,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:mn,TrackClass:Ln,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Mn=c()({},Dn,jn);jn.names=Object.keys(jn),Dn.names=Object.keys(Dn),Mn.names=[].concat(jn.names).concat(Dn.names);var Rn=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1}
15)),Mn.names.forEach((function(e){var n=Mn[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new Mn.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}m()(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ct(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Qt(0,0)},n.bufferedPercent=function(){return Jt(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Dn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;
15(e=[].concat(e)).forEach((function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Zt(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Qt(0,0):Qt()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Dn.names.forEach((function(t){var n=Dn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},n.addWebVttScript_=function(){var e=this;if(!a.a.WebVTT)if(s.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&te(w.a)&&Object.keys(w.a).length>0)return void this.trigger("vttjsloaded");var t=s.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),a.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",(function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",a)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var o=new Mn.text.TrackClass(r);return a.addTrack(o),o}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Ht(e,{tech:this});return new jn.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(G.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||a.a.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=ht();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){t.queuedHanders_.has(n)&&(t.queuedH
15anders_.delete(n),e())}))):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=zt(e),t.techs_[e]=n,t.techs_[Ut(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=zt(e),a.a&&a.a.videojs&&a.a.videojs[e]?(G.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.a.videojs[e]):void 0)},t}(Gt);Mn.names.forEach((function(e){var t=Mn[e];Rn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Rn.prototype.featuresVolumeControl=!0,Rn.prototype.featuresMuteControl=!0,Rn.prototype.featuresFullscreenResize=!1,Rn.prototype.featuresPlaybackRate=!1,Rn.prototype.featuresProgressEvents=!1,Rn.prototype.featuresSourceset=!1,Rn.prototype.featuresTimeupdateEvents=!1,Rn.prototype.featuresNativeTextTracks=!1,Rn.prototype.featuresVideoFrameCallback=!1,Rn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;
vendor: 7,303 bytes, line 15
15i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:G.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Gt.registerComponent("Tech",Rn),Rn.registerTech("Tech",Rn),Rn.defaultTechOrder_=[];var Nn={},$n={},Bn={};function Fn(e,t,n){e.setTimeout((function(){return function e(t,n,i,r,a,o){void 0===t&&(t={});void 0===n&&(n=[]);void 0===a&&(a=[]);void 0===o&&(o=!1);var s=n,l=s[0],c=s.slice(1);if("string"==typeof l)e(t,Nn[l],i,r,a,o);else if(l){var u=function(e,t){var n=$n[e.id()],i=null;if(null==n)return i=t(e),$n[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],o=a[0],s=a[1];o===t&&(i=s)}null===i&&(i=t(e),n.push([t,i]));return i}(r,l);if(!u.setSource)return a.push(u),e(t,c,i,r,a,o);u.setSource(Z({},t),(function(n,s){if(n)return e(t,c,i,r,a,o);a.push(u),e(s,t.type===s.type?c:Nn[s.type],i,r,a,o)}))}else c.length?e(t,c,i,r,a,o):o?i(t,a):e(t,Nn["*"],i,r,a,!0)}(t,Nn[t.type],n,e)}),1)}function Un(e,t,n,i){void 0===i&&(i=null);var r="call"+zt(n),a=e.reduce(Vn(r),i),o=a===Bn,s=o?null:t[n](a);return function(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}(e,n,s,o),s}var zn={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Hn={setCurrentTime:1,setMuted:1,setVolume:1},qn={play:1,pause:1};function Vn(e){return function(t,n){return t===Bn?Bn:n[e]?n[e](t):t}}var Xn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Wn=function(e){void 0===e&&(e="");var t=kn(e);return Xn[t.toLowerCase()]||""};function Gn(e){if(!e.type){var t=Wn(e.src);t&&(e.type=t)}return e}var Yn=function(e){function t(t,n,i){var r,a=Ht({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,s=n.playerOptions.techOrder;o<s.length;o++){var l=zt(s[o]),c=Rn.getTech(l);if(l||(c=Gt.getComponent(l)),c&&c.isSupported()){t.loadTech_(l);break}}return r}return m()(t,e),t}(Gt);Gt.registerComponent("MediaLoader",Yn);var Kn=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}m()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=Z({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&G.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=Z({role:"button"},n),this.tabIndex_=t.tabIndex;var i=Ie(e,t,n);return i.appendChild(Ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=Ie("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,Le(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){d.a.isEventKey(t,"Space")||d.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Gt);Gt.registerComponent("ClickableComponent",Kn);var Qn=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}m()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return Ie("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(ge||fe)&&t||this.player_.tech(!0).focus(),this.player_.paused()?nn(this.player_.play()):this.player_.pause()}},t}(Kn);Gt.registerComponent("PosterImage",Qn);var Jn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
15script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Zn(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function ei(e,t,n){try{e.style[t]=n}catch(e){return}}var ti=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var o=function(e){return r.updateDisplay(e)};return t.on("loadstart",(function(e){return r.toggleDisplay(e)})),t.on("texttrackchange",o),t.on("loadedmetadata",(function(e){return r.preselectTrack(e)})),t.ready(Ct(f()(r),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",o),t.on("playerresize",o),a.a.addEventListener("orientationchange",o),t.on("dispose",(function(){return a.a.removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),r}m()(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,o=0;o<r.length;o++){var s=r[o];a&&a.enabled&&a.language&&a.language===s.language&&s.kind in i?s.kind===a.kind?n=s:n||(n=s):a&&!a.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in i&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof a.a.WebVTT&&a.a.WebVTT.processCues(a.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var a=null,o=null,s=e.length;s--;){var l=e[s];"showing"===l.mode&&("descriptions"===l.kind?a=l:o=l)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var r=n[i];if(r){var o=r.displayState;if(t.color&&(o.firstChild.style.color=t.color),t.textOpacity&&ei(o.firstChild,"color",Zn(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&ei(o.firstChild,"backgroundColor",Zn(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?ei(o,"backgroundColor",Zn(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=a.a.parseFloat(o.style.fontSize);o.style.fontSize=s*t.fontPercent+"px",o.style.height="auto",o.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=Jn[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof a.a.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],r=0;r<i.activeCues.length;++r)t.push(i.activeCues[r]);a.a.WebVTT.processCues(a.a,t,this.el_);for(var o=0;o<e.length;++o){for(var s=e[o],l=0;l<s.activeCues.length;++l){var c=s.activeCues[l].displayState;Me(c,"vjs-text-track-cue"),Me(c,"vjs-text-track-cue-"+(s.language?s.language:o)),s.language&&Ue(c,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(Gt);Gt.registerComponent("TextTrackDisplay",ti);var ni=function(e){function t(){return e.apply(this,arguments)||this}return m()(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
15Video Player"),i=Ie("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Gt);Gt.registerComponent("LoadingSpinner",ni);var ii=function(e){function t(){return e.apply(this,arguments)||this}m()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var i=Ie("button",t=Z({className:this.buildCSSClass()},t),n=Z({type:"button"},n));return i.appendChild(Ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return G.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Gt.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){d.a.isEventKey(t,"Space")||d.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(Kn);Gt.registerComponent("Button",ii);var ri=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).mouseused_=!1,i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return nn(t),void(!this.player_.tech(!0)||(ge||fe)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};tn(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(ii);ri.prototype.controlText_="Play Video",Gt.registerComponent("BigPlayButton",ri);var ai=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){d.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(ii);Gt.registerComponent("CloseButton",ai);var oi=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?nn(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(ii);oi.prototype.controlText_="Play",Gt.registerComponent("PlayToggle",oi);var si=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||o>0?r+":":"")+(i=((r||a>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},li=si;function ci(e,t){return void 0===t&&(t=e),li(e,t)}var ui=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}m()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=Ie("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"Â "},{role:"presentation"});return n.appendChild(i),this.contentEl_=Ie("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=ci(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,G.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=s.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Gt);ui.prototype.labelText_="Time",ui.prototype.controlText_="Time",Gt.registerComponent("TimeDisplay",ui);var di=function(e){function t(){return e.apply(this,arguments)||this}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(ui);di.prototype.labelText_="Current Time",di.prototype.controlText_="Current Time",Gt.registerComponent("CurrentTimeDisplay",di);var hi=function(e){function t(t,n){var i,r=function(e){return i.updateContent(e)};return(i=e.call(this,t,n)||this).on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(ui);hi.prototype.labelText_="Duration",hi.prototype.controlText_="Duration",Gt.registerComponent("DurationDisplay",hi);var fi=function(e){function t(){return e.apply(this,arguments)||this}return m()(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Gt);Gt.registerComponent("TimeDivider",fi);var pi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"durationchange",(function(e){return i.updateContent(e)})),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(Ie("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(ui);pi.prototype.labelText_="Remaining Time",pi.prototype.controlText_="Remaining Time",Gt.registerComponent("RemainingTimeDisplay",pi);var mi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}m()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Ie("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Ie("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"Â "})),this.contentEl_.appendChild(s.a.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Gt);Gt.registerComponent("LiveDisplay",mi);var gi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}m()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Ie("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(ii);
vendor: 6,020 bytes, line 15
15gi.prototype.controlText_="Seek to live, currently playing live",Gt.registerComponent("SeekToLive",gi);var vi=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},yi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}m()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=Z({tabIndex:0},n),i=Z({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||pe||e.preventDefault(),He(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;qe(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(vi(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=We(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){d.a.isEventKey(t,"Left")||d.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):d.a.isEventKey(t,"Right")||d.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Gt);Gt.registerComponent("Slider",yi);var bi=function(e,t){return vi(e/t*100,0,100).toFixed(2)+"%"},_i=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}m()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Ie("span",{className:"vjs-control-text"}),i=Ie("span",{textContent:this.localize("Loaded")}),r=s.a.createTextNode(": ");return this.percentageEl_=Ie("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,o=bi(r,i);t.percent_!==o&&(t.el_.style.width=o,Le(t.percentageEl_,o),t.percent_=o);for(var s=0;s<n.length;s++){var l=n.start(s),c=n.end(s),u=a[s];u||(u=t.el_.appendChild(Ie()),a[s]=u),u.dataset.start===l&&u.dataset.end===c||(u.dataset.start=l,u.dataset.end=c,u.style.left=bi(l,r),u.style.width=bi(c-l,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Gt);Gt.registerComponent("LoadProgressBar",_i);var wi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=Et(Ct(f()(i),i.update),30),i}m()(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=Xe(this.el_),r=Ve(this.player_.el()),a=e.width*t;if(r&&i){var o=e.left-r.left+a,s=e.width-a+(r.right-e.right),l=i.width/2;o<l?l+=l-o:s<l&&(l=s),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){Le(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,o=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var s=r.player_.liveTracker.liveWindow(),l=s-t*s;
15a=(l<1?"":"-")+ci(l,s)}else a=ci(n,o);r.update(e,t,a),i&&i()}))},t}(Gt);Gt.registerComponent("TimeTooltip",wi);var Ti=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=Et(Ct(f()(i),i.update),30),i}m()(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=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Gt);Ti.prototype.options_={children:[]},Te||ce||Ti.prototype.options_.children.push("timeTooltip"),Gt.registerComponent("PlayProgressBar",Ti);var Si=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=Et(Ct(f()(i),i.update),30),i}m()(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}(Gt);Si.prototype.options_={children:["timeTooltip"]},Gt.registerComponent("MouseTimeDisplay",Si);var ki=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).setEventHandlers_(),i}m()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=Ct(this,this.update),this.update=Et(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 s.a&&"visibilityState"in s.a&&this.on(s.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===s.a.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"!==s.a.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}",[ci(e,r),ci(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(Ve(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){Ze(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),Ze(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),o=r.liveCurrentTime();if((n=a+i*r.liveWindow())>=o&&(n=o),n<=a&&(n=a+.1),n===1/0)return}else(n=i*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},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?nn(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=this.player_.liveTracker;
15if(d.a.isEventKey(t,"Space")||d.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(d.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(d.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(d()(t))){t.preventDefault(),t.stopPropagation();var i=10*(d.a.codes[d()(t)]-d.a.codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else d.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):d.a.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 s.a&&"visibilityState"in s.a&&this.off(s.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(yi);ki.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Te||ce||ki.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Gt.registerComponent("SeekBar",ki);var xi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseMove=Et(Ct(f()(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=Et(Ct(f()(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}m()(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=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=Xe(r),o=We(r,e).x;o=vi(o,0,1),i&&i.update(a,o),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
15,n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&nn(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}(Gt);xi.prototype.options_={children:["seekBar"]},Gt.registerComponent("ProgressControl",xi);var Ci=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).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}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){s.a.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}(ii);Ci.prototype.controlText_="Picture-in-Picture",Gt.registerComponent("PictureInPictureToggle",Ci);var Ei=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===s.a[t.fsApi_.fullscreenEnabled]&&i.disable(),i}m()(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}(ii);Ei.prototype.controlText_="Fullscreen",Gt.registerComponent("FullscreenToggle",Ei);var Ai=function(e){function t(){return e.apply(this,arguments)||this}return m()(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}(Gt);Gt.registerComponent("VolumeLevel",Ai);var Oi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=Et(Ct(f()(i),i.update),30),i}m()(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=Ve(this.el_),a=Ve(this.player_.el()),o=e.width*t;if(!a||!r)return;var s=e.left-a.left+o,l=e.width-o+(a.right-e.right),c=r.width/2;s<c?c+=c-s:l<c&&(c=l),c<0?c=0:c>r.width&&(c=r.width),this.el_.style.right="-"+c+"px"}this.write(i+"%")},n.write=function(e){Le(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(Gt);
15Gt.registerComponent("VolumeLevelTooltip",Oi);var Pi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=Et(Ct(f()(i),i.update),30),i}m()(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}(Gt);Pi.prototype.options_={children:["volumeLevelTooltip"]},Gt.registerComponent("MouseVolumeLevelDisplay",Pi);var Ii=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).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}m()(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){Ze(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=Ve(n),r=this.vertical(),a=We(n,e);a=r?a.y:a.x,a=vi(a,0,1),t.update(i,a,r)}Ze(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}(yi);Ii.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Te||ce||Ii.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ii.prototype.playerEvent="volumechange",Gt.registerComponent("VolumeBar",Ii);var Li=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||te(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),i=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(f()(i),t),i.throttledHandleMouseMove=Et(Ct(f()(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}m()(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}(Gt);Li.prototype.options_={children:["volumeBar"]}
15,Gt.registerComponent("VolumeControl",Li);var Di=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(f()(i),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}m()(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_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Te&&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++)Re(this.el_,"vjs-vol-"+n);Me(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}(ii);Di.prototype.controlText_="Mute",Gt.registerComponent("MuteToggle",Di);var ji=function(e){function t(t,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||te(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}m()(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){d.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),bt(s.a,"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),_t(s.a,"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){d.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Gt);ji.prototype.options_={children:["muteToggle","volumeControl"]},Gt.registerComponent("VolumePanel",ji);var Mi=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,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}m()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Gt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Gt&&(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){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Ie(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),bt(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},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||s.a.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){d.a.isEventKey(e,"Left")||d.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(d.a.isEventKey(e,"Right")||d.a.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(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Gt);Gt.registerComponent("Menu",Mi);var Ri=function(e){function t(t,n){var i;void 0===n&&(n={}),(i=e.call(this,t,n)||this).menuButton_=new ii(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=ii.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),bt(s.a,"keyup",i.handleMenuKeyUp_)}
15)),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}m()(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=new Mi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=Ie("li",{className:"vjs-menu-title",textContent:zt(this.options_.title),tabIndex:-1}),n=new Gt(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+ii.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),_t(s.a,"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){d.a.isEventKey(e,"Esc")||d.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),d.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(d.a.isEventKey(e,"Up")||d.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(d.a.isEventKey(e,"Esc")||d.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(d.a.isEventKey(e,"Esc")||d.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),d.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Te&&Oe())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Gt);Gt.registerComponent("MenuButton",Ri);var Ni=function(e){function t(t,n){var i,r=n.tracks;if((i=e.call(this,t,n)||this).items.length<=1&&i.hide(),!r)return f()(i);var a=Ct(f()(i),i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",(function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)})),i}return m()(t,e),t}(Ri);Gt.registerComponent("TrackButton",Ni);var $i=["Tab","Esc","Up","Down","Right","Left"],Bi=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}m()(t,e);var n=t.prototype;
15return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",Z({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(Ie("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){$i.some((function(e){return d.a.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Kn);Gt.registerComponent("MenuItem",Bi);var Fi=function(e){function t(t,n){var i,r=n.track,o=t.textTracks();n.label=r.label||r.language||"Unknown",n.selected="showing"===r.mode,(i=e.call(this,t,n)||this).track=r,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var l,c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(f()(i),t)},u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(f()(i),t)};(t.on(["loadstart","texttrackchange"],c),o.addEventListener("change",c),o.addEventListener("selectedlanguagechange",u),i.on("dispose",(function(){t.off(["loadstart","texttrackchange"],c),o.removeEventListener("change",c),o.removeEventListener("selectedlanguagechange",u)})),void 0===o.onchange)&&i.on(["tap","click"],(function(){if("object"!=typeof a.a.Event)try{l=new a.a.Event("change")}catch(e){}l||(l=s.a.createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(l)}));return i.handleTracksChange(),i}m()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Bi);Gt.registerComponent("TextTrackMenuItem",Fi);var Ui=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}m()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Fi);Gt.registerComponent("OffTextTrackMenuItem",Ui);var zi=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return m()(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Fi),this.label_&&(n=this.label_+" off"),e.push(new Ui(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(Ni);Gt.registerComponent("TextTrackButton",zi);var Hi=function(e){function t(t,n){var i,r=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o<a.endTime,(i=e.call(this,t,n)||this).track=r,
15i.cue=a,i}return m()(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(Bi);Gt.registerComponent("ChaptersTrackMenuItem",Hi);var qi=function(e){function t(t,n,i){var r;return(r=e.call(this,t,n,i)||this).selectCurrentItem_=function(){r.items.forEach((function(e){e.selected(r.track_.activeCues[0]===e.cue)}))},r}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){if(!t||!t.track||"chapters"===t.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),e.prototype.update.call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(zt(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new Hi(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(zi);qi.prototype.kind_="chapters",qi.prototype.controlText_="Chapters",Gt.registerComponent("ChaptersButton",qi);var Vi=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),o=Ct(f()(r),r.handleTracksChange);return a.addEventListener("change",o),r.on("dispose",(function(){a.removeEventListener("change",o)})),r}m()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(zi);Vi.prototype.kind_="descriptions",Vi.prototype.controlText_="Descriptions",Gt.registerComponent("DescriptionsButton",Vi);var Xi=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(zi);Xi.prototype.kind_="subtitles",Xi.prototype.controlText_="Subtitles",Gt.registerComponent("SubtitlesButton",Xi);var Wi=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return m()(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Fi);Gt.registerComponent("CaptionSettingsMenuItem",Wi);var Gi=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Wi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(zi);Gi.prototype.kind_="captions",Gi.prototype.controlText_="Captions",Gt.registerComponent("CaptionsButton",Gi);var Yi=function(e){function t(){return e.apply(this,arguments)||this}return m()(t,e),t.prototype.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(Ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(Ie("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(Fi);Gt.registerComponent("SubsCapsMenuItem",Yi);var Ki=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(zt(i.label_)),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Wi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Yi)},t}(zi);
15Ki.prototype.kinds_=["captions","subtitles"],Ki.prototype.controlText_="Subtitles",Gt.registerComponent("SubsCapsButton",Ki);var Qi=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=e.call(this,t,n)||this).track=r,i.addClass("vjs-"+r.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(f()(i),t)};return a.addEventListener("change",o),i.on("dispose",(function(){a.removeEventListener("change",o)})),i}m()(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(Ie("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(Ie("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Bi);Gt.registerComponent("AudioTrackMenuItem",Qi);var Ji=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new Qi(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Ni);Ji.prototype.controlText_="Audio Track",Gt.registerComponent("AudioTrackButton",Ji);var Zi=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=e.call(this,t,n)||this).label=r,i.rate=a,i.on(t,"ratechange",(function(e){return i.update(e)})),i}m()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Bi);Zi.prototype.contentElType="button",Gt.registerComponent("PlaybackRateMenuItem",Zi);var er=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",(function(e){return i.updateVisibility(e)})),i.on(t,"ratechange",(function(e){return i.updateLabel(e)})),i.on(t,"playbackrateschange",(function(e){return i.handlePlaybackRateschange(e)})),i}m()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Ie("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new Zi(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Ri);er.prototype.controlText_="Playback Rate",Gt.registerComponent("PlaybackRateMenuButton",er);var tr=function(e){function t(){return e.apply(this,arguments)||this}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Gt);Gt.registerComponent("Spacer",tr);var nr=function(e){function t(){return e.apply(this,arguments)||this}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"Â "})},t}(tr);Gt.registerComponent("CustomControlSpacer",nr);var ir=function(e){function t(){return e.apply(this,arguments)||this}return m()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Gt);ir.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in s.a&&ir.prototype.options_.children.splice(ir.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Gt.registerComponent("ControlBar",ir);var rr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"error",(function(e){return i.open(e)})),i}m()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(sn);rr.prototype.options_=c()({}
vendor: 5,946 bytes, line 15
15,sn.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Gt.registerComponent("ErrorDisplay",rr);var ar=["#000","Black"],or=["#00F","Blue"],sr=["#0FF","Cyan"],lr=["#0F0","Green"],cr=["#F0F","Magenta"],ur=["#F00","Red"],dr=["#FFF","White"],hr=["#FF0","Yellow"],fr=["1","Opaque"],pr=["0.5","Semi-Transparent"],mr=["0","Transparent"],gr={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ar,dr,ur,lr,or,hr,cr,sr]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[fr,pr,mr]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[dr,ar,ur,lr,or,hr,cr,sr]},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:[fr,pr]},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:[mr,pr,fr]}};function vr(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}gr.windowColor.options=gr.backgroundColor.options;var yr=function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(f()(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=Ie("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()})),J(gr,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}m()(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=gr[e],a=r.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(r.options.map((function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',i.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return Ie("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Ie("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Ie("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},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;
15return t=function(e,t,n){var r,a,o=(r=i.$(t.selector),a=t.parser,vr(r.options[r.options.selectedIndex].value,a));return void 0!==o&&(e[n]=o),e},void 0===(n={})&&(n=0),Q(e=gr).reduce((function(n,i){return t(n,e[i],i)}),n)},n.setValues=function(e){var t=this;J(gr,(function(n,i){!function(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(vr(e.options[i].value,n)===t){e.selectedIndex=i;break}}(t.$(n.selector),e[i],n.parser)}))},n.setDefaults=function(){var e=this;J(gr,(function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(a.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){G.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?a.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):a.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){G.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(sn);Gt.registerComponent("TextTrackSettings",yr);var br=function(e){function t(t,n){var i,r=n.ResizeObserver||a.a.ResizeObserver;null===n.ResizeObserver&&(r=!1);var o=Ht({createEl:!r,reportTouchActivity:!1},n);return(i=e.call(this,t,o)||this).ResizeObserver=n.ResizeObserver||a.a.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=function(e,t,n,i){var r;void 0===i&&(i=a.a);var o=function(){var a=this,o=arguments,s=function(){r=null,s=null,n||e.apply(a,o)};!r&&n&&e.apply(a,o),i.clearTimeout(r),r=i.setTimeout(s,t)};return o.cancel=function(){i.clearTimeout(r),r=null},o}((function(){i.resizeHandler()}),100,!1,f()(i)),r?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){_t(this,"resize",e),_t(this,"unload",t),t=null};bt(i.el_.contentWindow,"unload",t),bt(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}m()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Gt);Gt.registerComponent("ResizeManager",br);var _r={trackingThreshold:20,liveTolerance:15},wr=function(e){function t(t,n){var i,r=Ht(_r,n,{createEl:!1});return(i=e.call(this,t,r)||this).handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",(function(e){return i.handleDurationchange(e)})),i.on(i.player_,"canplay",(function(){return i.toggleTracking()})),ge&&"hidden"in s.a&&"visibilityState"in s.a&&i.on(s.a,"visibilitychange",i.handleVisibilityChange_),i}m()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(s.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(a.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),r=this.player_.currentTime(),o=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-r)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,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_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}
15,n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(s.a,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Gt);Gt.registerComponent("LiveTracker",wr);var Tr,Sr=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&-1===i.indexOf(o)&&i.push(o)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},kr=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=s.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=s.a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",a.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),xr=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n},Cr=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=function(e){return xr([e.el(),a.a.HTMLMediaElement.prototype,a.a.Element.prototype,kr],"innerHTML")}(e),r=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var o=n.apply(t,r);return Sr(e),o}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=r(n[e]))})),Object.defineProperty(t,"innerHTML",Ht(i,{set:r(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},Er=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Sn(a.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return a.a.Element.prototype.setAttribute.call(this,"src",e),e}}),Ar=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return xr([e.el(),a.a.HTMLMediaElement.prototype,Er],"src")}(e),i=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Ht(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=r.call(t);return Sr(e)||(e.triggerSourceset(""),Cr(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Sr(e)||Cr(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=r,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Or=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},Pr=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(i.featuresVideoFrameCallback=i.featuresVideoFrameCallback&&"VIDEO"===i.el_.tagName,r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var o=i.el_.childNodes,s=o.length,l=[];s--;){var c=o[s];"track"===c.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(c),i.remoteTextTracks().addTrack(c.track),i.textTracks().addTrack(c.track),a||i.el_.hasAttribute("crossorigin")||!xn(c.src)||(a=!0)):l.push(c))}for(var u=0;u<l.length;u++)i.el_.removeChild(l[u])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&G.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(be||we||de)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}m()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
15poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Ar(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach((function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Dn[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[jn.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach((function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",(function(t){return i.removeEventListener(e,n)}))})),this.on("loadstart",o),this.on("dispose",(function(e){return t.off("loadstart",o)}))}},n.proxyNativeTracks_=function(){var e=this;Dn.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=s.a.createElement("video");var i=Ht({},this.options_.tag&&Be(this.options_.tag));be&&!0===this.options_.nativeControlsForTouch||delete i.controls,$e(e,Z(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Ue(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],a=0;a<r.length;a++){var o=r[a],l=this.options_[o];void 0!==l&&(l?Ue(e,o,o):ze(e,o),e[o]=l)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Se?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){G(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&ce&&pe&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=a.a.navigator&&a.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)nn(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=s.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),a.a.performance&&"function"==typeof a.a.performance.now?e.creationTime=a.a.performance.now():a.a.performance&&a.a.performance.timing&&"number"==typeof a.a.performance.timing.navigationStart&&(e.creationTime=a.a.Date.now()-a.a.performance.timing.navigationStart),e},t}(Rn);Or(Pr,"TEST_VID",(function(){if(Ee()){var e=s.a.createElement("video"),t=s.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),Pr.isSupported=function(){try{Pr.TEST_VID.volume=.5}catch(e){return!1}return!(!Pr.TEST_VID||!Pr.TEST_VID.canPlayType)},Pr.canPlayType=function(e){return Pr.TEST_VID.canPlayType(e)},Pr.canPlaySource=function(e,t){return Pr.canPlayType(e.type)},Pr.canControlVolume=function(){try{var e=Pr.TEST_VID.volume;Pr.TEST_VID.volume=e/2+.1;var t=e!==Pr.TEST_VID.volume;return t&&Te?(a.a.setTimeout((function(){Pr&&Pr.prototype&&(Pr.prototype.featuresVolumeControl=e!==Pr.TEST_VID.volume)})),!1):t}catch(e){return!1}},Pr.canMuteVolume=function(){try{var e=Pr.TEST_VID.muted;return Pr.TEST_VID.muted=!e,Pr.TEST_VID.muted?Ue(Pr.TEST_VID,"muted","muted"):ze(Pr.TEST_VID,"muted"),e!==Pr.TEST_VID.muted}catch(e){return!1}},Pr.canControlPlaybackRate=function(){if(ce&&pe&&me<58)return!1;try{var e=Pr.TEST_VID.playbackRate;return Pr.TEST_VID.playbackRate=e/2+.1,e!==Pr.TEST_VID.playbackRate}catch(e){return!1}},Pr.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(s.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(s.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(s.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(s.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Pr.supportsNativeTextTracks=function(){return Se||Te&&pe},Pr.supportsNativeVideoTracks=function(){return!(!Pr.TEST_VID||!Pr.TEST_VID.videoTracks)},Pr.supportsNativeAudioTracks=function(){return!(!Pr.TEST_VID||!Pr.TEST_VID.audioTracks)},Pr.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEac
15h((function(e){var t=e[0],n=e[1];Or(Pr.prototype,t,(function(){return Pr[n]()}),!0)})),Pr.prototype.featuresVolumeControl=Pr.canControlVolume(),Pr.prototype.movingMediaElementInDOM=!Te,Pr.prototype.featuresFullscreenResize=!0,Pr.prototype.featuresProgressEvents=!0,Pr.prototype.featuresTimeupdateEvents=!0,Pr.prototype.featuresVideoFrameCallback=!(!Pr.TEST_VID||!Pr.TEST_VID.requestVideoFrameCallback),Pr.patchCanPlayType=function(){ue>=4&&!he&&!pe&&(Tr=Pr.TEST_VID&&Pr.TEST_VID.constructor.prototype.canPlayType,Pr.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Tr.call(this,e)})},Pr.unpatchCanPlayType=function(){var e=Pr.TEST_VID.constructor.prototype.canPlayType;return Tr&&(Pr.TEST_VID.constructor.prototype.canPlayType=Tr),e},Pr.patchCanPlayType(),Pr.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Pr.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Pr.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Pr.prototype["set"+zt(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){Pr.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Pr.prototype["set"+zt(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Pr.prototype[e]=function(){return this.el_[e]()}})),Rn.withSourceHandlers(Pr),Pr.nativeSourceHandler={},Pr.nativeSourceHandler.canPlayType=function(e){try{return Pr.TEST_VID.canPlayType(e)}catch(e){return""}},Pr.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Pr.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=kn(e.src);return Pr.nativeSourceHandler.canPlayType("video/"+n)}return""},Pr.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Pr.nativeSourceHandler.dispose=function(){},Pr.registerSourceHandler(Pr.nativeSourceHandler),Rn.registerTech("Html5",Pr);var Ir=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Lr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Dr=["tiny","xsmall","small","medium","large","xlarge","huge"],jr={};Dr.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;jr[e]="vjs-layout-"+t}));var Mr={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Rr=function(e){function t(n,i,r){var a;if(n.id=n.id||i.id||"vjs_video_"+ht(),(i=Z(t.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(i.language=o.getAttribute("lang"))}else for(var l=n;l&&1===l.nodeType;){if(Be(l).hasOwnProperty("lang")){i.language=l.getAttribute("lang");break}l=l.parentNode}if((a=e.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=Y(a.id_),a.fsApi_=z,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHe
15ight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&Be(n),a.language(a.options_.language),i.languages){var c={};Object.getOwnPropertyNames(i.languages).forEach((function(e){c[e.toLowerCase()]=i.languages[e]})),a.languages_=c}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!=typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),$t(f()(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(bt(s.a,a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var u=Ht(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=u,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),be&&a.addClass("vjs-touch-enabled"),Te||a.addClass("vjs-workinghover"),t.players[a.id_]=f()(a);var d="7.21.7".split(".")[0];return a.addClass("vjs-v"+d),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}m()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),_t(s.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),_t(s.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),$n[this.id()]=null,Mn.names.forEach((function(e){var t=Mn[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),r="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:r||(t=this.el_=e.prototype.createEl.call(this,"div"));var o=Be(n);if(r){for(t=this.el_=n,n=this.tag=s.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);je(t,"video-js")||Me(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),o.tabindex="-1",(ge||pe&&ye)&&(n.setAttribute("role","application"),o.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach((function(e){r&&"class"===e||t.setAttribute(e,o[e]),r&&n.setAttribute(e,o[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=ct("vjs-styles-dimensions");var l=tt(".vjs-styles-defaults"),c=tt("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),d=0;d<u.length;d++){var h=u.item(d);Me(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),De(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):G.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?G.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t,n,i=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Pt(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},Pt(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),r=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/r:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*r,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),ut(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*r+"%;\n }\n ")}else{var o="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(o>=0&&(l.width=o),s>=0&&(l.height=s))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=zt(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Rn.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};
15Mn.names.forEach((function(e){var t=Mn[e];o[t.getterName]=n[t.privateName]})),Z(o,this.options_[i]),Z(o,this.options_[r]),Z(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s=Rn.getTech(e);if(!s)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(Ct(this,this.handleTechReady_),!0),on(this.textTracksJson_||[],this.tech_),Ir.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+zt(e)+"_"](t)}))})),Object.keys(Lr).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Lr[e]+"_"].bind(n),event:t}):n["handleTech"+Lr[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||De(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Mn.names.forEach((function(t){var n=Mn[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=an(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&G.warn("Using the tech directly can be dangerous. I hope you know
15what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(tn(i))return i.catch((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():tn(n=this.play())&&(n=n.catch(i)),tn(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return Wn(t)}(this,t)),this.cache_.source=Ht({},e,{src:t,type:n});for(var i=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),r=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var l=Be(a[s]);r.push(l),l.src&&l.src===t&&o.push(l.src)}o.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(G.warn("Passing the `starttime` option to the player will be deprecated
15in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?nn(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=s.a[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in Hn)return function(e,t,n,i){return t[n](e.reduce(Vn(n),i))}(this.middleware_,this.tech_,e,t);if(e in qn)return Un(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw G(e),e}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in zn)return function(e,t,n){return e.reduceRight(Vn(n),t[n]())}(this.middleware_,this.tech_,e);if(e in qn)return Un(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw G("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw G("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw G(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||a.a.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=nn),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),i=Boolean(Se||Te);
15if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!n&&i&&this.load());var r=this.techGet_("play");i&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Qt(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Qt(0,0)),e},n.bufferedPercent=function(){return Jt(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||a.a.Promise;if(t){var n=this;return new t((function(t,i){function r(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){r(),t()}function o(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);var s=n.requestFullscreenHelper_(e);s&&(s.then(r,r),s.then(t,i))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),i}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||a.a.Promise;if(e){var t=this;return new e((function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var o=t.exitFullscreenHelper_();o&&(o.then(i,i),o.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=s.a[this.fsApi_.exitFullscreen]();return t&&nn(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=s.a.documentElement.style.overflow,bt(s.a,"keydown",this.boundFullWindowOnEscKey_),s.a.documentElement.style.overflow="hidden",Me(s.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){d.a.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,_t(s.a,"keydown",this.boundFullWindowOnEscKey_),s.a.documentElement.style.overflow=this.docOrigOverflow,Re(s.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in s.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in s.a)return s.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;
15if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return d.a.isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return d.a.isEventKey(e,"m")}:r,o=t.playPauseKey,l=void 0===o?function(e){return d.a.isEventKey(e,"k")||d.a.isEventKey(e,"Space")}:o;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var c=Gt.getComponent("FullscreenToggle");!1!==s.a[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation(),Gt.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation(),Gt.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Rn.getTech(r);if(a||(a=Gt.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else G.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,i=this.options_.techOrder.map((function(e){return[e,Rn.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(G.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),r=function(e,t,n){var i;return e.some((function(e){return t.some((function(t){if(i=n(e,t))return!0}))})),i},a=function(e,t){var i=e[0];if(e[1].canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}};return(this.options_.sourceOrder?r(e,i,(t=a,function(e,n){return t(n,e)})):r(i,e,a))||!1},n.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):ee(t)&&n.push(t)})),t=n}else t="string"==typeof t&&t.trim()?[Gn({src:t})]:ee(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[Gn(t)]:[];return t}(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Fn(this,i[0],(function(e,r){var a,o;if(n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e),n.src_(e))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void n.triggerReady());a=r,o=n.tech_,a.forEach((function(e){return e.setTech&&e.setTech(o)}))})),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t,n,i=this,r=this.selectSource([e]);return!r||(t=r.tech,n=this.techName_,zt(t)!==zt(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){i.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||a.a.Promise;this.paused()||!t?this.doReset_():nn(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Pt(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
15sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(F("beforeerror").forEach((function(n){var i=n(t,e);ee(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Zt(e),this.addClass("vjs-error"),G.error("(CODE:"+this.error_.code+" "+Zt.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),F("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,i=Ct(this,this.reportUserActivity),r=function(t){i(),this.clearInterval(e)};this.on("mousedown",(function(){i(),this.clearInterval(e),e=this.setInterval(i,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())})),this.on("mouseup",r),this.on("mouseleave",r);var a,o=this.getChild("controlBar");!o||Te||ce||(o.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),o.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||a.a.Promise;if(n){if(e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||a.a.Promise;return n?e?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.disablePosterModeUI_()})):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Pt(this)&&this.trigger("languagechange"))},n.languages=function(){return Ht(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Ht(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=Ht(i)).player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var i=new sn(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Dr.length;n++){var i=Dr[n];
15if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(jr[e]),this.addClass(jr[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Z({},Mr,e),this.updateCurrentBreakpoint_()),Z(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return jr[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=Ht(e);var i=this.cache_.media,r=i.artwork,a=i.poster,o=i.src,s=i.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:Wn(a)}]),o&&this.src(o),a&&this.poster(a),Array.isArray(s)&&s.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Wn(t.poster)}]),t}return Ht(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=Be(e),i=n["data-setup"];if(je(e,"vjs-fill")&&(n.fill=!0),je(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=v()(i||"{}"),a=r[0],o=r[1];a&&G.error(a),Z(n,o)}if(Z(t,n),e.hasChildNodes())for(var s=e.childNodes,l=0,c=s.length;l<c;l++){var u=s[l],d=u.nodeName.toLowerCase();"source"===d?t.sources.push(Be(u)):"track"===d&&t.tracks.push(Be(u))}return t},n.flexNotSupported_=function(){var e=s.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"==typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Gt);Mn.names.forEach((function(e){var t=Mn[e];Rr.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Rr.prototype.crossorigin=Rr.prototype.crossOrigin,Rr.players={};var Nr=a.a.navigator;Rr.prototype.options_={techOrder:Rn.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Nr&&(Nr.languages&&Nr.languages[0]||Nr.userLanguage||Nr.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Rr.prototype[e]=function(){return this.techGet_(e)}})),Ir.forEach((function(e){Rr.prototype["handleTech"+zt(e)+"_"]=function(){return this.trigger(e)}})),Gt.registerComponent("Player",Rr);var $r={},Br=function(e){return $r.hasOwnProperty(e)},Fr=function(e){return Br(e)?$r[e]:void 0},Ur=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},zr=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Hr=function(e,t){return t.prototype.name=e,function(){zr(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=S()(t,[this].concat(i));return this[e]=function(){return a},zr(this,a.getEventHash()),a}},qr=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),$t(this),delete this.trigger,Ft(this,this.constructor.defaultState),Ur(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),wt(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Hr(e,$r[e])},e.isBasic=function(t){var n="string"==typeof t?Fr(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Br(t))G.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Rr.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return $r[t]=n,"plugin"!==t&&(e.isBasic(n)?Rr.prototype[t]=function(e,t){var n=function(){zr(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return Ur(this,e),zr(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):Rr.prototype[t]=Hr(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");
15Br(e)&&(delete $r[e],delete Rr.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys($r)),e.forEach((function(e){var n=Fr(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=Fr(e);return t&&t.VERSION||""},e}();qr.getPlugin=Fr,qr.BASE_PLUGIN_NAME="plugin",qr.registerPlugin("plugin",qr),Rr.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Rr.prototype.hasPlugin=function(e){return!!Br(e)};var Vr=!1,Xr=function(e){return 0===e.indexOf("#")?e.slice(1):e};function Wr(e,t,n){var i=Wr.getPlayer(e);if(i)return t&&G.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"==typeof e?tt("#"+Xr(e)):e;if(!Ae(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||G.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),F("beforesetup").forEach((function(e){var n=e(r,Ht(t));ee(n)&&!Array.isArray(n)?t=Ht(t,n):G.error("please return an object in beforesetup hooks")}));var a=Gt.getComponent("Player");return i=new a(r,t,n),F("setup").forEach((function(e){return e(i)})),i}if(Wr.hooks_=B,Wr.hooks=F,Wr.hook=function(e,t){F(e,t)},Wr.hookOnce=function(e,t){F(e,[].concat(t).map((function(t){return function n(){return U(e,n),t.apply(void 0,arguments)}})))},Wr.removeHook=U,!0!==a.a.VIDEOJS_NO_DYNAMIC_STYLE&&Ee()){var Gr=tt(".vjs-styles-defaults");if(!Gr){Gr=ct("vjs-styles-defaults");var Yr=tt("head");Yr&&Yr.insertBefore(Gr,Yr.firstChild),ut(Gr,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}ot(1,Wr),Wr.VERSION="7.21.7",Wr.options=Rr.prototype.options_,Wr.getPlayers=function(){return Rr.players},Wr.getPlayer=function(e){var t,n=Rr.players;if("string"==typeof e){var i=Xr(e),r=n[i];if(r)return r;t=tt("#"+i)}else t=e;if(Ae(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},Wr.getAllPlayers=function(){return Object.keys(Rr.players).map((function(e){return Rr.players[e]})).filter(Boolean)},Wr.players=Rr.players,Wr.getComponent=Gt.getComponent,Wr.registerComponent=function(e,t){Rn.isTech(t)&&G.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Gt.registerComponent.call(Gt,e,t)},Wr.getTech=Rn.getTech,Wr.registerTech=Rn.registerTech,Wr.use=function(e,t){Nn[e]=Nn[e]||[],Nn[e].push(t)},Object.defineProperty(Wr,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Wr.middleware,"TERMINATOR",{value:Bn,writeable:!1,enumerable:!0}),Wr.browser=ke,Wr.TOUCH_ENABLED=be,Wr.extend=function(e,t){void 0===t&&(t={}),Vr||(G.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),Vr=!0);var n=function(){e.apply(this,arguments)},i={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"==typeof t&&(n=t),x()(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},Wr.mergeOptions=Ht,Wr.bind=Ct,Wr.registerPlugin=qr.registerPlugin,Wr.deregisterPlugin=qr.deregisterPlugin,Wr.plugin=function(e,t){return G.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),qr.registerPlugin(e,t)},Wr.getPlugins=qr.getPlugins,Wr.getPlugin=qr.getPlugin,Wr.getPluginVersion=qr.getPluginVersion,Wr.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Wr.options.languages=Ht(Wr.options.languages,((n={})[e]=t,n)),Wr.options.languages[e]},Wr.log=G,Wr.createLogger=Y,Wr.createTimeRange=Wr.createTimeRanges=Qt,Wr.formatTime=ci,Wr.setFormatTime=function(e){li=e},Wr.resetFormatTime=function(){li=si},Wr.parseUrl=Tn,Wr.isCrossOrigin=xn,Wr.EventTarget=At,Wr.on=bt,Wr.one=Tt,Wr.off=_t,Wr.trigger=wt,Wr.xhr=b.a,Wr.TextTrack=On,Wr.AudioTrack=Pn,Wr.VideoTrack=In,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Wr[e]=function(){return G.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),it[e].apply(null,arguments)}})),Wr.computedStyle=ne,Wr.dom=it,Wr.url=Cn,Wr.defineLazyProperty=Or,Wr.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"}); 16/*! @name @videojs/http-streaming @version 2.16.3 @license Apache-2.0 */ 17var Kr=C.a,Qr=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},Jr=function(e){return Wr.log.debug?Wr.log.debug.bind(Wr,"VHS:",e+" >"):function(){}},Zr=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return Wr.createTimeRanges(i)},ea=function(e,t){return Zr(e,(function(e,n){return e-.1<=t&&n+.1>=t}))},ta=function(e,t){return Zr(e,(function(e){return e-1/30>=t}))},na=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},ia=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},ra=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},aa=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n},oa=Wr.createTimeRange,sa=function(e,t){if(!t.preload)return t.duration;var n=0;
17return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},la=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},ca=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},ua=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=(t.preloadHints||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return i+=n&&n.length?n.length:0}},da=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=ca(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},ha=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=sa(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(i.precise)return i.result;var r=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=sa(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:i.result+n},fa=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return a.a.Infinity}return ha(e,t,n)},pa=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var o=[r,i];i=o[0],r=o[1]}if(i<0){for(var s=i;s<Math.min(0,r);s++)a+=t;i=0}for(var l=i;l<r;l++)a+=n[l].duration;return a},ma=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return fa(e);if(null===t)return null;t=t||0;var r=ha(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:da(null,e)),Math.max(0,r)},ga=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},va=function(e){return e.excludeUntil&&e.excludeUntil===1/0},ya=function(e){var t=ga(e);return!e.disabled&&!t},ba=function(e,t){return t.attributes&&t.attributes[e]},_a=function(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!!ya(e)&&(e.attributes.BANDWIDTH||0)<n})).length},wa=function(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))},Ta=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]))break;if(i)break}return!!i},Sa=function(e){if(!e||!e.playlists||!e.playlists.length)return Ta(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));for(var t=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every((function(e){return Object(A.f)(e)}))||Ta(e,(function(e){return wa(n,e)}))?"continue":{v:!1}},n=0;n<e.playlists.length;n++){var i=t(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},ka={liveEdgeDelay:da,duration:fa,seekable:function(e,t,n){var i=t||0,r=ma(e,t,!0,n);return null===r?oa():oa(i,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,o=e.experimentalExactManifestTimings,s=n-a,l=la(t),c=0,u=0;u<l.length;u++){var d=l[u];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){c=u;break}}if(s<0){if(c>0)for(var h=c-1;h>=0;h--){var f=l[h];if(s+=f.duration,o){if(s<0)continue}else if(s+1/30<=0)continue;return{partIndex:f.partIndex,segmentIndex:f.segmentIndex,startTime:a-pa({defaultDuration:t.targetDuration,durationList:l,startIndex:c,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(c<0){for(var p=c;p<0;p++)if((s-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};c=0}for(var m=c;m<l.length;m++){var g=l[m];if(s-=g.duration,o){if(s>0)continue}else if(s-1/30>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+pa({defaultDuration:t.targetDuration,durationList:l,startIndex:c,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},isEnabled:ya,isDisabled:function(e){return e.disabled},isBlacklisted:ga,isIncompatible:va,playlistEnd:ma,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:ba,estimateSegmentRequestTime:function(e,t,n,i){return void 0===i&&(i=0),ba("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:_a,isAudioOnly:Sa,playlistMatch:wa,segmentDurationWithParts:sa},xa=Wr.log,Ca=function(e,t){return e+"-"+t},Ea=function(e,t,n){return"placeholder-uri-"+e+"-"+t+"-"+n},Aa=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))}
17,Oa=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},Pa=function(e,t,n){void 0===n&&(n=Ea),e.uri=t;for(var i=0;i<e.playlists.length;i++)if(!e.playlists[i].uri){var r="placeholder-uri-"+i;e.playlists[i].uri=r}var a=Sa(e);Aa(e,(function(t,i,r,o){if(!t.playlists||!t.playlists.length){if(a&&"AUDIO"===i&&!t.uri)for(var s=0;s<e.playlists.length;s++){var l=e.playlists[s];if(l.attributes&&l.attributes.AUDIO&&l.attributes.AUDIO===r)return}t.playlists=[c()({},t)]}t.playlists.forEach((function(t,a){var s=n(i,r,o,t),l=Ca(a,s);t.uri?t.resolvedUri=t.resolvedUri||Kr(e.uri,t.uri):(t.uri=0===a?s:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];Oa({playlist:n,id:Ca(t,n.uri)}),n.resolvedUri=Kr(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||xa.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){Aa(e,(function(t){t.uri&&(t.resolvedUri=Kr(e.uri,t.uri))}))}(e)},Ia=Wr.mergeOptions,La=Wr.EventTarget,Da=function(e,t){if(!e)return t;var n=Ia(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=Ia(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},ja=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Kr(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Kr(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Kr(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Kr(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=Kr(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=Kr(t,e.uri))}))},Ma=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Ra=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},Na=function(e,t,n){void 0===n&&(n=Ra);var i=Ia(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=Ma(t);var a=Ia(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}a.segments=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,o=[],s=0;s<r.length;s++){var l=i[s+n],c=r[s];l?(a=l.map||a,o.push(Da(l,c))):(a&&!c.map&&(c.map=a),o.push(c))}return o}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){ja(e,a.resolvedUri)}));for(var s=0;s<i.playlists.length;s++)i.playlists[s].id===t.id&&(i.playlists[s]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,Aa(e,(function(e,n,i,r){if(e.playlists)for(var o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=a)})),i},$a=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},Ba=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=Jr("PlaylistLoader");var a=i,o=a.withCredentials,s=void 0!==o&&o,l=a.handleManifestRedirects,c=void 0!==l&&l;r.src=t,r.vhs_=n,r.withCredentials=s,r.handleManifestRedirects=c;var u=n.options_;return r.customTagParsers=u&&u.customTagParsers||[],r.customTagMappers=u&&u.customTagMappers||[],r.experimentalLLHLS=u&&u.experimentalLLHLS||!1,Wr.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(f()(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}m()(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=Kr(this.master.uri,t.uri);this.experimentalLLHLS&&(n=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,r=t.mediaSequence+t.segments.length;if(i){var o=i.parts||[],s=ua(t)-1;s>-1&&s!==o.length-1&&(n._HLS_part=s),(s>-1||o.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var l=new a.a.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&l.searchParams.set(e,n[e])})),e=l.toString()}return e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url;return function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,o=e.customTagMappers,s=void 0===o?[]:o,l=e.experimentalLLHLS,c=new E.a;t&&c.on("warn",t),n&&c.on("info",n),a.forEach((function(e){return c.addParser(e)}
17)),s.forEach((function(e){return c.addTagMapper(e)})),c.push(i),c.end();var u=c.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){u.hasOwnProperty(e)&&delete u[e]})),u.segments&&u.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!u.targetDuration){var d=10;u.segments&&u.segments.length&&(d=u.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),u.targetDuration=d}var h=ca(u);if(h.length&&!u.partTargetDuration){var f=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+f),xa.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),u.partTargetDuration=f}return u}({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),Oa({playlist:a,uri:i,id:r});var o=Na(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_($a(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),a.a.clearTimeout(this.mediaUpdateTimeout),a.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(a.a.clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=a.a.setTimeout(this.media.bind(this,e,!1),i)}else{var r=this.state,o=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(o&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_($a(e,!0)),o){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Qr(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,r);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=a.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=a.a.setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;
17if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=a.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Qr(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Pa(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=Ma(e),e.segments.forEach((function(t){ja(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||a.a.location.href;this.master=function(e,t){var n=Ca(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:a.a.location.href,resolvedUri:a.a.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(La),Fa=Wr.xhr,Ua=Wr.mergeOptions,za=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},Ha=function(){var e=function e(t,n){t=Ua({timeout:45e3},t);var i=e.beforeRequest||Wr.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var a=(!0===Wr.Vhs.xhr.original?Fa:Wr.Vhs.xhr)(t,(function(e,t){return za(a,e,t,n)})),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},qa=function(e){var t,n={};return e.byterange&&(n.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?a.a.BigInt(t.offset)+a.a.BigInt(t.length)-a.a.BigInt(1):t.offset+t.length-1)),n},Va=function(e,t){return e.start(t)+"-"+e.end(t)},Xa=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Wa=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Ga=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];Object(P.e)(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},Ya=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Ka=function(e){return e.resolvedUri},Qa=function(e){for(var t=Array.prototype.slice.call(e),n="",i=0;i<t.length/16;i++)n+=t.slice(16*i,16*i+16).map(Xa).join("")+" "+t.slice(16*i,16*i+16).map(Wa).join("")+"\n";return n},Ja=Object.freeze({__proto__:null,createTransferableMessage:Ga,initSegmentId:Ya,segmentKeyId:Ka,hexDump:Qa,tagDump:function(e){var t=e.bytes;return Qa(t)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=Va(e,t)+" ";return n}}),Za=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:i},s=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)}(i,a.segment);return s&&(o.programDateTime=s.toISOString()),r(null,o)},eo=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,o=t.seekTo,s=t.pauseAfterSeek,l=void 0===s||s,c=t.tech,u=t.callback;if(!u)throw new Error("seekToProgramTime: callback must be provided");
17if(void 0===n||!i||!o)return u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!c.hasStarted_)return u({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0}(i))return u({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=function(e,t){var n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1;r++){if(i=t.segments[r],n<t.segments[r+1].dateTimeObject)break}var a,o=t.segments[t.segments.length-1],s=o.dateTimeObject,l=o.videoTimingInfo?(a=o.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:o.duration+.25*o.duration;return n>new Date(s.getTime()+1e3*l)?null:(n>s&&(i=o),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:ka.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!d)return u({message:n+" was not found in the stream"});var h=d.segment,f=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(e){}var r=n.getTime();return(i.getTime()-r)/1e3}(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?u({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+f),void c.one("seeked",(function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:o,pauseAfterSeek:l,tech:c,callback:u})})));var p=h.start+f;c.one("seeked",(function(){return u(null,c.currentTime())})),l&&c.pause(),o(p)},to=function(e,t){if(4===e.readyState)return t()},no=Wr.EventTarget,io=Wr.mergeOptions,ro=function(e,t){if(!Ra(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,o=r.byterange;if(a&&!o||!a&&o)return!1;if(a.offset!==o.offset||a.length!==o.length)return!1}}return!0},ao=function(e,t,n,i){return"placeholder-uri-"+e+"-"+t+"-"+(i.attributes.NAME||n)},oo=function(e,t,n){for(var i=!0,r=io(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var o=t.playlists[a];if(o.sidx){var s=Object(I.b)(o.sidx);n&&n[s]&&n[s].sidx&&Object(I.a)(o,n[s].sidx,o.sidx.resolvedUri)}var l=Na(r,o,ro);l&&(r=l,i=!1)}return Aa(t,(function(e,t,n,a){if(e.playlists&&e.playlists.length){var o=e.playlists[0].id,s=Na(r,e.playlists[0],ro);s&&(a in(r=s).mediaGroups[t][n]||(r.mediaGroups[t][n][a]=e),r.mediaGroups[t][n][a].playlists[0]=r.playlists[o],i=!1)}})),function(e,t){Aa(e,(function(n,i,r,a){a in t.mediaGroups[i][r]||delete e.mediaGroups[i][r][a]}))}(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r},so=function(e,t){var n,i,r={};for(var a in e){var o=e[a].sidx;if(o){var s=Object(I.b)(o);if(!t[s])break;var l=t[s].sidxInfo;n=l,i=o,(Boolean(!n.map&&!i.map)||Boolean(n.map&&i.map&&n.map.byterange.offset===i.map.byterange.offset&&n.map.byterange.length===i.map.byterange.length))&&n.uri===i.uri&&n.byterange.offset===i.byterange.offset&&n.byterange.length===i.byterange.length&&(r[s]=t[s])}}return r},lo=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),(a=e.call(this)||this).masterPlaylistLoader_=r||f()(a),r||(a.isMaster_=!0);var o=i,s=o.withCredentials,l=void 0!==s&&s,c=o.handleManifestRedirects,u=void 0!==c&&c;if(a.vhs_=n,a.withCredentials=l,a.handleManifestRedirects=u,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=Jr("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}m()(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,r=e.sidx&&Object(I.b)(e.sidx);if(e.sidx&&r&&!this.masterPlaylistLoader_.sidxMapping_[r]){var o=Qr(this.handleManifestRedirects,e.sidx.resolvedUri),s=function(a,o){if(!i.requestErrored_(a,o,t)){var s,l=i.masterPlaylistLoader_.sidxMapping_;try{s=D()(Object(P.k)(o.response).subarray(8))}catch(e){return void i.requestErrored_(e,o,t)}return l[r]={sidxInfo:e.sidx,sidx:s},Object(I.a)(e,s,e.sidx.resolvedUri),n(!0)}};this.request=function(e,t,n){var i,r=[],a=!1,o=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},s=function(e,t){if(!a){if(e)return o(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=Object(P.d)(r,Object(P.h)(n,!0)),i=i||Object(j.a)(r),r.length<10||i&&r.length<i+2)return to(t,(function(){return o(e,t,"",r)}));var s=Object(M.a)(r);return"ts"===s&&r.length<188||!s&&r.length<376?to(t,(function(){return o(e,t,"",r)})):o(null,t,s,r)}},l=t({uri:e,beforeSend:function(e){e.overrideMimeType("text/plain;
17 charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,za(e,null,{statusCode:e.status},s)}))}},(function(e,t){return za(l,e,t,s)}));return l}(o,this.vhs_.xhr,(function(t,n,r,a){if(t)return s(t,n);if(!r||"mp4"!==r)return s({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+o,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var l=e.sidx.byterange,c=l.offset,u=l.length;if(a.length>=u+c)return s(t,{response:a.subarray(c,c+u),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:o,responseType:"arraybuffer",headers:qa({byterange:e.sidx.byterange})},s)}))}else this.mediaRequest_=a.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},a.a.clearTimeout(this.minimumUpdatePeriodTimeout_),a.a.clearTimeout(this.mediaRequest_),a.a.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(){if(this.request){var 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,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.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(),a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(a.a.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;a.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=a.a.setTimeout((function(){return t.load()}),i)}else 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_=a.a.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=Qr(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=Object(I.d)(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:Kr(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();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-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,t,n,i,r,a,o,s=this.masterPlaylistLoader_.master,l=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:s},t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,o=Object(I.c)(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a}),Pa(o,n,ao),o);s&&(l=oo(s,l,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=l||s;var c=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return c&&c!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=c),(!s||l&&l.minimumUpdatePeriod!==s.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(l)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(a.a.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;
170===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=a.a.setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){var i,r,a;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(i=e.masterPlaylistLoader_.master,r=e.masterPlaylistLoader_.sidxMapping_,a=so(i.playlists,r),Aa(i,(function(e,t,n,i){if(e.playlists&&e.playlists.length){var o=e.playlists;a=io(a,so(o,r))}})),a),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=a.a.setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),$a(t.media(),Boolean(i))))}()}this.trigger("loadedplaylist")},t}(no),co={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},uo=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},ho=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=uo(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},fo=function(e){return"var browserWorkerPolyFill = "+uo.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},po=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},mo=ho(fo(po((function(){var t=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};t.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y,b,_,w,T,S,k,x,C,E,A,O,P,I,L,D,j,M,R,N,$,B,F,U,z=t,H=Math.pow(2,32),q={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:n.getUint32(0)*H+n.getUint32(4)},MAX_UINT32:H},V=q.MAX_UINT32;!function(){var e;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);k=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),C=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),x=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),A=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),O={video:E,audio:A},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),j=D,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=D,P=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n},i=function(){return n(S.dinf,n(S.dref,L))},r=function(e){return n(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return n(S.hdlr,O[e])},m=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(S.mdhd,t)},p=function(e){return n(S.mdia,m(e),g(e.type),s(e))},o=function(e){return n(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return n(S.minf,"video"===e.type?n(S.vmhd,P):n(S.smhd,I),i(),y(e))},l=function(e,t){for(var i=[],r=t.length;r--;)i[r]=_(t[r]);return n.apply(null,[S.moof,o(e)].concat(i))},c=function(e){for(var t=e.length,i=[];t--;)i[t]=h(e[t]);
vendor: 12,136 bytes, line 17
17return n.apply(null,[S.moov,d(4294967295)].concat(i).concat(u(e)))},u=function(e){for(var t=e.length,i=[];t--;)i[t]=w(e[t]);return n.apply(null,[S.mvex].concat(i))},d=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(S.mvhd,t)},v=function(e){var t,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)t=r[i].flags,a[i+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(S.sdtp,a)},y=function(e){return n(S.stbl,b(e),n(S.stts,R),n(S.stsc,j),n(S.stsz,M),n(S.stco,D))},b=function(e){return n(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?N(e):$(e))},N=function(e){var t,i,r=e.sps||[],a=e.pps||[],o=[],s=[];for(t=0;t<r.length;t++)o.push((65280&r[t].byteLength)>>>8),o.push(255&r[t].byteLength),o=o.concat(Array.prototype.slice.call(r[t]));for(t=0;t<a.length;t++)s.push((65280&a[t].byteLength)>>>8),s.push(255&a[t].byteLength),s=s.concat(Array.prototype.slice.call(a[t]));if(i=[S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[a.length],s))),n(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],c=e.sarRatio[1];i.push(n(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return n.apply(null,i)},$=function(e){return n(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},f=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(S.tkhd,t)},_=function(e){var t,i,r,a,o,s;return t=n(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),o=Math.floor(e.baseMediaDecodeTime/V),s=Math.floor(e.baseMediaDecodeTime%V),i=n(S.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(r=T(e,92),n(S.traf,t,i,r)):(a=v(e),r=T(e,a.length+92),n(S.traf,t,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,n(S.trak,f(e),p(e))},w=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(S.trex,t)},U=function(e,t){var n=0,i=0,r=0,a=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&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},F=function(e,t){var i,r,a,o,s,l;for(t+=20+16*(o=e.samples||[]).length,a=U(o,t),(r=new Uint8Array(a.length+16*o.length)).set(a),i=a.length,l=0;l<o.length;l++)s=o[l],r[i++]=(4278190080&s.duration)>>>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 n(S.trun,r)},B=function(e,t){var i,r,a,o,s,l;for(t+=20+8*(o=e.samples||[]).length,a=U(o,t),(i=new Uint8Array(a.length+8*o.length)).set(a),r=a.length,l=0;l<o.length;l++)s=o[l],i[r++]=(4278190080&s.duration)>>>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 n(S.trun,i)},T=function(e,t){return"audio"===e.type?B(e,t):F(e,t)};a=function(){return n(S.ftyp,k,x,k,C)};var X,W,G,Y,K,Q,J,Z,ee=function(e){return n(S.mdat,e)},te=l,ne=function(e){var t,n=a(),i=c(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t},ie=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},re=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},ae=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},oe=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},se=function(e,t){var n,i,r,a,o,s=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)o=a[i],s+=(r=ie(o,s)).size,l.push(r);return l},le=function(e){var t,n,i,r,a,o,s=0,l=e.byteLength,c=e.nalCount,u=new Uint8Array(l+4*c),d=new DataView(u.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)o=a[i],d.setUint32(s,o.data.byteLength),s+=4,u.set(o.data,s),s+=o.data.byteLength;return u},ce=[33,16,5,32,164,27],ue=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],de=function(e){for(var t=[];e--;)t.push(0);return t},he=function(){if(!X){var e={96e3:[ce,[227,64],de(154),[56]],88200:[ce,[231],de(170),[56]],64e3:[ce,[248,192],de(240),[56]],48e3:[ce,[255,192],de(268),[55,148,128],de(54),[112]],44100:[ce,[255,192],de(268),[55,163,128],de(84),[112]],32e3:[ce,[255,192],de(268),[55,234],de(226),[112]],24e3:[ce,[255,192],de(268),[55,255,128],de(268),[111,112],de(126),[224]],16e3:[ce,[255,192],de(268),[55,255,128],de(268),[111,255],de(269),[223,108],de(195),[1,192]],12e3:[ue,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,253,128],de(259),[56]],11025:[ue,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,255,192],de(268),[55,175,128],de(108),[112]],8e3:[ue,de(268),[3,121,16],de(47),[7]]};t=e,X=Object.keys(t).reduce((function(e,n){return e[n]=new Uint8Array(t[n].reduce((function(e,t){return e.concat(t)}),[])),e}),{})}var t;return X};Q=function(e,t){return W(K(e,t))},J=function(e,t){return G(Y(e),t)},Z=function(e,t,n){return Y(n?e:e-t)};var fe=9e4,pe=W=function(e){return 9e4*e},me=(G=function(e,t){return e*t},Y=function(e){return e/9e4}),ge=(K=function(e,t){return e/t},Q),ve=J,ye=Z,be=function(e,t,n,i){var r,a,o,s,l,c=0,u=0,d=0;if(t.length&&(r=ge(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(fe/(e.samplerate/1024)),n&&i&&(c=r-Math.max(n,i),d=(u=Math.floor(c/a))*a),!(u<1||d>fe/2))){for((o=he()[e.samplerate])||(o=t[0].data),s=0;s<u;s++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-a,pts:l.pts-a});return e.baseMediaDecodeTime-=Math.floor(ve(d,e.samplerate)),d}},_e=function(e,t,n){return t.minSegmentDts>=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)})))},we=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},Te=function(e){var t,n,i=0,r=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},Se=fe,ke=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},xe=function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/Se,n=Math.floor(n)),n},Ce=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Ee=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},Ae=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Oe=function(e,t){var n,i,r,a,o=[];if(!(64&t[0]))return o;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[(r=3*n)+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],o.push(a));return o},Pe=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},Ie=4,Le=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new ze(0,0),new ze(0,1),new ze(1,0),new ze(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ne({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(Le.prototype=new z).push=function(e){var t,n,i;
vendor: 14,423 bytes, line 17
17if("sei_rbsp"===e.nalUnitType&&(t=Ee(e.escapedRBSP)).payload&&t.payloadType===Ie&&(n=Ae(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Oe(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Le.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Le.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Le.prototype.flush=function(){return this.flushStream("flush")},Le.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Le.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Le.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Le.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Le.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Le.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Le.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var De={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},je=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Me=function(e){this.windowNum=e,this.reset()};Me.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Me.prototype.getText=function(){return this.rows.join("\n")},Me.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Me.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Me.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Me.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Me.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Re=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Me(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};Re.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Me(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},Re.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Re.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 Ne=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};Ne.prototype=new z,Ne.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ne.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},Ne.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)i=31&(a=t[r++]),7===(n=a>>5)&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},Ne.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],je(i)?r=this.handleText(r,o):24===i?r=this.multiByteCharacter(r,o):16===i?r=this.extendedCommands(r,o):128<=i&&i<=135?r=this.setCurrentWindow(r,o):152<=i&&i<=159?r=this.defineWindow(r,o):136===i?r=this.clearWindows(r,o):140===i?r=this.deleteWindows(r,o):137===i?r=this.displayWindows(r,o):138===i?r=this.hideWindows(r,o):139===i?r=this.toggleWindows(r,o):151===i?r=this.setWindowAttributes(r,o):144===i?r=this.setPenAttributes(r,o):145===i?r=this.setPenColor(r,o):146===i?r=this.setPenLocation(r,o):143===i?o=this.reset(r,o):8===i?o.currentWindow.backspace():12===i?o.currentWindow.clearText():13===i?o.currentWindow.pendingNewLine=!0:14===i?o.currentWindow.clearText():141===i&&r++},Ne.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return je(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},Ne.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Ne.prototype.initService=function(e,t){var n,i,r=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new Re(e,i,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},Ne.prototype.handleText=function(e,t,n){var i,r,a,o,s=n&&n.isExtended,l=n&&n.isMultiByte,c=this.current708Packet.data,u=s?4096:0,d=c[e],h=c[e+1],f=t.currentWindow;return t.textDecoder_&&!s?(l?(r=[d,h],e++):r=[d],i=t.textDecoder_.decode(new Uint8Array(r))):(o=De[a=u|d]||a,i=4096&a&&a===o?"":String.fromCharCode(o)),f.pendingNewLine&&!f.isEmpty()&&f.newLine(this.getPts(e)),f.pendingNewLine=!1,f.addText(i),e},Ne.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return je(i)&&je(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Ne.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},Ne.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},Ne.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},Ne.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},Ne.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)},Ne.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<<r&&(t.windows[r].visible=1);return e},Ne.prototype.hideWindows=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<<r&&(t.windows[r].visible=0);return e},Ne.prototype.toggleWindows=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<<r&&(t.windows[r].visible^=1);return e},Ne.prototype.clearWindows=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<<r&&t.windows[r].clearText();return e},Ne.prototype.deleteWindows=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<<r&&t.windows[r].reset();return e},Ne.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},Ne.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},Ne.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},Ne.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var $e={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},Be=function(e){return null===e?"":(e=$e[e]||e,String.fromCharCode(e))},Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ue=function(){for(var e=[],t=15;t--;)e.push("");return e},ze=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,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Ue();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ue();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Ue()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=Be((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=Be((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var o=Fe.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=Be(i),a+=Be(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};ze.prototype=new z,ze.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream
vendor: 7,650 bytes, line 17
17:this.name_})},ze.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Ue(),this.nonDisplayed_=Ue(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},ze.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},ze.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},ze.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},ze.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},ze.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},ze.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},ze.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},ze.prototype.isNormalChar=function(e){return e>=32&&e<=127},ze.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Ue(),this.displayed_=Ue()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},ze.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},ze.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},ze.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},ze.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},ze.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},ze.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var He={CaptionStream:Le,Cea608Stream:ze,Cea708Stream:Ne},qe={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ve=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Xe=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Ve(e.dts,i),e.pts=Ve(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Xe.prototype=new z;var We,Ge=Xe,Ye=Ve,Ke=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Qe=function(e,t,n){return decodeURIComponent(Ke(e,t,n))},Je=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ze={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Qe(e.data,1,t),e.value=Qe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Qe(e.data,1,t),e.url=Qe(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,n;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(n=e.data,unescape(Ke(n,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(We=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(We.prototype.init.call(this),this.dispatchType=qe.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,s,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=Je(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<i;)t.data.set(r[0].data.subarray(0,i-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=Je(t.data.subarray(10,14)),i-=Je(t.data.subarray(16,20)));do{if((o=Je(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((s={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+o+10)}).key=s.id,Ze[s.id]&&(Ze[s.id](s),"com.apple.streaming.transportStreamTimestamp"===s.owner)){var c=s.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,u+=3&c[7],s.timeStamp=u,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),n+=10,n+=o}while(n<i);this.trigger("data",t)}}}).prototype=new z;var et,tt,nt,it=We,rt=Ge;(et=function(){var e=new Uint8Array(188),t=0;et.prototype.init.call(this),this.push=function(n){var i,r=0,a=188;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;)71!==i[r]||71!==i[a]?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=188,a+=188);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new z,(tt=function(){var e,t,n,i;tt.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],o=(31&e[r+1])<<8|e[r+2];a===qe.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=o:a===qe.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=o:a===qe.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][o]=a),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(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());
vendor: 4,697 bytes, line 17
17else 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=qe.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=qe.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 z,tt.STREAM_TYPES={h264:27,adts:15},(nt=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},o=function(e,n,i){var r,a,o=new Uint8Array(e.size),s={type:n},l=0,c=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,l=0;l<e.data.length;l++)a=e.data[l],o.set(a.data,c),c+=a.data.byteLength;var u,d,h,f;d=s,f=(u=o)[0]<<16|u[1]<<8|u[2],d.data=new Uint8Array,1===f&&(d.packetLength=6+(u[4]<<8|u[5]),d.dataAlignmentIndicator=0!=(4&u[6]),192&(h=u[7])&&(d.pts=(14&u[9])<<27|(255&u[10])<<20|(254&u[11])<<12|(255&u[12])<<5|(254&u[13])>>>3,d.pts*=4,d.pts+=(6&u[13])>>>1,d.dts=d.pts,64&h&&(d.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,d.dts*=4,d.dts+=(6&u[18])>>>1)),d.data=u.subarray(9+u[8])),r="video"===n||s.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",s)}};nt.prototype.init.call(this),this.push=function(s){({pat:function(){},pes:function(){var e,t;switch(s.streamType){case qe.H264_STREAM_TYPE:e=i,t="video";break;case qe.ADTS_STREAM_TYPE:e=r,t="audio";break;case qe.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}s.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(s),e.size+=s.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=s.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[s.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new z;var at={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:et,TransportParseStream:tt,ElementaryStream:nt,TimestampRolloverStream:rt,CaptionStream:He.CaptionStream,Cea608Stream:He.Cea608Stream,Cea708Stream:He.Cea708Stream,MetadataStream:it};for(var ot in qe)qe.hasOwnProperty(ot)&&(at[ot]=qe[ot]);var st,lt=at,ct=fe,ut=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(st=function(e){var t,n=0;st.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,a,o,s,l,c=0;if(e||(n=0),"audio"===i.type){var u;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof u&&(this.skipWarn_(u,c),u=null),a=2*(1&~t[c+1]),r=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(s=1024*(1+(3&t[c+6])))*ct/ut[(60&t[c+2])>>>2],t.byteLength-c<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:s,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:ut[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+a,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")}}).prototype=new z;var dt,ht,ft,pt=st,mt=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,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(r,r+o)),n=new DataView(a.buffer).getUint32(0),i=8*o,t-=o},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;
vendor: 9,003 bytes, line 17
17for(e=0;e<i;++e)if(0!=(n&2147483648>>>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()};(ht=function(){var e,t,n=0;ht.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new z,ft={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(dt=function(){var e,t,n,i,r,a,o,s=new ht;dt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,s.push(e))},s.on("data",(function(o){var s={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=r(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=r(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)})),s.on("done",(function(){e.trigger("done")})),s.on("partialdone",(function(){e.trigger("partialdone")})),s.on("reset",(function(){e.trigger("reset")})),s.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r},r=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===r[0]&&(o++,r.shift()),n[a]=e[o];return n},a=function(e){var t,n,i,r,a,s,l,c,u,d,h,f,p=0,m=0,g=0,v=0,y=[1,1];if(n=(t=new mt(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),ft[n]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,f=0;f<h;f++)t.readBoolean()&&o(f<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),f=0;f<l;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(p=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(c+1)-2*p-2*m,height:(2-d)*(u+1)*16-2*g-2*v,sarRatio:y}}}).prototype=new z;var gt,vt={H264Stream:dt,NalByteStream:ht},yt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],bt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},_t=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},wt={isLikelyAacData:function(e){var t=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=bt(t,n))}(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:bt,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<e.length;){if(255===e[t]&&240==(246&e[t+1]))return yt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=_t(e.subarray(10,14)));do{if((n=_t(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}(i,0,r))){var a=i.subarray(r+1),o=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return o*=4,o+=3&a[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}};(gt=function(){var e=new Uint8Array,t=0;gt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,o,s=0,l=0;for(e.length?(o=e.length,(e=new Uint8Array(n.byteLength+o)).set(e.subarray(0,o)),e.set(n,o)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!=(255&e[l])||240!=(240&e[l+1]))l++;else{if(e.length-l<7)break;if(l+(s=wt.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",a),l+=s}else{if(e.length-l<10)break;if(l+(s=wt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",r),l+=s}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new z;var Tt,St,kt,xt,Ct=gt,Et=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],At=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Ot=vt.H264Stream,Pt=wt.isLikelyAacData,It=fe,Lt=function(e,t){t.stream=e,this.trigger("log",t)},Dt=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Lt.bind(e,r))}},jt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Mt=function(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}};(St=function(e,t){var n,i=[],r=0,a=0,o=1/0;n=(t=t||{}).firstSequenceNumber||0,St.prototype.init.call(this),this.push=function(t){Ce(e,t),e&&Et.forEach((function(n){e[n]=t[n]})),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var s,l,c,u,d,h,f;0!==i.length?(s=_e(i,e,r),e.baseMediaDecodeTime=xe(e,t.keepOriginalTimestamps),f=be(e,s,a,o),e.samples=we(s),c=ee(Te(s)),i=[],l=te(n,[e]),u=new Uint8Array(l.byteLength+c.byteLength),n++,u.set(l),u.set(c,l.byteLength),ke(e),d=Math.ceil(1024*It/e.samplerate),s.length&&(h=s.length*d,this.trigger("segmentTimingInfo",Mt(ge(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+h,s[0].pts+h,f||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){ke(e),i=[],this.trigger("reset")}}).prototype=new z,(Tt=function(e,t){var n,i,r,a=[],o=[];n=(t=t||{}).firstSequenceNumber||0,Tt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ce(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],At.forEach((function(t){e[t]=i[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,r,s,l,c,u,d,h,f=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();
vendor: 16,296 bytes, line 17
17if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=re(a),(s=ae(i))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],e))?(f=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=oe(s)),o.length){var p;if(!(p=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ke(e),s=p}Ce(e,s),e.samples=se(s),c=ee(le(s)),e.baseMediaDecodeTime=xe(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",Mt(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,f)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=te(n,[e]),u=new Uint8Array(l.byteLength+c.byteLength),n++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){ke(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,o,s=1/0;for(o=0;o<this.gopCache_.length;o++)r=(a=this.gopCache_[o]).gop,e.pps&&jt(e.pps[0],a.pps[0])&&e.sps&&jt(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||s>n)&&(i=a,s=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,s,l,c;for(a=e.byteLength,s=e.nalCount,l=e.duration,t=n=0;t<o.length&&n<e.length&&(i=o[t],r=e[n],i.pts!==r.pts);)r.pts>i.pts?t++:(n++,a-=r.byteLength,s-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((c=e.slice(n)).byteLength=a,c.duration=l,c.nalCount=s,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,s,l;for(t=o.length-1,n=e.length-1,a=null,s=!1;t>=0&&n>=0;){if(i=o[t],r=e[n],i.pts===r.pts){s=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(0===(l=s?n:a))return e;var c=e.slice(l),u=c.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 c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){o=e}}).prototype=new z,(xt=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,xt.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 z,xt.prototype.flush=function(e){var t,n,i,r,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,At.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Et.forEach((function(e){o.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=ne(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=ye(t.startPts,s,this.keepOriginalTimestamps),t.endTime=ye(t.endPts,s,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=ye(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),r=0;r<o.captions.length;r++)t=o.captions[r],this.trigger("caption",t);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},xt.prototype.setRemux=function(e){this.remuxTracks=e},(kt=function(e){var t,n,i=this,r=!0;kt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new lt.MetadataStream,r.aacStream=new Ct,r.audioTimestampRolloverStream=new lt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new lt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new pt,r.coalesceStream=new xt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(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")),Dt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new lt.MetadataStream,r.packetStream=new lt.TransportPacketStream,r.parseStream=new lt.TransportParseStream,r.elementaryStream=new lt.ElementaryStream,r.timestampRolloverStream=new lt.TimestampRolloverStream,r.adtsStream=new pt,r.h264Stream=new Ot,r.captionStream=new lt.CaptionStream(e),r.coalesceStream=new xt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){for(o=a.tracks.length;o--;)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||((n=a.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Tt(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")),Dt(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,ke(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,ke(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){if(r){var t=Pt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new z;var Rt,Nt,$t,Bt={Transmuxer:kt,VideoSegmentStream:Tt,AudioSegmentStream:St,AUDIO_PROPERTIES:Et,VIDEO_PROPERTIES:At,generateSegmentTimingInfo:Mt},Ft=function(e){return e>>>0},Ut=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},zt=Ft,Ht=function e(t,n){var i,r,a,o,s,l=[];if(!n.length)return null;for(i=0;i<t.byteLength;)r=zt(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=Ut(t.subarray(i+4,i+8)),o=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(i+8,o)):(s=e(t.subarray(i+8,o),n.slice(1))).length&&(l=l.concat(s))),i=o;return l},qt=Ft,Vt=q.getUint64,Xt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Vt(e.subarray(4)):t.baseMediaDecodeTime=qt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Wt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Gt=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],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],l=4&n.flags[1],c=8&n.flags[1],u=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&u&&(t={flags:Wt(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),u--);u--;)t={},o&&(t.duration=i.getUint32(d),d+=4),s&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=Wt(e.subarray(d,d+4)),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},Yt=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],o=8&i.flags[2],s=16&i.flags[2],l=32&i.flags[2],c=65536&i.flags[0],u=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(i.defaultSampleDuration=n.getUint32(t),t+=4),s&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),c&&(i.durationIsEmpty=!0),!r&&u&&(i.baseDataOffsetIsMoof=!0),i},Kt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Qt="undefined"!=typeof window?window:void 0!==Kt?Kt:"undefined"!=typeof self?self:{},Jt=Pe,Zt=He.CaptionStream,en=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},tn=function(e,t){var n=Ht(e,["moof","traf"]),i=Ht(e,["mdat"]),r={},a=[];return i.forEach((function(e,t){var i=n[t];a.push({mdat:e,traf:i})})),a.forEach((function(e){var n,i=e.mdat,a=e.traf,o=Ht(a,["tfhd"]),s=Yt(o[0]),l=s.trackId,c=Ht(a,["tfdt"]),u=c.length>0?Xt(c[0]).baseMediaDecodeTime:0,d=Ht(a,["trun"]);t===l&&d.length>0&&(n=function(e,t,n){var i,r,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=s.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var c=e.subarray(r+1,r+1+a),u=en(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:c,escapedRBSP:Jt(c),trackId:n},u)i.pts=u.pts,i.dts=u.dts,o=u;else{if(!o){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=o.pts,i.dts=o.dts}l.seiNals.push(i)}return l}(i,function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach((function(e){var t=Gt(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+Qt.BigInt(e.compositionTimeOffset),i+=Qt.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),s=s.concat(t)})),s}(d,u,s),l),r[l]||(r[l]={seiNals:[],logs:[]}),r[l].seiNals=r[l].seiNals.concat(n.seiNals),r[l].logs=r[l].logs.concat(n.logs))})),r},nn=function(){var e,t,n,i,r,a,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new Zt,o=!0,a=!!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,a,o){var s;if(!this.isInitialized())return null;if(!a||!o)return null;if(this.isNewInit(a,o))n=a[0],i=o[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,o)}return(s=function(e,t,n){if(null===t)return null;var i=tn(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(e,n,i))&&s.logs&&(r.logs=r.logs.concat(s.logs)),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStream
vendor: 6,604 bytes, line 17
17s:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},rn=Ft,an=function(e){return("00"+e.toString(16)).slice(-2)},on=q.getUint64;Rt=function(e,t){var n=Ht(t,["moof","traf"]).reduce((function(t,n){var i,r,a=Ht(n,["tfhd"])[0],o=rn(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),s=e[o]||9e4,l=Ht(n,["tfdt"])[0],c=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(i=1===l[0]?on(l.subarray(4,12)):c.getUint32(4))?r=i/Qt.BigInt(s):"number"!=typeof i||isNaN(i)||(r=i/s),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t}),1/0);return"bigint"==typeof n||isFinite(n)?n:0},Nt=function(e){var t=Ht(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=Ht(e,["tkhd"])[0];a&&(i=(t=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var o=Ht(e,["mdia","hdlr"])[0];if(o){var s=Ut(o.subarray(8,12));r.type="vide"===s?"video":"soun"===s?"audio":s}var l=Ht(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);r.codec=Ut(c.subarray(4,8));var u,d=Ht(c,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(u=d.subarray(78),"avcC"===Ut(u.subarray(4,8))&&u.length>11?(r.codec+=".",r.codec+=an(u[9]),r.codec+=an(u[10]),r.codec+=an(u[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(u=d.subarray(28),"esds"===Ut(u.subarray(4,8))&&u.length>20&&0!==u[19]?(r.codec+="."+an(u[19]),r.codec+="."+an(u[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Ht(e,["mdia","mdhd"])[0];h&&(r.timescale=$t(h)),n.push(r)})),n};var sn=Rt,ln=Nt,cn=($t=function(e){var t=0===e[0]?12:20;return rn(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},function(e){var t=31&e[1];return t<<=8,t|=e[2]}),un=function(e){return!!(64&e[1])},dn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},hn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},fn={parseType:function(e,t){var n=cn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=un(e),n=4+dn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=un(e),i=4+dn(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var a=12+((15&e[i+10])<<8|e[i+11]);a<r;){var o=i+a;t[(31&e[o+1])<<8|e[o+2]]=e[o],a+=5+((15&e[o+3])<<8|e[o+4])}return t}},parsePayloadUnitStartIndicator:un,parsePesType:function(e,t){switch(t[cn(e)]){case qe.H264_STREAM_TYPE:return"video";case qe.ADTS_STREAM_TYPE:return"audio";case qe.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!un(e))return null;var t=4+dn(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).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,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.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,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t=4+dn(e),n=e.subarray(t),i=0,r=0,a=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===hn(31&n[r+3])&&(a=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===hn(31&n[r+3])&&(a=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===hn(31&n[r+3])&&(a=!0),a}},pn=Ye,mn={};mn.ts=fn,mn.aac=wt;var gn=fe,vn=function(e,t,n){for(var i,r,a,o,s=0,l=188,c=!1;l<=e.byteLength;)if(71!==e[s]||71!==e[l]&&l!==e.byteLength)s++,l++;else{switch(i=e.subarray(s,l),mn.ts.parseType(i,t.pid)){case"pes":r=mn.ts.parsePesType(i,t.table),a=mn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(o=mn.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),c=!0)}if(c)break;s+=188,l+=188}for(s=(l=e.byteLength)-188,c=!1;s>=0;)if(71!==e[s]||71!==e[l]&&l!==e.byteLength)s--,l--;else{switch(i=e.subarray(s,l),mn.ts.parseType(i,t.pid)){case"pes":r=mn.ts.parsePesType(i,t.table),a=mn.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(o=mn.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),c=!0)}if(c)break;s-=188,l-=188}},yn=function(e,t,n){for(var i,r,a,o,s,l,c,u=0,d=188,h=!1,f={data:[],size:0};d<e.byteLength;)if(71!==e[u]||71!==e[d])u++,d++;else{switch(i=e.subarray(u,d),mn.ts.parseType(i,t.pid)){case"pes":if(r=mn.ts.parsePesType(i,t.table),a=mn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!h&&(o=mn.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0),!n.firstKeyFrame)){if(a&&0!==f.size){for(s=new Uint8Array(f.size),l=0;f.data.length;)c=f.data.shift(),s.set(c,l),l+=c.byteLength;if(mn.ts.videoPacketContainsKeyFrame(s)){var p=mn.ts.parsePesTime(s);p?(n.firstKeyFrame=p,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(i),f.size+=i.byteLength}}if(h&&n.firstKeyFrame)break;u+=188,d+=188}for(u=(d=e.byteLength)-188,h=!1;u>=0;)if(71!==e[u]||71!==e[d])u--,d--;else{switch(i=e.subarray(u,d),mn.ts.parseType(i,t.pid)){case"pes":r=mn.ts.parsePesType(i,t.table),a=mn.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(o=mn.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0)}if(h)break;u-=188,d-=188}},bn=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,i=0,r=188;r<e.byteLength;)if(71!==e[i]||71!==e[r])i++,r++;else{switch(n=e.subarray(i,r),mn.ts.parseType(n,t.pid)){case"pat":t.pid=mn.ts.parsePat(n);break;case"pmt":var a=mn.ts.parsePmt(n);t.table=t.table||{}
17,Object.keys(a).forEach((function(e){t.table[e]=a[e]}))}i+=188,r+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case qe.H264_STREAM_TYPE:n.video=[],yn(e,t,n),0===n.video.length&&delete n.video;break;case qe.ADTS_STREAM_TYPE:n.audio=[],vn(e,t,n),0===n.audio.length&&delete n.audio}}return n},_n=function(e,t){var n;return(n=mn.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,r=null,a=null,o=0,s=0;e.length-s>=3;){switch(mn.aac.parseType(e,s)){case"timed-metadata":if(e.length-s<10){n=!0;break}if((o=mn.aac.parseId3TagSize(e,s))>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=mn.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if((o=mn.aac.parseAdtsSize(e,s))>e.length){n=!0;break}null===r&&(t=e.subarray(s,s+o),r=mn.aac.parseSampleRate(t)),i++,s+=o;break;default:s++}if(n)return null}if(null===r||null===a)return null;var l=gn/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}}(e):bn(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=pn(e.dts,n),e.pts=pn(e.pts,n),e.dtsTime=e.dts/gn,e.ptsTime=e.pts/gn}))}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=pn(e.dts,i),e.pts=pn(e.pts,i),e.dtsTime=e.dts/gn,e.ptsTime=e.pts/gn})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=pn(r.dts,i),r.pts=pn(r.pts,i),r.dtsTime=r.dts/gn,r.ptsTime=r.pts/gn}}}(n,t),n):null},wn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Bt.Transmuxer(this.options),function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.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:me(t.start.dts),presentation:me(t.start.pts)},end:{decode:me(t.end.dts),presentation:me(t.end.pts)},baseMediaDecodeTime:me(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:me(t.start.dts),presentation:me(t.start.pts)},end:{decode:me(t.end.dts),presentation:me(t.end.pts)},baseMediaDecodeTime:me(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=me(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:me(t.start),end:me(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:me(t.start),end:me(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new nn,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=sn(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=ln(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!=typeof n||isNaN(n)?void 0:n*fe,r=_n(t,i),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(pe(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(pe(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}();
17self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new wn(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new wn(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}})))),go=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,o=e.onData,s=e.onTrackInfo,l=e.onAudioTimingInfo,c=e.onVideoTimingInfo,u=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,f=e.onCaptions,p=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},b=v;if(t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,o=i.captions,s=i.captionStreams,l=i.metadata,c=i.videoFrameDtsTime,u=i.videoFramePtsTime;t.buffer.push({captions:o,captionStreams:s,metadata:l});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==c&&(h.videoFrameDtsTime=c),void 0!==u&&(h.videoFramePtsTime=u),n(h)}(n,y,o),"trackinfo"===n.data.action&&s(n.data.trackInfo),"gopInfo"===n.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(n,y),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&u(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&f(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:y,callback:p}),vo(t))))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var _=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:_,byteOffset:w,byteLength:n.byteLength},[_])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},vo=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():go(e.currentTransmux))},yo=function(e,t){e.postMessage({action:t}),vo(e)},bo=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void yo(t,e);t.transmuxQueue.push(yo.bind(null,t,e))},_o=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void go(e);e.transmuxer.transmuxQueue.push(e)},wo=function(e){bo("reset",e)},To=function(e){var t=new mo;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},So=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=c()({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",(function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))})),e.data){var a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var o=[a?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},ko=2,xo=-101,Co=-102,Eo=function(e){e.forEach((function(e){e.abort()}))},Ao=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:xo,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Co,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:ko,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:ko,xhr:t}:null},Oo=function(e,t,n){return function(i,r){var a=r.response,o=Ao(i,r);if(o)return n(o,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:ko,xhr:r},e);for(var s=new DataView(a),l=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),c=0;c<t.length;c++)t[c].bytes=l;return n(null,e)}},Po=function(e,t){var n=Object(M.a)(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,
17code:ko})}So({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return e.map.bytes=r,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null)}})},Io=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=Ao(e,r);if(a)return n(a,t);var o="arraybuffer"!==i&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}},Lo=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=t.map&&t.map.tracks||{},m=Boolean(p.audio&&p.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end");So({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),i=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&y(r.videoStart),g=null,y=null),_o({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(m&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),v&&void 0!==e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,n){s(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){u()},onTransmuxerLog:f,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})},Do=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=new Uint8Array(n);if(Object(M.b)(p)){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:p,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};So({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=p=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?So({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEach((function(e){f(Wr.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=Object(M.a)(p)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Lo({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f})}else h(null,t,{})},jo=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,o=e.decryptionWorker;o.addEventListener("message",(function e(n){if(n.data.source===i){o.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}})),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),o.postMessage(Ga({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},Mo=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,Eo(t),h(e,g);if((p+=1)===t.length){var v=function(){if(g.encryptedBytes)return function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog;jo({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t}
17,(function(e){n.bytes=e,Do({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f})}))}({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f});Do({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return jo({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(e){g.map.bytes=e,Po(g,(function(e){if(e)return Eo(t),h(e,g);v()}))}));v()}}}},Ro=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){if(!e.target.aborted)return t.stats=Wr.mergeOptions(t.stats,function(e){var t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},No=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,o=e.progressFn,s=e.trackInfoFn,l=e.timingInfoFn,c=e.videoSegmentTimingInfoFn,u=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,f=e.isEndOfTimeline,p=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=Mo({activeXhrs:y,decryptionWorker:i,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var w=t(Wr.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),Oo(r,_,b));y.push(w)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var T=t(Wr.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),Oo(r,[r.map.key],b));y.push(T)}var S=t(Wr.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:qa(r.map)}),function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=Ao(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,Po(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}}({segment:r,finishProcessingFn:b}));y.push(S)}var k=Wr.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:qa(r)}),x=t(k,Io({segment:r,finishProcessingFn:b,responseType:k.responseType}));x.addEventListener("progress",Ro({segment:r,progressFn:o,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m})),y.push(x);var C={};return y.forEach((function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}}({loadendState:C,abortFn:a}))})),function(){return Eo(y)}},$o=Jr("CodecUtils"),Bo=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Fo=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push(Object(A.i)(""+i+r))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return $o("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},Uo=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},zo=function(e,t){var n=t.attributes||{},i=Fo(function(e){var t=e.attributes||{};if(t.CODECS)return Object(A.h)(t.CODECS)}(t)||[]);if(Bo(e,t)&&!i.audio&&!function(e,t){if(!Bo(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}(e,t)){var r=Fo(Object(A.d)(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Ho=Jr("PlaylistSelector"),qo=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},Vo=function(e,t){if(!e)return"";var n=a.a.getComputedStyle(e);return n?n[t]:""},Xo=function(e,t){var n=e.slice();e.sort((function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))},Wo=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||a.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),n-(i=i||a.a.Number.MAX_VALUE)},Go=function(e,t,n,i,r,o){if(e){var s={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:r},l=e.playlists;ka.isAudioOnly(e)&&(l=o.getAudioTrackPlaylists_(),s.audioOnly=!0);var c=l.map((function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||a.a.Number.MAX_VALUE,width:t,height:n,playlist:e}}));Xo(c,(function(e,t){return e.bandwidth-t.bandwidth}));var u=(c=c.filter((function(e){return!ka.isIncompatible(e.playlist)}))).filter((function(e){return ka.isEnabled(e.playlist)}));u.length||(u=c.filter((function(e){return!ka.isDisabled(e.playlist)})));var d=u.filter((function(e){return e.bandwidth*co.BANDWIDTH_VARIANCE<t})),h=d[d.length-1],f=d.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(!1===r){var p=f||u[0]||c[0];if(p&&p.playlist){var m="sortedPlaylistReps";return f&&(m="bandwidthBestRep"),u[0]&&(m="enabledPlaylistReps"),Ho("choosing "+qo(p)+" using "+m+" with options",s),p.playlist}return Ho("could not choose a playlist with options",s),null}var g=d.filter((function(e){return e.width&&e.height}));Xo(g,(function(e,t){return e.width-t.width}));var v=g.filter((function(e){return e.width===n&&e.height===i}));h=v[v.length-1];var y,b,_,w,T=v.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(T||(b=(y=g.filter((function(e){return e.width>n||e.height>i}))).filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=b[b.length-1],_=b.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),o.experimentalLeastPixelDiffSelector){var S=g.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));Xo(S,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),w=S[0]}var k=w||_||T||f||u[0]||c[0];if(k&&k.playlist){var x="sortedPlaylistReps";return w?x="leastPixelDiffRep":_?x="resolutionPlusOneRep":T?x="resolutionBestRep":f?x="bandwidthBestRep":u[0]&&(x="enabledPlaylistReps"),Ho("choosing "+qo(k)+" using "+x+" with options",s),k.playlist}return Ho("could not choose a playlist with options",s),null}},Yo=function(){var e=this.useDevicePixelRatio&&a.a.devicePixelRatio||1;return Go(this.playlists.master,this.systemBandwidth,parseInt(Vo(this.tech_.el(),"width"),10)*e,parseInt(Vo(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Ko=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,r=e.videoDuration;if(n){var o=a.a.WebKitDataCue||a.a.VTTCue,s=t.metadataTrack_;if(s&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!=typeof t||a.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEac
17h((function(e){var n=new o(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return Wr.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Wr.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Wr.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var l=s.cues,c=[],u=0;u<l.length;u++)l[u]&&c.push(l[u]);var d=c.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),h=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));h.forEach((function(e,t){var n=d[e],i=Number(h[t+1])||r;n.forEach((function(e){e.endTime=i}))}))}}},Qo=function(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)},Jo=function(e){return"number"==typeof e&&isFinite(e)},Zo=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,o=a.mediaSequence,s=a.id,l=a.segments,c=void 0===l?[]:l,u=e.mediaIndex,d=e.partIndex,h=e.timeline,f=c.length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var m="number"==typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?ua({preloadSegment:i})-1:0;return g+" ["+(o+u)+"/"+(o+f)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+p+"] playlist ["+s+"]"},es=function(e){return e+"TimingInfo"},ts=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==i}if("main"===r&&a){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==i}return!1},ns=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+1/30},is=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=n[e+"TimingInfo"];if(t){var r,o=t.start,s=t.end;"bigint"==typeof o||"bigint"==typeof s?r=a.a.BigInt(s)-a.a.BigInt(o):"number"==typeof o&&"number"==typeof s&&(r=s-o),void 0!==r&&r>i&&(i=r)}})),"bigint"==typeof i&&i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),i);if(!r)return null;var o=e.playlist.targetDuration,s=ns({segmentDuration:r,maxDuration:2*o}),l=ns({segmentDuration:r,maxDuration:o}),c="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+r+" when the reported duration is "+e.duration+" and the target duration is "+o+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return s||l?{severity:s?"warn":"info",message:c}:null},rs=function(e){function t(t,n){var i;if(i=e.call(this)||this,!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_=Wr.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=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_
17()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=Jr("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(f()(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}m()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return To({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_&&a.a.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,a.a.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_&&wo(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Wr.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)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=Ya(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=Ka(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},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
17+" => "+(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");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var s=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=s}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&wo(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===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){0===--r&&n()};for(var o in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*R.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*R.ONE_SECOND_IN_TS),o=e.slice(),s=e.length;s--&&!(e[s].pts<=a););if(-1===s)return o;for(var l=s+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),o.splice(l,s-l+1),o}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Qo(e,t,this.inbandTextTracks_[o]);Qo(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},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],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=ra(e)||0,n=aa(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var o=t[a];if(e===o.timeline&&(i.push(a),(r+=o.duration)>n))return a}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var s=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:t,s.parts&&s.parts[l+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=l+1):o.mediaIndex=this.mediaIndex+1}else{var c=ka.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),u=c.segmentIndex,d=c.startTime,h=c.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=u,o.startOfSegment=d,o.partIndex=h}var f=a[o.mediaIndex],p=f&&"number"==typeof o.partIndex&&f.parts&&f.parts[o.partIndex];if(!f||"number"==typeof o.partIndex&&!p)return null;if("number"!=typeof o.partIndex&&f.parts&&(o.partIndex=0,p=f.parts[0]),!n&&p&&!p.independent)if(0===o.partIndex){var m=a[o.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(o.mediaIndex-=1,o.partIndex=m.parts.length-1,o.independent="previous segment")}else f.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");var v=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=a.length-1&&v&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,l=e.getMediaInfoForTime,c=n.segments[i],u="number"==typeof o&&
17c.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||c.resolvedUri,mediaIndex:i,partIndex:u?o:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:u&&u.duration||c.duration,segment:c,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});var f=ra(this.sourceUpdater_.audioBuffered());return"number"==typeof f&&(d.audioAppendStart=f-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*R.ONE_SECOND_IN_TS);for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,i=t.currentTimeline,r=t.startOfSegment,a=t.buffered,t.overrideCheck||n!==i?n<i?r:a.length?a.end(a.length-1):r:null;var t,n,i,r,a},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=ka.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var o=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,l=e.syncController,c=t.playlists.filter((function(e){return!ka.isIncompatible(e)})),u=c.filter(ka.isEnabled);u.length||(u=c.filter((function(e){return!ka.isDisabled(e)})));var d=u.filter(ka.hasAttribute.bind(null,"BANDWIDTH")).map((function(e){var t=l.getSyncPoint(e,r,s,n)?1:2;return{playlist:e,rebufferingImpact:ka.estimateSegmentRequestTime(a,i,e)*t-o}})),h=d.filter((function(e){return e.rebufferingImpact<=0}));return Xo(h,(function(e,t){return Wo(t.playlist,e.playlist)})),h.length?h[0]:(Xo(d,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),d[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=r-a-o.rebufferingImpact,l=.5;a<=1/30&&(l=1),!o.playlist||o.playlist.uri===this.playlist_.uri||s<l||(this.bandwidth=o.playlist.attributes.BANDWIDTH*co.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Zo(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=es(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r={};t.forEach((function(e){r[e.stream]=r[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=r[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)})),Object.keys(r).forEach((function(e){var t=r[e],o=t.startTime,s=t.endTime,l=t.captions,c=n.inbandTextTracks_;n.logger_("adding cues from "+o+" -> "+s+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=n,o=n,s=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];l&&(a=l.label,o=l.language,s=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:s,label:a,language:o},!1).track}}}(c,n.vhs_.tech_,e),Qo(o,s,c[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var r=a.a.WebKitDataCue||a.a.VTTCue;
17n.forEach((function(e){var n=e.stream;t[n].addCue(new r(e.startTime+i,e.endTime+i,e.text))}))}}({captionArray:l,inbandTextTracks:c,timestampOffset:i})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),Ko({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!ts({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!ts({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[es(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=Ya(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,r=e.type,o=e.bytes,s=this.sourceUpdater_.audio
17Buffered(),l=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+ia(s).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+ia(l).join(", "));var c=s.length?s.start(0):0,u=s.length?s.end(s.length-1):0,d=l.length?l.start(0):0,h=l.length?l.end(l.length-1):0;if(u-c<=1&&h-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+o.byteLength+", audio buffer: "+ia(s).join(", ")+", video buffer: "+ia(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:r,bytes:o}));var f=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+f),this.remove(0,f,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=a.a.setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t,n,i,r=e.segmentInfo,a=e.type,o=e.initSegment,s=e.data,l=e.bytes;if(!l){var c=[s],u=s.byteLength;o&&(c.unshift(o),u+=o.byteLength),i=0,(t={bytes:u,segments:c}).bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach((function(e){n.set(e,i),i+=e.byteLength}))),l=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:a,bytes:l},this.handleAppendError_.bind(this,{segmentInfo:r,type:a,bytes:l}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=c()({},e,{forceTimestampOffset:!0});c()(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=i||r&&a;this.logger_("Requesting "+Zo(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=No({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.b
17ind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(Zo(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=function(e,t,n){var i=t-co.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Co)return;return this.pause(),e.code===xo?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},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,a=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,s=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!o)return l.start;var c=n.segments[i-1];return 0!==i&&c&&void 0!==c.start&&c.end===r+a?s.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,o=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||
17(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.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.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.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_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=is(e,this.sourceType_);if(t&&("warn"===t.severity?Wr.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Zo(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Zo(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 "+Zo(e))},n.recordThroughput_=function(e){if(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);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(Jo(n)&&Jo(i)){Qo(n,i,this.segmentMetadataTrack_);var r=a.a.WebKitDataCue||a.a.VTTCue,o={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.ur
17i,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},s=new r(n,i,JSON.stringify(o));s.value=o,this.segmentMetadataTrack_.addCue(s)}}},t}(Wr.EventTarget);function as(){}var os,ss=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},ls=["video","audio"],cs=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},us=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!cs(t,n)){if(r.type!==t){if(null===(i=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null}(t,n.queue)))return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},ds=function(e,t){var n=t[e+"Buffer"],i=ss(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},hs=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},fs=function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(hs(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(e)}}}},ps=function(e,t){return function(n,i){var r=i[n+"Buffer"];if(hs(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(r){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},ms=function(e){return function(t,n){var i=n[t+"Buffer"];hs(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},gs=function(e){return function(t,n){e()}},vs=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){Wr.log.warn("Failed to call media source endOfStream",e)}}}},ys=function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){Wr.log.warn("Failed to set media source duration",e)}}},bs=function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(hs(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(t){Wr.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},_s=function(e,t){return function(n){var i=ss(e),r=Object(A.e)(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},ws=function(e){return function(t){var n=t[e+"Buffer"];if(ds(e,t),hs(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(t){Wr.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},Ts=function(e){return function(t,n){var i=n[t+"Buffer"],r=Object(A.e)(e);if(hs(n.mediaSource,i)&&n.codecs[t]!==e){n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e);try{i.changeType(r),n.codecs[t]=e}catch(e){Wr.log.warn("Failed to changeType on "+t+"Buffer",e)}}}},Ss=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),us(t,n)},ks=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}us(e,t)}},xs=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return us("mediaSource",f()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Jr("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null}
17,n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=ks("video",f()(n)),n.onAudioUpdateEnd_=ks("audio",f()(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}m()(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){Ss({type:"mediaSource",sourceUpdater:this,action:_s(e,t),name:"addSourceBuffer"})},n.abort=function(e){Ss({type:e,sourceUpdater:this,action:bs(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Ss({type:"mediaSource",sourceUpdater:this,action:ws(e),name:"removeSourceBuffer"}):Wr.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Wr.browser.IE_VERSION&&!Wr.browser.IS_FIREFOX&&a.a.MediaSource&&a.a.MediaSource.prototype&&"function"==typeof a.a.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return a.a.SourceBuffer&&a.a.SourceBuffer.prototype&&"function"==typeof a.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?Ss({type:e,sourceUpdater:this,action:Ts(t),name:"changeType"}):Wr.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)}))},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");if(Ss({type:r,sourceUpdater:this,action:fs(a,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var o=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+o.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,o.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return hs(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Wr.createTimeRange()},n.videoBuffered=function(){return hs(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Wr.createTimeRange()},n.buffered=function(){var e=hs(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=hs(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var n=null,i=null,r=0,a=[],o=[];if(!(e&&e.length&&t&&t.length))return Wr.createTimeRange();for(var s=e.length;s--;)a.push({time:e.start(s),type:"start"}),a.push({time:e.end(s),type:"end"});for(s=t.length;s--;)a.push({time:t.start(s),type:"start"}),a.push({time:t.end(s),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),s=0;s<a.length;s++)"start"===a[s].type?2===++r&&(n=a[s].time):"end"===a[s].type&&1===--r&&(i=a[s].time),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return Wr.createTimeRanges(o)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=as),Ss({type:"mediaSource",sourceUpdater:this,action:ys(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=as),"string"!=typeof e&&(e=void 0),Ss({type:"mediaSource",sourceUpdater:this,action:vs(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=as),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Ss({type:"audio",sourceUpdater:this,action:ps(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=as),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Ss({type:"video",sourceUpdater:this,action:ps(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!cs("audio",this)&&!cs("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Ss({type:"audio",sourceUpdater:this,action:ms(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Ss({type:"video",sourceUpdater:this,action:ms(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&Ss({type:"audio",sourceUpdater:this,action:gs(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&Ss({type:"video",sourceUpdater:this,action:gs(e),name:"callback"})},n.dispose=function(){var e=this;
17this.trigger("dispose"),ls.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return ds(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(Wr.EventTarget),Cs=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Es=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),As=function(e){function t(){return e.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return m()(t,e),t}($()(Error)),Os=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.loadVttJs=t.loadVttJs,i.shouldSaveSegmentTimingInfo_=!1,i}m()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Wr.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Wr.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ya(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=Es.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Es,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){Qo(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",(function(){e.state="READY",e.paused()||e.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},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===xo&&this.handleTimeout_(),e.code===Co?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 o=r.segment;if(o.map&&(o.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof a.a.WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return i.segmentRequestFinished_(e,t,n)}),(function(){return i.stopForError({message:"Error loading vtt.js"})}));o.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+=o.duration,r.cues.forEac
17h((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new a.a.VTTCue(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&++r>1&&i.push(t[a]);i.length&&i.forEach((function(t){return e.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;if("function"!=typeof a.a.WebVTT)throw new As;"function"==typeof a.a.TextDecoder?t=new a.a.TextDecoder("utf8"):(t=a.a.WebVTT.StringDecoder(),n=!0);var i=new a.a.WebVTT.Parser(a.a,a.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){Wr.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var r=e.segment.map.bytes;n&&(r=Cs(r)),i.parse(r)}var o=e.bytes;n&&(o=Cs(o)),i.parse(o),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/R.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-i.duration)}}}else i.empty=!0},t}(rs),Ps=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},Is=[{name:"VOD",run:function(e,t,n,i,r){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=la(t);r=r||0;for(var l=0;l<s.length;l++){var c=s[t.endList||0===r?l:s.length-(l+1)],u=c.segment,d=e.timelineToDatetimeMappings[u.timeline];if(d&&u.dateTimeObject){var h=u.dateTimeObject.getTime()/1e3+d;if(u.parts&&"number"==typeof c.partIndex)for(var f=0;f<c.partIndex;f++)h+=u.parts[f].duration;var p=Math.abs(r-h);if(null!==o&&(0===p||o<p))break;o=p,a={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,o=null;r=r||0;for(var s=la(t),l=0;l<s.length;l++){var c=s[t.endList||0===r?l:s.length-(l+1)],u=c.segment,d=c.part&&c.part.start||u&&u.start;if(u.timeline===i&&void 0!==d){var h=Math.abs(r-d);if(null!==o&&o<h)break;(!a||null===o||o>=h)&&(o=h,a={time:d,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var l=t.discontinuityStarts[s],c=t.discontinuitySequence+s+1,u=e.discontinuities[c];if(u){var d=Math.abs(r-u.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:u.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],Ls=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Jr("SyncController"),n}m()(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+pa({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<Is.length;a++){var o=Is[a],s=o.run(this,e,t,n,i);s&&(s.strategy=o.name,r.push({strategy:o.name,syncPoint:s}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<i&&(i=o,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>86400)Wr.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start}
17,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,o=e.part,s=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+s.time+"] [mapping: "+s.mapping+"]")),i=e.startOfSegment,r=t.end+s.mapping;else{if(!s)return!1;i=t.start+s.mapping,r=t.end+s.mapping}return o&&(o.start=i,o.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,o=r-e.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var l=void 0;l=o<0?n.start-pa({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+pa({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Wr.EventTarget),Ds=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}m()(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,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Wr.EventTarget),js=ho(fo(po((function(){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function n(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 i=n((function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0})),r=n((function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),a=n((function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0})),o=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
17else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(); 18/*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */ 19var s,l=null,c=function(){function e(e){var t,n,i;l||(l=function(){var e,t,n,i,r,a,o,s,l=[[[],[],[],[],[]],[[],[],[],[],[]]],c=l[0],u=l[1],d=c[4],h=u[4],f=[],p=[];for(e=0;e<256;e++)p[(f[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=p[n]||1)for(a=(a=n^n<<1^n<<2^n<<3^n<<4)>>8^255&a^99,d[t]=a,h[a]=t,s=16843009*f[r=f[i=f[t]]]^65537*r^257*i^16843008*t,o=257*f[a]^16843008*a,e=0;e<4;e++)c[e][t]=o=o<<24^o>>>8,u[e][a]=s=s<<24^s>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),u[e]=u[e].slice(0);return l}()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],o=e.length,s=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var c=e.slice(0),u=[];for(this._key=[c,u],t=o;t<4*o+28;t++)i=c[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^s<<24,s=s<<1^283*(s>>7))),c[t]=c[t-o]^i;for(n=0;t;n++,t--)i=c[3&n?t:t-4],u[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){var o,s,l,c,u=this._key[1],d=e^u[0],h=i^u[1],f=n^u[2],p=t^u[3],m=u.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],w=v[3],T=v[4];for(c=0;c<m;c++)o=y[d>>>24]^b[h>>16&255]^_[f>>8&255]^w[255&p]^u[g],s=y[h>>>24]^b[f>>16&255]^_[p>>8&255]^w[255&d]^u[g+1],l=y[f>>>24]^b[p>>16&255]^_[d>>8&255]^w[255&h]^u[g+2],p=y[p>>>24]^b[d>>16&255]^_[h>>8&255]^w[255&f]^u[g+3],g+=4,d=o,h=s,f=l;for(c=0;c<4;c++)r[(3&-c)+a]=T[d>>>24]<<24^T[h>>16&255]<<16^T[f>>8&255]<<8^T[255&p]^u[g++],o=d,d=h,h=f,f=p,p=o},e}(),u=function(e){function t(){var t;return(t=e.call(this,o)||this).jobs=[],t.delay=1,t.timeout_=null,t}a(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}(o),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(){function e(t,n,i,r){var a=e.STEP,o=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(o.subarray(l,l+a),n,i,s)),l=a;l<o.length;l+=a)i=new Uint32Array([d(o[l-4]),d(o[l-3]),d(o[l-2]),d(o[l-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(l,l+a),n,i,s));this.asyncStream_.push((function(){ 20/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */ 21var e;r(null,(e=s).subarray(0,e.byteLength-e[e.byteLength-1]))}))}return e.prototype.decryptChunk_=function(e,t,n,i){return function(){var r=function(e,t,n){var i,r,a,o,s,l,u,h,f,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new c(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],o=n[3],f=0;f<p.length;f+=4)s=d(p[f]),l=d(p[f+1]),u=d(p[f+2]),h=d(p[f+3]),m.decrypt(s,l,u,h,v,f),v[f]=d(v[f]^i),v[f+1]=d(v[f+1]^r),v[f+2]=d(v[f+2]^a),v[f+3]=d(v[f+3]^o),i=s,r=l,a=u,o=h;return g}(e,t,n);i.set(r,e.byteOffset)}},i(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();s="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var f=s.BigInt||Number;f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000");var p=function(e){var t={};return Object.keys(e).forEach((function(n){var i,r=e[n];i=r,("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new h(n,i,r,(function(e,n){self.postMessage(p({source:t.source,decrypted:n}),[n.buffer])}))}})))),Ms=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Rs=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Ns=function(e,t){t.activePlaylistLoader=e,e.load()},$s={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Rs(n,i);var a=i.activeTrack(),o=i.activeGroup(),s=(o.filter((function(e){return e.default}))[0]||o[0]).id,l=i.tracks[s];if(a!==l){for(var c in Wr.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[c].enabled=i.tracks[c]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];Wr.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Rs(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},Bs={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",$s[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",$s[e](e,n))}},Fs={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,s=t.mediaTypes[e],l=s.groups,c=s.tracks,u=s.logger_,d=t.masterPlaylistLoader,h=Sa(d.master);for(var f in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main.default.playlists=d.master.playlists)),o[e])for(var p in l[f]||(l[f]=[]),o[e][f]){var m=o[e][f][p],g=void 0;if(h?(u("AUDIO group '"+f+"' label '"+p+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new Ba(m.playlists[0],n,a):m.resolvedUri?new Ba(m.resolvedUri,n,a):m.playlists&&"dash"===i?new lo(m.playlists[0],n,a,d):null,m=Wr.mergeOptions({id:p,playlistLoader:g},m),Bs[e](e,m.playlistLoader,t),l[f].push(m),void 0===c[p]){var v=new Wr.AudioTrack({id:p,kind:Ms(m),enabled:!1,language:m.language,default:m.default,label:p});c[p]=v}}r.on("error",$s[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,u=l.tracks,d=t.masterPlaylistLoader;for(var h in s[e])for(var f in c[h]||(c[h]=[]),s[e][h])if(!s[e][h][f].forced){var p=s[e][h][f],m=void 0;if("hls"===r)m=new Ba(p.resolvedUri,i,o);else if("dash"===r){if(!p.playlists.filter((function(e){return e.excludeUntil!==1/0})).length)return;m=new lo(p.playlists[0],i,o,d)}else"vhs-json"===r&&(m=new Ba(p.playlists?p.playlists[0]:p.resolvedUri,i,o));if(p=Wr.mergeOptions({id:f,playlistLoader:m},p),Bs[e](e,p.playlistLoader,t),c[h].push(p),void 0===u[f]){var g=n.addRemoteTextTrack({id:f,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:f}
21,!1).track;u[f]=g}}a.on("error",$s[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,o=r.tracks;for(var s in i[e])for(var l in a[s]||(a[s]=[]),i[e][s]){var c=i[e][s][l];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var u=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(u[d.instreamId]&&(d=Wr.mergeOptions(d,u[d.instreamId])),void 0===d.default&&delete d.default,a[s].push(Wr.mergeOptions({id:l},c)),void 0===o[l]){var h=n.addRemoteTextTrack({id:d.instreamId,kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;o[l]=h}}}}},Us=function e(t,n){for(var i=0;i<t.length;i++){if(wa(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},zs={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Hs=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Fs[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,o=a.AUDIO,s=a.main;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var o=null;a.attributes[e]&&(o=r[a.attributes[e]]);var s=Object.keys(r);if(!o)if("AUDIO"===e&&s.length>1&&Sa(t.master))for(var l=0;l<s.length;l++){var c=r[s[l]];if(Us(c,a)){o=c;break}}else r.main?o=r.main:1===s.length&&(o=r[s[0]]);return void 0===n?o:null!==n&&o&&o.filter((function(e){return e.id===n.id}))[0]||null}}(n,e),t[n].activeTrack=zs[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.getActiveGroup(),l=a.activePlaylistLoader,c=a.lastGroup_;s&&c&&s.id===c.id||(a.lastGroup_=s,a.lastTrack_=o,Rs(i,a),s&&!s.isMasterPlaylist&&(s.playlistLoader?(i.resyncLoader(),Ns(s.playlistLoader,a)):l&&r.resetEverything()))}}(n,e),t[n].onGroupChanging=function(e,t){return function(){var n=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,n.abort(),n.pause()}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,o=t.mediaTypes[e],s=o.activeTrack(),l=o.getActiveGroup(),c=o.activePlaylistLoader,u=o.lastTrack_;if((!u||!s||u.id!==s.id)&&(o.lastGroup_=l,o.lastTrack_=s,Rs(r,o),l)){if(l.isMasterPlaylist){if(!s||!u||s.id===u.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return o.logger_("track change. Switching master audio from "+u.id+" to "+s.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}c!==l.playlistLoader?(r.track&&r.track(s),r.resetEverything(),Ns(l.playlistLoader,o)):Ns(l.playlistLoader,o)}}}(n,e),t[n].getActiveGroup=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}}(n,e)}));var l=t.AUDIO.activeGroup();if(l){var c=(l.filter((function(e){return e.default}))[0]||l[0]).id;t.AUDIO.tracks[c].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(s.setAudio(!1),o.setAudio(!0)):s.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanging()}))}));var u=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var d in i.audioTracks().addEventListener("change",u),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",u),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[d]
21)},qs=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Vs=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Xs=function(e){function t(t){var n;n=e.call(this)||this;var i=t.src,r=t.handleManifestRedirects,o=t.withCredentials,s=t.tech,l=t.bandwidth,c=t.externVhs,u=t.useCueTags,d=t.blacklistDuration,h=t.enableLowInitialPlaylist,p=t.sourceType,m=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,v=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var b,_=t.maxPlaylistRetries;null==_&&(_=1/0),os=c,n.experimentalBufferBasedABR=Boolean(g),n.experimentalLeastPixelDiffSelector=Boolean(v),n.withCredentials=o,n.tech_=s,n.vhs_=s.vhs,n.sourceType_=p,n.useCueTags_=u,n.blacklistDuration=d,n.maxPlaylistRetries=_,n.enableLowInitialPlaylist=h,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:r,maxPlaylistRetries:_,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=(b={},["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(e){b[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:as,activeTrack:as,getActiveGroup:as,onGroupChanged:as,onTrackChanged:as,lastTrack_:null,logger_:Jr("MediaGroups["+e+"]")}})),b),n.mediaSource=new a.a.MediaSource,n.handleDurationChange_=n.handleDurationChange_.bind(f()(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(f()(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(f()(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Wr.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new Ls(t),n.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new js,n.sourceUpdater_=new xs(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new Ds;var w={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:l,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new lo(i,n.vhs_,n.requestOptions_):new Ba(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new rs(Wr.mergeOptions(w,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new rs(Wr.mergeOptions(w,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new Os(Wr.mergeOptions(w,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise((function(e,t){function n(){s.off("vttjserror",i),e()}function i(){s.off("vttjsloaded",n),t()}s.one("vttjsloaded",n),s.one("vttjserror",i),s.addWebVttScript_()}))}}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),qs.forEach((function(e){n[e+"_"]=Vs.bind(f()(n),e)})),n.logger_=Jr("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var T="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(T,(function(){var e=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))}
21)),n}m()(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(e){void 0===e&&(e="abr");var t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=a.a.setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(a.a.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 a=i.main||r.length&&i[r[0]];for(var o in a)if(a[o].default){n={label:o};break}}if(!n)return t;var s=[];for(var l in i)if(i[l][n.label]){var c=i[l][n.label];if(c.playlists&&c.playlists.length)s.push.apply(s,c.playlists);else if(c.uri)s.push(c);else if(e.playlists.length)for(var u=0;u<e.playlists.length;u++){var d=e.playlists[u];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&s.push(d)}}return s.length?s:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;_a(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),Hs({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){e.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;if(e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial"),!("vhs-json"===e.sourceType_&&e.initialMedia_.segments))return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;_a(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.masterPlaylistLoader_.load(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&(e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck")))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){n.AUDIO[a][o].uri||(i=!1)}i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),os.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pen
21dingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,l=e.experimentalBufferBasedABR,c=e.log;if(!r)return Wr.log.warn("We received no playlist to switch to. Please check your stream."),!1;var u="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return c(u+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(ea(n,i).length);if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(c(u+" as current playlist is live"),!0):(c("not "+u+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=aa(n,i),f=l?co.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:co.MAX_BUFFER_LOW_WATER_LINE;if(s<f)return c(u+" as duration < max low water line ("+s+" < "+f+")"),!0;var p=r.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(p<m&&(!l||h<o)){var g=u+" as next bandwidth < current bandwidth ("+p+" < "+m+")";return l&&(g+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+o+")"),c(g),!0}if((!l||p>m)&&h>=a){var v=u+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(v+=" and next bandwidth > current bandwidth ("+p+" > "+m+")"),c(v),!0}return c("not "+u+" as no switching criteria met"),!1}({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;this.mainSegmentLoader_.on("bandwidthupdate",(function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){e.experimentalBufferBasedABR&&e.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||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))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.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;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Wr.browser.IE_VERSION||Wr.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()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(Wr.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
21,n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=os.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=.1;var a=r.end(r.length-1);return a-i<=.1&&n-a<=.1},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(ya),o=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return Wr.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var s=!1;r.forEach((function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(s=!0,delete e.excludeUntil)}})),s&&(Wr.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,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"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var c=e.internal?this.logger_:Wr.log.warn,u=e.message?" "+e.message:"";c((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+u+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",o||h)},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 a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["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=ea(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:os.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=this.masterPlaylistLoader_.master,r=os.Playlist.seekable(t,n,os.Playlist.liveEdgeDelay(i,t));if(0!==r.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=os.Playlist.seekable(t,n,os.Playlist.liveEdgeDelay(i,t))).length)return}var a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=Wr.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+na(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=os.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;
21for(var i in n)n[i].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;var i=zo(this.master(),n),r={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=i.video||t.main.videoCodec||A.b),t.main.isMuxed&&(r.video+=","+(i.audio||t.main.audioCodec||A.a)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||a)&&(r.audio=i.audio||t.main.audioCodec||t.audio.audioCodec||A.a,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),r.audio||r.video){var o,s={};if(["video","audio"].forEach((function(e){if(r.hasOwnProperty(e)&&(i=t[e].isFmp4,a=r[e],!(i?Object(A.c)(a):Object(A.g)(a)))){var n=t[e].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(r[e]),"audio"===e&&(o=n)}var i,a})),a&&o&&n.attributes.AUDIO){var l=n.attributes.AUDIO;
21this.master().playlists.forEach((function(e){(e.attributes&&e.attributes.AUDIO)===l&&e!==n&&(e.excludeUntil=1/0)})),this.logger_("excluding audio group "+l+" as "+o+' does not support codec(s): "'+r.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];if(["video","audio"].forEach((function(t){var n=(Object(A.h)(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,i=(Object(A.h)(r[t]||"")[0]||{}).type;n&&i&&n.toLowerCase()!==i.toLowerCase()&&c.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+r[t]+'"')})),c.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+c.join(", ")+".",blacklistDuration:1/0,internal:!0})}return r}var u=Object.keys(s).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:n,internal:!0,message:u,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=zo(e.master,r),o=[];!a.audio||Object(A.g)(a.audio)||Object(A.c)(a.audio)||o.push("audio codec "+a.audio),!a.video||Object(A.g)(a.video)||Object(A.c)(a.video)||o.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&o.push("text codec "+a.text),o.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=Fo(Object(A.h)(e)),a=Uo(r),o=r.video&&Object(A.h)(r.video)[0]||null,s=r.audio&&Object(A.h)(r.audio)[0]||null;
21Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var l=[],c=zo(t.masterPlaylistLoader_.master,r),u=Uo(c);if(c.audio||c.video){if(u!==a&&l.push('codec count "'+u+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=c.video&&Object(A.h)(c.video)[0]||null,h=c.audio&&Object(A.h)(c.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+o.type+'"'),h&&s&&h.type.toLowerCase()!==s.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+s.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.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,r=n,o=0;o<e.segments.length;o++){var s=e.segments[o];if(i||(i=Ps(t,r+s.duration/2)),i){if("cueIn"in s){i.endTime=r,i.adEndTime=r,r+=s.duration,i=null;continue}if(r<i.endTime){r+=s.duration;continue}i.endTime+=s.duration}else if("cueOut"in s&&((i=new a.a.VTTCue(r,r+s.duration,s.cueOut)).adStartTime=r,i.adEndTime=r+parseFloat(s.cueOut),t.addCue(i)),"cueOutCont"in s){var l=s.cueOutCont.split("/").map(parseFloat),c=l[0],u=l[1];(i=new a.a.VTTCue(r,r+s.duration,"")).adStartTime=r-c,i.adEndTime=i.adStartTime+u,t.addCue(i)}r+=s.duration}}(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=co.GOAL_BUFFER_LENGTH,n=co.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,co.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=co.BUFFER_LOW_WATER_LINE,n=co.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,co.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,co.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return co.BUFFER_HIGH_WATER_LINE},t}(Wr.EventTarget),Ws=function(e,t,n){var i,r,a,o=e.masterPlaylistController_,s=o[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(o);if(t.attributes){var l=t.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=zo(o.master(),t),this.playlist=t,this.id=n,this.enabled=(i=e.playlists,r=t.id,a=s,function(e){var t=i.master.playlists[r],n=va(t),o=ya(t);return void 0===e?o:(e?delete t.disabled:t.disabled=!0,e===o||n||(a(),e?i.trigger("renditionenabled"):i.trigger("renditiondisabled")),e)})},Gs=["seeking","seeked","pause","playing","error"],Ys=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Jr("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},r=function(){return t.techWaiting_()},o=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,l=["main","subtitle","audio"],c={};l.forEach((function(e){c[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),t.tech_.on(["seeked","seeking"],c[e].reset)}));var u=function(e){["main","audio"].forEach((function(n){s[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(Gs,o),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",r),t.tech_.off(Gs,o),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),l.forEach((function(e){s[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),t.tech_.off(["seeked","seeking"],c[e].reset)})),t.checkCurrentTimeTimeout_&&a.a.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&a.a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=a.a.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
21if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:ia(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},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();this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1));if(this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:.1)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+na(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),o=r.audioBuffer?r.audioBuffered():null,s=r.videoBuffer?r.videoBuffered():null,l=this.media(),c=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-1/30),u=[o,s],d=0;d<u.length;d++){if(u[d])if(aa(u[d],n)<c)return!1}var h=ta(a,n);return 0!==h.length&&(e=h.start(0)+.1,this.logger_("Buffered region starts ("+h.start(0)+") just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=ea(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},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}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return 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;var a=ta(r,t);if(a.length>0){var o=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+o+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*o,t),!0}return!1},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!n.endList&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=ea(t,i-3),o=ea(t,i),s=ea(n,i);s.length&&!o.length&&a.length&&(r={start:a.end(0),end:s.end(0)})}else{ta(t,i).length||(r=this.gapFromVideoUnderflow_(t,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=ta(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+1/30),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}
21,t.gapFromVideoUnderflow_=function(e,t){for(var n=function(e){if(e.length<2)return Wr.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return Wr.createTimeRanges(t)}(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null},e}(),Ks={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Qs={PlaylistLoader:Ba,Playlist:ka,utils:Ja,STANDARD_PLAYLIST_SELECTOR:Yo,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(ka.isEnabled);return Xo(t,(function(e,t){return Wo(e,t)})),t.filter((function(t){return!!zo(e.playlists.master,t).video}))[0]||null},lastBandwidthSelector:Yo,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&a.a.devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),Go(this.playlists.master,t,parseInt(Vo(this.tech_.el(),"width"),10)*i,parseInt(Vo(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Wo,comparePlaylistResolution:function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||a.a.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),n===(i=i||a.a.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:Ha()};Object.keys(co).forEach((function(e){Object.defineProperty(Qs,e,{get:function(){return Wr.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),co[e]},set:function(t){Wr.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?Wr.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):co[e]=t}})}));var Js=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})};Qs.canPlaySource=function(){return Wr.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Zs=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=function(e,t){return e.reduce((function(e,n){if(!n.contentProtection)return e;var i=t.reduce((function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[])}(i?r.concat([i]):r,Object.keys(n)),o=[],s=[];return a.forEach((function(e){s.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),o.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(o),Promise.race(s)])},el=function(e){var t=e.player,n=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=Fo(Object(A.h)(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=Object(A.e)(i.video),a=Object(A.e)(i.audio),o={};for(var s in e)o[s]={},a&&(o[s].audioContentType=a),r&&(o[s].videoContentType=r),t.contentProtection&&t.contentProtection[s]&&t.contentProtection[s].pssh&&(o[s].pssh=t.contentProtection[s].pssh),"string"==typeof e[s]&&(o[s].url=e[s]);return Wr.mergeOptions(e,o)}(e.sourceKeySystems,e.media,e.audioMedia);return!!n&&(t.currentSource().keySystems=n,!(n&&!t.eme)||(Wr.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},tl=function(){if(!a.a.localStorage)return null;var e=a.a.localStorage.getItem("videojs-vhs");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};Qs.supportsNativeHls=function(){if(!s.a||!s.a.createElement)return!1;var e=s.a.createElement("video");if(!Wr.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),Qs.supportsNativeDash=!!(s.a&&s.a.createElement&&Wr.getTech("Html5").isSupported())&&/maybe|probably/i.test(s.a.createElement("video").canPlayType("application/d
21ash+xml")),Qs.supportsTypeNatively=function(e){return"hls"===e?Qs.supportsNativeHls:"dash"===e&&Qs.supportsNativeDash},Qs.isSupported=function(){return Wr.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var nl=function(e){function t(t,n,i){var r;if(r=e.call(this,n,Wr.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&Wr.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Jr("VhsHandler"),n.options_&&n.options_.playerId){var a=Wr(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Wr.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),f()(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return Wr.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),f()(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return Wr.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),f()(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(s.a,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=s.a.fullscreenElement||s.a.webkitFullscreenElement||s.a.mozFullScreenElement||s.a.msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}m()(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=tl();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=co.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===co.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){var i;this.setOptions_(),this.options_.src=0===(i=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(i.substring(i.indexOf(",")+1)):i,this.options_.tech=this.tech_,this.options_.externVhs=Qs,this.options_.sourceType=Object(O.a)(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&Wr.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Xs(this.options_);var r=Wr.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Ys(r),this.masterPlaylistController_.on("error",(function(){var e=Wr.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));var o=this.options_.experimentalBufferBasedABR?Qs.movingAverageBandwidthSelector(.55):Qs.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):o.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Qs.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=a.a.navigator.connection||a.a.navigator.mozConnection||a.a.navigator.webkitConnection;if(this.options_.useNetworkInformationApi&&t){var n=1e3*t.downlink*1e3;e=n>=1e7&&e>=1e7?Math.max(e,n):n}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){Wr.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return ia(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return ia(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!a.a.localStorage)return!1;var t=tl();t=t?Wr.mergeOptions(t,e):e;try{a.a.localStorage.setItem("videojs-vhs",JSON.stringify(t))}catch(e){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master(),n=Sa(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!va(e)})).map((function(t,n){return new Ws(e,t,t.id)}
21)):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=a.a.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),Zs({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=el({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var n=e.masterPlaylistController_.master();if(n&&n.playlists){var i,r=[];
21if(n.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,r.push(e))})),r.length)(i=Wr.log).warn.apply(i,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(r)),e.masterPlaylistController_.fastQualityChange_()}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Wr.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=Wr.players[this.tech_.options_.playerId];t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach((function(e){t.addQualityLevel(e)})),Js(t,n.playlists)})),this.playlists.on("mediachange",(function(){Js(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":"2.16.3","mux.js":"6.0.1","mpd-parser":"0.22.1","m3u8-parser":"4.8.0","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return xs.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&a.a.URL.revokeObjectURL&&(a.a.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return Za({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),eo({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(Wr.getComponent("Component")),il={name:"videojs-http-streaming",VERSION:"2.16.3",canHandleSource:function(e,t){void 0===t&&(t={});var n=Wr.mergeOptions(Wr.options,t);return il.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=Wr.mergeOptions(Wr.options,n);return t.vhs=new nl(e,t,i),Wr.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Wr.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ha(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){var n=Object(O.a)(e);if(!n)return"";var i=il.getOverrideNative(t);return!Qs.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative:function(e){void 0===e&&(e={});var t=e,n=t.vhs,i=void 0===n?{}:n,r=t.hls,a=void 0===r?{}:r,o=!(Wr.browser.IS_ANY_SAFARI||Wr.browser.IS_IOS),s=i.overrideNative,l=void 0===s?o:s,c=a.overrideNative;return void 0!==c&&c||l}};(Object(A.c)("avc1.4d400d,mp4a.40.2")&&Wr.getTech("Html5").registerSourceHandler(il,0),Wr.VhsHandler=nl,Object.defineProperty(Wr,"HlsHandler",{get:function(){return Wr.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),nl},configurable:!0}),Wr.VhsSourceHandler=il,Object.defineProperty(Wr,"HlsSourceHandler",{get:function(){return Wr.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),il},configurable:!0}),Wr.Vhs=Qs,Object.defineProperty(Wr,"Hls",{get:function(){return Wr.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Qs},configurable:!0}),Wr.use||(Wr.registerComponent("Hls",Qs),Wr.registerComponent("
21Vhs",Qs)),Wr.options.vhs=Wr.options.vhs||{},Wr.options.hls=Wr.options.hls||{},Wr.getPlugin&&Wr.getPlugin("reloadSourceOnError"))||(Wr.registerPlugin||Wr.plugin)("reloadSourceOnError",(function(e){!function e(t,n){var i=0,r=0,a=Wr.mergeOptions(Ks,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){r&&t.currentTime(r)},s=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"==typeof a.getSource?(i=Date.now(),a.getSource.call(t,s)):void Wr.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},c=function e(){t.off("loadedmetadata",o),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",c),t.reloadSourceOnError=function(n){c(),e(t,n)}}(this,e)}));t.a=Wr}).call(this,n(57))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(3),r=Object(i.k)([73,68,51]),a=function e(t,n){return void 0===n&&(n=0),(t=Object(i.k)(t)).length-n<10||!Object(i.a)(t,r,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=Object(i.k)(e))[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?r+20:r+10}(t,n),e(t,n))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i=n(18).f,r=n(24),a=n(15)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},function(e,t,n){var i=n(31),r=n(15)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:a?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var i=n(4),r=n(35),a=n(12),o=n(94),s="["+o+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(e,t,n){var r={},s=a((function(){return!!o[e]()||"âÂ
"!="âÂ
"[e]()})),l=r[e]=s?t(d):o[e];n&&(r[n]=l),i(i.P+i.F*s,"String",r)},d=u.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=u},function(e,t){e.exports={}},function(e,t,n){"use strict";var i=n(120),r=n.n(i),a=n(0),o=n.n(a);t.a=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=o.a.location&&o.a.location.href||"");var n="function"==typeof o.a.URL,i=/^\/\//.test(e),a=!o.a.location&&!/\/\//i.test(e);if(n?e=new o.a.URL(e,o.a.location||"http://example.com"):/\/\//i.test(e)||(e=r.a.buildAbsoluteURL(o.a.location&&o.a.location.href||"",e)),n){var s=new URL(t,e);return a?s.href.slice("http://example.com".length):i?s.href.slice(s.protocol.length):s.href}return r.a.buildAbsoluteURL(e,t)}},function(e,t,n){var i=n(29),r=n(11),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(40)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var i=n(10);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(10),r=n(20),a=n(15)("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||null==(n=i(o)[a])?t:r(n)}},function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var r=i({HTML:"text/html",isHTML:function(e){return e===r.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=i({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),o=/[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]/,s=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),l=new RegExp("^"+o.source+s.source+"*(?::"+o.source+s.source+"*)?$");t.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},t.freeze=i,t.MIME_TYPE=r,t.NAMESPACE=a,t.nameStartChar=o,t.nameChar=s,t.tagNamePattern=l},function(e,t){var n,i,r,a,o,s,l;n=function(e){return 9e4*e},i=function(e,t){return e*t},r=function(e){return e/9e4},a=function(e,t){return e/t},o=function(e,t){return n(a(e,t))},s=function(e,t){return i(r(e),t)},l=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:n,secondsToAudioTs:i,videoTsToSeconds:r,audioTsToSeconds:a,audioTsToVideoTs:o,videoTsToAudioTs:s,metadataTsToSeconds:l}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u}));var i=n(7),r=n(2);function a(e){let{swiper:t,extendParams:n,on:a,emit:o}=e;const s=Object(i.b)(),l=Object(i.a)();function c(e){if(!t.enabled)return;const{rtlTranslate:n}=t;let i=e;i.originalEvent&&(i=i.originalEvent);
21const a=i.keyCode||i.charCode,c=t.params.keyboard.pageUpDown,u=c&&33===a,d=c&&34===a,h=37===a,f=39===a,p=38===a,m=40===a;if(!t.allowSlideNext&&(t.isHorizontal()&&f||t.isVertical()&&m||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&h||t.isVertical()&&p||u))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||s.activeElement&&s.activeElement.nodeName&&("input"===s.activeElement.nodeName.toLowerCase()||"textarea"===s.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(u||d||h||f||p||m)){let e=!1;if(Object(r.a)(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===Object(r.a)(t.el,"."+t.params.slideActiveClass).length)return;const i=t.el,a=i.clientWidth,o=i.clientHeight,s=l.innerWidth,c=l.innerHeight,u=Object(r.b)(i);n&&(u.left-=i.scrollLeft);const d=[[u.left,u.top],[u.left+a,u.top],[u.left,u.top+o],[u.left+a,u.top+o]];for(let t=0;t<d.length;t+=1){const n=d[t];if(n[0]>=0&&n[0]<=s&&n[1]>=0&&n[1]<=c){if(0===n[0]&&0===n[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((u||d||h||f)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),((d||f)&&!n||(u||h)&&n)&&t.slideNext(),((u||h)&&!n||(d||f)&&n)&&t.slidePrev()):((u||d||p||m)&&(i.preventDefault?i.preventDefault():i.returnValue=!1),(d||m)&&t.slideNext(),(u||p)&&t.slidePrev()),o("keyPress",a)}}function u(){t.keyboard.enabled||(s.addEventListener("keydown",c),t.keyboard.enabled=!0)}function d(){t.keyboard.enabled&&(s.removeEventListener("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),a("init",()=>{t.params.keyboard.enabled&&u()}),a("destroy",()=>{t.keyboard.enabled&&d()}),Object.assign(t.keyboard,{enable:u,disable:d})}function o(e,t,n,i){return e.params.createElements&&Object.keys(i).forEac
21h(a=>{if(!n[a]&&!0===n.auto){let o=Object(r.e)(e.el,"."+i[a])[0];o||(o=Object(r.c)("div",i[a]),o.className=i[a],e.el.append(o)),n[a]=o,t[a]=o}}),n}function s(e){let{swiper:t,extendParams:n,on:i,emit:r}=e;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,prevEl:null};const a=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e);function s(e){let n;return e&&"string"==typeof e&&t.isElement&&(n=t.el.querySelector(e),n)?n:(e&&("string"==typeof e&&(n=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&n.length>1&&1===t.el.querySelectorAll(e).length&&(n=t.el.querySelector(e))),e&&!n?e:n)}function l(e,n){const i=t.params.navigation;(e=a(e)).forEach(e=>{e&&(e.classList[n?"add":"remove"](...i.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=n),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass))})}function c(){const{nextEl:e,prevEl:n}=t.navigation;if(t.params.loop)return l(n,!1),void l(e,!1);l(n,t.isBeginning&&!t.params.rewind),l(e,t.isEnd&&!t.params.rewind)}function u(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),r("navigationPrev"))}function d(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),r("navigationNext"))}function h(){const e=t.params.navigation;if(t.params.navigation=o(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let n=s(e.nextEl),i=s(e.prevEl);Object.assign(t.navigation,{nextEl:n,prevEl:i}),n=a(n),i=a(i);const r=(n,i)=>{n&&n.addEventListener("click","next"===i?d:u),!t.enabled&&n&&n.classList.add(...e.lockClass.split(" "))};n.forEach(e=>r(e,"next")),i.forEach(e=>r(e,"prev"))}function f(){let{nextEl:e,prevEl:n}=t.navigation;e=a(e),n=a(n);const i=(e,n)=>{e.removeEventListener("click","next"===n?d:u),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>
21i(e,"next")),n.forEach(e=>i(e,"prev"))}i("init",()=>{!1===t.params.navigation.enabled?p():(h(),c())}),i("toEdge fromEdge lock unlock",()=>{c()}),i("destroy",()=>{f()}),i("enable disable",()=>{let{nextEl:e,prevEl:n}=t.navigation;e=a(e),n=a(n),t.enabled?c():[...e,...n].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),i("click",(e,n)=>{let{nextEl:i,prevEl:o}=t.navigation;i=a(i),o=a(o);const s=n.target;if(t.params.navigation.hideOnClick&&!o.includes(s)&&!i.includes(s)){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===s||t.pagination.el.contains(s)))return;let e;i.length?e=i[0].classList.contains(t.params.navigation.hiddenClass):o.length&&(e=o[0].classList.contains(t.params.navigation.hiddenClass)),r(!0===e?"navigationShow":"navigationHide"),[...i,...o].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const p=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),h(),c()},disable:p,update:c,init:h,destroy:f})}function l(e){return void 0===e&&(e=""),"."+e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}function c(e){let{swiper:t,extendParams:n,on:i,emit:a}=e;const s="swiper-pagination";let c;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,bullets:[]};let u=0;const d=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e);function h(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function f(e,n){const{bulletActiveClass:i}=t.params.pagination;e&&(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${i}-${n}`),(e=e[("prev"===n?"previous":"next")+"ElementSibling"])&&e.classList.add(`${i}-${n}-${n}`))}function p(e){const n=e.target.closest(l(t.params.pagination.bulletClass));if(!n)return;e.preventDefault();const i=Object(r.g)(n)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===i)return;t.slideToLoop(i)}else t.slideTo(i)}function m(){const e=t.rtl,n=t.params.pagination;if(h())return;let i,o,s=t.pagination.el;s=d(s);const p=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,m=t.params.loop?Math.ceil(p/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(o=t.previousRealIndex||0,i=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(i=t.snapIndex,o=t.previousSnapIndex):(o=t.previousIndex||0,i=t.activeIndex||0),"bullets"===n.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const a=t.pagination.bullets;let l,d,h;if(n.dynamicBullets&&(c=Object(r.f)(a[0],t.isHorizontal()?"width":"height",!0),s.forEac
21h(e=>{e.style[t.isHorizontal()?"width":"height"]=c*(n.dynamicMainBullets+4)+"px"}),n.dynamicMainBullets>1&&void 0!==o&&(u+=i-(o||0),u>n.dynamicMainBullets-1?u=n.dynamicMainBullets-1:u<0&&(u=0)),l=Math.max(i-u,0),d=l+(Math.min(a.length,n.dynamicMainBullets)-1),h=(d+l)/2),a.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${n.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),s.length>1)a.forEach(e=>{const a=Object(r.g)(e);a===i?e.classList.add(...n.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),n.dynamicBullets&&(a>=l&&a<=d&&e.classList.add(...(n.bulletActiveClass+"-main").split(" ")),a===l&&f(e,"prev"),a===d&&f(e,"next"))});else{const e=a[i];if(e&&e.classList.add(...n.bulletActiveClass.split(" ")),t.isElement&&a.forEach((e,t)=>{e.setAttribute("part",t===i?"bullet-active":"bullet")}),n.dynamicBullets){const e=a[l],t=a[d];for(let e=l;e<=d;e+=1)a[e]&&a[e].classList.add(...(n.bulletActiveClass+"-main").split(" "));f(e,"prev"),f(t,"next")}}if(n.dynamicBullets){const i=Math.min(a.length,n.dynamicMainBullets+4),r=(c*i-c)/2-h*c,o=e?"right":"left";a.forEach(e=>{e.style[t.isHorizontal()?o:"top"]=r+"px"})}}s.forEach((e,r)=>{if("fraction"===n.type&&(e.querySelectorAll(l(n.currentClass)).forEach(e=>{e.textContent=n.formatFractionCurrent(i+1)}),e.querySelectorAll(l(n.totalClass)).forEach(e=>{e.textContent=n.formatFractionTotal(m)})),"progressbar"===n.type){let r;r=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(i+1)/m;let o=1,s=1;"horizontal"===r?o=a:s=a,e.querySelectorAll(l(n.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${o}) scaleY(${s})`,e.style.transitionDuration=t.params.speed+"ms"})}"custom"===n.type&&n.renderCustom?(e.innerHTML=n.renderCustom(t,i+1,m),0===r&&a("paginationRender",e)):(0===r&&a("paginationRender",e),a("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](n.lockClass)})}function g(){const e=t.params.pagination;if(h())return;const n=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let i=t.pagination.el;i=d(i);let r="";if("bullets"===e.type){let i=t.params.loop?Math.ceil(n/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&i>n&&(i=n);for(let n=0;n<i;n+=1)e.renderBullet?r+=e.renderBullet.call(t,n,e.bulletClass):r+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(r=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(r=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],i.forEach(n=>{"custom"!==e.type&&(n.innerHTML=r||""),"bullets"===e.type&&t.pagination.bullets.push(...n.querySelectorAll(l(e.bulletClass)))}),"custom"!==e.type&&a("paginationRender",i[0])}function v(){t.params.pagination=o(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let n;"string"==typeof e.el&&t.isElement&&(n=t.el.querySelector(e.el)),n||"string"!=typeof e.el||(n=[...document.querySelectorAll(e.el)]),n||(n=e.el),n&&0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(n)&&n.length>1&&(n=[...t.el.querySelectorAll(e.el)],n.length>1&&(n=n.filter(e=>Object(r.a)(e,".swiper")[0]===t.el)[0])),Array.isArray(n)&&1===n.length&&(n=n[0]),Object.assign(t.pagination,{el:n}
21),n=d(n),n.forEach(n=>{"bullets"===e.type&&e.clickable&&n.classList.add(...(e.clickableClass||"").split(" ")),n.classList.add(e.modifierClass+e.type),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(n.classList.add(`${e.modifierClass}${e.type}-dynamic`),u=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.classList.add(e.progressbarOppositeClass),e.clickable&&n.addEventListener("click",p),t.enabled||n.classList.add(e.lockClass)}))}function y(){const e=t.params.pagination;if(h())return;let n=t.pagination.el;n&&(n=d(n),n.forEach(n=>{n.classList.remove(e.hiddenClass),n.classList.remove(e.modifierClass+e.type),n.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(n.classList.remove(...(e.clickableClass||"").split(" ")),n.removeEventListener("click",p))})),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:n}=t.pagination;
21n=d(n),n.forEach(n=>{n.classList.remove(e.horizontalClass,e.verticalClass),n.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),i("init",()=>{!1===t.params.pagination.enabled?b():(v(),g(),m())}),i("activeIndexChange",()=>{void 0===t.snapIndex&&m()}),i("snapIndexChange",()=>{m()}),i("snapGridLengthChange",()=>{g(),m()}),i("destroy",()=>{y()}),i("enable disable",()=>{let{el:e}=t.pagination;e&&(e=d(e),e.forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),i("lock unlock",()=>{m()}),i("click",(e,n)=>{const i=n.target,r=d(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&r&&r.length>0&&!i.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&i===t.navigation.nextEl||t.navigation.prevEl&&i===t.navigation.prevEl))return;const e=r[0].classList.contains(t.params.pagination.hiddenClass);a(!0===e?"paginationShow":"paginationHide"),r.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const b=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=d(e),e.forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass))),y()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=d(e),e.forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass))),v(),g(),m()},disable:b,render:g,update:m,init:v,destroy:y})}function u(e){let{swiper:t,extendParams:n,on:i}=e;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),t.a11y={clicked:!1};let a=null;function o(e){const t=a;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}const s=e=>(Array.isArray(e)?e:[e]).filter(e=>!!e);function c(e){(e=s(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function u(e){(e=s(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function d(e,t){(e=s(e)).forEach(e=>{e.setAttribute("role",t)})}function h(e,t){(e=s(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function f(e,t){(e=s(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function p(e){(e=s(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function m(e){(e=s(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function g(e){if(13!==e.keyCode&&32!==e.keyCode)return;const n=t.params.a11y,i=e.target;t.pagination&&t.pagination.el&&(i===t.pagination.el||t.pagination.el.contains(e.target))&&!e.target.matches(l(t.params.pagination.bulletClass))||(t.navigation&&t.navigation.nextEl&&i===t.navigation.nextEl&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?o(n.lastSlideMessage):o(n.nextSlideMessage)),t.navigation&&t.navigation.prevEl&&i===t.navigation.prevEl&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?o(n.firstSlideMessage):o(n.prevSlideMessage)),t.pagination&&i.matches(l(t.params.pagination.bulletClass))&&i.click())}function v(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function y(){return v()&&t.params.pagination.clickable}const b=(e,t,n)=>{c(e),"BUTTON"!==e.tagName&&(d(e,"button"),e.addEventListener("keydown",g)),f(e,n),function(e,t){(e=s(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},_=()=>{t.a11y.clicked=!0},w=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},T=e=>{if(t.a11y.clicked)return;const n=e.target.closest(`.${t.params.slideClass}, swiper-slide`);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||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,t.slideTo(t.slides.indexOf(n),0))},S=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&h(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&d(t.slides,e.slideRole);const n=t.slides.length;
21e.slideLabelMessage&&t.slides.forEach((i,r)=>{const a=t.params.loop?parseInt(i.getAttribute("data-swiper-slide-index"),10):r;f(i,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,n))})},k=()=>{const e=t.params.a11y;t.el.append(a);const n=t.el;e.containerRoleDescriptionMessage&&h(n,e.containerRoleDescriptionMessage),e.containerMessage&&f(n,e.containerMessage);const i=t.wrapperEl,r=e.id||i.getAttribute("id")||"swiper-wrapper-"+(void 0===(o=16)&&(o=16),"x".repeat(o).replace(/x/g,()=>Math.round(16*Math.random()).toString(16)));var o;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var c;c=r,s(i).forEach(e=>{e.setAttribute("id",c)}),function(e,t){(e=s(e)).forEach(e=>{e.setAttribute("aria-live",t)})}(i,l),S();let{nextEl:u,prevEl:d}=t.navigation?t.navigation:{};if(u=s(u),d=s(d),u&&u.forEach(t=>b(t,r,e.nextSlideMessage)),d&&d.forEach(t=>b(t,r,e.prevSlideMessage)),y()){s(t.pagination.el).forEach(e=>{e.addEventListener("keydown",g)})}t.el.addEventListener("focus",T,!0),t.el.addEventListener("pointerdown",_,!0),t.el.addEventListener("pointerup",w,!0)};i("beforeInit",()=>{a=Object(r.c)("span",t.params.a11y.notificationClass),a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true")}),i("afterInit",()=>{t.params.a11y.enabled&&k()}),i("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&S()}),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&&(t.isBeginning?(p(n),u(n)):(m(n),c(n))),e&&(t.isEnd?(p(e),u(e)):(m(e),c(e)))}()}),i("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;v()&&t.pagination.bullets.forEach(n=>{t.params.pagination.clickable&&(c(n),t.params.pagination.renderBullet||(d(n,"button"),f(n,e.paginationBulletMessage.replace(/\{\{index\}\}/,Object(r.g)(n)+1)))),n.matches(l(t.params.pagination.bulletActiveClass))?n.setAttribute("aria-current","true"):n.removeAttribute("aria-current")})}()}),i("destroy",()=>{t.params.a11y.enabled&&function(){a&&a.remove();let{nextEl:e,prevEl:n}=t.navigation?t.navigation:{};if(e=s(e),n=s(n),e&&e.forEach(e=>e.removeEventListener("keydown",g)),n&&n.forEach(e=>e.removeEventListener("keydown",g)),y()){s(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",g)})}t.el.removeEventListener("focus",T,!0),t.el.removeEventListener("pointerdown",_,!0),t.el.removeEventListener("pointerup",w,!0)}()})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return x}));var i,r=n(3),a=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?Object(r.h)(e):e}),o=function(e){e=Object(r.k)(e);for(var t=[],n=0;e.length>n;){var a=e[n],o=0,s=0,l=e[++s];for(s++;128&l;)o=(127&l)<<7,l=e[s],s++;o+=127&l;for(var c=0;c<i.length;c++){var u=i[c],d=u.id,h=u.parser;if(a===d){t.push(h(e.subarray(s,s+o)));break}}n+=o+s}return t};i=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=Object(r.c)(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=o(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:o(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var s=function e(t,n,i){void 0===i&&(i=!1),n=function(e){return Array.isArray(e)?e.map((function(e){return a(e)})):[a(e)]}(n),t=Object(r.k)(t);var o=[];if(!n.length)return o;for(var s=0;s<t.length;){var l=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])>>>0,c=t.subarray(s+4,s+8);if(0===l)break;var u=s+l;if(u>t.length){if(i)break;u=t.length}var d=t.subarray(s+8,u);Object(r.a)(c,n[0])&&(1===n.length?o.push(d):o.push.apply(o,e(d,n.slice(1),i))),s=u}return o},l={EBML:Object(r.k)([26,69,223,163]),DocType:Object(r.k)([66,130]),Segment:Object(r.k)([24,83,128,103]),SegmentInfo:Object(r.k)([21,73,169,102]),Tracks:Object(r.k)([22,84,174,107]),Track:Object(r.k)([174]),TrackNumber:Object(r.k)([215]),DefaultDuration:Object(r.k)([35,227,131]),TrackEntry:Object(r.k)([174]),TrackType:Object(r.k)([131]),FlagDefault:Object(r.k)([136]),CodecID:Object(r.k)([134]),CodecPr
21ivate:Object(r.k)([99,162]),VideoTrack:Object(r.k)([224]),AudioTrack:Object(r.k)([225]),Cluster:Object(r.k)([31,67,182,117]),Timestamp:Object(r.k)([231]),TimestampScale:Object(r.k)([42,215,177]),BlockGroup:Object(r.k)([160]),BlockDuration:Object(r.k)([155]),Block:Object(r.k)([161]),SimpleBlock:Object(r.k)([163])},c=[128,64,32,16,8,4,2,1],u=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var a=function(e){for(var t=1,n=0;n<c.length&&!(e&c[n]);n++)t++;return t}(e[t]),o=e.subarray(t,t+a);return n&&((o=Array.prototype.slice.call(e,t,t+a))[0]^=c[a-1]),{length:a,value:Object(r.b)(o,{signed:i}),bytes:o}},d=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"==typeof t?Object(r.f)(t):t},h=function e(t,n,i){if(i>=n.length)return n.length;var a=u(n,i,!1);if(Object(r.a)(t.bytes,a.bytes))return i;var o=u(n,i+a.length);return e(t,n,i+o.length+o.value+a.length)},f=function e(t,n){n=function(e){return Array.isArray(e)?e.map((function(e){return d(e)})):[d(e)]}(n),t=Object(r.k)(t);var i=[];if(!n.length)return i;for(var a=0;a<t.length;){var o=u(t,a,!1),s=u(t,a+o.length),l=a+o.length+s.length;127===s.value&&(s.value=h(o,t,l),s.value!==t.length&&(s.value-=l));var c=l+s.value>t.length?t.length:l+s.value,f=t.subarray(l,c);Object(r.a)(n[0],o.bytes)&&(1===n.length?i.push(f):i=i.concat(e(f,n.slice(1)))),a+=o.length+s.length+f.length}return i},p=n(56),m=Object(r.k)([0,0,0,1]),g=Object(r.k)([0,0,1]),v=Object(r.k)([0,0,3]),y=function(e){for(var t=[],n=1;n<e.length-2;)Object(r.a)(e.subarray(n,n+3),v)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,a=new Uint8Array(i),o=0;for(n=0;n<i;o++,n++)o===t[0]&&(o++,t.shift()),a[n]=e[o];return a},b=function(e,t,n,i){void 0===i&&(i=1/0),e=Object(r.k)(e),n=[].concat(n);for(var a,o=0,s=0;o<e.length&&(s<i||a);){var l=void 0;if(Object(r.a)(e.subarray(o),m)?l=4:Object(r.a)(e.subarray(o),g)&&(l=3),l){if(s++,a)return y(e.subarray(a,o));var c=void 0;"h264"===t?c=31&e[o+l]:"h265"===t&&(c=e[o+l]>>1&63),-1!==n.indexOf(c)&&(a=o+l),o+=l+("h264"===t?1:2)}else o++}return e.subarray(0,0)},_={webm:Object(r.k)([119,101,98,109]),matroska:Object(r.k)([109,97,116,114,111,115,107,97]),flac:Object(r.k)([102,76,97,67]),ogg:Object(r.k)([79,103,103,83]),ac3:Object(r.k)([11,119]),riff:Object(r.k)([82,73,70,70]),avi:Object(r.k)([65,86,73]),wav:Object(r.k)([87,65,86,69]),"3gp":Object(r.k)([102,116,121,112,51,103]),mp4:Object(r.k)([102,116,121,112]),fmp4:Object(r.k)([115,116,121,112]),mov:Object(r.k)([102,116,121,112,113,116]),moov:Object(r.k)([109,111,111,118]),moof:Object(r.k)([109,111,111,102])},w={aac:function(e){var t=Object(p.a)(e);return Object(r.a)(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Object(p.a)(e);return Object(r.a)(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=f(e,[l.EBML,l.DocType])[0];return Object(r.a)(t,_.webm)},mkv:function(e){var t=f(e,[l.EBML,l.DocType])[0];return Object(r.a)(t,_.matroska)},mp4:function(e){return!w["3gp"](e)&&!w.mov(e)&&(!(!Object(r.a)(e,_.mp4,{offset:4})&&!Object(r.a)(e,_.fmp4,{offset:4}))||(!(!Object(r.a)(e,_.moof,{offset:4})&&!Object(r.a)(e,_.moov,{offset:4}))||void 0))},mov:function(e){return Object(r.a)(e,_.mov,{offset:4})},"3gp":function(e){return Object(r.a)(e,_["3gp"],{offset:4})},ac3:function(e){var t=Object(p.a)(e);return Object(r.a)(e,_.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Object(p.a)(e);return Object(r.a)(e,_.flac,{offset:t})},ogg:function(e){return Object(r.a)(e,_.ogg)},avi:function(e){return Object(r.a)(e,_.riff)&&Object(r.a)(e,_.avi,{offset:8})},wav:function(e){return Object(r.a)(e,_.riff)&&Object(r.a)(e,_.wav,{offset:8})},h264:function(e){return function(e,t,n){return b(e,"h264",t,n)}(e,7,3).length},h265:function(e){return function(e,t,n){return b(e,"h265",t,n)}(e,[32,33],3).length}},T=Object.keys(w).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);T.forEach((function(e){var t=w[e];w[e]=function(e){return t(Object(r.k)(e))}}));var S=w,k=function(e){e=Object(r.k)(e);for(var t=0;t<T.length;t++){var n=T[t];if(S[n](e))return n}return""},x=function(e){return s(e,["moof"]).length>0}},function(e,t,n){var i=n(25),r=n(16),a=n(47);e.exports=function(e){return function(t,n,o){var s,l=i(t),c=r(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(31);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(32),r=n(35);e.exports=function(e){return function(t,n){var a,o,s=String(r(t)),l=i(n),c=s.length;return l<0||l>=c?e?"":void 0:(a=s.charCodeAt(l))<55296||a>56319||l+1===c||(o=s.charCodeAt(l+1))<56320||o>57343?e?s.charAt(l):a:e?s.slice(l,l+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var i=n(13),r=n(31),a=n(15)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},function(e,t,n){var i=n(15)("iterator"),r=!1;try{var a=[7][i]();a.return=function(){r=!0},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var a=[7],o=a[i]();o.next=function(){return{done:n=!0}},a[i]=function(){return o},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var i=n(59),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";n(141);var i=n(22),r=n(21),a=n(12),o=n(35),s=n(15),l=n(109),c=s("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f?!a((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={}
vendor: 5,117 bytes, line 21
21,n.constructor[c]=function(){return n}),n[h](""),!t})):void 0;if(!f||!p||"replace"===e&&!u||"split"===e&&!d){var m=/./[h],g=n(o,h,""[e],(function(e,t,n,i,r){return t.exec===l?f&&!r?{done:!0,value:m.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}})),v=g[0],y=g[1];i(String.prototype,e,v),r(RegExp.prototype,h,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){var i=n(11).navigator;e.exports=i&&i.userAgent||""},function(e,t,n){"use strict";var i=n(11),r=n(4),a=n(22),o=n(53),s=n(41),l=n(52),c=n(51),u=n(13),d=n(12),h=n(77),f=n(58),p=n(95);e.exports=function(e,t,n,m,g,v){var y=i[e],b=y,_=g?"set":"add",w=b&&b.prototype,T={},S=function(e){var t=w[e];a(w,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||w.forEach&&!d((function(){(new b).entries().next()})))){var k=new b,x=k[_](v?{}:-0,1)!=k,C=d((function(){k.has(1)})),E=h((function(e){new b(e)})),A=!v&&d((function(){for(var e=new b,t=5;t--;)e[_](t,t);return!e.has(-0)}));E||((b=t((function(t,n){c(t,b,e);var i=p(new y,t,b);return null!=n&&l(n,g,i[_],i),i}))).prototype=w,w.constructor=b),(C||A)&&(S("delete"),S("has"),g&&S("get")),(A||x)&&S(_),v&&w.clear&&delete w.clear}else b=m.getConstructor(t,e,g,_),o(b.prototype,n),s.NEED=!0;return f(b,e),T[e]=b,r(r.G+r.W+r.F*(b!=y),T),v||m.setStrong(b,e,g),b}},function(e,t,n){for(var i,r=n(11),a=n(21),o=n(45),s=o("typed_array"),l=o("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,d=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(i=r[h[d++]])?(a(i.prototype,s,!0),a(i.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(e,t,n){"use strict";e.exports=n(40)||!n(12)((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n(11)[e]}))},function(e,t,n){"use strict";var i=n(4);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var i=n(4),r=n(20),a=n(30),o=n(52);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,l=arguments[1];return r(this),(t=void 0!==l)&&r(l),null==e?new this:(n=[],t?(i=0,s=a(l,arguments[2],2),o(e,!1,(function(e){n.push(s(e,i++))}))):o(e,!1,n.push,n),new this(n))}})}},function(e,t){function n(t,i){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var i=n(0),r=n.n(i);function a(t){for(var n,i=(n=t,r.a.atob?r.a.atob(n):e.from(n,"base64").toString("binary")),a=new Uint8Array(i.length),o=0;o<i.length;o++)a[o]=i.charCodeAt(o);return a}}).call(this,n(383).Buffer)},function(e,t,n){var i=n(13),r=n(11).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){var i=n(11),r=n(29),a=n(40),o=n(123),s=n(18).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){var i=n(63)("keys"),r=n(45);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(11).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(13),r=n(10),a=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(30)(Function.call,n(26).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:a}},function(e,t){e.exports="\t\n\v\f\r  áá ââââââ
ââââââ¯âã\u2028\u2029\ufeff"},function(e,t,n){var i=n(13),r=n(93).set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&i(a)&&r&&r(e,a),e}},function(e,t,n){"use strict";var i=n(32),r=n(35);e.exports=function(e){var t=String(r(this)),n="",a=i(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";var i=n(40),r=n(4),a=n(22),o=n(21),s=n(61),l=n(100),c=n(58),u=n(27),d=n(15)("iterator"),h=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,b,_,w=function(e){if(!h&&e in x)return x[e];
vendor: 9,566 bytes, line 21
21switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",S="values"==m,k=!1,x=e.prototype,C=x[d]||x["@@iterator"]||m&&x[m],E=C||w(m),A=m?S?w("entries"):E:void 0,O="Array"==t&&x.entries||C;if(O&&(_=u(O.call(new e)))!==Object.prototype&&_.next&&(c(_,T,!0),i||"function"==typeof _[d]||o(_,d,f)),S&&C&&"values"!==C.name&&(k=!0,E=function(){return C.call(this)}),i&&!v||!h&&!k&&x[d]||o(x,d,E),s[t]=E,s[T]=f,m)if(y={values:S?E:w("values"),keys:g?E:w("keys"),entries:A},v)for(b in y)b in x||a(x,b,y[b]);else r(r.P+r.F*(h||k),t,y);return y}},function(e,t,n){"use strict";var i=n(48),r=n(44),a=n(58),o={};n(21)(o,n(15)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var i=n(76),r=n(35);e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){var i=n(15)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var i=n(61),r=n(15)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},function(e,t,n){"use strict";var i=n(18),r=n(44);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(59),r=n(15)("iterator"),a=n(61);e.exports=n(29).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[i(e)]}},function(e,t,n){var i=n(266);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){"use strict";var i=n(19),r=n(47),a=n(16);e.exports=function(e){for(var t=i(this),n=a(t.length),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),l=o>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var i=n(42),r=n(140),a=n(61),o=n(25);e.exports=n(99)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var i,r,a=n(66),o=RegExp.prototype.exec,s=String.prototype.replace,l=o,c=(i=/a/,r=/b*/g,o.call(i,"a"),o.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,i,r,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",a.call(l))),c&&(t=l.lastIndex),i=o.call(l,e),c&&i&&(l.lastIndex=l.global?i.index+i[0].length:t),u&&i&&i.length>1&&s.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i}),e.exports=l},function(e,t,n){"use strict";var i=n(75)(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){var i,r,a,o=n(30),s=n(130),l=n(92),c=n(88),u=n(11),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};h&&f||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},f=function(e){delete v[e]},"process"==n(31)(d)?i=function(e){d.nextTick(o(y,e,1))}:m&&m.now?i=function(e){m.now(o(y,e,1))}:p?(a=(r=new p).port2,r.port1.onmessage=b,i=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):i="onreadystatechange"in c("script")?function(e){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:h,clear:f}},function(e,t,n){var i=n(11),r=n(111).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,l="process"==n(31)(o);e.exports=function(){var e,t,n,c=function(){var i,r;for(l&&(i=o.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(l)n=function(){o.nextTick(c)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(i,c)};else{var d=!0,h=document.createTextNode("");new a(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){"use strict";var i=n(20);function r(e){var t,n;this.promise=new e((function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i})),this.resolve=i(t),this.reject=i(n)}e.exports.f=function(e){return new r(e)}},function(e,t,n){"use strict";var i=n(11),r=n(17),a=n(40),o=n(82),s=n(21),l=n(53),c=n(12),u=n(51),d=n(32),h=n(16),f=n(150),p=n(49).f,m=n(18).f,g=n(107),v=n(58),y=i.ArrayBuffer,b=i.DataView,_=i.Math,w=i.RangeError,T=i.Infinity,S=y,k=_.abs,x=_.pow,C=_.floor,E=_.log,A=_.LN2,O=r?"_b":"buffer",P=r?"_l":"byteLength",I=r?"_o":"byteOffset";function L(e,t,n){var i,r,a,o=new Array(n),s=8*n-t-1,l=(1<<s)-1,c=l>>1,u=23===t?x(2,-24)-x(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for((e=k(e))!=e||e===T?(r=e!=e?1:0,i=l):(i=C(E(e)/A),e*(a=x(2,-i))<1&&(i--,a*=2),(e+=i+c>=1?u/a:u*x(2,1-c))*a>=2&&(i++,a/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(e*a-1)*x(2,t),i+=c):(r=e*x(2,c-1)*x(2,t),i=0));t>=8;o[d++]=255&r,r/=256,t-=8);for(i=i<<t|r,s+=t;s>0;o[d++]=255&i,i/=256,s-=8);return o[--d]|=128*h,o}function D(e,t,n){var i,r=8*n-t-1,a=(1<<r)-1,o=a>>1,s=r-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=t;s>0;i=256*i+e[l],l--,s-=8);if(0===u)u=1-o;else{if(u===a)return i?NaN:c?-T:T;i+=x(2,t),u-=o}return(c?-1:1)*i*x(2,u-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function M(e){return[255&e]}function R(e){return[255&e,e>>8&255]}function N(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function $(e){return L(e,52,8)}function B(e){return L(e,23,4)}function F(e,t,n){m(e.prototype,t,{get:function(){return this[n]}})}function U(e,t,n,i){var r=f(+n);if(r+t>e[P])throw w("Wrong index!");var a=e[O]._b,o=r+e[I],s=a.slice(o,o+t);return i?s:s.reverse()}function z(e,t,n,i,r,a){var o=f(+n);if(o+t>e[P])throw w("Wrong index!");for(var s=e[O]._b,l=o+e[I],c=i(+r),u=0;u<t;u++)s[l+u]=c[a?u:t-u-1]}if(o.ABV){if(!c((function(){y(1)}))||!c((function(){new y(-1)}))||c((function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name}))){for(var H,q=(y=function(e){return u(this,y),new S(f(e))}).prototype=S.prototype,V=p(S),X=0;V.length>X;)(H=V[X++])in y||s(y,H,S[H]);a||(q.constructor=y)}var W=new b(new y(2)),G=b.prototype.setInt8;W.setInt8(0,2147483648),W.setInt8(1,2147483649),!W.getInt8(0)&&W.getInt8(1)||l(b.prototype,{setInt8:function(e,t){G.call(this,e,t<<24>>24)},setUint8:function(e,t){G.call(this,e,t<<24>>24)}},!0)}else y=function(e){u(this,y,"ArrayBuffer");var t=f(e);this._b=g.call(new Array(t),0),this[P]=t},b=function(e,t,n){u(this,b,"DataView"),u(e,y,"DataView");var i=e[P],r=d(t);if(r<0||r>i)throw w("Wrong offset!");if(r+(n=void 0===n?i-r:h(n))>i)throw w("Wrong length!");this[O]=e,this[I]=r,this[P]=n},r&&(F(y,"byteLength","_l"),F(b,"buffer","_b"),F(b,"byteLength","_l"),F(b,"byteOffset","_o")),l(b.prototype,{getInt8:function(e){return U(this,1,e)[0]<<24>>24},getUint8:function(e){return U(this,1,e)[0]},getInt16:function(e){var t=U(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=U(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(U(this,4,e,arguments[1]))},getUint32:function(e){return j(U(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return D(U(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return D(U(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){z(this,1,e,M,t)},setUint8:function(e,t){z(this,1,e,M,t)},setInt16:function(e,t){z(this,2,e,R,t,arguments[2])},setUint16:function(e,t){z(this,2,e,R,t,arguments[2])},setInt32:function(e,t){z(this,4,e,N,t,arguments[2])},setUint32:function(e,t){z(this,4,e,N,t,arguments[2])},setFloat32:function(e,t){z(this,4,e,B,t,arguments[2])},setFloat64:function(e,t){z(this,8,e,$,t,arguments[2])}});v(y,"ArrayBuffer"),v(b,"DataView"),s(b.prototype,o.VIEW,!0),t.ArrayBuffer=y,t.DataView=b},function(e,t,n){var i,r,a;!function(o){"use strict";r=[n(1)],void 0===(a="function"==typeof(i=function(e){var t=window.Slick||{};(n=0,t=function(t,i){var r,a=this;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(t),appendDots:e(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 9,324 bytes, line 21
21sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.focussed=!1,a.interrupted=!1,a.hidden="hidden",a.paused=!0,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=e(t),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,r=e(t).data("slick")||{},a.options=e.extend({},a.defaults,i,r),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,void 0!==document.mozHidden?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=e.proxy(a.autoPlay,a),a.autoPlayClear=e.proxy(a.autoPlayClear,a),a.autoPlayIterator=e.proxy(a.autoPlayIterator,a),a.changeSlide=e.proxy(a.changeSlide,a),a.clickHandler=e.proxy(a.clickHandler,a),a.selectHandler=e.proxy(a.selectHandler,a),a.setPosition=e.proxy(a.setPosition,a),a.swipeHandler=e.proxy(a.swipeHandler,a),a.dragHandler=e.proxy(a.dragHandler,a),a.keyHandler=e.proxy(a.keyHandler,a),a.instanceUid=n++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,i){var r=this;if("boolean"==typeof n)i=n,n=null;else if(n<0||n>=r.slideCount)return!1;r.unload(),"number"==typeof n?0===n&&0===r.$slides.length?e(t).appendTo(r.$slideTrack):i?e(t).insertBefore(r.$slides.eq(n)):e(t).insertAfter(r.$slides.eq(n)):!0===i?e(t).prependTo(r.$slideTrack):e(t).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each((function(t,n){e(n).attr("data-slick-index",t)})),r.$slidesCache=r.$slides,r.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var i={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(t=-t),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,n):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,n):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),e({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(e){e=Math.ceil(e),!1===r.options.vertical?(i[r.animType]="translate("+e+"px, 0px)",r.$slideTrack.css(i)):(i[r.animType]="translate(0px,"+e+"px)",r.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(r.applyTransition(),t=Math.ceil(t),!1===r.options.vertical?i[r.animType]="translate3d("+t+"px, 0px, 0px)":i[r.animType]="translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(i),n&&setTimeout((function(){r.disableTransition(),n.call()}),r.options.speed))},t.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},t.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each((function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)}))},t.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)n.append(e("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,i,r,a,o,s=this;if(i=document.createDocumentFragment(),a=s.$slider.children(),s.options.rows>0){for(o=s.options.slidesPerRow*s.options.rows,r=Math.ceil(a.length/o),e=0;e<r;e++){var l=document.createElement("div");for(t=0;t<s.options.rows;t++){var c=document.createElement("div");for(n=0;n<s.options.slidesPerRow;n++){var u=e*o+(t*s.options.slidesPerRow+n);a.get(u)&&c.appendChild(a.get(u))}l.appendChild(c)}i.appendChild(l)}s.$slider.empty().append(i),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var i,r,a,o=this,s=!1,l=o.$slider.width(),c=window.innerWidth||e(window).width();if("window"===o.respondTo?a=c:"slider"===o.respondTo?a=l:"min"===o.respondTo&&(a=Math.min(c,l)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(i in r=null,o.breakpoints)o.breakpoints.hasOwnProperty(i)&&(!1===o.originalSettings.mobileFirst?a<o.breakpoints[i]&&(r=o.breakpoints[i]):a>o.breakpoints[i]&&(r=o.breakpoints[i]));null!==r?null!==o.activeBreakpoint?(r!==o.activeBreakpoint||n)&&(o.activeBreakpoint=r,"unslick"===o.breakpointSettings[r]?o.unslick(r):(o.options=e.extend({},o.originalSettings,o.breakpointSettings[r]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),s=r):(o.activeBreakpoint=r,"unslick"===o.breakpointSettings[r]?o.unslick(r):(o.options=e.extend({},o.originalSettings,o.breakpointSettings[r]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),s=r):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),s=r),t||!1===s||o.$slider.trigger("breakpoint",[o,s])}},t.prototype.changeSlide=function(t,n){var i,r,a=this,o=e(t.currentTarget);switch(o.is("a")&&t.preventDefault(),o.is("li")||(o=o.closest("li")),i=a.slideCount%a.options.slidesToScroll!=0?0:(a.slideCount-a.currentSlide)%a.options.slidesToScroll,t.data.message){case"previous":r=0===i?a.options.slidesToScroll:a.options.slidesToShow-i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide-r,!1,n);break;case"next":r=0===i?a.options.slidesToScroll:i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+r,!1,n);break;case"index":var s=0===t.data.index?0:t.data.index||o.index()*a.options.slidesToScroll;a.slideHandler(a.checkNavigable(s),!1,n),o.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.
21interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout((function(){n.disableTransition(e),t.call()}),n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(n){n.stopImmediatePropagation();var i=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=i.is(":focus"),t.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},t.prototype.getLeft=function(e){var t,n,i,r,a=this,o=0;return a.slideOffset=0,n=a.$slides.first().outerHeight(!0),!0===a.options.infinite?(a.slideCount>a.options.slidesToShow&&(a.slideOffset=a.slideWidth*a.options.slidesToShow*-1,r=-1,!0===a.options.vertical&&!0===a.options.centerMode&&(2===a.options.slidesToShow?r=-1.5:1===a.options.slidesToShow&&(r=-2)),o=n*a.options.slidesToShow*r),a.slideCount%a.options.slidesToScroll!=0&&e+a.options.slidesToScroll>a.slideCount&&a.slideCount>a.options.slidesToShow&&(e>a.slideCount?(a.slideOffset=(a.options.slidesToShow-(e-a.slideCount))*a.slideWidth*-1,o=(a.options.slidesToShow-(e-a.slideCount))*n*-1):(a.slideOffset=a.slideCount%a.options.slidesToScroll*a.slideWidth*-1,o=a.slideCount%a.options.slidesToScroll*n*-1))):e+a.options.slidesToShow>a.slideCount&&(a.slideOffset=(e+a.options.slidesToShow-a.slideCount)*a.slideWidth,o=(e+a.options.slidesToShow-a.slideCount)*n),a.slideCount<=a.options.slidesToShow&&(a.slideOffset=0,o=0),!0===a.options.centerMode&&a.slideCount<=a.options.slidesToShow?a.slideOffset=a.slideWidth*Math.floor(a.options.slidesToShow)/2-a.slideWidth*a.slideCount/2:!0===a.options.centerMode&&!0===a.options.infinite?a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)-a.slideWidth:!0===a.options.centerMode&&(a.slideOffset=0,a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)),t=!1===a.options.vertical?e*a.slideWidth*-1+a.slideOffset:e*n*-1+o,!0===a.options.variableWidth&&(i=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(e):a.$slideTrack.children(".slick-slide").eq(e+a.options.slidesToShow),t=!0===a.options.rtl?i[0]?-1*(a.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===a.options.centerMode&&(i=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(e):a.$slideTrack.children(".slick-slide").eq(e+a.options.slidesToShow+1),t=!0===a.options.rtl?i[0]?-1*(a.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(a.$list.width()-i.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,r=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)r.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each((function(r,a){
21if(a.offsetLeft-n+e(a).outerWidth()/2>-1*i.swipeLeft)return t=a,!1})),Math.abs(e(t).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),i=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(n){var r=i.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==r){var a="slick-slide-control"+t.instanceUid+r;e("#"+a).length&&e(this).attr({"aria-describedby":a})}})),t.$dots.attr("role","tablist").find("li").each((function(r){var a=i[r];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+r,"aria-controls":"slick-slide"+t.instanceUid+a,"aria-label":r+1+" of "+n,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=t.currentSlide,a=r+t.options.slidesToShow;r<a;r++)t.options.focusOnChange?t.$slides.eq(r).attr({tabindex:"0"}):t.$slides.eq(r).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
21,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var t,n,i,r=this;function a(t){e("img[data-lazy]",t).each((function(){var t=e(this),n=e(this).attr("data-lazy"),i=e(this).attr("data-srcset"),a=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),o=document.createElement("img");o.onload=function(){t.animate({opacity:0}
vendor: 7,097 bytes, line 21
21,100,(function(){i&&(t.attr("srcset",i),a&&t.attr("sizes",a)),t.attr("src",n).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),r.$slider.trigger("lazyLoaded",[r,t,n])}))},o.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,n])},o.src=n}))}if(!0===r.options.centerMode?!0===r.options.infinite?i=(n=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),i=r.options.slidesToShow/2+1+2+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,i=Math.ceil(n+r.options.slidesToShow),!0===r.options.fade&&(n>0&&n--,i<=r.slideCount&&i++)),t=r.$slider.find(".slick-slide").slice(n,i),"anticipated"===r.options.lazyLoad)for(var o=n-1,s=i,l=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)o<0&&(o=r.slideCount-1),t=(t=t.add(l.eq(o))).add(l.eq(s)),o--,s++;a(t),r.slideCount<=r.options.slidesToShow?a(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?a(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&a(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var n,i,r,a,o,s=this,l=e("img[data-lazy]",s.$slider);l.length?(n=l.first(),i=n.attr("data-lazy"),r=n.attr("data-srcset"),a=n.attr("data-sizes")||s.$slider.attr("data-sizes"),(o=document.createElement("img")).onload=function(){r&&(n.attr("srcset",r),a&&n.attr("sizes",a)),n.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===s.options.adaptiveHeight&&s.setPosition(),s.$slider.trigger("lazyLoaded",[s,n,i]),s.progressiveLazyLoad()},o.onerror=function(){t<3?setTimeout((function(){s.progressiveLazyLoad(t+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,n,i]),s.progressiveLazyLoad())},o.src=i):s.$slider.trigger("allImagesLoaded",[s])},t.prototype.refresh=function(t){var n,i,r=this;i=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>i&&(r.currentSlide=i),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),n=r.currentSlide,r.destroy(!0),e.extend(r,r.initials,{currentSlide:n}),r.init(),t||r.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,i,r=this,a=r.options.responsive||null;if("array"===e.type(a)&&a.length){for(t in r.respondTo=r.options.respondTo||"window",a)if(i=r.breakpoints.length-1,a.hasOwnProperty(t)){for(n=a[t].breakpoint;i>=0;)r.breakpoints[i]&&r.breakpoints[i]===n&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(n),r.breakpointSettings[n]=a[t].settings}r.breakpoints.sort((function(e,t){return r.options.mobileFirst?e-t:t-e}))}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},t.prototype.setCSS=function(e){var t,n,i=this,r={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",r[i.positionProp]=e,!1===i.transformsEnabled?i.$slideTrack.css(r):(r={},!1===i.cssTransitions?(r[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(r)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each((function(i,r){t=n.slideWidth*i*-1,!0===n.options.rtl?e(r).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}
21):e(r).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,n,i,r,a,o=this,s=!1;if("object"===e.type(arguments[0])?(i=arguments[0],s=arguments[1],a="multiple"):"string"===e.type(arguments[0])&&(i=arguments[0],r=arguments[1],s=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?a="responsive":void 0!==arguments[1]&&(a="single")),"single"===a)o.options[i]=r;else if("multiple"===a)e.each(i,(function(e,t){o.options[e]=t}));else if("responsive"===a)for(n in r)if("array"!==e.type(o.options.responsive))o.options.responsive=[r[n]];else{for(t=o.options.responsive.length-1;t>=0;)o.options.responsive[t].breakpoint===r[n].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(r[n])}s&&(o.unload(),o.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,n,i,r,a=this;if(n=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(e).addClass("slick-current"),!0===a.options.centerMode){var o=a.options.slidesToShow%2==0?1:0;t=Math.floor(a.options.slidesToShow/2),!0===a.options.infinite&&(e>=t&&e<=a.slideCount-1-t?a.$slides.slice(e-t+o,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=a.options.slidesToShow+e,n.slice(i-t+1+o,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-a.options.slidesToShow).addClass("slick-center"):e===a.slideCount-1&&n.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=a.slideCount-a.options.slidesToShow?a.$slides.slice(e,e+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=a.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=a.slideCount%a.options.slidesToShow,i=!0===a.options.infinite?a.options.slidesToShow+e:e,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-e<a.options.slidesToShow?n.slice(i-(a.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==a.options.lazyLoad&&"anticipated"!==a.options.lazyLoad||a.lazyLoad()},t.prototype.setupInfinite=function(){var t,n,i,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(n=null,r.slideCount>r.options.slidesToShow)){for(i=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,t=r.slideCount;t>r.slideCount-i;t-=1)n=t-1,e(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(t=0;t<i+r.slideCount;t+=1)n=t,e(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},t.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},t.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),r=parseInt(i.attr("data-slick-index"));r||(r=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(r,!1,!0):n.slideHandler(r)},t.prototype.slideHandler=function(e,t,n){var i,r,a,o,s,l,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),i=e,s=c.getLeft(i),o=c.getLeft(c.
vendor: 5,798 bytes, line 21
21currentSlide),c.currentLeft=null===c.swipeLeft?o:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(o,(function(){c.postSlide(i)})):c.postSlide(i));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(o,(function(){c.postSlide(i)})):c.postSlide(i));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=i<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+i:i>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:i-c.slideCount:i,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),a=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(l=(l=c.getNavTarget()).slick("getSlick")).slideCount<=l.options.slidesToShow&&l.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==n?(c.fadeSlideOut(a),c.fadeSlide(r,(function(){c.postSlide(r)}))):c.postSlide(r),void c.animateHeight();!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(r)})):c.postSlide(r)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,i,r=this;return e=r.touchObject.startX-r.touchObject.curX,t=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(t,e),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?!1===r.options.rtl?"left":"right":i>=135&&i<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,i,r,a,o,s=this;return a=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!s.dragging||s.scrolling||a&&1!==a.length)&&(t=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==a?a[0].pageX:e.clientX,s.touchObject.curY=void 0!==a?a[0].pageY:e.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),o=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&o>4?(s.scrolling=!0,!1):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=o),n=s.swipeDirection(),void 0!==e.originalEvent&&s.touchObject.swipeLength>4&&(s.swiping=!0,e.preventDefault()),r=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(r=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=t+i*r:s.swipeLeft=t+i*(s.$list.height()/s.listWidth)*r,!0===s.options.verticalSwiping&&(s.swipeLeft=t+i*r),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},t.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
21,t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,n,i=this,r=arguments[0],a=Array.prototype.slice.call(arguments,1),o=i.length;for(e=0;e<o;e++)if("object"==typeof r||void 0===r?i[e].slick=new t(i[e],r):n=i[e].slick[r].apply(i[e].slick,a),void 0!==n)return n;return i};var n})?i.apply(t,r):i)||(e.exports=a)}()},function(e,t,n){var i=n(382),r=n(86);e.exports=function(e,t,n){if(i())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var o=new(e.bind.apply(e,a));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i,r,a; 22/*! 23 * Clamp.js 0.7.0 24 * 25 * Copyright 2011-2013, Joseph Schmitt http://joe.sh 26 * Released under the WTFPL license 27 * http://sam.zoy.org/wtfpl/ 28 */r=[],void 0===(a="function"==typeof(i=function(){return function(e,t){t=t||{};var n,i=window,r={clamp:t.clamp||2,useNativeClamp:void 0===t.useNativeClamp||t.useNativeClamp,splitOnChars:t.splitOnChars||[".","-","â","â"," "],animate:t.animate||!1,truncationChar:t.truncationChar||"â¦",truncationHTML:t.truncationHTML},a=e.style,o=e.innerHTML,s=void 0!==e.style.webkitLineClamp,l=r.clamp,c=l.indexOf&&(l.indexOf("px")>-1||l.indexOf("em")>-1);function u(e,t){return i.getComputedStyle||(i.getComputedStyle=function(e,t){return this.el=e,this.getPropertyValue=function(t){var n=/(\-([a-z]){1})/g;return"float"==t&&(t="styleFloat"),n.test(t)&&(t=t.replace(n,(function(){return arguments[2].toUpperCase()}))),e.currentStyle&&e.currentStyle[t]?e.currentStyle[t]:null},this}),i.getComputedStyle(e,null).getPropertyValue(t)}function d(t){var n=t||e.clientHeight,i=h(e);return Math.max(Math.floor(n/i),0)}function h(e){var t=u(e,"line-height");return"normal"==t&&(t=1.2*parseInt(u(e,"font-size"))),parseInt(t)}r.truncationHTML&&((n=document.createElement("span")).innerHTML=r.truncationHTML);var f,p,m,g,v=r.splitOnChars.slice(0),y=v[0];function b(t){return t.lastChild.children&&t.lastChild.children.length>0?b(Array.prototype.slice.call(t.children).pop()):t.lastChild&&t.lastChild.nodeValue&&""!==t.lastChild.nodeValue&&t.lastChild.nodeValue!=r.truncationChar?t.lastChild:(t.lastChild.parentNode.removeChild(t.lastChild),b(e))}function _(e,t){e.nodeValue=t+r.truncationChar}if("auto"==l?l=d():c&&(l=d(parseInt(l))),s&&r.useNativeClamp)a.overflow="hidden",a.textOverflow="ellipsis",a.webkitBoxOrient="vertical",a.display="-webkit-box",a.webkitLineClamp=l,c&&(a.height=r.clamp+"px");else{var w=(g=l,h(e)*g);w<=e.clientHeight&&(m=function t(i,a){if(a){var o=i.nodeValue.replace(r.truncationChar,"");if(f||(y=v.length>0?v.shift():"",f=o.split(y)),f.length>1?(p=f.pop(),_(i,f.join(y))):f=null,n&&(i.nodeValue=i.nodeValue.replace(r.truncationChar,""),e.innerHTML=i.nodeValue+" "+n.innerHTML+r.truncationChar),f){if(e.clientHeight<=a){if(!(v.length>=0&&""!==y))return e.innerHTML;_(i,f.join(y)+y+p),f=null}}else""===y&&(_(i,""),i=b(e),v=r.splitOnChars.slice(0),y=v[0],f=null,p=null);if(!r.animate)return t(i,a);setTimeout((function(){t(i,a)}),!0===r.animate?10:r.animate)}}(b(e),w))}return{original:o,clamped:m}}})?i.apply(t,r):i)||(e.exports=a)},function(e,t,n){"use strict";var i=n(0),r=n(28),a=n(377);s.httpHandler=n(378);function o(e,t,n){var i=e;return a(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function s(e,t,n){return l(t=o(e,t,n))}function l(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;if(e=c.response?c.response:c.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}(c),g)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,v)}function a(){if(!l){var t;clearTimeout(u),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=v,a=null;return 0!==t?(r={body:i(),statusCode:t,method:h,headers:{},url:d,rawRequest:c},c.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(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var o,l,c=e.xhr||null;c||(c=e.cors||e.useXDR?new s.XDomainRequest:new s.XMLHttpRequest);var u,d=c.url=e.uri||e.url,h=c.method=e.method||"GET",f=e.body||e.data,p=c.headers=e.headers||{},m=!!e.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:c};if("json"in e&&!1!==e.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=r,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=r,c.open(h,d,!m,e.username,e.password),m||(c.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(u=setTimeout((function(){if(!l){l=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}),e.timeout)),c.setRequestHeader)for(o in p)p.hasOwnProperty(o)&&c.setRequestHeader(o,p[o]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(f||null),c}
28e.exports=s,e.exports.default=s,s.XMLHttpRequest=i.XMLHttpRequest||function(){},s.XDomainRequest="withCredentials"in new s.XMLHttpRequest?s.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){s["delete"===e?"del":e]=function(t,n,i){return(n=o(t,n,i)).method=e.toUpperCase(),l(n)}}))},function(e,t,n){var i=n(0),r=e.exports={WebVTT:n(379),VTTCue:n(380),VTTRegion:n(381)};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,o=r.VTTRegion,s=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=o},r.restore=function(){i.VTTCue=s,i.VTTRegion=l},i.VTTCue||r.shim()},function(e,t,n){var i,r,a,o,s;i=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,a=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var i=s.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=s.normalizePath(i.path),s.buildURLFromParts(i)}var a=s.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=s.normalizePath(a.path),s.buildURLFromParts(a)):t;var o=s.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=r.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var c={scheme:o.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(c.netLoc=o.netLoc,"/"!==a.path[0]))if(a.path){var u=o.path,d=u.substring(0,u.lastIndexOf("/")+1)+a.path;c.path=s.normalizePath(d)}else c.path=o.path,a.params||(c.params=o.params,a.query||(c.query=o.query));return null===c.path&&(c.path=n.alwaysNormalize?s.normalizePath(a.path):a.path),s.buildURLFromParts(c)},parseURL:function(e){var t=i.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(a,"");e.length!==(e=e.replace(o,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,r=/^application\/dash\+xml/i,a=function(e){return i.test(e)?"hls":r.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}},function(e,t,n){e.exports=!n(17)&&!n(12)((function(){return 7!=Object.defineProperty(n(88)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){t.f=n(15)},function(e,t,n){var i=n(24),r=n(25),a=n(72)(!1),o=n(90)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,c=[];for(n in s)n!=o&&i(s,n)&&c.push(n);for(;t.length>l;)i(s,n=t[l++])&&(~a(c,n)||c.push(n));return c}},function(e,t,n){var i=n(18),r=n(10),a=n(46);e.exports=n(17)?Object.defineProperties:function(e,t){r(e);for(var n,o=a(t),s=o.length,l=0;s>l;)i.f(e,n=o[l++],t[n]);return e}},function(e,t,n){var i=n(25),r=n(49).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return r(e)}catch(e){return o.slice()}}(e):r(i(e))}},function(e,t,n){"use strict";var i=n(17),r=n(46),a=n(73),o=n(65),s=n(19),l=n(64),c=Object.assign;e.exports=!c||n(12)((function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i}))?function(e,t){for(var n=s(e),c=arguments.length,u=1,d=a.f,h=o.f;c>u;)for(var f,p=l(arguments[u++]),m=d?r(p).concat(d(p)):r(p),g=m.length,v=0;g>v;)f=m[v++],i&&!h.call(p,f)||(n[f]=p[f]);return n}:c},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(20),r=n(13),a=n(130),o=[].slice,s={},l=function(e,t,n){if(!(t in s)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1
vendor: 7,475 bytes, line 28
28),s=function(){var i=n.concat(o.call(arguments));return this instanceof s?l(t,i.length,i):a(t,i,e)};return r(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(11).parseInt,r=n(60).trim,a=n(94),o=/^[-+]?0[xX]/;e.exports=8!==i(a+"08")||22!==i(a+"0x16")?function(e,t){var n=r(String(e),3);return i(n,t>>>0||(o.test(n)?16:10))}:i},function(e,t,n){var i=n(11).parseFloat,r=n(60).trim;e.exports=1/i(n(94)+"-0")!=-1/0?function(e){var t=r(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){var i=n(31);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=i(e))throw TypeError(t);return+e}},function(e,t,n){var i=n(13),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var i=n(97),r=Math.pow,a=r(2,-52),o=r(2,-23),s=r(2,127)*(2-o),l=r(2,-126);e.exports=Math.fround||function(e){var t,n,r=Math.abs(e),c=i(e);return r<l?c*(r/l/o+1/a-1/a)*l*o:(n=(t=(1+o/a)*r)-(t-r))>s||n!=n?c*(1/0):c*n}},function(e,t,n){var i=n(10);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&i(a.call(e)),t}}},function(e,t,n){var i=n(20),r=n(19),a=n(64),o=n(16);e.exports=function(e,t,n,s,l){i(t);var c=r(e),u=a(c),d=o(c.length),h=l?d-1:0,f=l?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=f;break}if(h+=f,l?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;l?h>=0:d>h;h+=f)h in u&&(s=t(s,u[h],h,c));return s}},function(e,t,n){"use strict";var i=n(19),r=n(47),a=n(16);e.exports=[].copyWithin||function(e,t){var n=i(this),o=a(n.length),s=r(e,o),l=r(t,o),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?o:r(c,o))-l,o-s),d=1;for(l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);u-- >0;)l in n?n[s]=n[l]:delete n[s],s+=d,l+=d;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i=n(109);n(4)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(e,t,n){n(17)&&"g"!=/./g.flags&&n(18).f(RegExp.prototype,"flags",{configurable:!0,get:n(66)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(10),r=n(13),a=n(113);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(146),r=n(54);e.exports=n(81)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=i.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(r(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,n){"use strict";var i=n(18).f,r=n(48),a=n(53),o=n(30),s=n(51),l=n(52),c=n(99),u=n(140),d=n(50),h=n(17),f=n(41).fastKey,p=n(54),m=h?"_s":"size",g=function(e,t){var n,i=f(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e((function(e,i){s(e,u,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,null!=i&&l(i,n,e[c],e)}));return a(u.prototype,{clear:function(){for(var e=p(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=p(this,t),i=g(n,e);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(e){p(this,t);for(var n,i=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(p(this,t),e)}}),h&&i(u.prototype,"size",{get:function(){return p(this,t)[m]}}),u},def:function(e,t,n){var i,r,a=g(e,t);return a?a.v=n:(e._l=a={i:r=f(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=a),i&&(i.n=a),e[m]++,"F"!==r&&(e._i[r]=a)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=p(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var i=n(146),r=n(54);e.exports=n(81)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(r(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,n){"use strict";var i,r=n(11),a=n(37)(0),o=n(22),s=n(41),l=n(127),c=n(149),u=n(13),d=n(54),h=n(54),f=!r.ActiveXObject&&"ActiveXObject"in r,p=s.getWeak,m=Object.isExtensible,g=c.ufstore,v=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(u(e)){var t=p(e);return!0===t?g(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(d(this,"WeakMap"),e,t)}},b=e.exports=n(81)("WeakMap",v,y,c,!0,!0);h&&f&&(l((i=c.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,a(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];o(t,e,(function(t,r){if(u(t)&&!m(t)){this._f||(this._f=new i);var a=this._f[e](t,r);return"set"==e?this:a}return n.call(this,t,r)}))})))},function(e,t,n){"use strict";var i=n(53),r=n(41).getWeak,a=n(10),o=n(13),s=n(51),l=n(52),c=n(37),u=n(24),d=n(54),h=c(5),f=c(6),p=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return h(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=f(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var c=e((function(e,i){s(e,c,t,"_i"),e._t=t,e._i=p++,e._l=void 0,null!=i&&l(i,n,e[a],e)}));return i(c.prototype,{delete:function(e){if(!o(e))return!1;var n=r(e);return!0===n?m(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=r(e);return!0===n?m(d(this,t)).has(e):n&&u(n,this._i)}}),c},def:function(e,t,n){var i=r(a(t),!0);return!0===i?m(e).set(t,n):i[e._i]=n,e},ufstore:m}},function(e,t,n){var i=n(32),r=n(16);e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var i=n(49),r=n(73),a=n(10),o=n(11).Reflect;e.exports=o&&o.ownKeys||function(e){var t=i.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";var i=n(74),r=n(13),a=n(16),o=n(30),s=n(15)("isConcatSpreadable");e.exports=function e(t,n,l,c,u,d,h,f){for(var p,m,g=u,v=0,y=!!h&&o(h,f,3);v<c;){if(v in l){if(p=y?y(l[v],v,n):l[v],m=!1,r(p)&&(m=void 0!==(m=p[s])?!!m:i(p)),m&&d>0)g=e(t,n,p,a(p.length),g,d-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=p}g++}v++}return g}},function(e,t,n){var i=n(16),r=n(96),a=n(35);e.exports=function(e,t,n,o){var s=String(a(e)),l=s.length,c=void 0===n?" ":String(n),u=i(t);if(u<=l||""==c)return s;var d=u-l,h=r.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),o?h+s:s+h}},function(e,t,n){var i=n(17),r=n(46),a=n(25),o=n(65).f;e.exports=function(e){return function(t){for(var n,s=a(t),l=r(s),c=l.length,u=0,d=[];c>u;
28)n=l[u++],i&&!o.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}}},function(e,t,n){var i=n(59),r=n(156);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");return r(this)}}},function(e,t,n){var i=n(52);e.exports=function(e,t){var n=[];return i(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,i,r){return 0===arguments.length||e!=e||t!=t||n!=n||i!=i||r!=r?NaN:e===1/0||e===-1/0?e:(e-t)*(r-i)/(n-t)+i}},function(e,t,n){var i=n(68),r=i.find,a=i.NAMESPACE,o=i.tagNamePattern;function s(e){return""!==e}function l(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(s):[]}(e);return Object.keys(t.reduce(l,{}))}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function d(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,u(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var h={},f=h.ELEMENT_NODE=1,p=h.ATTRIBUTE_NODE=2,m=h.TEXT_NODE=3,g=h.CDATA_SECTION_NODE=4,v=h.ENTITY_REFERENCE_NODE=5,y=h.ENTITY_NODE=6,b=h.PROCESSING_INSTRUCTION_NODE=7,_=h.COMMENT_NODE=8,w=h.DOCUMENT_NODE=9,T=h.DOCUMENT_TYPE_NODE=10,S=h.DOCUMENT_FRAGMENT_NODE=11,k=h.NOTATION_NODE=12,x={},C={},E=(x.INDEX_SIZE_ERR=(C[1]="Index size error",1),x.DOMSTRING_SIZE_ERR=(C[2]="DOMString size error",2),x.HIERARCHY_REQUEST_ERR=(C[3]="Hierarchy request error",3)),A=(x.WRONG_DOCUMENT_ERR=(C[4]="Wrong document",4),x.INVALID_CHARACTER_ERR=(C[5]="Invalid character",5)),O=(x.NO_DATA_ALLOWED_ERR=(C[6]="No data allowed",6),x.NO_MODIFICATION_ALLOWED_ERR=(C[7]="No modification allowed",7),x.NOT_FOUND_ERR=(C[8]="Not found",8)),P=(x.NOT_SUPPORTED_ERR=(C[9]="Not supported",9),x.INUSE_ATTRIBUTE_ERR=(C[10]="Attribute in use",10)),I=x.INVALID_STATE_ERR=(C[11]="Invalid state",11);x.SYNTAX_ERR=(C[12]="Syntax error",12),x.INVALID_MODIFICATION_ERR=(C[13]="Invalid modification",13),x.NAMESPACE_ERR=(C[14]="Invalid namespace",14),x.INVALID_ACCESS_ERR=(C[15]="Invalid access",15);function L(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,C[e]),this.message=C[e],Error.captureStackTrace&&Error.captureStackTrace(this,L);return n.code=e,t&&(this.message=this.message+": "+t),n}function D(){}function j(e,t){this._node=e,this._refresh=t,M(this)}function M(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(Se(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;i in e;i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];u(n,e),e._inc=t}}function R(){this._nameIndex=Object.create(null)}function N(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function $(e,t){e._nameIndex[t.nodeName]===t&&delete e._nameIndex[t.nodeName]}function B(e,t,n,i){if(i?(t[N(t,i)]=n,$(t,i)):t[t.length++]=n,function(e,t){e._nameIndex[t.nodeName]=t}(t,n),e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&W(r,e,i),function(e,t,n){e&&e._inc++,n.namespaceURI===a.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(r,e,n))}}function F(e,t,n){var i=N(t,n);if(!(i>=0))throw new L(O,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,$(t,n),e){var a=e.ownerDocument;a&&(W(a,e,n),n.ownerElement=null)}}function U(){}function z(){}function H(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function q(e,t){return V(e,null,{enter:function(e){return!t(e)||V.STOP}})===V.STOP}function V(e,t,n){for(var i=[{node:e,context:t,phase:V.ENTER}];i.length>0;){var r=i.pop();if(r.phase===V.ENTER){var a=n.enter(r.node,r.context);if(a===V.STOP)return V.STOP;if(i.push({node:r.node,context:a,phase:V.EXIT}),null==a)continue;for(var o=r.node.lastChild;o;)i.push({node:o,context:a,phase:V.ENTER}),o=o.previousSibling}else n.exit&&n.exit(r.node,r.context)}}function X(){this.ownerDocument=this}function W(e,t,n,i){e&&e._inc++,n.namespaceURI===a.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function G(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,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a,delete i[i.length]}}}function Y(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.last
vendor: 1,122 bytes, line 28
28Child=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,G(e.ownerDocument,e),t}function K(e){return e&&e.nodeType===z.DOCUMENT_TYPE_NODE}function Q(e){return e&&e.nodeType===z.ELEMENT_NODE}function J(e){return e&&e.nodeType===z.TEXT_NODE}function Z(e,t){var n=e.childNodes||[];if(r(n,Q)||K(t))return!1;var i=r(n,K);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function ee(e,t){var n=e.childNodes||[];if(r(n,(function(e){return Q(e)&&e!==t})))return!1;var i=r(n,K);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function te(e,t,n){if(!function(e){return e&&(e.nodeType===z.DOCUMENT_NODE||e.nodeType===z.DOCUMENT_FRAGMENT_NODE||e.nodeType===z.ELEMENT_NODE)}(e))throw new L(E,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new L(O,"child not in parent");if(!function(e){return e&&(Q(e)||J(e)||K(e)||e.nodeType===z.DOCUMENT_FRAGMENT_NODE||e.nodeType===z.COMMENT_NODE||e.nodeType===z.PROCESSING_INSTRUCTION_NODE)}(t)||K(t)&&e.nodeType!==z.DOCUMENT_NODE)throw new L(E,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function ne(e,t,n){var i=e.childNodes||[],a=t.childNodes||[];
vendor: 4,471 bytes, line 28
28if(t.nodeType===z.DOCUMENT_FRAGMENT_NODE){var o=a.filter(Q);if(o.length>1||r(a,J))throw new L(E,"More than one element or text in fragment");if(1===o.length&&!Z(e,n))throw new L(E,"Element in fragment can not be inserted before doctype")}if(Q(t)&&!Z(e,n))throw new L(E,"Only one element can be added and only after doctype");if(K(t)){if(r(i,K))throw new L(E,"Only one doctype is allowed");var s=r(i,Q);if(n&&i.indexOf(s)<i.indexOf(n))throw new L(E,"Doctype can only be inserted before an element");if(!n&&s)throw new L(E,"Doctype can not be appended since element is present")}}function ie(e,t,n){var i=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===z.DOCUMENT_FRAGMENT_NODE){var o=a.filter(Q);if(o.length>1||r(a,J))throw new L(E,"More than one element or text in fragment");if(1===o.length&&!ee(e,n))throw new L(E,"Element in fragment can not be inserted before doctype")}if(Q(t)&&!ee(e,n))throw new L(E,"Only one element can be added and only after doctype");if(K(t)){if(r(i,(function(e){return K(e)&&e!==n})))throw new L(E,"Only one doctype is allowed");var s=r(i,Q);if(n&&i.indexOf(s)<i.indexOf(n))throw new L(E,"Doctype can only be inserted before an element")}}function re(e,t,n,i){te(e,t,n),e.nodeType===z.DOCUMENT_NODE&&(i||ne)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===S){var a=t.firstChild;if(null==a)return t;var o=t.lastChild}else a=o=t;var s=n?n.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=n,s?s.nextSibling=a:e.firstChild=a,null==n?e.lastChild=o:n.previousSibling=o;do{a.parentNode=e,ae(a,e.ownerDocument||e)}while(a!==o&&(a=a.nextSibling));return G(e.ownerDocument||e,e),t.nodeType==S&&(t.firstChild=t.lastChild=null),t}function ae(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===f&&e.attributes)for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);i&&(i.ownerDocument=t)}for(var r=e.firstChild;r;)ae(r,t),r=r.nextSibling}}function oe(){this._nsMap={}}function se(){}function le(){}function ce(){}function ue(){}function de(){}function he(){}function fe(){}function pe(){}function me(){}function ge(){}function ve(){}function ye(){}function be(e,t,n){var i=!!n&&!!n.requireWellFormed,r=[],a=9==this.nodeType&&this.documentElement||this,o=a.prefix,s=a.namespaceURI;if(s&&null==o&&null==(o=a.lookupPrefix(s)))var l=[{namespace:s,prefix:null}];return Te(this,r,e,t,l,i),r.join("")}function _e(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===a.XML||r===a.XMLNS)return!1;for(var o=n.length;o--;){var s=n[o];if(s.prefix===i)return s.namespace!==r}return!0}function we(e,t,n,i){if(i&&!o.test(t))throw new L(I,'The attribute name "'+t+'" is not a valid XML QName');e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,H),'"')}function Te(e,t,n,i,r,s){r||(r=[]),V(e,{ns:r,isHTML:n},{enter:function(e,n){var r=n.ns,l=n.isHTML;if(i){if(!(e=i(e)))return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case f:var c=e.attributes,u=c.length,d=e.tagName,h=d;if(!(l=a.isHTML(e.namespaceURI)||l)&&!e.prefix&&e.namespaceURI){for(var y,k=0;k<c.length;k++)if("xmlns"===c.item(k).name){y=c.item(k).value;break}if(!y)for(var x=r.length-1;x>=0;x--){if(""===(C=r[x]).prefix&&C.namespace===e.namespaceURI){y=C.namespace;break}}if(y!==e.namespaceURI)for(x=r.length-1;x>=0;x--){var C;if((C=r[x]).namespace===e.namespaceURI){C.prefix&&(h=C.prefix+":"+d);break}}}if(s&&!o.test(h))throw new L(I,'The element name "'+h+'" is not a valid XML QName');t.push("<",h);for(var E=r.slice(),A=0;A<u;A++){"xmlns"==(O=c.item(A)).prefix?E.push({prefix:O.localName,namespace:O.value}):"xmlns"==O.nodeName&&E.push({prefix:"",namespace:O.value})}for(A=0;A<u;A++){var O;if(_e(O=c.item(A),0,E)){var P=O.prefix||"",D=O.namespaceURI;we(t,P?"xmlns:"+P:"xmlns",D,s),E.push({prefix:P,namespace:D})}var j=i?i(O):O;j&&("string"==typeof j?t.push(j):we(t,j.name,j.value,s))}if(d===h&&_e(e,0,E)){var M=e.prefix||"";D=e.namespaceURI;we(t,M?"xmlns:"+M:"xmlns",D,s),E.push({prefix:M,namespace:D})}var R=e.firstChild;if(R||l&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(t.push(">"),l&&/^script$/i.test(d)){for(;R;)R.data?t.push(R.data):Te(R,t,l,i,E.slice(),s),R=R.nextSibling;return t.push("</",d,">"),null}return{ns:E,isHTML:l,tag:h}}return t.push("/>"),null;case w:case S:return{ns:r.slice(),isHTML:l,tag:null};case p:return we(t,e.name,e.value,s),null;case m:return t.push(e.data.replace(/[<&>]/g,H)),null;case g:if(s&&-1!==e.data.indexOf("]]>"))throw new L(I,'The CDATASection data contains "]]>"');
28return t.push("<![CDATA[",e.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case _:if(s&&-1!==e.data.indexOf("--\x3e"))throw new L(I,'The comment node data contains "--\x3e"');return t.push("\x3c!--",e.data,"--\x3e"),null;case T:if(s){if(!o.test(e.name))throw new L(I,'The doctype name "'+e.name+'" is not a valid XML Name');if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new L(I,"DocumentType publicId is not a valid PubidLiteral");if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new L(I,"DocumentType systemId is not a valid SystemLiteral");if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new L(I,'DocumentType internalSubset contains "]>"')}var N=e.publicId,$=e.systemId;if(t.push("<!DOCTYPE ",e.name),N)t.push(" PUBLIC ",N),$&&"."!=$&&t.push(" ",$),t.push(">");else if($&&"."!=$)t.push(" SYSTEM ",$,">");else{var B=e.internalSubset;B&&t.push(" [",B,"]"),t.push(">")}return null;case b:if(s){if(!o.test(e.target)||-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new L(I,'The processing instruction target "'+e.target+'" is not a valid XML NCName or is reserved');if(-1!==e.data.indexOf("?>"))throw new L(I,'The ProcessingInstruction data contains "?>"')}return t.push("<?",e.target," ",e.data,"?>"),null;case v:if(s&&!o.test(e.nodeName))throw new L(I,'The entity reference name "'+e.nodeName+'" is not a valid XML Name');return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}}
vendor: 6,958 bytes, line 28
28,exit:function(e,n){n&&n.tag&&t.push("</",n.tag,">")}})}function Se(e,t,n){e[t]=n}L.prototype=Error.prototype,u(x,L),D.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){for(var i=!!n&&!!n.requireWellFormed,r=[],a=0;a<this.length;a++)Te(this[a],r,e,t,null,i);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},j.prototype.item=function(e){return M(this),this[e]||null},d(j,D),R.prototype={length:0,item:D.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new L(P);var n=this._nameIndex[e.nodeName];return B(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new L(P);return t=this.getNamedItemNS(e.namespaceURI,e.localName),B(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return F(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return F(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},U.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new X;if(i.implementation=this,i.childNodes=new D,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new he;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return re(this,e,t)},replaceChild:function(e,t){re(this,e,t,ie),t&&this.removeChild(t)},removeChild:function(e){return Y(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,i){var r;return V(n,null,{enter:function(n,a){var o=new n.constructor;for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){var l=n[s];"object"!=typeof l&&l!=o[s]&&(o[s]=l)}n.childNodes&&(o.childNodes=new D),o.ownerDocument=t;var c=i;switch(o.nodeType){case f:var u=n.attributes,d=o.attributes=new R,h=u.length;d._ownerElement=o;for(var m=0;m<h;m++)o.setAttributeNode(e(t,u.item(m),!0));break;case p:c=!0}return null!==a?a.appendChild(o):r=o,c?o:null}}),r}(this.ownerDocument||this,this,e)},normalize:function(){V(this,null,{enter:function(e){for(var t=e.firstChild;t;){var n=t.nextSibling;if(null!==n&&n.nodeType===m&&t.nodeType===m){for(var i=[],r=n;null!==r&&r.nodeType===m;)i.push(r.data),r=r.nextSibling;for(var a=t.nextSibling;a!==r;){var o=a.nextSibling;a.parentNode=null,a.previousSibling=null,a.nextSibling=null,a=o}t.nextSibling=r,null!==r?r.previousSibling=t:e.lastChild=t,t.appendData(i.join("")),G(e.ownerDocument,e),t=r}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i;t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(h,z),u(h,z.prototype),V.STOP=Symbol("walkDOM.STOP"),V.ENTER=0,V.EXIT=1,X.prototype={nodeName:"#document",nodeType:w,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==S){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return re(this,e,t),ae(e,this),null===this.documentElement&&e.nodeType===f&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Y(this,e)},replaceChild:function(e,t){re(this,e,t,ie),ae(e,this),t&&this.removeChild(t),Q(e)&&(this.documentElement=e)},importNode:function(e,t){return function(e,t,n){var i;return V(t,null,{enter:function(t,r){var a=t.cloneNode(!1);return a.ownerDocument=e,a.parentNode=null,null===r?i=a:r.appendChild(a),t.nodeType===p||n?a:null}}),i}(this,e,t)},getElementById:function(e){var t=null;return q(this.documentElement,(function(n){if(n.nodeType==f&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=c(e);return new j(this,(function(n){var i=[];return t.length>0&&q(n.documentElement,(function(r){if(r!==n&&r.nodeType===f){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var s=c(a);o=t.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}o&&i.push(r)}}var l})),i}))},createElement:function(e){var t=new oe;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new D,(t.attributes=new R)._ownerElement=t,t},createDocumentFragment:function(){var e=new ge;return e.ownerDocument=this,e.childNodes=new D,e},createTextNode:function(e){var t=new ce;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ue;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new L(A,'data contains "]]>"');var t=new de;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ve;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new se;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!o.test(e))throw new L(A,'not a valid xml name "'+e+'"');var t=new me;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new oe,i=t.split(":"),r=n.attributes=new R;return n.childNodes=new D,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new se,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},d(X,z),oe.prototype={nodeType:f,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
28,appendChild:function(e){return e.nodeType===S?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,G(e.ownerDocument,e,t),ae(t,e.ownerDocument||e),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new j(this,(function(t){var n=[];return q(t,(function(i){i===t||i.nodeType!=f||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new j(this,(function(n){var i=[];return q(n,(function(r){r===n||r.nodeType!==f||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},X.prototype.getElementsByTagName=oe.prototype.getElementsByTagName,X.prototype.getElementsByTagNameNS=oe.prototype.getElementsByTagNameNS,d(oe,z),se.prototype.nodeType=p,d(se,z),le.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(C[E])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},d(le,z),ce.prototype={nodeName:"#text",nodeType:m,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},d(ce,le),ue.prototype={nodeName:"#comment",nodeType:_},d(ue,le),de.prototype={nodeName:"#cdata-section",nodeType:g},d(de,le),he.prototype.nodeType=T,d(he,z),fe.prototype.nodeType=k,d(fe,z),pe.prototype.nodeType=y,d(pe,z),me.prototype.nodeType=v,d(me,z),ge.prototype.nodeName="#document-fragment",ge.prototype.nodeType=S,d(ge,z),ve.prototype.nodeType=b,d(ve,z),ye.prototype.serializeToString=function(e,t,n,i){return be.call(e,t,n,i)},z.prototype.toString=be;try{Object.defineProperty&&(Object.defineProperty(j.prototype,"length",{get:function(){return M(this),this.$$length}}),Object.defineProperty(z.prototype,"textContent",{get:function(){if(this.nodeType===f||this.nodeType===S){var e=[];return V(this,null,{enter:function(t){return t.nodeType===f||t.nodeType===S||(t.nodeType===b||t.nodeType===_?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case f:case S:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Se=function(e,t,n){e["$$"+t]=n})}catch(e){}t.DocumentType=he,t.DOMException=L,t.DOMImplementation=U,t.Element=oe,t.Node=z,t.NodeList=D,t.walkDOM=V,t.XMLSerializer=ye},function(e,t,n){"use strict";var i,r,a=n(1); 29/*! 30 Modaal - accessible modals - v0.3.1 31 by Humaan, for all humans. 32 http://humaan.com 33 */ 34i=n.n(a).a,window,document,r={init:function(e,t){var n=this;n.dom=i("body"),n.$elem=i(t),n.options=i.extend({},i.fn.modaal.options,n.$elem.data(),e),n.xhr=null,n.scope={is_open:!1,id:"modaal_"+(new Date).getTime()+Math.random().toString(16).substring(2)},n.$elem.attr("data-modaal-scope",n.scope.id),n.private_options={active_class:"is_active"},n.lastFocus=null,n.options.is_locked||"confirm"==n.options.type||n.options.hide_close?n.scope.close_btn="":n.scope.close_btn='<button type="button" class="modaal-close" id="modaal-close" aria-label="'+n.options.close_aria_label+'"><span>'+n.options.close_text+"</span></button>","none"===n.options.animation&&(n.options.animation_speed=0,n.options.after_callback_delay=0),i(t).on("click.Mod
34aal",(function(e){var t;if(e.preventDefault(),n.lastFocus=document.activeElement,!1!==n.options.should_open&&("function"!=typeof n.options.should_open||!1!==n.options.should_open())){switch(n.options.before_open.call(n,e),n.options.type){case"inline":n.create_basic();break;case"ajax":t=n.options.source(n.$elem,n.$elem.attr("href")),n.fetch_ajax(t);break;case"confirm":n.options.is_locked=!0,n.create_confirm();break;case"image":n.create_image();break;case"iframe":t=n.options.source(n.$elem,n.$elem.attr("href")),n.create_iframe(t);break;case"video":n.create_video(n.$elem.attr("href"));break;case"instagram":n.create_instagram()}n.watch_events()}})),!0===n.options.start_open&&i(t).click()},watch_events:function(){var e=this;e.dom.off("click.Modaal keyup.Modaal keydown.Modaal"),e.dom.on("keydown.Modaal",(function(t){var n=t.keyCode,r=t.target;9==n&&e.scope.is_open&&(i.contains(document.getElementById(e.scope.id),r)||i("#"+e.scope.id).find('*[tabindex="0"]').focus())})),e.dom.on("keyup.Modaal",(function(t){var n=t.keyCode,r=t.target;return t.shiftKey&&9==t.keyCode&&e.scope.is_open&&(i.contains(document.getElementById(e.scope.id),r)||i("#"+e.scope.id).find(".modaal-close").focus()),!e.options.is_locked&&27==n&&e.scope.is_open?!i(document.activeElement).is("input:not(:checkbox):not(:radio)")&&void e.modaal_close():"image"==e.options.type?(37==n&&e.scope.is_open&&!i("#"+e.scope.id+" .modaal-gallery-prev").hasClass("is_hidden")&&e.gallery_update("prev"),void(39==n&&e.scope.is_open&&!i("#"+e.scope.id+" .modaal-gallery-next").hasClass("is_hidden")&&e.gallery_update("next"))):void 0})),e.dom.on("click.Modaal",(function(t){var n=i(t.target);if(e.options.is_locked||!(e.options.overlay_close&&n.is(".modaal-inner-wrapper")||n.is(".modaal-close")||n.closest(".modaal-close").length)){if(n.is(".modaal-confirm-btn"))return n.is(".modaal-ok")&&e.options.confirm_callback.call(e,e.lastFocus),n.is(".modaal-cancel")&&e.options.confirm_cancel_callback.call(e,e.lastFocus),void e.modaal_close();if(n.is(".modaal-gallery-control")){if(n.hasClass("is_hidden"))return;return n.is(".modaal-gallery-prev")&&e.gallery_update("prev"),void(n.is(".modaal-gallery-next")&&e.gallery_update("next"))}}else e.modaal_close()}))},build_modal:function(e){var t="";"instagram"==this.options.type&&(t=" modaal-instagram");var n,i="video"==this.options.type?"modaal-video-wrap":"modaal-content";switch(this.options.animation){case"fade":n=" modaal-start_fade";break;case"slide-down":n=" modaal-start_slidedown";break;default:n=" modaal-start_none"}var r="";this.options.fullscreen&&(r=" modaal-fullscreen"),""===this.options.custom_class&&void 0===this.options.custom_class||(this.options.custom_class=" "+this.options.custom_class);var a="";this.options.width&&this.options.height&&"number"==typeof this.options.width&&"number"==typeof this.options.height?a=' style="max-width:'+this.options.width+"px;height:"+this.options.height+'px;overflow:auto;"':this.options.width&&"number"==typeof this.options.width?a=' style="max-width:'+this.options.width+'px;"':this.options.height&&"number"==typeof this.options.height&&(a=' style="height:'+this.options.height+'px;overflow:auto;"'),("image"==this.options.type||"video"==this.options.type||"instagram"==this.options.type||this.options.fullscreen)&&(a="");var o='<div class="modaal-wrapper modaal-'+this.options.type+n+t+r+this.options.custom_class+'" id="'+this.scope.id+'"><div class="modaal-outer-wrapper"><div class="modaal-inner-wrapper">';"video"!=this.options.type&&(o+='<div class="modaal-container"'+a+">"),o+='<div class="'+i+' modaal-focus" aria-hidden="false" aria-label="'+this.options.accessible_title+' (Press escape to close)" role="dialog">',"inline"==this.options.type?o+='<div class="modaal-content-container"></div>':o+=e,o+="</div>"+this.scope.close_btn,"video"!=this.options.type&&(o+="</div>"),o+="</div></div></div>",this.dom.append(o),"inline"==this.options.type&&e.appendTo("#"+this.scope.id+" .modaal-content-container"),this.modaal_overlay("show")},create_basic:function(){var e=this.$elem.is("[href]")?i(this.$elem.attr("href")):this.$elem,t="";e.length?(t=e.contents().clone(!0,!0),e.empty()):t="Content could not be loaded. Please check the source and try again.",this.build_modal(t)},create_instagram:function(){var e=this,t=e.options.instagram_id,n="",r="Instagram photo couldn't be loaded, please check the embed code and try again.";if(e.build_modal('<div class="modaal-content-container'+(""!=e.options.loading_class?" "+e.options.loading_class:"")+'">'+e.options.loading_content+"</div>"),""!=t&&null!=t){var a="https://api.instagram.com/oembed?url=http://instagr.am/p/"+t+"/";i.ajax({url:a,dataType:"jsonp",cache:!1,success:function(t){n=t.html;var r=i("#"+e.scope.id+" .modaal-content-container");r.length>0&&(r.removeClass(e.options.loading_class),r.html(n),window.instgrm.Embeds.process())},error:function(){n=r;var t=i("#"+e.scope.id+" .modaal-content-container");t.length>0&&(t.removeClass(e.options.loading_class).addClass(e.options.ajax_error_class),t.html(n))}})}else n=r;return!1},fetch_ajax:function(e){var t=this;null==t.options.accessible_title&&(t.options.accessible_title="Dialog Window"),null!==t.xhr&&(t.xhr.abort(),t.xhr=null),t.build_modal('<div class="modaal-content-container'+(""!=t.options.loading_class?" "+t.options.loading_class:"")+'">'+t.options.loading_content+"</div>
34"),t.xhr=i.ajax(e,{success:function(e){var n=i("#"+t.scope.id).find(".modaal-content-container");n.length>0&&(n.removeClass(t.options.loading_class),n.html(e),t.options.ajax_success.call(t,n))},error:function(e){if("abort"!=e.statusText){var n=i("#"+t.scope.id+" .modaal-content-container");n.length>0&&(n.removeClass(t.options.loading_class).addClass(t.options.ajax_error_class),n.html("Content could not be loaded. Please check the source and try again."))}}})},create_confirm:function(){var e;e='<div class="modaal-content-container"><h1 id="modaal-title">'+this.options.confirm_title+'</h1><div class="modaal-confirm-content">'+this.options.confirm_content+'</div><div class="modaal-confirm-wrap"><button type="button" class="modaal-confirm-btn modaal-ok" aria-label="Confirm">'+this.options.confirm_button_text+'</button><button type="button" class="modaal-confirm-btn modaal-cancel" aria-label="Cancel">'+this.options.confirm_cancel_button_text+"</button></div></div></div>",this.build_modal(e)},create_image:function(){var e,t,n="";if(this.$elem.is("[rel]")){var r=this.$elem.attr("rel"),a=i('[rel="'+r+'"]');a.removeAttr("data-gallery-active","is_active"),this.$elem.attr("data-gallery-active","is_active"),t=a.length-1;var o=[];n='<div class="modaal-gallery-item-wrap">',a.each((function(e,t){var n="",i="",r="",a=!1,s=t.getAttribute("data-modaal-desc"),l=t.getAttribute("data-gallery-active");""!==t.href||void 0!==t.href?n=t.href:""===t.src&&void 0===t.src||(n=t.src),""!=s&&null!=s?(i=s,r='<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image '+(e+1)+" - </span>"+s+"</div>"):r='<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image '+(e+1)+"</span></div>",l&&(a=!0);var c={url:n,alt:i,rawdesc:s,desc:r,active:a};o.push(c)}));for(var s=0;s<o.length;s++){var l="",c=o[s].rawdesc?"Image: "+o[s].rawdesc:"Image "+s+" no description";o[s].active&&(l=" "+this.private_options.active_class),n+='<div class="modaal-gallery-item gallery-item-'+s+l+'" aria-label="'+c+'"><img src="'+o[s].url+'" alt=" " style="width:100%">'+o[s].desc+"</div>"}n+='</div><button type="button" class="modaal-gallery-control modaal-gallery-prev" id="modaal-gallery-prev" aria-label="Previous image (use left arrow to change)"><span>Previous Image</span></button><button type="button" class="modaal-gallery-control modaal-gallery-next" id="modaal-gallery-next" aria-label="Next image (use right arrow to change)"><span>Next Image</span></button>'}else{var u=this.$elem.attr("href"),d="";this.$elem.attr("data-modaal-desc")?(c=this.$elem.attr("data-modaal-desc"),d='<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image - </span>'+this.$elem.attr("data-modaal-desc")+"</div>"):c="Image with no description",n='<div class="modaal-gallery-item is_active" aria-label="'+c+'"><img src="'+u+'" alt=" " style="width:100%">'+d+"</div>"}e=n,this.build_modal(e),i(".modaal-gallery-item.is_active").is(".gallery-item-0")&&i(".modaal-gallery-prev").hide(),i(".modaal-gallery-item.is_active").is(".gallery-item-"+t)&&i(".modaal-gallery-next").hide()},gallery_update:function(e){var t=this,n=i("#"+t.scope.id),r=n.find(".modaal-gallery-item").length-1;if(0==r)return!1;var a=n.find(".modaal-gallery-prev"),o=n.find(".modaal-gallery-next"),s=0,l=0,c=n.find(".modaal-gallery-item."+t.private_options.active_class),u="next"==e?c.next(".modaal-gallery-item"):c.prev(".modaal-gallery-item");return t.options.before_image_change.call(t,c,u),("prev"!=e||!n.find(".gallery-item-0").hasClass("is_active"))&&("next"!=e||!n.find(".gallery-item-"+r).hasClass("is_active"))&&void c.stop().animate({opacity:0}
vendor: 1,399 bytes, line 34
34,250,(function(){u.addClass("is_next").css({position:"absolute",display:"block",opacity:0});var e=i(document).width(),d=e>1140?280:50;s=n.find(".modaal-gallery-item.is_next").width(),l=n.find(".modaal-gallery-item.is_next").height();var h=n.find(".modaal-gallery-item.is_next img").prop("naturalWidth"),f=n.find(".modaal-gallery-item.is_next img").prop("naturalHeight");h>e-d?(s=e-d,n.find(".modaal-gallery-item.is_next").css({width:s}),n.find(".modaal-gallery-item.is_next img").css({width:s}),l=n.find(".modaal-gallery-item.is_next").find("img").height()):(s=h,l=f),n.find(".modaal-gallery-item-wrap").stop().animate({width:s,height:l},250,(function(){c.removeClass(t.private_options.active_class+" "+t.options.gallery_active_class).removeAttr("style"),c.find("img").removeAttr("style"),u.addClass(t.private_options.active_class+" "+t.options.gallery_active_class).removeClass("is_next").css("position",""),u.stop().animate({opacity:1},250,(function(){i(this).removeAttr("style").css({width:"100%"}),i(this).find("img").css("width","100%"),n.find(".modaal-gallery-item-wrap").removeAttr("style"),t.options.after_image_change.call(t,u)})),n.find(".modaal-gallery-item").removeAttr("tabindex"),n.find(".modaal-gallery-item."+t.private_options.active_class).attr("tabindex","0").focus(),n.find(".modaal-gallery-item."+t.private_options.active_class).is(".gallery-item-0")?a.stop().animate({opacity:0}
34,150,(function(){i(this).hide()})):a.stop().css({display:"block",opacity:a.css("opacity")}).animate({opacity:1},150),n.find(".modaal-gallery-item."+t.private_options.active_class).is(".gallery-item-"+r)?o.stop().animate({opacity:0},150,(function(){i(this).hide()})):o.stop().css({display:"block",opacity:a.css("opacity")}).animate({opacity:1},150)}))}))},create_video:function(e){var t;t='<iframe src="'+e+'" class="modaal-video-frame" frameborder="0" allowfullscreen></iframe>',this.build_modal('<div class="modaal-video-container">'+t+"</div>")},create_iframe:function(e){var t;t=null!==this.options.width||void 0!==this.options.width||null!==this.options.height||void 0!==this.options.height?'<iframe src="'+e+'" class="modaal-iframe-elem" frameborder="0" allowfullscreen></iframe>':'<div class="modaal-content-container">Please specify a width and height for your iframe</div>',this.build_modal(t)},modaal_open:function(){var e=this,t=i("#"+e.scope.id),n=e.options.animation;"none"===n&&(t.removeClass("modaal-start_none"),e.options.after_open.call(e,t)),"fade"===n&&t.removeClass("modaal-start_fade"),"slide-down"===n&&t.removeClass("modaal-start_slide_down"),i(".modaal-wrapper *[tabindex=0]").removeAttr("tabindex"),("image"==e.options.type?i("#"+e.scope.id).find(".modaal-gallery-item."+e.private_options.active_class):t.find(".modaal-iframe-elem").length?t.find(".modaal-iframe-elem"):t.find(".modaal-video-wrap").length?t.find(".modaal-video-wrap"):t.find(".modaal-focus")).attr("tabindex","0").focus(),"none"!==n&&setTimeout((function(){e.options.after_open.call(e,t)}),e.options.after_callback_delay)},modaal_close:function(){var e=this,t=i("#"+e.scope.id);e.options.before_close.call(e,t),null!==e.xhr&&(e.xhr.abort(),e.xhr=null),"none"===e.options.animation&&t.addClass("modaal-start_none"),"fade"===e.options.animation&&t.addClass("modaal-start_fade"),"slide-down"===e.options.animation&&t.addClass("modaal-start_slide_down"),setTimeout((function(){"inline"==e.options.type&&i("#"+e.scope.id+" .modaal-content-container").contents().clone(!0,!0).appendTo(e.$elem.attr("href")),t.remove(),e.options.after_close.call(e),e.scope.is_open=!1}),e.options.after_callback_delay),e.modaal_overlay("hide"),null!=e.lastFocus&&e.lastFocus.focus()},modaal_overlay:function(e){var t=this;"show"==e?(t.scope.is_open=!0,t.options.background_scroll||t.dom.addClass("modaal-noscroll"),t.dom.append('<div class="modaal-overlay" id="'+t.scope.id+'_overlay"></div>'),i("#"+t.scope.id+"_overlay").css("background",t.options.background).stop().animate({opacity:t.options.overlay_opacity},t.options.animation_speed,(function(){t.modaal_open()}))):"hide"==e&&(t.dom.removeClass("modaal-noscroll"),i("#"+t.scope.id+"_overlay").stop().animate({opacity:0}
34,t.options.animation_speed,(function(){i(this).remove()})))}},i.fn.modaal=function(e){return this.each((function(){var t=i(this).data("modaal");if(t){if("string"==typeof e)switch(e){case"close":t.modaal_close()}}else{var n=Object.create(r);n.init(e,this),i.data(this,"modaal",n)}}))},i.fn.modaal.options={type:"inline",animation:"fade",animation_speed:300,after_callback_delay:350,is_locked:!1,hide_close:!1,background:"#000",overlay_opacity:"0.8",overlay_close:!0,accessible_title:"Dialog Window",start_open:!1,fullscreen:!1,custom_class:"",background_scroll:!1,should_open:!0,close_text:"Close",close_aria_label:"Close (Press escape to close)",width:null,height:null,before_open:function(){},after_open:function(){},before_close:function(){},after_close:function(){},source:function(e,t){return t},confirm_button_text:"Confirm",confirm_cancel_button_text:"Cancel",confirm_title:"Confirm Title",confirm_content:"<p>This is the default confirm dialog content. Replace me through the options</p>",confirm_callback:function(){},confirm_cancel_callback:function(){},gallery_active_class:"gallery_active_item",before_image_change:function(e,t){},after_image_change:function(e){},loading_content:'<div class="modaal-loading-spinner"><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div></div>',loading_class:"is_loading",ajax_error_class:"modaal-error",ajax_success:function(){},instagram_id:null},i((function(){var e=i(".modaal");e.length&&e.each((function(){var e=i(this),t={},n=!1;e.attr("data-modaal-type")&&(n=!0,t.type=e.attr("data-modaal-type")),e.attr("data-modaal-animation")&&(n=!0,t.animation=e.attr("data-modaal-animation")),e.attr("data-modaal-animation-speed")&&(n=!0,t.animation_speed=e.attr("data-modaal-animation-speed")),e.attr("data-modaal-after-callback-delay")&&(n=!0,t.after_callback_delay=e.attr("data-modaal-after-callback-delay")),e.attr("data-modaal-is-locked")&&(n=!0,t.is_locked="true"===e.attr("data-modaal-is-locked")),e.attr("data-modaal-hide-close")&&(n=!0,t.hide_close="true"===e.attr("data-modaal-hide-close")),e.attr("data-modaal-background")&&(n=!0,t.background=e.attr("data-modaal-background")),e.attr("data-modaal-overlay-opacity")&&(n=!0,t.overlay_opacity=e.attr("data-modaal-overlay-opacity")),e.attr("data-modaal-overlay-close")&&(n=!0,t.overlay_close="false"!==e.attr("data-modaal-overlay-close")),e.attr("data-modaal-accessible-title")&&(n=!0,t.accessible_title=e.attr("data-modaal-accessible-title")),e.attr("data-modaal-start-open")&&(n=!0,t.start_open="true"===e.attr("data-modaal-start-open")),e.attr("data-modaal-fullscreen")&&(n=!0,t.fullscreen="true"===e.attr("data-modaal-fullscreen")),e.attr("data-modaal-custom-class")&&(n=!0,t.custom_class=e.attr("data-modaal-custom-class")),e.attr("data-modaal-close-text")&&(n=!0,t.close_text=e.attr("data-modaal-close-text")),e.attr("data-modaal-close-aria-label")&&(n=!0,t.close_aria_label=e.attr("data-modaal-close-aria-label")),e.attr("data-modaal-background-scroll")&&(n=!0,t.background_scroll="true"===e.attr("data-modaal-background-scroll")),e.attr("data-modaal-width")&&(n=!0,t.width=parseInt(e.attr("data-modaal-width"))),e.attr("data-modaal-height")&&(n=!0,t.height=parseInt(e.attr("data-modaal-height"))),e.attr("data-modaal-confirm-button-text")&&(n=!0,t.confirm_button_text=e.attr("data-modaal-confirm-button-text")),e.attr("data-modaal-confirm-cancel-button-text")&&(n=!0,t.confirm_cancel_button_text=e.attr("data-modaal-confirm-cancel-button-text")),e.attr("data-modaal-confirm-title")&&(n=!0,t.confirm_title=e.attr("data-modaal-confirm-title")),e.attr("data-modaal-confirm-content")&&(n=!0,t.confirm_content=e.attr("data-modaal-confirm-content")),e.attr("data-modaal-gallery-active-class")&&(n=!0,t.gallery_active_class=e.attr("data-modaal-gallery-active-class")),e.attr("data-modaal-loading-content")&&(n=!0,t.loading_content=e.attr("data-modaal-loading-content")),e.attr("data-modaal-loading-class")&&(n=!0,t.loading_class=e.attr("data-modaal-loading-class")),e.attr("data-modaal-ajax-error-class")&&(n=!0,t.ajax_error_class=e.attr("data-modaal-ajax-error-class")),e.attr("data-modaal-instagram-id")&&(n=!0,t.instagram_id=e.attr("data-modaal-instagram-id")),n&&e.modaal(t)}))}
34))},function(e,t){e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},function(e,t,n){var i=n(86);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var i=n(158);t.DOMImplementation=i.DOMImplementation,t.XMLSerializer=i.XMLSerializer,t.DOMParser=n(387).DOMParser},function(e,t,n){var i=n(390).getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},function(e,t,n){var i=n(391),r=n(86),a=n(392),o=n(116);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return o(e,arguments,i(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){self,e.exports=(()=>{var e={426:(e,t,n)=>{var i=n(529);function r(e,t,n){Array.isArray(e)?e.push(t):e[n]=t}e.exports=function(e){var t,n,a,o=[];if(Array.isArray(e))n=[],t=e.length-1;else{if("object"!=typeof e||null===e)throw new TypeError("Expecting an Array or an Object, but `"+(null===e?"null":typeof e)+"` provided.");n={},a=Object.keys(e),t=a.length-1}return function n(s,l){var c,u,d,h;for(u=a?a[l]:l,Array.isArray(e[u])||(void 0===e[u]?e[u]=[]:e[u]=[e[u]]),c=0;c<e[u].length;c++)r((h=s,d=Array.isArray(h)?[].concat(h):i(h)),e[u][c],u),l>=t?o.push(d):n(d,l+1)}(n,0),o}},529:e=>{e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var i=arguments[n];for(var r in i)t.call(i,r)&&(e[r]=i[r])}return e};var t=Object.prototype.hasOwnProperty}},t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";n.r(i),n.d(i,{default:()=>z,getCssSelector:()=>U});var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function t(t){return null!=t&&"object"===(void 0===t?"undefined":e(t))&&1===t.nodeType&&"object"===e(t.style)&&"object"===e(t.ownerDocument)}function r(e){var n=e.parentNode;if(n)for(var i=0,r=n.childNodes,a=0;a<r.length;a++)if(t(r[a])&&(i+=1,r[a]===e))return[":nth-child(".concat(i,")")];return[]}var a=" > ";function o(e){return Object.assign({},s,{root:e.ownerDocument.querySelector(":root")})}var s={selectors:["id","class","tag","attribute"],includeTag:!1,whitelist:[],blacklist:[],combineWithinSelector:!0,combineBetweenSelectors:!0},l=new RegExp(["^$","\\s","^\\d"].join("|")),c=new RegExp(["^$","^\\d"].join("|")),u=["nthoftype","tag","id","class","attribute","nthchild"],d=n(426),h=n.n(d);function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){t.forEach((function(n){t.push(n.concat(e))}))})),t.shift(),t.sort((function(e,t){return e.length-t.length}))}function m(e){return e.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".+")}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.length)return new RegExp(".^");var t=e.map((function(e){return"string"==typeof e?m(e):e.source})).join("|");return new RegExp(t)}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=n.querySelectorAll(t);return 1===i.length&&i[0]===e}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=v(n.querySelectorAll(t)),r=i.filter((function(e){return e.parentNode===n}));return 1===r.length&&r.includes(e)}function w(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T(e),i=[],r=e;t(r)&&r!==n;)i.push(r),r=r.parentElement;return i}function T(e){return e.ownerDocument.querySelector(":root")}function S(e){return[L(e.tagName.toLowerCase())]}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var x=g(["class","id","ng-*"]);function C(e){var t=e.nodeName,n=e.nodeValue;return"[".concat(t,"='").concat(L(n),"']")}function E(e){var t=e.nodeName;return!x.test(t)}function A(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var P=":".charCodeAt(0).toString(16).toUpperCase(),I=/[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.split("").map((function(e){return":"===e?"\\".concat(P," "):I.test(e)?"\\".concat(e):escape(e).replace(/%/g,"\\")})).join("")}var D={tag:S,id:function(e){var t=e.getAttribute("id")||"",n="#".concat(L(t));return!l.test(t)&&b(e,n,e.ownerDocument)?[n]:[]},class:function(e){return(e.getAttribute("class")||"").trim().split(/\s+/).filter((function(e){return!c.test(e)})).map((function(e){return".".concat(L(e))}))},attribute:function(e){return(t=e.attributes,function(e){if(Array.isArray(e))return k(e)}(t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).filter(E).map(C);var t},nthchild:r,nthoftype:function(e){var t=S(e)[0],n=e.parentElement;if(n)for(var i=n.querySelectorAll(t),r=0;r<i.length;r++)if(i[r]===e)return["".concat(t,":nth-of-type(").concat(r+1,")")];return[]}};function j(e,t){if(e.parentNode)for(var n=(o=function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.selectors,i=t.combineBetweenSelectors,r=t.includeTag,a=i?p(n):n.map((function(e){return[e]}));return r?a.map(M):a}(e,t).map((function(t){return n=e,i={},t.forEach((function(e){var t=n[e];t.length>0&&(i[e]=t)})),h()(i).map(N);var n,i})).filter((function(e){return""!==e}))}(function(e,t){var n=t.blacklist,i=t.whitelist,r=t.combineWithinSelector,a=g(n),o=g(i);return function(e){var t=e.selectors,n=e.includeTag,i=[].concat(t);return n&&!i.includes("tag")&&i.push("tag"),i}(t).reduce((function(t,n){var i=function(){var e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).sort((function(t,n){var i=e.test(t),r=e.test(n);return i&&!r?-1:!i&&r?1:0}))}(function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(n){return t.test(n)||!e.test(n)}))}(function(e,t){return(D[t]||function(){return[]})(e)}(e,n),a,o),o);return t[n]=r?p(i):i.map((function(e){return[e]})),t}),{})}(e,t),t),(s=[]).concat.apply(s,function(e){if(Array.isArray(e))return f(e)}(a=o)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i=0;i<n.length;i++){var r=n[i];if(_(e,r,e.parentNode))return r}var a,o,s;return"*"}function M(e){return e.includes("tag")||e.includes("nthoftype")?A(e):[].concat(A(e),["tag"])}function R(e,t){return t[e]?t[e].join(""):""}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=A(u);return e.tag&&e.nthoftype&&t.splice(t.indexOf("tag"),1),t.map((function(t){return R(t,e)})).join("")}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function B(e){var t,n=w(e).map((function(e){return r(e)[0]})).reverse();return[":root"].concat((t=n,function(e){if(Array.isArray(e))return $(e)}(t)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).join(a)}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({},o(e),t)}function U(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=F(e,t),i=w(e,n.root),r=[],o=0;o<i.length;o++){r.unshift(j(i[o],n));var s=r.join(a);if(b(e,s,n.root))return s}return B(e,n.root)}const z=U})(),i})()},function(e,t,n){"use strict"; 35/*! npm.im/object-fit-images 3.2.4 */var i="bfred-it:object-fit-images",r=/(object-fit|object-position)\s*:\s*([-.\w\s%]+)/g,a="undefined"==typeof Image?{style:{"object-position":1}}:new Image,o="object-fit"in a.style,s="object-position"in a.style,l="background-size"in a.style,c="string"==typeof a.currentSrc,u=a.getAttribute,d=a.setAttribute,h=!1;function f(e,t,n){var i="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+(t||1)+"' height='"+(n||0)+"'%3E%3C/svg%3E";u.call(e,"src")!==i&&d.call(e,"src",i)}
35function p(e,t){e.naturalWidth?t(e):setTimeout(p,100,e,t)}function m(e){var t=function(e){for(var t,n=getComputedStyle(e).fontFamily,i={};null!==(t=r.exec(n));)i[t[1]]=t[2];return i}(e),n=e[i];if(t["object-fit"]=t["object-fit"]||"fill",!n.img){if("fill"===t["object-fit"])return;if(!n.skipTest&&o&&!t["object-position"])return}if(!n.img){n.img=new Image(e.width,e.height),n.img.srcset=u.call(e,"data-ofi-srcset")||e.srcset,n.img.src=u.call(e,"data-ofi-src")||e.src,d.call(e,"data-ofi-src",e.src),e.srcset&&d.call(e,"data-ofi-srcset",e.srcset),f(e,e.naturalWidth||e.width,e.naturalHeight||e.height),e.srcset&&(e.srcset="");try{!function(e){var t={get:function(t){return e[i].img[t||"src"]},set:function(t,n){return e[i].img[n||"src"]=t,d.call(e,"data-ofi-"+n,t),m(e),t}};Object.defineProperty(e,"src",t),Object.defineProperty(e,"currentSrc",{get:function(){return t.get("currentSrc")}}),Object.defineProperty(e,"srcset",{get:function(){return t.get("srcset")},set:function(e){return t.set(e,"srcset")}})}(e)}catch(e){window.console&&console.warn("https://bit.ly/ofi-old-browser")}}!function(e){if(e.srcset&&!c&&window.picturefill){var t=window.picturefill._;e[t.ns]&&e[t.ns].evaled||t.fillImg(e,{reselect:!0}),e[t.ns].curSrc||(e[t.ns].supported=!1,t.fillImg(e,{reselect:!0})),e.currentSrc=e[t.ns].curSrc||e.src}}(n.img),e.style.backgroundImage='url("'+(n.img.currentSrc||n.img.src).replace(/"/g,'\\"')+'")',e.style.backgroundPosition=t["object-position"]||"center",e.style.backgroundRepeat="no-repeat",e.style.backgroundOrigin="content-box",/scale-down/.test(t["object-fit"])?p(n.img,(function(){n.img.naturalWidth>e.width||n.img.naturalHeight>e.height?e.style.backgroundSize="contain":e.style.backgroundSize="auto"})):e.style.backgroundSize=t["object-fit"].replace("none","auto").replace("fill","100% 100%"),p(n.img,(function(t){f(e,t.naturalWidth,t.naturalHeight)}))}function g(e,t){var n=!h&&!e;if(t=t||{},e=e||"img",s&&!t.skipTest||!l)return!1;"img"===e?e=document.getElementsByTagName("img"):"string"==typeof e?e=document.querySelectorAll(e):"length"in e||(e=[e]);for(var r=0;r<e.length;r++)e[r][i]=e[r][i]||{skipTest:t.skipTest},m(e[r]);n&&(document.body.addEventListener("load",(function(e){"IMG"===e.target.tagName&&g(e.target,{skipTest:t.skipTest})}),!0),h=!0,e="img"),t.watchMQ&&window.addEventListener("resize",g.bind(null,e,{skipTest:t.skipTest}))}g.supportsObjectFit=o,g.supportsObjectPosition=s,function(){function e(e,t){return e[i]&&e[i].img&&("src"===t||"srcset"===t)?e[i].img:e}s||(HTMLImageElement.prototype.getAttribute=function(t){return u.call(e(this,t),t)},HTMLImageElement.prototype.setAttribute=function(t,n){return d.call(e(this,t),t,String(n))})}(),e.exports=g},function(e,t,n){"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof i(e).Element||e instanceof Element}function a(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function o(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}var s=Math.max,l=Math.min,c=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(u())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),s=1,l=1;t&&a(e)&&(s=e.offsetWidth>0&&c(o.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(o.height)/e.offsetHeight||1);var u=(r(e)?i(e):window).visualViewport,h=!d()&&n,f=(o.left+(h&&u?u.offsetLeft:0))/s,p=(o.top+(h&&u?u.offsetTop:0))/l,m=o.width/s,g=o.height/l;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function f(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function p(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return h(m(e)).left+f(e).scrollLeft}function v(e){return i(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function b(e,t,n){void 0===n&&(n=!1);var r,o,s=a(t),l=a(t)&&function(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,i=c(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),u=m(t),d=h(e,l,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(s||!s&&!n)&&(("body"!==p(t)||y(u))&&(v=(r=t)!==i(r)&&a(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:f(r)),a(t)?((b=h(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):u&&(b.x=g(u))),{x:d.left+v.scrollLeft-b.x,y:d.top+v.scrollTop-b.y,width:d.width,height:d.height}}function _(e){var t=h(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function w(e){return"html"===p(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||m(e)}function T(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(p(t))>=0?t.ownerDocument.body:a(t)&&y(t)?t:e(w(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),s=i(r),l=o?[s].concat(s.visualVie
vendor: 9,300 bytes, line 35
35wport||[],y(r)?r:[]):r,c=t.concat(l);return o?c:c.concat(T(w(l)))}function S(e){return["table","td","th"].indexOf(p(e))>=0}function k(e){return a(e)&&"fixed"!==v(e).position?e.offsetParent:null}function x(e){for(var t=i(e),n=k(e);n&&S(n)&&"static"===v(n).position;)n=k(n);return n&&("html"===p(n)||"body"===p(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(u());if(/Trident/i.test(u())&&a(e)&&"fixed"===v(e).position)return null;var n=w(e);for(o(n)&&(n=n.host);a(n)&&["html","body"].indexOf(p(n))<0;){var i=v(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",E="bottom",A="right",O="left",P=[C,E,A,O],I=P.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),L=[].concat(P,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function j(e){var t=new Map,n=new Set,i=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(r){n.add(r.name),[].concat(r.requires||[],r.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var r=t.get(i);r&&e(r)}})),i.push(r)}(e)})),i}var M={placement:"bottom",modifiers:[],strategy:"absolute"};function R(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function N(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,a=t.defaultOptions,o=void 0===a?M:a;return function(e,t,n){void 0===n&&(n=o);var a,s,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},M,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,d={state:l,setOptions:function(n){var a="function"==typeof n?n(l.options):n;h(),l.options=Object.assign({},o,l.options,a),l.scrollParents={reference:r(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var s,u,f=function(e){var t=j(e);return D.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((s=[].concat(i,l.options.modifiers),u=s.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return l.orderedModifiers=f.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,r=e.effect;if("function"==typeof r){var a=r({state:l,name:t,instance:d,options:i});c.push(a||function(){})}})),d.update()},forceUpdate:function(){if(!u){var e=l.elements,t=e.reference,n=e.popper;if(R(t,n)){l.rects={reference:b(t,x(n),"fixed"===l.options.strategy),popper:_(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<l.orderedModifiers.length;i++)if(!0!==l.reset){var r=l.orderedModifiers[i],a=r.fn,o=r.options,s=void 0===o?{}:o,c=r.name;"function"==typeof a&&(l=a({state:l,options:s,name:c,instance:d})||l)}else l.reset=!1,i=-1}}},update:(a=function(){return new Promise((function(e){d.forceUpdate(),e(l)}))},function(){return s||(s=new Promise((function(e){Promise.resolve().then((function(){s=void 0,e(a())}))}))),s}),destroy:function(){h(),u=!0}};if(!R(e,t))return d;function h(){c.forEach((function(e){return e()})),c=[]}return d.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var $={passive:!0};function B(e){return e.split("-")[0]}function F(e){return e.split("-")[1]}function U(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function z(e){var t,n=e.reference,i=e.element,r=e.placement,a=r?B(r):null,o=r?F(r):null,s=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(a){case C:t={x:s,y:n.y-i.height};break;case E:t={x:s,y:n.y+n.height};break;case A:t={x:n.x+n.width,y:l};break;case O:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?U(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case"start":t[c]=t[c]-(n[u]/2-i[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-i[u]/2)}}return t}var H={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,f=e.isFixed,p=s.x,g=void 0===p?0:p,y=s.y,b=void 0===y?0:y,_="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=_.x,b=_.y;var w=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),S=O,k=C,P=window;if(d){var I=x(n),L="clientHeight",D="clientWidth";if(I===i(n)&&"static"!==v(I=m(n)).position&&"absolute"===l&&(L="scrollHeight",D="scrollWidth"),I=I,a===C||(a===O||a===A)&&"end"===o)k=E,b-=(f&&I===P&&P.visualViewport?P.visualViewport.height:I[L])-r.height,b*=u?1:-1;if(a===O||(a===C||a===E)&&"end"===o)S=A,g-=(f&&I===P&&P.visualViewport?P.visualViewport.width:I[D])-r.width,g*=u?1:-1}var j,M=Object.assign({position:l},d&&H),R=!0===h?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:c(n*r)/r||0,y:c(i*r)/r||0}}({x:g,y:b},i(n)):{x:g,y:b};return g=R.x,b=R.y,u?Object.assign({},M,((j={})[k]=T?"0":"",j[S]=w?"0":"",j.transform=(P.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",j)):Object.assign({},M,((t={})[k]=T?b+"px":"",t[S]=w?g+"px":"",t.transform="",t))}var V={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];a(r)&&p(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});a(i)&&p(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var X={left:"right",right:"left",bottom:"top",top:"bottom"};function W(e){return e.replace(/left|right|bottom|top/g,(function(e){return X[e]}))}var G={start:"end",end:"start"};function Y(e){return e.replace(/start|end/g,(function(e){return G[e]}))}function K(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Q(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J(e,t,n){return"viewport"===t?Q(function(e,t){var n=i(e),r=m(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(a){o=a.width,s=a.height;var u=d();(u||!u&&"fixed"===t)&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:s,x:l+g(e),y:c}}(e,n)):r(t)?function(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Q(function(e){var t,n=m(e),i=f(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=s(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=s(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+g(e),c=-i.scrollTop;return"rtl"===v(r||n).direction&&(l+=s(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:l,y:c}}(m(e)))}function Z(e,t,n,i){var o="clippingParents"===t?function(e){var t=T(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&a(e)?x(e):e;return r(n)?t.filter((function(e){return r(e)&&K(e,n)&&"body"!==p(e)})):[]}(e):[].concat(t),c=[].concat(o,[n]),u=c[0],d=c.reduce((function(t,n){var r=J(e,n,i);return t.top=s(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=s(r.left,t.left),t}),J(e,u,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function ee(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function te(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ne(e,t){void 0===t&&(t={});var n=t,i=n.placement,a=void 0===i?e.placement:i,o=n.strategy,s=void 0===o?e.strategy:o,l=n.boundary,c=void 0===l?"clippingParents":l,u=n.rootBoundary,d=void 0===u?"viewport":u,f=n.elementContext,p=void 0===f?"popper":f,g=n.altBoundary,v=void 0!==g&&g,y=n.padding,b=void 0===y?0:y,_=ee("number"!=typeof b?b:te(b,P)),w="popper"===p?"reference":"popper",T=e.rects.popper,S=e.elements[v?w:p],k=Z(r(S)?S:S.contextElement||m(e.elements.popper),c,d,s),x=h(e.elements.reference),O=z({reference:x,element:T,strategy:"absolute",placement:a}),I=Q(Object.assign({},T,O)),L="popper"===p?I:x,D={top:k.top-L.top+_.top,bottom:L.bottom-k.bottom+_.bottom,left:k.left-L.left+_.left,right:L.right-k.right+_.right},j=e.modifiersData.offset;if("popper"===p&&j){var M=j[a];
vendor: 4,190 bytes, line 35
35Object.keys(D).forEach((function(e){var t=[A,E].indexOf(e)>=0?1:-1,n=[C,E].indexOf(e)>=0?"y":"x";D[e]+=M[n]*t}))}return D}function ie(e,t,n){return s(e,l(t,n))}function re(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ae(e){return[C,A,E,O].some((function(t){return e[t]>=0}))}var oe=N({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=void 0===a||a,s=r.resize,l=void 0===s||s,c=i(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach((function(e){e.addEventListener("scroll",n.update,$)})),l&&c.addEventListener("resize",n.update,$),function(){o&&u.forEach((function(e){e.removeEventListener("scroll",n.update,$)})),l&&c.removeEventListener("resize",n.update,$)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:B(t.placement),variation:F(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,q(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,q(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},V,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,o=L.reduce((function(e,n){return e[n]=function(e,t,n){var i=B(e),r=[O,C].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*r,[O,A].indexOf(i)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=o}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=void 0===r||r,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=B(g),y=l||(v===g||!p?[W(g)]:function(e){if("auto"===B(e))return[];var t=W(e);return[Y(e),t,Y(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat("auto"===B(n)?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?L:l,u=F(i),d=u?s?I:I.filter((function(e){return F(e)===u})):P,h=d.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=d);var f=h.reduce((function(t,n){return t[n]=ne(e,{placement:n,boundary:r,rootBoundary:a,padding:o})[B(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,T=new Map,S=!0,k=b[0],x=0;x<b.length;x++){var D=b[x],j=B(D),M="start"===F(D),R=[C,E].indexOf(j)>=0,N=R?"width":"height",$=ne(t,{placement:D,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),U=R?M?A:O:M?E:C;_[N]>w[N]&&(U=W(U));var z=W(U),H=[];if(a&&H.push($[j]<=0),s&&H.push($[U]<=0,$[z]<=0),H.every((function(e){return e}))){k=D,S=!1;break}T.set(D,H)}if(S)for(var q=function(e){var t=b.find((function(t){var n=T.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},V=p?3:1;V>0;
vendor: 6,505 bytes, line 35
35V--){if("break"===q(V))break}t.placement!==k&&(t.modifiersData[i]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=void 0===r||r,o=n.altAxis,c=void 0!==o&&o,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,f=n.padding,p=n.tether,m=void 0===p||p,g=n.tetherOffset,v=void 0===g?0:g,y=ne(t,{boundary:u,rootBoundary:d,padding:f,altBoundary:h}),b=B(t.placement),w=F(t.placement),T=!w,S=U(b),k="x"===S?"y":"x",P=t.modifiersData.popperOffsets,I=t.rects.reference,L=t.rects.popper,D="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,j="number"==typeof D?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(P){if(a){var N,$="y"===S?C:O,z="y"===S?E:A,H="y"===S?"height":"width",q=P[S],V=q+y[$],X=q-y[z],W=m?-L[H]/2:0,G="start"===w?I[H]:L[H],Y="start"===w?-L[H]:-I[H],K=t.elements.arrow,Q=m&&K?_(K):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Z=J[$],ee=J[z],te=ie(0,I[H],Q[H]),re=T?I[H]/2-W-te-Z-j.mainAxis:G-te-Z-j.mainAxis,ae=T?-I[H]/2+W+te+ee+j.mainAxis:Y+te+ee+j.mainAxis,oe=t.elements.arrow&&x(t.elements.arrow),se=oe?"y"===S?oe.clientTop||0:oe.clientLeft||0:0,le=null!=(N=null==M?void 0:M[S])?N:0,ce=q+ae-le,ue=ie(m?l(V,q+re-le-se):V,q,m?s(X,ce):X);P[S]=ue,R[S]=ue-q}if(c){var de,he="x"===S?C:O,fe="x"===S?E:A,pe=P[k],me="y"===k?"height":"width",ge=pe+y[he],ve=pe-y[fe],ye=-1!==[C,O].indexOf(b),be=null!=(de=null==M?void 0:M[k])?de:0,_e=ye?ge:pe-I[me]-L[me]-be+j.altAxis,we=ye?pe+I[me]+L[me]-be-j.altAxis:ve,Te=m&&ye?function(e,t,n){var i=ie(e,t,n);return i>n?n:i}(_e,pe,we):ie(m?_e:ge,pe,m?we:ve);P[k]=Te,R[k]=Te-pe}t.modifiersData[i]=R}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=B(n.placement),l=U(s),c=[O,A].indexOf(s)>=0?"height":"width";if(a&&o){var u=function(e,t){return ee("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:te(e,P))}(r.padding,n),d=_(a),h="y"===l?C:O,f="y"===l?E:A,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],g=x(a),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=p/2-m/2,b=u[h],w=v-d[c]-u[f],T=v/2-d[c]/2+y,S=ie(b,T,w),k=l;n.modifiersData[i]=((t={})[k]=S,t.centerOffset=S-T,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&K(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=ne(t,{elementContext:"reference"}),s=ne(t,{altBoundary:!0}),l=re(o,i),c=re(s,r,a),u=ae(l),d=ae(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),se={passive:!0,capture:!0},le=function(){return document.body};function ce(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function ue(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function de(e,t){return"function"==typeof e?e.apply(void 0,t):e}function he(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function fe(e){return[].concat(e)}function pe(e,t){-1===e.indexOf(t)&&e.push(t)}function me(e){return e.split("-")[0]}function ge(e){return[].slice.call(e)}function ve(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function ye(){return document.createElement("div")}function be(e){return["Element","Fragment"].some((function(t){return ue(e,t)}))}function _e(e){return ue(e,"MouseEvent")}function we(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Te(e){return be(e)?[e]:function(e){return ue(e,"NodeList")}(e)?ge(e):Array.isArray(e)?e:ge(document.querySelectorAll(e))}function Se(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function ke(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function xe(e){var t,n=fe(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Ce(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function Ee(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Ae={isTouch:!1},Oe=0;function Pe(){Ae.isTouch||(Ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ie))}function Ie(){var e=performance.now();e-Oe<20&&(Ae.isTouch=!1,document.removeEventListener("mousemove",Ie)),Oe=e}function Le(){var e=document.activeElement;if(we(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var De=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var je={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Me=Object.assign({appendTo:le,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},je,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Re=Object.keys(Me);function Ne(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,a=n.defaultValue;r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Me[r])?i:a);return t}),{});return Object.assign({},e,t)}function $e(e,t){var n=Object.assign({},t,{content:de(t.content,[e])},t.ignoreAttributes?{}
vendor: 9,587 bytes, line 35
35:function(e,t){return(t?Object.keys(Ne(Object.assign({},Me,{plugins:t}))):Re).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Me.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Be(e,t){e.innerHTML=t}function Fe(e){var t=ye();return!0===e?t.className="tippy-arrow":(t.className="tippy-svg-arrow",be(e)?t.appendChild(e):Be(t,e)),t}function Ue(e,t){be(t.content)?(Be(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Be(e,t.content):e.textContent=t.content)}function ze(e){var t=e.firstElementChild,n=ge(t.children);return{box:t,content:n.find((function(e){return e.classList.contains("tippy-content")})),arrow:n.find((function(e){return e.classList.contains("tippy-arrow")||e.classList.contains("tippy-svg-arrow")})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function He(e){var t=ye(),n=ye();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=ye();function r(n,i){var r=ze(t),a=r.box,o=r.content,s=r.arrow;i.theme?a.setAttribute("data-theme",i.theme):a.removeAttribute("data-theme"),"string"==typeof i.animation?a.setAttribute("data-animation",i.animation):a.removeAttribute("data-animation"),i.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?a.setAttribute("role",i.role):a.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Ue(o,e.props),i.arrow?s?n.arrow!==i.arrow&&(a.removeChild(s),a.appendChild(Fe(i.arrow))):a.appendChild(Fe(i.arrow)):s&&a.removeChild(s)}return i.className="tippy-content",i.setAttribute("data-state","hidden"),Ue(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}He.$$tippy=!0;var qe=1,Ve=[],Xe=[];function We(e,t){var n,i,r,a,o,s,l,c,u=$e(e,Object.assign({},Me,Ne(ve(t)))),d=!1,h=!1,f=!1,p=!1,m=[],g=he(W,u.interactiveDebounce),v=qe++,y=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),b={id:v,reference:e,popper:ye(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){0;if(b.state.isDestroyed)return;D("onBeforeUpdate",[b,t]),V();var n=b.props,i=$e(e,Object.assign({},n,ve(t),{ignoreAttributes:!0}));b.props=i,q(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),g=he(W,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?fe(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded");M(),L(),T&&T(n,i);b.popperInstance&&(Q(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){0;var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Ae.isTouch&&!b.props.touch,r=ce(b.props.duration,0,Me.duration);if(e||t||n||i)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,E()&&(w.style.visibility="visible");L(),F(),b.state.isMounted||(w.style.transition="none");if(E()){var a=P(),o=a.box,l=a.content;Se([o,l],0)}s=function(){var e;if(b.state.isVisible&&!p){if(p=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,E()&&b.props.animation){var t=P(),n=t.box,i=t.content;Se([n,i],r),ke([n,i],"visible")}j(),M(),pe(Xe,b),null==(e=b.popperInstance)||e.forceUpdate(),D("onMount",[b]),b.props.animation&&E()&&function(e,t){z(e,t)}(r,(function(){b.state.isShown=!0,D("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=A();e=b.props.interactive&&t===le||"parent"===t?n.parentNode:de(t,[n]);e.contains(w)||e.appendChild(w);b.state.isMounted=!0,Q(),!1}()},hide:function(){0;var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=ce(b.props.duration,1,Me.duration);if(e||t||n)return;if(D("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,p=!1,d=!1,E()&&(w.style.visibility="hidden");if(R(),U(),L(!0),E()){var r=P(),a=r.box,o=r.content;b.props.animation&&(Se([a,o],i),ke([a,o],"hidden"))}j(),M(),b.props.animation?E()&&function(e,t){z(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(i,b.unmount):b.unmount()},hideWithInteractivity:function(e){0;O().addEventListener("mousemove",g),pe(Ve,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){0;b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Z().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Xe=Xe.filter((function(e){return e!==b})),b.state.isMounted=!1,D("onHidden",[b])},destroy:function(){0;if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),V(),delete e._tippy,b.state.isDestroyed=!0,D("onDestroy",[b])}};if(!u.render)return b;var _=u.render(b),w=_.popper,T=_.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var S=y.map((function(e){return e.fn(b)})),k=e.hasAttribute("aria-expanded");return q(),M(),L(),D("onCreate",[b]),u.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",g)})),b;function x(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===x()[0]}function E(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function A(){return l||e}function O(){var e=A().parentNode;return e?xe(e):document}function P(){return ze(w)}function I(e){return b.state.isMounted&&!b.state.isVisible||Ae.isTouch||a&&"focus"===a.type?0:ce(b.props.delay,e?0:1,Me.delay)}function L(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function D(e,t,n){var i;(void 0===n&&(n=!0),S.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(i=b.props)[e].apply(i,t)}function j(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=w.id;fe(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function M(){!k&&b.props.aria.expanded&&fe(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function R(){O().removeEventListener("mousemove",g),Ve=Ve.filter((function(e){return e!==g}))}function N(t){if(!Ae.isTouch||!f&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Ee(w,n)){if(fe(b.props.triggerTarget||e).some((function(e){return Ee(e,n)}))){if(Ae.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||U())}}}function $(){f=!0}function B(){f=!1}function F(){var e=O();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,se),e.addEventListener("touchstart",B,se),e.addEventListener("touchmove",$,se)}function U(){var e=O();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,se),e.removeEventListener("touchstart",B,se),e.removeEventListener("touchmove",$,se)}function z(e,t){var n=P().box;function i(e){e.target===n&&(Ce(n,"remove",i),t())}if(0===e)return t();Ce(n,"remove",o),Ce(n,"add",i),o=i}function H(t,n,i){void 0===i&&(i=!1),fe(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function q(){var e;C()&&(H("touchstart",X,{passive:!0}),H("touchend",G,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(H(e,X),e){case"mouseenter":H("mouseleave",G);break;case"focus":H(De?"focusout":"blur",Y);break;case"focusin":H("focusout",Y)}}))}function V(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function X(e){var t,n=!1;if(b.state.isEnabled&&!K(e)&&!h){var i="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,M(),!b.state.isVisible&&_e(e)&&Ve.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||d)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!i&&te(e)}}function W(e){var t=e.target,n=A().contains(t)||w.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,o=me(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===o?s.top.y:0,c="top"===o?s.bottom.y:0,u="right"===o?s.left.x:0,d="left"===o?s.right.x:0,h=t.top-i+l>a,f=i-t.bottom-c>a,p=t.left-n+u>a,m=n-t.right-d>a;return h||f||p||m}))}(Z().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null}
35)).filter(Boolean),e)&&(R(),te(e))}function G(e){K(e)||b.props.trigger.indexOf("click")>=0&&d||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Y(e){b.props.trigger.indexOf("focusin")<0&&e.target!==A()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function K(e){return!!Ae.isTouch&&C()!==e.type.indexOf("touch")>=0}function Q(){J();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,a=t.getReferenceClientRect,o=t.moveTransition,l=E()?ze(w).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||A()}:e,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!o}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(E()){var n=P().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];E()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),b.popperInstance=oe(c,w,Object.assign({},n,{placement:i,onFirstUpdate:s,modifiers:u}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return ge(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&D("onTrigger",[b,e]),F();var t=I(!0),i=x(),r=i[0],a=i[1];Ae.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),D("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=I(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else U()}}function Ge(e,t){void 0===t&&(t={});var n=Me.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Pe,se),window.addEventListener("blur",Le);var i=Object.assign({},t,{plugins:n}),r=Te(e).reduce((function(e,t){var n=t&&We(t,i);return n&&e.push(n),e}),[]);return be(e)?r[0]:r}Ge.defaultProps=Me,Ge.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Me[t]=e[t]}))},Ge.currentInput=Ae;Object.assign({},V,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Ge.setDefaultProps({render:He});t.a=Ge},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var i=n(6),r=n.n(i),a=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(),o=n(28),s=n.n(o),l=n(8),c=n.n(l),u=n(87),d=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return r()(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(a),h=String.fromCharCode(9),f=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},p=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},m=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}r()(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((function(t,n){var i=n(e);return i===e?t:t.concat([i])}
vendor: 4,302 bytes, line 35
35),[e]).forEach((function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=s()(f(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var a=p(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=f(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=p(t[1]),n.attributes.RESOLUTION){var o=n.attributes.RESOLUTION.split("x"),l={};o[0]&&(l.width=parseInt(o[0],10)),o[1]&&(l.height=parseInt(o[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=p(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=p(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=p(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"skip"}).attributes=p(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(h)),void i.trigger("data",n);
35if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part"}).attributes=p(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=f(n.attributes.BYTERANGE)),void i.trigger("data",n);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"server-control"}).attributes=p(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void i.trigger("data",n);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part-inf"}).attributes=p(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void i.trigger("data",n);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=p(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void i.trigger("data",n);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=p(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})})):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push((function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push((function(e){return t.test(e)?n(e):e}))},t}(a),g=function(e){var t={};return Object.keys(e).forEach((function(n){var i;t[(i=n,i.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()})))]=e[n]})),t},v=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",s=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=s,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+s+")."})),s&&t[a]<s&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+s+")"}),t[a]=s),i&&!t.hasOwnProperty(o)&&(t[o]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[o]+")."})),i&&t[o]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[o]+") to partTargetDuration * 2 ("+l+")."}),t[o]=l)}},y=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new d,t.parseStream=new m,t.lineStream.pipe(t.parseStream);var n,i,r=c()(t),a=[],o={},l=!1,h=function(){},f={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},p=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var y=0,b=0;return t.on("end",(function(){o.uri||!o.parts&&!o.preloadHints||(!o.map&&n&&(o.map=n),!o.key&&i&&(o.key=i),o.timeline||"number"!=typeof p||(o.timeline=p),t.manifest.preloadSegment=o)})),t.parseStream.on("data",(function(e){var t,c;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(o.byterange=t,t.length=e.length,"offset"in e||(e.offset=y)),"offset"in e&&(o.byterange=t,t.offset=e.offset),y=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(o.duration=e.duration),0===e.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:Object(u.a)(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,p=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={}
35,e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||f,e.attributes?(o.attributes||(o.attributes={}),s()(o.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||f,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(c={default:/yes/i.test(e.attributes.DEFAULT)}).default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=c}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){p+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),o.dateTimeString=e.dateTimeString,o.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,v.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){o.cueOut=e.data},"cue-out-cont":function(){o.cueOutCont=e.data},"cue-in":function(){o.cueIn=e.data},skip:function(){this.manifest.skip=g(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;l=!0;var n=this.manifest.segments.length,i=g(e.attributes);o.parts=o.parts||[],o.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=b),b=i.byterange.offset+i.byterange.length);var r=o.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=g(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),v.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=g(e.attributes),i=n.type&&"PART"===n.type;o.preloadHints=o.preloadHints||[],o.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?b:0,i&&(b=n.byterange.offset+n.byterange.length)));var r=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<o.preloadHints.length-1;a++){var s=o.preloadHints[a];s.type&&(s.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=g(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];l&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=g(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),v.call(this,this.manifest)}}[e.tagType]||h).call(r)}
35,uri:function(){o.uri=e.uri,a.push(o),this.manifest.targetDuration&&!("duration"in o)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),i&&(o.key=i),o.timeline=p,n&&(o.map=n),b=0,o={}},comment:function(){},custom:function(){e.segment?(o.custom=o.custom||{},o.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}r()(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var i=n(7),r=n(2);let a,o,s;function l(){return a||(a=function(){const e=Object(i.a)(),t=Object(i.b)();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),a}function c(e){return void 0===e&&(e={}),o||(o=function(e){let{userAgent:t}=void 0===e?{}:e;const n=l(),r=Object(i.a)(),a=r.navigator.platform,o=t||r.navigator.userAgent,s={ios:!1,android:!1},c=r.screen.width,u=r.screen.height,d=o.match(/(Android);?[\s\/]+([\d.]+)?/);let h=o.match(/(iPad).*OS\s([\d_]+)/);const f=o.match(/(iPod)(.*OS\s([\d_]+))?/),p=!h&&o.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m="Win32"===a;let g="MacIntel"===a;return!h&&g&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${c}x${u}`)>=0&&(h=o.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),g=!1),d&&!m&&(s.os="android",s.android=!0),(h||p||f)&&(s.os="ios",s.ios=!0),s}(e)),o}function u(){return s||(s=function(){const e=Object(i.a)();let t=!1;function n(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(n()){const n=String(e.navigator.userAgent);if(n.includes("Version/")){const[e,i]=n.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));t=e<16||16===e&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}()),s}var d={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,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];t.apply(i,a)}return r.__emitterProxy=t,i.on(e,r,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed)return n;if("function"!=typeof e)return n;const i=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[i](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=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,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],n=a.slice(1,a.length),i=e):(t=a[0].events,n=a[0].data,i=a[0].context||e),n.unshift(i);
35return(Array.isArray(t)?t:t.split(" ")).forEach(t=>{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}};const h=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=t.closest(e.isElement?"swiper-slide":"."+e.params.slideClass);if(n){let t=n.querySelector("."+e.params.lazyPreloaderClass);!t&&e.isElement&&(n.shadowRoot?t=n.shadowRoot.querySelector("."+e.params.lazyPreloaderClass):requestAnimationFrame(()=>{n.shadowRoot&&(t=n.shadowRoot.querySelector("."+e.params.lazyPreloaderClass),t&&t.remove())})),t&&t.remove()}},f=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},p=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),r=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const n=r,a=[n-t];return a.push(...Array.from({length:t}).map((e,t)=>n+i+t)),void e.slides.forEach((t,n)=>{a.includes(t.column)&&f(e,n)})}const a=r+i-1;if(e.params.rewind||e.params.loop)for(let i=r-t;i<=a+t;i+=1){const t=(i%n+n)%n;(t<r||t>a)&&f(e,t)}else for(let i=Math.max(r-t,0);i<=Math.min(a+t,n-1);i+=1)i!==r&&(i>a||i<r)&&f(e,i)};function m(e){let{swiper:t,runCallbacks:n,direction:i,step:r}=e;const{activeIndex:a,previousIndex:o}=t;let s=i;if(s||(s=a>o?"next":a<o?"prev":"reset"),t.emit("transition"+r),n&&a!==o){if("reset"===s)return void t.emit("slideResetTransition"+r);t.emit("slideChangeTransition"+r),"next"===s?t.emit("slideNextTransition"+r):t.emit("slidePrevTransition"+r)}}function g(e,t,n){const r=Object(i.a)(),{params:a}=e,o=a.edgeSwipeDetection,s=a.edgeSwipeThreshold;return!o||!(n<=s||n>=r.innerWidth-s)||"prevent"===o&&(t.preventDefault(),!0)}function v(e){const t=this,n=Object(i.b)();let a=e;a.originalEvent&&(a=a.originalEvent);const o=t.touchEventsData;if("pointerdown"===a.type){if(null!==o.pointerId&&o.pointerId!==a.pointerId)return;o.pointerId=a.pointerId}else"touchstart"===a.type&&1===a.targetTouches.length&&(o.touchId=a.targetTouches[0].identifier);if("touchstart"===a.type)return void g(t,a,a.targetTouches[0].pageX);const{params:s,touches:l,enabled:c}=t;if(!c)return;if(!s.simulateTouch&&"mouse"===a.pointerType)return;if(t.animating&&s.preventInteractionOnTransition)return;!t.animating&&s.cssMode&&s.loop&&t.loopFix();let u=a.target;if("wrapper"===s.touchEventsTarget&&!t.wrapperEl.contains(u))return;if("which"in a&&3===a.which)return;if("button"in a&&a.button>0)return;if(o.isTouched&&o.isMoved)return;const d=!!s.noSwipingClass&&""!==s.noSwipingClass,h=a.composedPath?a.composedPath():a.path;d&&a.target&&a.target.shadowRoot&&h&&(u=h[0]);const f=s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass,p=!(!a.target||!a.target.shadowRoot);if(s.noSwiping&&(p?function(e,t){return void 0===t&&(t=this),function t(n){if(!n||n===Object(i.b)()||n===Object(i.a)())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(e);return r||n.getRootNode?r||t(n.getRootNode().host):null}(t)}(f,u):u.closest(f)))return void(t.allowClick=!0);if(s.swipeHandler&&!u.closest(s.swipeHandler))return;l.currentX=a.pageX,l.currentY=a.pageY;const m=l.currentX,v=l.currentY;if(!g(t,a,m))return;Object.assign(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=m,l.startY=v,o.touchStartTime=Object(r.d)(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,s.threshold>0&&(o.allowThresholdMove=!1);let y=!0;u.matches(o.focusableElements)&&(y=!1,"SELECT"===u.nodeName&&(o.isTouched=!1)),n.activeElement&&n.activeElement.matches(o.focusableElements)&&n.activeElement!==u&&n.activeElement.blur();const b=y&&t.allowTouchMove&&s.touchStartPreventDefault;!s.touchStartForcePreventDefault&&!b||u.isContentEditable||a.preventDefault(),s.freeMode&&s.freeMode.enabled&&t.freeMode&&t.animating&&!s.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",a)}function y(e){const t=Object(i.b)(),n=this,a=n.touchEventsData,{params:o,touches:s,rtlTranslate:l,enabled:c}=n;if(!c)return;if(!o.simulateTouch&&"mouse"===e.pointerType)return;let u,d=e;if(d.originalEvent&&(d=d.originalEvent),"pointermove"===d.type){if(null!==a.touchId)return;if(d.pointerId!==a.pointerId)return}if("touchmove"===d.type){if(u=[...d.changedTouches].filter(e=>e.identifier===a.touchId)[0],!u||u.identifier!==a.touchId)return}else u=d;if(!a.isTouched)return void(a.startMoving&&a.isScrolling&&n.emit("touchMoveOpposite",d));const h=u.pageX,f=u.pageY;if(d.preventedByNestedSwiper)return s.startX=h,void(s.startY=f);if(!n.allowTouchMove)return d.target.matches(a.focusableElements)||(n.allowClick=!1),void(a.isTouched&&(Object.assign(s,{startX:h,startY:f,currentX:h,currentY:f}),a.touchStartTime=Object(r.d)()));if(o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(f<s.startY&&n.translate<=n.maxTranslate()||f>s.startY&&n.translate>=n.minTranslate())return a.isTouched=!1,void(a.isMoved=!1)}else if(h<s.startX&&n.translate<=n.maxTranslate()||h>s.startX&&n.translate>=n.minTranslate())return;if(t.activeElement&&d.target===t.activeElement&&d.target.matches(a.focusableElements))return a.isMoved=!0,void(n.allowClick=!1);a.allowTouchCallbacks&&n.emit("touchMove",d),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=h,s.currentY=f;const p=s.currentX-s.startX,m=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(p**2+m**2)<n.params.threshold)return;if(void 0===a.isScrolling){let e;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?a.isScrolling=!1:p*p+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(p))/Math.PI,a.isScrolling=n.isHorizontal()?e>o.touchAngle:90-e>o.touchAngle)}if(a.isScrolling&&n.emit("touchMoveOpposite",d),void 0===a.startMoving&&(s.currentX===s.startX&&s.currentY===s.startY||(a.startMoving=!0)),a.isScrolling)return void(a.isTouched=!1);if(!a.startMoving)return;n.allowClick=!1,!o.cssMode&&d.cancelable&&d.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&d.stopPropagation();let g=n.isHorizontal()?p:m,v=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;o.oneWayMovement&&(g=Math.abs(g)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),s.diff=g,g*=o.touchRatio,l&&(g=-g,v=-v);const y=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=v>0?"prev":"next";const b=n.params.loop&&!o.cssMode,_="next"===n.touchesDirection&&n.allowSlideNext||"prev"===n.touchesDirection&&n.allowSlidePrev;if(!a.isMoved){if(b&&_&&n.loopFix({direction:n.swipeDirection}),a.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});
vendor: 1,840 bytes, line 35
35n.wrapperEl.dispatchEvent(e)}a.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",d)}if((new Date).getTime(),a.isMoved&&a.allowThresholdMove&&y!==n.touchesDirection&&b&&_&&Math.abs(g)>=1)return Object.assign(s,{startX:h,startY:f,currentX:h,currentY:f,startTranslate:a.currentTranslate}),a.loopSwapReset=!0,void(a.startTranslate=a.currentTranslate);n.emit("sliderMove",d),a.isMoved=!0,a.currentTranslate=g+a.startTranslate;let w=!0,T=o.resistanceRatio;if(o.touchReleaseOnEdges&&(T=0),g>0?(b&&_&&a.allowThresholdMove&&a.currentTranslate>(o.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),a.currentTranslate>n.minTranslate()&&(w=!1,o.resistance&&(a.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+a.startTranslate+g)**T))):g<0&&(b&&_&&a.allowThresholdMove&&a.currentTranslate<(o.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-("auto"===o.slidesPerView?n.slidesPerViewDynamic():Math.ceil(parseFloat(o.slidesPerView,10)))}),a.currentTranslate<n.maxTranslate()&&(w=!1,o.resistance&&(a.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-a.startTranslate-g)**T))),w&&(d.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&a.currentTranslate<a.startTranslate&&(a.currentTranslate=a.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&a.currentTranslate>a.startTranslate&&(a.currentTranslate=a.startTranslate),n.allowSlidePrev||n.allowSlideNext||(a.currentTranslate=a.startTranslate),o.threshold>0){if(!(Math.abs(g)>o.threshold||a.allowThresholdMove))return void(a.currentTranslate=a.startTranslate);
vendor: 6,676 bytes, line 35
35if(!a.allowThresholdMove)return a.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,a.currentTranslate=a.startTranslate,void(s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY)}o.followFinger&&!o.cssMode&&((o.freeMode&&o.freeMode.enabled&&n.freeMode||o.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&o.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(a.currentTranslate),n.setTranslate(a.currentTranslate))}function b(e){const t=this,n=t.touchEventsData;let i,a=e;a.originalEvent&&(a=a.originalEvent);if("touchend"===a.type||"touchcancel"===a.type){if(i=[...a.changedTouches].filter(e=>e.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(null!==n.touchId)return;if(a.pointerId!==n.pointerId)return;i=a}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(a.type)){if(!(["pointercancel","contextmenu"].includes(a.type)&&(t.browser.isSafari||t.browser.isWebView)))return}n.pointerId=null,n.touchId=null;const{params:o,touches:s,rtlTranslate:l,slidesGrid:c,enabled:u}=t;if(!u)return;if(!o.simulateTouch&&"mouse"===a.pointerType)return;if(n.allowTouchCallbacks&&t.emit("touchEnd",a),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&o.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);o.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const d=Object(r.d)(),h=d-n.touchStartTime;if(t.allowClick){const e=a.path||a.composedPath&&a.composedPath();t.updateClickedSlide(e&&e[0]||a.target,e),t.emit("tap click",a),h<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",a)}if(n.lastClickTime=Object(r.d)(),Object(r.n)(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===s.diff&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);let f;if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,f=o.followFinger?l?t.translate:-t.translate:-n.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const p=f>=-t.maxTranslate()&&!t.params.loop;let m=0,g=t.slidesSizesGrid[0];for(let e=0;e<c.length;e+=e<o.slidesPerGroupSkip?1:o.slidesPerGroup){const t=e<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;void 0!==c[e+t]?(p||f>=c[e]&&f<c[e+t])&&(m=e,g=c[e+t]-c[e]):(p||f>=c[e])&&(m=e,g=c[c.length-1]-c[c.length-2])}let v=null,y=null;o.rewind&&(t.isBeginning?y=o.virtual&&o.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(v=0));const b=(f-c[m])/g,_=m<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(b>=o.longSwipesRatio?t.slideTo(o.rewind&&t.isEnd?v:m+_):t.slideTo(m)),"prev"===t.swipeDirection&&(b>1-o.longSwipesRatio?t.slideTo(m+_):null!==y&&b<0&&Math.abs(b)>o.longSwipesRatio?t.slideTo(y):t.slideTo(m))}else{if(!o.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(a.target===t.navigation.nextEl||a.target===t.navigation.prevEl)?a.target===t.navigation.nextEl?t.slideTo(m+_):t.slideTo(m):("next"===t.swipeDirection&&t.slideTo(null!==v?v:m+_),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:m))}}function _(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:a}=e,o=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const s=o&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||s?e.params.loop&&!o?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=r,e.allowSlideNext=i,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}function w(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function T(){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 a=e.maxTranslate()-e.minTranslate();r=0===a?0:(e.translate-e.minTranslate())/a,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function S(e){h(this,e.target),this.params.cssMode||"auto"!==this.params.slidesPerView&&!this.params.autoHeight||this.update()}function k(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}const x=(e,t)=>{const n=Object(i.b)(),{params:r,el:a,wrapperEl:o,device:s}=e,l=!!r.nested,c="on"===t?"addEventListener":"removeEventListener",u=t;n[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),a[c]("touchstart",e.onTouchStart,{passive:!1}),a[c]("pointerdown",e.onTouchStart,{passive:!1}),n[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),n[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),n[c]("touchend",e.onTouchEnd,{passive:!0}),n[c]("pointerup",e.onTouchEnd,{passive:!0}),n[c]("pointercancel",e.onTouchEnd,{passive:!0}),n[c]("touchcancel",e.onTouchEnd,{passive:!0}),n[c]("pointerout",e.onTouchEnd,{passive:!0}),n[c]("pointerleave",e.onTouchEnd,{passive:!0}),n[c]("contextmenu",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[c]("click",e.onClick,!0),r.cssMode&&o[c]("scroll",e.onScroll),r.updateOnWindowResize?e[u](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0):e[u]("observerUpdate",_,!0),a[c]("load",e.onLoad,{capture:!0})};const C=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var E={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",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",
35spaceBetween: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:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!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-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function A(e,t){return function(n){void 0===n&&(n={});const i=Object.keys(n)[0],a=n[i];"object"==typeof a&&null!==a?(!0===e[i]&&(e[i]={enabled:!0}),"navigation"===i&&e[i]&&e[i].enabled&&!e[i].prevEl&&!e[i].nextEl&&(e[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&e[i]&&e[i].enabled&&!e[i].el&&(e[i].auto=!0),i in e&&"enabled"in a?("object"!=typeof e[i]||"enabled"in e[i]||(e[i].enabled=!0),e[i]||(e[i]={enabled:!1}),Object(r.t)(t,n)):Object(r.t)(t,n)):Object(r.t)(t,n)}}const O={eventsEmitter:d,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.clientWidth,n=void 0!==e.params.height&&null!==e.params.height?e.params.height:i.clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(Object(r.m)(i,"padding-left")||0,10)-parseInt(Object(r.m)(i,"padding-right")||0,10),n=n-parseInt(Object(r.m)(i,"padding-top")||0,10)-parseInt(Object(r.m)(i,"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,n){return parseFloat(t.getPropertyValue(e.getDirectionLabel(n))||0)}const n=e.params,{wrapperEl:i,slidesEl:a,size:o,rtlTranslate:s,wrongRTL:l}=e,c=e.virtual&&n.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=Object(r.e)(a,`.${e.params.slideClass}, swiper-slide`),h=c?e.virtual.slides.length:d.length;let f=[];const p=[],m=[];let g=n.slidesOffsetBefore;"function"==typeof g&&(g=n.slidesOffsetBefore.call(e));let v=n.slidesOffsetAfter;"function"==typeof v&&(v=n.slidesOffsetAfter.call(e));const y=e.snapGrid.length,b=e.slidesGrid.length;let _=n.spaceBetween,w=-g,T=0,S=0;if(void 0===o)return;"string"==typeof _&&_.indexOf("%")>=0?_=parseFloat(_.replace("%",""))/100*o:"string"==typeof _&&(_=parseFloat(_)),e.virtualSize=-_,d.forEach(e=>{s?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Object(r.s)(i,"--swiper-centered-offset-before",""),Object(r.s)(i,"--swiper-centered-offset-after",""));const k=n.grid&&n.grid.rows>1&&e.grid;let x;k?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const C="auto"===n.slidesPerView&&n.breakpoints&&Object.keys(n.breakpoints).filter(e=>void 0!==n.breakpoints[e].slidesPerView).length>0;for(let i=0;i<h;i+=1){let a;if(x=0,d[i]&&(a=d[i]),k&&e.grid.updateSlide(i,a,d),!d[i]||"none"!==Object(r.m)(a,"display")){if("auto"===n.slidesPerView){C&&(d[i].style[e.getDirectionLabel("width")]="");const o=getComputedStyle(a),s=a.style.transform,l=a.style.webkitTransform;if(s&&(a.style.transform="none"),l&&(a.style.webkitTransform="none"),n.roundLengths)x=e.isHorizontal()?Object(r.f)(a,"width",!0):Object(r.f)(a,"height",!0);
35else{const e=t(o,"width"),n=t(o,"padding-left"),i=t(o,"padding-right"),r=t(o,"margin-left"),s=t(o,"margin-right"),l=o.getPropertyValue("box-sizing");if(l&&"border-box"===l)x=e+r+s;else{const{clientWidth:t,offsetWidth:o}=a;x=e+n+i+r+s+(o-t)}}s&&(a.style.transform=s),l&&(a.style.webkitTransform=l),n.roundLengths&&(x=Math.floor(x))}else x=(o-(n.slidesPerView-1)*_)/n.slidesPerView,n.roundLengths&&(x=Math.floor(x)),d[i]&&(d[i].style[e.getDirectionLabel("width")]=x+"px");d[i]&&(d[i].swiperSlideSize=x),m.push(x),n.centeredSlides?(w=w+x/2+T/2+_,0===T&&0!==i&&(w=w-o/2-_),0===i&&(w=w-o/2-_),Math.abs(w)<.001&&(w=0),n.roundLengths&&(w=Math.floor(w)),S%n.slidesPerGroup==0&&f.push(w),p.push(w)):(n.roundLengths&&(w=Math.floor(w)),(S-Math.min(e.params.slidesPerGroupSkip,S))%e.params.slidesPerGroup==0&&f.push(w),p.push(w),w=w+x+_),e.virtualSize+=x+_,T=x,S+=1}}if(e.virtualSize=Math.max(e.virtualSize,o)+v,s&&l&&("slide"===n.effect||"coverflow"===n.effect)&&(i.style.width=e.virtualSize+_+"px"),n.setWrapperSize&&(i.style[e.getDirectionLabel("width")]=e.virtualSize+_+"px"),k&&e.grid.updateWrapperSize(x,f),!n.centeredSlides){const t=[];for(let i=0;i<f.length;i+=1){let r=f[i];n.roundLengths&&(r=Math.floor(r)),f[i]<=e.virtualSize-o&&t.push(r)}f=t,Math.floor(e.virtualSize-o)-Math.floor(f[f.length-1])>1&&f.push(e.virtualSize-o)}if(c&&n.loop){const t=m[0]+_;if(n.slidesPerGroup>1){const i=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/n.slidesPerGroup),r=t*n.slidesPerGroup;for(let e=0;e<i;e+=1)f.push(f[f.length-1]+r)}for(let i=0;i<e.virtual.slidesBefore+e.virtual.slidesAfter;i+=1)1===n.slidesPerGroup&&f.push(f[f.length-1]+t),p.push(p[p.length-1]+t),e.virtualSize+=t}if(0===f.length&&(f=[0]),0!==_){const t=e.isHorizontal()&&s?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(n.cssMode&&!n.loop)||t!==d.length-1).forEach(e=>{e.style[t]=_+"px"})}if(n.centeredSlides&&n.centeredSlidesBounds){let e=0;m.forEach(t=>{e+=t+(_||0)}),e-=_;const t=e-o;f=f.map(e=>e<=0?-g:e>t?t+v:e)}if(n.centerInsufficientSlides){let e=0;if(m.forEach(t=>{e+=t+(_||0)}),e-=_,e<o){const t=(o-e)/2;f.forEach((e,n)=>{f[n]=e-t}),p.forEach((e,n)=>{p[n]=e+t})}}if(Object.assign(e,{slides:d,snapGrid:f,slidesGrid:p,slidesSizesGrid:m}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Object(r.s)(i,"--swiper-centered-offset-before",-f[0]+"px"),Object(r.s)(i,"--swiper-centered-offset-after",e.size/2-m[m.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(h!==u&&e.emit("slidesLengthChange"),f.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),p.length!==b&&e.emit("slidesGridLengthChange"),n.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(c||n.cssMode||"slide"!==n.effect&&"fade"!==n.effect)){const t=n.containerModifierClass+"backface-hidden",i=e.el.classList.contains(t);h<=n.maxBackfaceHiddenSlides?i||e.el.classList.add(t):i&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,n=[],i=t.virtual&&t.params.virtual.enabled;let r,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const o=e=>i?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{n.push(e)});else for(r=0;r<Math.ceil(t.params.slidesPerView);r+=1){const e=t.activeIndex+r;if(e>t.slides.length&&!i)break;n.push(o(e))}else n.push(o(t.activeIndex));for(r=0;r<n.length;r+=1)if(void 0!==n[r]){const e=n[r].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=a+"px")},updateSlidesOffset:function(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=(e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop)-n-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,n=t.params,{slides:i,rtlTranslate:r,snapGrid:a}=t;if(0===i.length)return;void 0===i[0].swiperSlideOffset&&t.updateSlidesOffset();let o=-e;
35r&&(o=e),i.forEach(e=>{e.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let s=n.spaceBetween;"string"==typeof s&&s.indexOf("%")>=0?s=parseFloat(s.replace("%",""))/100*t.size:"string"==typeof s&&(s=parseFloat(s));for(let e=0;e<i.length;e+=1){const l=i[e];let c=l.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(c-=i[0].swiperSlideOffset);const u=(o+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),d=(o-a[0]+(n.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+s),h=-(o-c),f=h+t.slidesSizesGrid[e],p=h>=0&&h<=t.size-t.slidesSizesGrid[e];(h>=0&&h<t.size-1||f>1&&f<=t.size||h<=0&&f>=t.size)&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e),i[e].classList.add(n.slideVisibleClass)),p&&i[e].classList.add(n.slideFullyVisibleClass),l.progress=r?-u:u,l.originalProgress=r?-d:d}},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:a,isEnd:o,progressLoop:s}=t;const l=a,c=o;if(0===i)r=0,a=!0,o=!0;else{r=(e-t.minTranslate())/i;const n=Math.abs(e-t.minTranslate())<1,s=Math.abs(e-t.maxTranslate())<1;a=n||r<=0,o=s||r>=1,n&&(r=0),s&&(r=1)}if(n.loop){const n=t.getSlideIndexByData(0),i=t.getSlideIndexByData(t.slides.length-1),r=t.slidesGrid[n],a=t.slidesGrid[i],o=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);s=l>=r?(l-r)/o:(l+o-a)/o,s>1&&(s-=1)}Object.assign(t,{progress:r,progressLoop:s,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!o)&&t.emit("fromEdge"),t.emit("progress",r)},updateSlidesClasses:function(){const e=this,{slides:t,params:n,slidesEl:i,activeIndex:a}=e,o=e.virtual&&n.virtual.enabled,s=e.grid&&n.grid&&n.grid.rows>1,l=e=>Object(r.e)(i,`.${n.slideClass}${e}, swiper-slide${e}`)[0];let c,u,d;if(t.forEach(e=>{e.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)}),o)if(n.loop){let t=a-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),c=l(`[data-swiper-slide-index="${t}"]`)}else c=l(`[data-swiper-slide-index="${a}"]`);else s?(c=t.filter(e=>e.column===a)[0],d=t.filter(e=>e.column===a+1)[0],u=t.filter(e=>e.column===a-1)[0]):c=t[a];c&&(c.classList.add(n.slideActiveClass),s?(d&&d.classList.add(n.slideNextClass),u&&u.classList.add(n.slidePrevClass)):(d=Object(r.o)(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=t[0]),d&&d.classList.add(n.slideNextClass),u=Object(r.p)(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&0===!u&&(u=t[t.length-1]),u&&u.classList.add(n.slidePrevClass))),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:i,params:r,activeIndex:a,realIndex:o,snapIndex:s}=t;let l,c=e;const u=e=>{let n=e-t.virtual.slidesBefore;return n<0&&(n=t.virtual.slides.length+n),n>=t.virtual.slides.length&&(n-=t.virtual.slides.length),n};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:n}=e,i=e.rtlTranslate?e.translate:-e.translate;let r;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?i>=t[e]&&i<t[e+1]-(t[e+1]-t[e])/2?r=e:i>=t[e]&&i<t[e+1]&&(r=e+1):i>=t[e]&&(r=e);return n.normalizeSlideIndex&&(r<0||void 0===r)&&(r=0),r}(t)),i.indexOf(n)>=0)l=i.indexOf(n);else{const e=Math.min(r.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/r.slidesPerGroup)}if(l>=i.length&&(l=i.length-1),c===a&&!t.params.loop)return void(l!==s&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=u(c));const d=t.grid&&r.grid&&r.grid.rows>1;let h;if(t.virtual&&r.virtual.enabled&&r.loop)h=u(c);else if(d){const e=t.slides.filter(e=>e.column===c)[0];let n=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(n)&&(n=Math.max(t.slides.indexOf(e),0)),h=Math.floor(n/r.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:s,snapIndex:l,previousRealIndex:o,realIndex:h,previousIndex:a,activeIndex:c}),t.initialized&&p(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(o!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const n=this,i=n.params;let r=e.closest(`.${i.slideClass}, swiper-slide`);!r&&n.isElement&&t&&t.length>
351&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!r&&e.matches&&e.matches(`.${i.slideClass}, swiper-slide`)&&(r=e)});let a,o=!1;if(r)for(let e=0;e<n.slides.length;e+=1)if(n.slides[e]===r){o=!0,a=e;break}if(!r||!o)return n.clickedSlide=void 0,void(n.clickedIndex=void 0);n.clickedSlide=r,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a,i.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:n,translate:i,wrapperEl:a}=this;if(t.virtualTranslate)return n?-i:i;if(t.cssMode)return i;let o=Object(r.i)(a,e);return o+=this.cssOverflowAdjustment(),n&&(o=-o),o||0},setTranslate:function(e,t){const n=this,{rtlTranslate:i,params:r,wrapperEl:a,progress:o}=n;let s,l=0,c=0;n.isHorizontal()?l=i?-e:e:c=e,r.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,r.cssMode?a[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:r.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const u=n.maxTranslate()-n.minTranslate();s=0===u?0:(e-n.minTranslate())/u,s!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,n,i,a){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),void 0===i&&(i=!0);const o=this,{params:s,wrapperEl:l}=o;if(o.animating&&s.preventInteractionOnTransition)return!1;const c=o.minTranslate(),u=o.maxTranslate();let d;if(d=i&&e>c?c:i&&e<u?u:e,o.updateProgress(d),s.cssMode){const e=o.isHorizontal();if(0===t)l[e?"scrollLeft":"scrollTop"]=-d;else{if(!o.support.smoothScroll)return Object(r.q)({swiper:o,targetPosition:-d,side:e?"left":"top"}),!0;l.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(o.setTransition(0),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",t,a),o.emit("transitionEnd"))):(o.setTransition(t),o.setTranslate(d),n&&(o.emit("beforeTransitionStart",t,a),o.emit("transitionStart")),o.animating||(o.animating=!0,o.onTranslateToWrapperTransitionEnd||(o.onTranslateToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onTranslateToWrapperTransitionEnd),o.onTranslateToWrapperTransitionEnd=null,delete o.onTranslateToWrapperTransitionEnd,n&&o.emit("transitionEnd"))}),o.wrapperEl.addEventListener("transitionend",o.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=e+"ms",n.wrapperEl.style.transitionDelay=0===e?"0ms":""),n.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const n=this,{params:i}=n;i.cssMode||(i.autoHeight&&n.updateAutoHeight(),m({swiper:n,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const{params:n}=this;this.animating=!1,n.cssMode||(this.setTransition(0),m({swiper:this,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,n,i,a){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0),"string"==typeof e&&(e=parseInt(e,10));const o=this;let s=e;s<0&&(s=0);const{params:l,snapGrid:c,slidesGrid:u,previousIndex:d,activeIndex:h,rtlTranslate:f,wrapperEl:p,enabled:m}=o;if(o.animating&&l.preventInteractionOnTransition||!m&&!i&&!a)return!1;const g=Math.min(o.params.slidesPerGroupSkip,s);let v=g+Math.floor((s-g)/o.params.slidesPerGroup);v>=c.length&&(v=c.length-1);const y=-c[v];if(l.normalizeSlideIndex)for(let e=0;e<u.length;e+=1){const t=-Math.floor(100*y),n=Math.floor(100*u[e]),i=Math.floor(100*u[e+1]);void 0!==u[e+1]?t>=n&&t<i-(i-n)/2?s=e:t>=n&&t<i&&(s=e+1):t>=n&&(s=e)}if(o.initialized&&s!==h){if(!o.allowSlideNext&&(f?y>o.translate&&y>o.minTranslate():y<o.translate&&y<o.minTranslate()))return!1;if(!o.allowSlidePrev&&y>o.translate&&y>o.maxTranslate()&&(h||0)!==s)return!1}let b;if(s!==(d||0)&&n&&o.emit("beforeSlideChangeStart"),o.updateProgress(y),b=s>h?"next":s<h?"prev":"reset",f&&-y===o.translate||!f&&y===o.translate)return o.updateActiveIndex(s),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(y),"reset"!==b&&(o.transitionStart(n,b),o.transitionEnd(n,b)),!1;if(l.cssMode){const e=o.isHorizontal(),n=f?y:-y;if(0===t){const t=o.virtual&&o.params.virtual.enabled;t&&(o.wrapperEl.style.scrollSnapType="none",o._immediateVirtual=!0),t&&!o._cssModeVirtualInitialSet&&o.params.initialSlide>0?(o._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[e?"scrollLeft":"scrollTop"]=n})):p[e?"scrollLeft":"scrollTop"]=n,t&&requestAnimationFrame(()=>{o.wrapperEl.style.scrollSnapType="",o._immediateVirtual=!1})}else{if(!o.support.smoothScroll)return Object(r.q)({swiper:o,targetPosition:n,side:e?"left"
35:"top"}),!0;p.scrollTo({[e?"left":"top"]:n,behavior:"smooth"})}return!0}return o.setTransition(t),o.setTranslate(y),o.updateActiveIndex(s),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,i),o.transitionStart(n,b),0===t?o.transitionEnd(n,b):o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.wrapperEl.removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(n,b))}),o.wrapperEl.addEventListener("transitionend",o.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){e=parseInt(e,10)}const r=this,a=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=e;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o+=r.virtual.slidesBefore;else{let e;if(a){const t=o*r.params.grid.rows;e=r.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=r.getSlideIndexByData(o);const t=a?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:n}=r.params;let i=r.params.slidesPerView;"auto"===i?i=r.slidesPerViewDynamic():(i=Math.ceil(parseFloat(r.params.slidesPerView,10)),n&&i%2==0&&(i+=1));let s=t-e<i;if(n&&(s=s||e<Math.ceil(i/2)),s){const i=n?e<r.activeIndex?"prev":"next":e-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:i,slideTo:!0,activeSlideIndex:"next"===i?e+1:e-t+1,slideRealIndex:"next"===i?r.realIndex:void 0})}if(a){const e=o*r.params.grid.rows;o=r.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,t,n,i)}),r},slideNext:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,{enabled:r,params:a,animating:o}=i;if(!r)return i;let s=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(s=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<a.slidesPerGroupSkip?1:s,c=i.virtual&&a.virtual.enabled;if(a.loop){if(o&&!c&&a.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,e,t,n)}),!0}return a.rewind&&i.isEnd?i.slideTo(0,e,t,n):i.slideTo(i.activeIndex+l,e,t,n)},slidePrev:function(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);const i=this,{params:r,snapGrid:a,slidesGrid:o,rtlTranslate:s,enabled:l,animating:c}=i;if(!l)return i;const u=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}function d(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=d(s?i.translate:-i.translate),f=a.map(e=>d(e));let p=a[f.indexOf(h)-1];if(void 0===p&&r.cssMode){let e;a.forEach((t,n)=>{h>=t&&(e=n)}),void 0!==e&&(p=a[e>0?e-1:e])}let m=0;if(void 0!==p&&(m=o.indexOf(p),m<0&&(m=i.activeIndex-1),"auto"===r.slidesPerView&&1===r.slidesPerGroup&&r.slidesPerGroupAuto&&(m=m-i.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,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 r.loop&&0===i.activeIndex&&r.cssMode?(requestAnimationFrame(()=>{i.slideTo(m,e,t,n)}),!0):i.slideTo(m,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 a=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,a),s=o+Math.floor((a-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[s]){const e=r.snapGrid[s];l-e>(r.snapGrid[s+1]-e)*i&&(a+=r.params.slidesPerGroup)}else{const e=r.snapGrid[s-1];l-e<=(r.snapGrid[s]-e)*i&&(a-=r.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,r.slidesGrid.length-1),r.slideTo(a,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,slidesEl:n}=e,i="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let a,o=e.clickedIndex;const s=e.isElement?"swiper-slide":"."+t.slideClass;if(t.loop){if(e.animating)return;a=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?o<e.loopedSlides-i/2||o>e.slides.length-e.loopedSlides+i/2?(e.loopFix(),o=e.getSlideIndex(Object(r.e)(n,`${s}[data-swiper-slide-index="${a}"]`)[0]),Object(r.n)(()=>{e.slideTo(o)})):e.slideTo(o):o>e.slides.length-i?(e.loopFix(),o=e.getSlideIndex(Object(r.e)(n,`${s}[data-swiper-slide-index="${a}"]`)[0]),Object(r.n)(()=>{e.slideTo(o)})):e.slideTo(o)}else e.slideTo(o)}},loop:{loopCreate:function(e){const t=this,{params:n,slidesEl:i}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const a=()=>{Object(r.e)(i,`.${n.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},o=t.grid&&n.grid&&n.grid.rows>1,s=n.slidesPerGroup*(o?n.grid.rows:1),l=t.slides.length%s!=0,c=o&&t.slides.length%n.grid.rows!=0,u=e=>{for(let i=0;i<e;i+=1){const e=t.isElement?Object(r.c)("swiper-slide",[n.slideBlankClass]):Object(r.c)("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(e)}};if(l){if(n.loopAddBlankSlides){u(s-t.slides.length%s),t.recalcSlides(),t.updateSlides()}else Object(r.r)("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may
35not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else if(c){if(n.loopAddBlankSlides){u(n.grid.rows-t.slides.length%n.grid.rows),t.recalcSlides(),t.updateSlides()}else Object(r.r)("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");a()}else a();t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:n=!0,direction:i,setTranslate:a,activeSlideIndex:o,byController:s,byMousewheel:l}=void 0===e?{}:e;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:d,allowSlideNext:h,slidesEl:f,params:p}=c,{centeredSlides:m}=p;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&p.virtual.enabled)return n&&(p.centeredSlides||0!==c.snapIndex?p.centeredSlides&&c.snapIndex<p.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=h,void c.emit("loopFix");let g=p.slidesPerView;"auto"===g?g=c.slidesPerViewDynamic():(g=Math.ceil(parseFloat(p.slidesPerView,10)),m&&g%2==0&&(g+=1));const v=p.slidesPerGroupAuto?g:p.slidesPerGroup;let y=v;y%v!=0&&(y+=v-y%v),y+=p.loopAdditionalSlides,c.loopedSlides=y;const b=c.grid&&p.grid&&p.grid.rows>1;u.length<g+y?Object(r.r)("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&"row"===p.grid.fill&&Object(r.r)("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const _=[],w=[];let T=c.activeIndex;void 0===o?o=c.getSlideIndex(u.filter(e=>e.classList.contains(p.slideActiveClass))[0]):T=o;const S="next"===i||!i,k="prev"===i||!i;let x=0,C=0;const E=b?Math.ceil(u.length/p.grid.rows):u.length,A=(b?u[o].column:o)+(m&&void 0===a?-g/2+.5:0);if(A<y){x=Math.max(y-A,v);for(let e=0;e<y-A;e+=1){const t=e-Math.floor(e/E)*E;if(b){const e=E-t-1;for(let t=u.length-1;t>=0;t-=1)u[t].column===e&&_.push(t)}else _.push(E-t-1)}}else if(A+g>E-y){C=Math.max(A-(E-2*y),v);for(let e=0;e<C;e+=1){const t=e-Math.floor(e/E)*E;b?u.forEach((e,n)=>{e.column===t&&w.push(n)}):w.push(t)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),k&&_.forEach(e=>{u[e].swiperLoopMoveDOM=!0,f.prepend(u[e]),u[e].swiperLoopMoveDOM=!1}),S&&w.forEach(e=>{u[e].swiperLoopMoveDOM=!0,f.append(u[e]),u[e].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===p.slidesPerView?c.updateSlides():b&&(_.length>0&&k||w.length>0&&S)&&c.slides.forEach((e,t)=>{c.grid.updateSlide(t,e,c.slides)}),p.watchSlidesProgress&&c.updateSlidesOffset(),n)if(_.length>0&&k){if(void 0===t){const e=c.slidesGrid[T],t=c.slidesGrid[T+x]-e;l?c.setTranslate(c.translate-t):(c.slideTo(T+x,0,!1,!0),a&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else if(a){const e=b?_.length/p.grid.rows:_.length;c.slideTo(c.activeIndex+e,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(w.length>0&&S)if(void 0===t){const e=c.slidesGrid[T],t=c.slidesGrid[T-C]-e;l?c.setTranslate(c.translate-t):(c.slideTo(T-C,0,!1,!0),a&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-t,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-t))}else{const e=b?w.length/p.grid.rows:w.length;c.slideTo(c.activeIndex-e,0,!1,!0)}if(c.allowSlidePrev=d,c.allowSlideNext=h,c.controller&&c.controller.control&&!s){const e={slideRealIndex:t,direction:i,setTranslate:a,activeSlideIndex:o,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&n})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...e,slideTo:c.controller.control.params.slidesPerView===p.slidesPerView&&n})}c.emit("loopFix")},loopDestroy:function(){const{params:e,slidesEl:t}=this;if(!e.loop||this.virtual&&this.params.virtual.enabled)return;this.recalcSlides();const n=[];
35this.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;n[t]=e}),this.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),n.forEach(e=>{t.append(e)}),this.recalcSlides(),this.slideTo(this.realIndex,0)}},grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=v.bind(e),e.onTouchMove=y.bind(e),e.onTouchEnd=b.bind(e),e.onDocumentTouchStart=k.bind(e),t.cssMode&&(e.onScroll=T.bind(e)),e.onClick=w.bind(e),e.onLoad=S.bind(e),x(e,"on")},detachEvents:function(){x(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:n,params:i,el:a}=e,o=i.breakpoints;if(!o||o&&0===Object.keys(o).length)return;const s=e.getBreakpoint(o,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in o?o[s]:void 0)||e.originalParams,c=C(e,i),u=C(e,l),d=i.enabled;c&&!u?(a.classList.remove(i.containerModifierClass+"grid",i.containerModifierClass+"grid-column"),e.emitContainerClasses()):!c&&u&&(a.classList.add(i.containerModifierClass+"grid"),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===i.grid.fill)&&a.classList.add(i.containerModifierClass+"grid-column"),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===l[t])return;const n=i[t]&&i[t].enabled,r=l[t]&&l[t].enabled;n&&!r&&e[t].disable(),!n&&r&&e[t].enable()});const h=l.direction&&l.direction!==i.direction,f=i.loop&&(l.slidesPerView!==i.slidesPerView||h),p=i.loop;h&&n&&e.changeDirection(),Object(r.t)(e.params,l);const m=e.params.enabled,g=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!m?e.disable():!d&&m&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),n&&(f?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!p&&g?(e.loopCreate(t),e.updateSlides()):p&&!g&&e.loopDestroy()),e.emit("breakpoint",l)},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),!e||"container"===t&&!n)return;let r=!1;const a=Object(i.a)(),o="window"===t?a.innerHeight:n.clientHeight,s=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:o*t,point:e}}return{value:e,point:e}});s.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<s.length;e+=1){const{point:i,value:o}=s[e];"window"===t?a.matchMedia(`(min-width: ${o}px)`).matches&&(r=i):o<=n.clientWidth&&(r=i)}return r||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:i}=n;if(i){const t=e.slides.length-1,n=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*i;e.isLocked=e.size>n}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{classNames:e,params:t,rtl:n,el:i,device:r}=this,a=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",t.direction,{"free-mode":this.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&"column"===t.grid.fill},{android:r.android},{ios:r.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...a),i.classList.add(...e),this.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e.classList.remove(...t),this.emitContainerClasses()}}},P={};class I{constructor(){let e,t;for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];1===a.length&&a[0].constructor&&"Object"===Object.prototype.toString.call(a[0]).slice(8,-1)?t=a[0]:[e,t]=a,t||(t={}),t=Object(r.t)({},t),e&&!t.el&&(t.el=e);const s=Object(i.b)();if(t.el&&"string"==typeof t.el&&s.querySelectorAll(t.el).length>1){const e=[];return s.querySelectorAll(t.el).forEach(n=>{const i=Object(r.t)({},t,{el:n});e.push(new I(i))}),e}const d=this;d.__swiper__=!0,d.support=l(),d.device=c({userAgent:t.userAgent}),d.browser=u(),d.eventsListeners={},d.eventsAnyListeners=[],d.modules=[...d.__modules__],t.modules&&Array.isArray(t.modules)&&d.modules.push(...t.modules);const h={};
35d.modules.forEach(e=>{e({params:t,swiper:d,extendParams:A(t,h),on:d.on.bind(d),once:d.once.bind(d),off:d.off.bind(d),emit:d.emit.bind(d)})});const f=Object(r.t)({},E,h);return d.params=Object(r.t)({},f,P,t),d.originalParams=Object(r.t)({},d.params),d.passedParams=Object(r.t)({},t),d.params&&d.params.on&&Object.keys(d.params.on).forEach(e=>{d.on(e,d.params.on[e])}),d.params&&d.params.onAny&&d.onAny(d.params.onAny),Object.assign(d,{enabled:d.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===d.params.direction,isVertical:()=>"vertical"===d.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:d.params.allowSlideNext,allowSlidePrev:d.params.allowSlidePrev,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:d.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:d.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),d.emit("_swiper"),d.params.init&&d.init(),d}getDirectionLabel(e){return this.isHorizontal()?e:{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"}[e]}getSlideIndex(e){const{slidesEl:t,params:n}=this,i=Object(r.e)(t,`.${n.slideClass}, swiper-slide`),a=Object(r.g)(i[0]);return Object(r.g)(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=Object(r.e)(e,`.${t.slideClass}, swiper-slide`)}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){e=Math.min(Math.max(e,0),1);const n=this.minTranslate(),i=(this.maxTranslate()-n)*e+n;this.translateTo(i,void 0===t?0:t),this.updateActiveIndex(),this.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.forEach(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:a,size:o,activeIndex:s}=this;let l=1;if("number"==typeof n.slidesPerView)return n.slidesPerView;if(n.centeredSlides){let e,t=i[s]?i[s].swiperSlideSize:0;for(let n=s+1;n<i.length;n+=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0));for(let n=s-1;n>=0;n-=1)i[n]&&!e&&(t+=i[n].swiperSlideSize,l+=1,t>o&&(e=!0))}else if("current"===e)for(let e=s+1;e<i.length;e+=1){(t?r[e]+a[e]-r[s]<o:r[e]-r[s]<o)&&(l+=1)}else for(let e=s-1;e>=0;e-=1){r[s]-r[e]<o&&(l+=1)}return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function i(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let r;if(n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&h(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if(("auto"===n.slidesPerView||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const t=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;r=e.slideTo(t.length-1,0,!1,!0)}else r=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.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEac
35h(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.classList.add(t.params.containerModifierClass+"rtl"),t.el.dir="rtl"):(t.el.classList.remove(t.params.containerModifierClass+"rtl"),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let n=e||t.params.el;if("string"==typeof n&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&"SWIPER-CONTAINER"===n.parentNode.host.nodeName&&(t.isElement=!0);const i=()=>"."+(t.params.wrapperClass||"").trim().split(" ").join(".");let a=(()=>{if(n&&n.shadowRoot&&n.shadowRoot.querySelector){return n.shadowRoot.querySelector(i())}return Object(r.e)(n,i())[0]})();return!a&&t.params.createElements&&(a=Object(r.c)("div",t.params.wrapperClass),n.append(a),Object(r.e)(n,"."+t.params.slideClass).forEach(e=>{a.append(e)})),Object.assign(t,{el:n,wrapperEl:a,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:a,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:"rtl"===n.dir.toLowerCase()||"rtl"===Object(r.m)(n,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===n.dir.toLowerCase()||"rtl"===Object(r.m)(n,"direction")),wrongRTL:"-webkit-box"===Object(r.m)(a,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const n=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&n.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),n.forEach(e=>{e.complete?h(t,e):e.addEventListener("load",e=>{h(t,e.target)})}),p(t),t.initialized=!0,p(t),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:a,wrapperEl:o,slides:s}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),t&&(n.removeClasses(),a.removeAttribute("style"),o.removeAttribute("style"),s&&s.length&&s.forEach(e=>{e.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(e=>{n.off(e)}),!1!==e&&(n.el.swiper=null,Object(r.u)(n)),n.destroyed=!0),null}static extendDefaults(e){Object(r.t)(P,e)}static get extendedDefaults(){return P}static get defaults(){return E}static installModule(e){I.prototype.__modules__||(I.prototype.__modules__=[]);const t=I.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>I.installModule(e)),I):(I.installModule(e),I)}}Object.keys(O).forEach(e=>{Object.keys(O[e]).forEach(t=>{I.prototype[t]=O[e][t]})}),I.use([function(e){let{swiper:t,on:n,emit:r}=e;const a=Object(i.a)();let o=null,s=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(r("beforeResize"),r("resize"))},c=()=>{t&&!t.destroyed&&t.initialized&&r("orientationchange")};n("init",()=>{t.params.resizeObserver&&void 0!==a.ResizeObserver?t&&!t.destroyed&&t.initialized&&(o=new ResizeObserver(e=>{s=a.requestAnimationFrame(()=>{const{width:n,height:i}=t;let r=n,a=i;e.forEach(e=>{let{contentBoxSize:n,contentRect:i,target:o}=e;o&&o!==t.el||(r=i?i.width:(n[0]||n).inlineSize,a=i?i.height:(n[0]||n).blockSize)}),r===n&&a===i||l()})}),o.observe(t.el)):(a.addEventListener("resize",l),a.addEventListener("orientationchange",c))}),n("destroy",()=>{s&&a.cancelAnimationFrame(s),o&&o.unobserve&&t.el&&(o.unobserve(t.el),o=null),a.removeEventListener("resize",l),a.removeEventListener("orientationchange",c)})},function(e){let{swiper:t,extendParams:n,on:a,emit:o}=e;const s=[],l=Object(i.a)(),c=function(e,n){void 0===n&&(n={});const i=new(l.MutationObserver||l.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void o("observerUpdate",e[0]);const n=function(){o("observerUpdate",e[0])};l.requestAnimationFrame?l.requestAnimationFrame(n):l.setTimeout(n,0)});i.observe(e,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),s.push(i)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),a("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=Object(r.a)(t.hostEl);for(let t=0;t<e.length;t+=1)c(e[t])}c(t.hostEl,{childList:t.params.observeSlideChildren}),c(t.wrapperEl,{attributes:!1})}}),a("destroy",()=>
35{s.forEach(e=>{e.disconnect()}),s.splice(0,s.length)})}])},,,function(e,t,n){e.exports=n(457)},function(e,t,n){var i;self,i=function(e){return function(){"use strict";var t={
35"./js/foundation.abide.js": 36/*!********************************!*\ 37 !*** ./js/foundation.abide.js ***! 38 \********************************/function(e,t,n){n.r(t),n.d(t,{Abide:function(){return p}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js");function s(e){return(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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,u(i.key),i)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function d(e,t,n){return t=h(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return l(this,t),d(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.$element=e,this.options=r().extend(!0,{},t.defaults,this.$element.data(),n),this.isEnabled=!0,this.formnovalidate=null,this.className="Abide",this._init()}},{key:"_init",value:function(){var e=this;this.$inputs=r().merge(this.$element.find("input").not('[type="submit"]'),this.$element.find("textarea, select")),this.$submits=this.$element.find('[type="submit"]');var t=this.$element.find("[data-abide-error]");this.options.a11yAttributes&&(this.$inputs.each((function(t,n){return e.addA11yAttributes(r()(n))})),t.each((function(t,n){return e.addGlobalErrorA11yAttributes(r()(n))}))),this._events()}},{key:"_events",value:function(){var e=this;this.$element.off(".abide").on("reset.zf.abide",(function(){e.resetForm()})).on("submit.zf.abide",(function(){return e.validateForm()})),this.$submits.off("click.zf.abide keydown.zf.abide").on("click.zf.abide keydown.zf.abide",(function(t){t.key&&" "!==t.key&&"Enter"!==t.key||(t.preventDefault(),e.formnovalidate=null!==t.target.getAttribute("formnovalidate"),e.$element.submit())})),"fieldChange"===this.options.validateOn&&this.$inputs.off("change.zf.abide").on("change.zf.abide",(function(t){e.validateInput(r()(t.target))})),this.options.liveValidate&&this.$inputs.off("input.zf.abide").on("input.zf.abide",(function(t){e.validateInput(r()(t.target))})),this.options.validateOnBlur&&this.$inputs.off("blur.zf.abide").on("blur.zf.abide",(function(t){e.validateInput(r()(t.target))}))}},{key:"_reflow",value:function(){this._init()}},{key:"_validationIsDisabled",value:function(){return!1===this.isEnabled||("boolean"==typeof this.formnovalidate?this.formnovalidate:!!this.$submits.length&&null!==this.$submits[0].getAttribute("formnovalidate"))}},{key:"enableValidation",value:function(){this.isEnabled=!0}},{key:"disableValidation",value:function(){this.isEnabled=!1}},{key:"requiredCheck",value:function(e){if(!e.attr("required"))return!0;var t=!0;switch(e[0].type){case"checkbox":t=e[0].checked;break;case"select":case"select-one":case"select-multiple":var n=e.find("option:selected");n.length&&n.val()||(t=!1);break;default:e.val()&&e.val().length||(t=!1)}return t}},{key:"findFormError",value:function(e,t){var n=this,i=e.length?e[0].id:"",r=e.siblings(this.options.formErrorSelector);return r.length||(r=e.parent().find(this.options.formErrorSelector)),i&&(r=r.add(this.$element.find('[data-form-error-for="'.concat(i,'"]')))),t&&(r=r.not("[data-form-error-on]"),t.forEach((function(t){r=(r=r.add(e.siblings('[data-form-error-on="'.concat(t,'"]')))).add(n.$element.find('[data-form-error-for="'.concat(i,'"][data-form-error-on="').concat(t,'"]')))}))),r}},{key:"findLabel",value:function(e){var t=e[0].id,n=this.$element.find('label[for="'.concat(t,'"]'));return n.length?n:e.closest("label")}},{key:"findRadioLabels",value:function(e){var t=this,n=e.map((function(e,n){var i=n.id,a=t.$element.find('label[for="'.concat(i,'"]'));return a.length||(a=r()(n).closest("label")),a[0]}));return r()(n)}}
38,{key:"findCheckboxLabels",value:function(e){var t=this,n=e.map((function(e,n){var i=n.id,a=t.$element.find('label[for="'.concat(i,'"]'));return a.length||(a=r()(n).closest("label")),a[0]}));return r()(n)}},{key:"addErrorClasses",value:function(e,t){var n=this.findLabel(e),i=this.findFormError(e,t);n.length&&n.addClass(this.options.labelErrorClass),i.length&&i.addClass(this.options.formErrorClass),e.addClass(this.options.inputErrorClass).attr({"data-invalid":"","aria-invalid":!0}),i.filter(":visible").length&&this.addA11yErrorDescribe(e,i)}},{key:"addA11yAttributes",value:function(e){var t=this.findFormError(e),n=t.filter("label");if(t.length){var i=t.filter(":visible").first();if(i.length&&this.addA11yErrorDescribe(e,i),n.filter("[for]").length<n.length){var a=e.attr("id");void 0===a&&(a=(0,o.GetYoDigits)(6,"abide-input"),e.attr("id",a)),n.each((function(e,t){var n=r()(t);void 0===n.attr("for")&&n.attr("for",a)}))}t.each((function(e,t){var n=r()(t);void 0===n.attr("role")&&n.attr("role","alert")})).end()}}},{key:"addA11yErrorDescribe",value:function(e,t){if("hidden"!==e.attr("type")&&void 0===e.attr("aria-describedby")){var n=t.attr("id");void 0===n&&(n=(0,o.GetYoDigits)(6,"abide-error"),t.attr("id",n)),e.attr("aria-describedby",n).data("abide-describedby",!0)}}},{key:"addGlobalErrorA11yAttributes",value:function(e){void 0===e.attr("aria-live")&&e.attr("aria-live",this.options.a11yErrorLevel)}},{key:"removeRadioErrorClasses",value:function(e){var t=this.$element.find(':radio[name="'.concat(e,'"]')),n=this.findRadioLabels(t),i=this.findFormError(t);n.length&&n.removeClass(this.options.labelErrorClass),i.length&&i.removeClass(this.options.formErrorClass),t.removeClass(this.options.inputErrorClass).attr({"data-invalid":null,"aria-invalid":null})}},{key:"removeCheckboxErrorClasses",value:function(e){var t=this.$element.find(':checkbox[name="'.concat(e,'"]')),n=this.findCheckboxLabels(t),i=this.findFormError(t);n.length&&n.removeClass(this.options.labelErrorClass),i.length&&i.removeClass(this.options.formErrorClass),t.removeClass(this.options.inputErrorClass).attr({"data-invalid":null,"aria-invalid":null})}},{key:"removeErrorClasses",value:function(e){if("radio"===e[0].type)return this.removeRadioErrorClasses(e.attr("name"));if("checkbox"===e[0].type)return this.removeCheckboxErrorClasses(e.attr("name"));var t=this.findLabel(e),n=this.findFormError(e);t.length&&t.removeClass(this.options.labelErrorClass),n.length&&n.removeClass(this.options.formErrorClass),e.removeClass(this.options.inputErrorClass).attr({"data-invalid":null,"aria-invalid":null}),e.data("abide-describedby")&&e.removeAttr("aria-describedby").removeData("abide-describedby")}},{key:"validateInput",value:function(e){var t=this,n=this.requiredCheck(e),i=e.attr("data-validator"),a=[],o=!0;if(this._validationIsDisabled())return!0;if(e.is("[data-abide-ignore]")||e.is('[type="hidden"]')||e.is("[disabled]"))return!0;switch(e[0].type){case"radio":this.validateRadio(e.attr("name"))||a.push("required");break;case"checkbox":this.validateCheckbox(e.attr("name"))||a.push("required"),o=!1;break;case"select":case"select-one":case"select-multiple":n||a.push("required");break;default:n||a.push("required"),this.validateText(e)||a.push("pattern")}if(i){var s=!!e.attr("required");i.split(" ").forEach((function(n){t.options.validators[n](e,s,e.parent())||a.push(n)}))}e.attr("data-equalto")&&(this.options.validators.equalTo(e)||a.push("equalTo"));var l=0===a.length,c=(l?"valid":"invalid")+".zf.abide";if(l){var u=this.$element.find('[data-equalto="'.concat(e.attr("id"),'"]'));if(u.length){var d=this;u.each((function(){r()(this).val()&&d.validateInput(r()(this))}))}}return o&&(this.removeErrorClasses(e),l||this.addErrorClasses(e,a)),e.trigger(c,[e]),l}},{key:"validateForm",value:function(){var e,t=this,n=[],i=this;if(this.initialized||(this.initialized=!0),this._validationIsDisabled())return this.formnovalidate=null,!0;this.$inputs.each((function(){if("checkbox"===r()(this)[0].type){if(r()(this).attr("name")===e)return!0;e=r()(this).attr("name")}n.push(i.validateInput(r()(this)))}));var a=-1===n.indexOf(!1);return this.$element.find("[data-abide-error]").each((function(e,n){var i=r()(n);t.options.a11yAttributes&&t.addGlobalErrorA11yAttributes(i),i.css("display",a?"none":"block")})),this.$element.trigger((a?"formvalid":"forminvalid")+".zf.abide",[this.$element]),a}},{key:"validateText",value:function(e,t){t=t||e.attr("data-pattern")||e.attr("pattern")||e.attr("type");var n=e.val(),i=!0;return n.length&&(this.options.patterns.hasOwnProperty(t)?i=this.options.patterns[t].test(n):t!==e.attr("type")&&(i=new RegExp(t).test(n))),i}},{key:"validateRadio",value:function(e){var t=this.$element.find(':radio[name="'.concat(e,'"]')),n=!1,i=!1;return t.each((function(e,t){r()(t).attr("required")&&(i=!0)})),i||(n=!0),n||t.each((function(e,t){r()(t).prop("checked")&&(n=!0)})),n}},{key:"validateCheckbox",value:function(e){var t=this,n=this.$element.find(':checkbox[name="'.concat(e,'"]')),i=!1,a=!1,o=1,s=0;return n.each((function(e,t){r()(t).attr("required")&&(a=!0)})),a||(i=!0),i||(n.each((function(e,t){r()(t).prop("checked")&&s++,void 0!==r()(t).attr("data-min-required")&&(o=parseInt(r()(t).attr("data-min-required"),10))})),s>=o&&(i=!0)),!0!==this.initialized&&o>1||(n.each((function(e,n){i?t.removeErrorClasses(r()(n)):t.addErrorClasses(r()(n),["required"])})),i)}},{key:"matchValidation",value:function(e,t,n){var i=this;return n=!!n,-1===t.split(" ").map((function(t){return i.options.validators[t](e,n,e.parent())}
vendor: 2,964 bytes, line 38
38)).indexOf(!1)}},{key:"resetForm",value:function(){var e=this.$element,t=this.options;r()(".".concat(t.labelErrorClass),e).not("small").removeClass(t.labelErrorClass),r()(".".concat(t.inputErrorClass),e).not("small").removeClass(t.inputErrorClass),r()("".concat(t.formErrorSelector,".").concat(t.formErrorClass)).removeClass(t.formErrorClass),e.find("[data-abide-error]").css("display","none"),r()(":input",e).not(":button, :submit, :reset, :hidden, :radio, :checkbox, [data-abide-ignore]").val("").attr({"data-invalid":null,"aria-invalid":null}),r()(":input:radio",e).not("[data-abide-ignore]").prop("checked",!1).attr({"data-invalid":null,"aria-invalid":null}),r()(":input:checkbox",e).not("[data-abide-ignore]").prop("checked",!1).attr({"data-invalid":null,"aria-invalid":null}),e.trigger("formreset.zf.abide",[e])}},{key:"_destroy",value:function(){var e=this;this.$element.off(".abide").find("[data-abide-error]").css("display","none"),this.$inputs.off(".abide").each((function(){e.removeErrorClasses(r()(this))})),this.$submits.off(".abide")}}])&&c(n.prototype,i),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);p.defaults={validateOn:"fieldChange",labelErrorClass:"is-invalid-label",inputErrorClass:"is-invalid-input",formErrorSelector:".form-error",formErrorClass:"is-visible",a11yAttributes:!0,a11yErrorLevel:"assertive",liveValidate:!1,validateOnBlur:!1,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(?:222[1-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^((?:(https?|ftps?|file|ssh|sftp):\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,website:{test:function(e){return p.defaults.patterns.domain.test(e)||p.defaults.patterns.url.test(e)}}},validators:{equalTo:function(e){return r()("#".concat(e.attr("data-equalto"))).val()===e.val()}}}},
38"./js/foundation.accordion.js": 39/*!************************************!*\ 40 !*** ./js/foundation.accordion.js ***! 41 \************************************/function(e,t,n){n.r(t),n.d(t,{Accordion:function(){return m}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function h(e,t,n){return t=f(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(){return c(this,t),h(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Accordion",this._init(),s.Keyboard.register("Accordion",{ENTER:"toggle",SPACE:"toggle",ARROW_DOWN:"next",ARROW_UP:"previous",HOME:"first",END:"last"})}},{key:"_init",value:function(){var e=this;this._isInitializing=!0,this.$tabs=this.$element.children("[data-accordion-item]"),this.$tabs.each((function(e,t){var n=r()(t),i=n.children("[data-tab-content]"),a=i[0].id||(0,o.GetYoDigits)(6,"accordion"),s=t.id?"".concat(t.id,"-label"):"".concat(a,"-label");n.find("a:first").attr({"aria-controls":a,id:s,"aria-expanded":!1}),i.attr({role:"region","aria-labelledby":s,"aria-hidden":!0,id:a})}));var t=this.$element.find(".is-active").children("[data-tab-content]");t.length&&(this._initialAnchor=t.prev("a").attr("href"),this._openSingleTab(t)),this._checkDeepLink=function(){var t=window.location.hash;if(!t.length){if(e._isInitializing)return;e._initialAnchor&&(t=e._initialAnchor)}var n=t&&r()(t),i=t&&e.$element.find('[href$="'.concat(t,'"]'));n.length&&i.length&&(n&&i&&i.length?i.parent("[data-accordion-item]").hasClass("is-active")||e._openSingleTab(n):e._closeAllTabs(),e.options.deepLinkSmudge&&(0,o.onLoad)(r()(window),(function(){var t=e.$element.offset();r()("html, body").animate({scrollTop:t.top-e.options.deepLinkSmudgeOffset},e.options.deepLinkSmudgeDelay)})),e.$element.trigger("deeplink.zf.accordion",[i,n]))},this.options.deepLink&&this._checkDeepLink(),this._events(),this._isInitializing=!1}},{key:"_events",value:function(){var e=this;this.$tabs.each((function(){var t=r()(this),n=t.children("[data-tab-content]");n.length&&t.children("a").off("click.zf.accordion keydown.zf.accordion").on("click.zf.accordion",(function(t){t.preventDefault(),e.toggle(n)})).on("keydown.zf.accordion",(function(i){s.Keyboard.handleKey(i,"Accordion",{toggle:function(){e.toggle(n)},next:function(){var n=t.next().find("a").focus();e.options.multiExpand||n.trigger("click.zf.accordion")},previous:function(){var n=t.prev().find("a").focus();e.options.multiExpand||n.trigger("click.zf.accordion")},first:function(){var t=e.$tabs.first().find(".accordion-title").focus();e.options.multiExpand||t.trigger("click.zf.accordion")}
41,last:function(){var t=e.$tabs.last().find(".accordion-title").focus();e.options.multiExpand||t.trigger("click.zf.accordion")},handled:function(){i.preventDefault()}})}))})),this.options.deepLink&&r()(window).on("hashchange",this._checkDeepLink)}},{key:"toggle",value:function(e){if(e.closest("[data-accordion]").is("[disabled]"))console.info("Cannot toggle an accordion that is disabled.");else if(e.parent().hasClass("is-active")?this.up(e):this.down(e),this.options.deepLink){var t=e.prev("a").attr("href");this.options.updateHistory?history.pushState({},"",t):history.replaceState({},"",t)}}},{key:"down",value:function(e){e.closest("[data-accordion]").is("[disabled]")?console.info("Cannot call down on an accordion that is disabled."):this.options.multiExpand?this._openTab(e):this._openSingleTab(e)}},{key:"up",value:function(e){if(this.$element.is("[disabled]"))console.info("Cannot call up on an accordion that is disabled.");else{var t=e.parent();if(t.hasClass("is-active")){var n=t.siblings();(this.options.allowAllClosed||n.hasClass("is-active"))&&this._closeTab(e)}}}},{key:"_openSingleTab",value:function(e){var t=this.$element.children(".is-active").children("[data-tab-content]");t.length&&this._closeTab(t.not(e)),this._openTab(e)}},{key:"_openTab",value:function(e){var t=this,n=e.parent(),i=e.attr("aria-labelledby");e.attr("aria-hidden",!1),n.addClass("is-active"),r()("#".concat(i)).attr({"aria-expanded":!0}),e.finish().slideDown(this.options.slideSpeed,(function(){t.$element.trigger("down.zf.accordion",[e])}))}},{key:"_closeTab",value:function(e){var t=this,n=e.parent(),i=e.attr("aria-labelledby");e.attr("aria-hidden",!0),n.removeClass("is-active"),r()("#".concat(i)).attr({"aria-expanded":!1}),e.finish().slideUp(this.options.slideSpeed,(function(){t.$element.trigger("up.zf.accordion",[e])}))}},{key:"_closeAllTabs",value:function(){var e=this.$element.children(".is-active").children("[data-tab-content]");e.length&&this._closeTab(e)}},{key:"_destroy",value:function(){this.$element.find("[data-tab-content]").stop(!0).slideUp(0).css("display",""),this.$element.find("a").off(".zf.accordion"),this.options.deepLink&&r()(window).off("hashchange",this._checkDeepLink)}}])&&u(n.prototype,i),a&&u(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);m.defaults={slideSpeed:250,multiExpand:!1,allowAllClosed:!1,deepLink:!1,deepLinkSmudge:!1,deepLinkSmudgeDelay:300,deepLinkSmudgeOffset:0,updateHistory:!1}},
41"./js/foundation.accordionMenu.js": 42/*!****************************************!*\ 43 !*** ./js/foundation.accordionMenu.js ***! 44 \****************************************/function(e,t,n){n.r(t),n.d(t,{AccordionMenu:function(){return m}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),o=n(/*! ./foundation.util.nest */"./js/foundation.util.nest.js"),s=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function h(e,t,n){return t=f(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(){return c(this,t),h(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="AccordionMenu",this._init(),a.Keyboard.register("AccordionMenu",{ENTER:"toggle",SPACE:"toggle",ARROW_RIGHT:"open",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"close",ESCAPE:"closeAll"})}},{key:"_init",value:function(){o.Nest.Feather(this.$element,"accordion");var e=this;this.$element.find("[data-submenu]").not(".is-active").slideUp(0),this.$element.attr({"aria-multiselectable":this.options.multiOpen}),this.$menuLinks=this.$element.find(".is-accordion-submenu-parent"),this.$menuLinks.each((function(){var t=this.id||(0,s.GetYoDigits)(6,"acc-menu-link"),n=r()(this),i=n.children("[data-submenu]"),a=i[0].id||(0,s.GetYoDigits)(6,"acc-menu"),o=i.hasClass("is-active");e.options.parentLink&&n.children("a").clone().prependTo(i).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-accordion-submenu-item"></li>'),e.options.submenuToggle?(n.addClass("has-submenu-toggle"),n.children("a").after('<button id="'+t+'" class="submenu-toggle" aria-controls="'+a+'" aria-expanded="'+o+'" title="'+e.options.submenuToggleText+'"><span class="submenu-toggle-text">'+e.options.submenuToggleText+"</span></button>")):n.attr({"aria-controls":a,"aria-expanded":o,id:t}),i.attr({"aria-labelledby":t,"aria-hidden":!o,role:"group",id:a})}));var t=this.$element.find(".is-active");t.length&&t.each((function(){e.down(r()(this))})),this._events()}},{key:"_events",value:function(){var e=this;this.$element.find("li").each((function(){var t=r()(this).children("[data-submenu]");t.length&&(e.options.submenuToggle?r()(this).children(".submenu-toggle").off("click.zf.accordionMenu").on("click.zf.accordionMenu",(function(){e.toggle(t)}
44)):r()(this).children("a").off("click.zf.accordionMenu").on("click.zf.accordionMenu",(function(n){n.preventDefault(),e.toggle(t)})))})).on("keydown.zf.accordionMenu",(function(t){var n,i,o=r()(this),s=o.parent("ul").children("li"),l=o.children("[data-submenu]");s.each((function(e){if(r()(this).is(o))return n=s.eq(Math.max(0,e-1)).find("a").first(),i=s.eq(Math.min(e+1,s.length-1)).find("a").first(),r()(this).children("[data-submenu]:visible").length&&(i=o.find("li:first-child").find("a").first()),r()(this).is(":first-child")?n=o.parents("li").first().find("a").first():n.parents("li").first().children("[data-submenu]:visible").length&&(n=n.parents("li").find("li:last-child").find("a").first()),void(r()(this).is(":last-child")&&(i=o.parents("li").first().next("li").find("a").first()))})),a.Keyboard.handleKey(t,"AccordionMenu",{open:function(){l.is(":hidden")&&(e.down(l),l.find("li").first().find("a").first().focus())},close:function(){l.length&&!l.is(":hidden")?e.up(l):o.parent("[data-submenu]").length&&(e.up(o.parent("[data-submenu]")),o.parents("li").first().find("a").first().focus())},up:function(){return n.focus(),!0},down:function(){return i.focus(),!0},toggle:function(){return!e.options.submenuToggle&&(o.children("[data-submenu]").length?(e.toggle(o.children("[data-submenu]")),!0):void 0)},closeAll:function(){e.hideAll()},handled:function(e){e&&t.preventDefault()}})}))}},{key:"hideAll",value:function(){this.up(this.$element.find("[data-submenu]"))}},{key:"showAll",value:function(){this.down(this.$element.find("[data-submenu]"))}},{key:"toggle",value:function(e){e.is(":animated")||(e.is(":hidden")?this.down(e):this.up(e))}},{key:"down",value:function(e){var t=this;if(!this.options.multiOpen){var n=e.parentsUntil(this.$element).add(e).add(e.find(".is-active")),i=this.$element.find(".is-active").not(n);this.up(i)}e.addClass("is-active").attr({"aria-hidden":!1}),this.options.submenuToggle?e.prev(".submenu-toggle").attr({"aria-expanded":!0}):e.parent(".is-accordion-submenu-parent").attr({"aria-expanded":!0}),e.slideDown(this.options.slideSpeed,(function(){t.$element.trigger("down.zf.accordionMenu",[e])}))}},{key:"up",value:function(e){var t=this,n=e.find("[data-submenu]"),i=e.add(n);n.slideUp(0),i.removeClass("is-active").attr("aria-hidden",!0),this.options.submenuToggle?i.prev(".submenu-toggle").attr("aria-expanded",!1):i.parent(".is-accordion-submenu-parent").attr("aria-expanded",!1),e.slideUp(this.options.slideSpeed,(function(){t.$element.trigger("up.zf.accordionMenu",[e])}))}},{key:"_destroy",value:function(){this.$element.find("[data-submenu]").slideDown(0).css("display",""),this.$element.find("a").off("click.zf.accordionMenu"),this.$element.find("[data-is-parent-link]").detach(),this.options.submenuToggle&&(this.$element.find(".has-submenu-toggle").removeClass("has-submenu-toggle"),this.$element.find(".submenu-toggle").remove()),o.Nest.Burn(this.$element,"accordion")}}])&&u(n.prototype,i),l&&u(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,l}(n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js").Plugin);m.defaults={parentLink:!1,slideSpeed:250,submenuToggle:!1,submenuToggleText:"Toggle menu",multiOpen:!0}},
44"./js/foundation.core.js": 45/*!*******************************!*\ 46 !*** ./js/foundation.core.js ***! 47 \*******************************/function(e,t,n){n.r(t),n.d(t,{Foundation:function(){return l}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),o=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js");function s(e){return(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})(e)}var l={version:"6.9.0",_plugins:{},_uuids:[],plugin:function(e,t){var n=t||c(e),i=u(n);this._plugins[i]=this[n]=e},registerPlugin:function(e,t){var n=t?u(t):c(e.constructor).toLowerCase();e.uuid=(0,a.GetYoDigits)(6,n),e.$element.attr("data-".concat(n))||e.$element.attr("data-".concat(n),e.uuid),e.$element.data("zfPlugin")||e.$element.data("zfPlugin",e),e.$element.trigger("init.zf.".concat(n)),this._uuids.push(e.uuid)},unregisterPlugin:function(e){var t=u(c(e.$element.data("zfPlugin").constructor));for(var n in this._uuids.splice(this._uuids.indexOf(e.uuid),1),e.$element.removeAttr("data-".concat(t)).removeData("zfPlugin").trigger("destroyed.zf.".concat(t)),e)"function"==typeof e[n]&&(e[n]=null)},reInit:function(e){var t=e instanceof r();try{if(t)e.each((function(){r()(this).data("zfPlugin")._init()}));else{var n=s(e),i=this;({object:function(e){e.forEach((function(e){e=u(e),r()("[data-"+e+"]").foundation("_init")}))},string:function(){e=u(e),r()("[data-"+e+"]").foundation("_init")},undefined:function(){this.object(Object.keys(i._plugins))}})[n](e)}}catch(e){console.error(e)}finally{return e}},reflow:function(e,t){void 0===t?t=Object.keys(this._plugins):"string"==typeof t&&(t=[t]);var n=this;r().each(t,(function(t,i){var a=n._plugins[i];r()(e).find("[data-"+i+"]").addBack("[data-"+i+"]").filter((function(){return void 0===r()(this).data("zfPlugin")})).each((function(){var e=r()(this),t={reflow:!0};e.attr("data-options")&&e.attr("data-options").split(";").forEach((function(e){var n,i=e.split(":").map((function(e){return e.trim()}));i[0]&&(t[i[0]]="true"===(n=i[1])||"false"!==n&&(isNaN(1*n)?n:parseFloat(n)))}));try{e.data("zfPlugin",new a(r()(this),t))}catch(e){console.error(e)}finally{return}}))}))},getFnName:c,addToJquery:function(){return r().fn.foundation=function(e){var t=s(e),n=r()(".no-js");if(n.length&&n.removeClass("no-js"),"undefined"===t)o.MediaQuery._init(),l.reflow(this);else{if("string"!==t)throw new TypeError("We're sorry, ".concat(t," is not a valid parameter. You must use a string representing the method you wish to invoke."));var i=Array.prototype.slice.call(arguments,1),a=this.data("zfPlugin");if(void 0===a||void 0===a[e])throw new ReferenceError("We're sorry, '"+e+"' is not an available method for "+(a?c(a):"this element")+".");1===this.length?a[e].apply(a,i):this.each((function(t,n){a[e].apply(r()(n).data("zfPlugin"),i)}))}return this},r()}};function c(e){if(void 0===Function.prototype.name){var t=/function\s([^(]{1,})\(/.exec(e.toString());return t&&t.length>1?t[1].trim():""}return void 0===e.prototype?e.constructor.name:e.prototype.constructor.name}function u(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}l.util={throttle:function(e,t){var n=null;return function(){var i=this,r=arguments;null===n&&(n=setTimeout((function(){e.apply(i,r),n=null}),t))}}},window.Foundation=l,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var e=["webkit","moz"],t=0;t<e.length&&!window.requestAnimationFrame;++t){var n=e[t];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(e){var t=Date.now(),n=Math.max(i+16,t);return setTimeout((function(){e(i=n)}),n-t)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
47var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r})},
47"./js/foundation.core.plugin.js": 48/*!**************************************!*\ 49 !*** ./js/foundation.core.plugin.js ***! 50 \**************************************/function(e,t,n){n.r(t),n.d(t,{Plugin:function(){return s}});var i=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js");function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}var s=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._setup(t,n);var r=l(this);this.uuid=(0,i.GetYoDigits)(6,r),this.$element.attr("data-".concat(r))||this.$element.attr("data-".concat(r),this.uuid),this.$element.data("zfPlugin")||this.$element.data("zfPlugin",this),this.$element.trigger("init.zf.".concat(r))},(t=[{key:"destroy",value:function(){this._destroy();var e=l(this);for(var t in this.$element.removeAttr("data-".concat(e)).removeData("zfPlugin").trigger("destroyed.zf.".concat(e)),this)this.hasOwnProperty(t)&&(this[t]=null)}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function l(e){return e.className.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},
50"./js/foundation.core.utils.js": 51/*!*************************************!*\ 52 !*** ./js/foundation.core.utils.js ***! 53 \*************************************/function(e,t,n){n.r(t),n.d(t,{GetYoDigits:function(){return o},RegExpEscape:function(){return s},ignoreMousedisappear:function(){return u},onLoad:function(){return c},rtl:function(){return a},transitionend:function(){return l}});var i=n(/*! jquery */"jquery"),r=n.n(i);function a(){return"rtl"===r()("html").attr("dir")}function o(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t=arguments.length>1?arguments[1]:void 0,n="",i="0123456789abcdefghijklmnopqrstuvwxyz",r=i.length,a=0;a<e;a++)n+=i[Math.floor(Math.random()*r)];return t?"".concat(n,"-").concat(t):n}function s(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function l(e){var t,n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},i=document.createElement("div");for(var r in n)void 0!==i.style[r]&&(t=n[r]);return t||(setTimeout((function(){e.triggerHandler("transitionend",[e])}),1),"transitionend")}function c(e,t){var n="complete"===document.readyState,i=(n?"_didLoad":"load")+".zf.util.onLoad",a=function(){return e.triggerHandler(i)};return e&&(t&&e.one(i,t),n?setTimeout(a):r()(window).one("load",a)),i}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ignoreLeaveWindow,i=void 0!==n&&n,a=t.ignoreReappear,o=void 0!==a&&a;return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];var l=e.bind.apply(e,[this,t].concat(a));if(null!==t.relatedTarget)return l();setTimeout((function(){if(!i&&document.hasFocus&&!document.hasFocus())return l();o||r()(document).one("mouseenter",(function(e){r()(t.currentTarget).has(e.target).length||(t.relatedTarget=e.target,l())}))}),0)}}},
53"./js/foundation.drilldown.js": 54/*!************************************!*\ 55 !*** ./js/foundation.drilldown.js ***! 56 \************************************/function(e,t,n){n.r(t),n.d(t,{Drilldown:function(){return g}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),o=n(/*! ./foundation.util.nest */"./js/foundation.util.nest.js"),s=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),l=n(/*! ./foundation.util.box */"./js/foundation.util.box.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return u(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Drilldown",this._init(),a.Keyboard.register("Drilldown",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}},{key:"_init",value:function(){o.Nest.Feather(this.$element,"drilldown"),this.options.autoApplyClass&&this.$element.addClass("drilldown"),this.$element.attr({"aria-multiselectable":!1}),this.$submenuAnchors=this.$element.find("li.is-drilldown-submenu-parent").children("a"),this.$submenus=this.$submenuAnchors.parent("li").children("[data-submenu]").attr("role","group"),this.$menuItems=this.$element.find("li").not(".js-drilldown-back").find("a"),this.$currentMenu=this.$element,this.$element.attr("data-mutate",this.$element.attr("data-drilldown")||(0,s.GetYoDigits)(6,"drilldown")),this._prepareMenu(),this._registerEvents(),this._keyboardEvents()}},{key:"_prepareMenu",value:function(){var e=this;this.$submenuAnchors.each((function(){var t=r()(this),n=t.parent();e.options.parentLink&&t.clone().prependTo(n.children("[data-submenu]")).wrap('<li data-is-parent-link class="is-submenu-parent-item is-submenu-item is-drilldown-submenu-item" role="none"></li>'),t.data("savedHref",t.attr("href")).removeAttr("href").attr("tabindex",0),t.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"group"}),e._events(t)})),this.$submenus.each((function(){var t=r()(this);if(!t.find(".js-drilldown-back").length)switch(e.options.backButtonPosition){case"bottom":t.append(e.options.backButton);break;case"top":t.prepend(e.options.backButton);break;default:console.error("Unsupported backButtonPosition value '"+e.options.backButtonPosition+"'")}e._back(t)})),this.$submenus.addClass("invisible"),this.options.autoHeight||this.$submenus.addClass("drilldown-submenu-cover-previous"),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=r()(this.options.wrapper).addClass("is-drilldown"),this.options.animateHeight&&this.$wrapper.addClass("animate-height"),this.$element.wrap(this.$wrapper)),this.$wrapper=this.$element.parent(),this.$wrapper.css(this._getMaxDims())}},{key:"_resize",value:function(){this.$wrapper.css({"max-width":"none","min-height":"none"}),this.$wrapper.css(this._getMaxDims())}},{key:"_events",value:function(e){var t=this;e.off("click.zf.drilldown").on("click.zf.drilldown",(function(n){if(r(
56)(n.target).parentsUntil("ul","li").hasClass("is-drilldown-submenu-parent")&&n.preventDefault(),t._show(e.parent("li")),t.options.closeOnClick){var i=r()("body");i.off(".zf.drilldown").on("click.zf.drilldown",(function(e){e.target===t.$element[0]||r().contains(t.$element[0],e.target)||(e.preventDefault(),t._hideAll(),i.off(".zf.drilldown"))}))}}))}},{key:"_registerEvents",value:function(){this.options.scrollTop&&(this._bindHandler=this._scrollTop.bind(this),this.$element.on("open.zf.drilldown hide.zf.drilldown close.zf.drilldown closed.zf.drilldown",this._bindHandler)),this.$element.on("mutateme.zf.trigger",this._resize.bind(this))}},{key:"_scrollTop",value:function(){var e=this,t=""!==e.options.scrollTopElement?r()(e.options.scrollTopElement):e.$element,n=parseInt(t.offset().top+e.options.scrollTopOffset,10);r()("html, body").stop(!0).animate({scrollTop:n},e.options.animationDuration,e.options.animationEasing,(function(){this===r()("html")[0]&&e.$element.trigger("scrollme.zf.drilldown")}))}},{key:"_keyboardEvents",value:function(){var e=this;this.$menuItems.add(this.$element.find(".js-drilldown-back > a, .is-submenu-parent-item > a")).on("keydown.zf.drilldown",(function(t){var n,i,o=r()(this),l=o.parent("li").parent("ul").children("li").children("a");l.each((function(e){if(r()(this).is(o))return n=l.eq(Math.max(0,e-1)),void(i=l.eq(Math.min(e+1,l.length-1)))})),a.Keyboard.handleKey(t,"Drilldown",{next:function(){if(o.is(e.$submenuAnchors))return e._show(o.parent("li")),o.parent("li").one((0,s.transitionend)(o),(function(){o.parent("li").find("ul li a").not(".js-drilldown-back a").first().focus()})),!0},previous:function(){return e._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one((0,s.transitionend)(o),(function(){setTimeout((function(){o.parent("li").parent("ul").parent("li").children("a").first().focus()}),1)})),!0},up:function(){return n.focus(),!o.is(e.$element.find("> li:first-child > a"))},down:function(){return i.focus(),!o.is(e.$element.find("> li:last-child > a"))},close:function(){o.is(e.$element.find("> li > a"))||(e._hide(o.parent().parent()),o.parent().parent().siblings("a").focus())},open:function(){return(!e.options.parentLink||!o.attr("href"))&&(o.is(e.$menuItems)?o.is(e.$submenuAnchors)?(e._show(o.parent("li")),o.parent("li").one((0,s.transitionend)(o),(function(){o.parent("li").find("ul li a").not(".js-drilldown-back a").first().focus()})),!0):void 0:(e._hide(o.parent("li").parent("ul")),o.parent("li").parent("ul").one((0,s.transitionend)(o),(function(){setTimeout((function(){o.parent("li").parent("ul").parent("li").children("a").first().focus()}),1)})),!0))},handled:function(e){e&&t.preventDefault()}})}))}},{key:"_hideAll",value:function(){var e=this,t=this.$element.find(".is-drilldown-submenu.is-active");if(t.addClass("is-closing"),t.parent().closest("ul").removeClass("invisible"),this.options.autoHeight){var n=t.parent().closest("ul").data("calcHeight");this.$wrapper.css({height:n})}this.$element.trigger("close.zf.drilldown"),t.one((0,s.transitionend)(t),(function(){t.removeClass("is-active is-closing"),e.$element.trigger("closed.zf.drilldown")}))}},{key:"_back",value:function(e){var t=this;e.off("click.zf.drilldown"),e.children(".js-drilldown-back").on("click.zf.drilldown",(function(){t._hide(e);var n=e.parent("li").parent("ul").parent("li");n.length?t._show(n):t.$currentMenu=t.$element}))}},{key:"_menuLinkEvents",value:function(){var e=this;this.$menuItems.not(".is-drilldown-submenu-parent").off("click.zf.drilldown").on("click.zf.drilldown",(function(){setTimeout((function(){e._hideAll()}),0)}))}},{key:"_setShowSubMenuClasses",value:function(e,t){e.addClass("is-active").removeClass("invisible").attr("aria-hidden",!1),e.parent("li").attr("aria-expanded",!0),!0===t&&this.$element.trigger("open.zf.drilldown",[e])}},{key:"_setHideSubMenuClasses",value:function(e,t){e.removeClass("is-active").addClass("invisible").attr("aria-hidden",!0),e.parent("li").attr("aria-expanded",!1),!0===t&&e.trigger("hide.zf.drilldown",[e])}},{key:"_showMenu",value:function(e,t){var n=this;if(this.$element.find('li[aria-expanded="true"] > ul[data-submenu]').each((function(){n._setHideSubMenuClasses(r()(this))})),this.$currentMenu=e,e.is("[data-drilldown]"))return!0===t&&e.find("li > a").first().focus(),void(this.options.autoHeight&&this.$wrapper.css("height",e.data("calcHeight")));var i=e.children().first().parentsUntil("[data-drilldown]","[data-submenu]");i.each((function(a){0===a&&n.options.autoHeight&&n.$wrapper.css("height",r()(this).data("calcHeight"));var o=a===i.length-1;!0===o&&r()(this).one((0,s.transitionend)(r()(this)),(function(){!0===t&&e.find("li > a").first().focus()})),n._setShowSubMenuClasses(r()(this),o)}))}},{key:"_show",value:function(e){var t=e.children("[data-submenu]");e.attr("aria-expanded",!0),this.$currentMenu=t,e.parent().closest("ul").addClass("invisible"),t.addClass("is-active visible").removeClass("invisible").attr("aria-hidden",!1),this.options.autoHeight&&this.$wrapper.css({height:t.data("calcHeight")}),this.$element.trigger("open.zf.drilldown",[e])}},{key:"_hide",value:function(e){this.options.autoHeight&&this.$wrapper.css({height:e.parent().closest("ul").data("calcHeight")}),e.parent().closest("ul").removeClass("invisible"),e.parent("li").attr("aria-expanded",!1),e.attr("aria-hidden",!0),e.addClass("is-closing").one((0,s.transitionend)(e),(function(){e.removeClass("is-active is-closing visible"),e.blur().addClass("invisible")})),e.trigger("hide.zf.drilldown",[e])}},{key:"_getMaxDims",value:function(){var e=0,t={},n=this;return this.$submenus.add(this.$element).each((function(){var t=l.Box.GetDimensions(this).height;e=t>e?t:e,n.options.autoHeight&&r()(this).data("calcHeight",t)})),this.options.autoHeight?t.height=this.$currentMenu.data("calcHeight"):t["min-height"]="".concat(e,"px"),t["max-width"]="".concat(this.$element[0].getBoundingClientRect().width,"px"),t}},{key:"_destroy",value:function(){r()("body").off(".zf.drilldown"),this.options.scrollTop&&this.$element.off(".zf.drilldown",this._bindHandler),this._hideAll(),this.$element.off("mutateme.zf.trigger"),o.Nest.Burn(this.$element,"drilldown"),this.$element.unwrap().find(".js-drilldown-back, .is-submenu-parent-item").remove().end().find(".is-active, .is-closing, .is-drilldown-submenu").removeClass("is-active is-closing is-drilldown-submenu").off("transitionend otransitionend webkitTransitionEnd").end().find("[data-submenu]").removeAttr("aria-hidden tabindex role"),this.$submenuAnchors.each((function(){r()(this).off(".zf.drilldown")})),this.$element.find("[data-is-parent-link]").detach(),this.$submenus.removeClass("drilldown-submenu-cover-previous invisible"),this.$element.find("a").each((function(){var e=r()(this);e.removeAttr("tabindex"),e.data("savedHref")&&e.attr("href",e.data("savedHref")).removeData("savedHref")}))}}
56])&&d(n.prototype,i),c&&d(n,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,c}(n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js").Plugin);g.defaults={autoApplyClass:!0,backButton:'<li class="js-drilldown-back"><a tabindex="0">Back</a></li>',backButtonPosition:"top",wrapper:"<div></div>",parentLink:!1,closeOnClick:!1,autoHeight:!1,animateHeight:!1,scrollTop:!1,scrollTopElement:"",scrollTopOffset:0,animationDuration:500,animationEasing:"swing"}},
56"./js/foundation.dropdown.js": 57/*!***********************************!*\ 58 !*** ./js/foundation.dropdown.js ***! 59 \***********************************/function(e,t,n){n.r(t),n.d(t,{Dropdown:function(){return _}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.positionable */"./js/foundation.positionable.js"),l=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js"),c=n(/*! ./foundation.util.touch */"./js/foundation.util.touch.js");function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,f(i.key),i)}}function f(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function p(e,t,n){return t=y(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function m(e,t,n,i){var r=g(y(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function g(){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=v(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function v(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _=function(e){function t(){return d(this,t),p(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Dropdown",c.Touch.init(r()),l.Triggers.init(r()),this._init(),a.Keyboard.register("Dropdown",{ENTER:"toggle",SPACE:"toggle",ESCAPE:"close"})}},{key:"_init",value:function(){var e=this.$element.attr("id");this.$anchors=r()('[data-toggle="'.concat(e,'"]')).length?r()('[data-toggle="'.concat(e,'"]')):r()('[data-open="'.concat(e,'"]')),this.$anchors.attr({"aria-controls":e,"data-is-focus":!1,"data-yeti-box":e,"aria-haspopup":!0,"aria-expanded":!1}),this._setCurrentAnchor(this.$anchors.first()),this.options.parentClass?this.$parent=this.$element.parents("."+this.options.parentClass):this.$parent=null,void 0===this.$element.attr("aria-labelledby")&&(void 0===this.$currentAnchor.attr("id")&&this.$currentAnchor.attr("id",(0,o.GetYoDigits)(6,"dd-anchor")),this.$element.attr("aria-labelledby",this.$currentAnchor.attr("id"))),this.$element.attr({"aria-hidden":"true","data-yeti-box":e,"data-resize":e}),m(t,"_init",this,3)([]),this._events()}},{key:"_getDefaultPosition",value:function(){var e=this.$element[0].className.match(/(top|left|right|bottom)/g);return e?e[0]:"bottom"}},{key:"_getDefaultAlignment",value:function(){var e=/float-(\S+)/.exec(this.$currentAnchor.attr("class"));return e?e[1]:m(t,"_getDefaultAlignment",this,3)([])}},{key:"_setPosition",value:function(){this.$element.removeClass("has-position-".concat(this.position," has-alignment-").concat(this.alignment)),m(t,"_setPosition",this,3)([this.$currentAnchor,this.$element,this.$parent]),this.$element.addClass("has-position-".concat(this.position," has-alignment-").concat(this.alignment))}},{key:"_setCurrentAnchor",value:function(e){this.$currentAnchor=r()(e)}},{key:"_events",value:function(){var e=this,t="ontouchstart"in window||void 0!==window.ontouchstart;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":this._setPosition.bind(this)}),this.$anchors.off("click.zf.trigger").on("click.zf.trigger",(function(n){e._setCurrentAnchor(this),(!1===e.options.forceFollow||t&&e.options.hover&&!1===e.$element.hasClass("is-open"))&&n.preventDefault()})),this.options.hover&&(this.$anchors.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",(function(){e._setCurrentAnchor(this);var t=r()("body").data();void 0!==t.whatinput&&"mouse"!==t.whatinput||(clearTimeout(e.timeout),e.timeout=setTimeout((function(){e.open(),e.$anchors.data("hover",!0)}),e.options.hoverDelay))})).on("mouseleave.zf.dropdown",(0,o.ignoreMousedisappear)((function(){clearTimeout(e.timeout),e.timeout=setTimeout((function(){e.close(),e.$anchors.data("hover",!1)}),e.options.hoverDelay)}))),this.options.hoverPane&&this.$element.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",(function(){clearTimeout(e.timeout)})).on("mouseleave.zf.dropdown",(0,o.ignoreMousedisappear)((function(){clearTimeout(e.timeout),e.timeout=setTimeout((function(){e.close(),e.$anchors.data("hover",!1)}),e.options.hoverDelay)})))),this.$anchors.add(this.$element).on("keydown.zf.dropdown",(function(t){var n=r()(this);a.Keyboard.handleKey(t,"Dropdown",{open:function(){n.is(e.$anchors)&&!n.is("input, textarea")&&(e.open(),e.$element.attr("tabindex",-1).focus(),t.preventDefault())},close:function(){e.close(),e.$anchors.focus()}})}))}},{key:"_addBodyHandler",value:function(){var e=r()(document.body).not(this.$element),t=this;e.off("click.zf.dropdown tap.zf.dropdown").on("click.zf.dropdown tap.zf.dropdown",(function(n){t.$anchors.is(n.target)||t.$anchors.find(n.target).length||t.$element.is(n.target)||t.$element.find(n.target).length||(t.close(),e.off("click.zf.dropdown tap.zf.dropdown"))}))}},{key:"open",value:function(){if(this.$element.trigger("closeme.zf.dropdown",this.$element.attr("id")),this.$anchors.addClass("hover").attr({"aria-expanded":!0}),this.$element.addClass("is-opening"),this._setPosition(),this.$element.removeClass("is-opening").addClass("is-open").attr({"aria-hidden":!1}),this.options.autoFocus){var e=a.Keyboard.findFocusable(this.$element);e.length&&e.eq(0).focus()}this.options.closeOnClick&&this._addBodyHandler(),this.options.trapFocus&&a.Keyboard.trapFocus(this.$element),this.$element.trigger("show.zf.dropdown",[this.$element])}},{key:"close",value:function(){if(!this.$element.hasClass("is-open"))return!1;this.$element.removeClass("is-open").attr({"aria-hidden":!0}),this.$anchors.removeClass("hover").attr("aria-expanded",!1),this.$element.trigger("hide.zf.dropdown",[this.$element]),this.options.trapFocus&&a.Keyboard.releaseFocus(this.$element)}},{key:"toggle",value:function(){if(this.$element.hasClass("is-open")){if(this.$anchors.data("hover"))return;this.close()}else this.open()}},{key:"_destroy",value:function(){this.$element.off(".zf.trigger").hide(),this.$anchors.off(".zf.dropdown"),r()(document.body).off("click.zf.dropdown tap.zf.dropdown")}}
59])&&h(n.prototype,i),s&&h(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(s.Positionable);_.defaults={parentClass:null,hoverDelay:250,hover:!1,hoverPane:!1,vOffset:0,hOffset:0,position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,trapFocus:!1,autoFocus:!1,closeOnClick:!1,forceFollow:!0}},
59"./js/foundation.dropdownMenu.js": 60/*!***************************************!*\ 61 !*** ./js/foundation.dropdownMenu.js ***! 62 \***************************************/function(e,t,n){n.r(t),n.d(t,{DropdownMenu:function(){return y}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),l=n(/*! ./foundation.util.nest */"./js/foundation.util.nest.js"),c=n(/*! ./foundation.util.box */"./js/foundation.util.box.js"),u=n(/*! ./foundation.util.touch */"./js/foundation.util.touch.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function p(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function m(e,t,n){return t=g(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(){return h(this,t),m(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="DropdownMenu",u.Touch.init(r()),this._init(),s.Keyboard.register("DropdownMenu",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}},{key:"_init",value:function(){l.Nest.Feather(this.$element,"dropdown");var e=this.$element.find("li.is-dropdown-submenu-parent");this.$element.children(".is-dropdown-submenu-parent").children(".is-dropdown-submenu").addClass("first-sub"),this.$menuItems=this.$element.find('li[role="none"]'),this.$tabs=this.$element.children('li[role="none"]'),this.$tabs.find("ul.is-dropdown-submenu").addClass(this.options.verticalClass),"auto"===this.options.alignment?this.$element.hasClass(this.options.rightClass)||(0,o.rtl)()||this.$element.parents(".top-bar-right").is("*")?(this.options.alignment="right",e.addClass("opens-left")):(this.options.alignment="left",e.addClass("opens-right")):"right"===this.options.alignment?e.addClass("opens-left"):e.addClass("opens-right"),this.changed=!1,this._events()}},{key:"_isVertical",value:function(){return"block"===this.$tabs.css("display")||"column"===this.$element.css("flex-direction")}},{key:"_isRtl",value:function(){return this.$element.hasClass("align-right")||(0,o.rtl)()&&!this.$element.hasClass("align-left")}},{key:"_events",value:function(){var e=this,t="ontouchstart"in window||void 0!==window.ontouchstart,n="is-dropdown-submenu-parent";(this.options.clickOpen||t)&&this.$menuItems.on("click.zf.dropdownMenu touchstart.zf.dropdownMenu",(function(i){var a=r()(i.target).parentsUntil("ul",".".concat(n)),o=a.hasClass(n),s="true"===a.attr("data-is-click"),l=a.children(".is-dropdown-submenu");if(o)if(s){if(!e.options.closeOnClick||!e.options.clickOpen&&!t||e.options.forceFollow&&t)return;i.stopImmediatePropagation(),i.preventDefault(),e._hide(a)}else i.stopImmediatePropagation(),i.preventDefault(),e._show(l),a.add(a.parentsUntil(e.$element,".".concat(n))).attr("data-is-click",!0)})),e.options.closeOnClickInside&&this.$menuItems.on("click.zf.dropdownMenu",(function(){r()(this).hasClass(n)||e._hide()})),t&&this.options.disableHoverOnTouch&&(this.options.disableHover=!0),this.options.disableHover||this.$menuItems.on("mouseenter.zf.dropdownMenu",(function(){var t=r()(this);t.hasClass(n)&&(clearTimeout(t.data("_delay")),t.data("_delay",setTimeout((function(){e._show(t.children(".is-dropdown-submenu"))}),e.options.hoverDelay)))})).on("mouseleave.zf.dropdownMenu",(0,o.ignoreMousedisappear)((function(){var t=r()(this);if(t.hasClass(n)&&e.options.autoclose){if("true"===t.attr("data-is-click")&&e.options.clickOpen)return!1;clearTimeout(t.data("_delay")),t.data("_delay",setTimeout((function(){e._hide(t)}),e.options.closingTime))}}))),this.$menuItems.on("keydown.zf.dropdownMenu",(function(t){var n,i,a=r()(t.target).parentsUntil("ul",'[role="none"]'),o=e.$tabs.index(a)>-1,l=o?e.$tabs:a.siblings("li").add(a);l.each((function(e){if(r()(this).is(a))return n=l.eq(e-1),void(i=l.eq(e+1))}));var c=function(){i.children("a:first").focus(),t.preventDefault()},u=function(){n.children("a:first").focus(),t.preventDefault()},d=function(){var n=a.children("ul.is-dropdown-submenu");n.length&&(e._show(n),a.find("li > a:first").focus(),t.preventDefault())},h=function(){var n=a.parent("ul").parent("li");n.children("a:first").focus(),e._hide(n),t.preventDefault()},f={open:d,close:function(){e._hide(e.$element),e.$menuItems.eq(0).children("a").focus(),t.preventDefault()}};o?e._isVertical()?e._isRtl()?r().extend(f,{down:c,up:u,next:h,previous:d}):r().extend(f,{down:c,up:u,next:d,previous:h}):e._isRtl()?r().extend(f,{next:u,previous:c,down:d,up:h}):r().extend(f,{next:c,previous:u,down:d,up:h}):e._isRtl()?r().extend(f,{next:h,previous:d,down:c,up:u}):r().extend(f,{next:d,previous:h,down:c,up:u}),s.Keyboard.handleKey(t,"DropdownMenu",f)}))}},{key:"_addBodyHandler",value:function(){var e=this,t=r()(document.body);this._removeBodyHandler(),t.on("click.zf.dropdownMenu tap.zf.dropdownMenu",(function(t){r()(t.target).closest(e.$element).length||(e._hide(),e._removeBodyHandler())}))}},{key:"_removeBodyHandler",value:function(){r()(document.body).off("click.zf.dropdownMenu tap.zf.dropdownMenu")}},{key:"_show",value:function(e){var t=this.$tabs.index(this.$tabs.filter((function(t,n){return r()(n).find(e).length>0}))),n=e.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");this._hide(n,t),e.css("visibility","hidden").addClass("js-dropdown-active").parent("li.is-dropdown-submenu-parent").addClass("is-active");var i=c.Box.ImNotTouchingYou(e,null,!0);if(!i){var a="left"===this.options.alignment?"-right":"-left",o=e.parent(".is-dropdown-submenu-parent");o.removeClass("opens".concat(a)).addClass("opens-".concat(this.options.alignment)),(i=c.Box.ImNotTouchingYou(e,null,!0))||o.removeClass("opens-".concat(this.options.alignment)).addClass("opens-inner"),this.changed=!0}e.css("visibility",""),this.options.closeOnClick&&this._addBodyHandler(),this.$element.trigger("show.zf.dropdownMenu",[e])}},{key:"_hide",value:function(e,t){var n;if((n=e&&e.length?e:void 0!==t?this.$tabs.not((function(e){return e===t})):this.$element).hasClass("is-active")||n.find(".is-active").length>0){var i=n.find("li.is-active");if(i.add(n).attr({"data-is-click":!1}).removeClass("is-active"),n.find("ul.js-dropdown-active").removeClass("js-dropdown-active"),this.changed||n.find("opens-inner").length){var r="left"===this.options.alignment?"right":"left";n.find("li.is-dropdown-submenu-parent").add(n).removeClass("opens-inner opens-".concat(this.options.alignment)).addClass("opens-".concat(r)),this.changed=!1}clearTimeout(i.data("_delay")),this._removeBodyHandler(),this.$element.trigger("hide.zf.dropdownMenu",[n])}}},{key:"_destroy",value:function(){this.$menuItems.off(".zf.dropdownMenu").removeAttr("data-is-click").removeClass("is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner"),r()(document.body).off(".zf.dropdownMenu"),l.Nest.Burn(this.$element,"dropdown")}}
62])&&f(n.prototype,i),a&&f(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);y.defaults={disableHover:!1,disableHoverOnTouch:!0,autoclose:!0,hoverDelay:50,clickOpen:!1,closingTime:500,alignment:"auto",closeOnClick:!0,closeOnClickInside:!0,verticalClass:"vertical",rightClass:"align-right",forceFollow:!0}},
62"./js/foundation.equalizer.js": 63/*!************************************!*\ 64 !*** ./js/foundation.equalizer.js ***! 65 \************************************/function(e,t,n){n.r(t),n.d(t,{Equalizer:function(){return m}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),o=n(/*! ./foundation.util.imageLoader */"./js/foundation.util.imageLoader.js"),s=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function h(e,t,n){return t=f(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var m=function(e){function t(){return c(this,t),h(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),function(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Equalizer",this._init()}},{key:"_init",value:function(){var e=this.$element.attr("data-equalizer")||"",t=this.$element.find('[data-equalizer-watch="'.concat(e,'"]'));a.MediaQuery._init(),this.$watched=t.length?t:this.$element.find("[data-equalizer-watch]"),this.$element.attr("data-resize",e||(0,s.GetYoDigits)(6,"eq")),this.$element.attr("data-mutate",e||(0,s.GetYoDigits)(6,"eq")),this.hasNested=this.$element.find("[data-equalizer]").length>0,this.isNested=this.$element.parentsUntil(document.body,"[data-equalizer]").length>0,this.isOn=!1,this._bindHandler={onResizeMeBound:this._onResizeMe.bind(this),onPostEqualizedBound:this._onPostEqualized.bind(this)};var n,i=this.$element.find("img");this.options.equalizeOn?(n=this._checkMQ(),r()(window).on("changed.zf.mediaquery",this._checkMQ.bind(this))):this._events(),(void 0!==n&&!1===n||void 0===n)&&(i.length?(0,o.onImagesLoaded)(i,this._reflow.bind(this)):this._reflow())}},{key:"_pauseEvents",value:function(){this.isOn=!1,this.$element.off({".zf.equalizer":this._bindHandler.onPostEqualizedBound,"resizeme.zf.trigger":this._bindHandler.onResizeMeBound,"mutateme.zf.trigger":this._bindHandler.onResizeMeBound})}},{key:"_onResizeMe",value:function(){this._reflow()}},{key:"_onPostEqualized",value:function(e){e.target!==this.$element[0]&&this._reflow()}},{key:"_events",value:function(){this._pauseEvents(),this.hasNested?this.$element.on("postequalized.zf.equalizer",this._bindHandler.onPostEqualizedBound):(this.$element.on("resizeme.zf.trigger",this._bindHandler.onResizeMeBound),this.$element.on("mutateme.zf.trigger",this._bindHandler.onResizeMeBound)),this.isOn=!0}},{key:"_checkMQ",value:function(){var e=!a.MediaQuery.is(this.options.equalizeOn);return e?this.isOn&&(this._pauseEvents(),this.$watched.css("height","auto")):this.isOn||this._events(),e}},{key:"_killswitch",value:function(){}},{key:"_reflow",value:function(){if(!this.options.equalizeOnStack&&this._isStacked())return this.$watched.css("height","auto"),!1;this.options.equalizeByRow?this.getHeightsByRow(this.applyHeightByRow.bind(this)):this.getHeights(this.applyHeight.bind(this))}},{key:"_isStacked",value:function(){return!this.$watched[0]||!this.$watched[1]||this.$watched[0].getBoundingClientRect().top!==this.$watched[1].getBoundingClientRect().top}},{key:"getHeights",value:function(e){for(var t=[],n=0,i=this.$watched.length;n<i;n++)this.$watched[n].style.height="auto",t.push(this.$watched[n].offsetHeight);e(t)}},{key:"getHeightsByRow",value:function(e){var t=this.$watched.length?this.$watched.first().offset().top:0,n=[],i=0;n[i]=[];for(var a=0,o=this.$watched.length;a<o;a++){this.$watched[a].style.height="auto";var s=r()(this.$watched[a]).offset().top;s!==t&&(n[++i]=[],t=s),n[i].push([this.$watched[a],this.$watched[a].offsetHeight])}for(var l=0,c=n.length;l<c;l++){var u=r()(n[l]).map((function(){return this[1]})).get(),d=Math.max.apply(null,u);n[l].push(d)}e(n)}},{key:"applyHeight",value:function(e){var t=Math.max.apply(null,e);
vendor: 794 bytes, line 65
65this.$element.trigger("preequalized.zf.equalizer"),this.$watched.css("height",t),this.$element.trigger("postequalized.zf.equalizer")}},{key:"applyHeightByRow",value:function(e){this.$element.trigger("preequalized.zf.equalizer");for(var t=0,n=e.length;t<n;t++){var i=e[t].length,a=e[t][i-1];if(i<=2)r()(e[t][0][0]).css({height:"auto"});else{this.$element.trigger("preequalizedrow.zf.equalizer");for(var o=0,s=i-1;o<s;o++)r()(e[t][o][0]).css({height:a});this.$element.trigger("postequalizedrow.zf.equalizer")}}this.$element.trigger("postequalized.zf.equalizer")}},{key:"_destroy",value:function(){this._pauseEvents(),this.$watched.css("height","auto")}}])}(n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js").Plugin);m.defaults={equalizeOnStack:!1,equalizeByRow:!1,equalizeOn:""}},
65"./js/foundation.interchange.js": 66/*!**************************************!*\ 67 !*** ./js/foundation.interchange.js ***! 68 \**************************************/function(e,t,n){n.r(t),n.d(t,{Interchange:function(){return g}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),o=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),s=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),l=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return u(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.rules=[],this.currentPath="",this.className="Interchange",l.Triggers.init(r()),this._init(),this._events()}},{key:"_init",value:function(){a.MediaQuery._init();var e=this.$element[0].id||(0,s.GetYoDigits)(6,"interchange");this.$element.attr({"data-resize":e,id:e}),this._parseOptions(),this._addBreakpoints(),this._generateRules(),this._reflow()}},{key:"_events",value:function(){var e=this;this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",(function(){return e._reflow()}))}},{key:"_reflow",value:function(){var e;for(var t in this.rules)if(this.rules.hasOwnProperty(t)){var n=this.rules[t];window.matchMedia(n.query).matches&&(e=n)}e&&this.replace(e.path)}},{key:"_parseOptions",value:function(){void 0===this.options.type?this.options.type="auto":-1===["auto","src","background","html"].indexOf(this.options.type)&&(console.warn('Warning: invalid value "'.concat(this.options.type,'" for Interchange option "type"')),this.options.type="auto")}},{key:"_addBreakpoints",value:function(){for(var e in a.MediaQuery.queries)if(a.MediaQuery.queries.hasOwnProperty(e)){var n=a.MediaQuery.queries[e];t.SPECIAL_QUERIES[n.name]=n.value}}},{key:"_generateRules",value:function(){var e,n=[];for(var i in e="string"==typeof(e=this.options.rules?this.options.rules:this.$element.data("interchange"))?e.match(/\[.*?, .*?\]/g):e)if(e.hasOwnProperty(i)){var r=e[i].slice(1,-1).split(", "),a=r.slice(0,-1).join(""),o=r[r.length-1];t.SPECIAL_QUERIES[o]&&(o=t.SPECIAL_QUERIES[o]),n.push({path:a,query:o})}this.rules=n}},{key:"replace",value:function(e){var t=this;if(this.currentPath!==e){var n="replaced.zf.interchange",i=this.options.type;"auto"===i&&(i="IMG"===this.$element[0].nodeName?"src":e.match(/\.(gif|jpe?g|png|svg|tiff)([?#].*)?/i)?"background":"html"),"src"===i?this.$element.attr("src",e).on("load",(function(){t.currentPath=e})).trigger(n):"background"===i?(e=e.replace(/\(/g,"%28").replace(/\)/g,"%29"),this.$element.css({"background-image":"url("+e+")"}).trigger(n)):"html"===i&&r().get(e,(function(i){t.$element.html(i).trigger(n),r()(i).foundation(),t.currentPath=e}))}}},{key:"_destroy",value:function(){this.$element.off("resizeme.zf.trigger")}}
68])&&d(n.prototype,i),o&&d(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(o.Plugin);g.defaults={rules:null,type:"auto"},g.SPECIAL_QUERIES={landscape:"screen and (orientation: landscape)",portrait:"screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)"}},
68"./js/foundation.magellan.js": 69/*!***********************************!*\ 70 !*** ./js/foundation.magellan.js ***! 71 \***********************************/function(e,t,n){n.r(t),n.d(t,{Magellan:function(){return g}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.smoothScroll */"./js/foundation.smoothScroll.js"),l=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return u(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Magellan",l.Triggers.init(r()),this._init(),this.calcPoints()}},{key:"_init",value:function(){var e=this.$element[0].id||(0,o.GetYoDigits)(6,"magellan");this.$targets=r()("[data-magellan-target]"),this.$links=this.$element.find("a"),this.$element.attr({"data-resize":e,"data-scroll":e,id:e}),this.$active=r()(),this.scrollPos=parseInt(window.pageYOffset,10),this._events()}},{key:"calcPoints",value:function(){var e=this,t=document.body,n=document.documentElement;this.points=[],this.winHeight=Math.round(Math.max(window.innerHeight,n.clientHeight)),this.docHeight=Math.round(Math.max(t.scrollHeight,t.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)),this.$targets.each((function(){var t=r()(this),n=Math.round(t.offset().top-e.options.threshold);t.targetPoint=n,e.points.push(n)}))}},{key:"_events",value:function(){var e=this;r()(window).one("load",(function(){e.options.deepLinking&&location.hash&&e.scrollToLoc(location.hash),e.calcPoints(),e._updateActive()})),e.onLoadListener=(0,o.onLoad)(r()(window),(function(){e.$element.on({"resizeme.zf.trigger":e.reflow.bind(e),"scrollme.zf.trigger":e._updateActive.bind(e)}).on("click.zf.magellan",'a[href^="#"]',(function(t){t.preventDefault();var n=this.getAttribute("href");e.scrollToLoc(n)}))})),this._deepLinkScroll=function(){e.options.deepLinking&&e.scrollToLoc(window.location.hash)},r()(window).on("hashchange",this._deepLinkScroll)}},{key:"scrollToLoc",value:function(e){this._inTransition=!0;var t=this,n={animationEasing:this.options.animationEasing,animationDuration:this.options.animationDuration,threshold:this.options.threshold,offset:this.options.offset};s.SmoothScroll.scrollToLoc(e,n,(function(){t._inTransition=!1}))}},{key:"reflow",value:function(){this.calcPoints(),this._updateActive()}},{key:"_updateActive",value:function(){var e=this;if(!this._inTransition){var t,n=parseInt(window.pageYOffset,10),i=this.scrollPos>n;if(this.scrollPos=n,n<this.points[0]-this.options.offset-(i?this.options.threshold:0));else if(n+this.winHeight===this.docHeight)t=this.points.length-1;else{var a=this.points.filter((function(t){return t-e.options.offset-(i?e.options.threshold:0)<=n}));t=a.length?a.length-1:0}var o=this.$active,s="";void 0!==t?(this.$active=this.$links.filter('[href="#'+this.$targets.eq(t).data("magellan-target")+'"]'),this.$active.length&&(s=this.$active[0].getAttribute("href"))):this.$active=r()();var l=!(!this.$active.length&&!o.length||this.$active.is(o)),c=s!==window.location.hash;if(l&&(o.removeClass(this.options.activeClass),this.$active.addClass(this.options.activeClass)),this.options.deepLinking&&c)if(window.history.pushState){var u=s||window.location.pathname+window.location.search;this.options.updateHistory?window.history.pushState({},"",u):window.history.replaceState({},"",u)}else window.location.hash=s;l&&this.$element.trigger("update.zf.magellan",[this.$active])}}},{key:"_destroy",value:function(){if(this.$element.off(".zf.trigger .zf.magellan").find(".".concat(this.options.activeClass)).removeClass(this.options.activeClass),this.options.deepLinking){var e=this.$active[0].getAttribute("href");window.location.hash.replace(e,"")}r()(window).off("hashchange",this._deepLinkScroll),this.onLoadListener&&r()(window).off(this.onLoadListener)}}
71])&&d(n.prototype,i),a&&d(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);g.defaults={animationDuration:500,animationEasing:"linear",threshold:50,activeClass:"is-active",deepLinking:!1,updateHistory:!1,offset:0}},
71"./js/foundation.offcanvas.js": 72/*!************************************!*\ 73 !*** ./js/foundation.offcanvas.js ***! 74 \************************************/function(e,t,n){n.r(t),n.d(t,{OffCanvas:function(){return v}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),l=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),c=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,f(i.key),i)}}function f(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function p(e,t,n){return t=m(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var v=function(e){function t(){return d(this,t),p(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),function(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_setup",value:function(e,n){var i=this;this.className="OffCanvas",this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.contentClasses={base:[],reveal:[]},this.$lastTrigger=r()(),this.$triggers=r()(),this.position="left",this.$content=r()(),this.nested=!!this.options.nested,this.$sticky=r()(),this.isInCanvas=!1,r()(["push","overlap"]).each((function(e,t){i.contentClasses.base.push("has-transition-"+t)})),r()(["left","right","top","bottom"]).each((function(e,t){i.contentClasses.base.push("has-position-"+t),i.contentClasses.reveal.push("has-reveal-"+t)})),c.Triggers.init(r()),l.MediaQuery._init(),this._init(),this._events(),s.Keyboard.register("OffCanvas",{ESCAPE:"close"})}},{key:"_init",value:function(){var e=this.$element.attr("id");if(this.$element.attr("aria-hidden","true"),this.options.contentId?this.$content=r()("#"+this.options.contentId):this.$element.siblings("[data-off-canvas-content]").length?this.$content=this.$element.siblings("[data-off-canvas-content]").first():this.$content=this.$element.closest("[data-off-canvas-content]").first(),this.options.contentId?this.options.contentId&&null===this.options.nested&&console.warn("Remember to use the nested option if using the content ID option!"):this.nested=0===this.$element.siblings("[data-off-canvas-content]").length,!0===this.nested&&(this.options.transition="overlap",this.$element.removeClass("is-transition-push")),this.$element.addClass("is-transition-".concat(this.options.transition," is-closed")),this.$triggers=r()(document).find('[data-open="'+e+'"], [data-close="'+e+'"], [data-toggle="'+e+'"]').attr("aria-expanded","fal
74se").attr("aria-controls",e),this.position=this.$element.is(".position-left, .position-top, .position-right, .position-bottom")?this.$element.attr("class").match(/position\-(left|top|right|bottom)/)[1]:this.position,!0===this.options.contentOverlay){var t=document.createElement("div"),n="fixed"===r()(this.$element).css("position")?"is-overlay-fixed":"is-overlay-absolute";t.setAttribute("class","js-off-canvas-overlay "+n),this.$overlay=r()(t),"is-overlay-fixed"===n?r()(this.$overlay).insertAfter(this.$element):this.$content.append(this.$overlay)}var i=new RegExp((0,o.RegExpEscape)(this.options.revealClass)+"([^\\s]+)","g").exec(this.$element[0].className);i&&(this.options.isRevealed=!0,this.options.revealOn=this.options.revealOn||i[1]),!0===this.options.isRevealed&&this.options.revealOn&&(this.$element.first().addClass("".concat(this.options.revealClass).concat(this.options.revealOn)),this._setMQChecker()),this.options.transitionTime&&this.$element.css("transition-duration",this.options.transitionTime),this.$sticky=this.$content.find("[data-off-canvas-sticky]"),this.$sticky.length>0&&"push"===this.options.transition&&(this.options.contentScroll=!1);var a=this.$element.attr("class").match(/\bin-canvas-for-(\w+)/);a&&2===a.length?this.options.inCanvasOn=a[1]:this.options.inCanvasOn&&this.$element.addClass("in-canvas-for-".concat(this.options.inCanvasOn)),this.options.inCanvasOn&&this._checkInCanvas(),this._removeContentClasses()}},{key:"_events",value:function(){var e=this;this.$element.off(".zf.trigger .zf.offCanvas").on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"keydown.zf.offCanvas":this._handleKeyboard.bind(this)}),!0===this.options.closeOnClick&&(this.options.contentOverlay?this.$overlay:this.$content).on({"click.zf.offCanvas":this.close.bind(this)}),this.options.inCanvasOn&&r()(window).on("changed.zf.mediaquery",(function(){e._checkInCanvas()}))}},{key:"_setMQChecker",value:function(){var e=this;this.onLoadListener=(0,o.onLoad)(r()(window),(function(){l.MediaQuery.atLeast(e.options.revealOn)&&e.reveal(!0)})),r()(window).on("changed.zf.mediaquery",(function(){l.MediaQuery.atLeast(e.options.revealOn)?e.reveal(!0):e.reveal(!1)}))}},{key:"_checkInCanvas",value:function(){this.isInCanvas=l.MediaQuery.atLeast(this.options.inCanvasOn),!0===this.isInCanvas&&this.close()}},{key:"_removeContentClasses",value:function(e){"boolean"!=typeof e?this.$content.removeClass(this.contentClasses.base.join(" ")):!1===e&&this.$content.removeClass("has-reveal-".concat(this.position))}},{key:"_addContentClasses",value:function(e){this._removeContentClasses(e),"boolean"!=typeof e?this.$content.addClass("has-transition-".concat(this.options.transition," has-position-").concat(this.position)):!0===e&&this.$content.addClass("has-reveal-".concat(this.position))}},{key:"_fixStickyElements",value:function(){this.$sticky.each((function(e,t){var n=r()(t);if("fixed"===n.css("position")){var i=parseInt(n.css("top"),10);n.data("offCanvasSticky",{top:i});var a=r()(document).scrollTop()+i;n.css({top:"".concat(a,"px"),width:"100%",transition:"none"})}}))}},{key:"_unfixStickyElements",value:function(){this.$sticky.each((function(e,t){var n=r()(t),i=n.data("offCanvasSticky");"object"===u(i)&&(n.css({top:"".concat(i.top,"px"),width:"",transition:""}),n.data("offCanvasSticky",""))}))}},{key:"reveal",value:function(e){e?(this.close(),this.isRevealed=!0,this.$element.attr("aria-hidden","false"),this.$element.off("open.zf.trigger toggle.zf.trigger"),this.$element.removeClass("is-closed")):(this.isRevealed=!1,this.$element.attr("aria-hidden","true"),this.$element.off("open.zf.trigger toggle.zf.trigger").on({"open.zf.trigger":this.open.bind(this),"toggle.zf.trigger":this.toggle.bind(this)}),this.$element.addClass("is-closed")),this._addContentClasses(e)}},{key:"_stopScrolling",value:function(){return!1}},{key:"_recordScrollable",value:function(e){this.lastY=e.touches[0].pageY}},{key:"_preventDefaultAtEdges",value:function(e){var t=e.data,n=this.lastY-e.touches[0].pageY;this.lastY=e.touches[0].pageY,t._canScroll(n,this)||e.preventDefault()}},{key:"_scrollboxTouchMoved",value:function(e){var t=e.data,n=this.closest("[data-off-canvas], [data-off-canvas-scrollbox-outer]"),i=this.lastY-e.touches[0].pageY;n.lastY=this.lastY=e.touches[0].pageY,e.stopPropagation(),t._canScroll(i,this)||(t._canScroll(i,n)?n.scrollTop+=i:e.preventDefault())}},{key:"_canScroll",value:function(e,t){var n=e<0,i=e>0,r=t.scrollTop>0,a=t.scrollTop<t.scrollHeight-t.clientHeight;return n&&r||i&&a}},{key:"open",value:function(e,t){var n=this;if(!(this.$element.hasClass("is-open")||this.isRevealed||this.isInCanvas)){var i=this;t&&(this.$lastTrigger=t),"top"===this.options.forceTo?window.scrollTo(0,0):"bottom"===this.options.forceTo&&window.scrollTo(0,document.body.scrollHeight),this.options.transitionTime&&"overlap"
74!==this.options.transition?this.$element.siblings("[data-off-canvas-content]").css("transition-duration",this.options.transitionTime):this.$element.siblings("[data-off-canvas-content]").css("transition-duration",""),this.$element.addClass("is-open").removeClass("is-closed"),this.$triggers.attr("aria-expanded","true"),this.$element.attr("aria-hidden","false"),this.$content.addClass("is-open-"+this.position),!1===this.options.contentScroll&&(r()("body").addClass("is-off-canvas-open").on("touchmove",this._stopScrolling),this.$element.on("touchstart",this._recordScrollable),this.$element.on("touchmove",this,this._preventDefaultAtEdges),this.$element.on("touchstart","[data-off-canvas-scrollbox]",this._recordScrollable),this.$element.on("touchmove","[data-off-canvas-scrollbox]",this,this._scrollboxTouchMoved)),!0===this.options.contentOverlay&&this.$overlay.addClass("is-visible"),!0===this.options.closeOnClick&&!0===this.options.contentOverlay&&this.$overlay.addClass("is-closable"),!0===this.options.autoFocus&&this.$element.one((0,o.transitionend)(this.$element),(function(){if(i.$element.hasClass("is-open")){var e=i.$element.find("[data-autofocus]");e.length?e.eq(0).focus():i.$element.find("a, button").eq(0).focus()}})),!0===this.options.trapFocus&&(this.$content.attr("tabindex","-1"),s.Keyboard.trapFocus(this.$element)),"push"===this.options.transition&&this._fixStickyElements(),this._addContentClasses(),this.$element.trigger("opened.zf.offCanvas"),this.$element.one((0,o.transitionend)(this.$element),(function(){n.$element.trigger("openedEnd.zf.offCanvas")}))}}},{key:"close",value:function(){var e=this;this.$element.hasClass("is-open")&&!this.isRevealed&&(this.$element.trigger("close.zf.offCanvas"),this.$element.removeClass("is-open"),this.$element.attr("aria-hidden","true"),this.$content.removeClass("is-open-left is-open-top is-open-right is-open-bottom"),!0===this.options.contentOverlay&&this.$overlay.removeClass("is-visible"),!0===this.options.closeOnClick&&!0===this.options.contentOverlay&&this.$overlay.removeClass("is-closable"),this.$triggers.attr("aria-expanded","false"),this.$element.one((0,o.transitionend)(this.$element),(function(){e.$element.addClass("is-closed"),e._removeContentClasses(),"push"===e.options.transition&&e._unfixStickyElements(),!1===e.options.contentScroll&&(r()("body").removeClass("is-off-canvas-open").off("touchmove",e._stopScrolling),e.$element.off("touchstart",e._recordScrollable),e.$element.off("touchmove",e._preventDefaultAtEdges),e.$element.off("touchstart","[data-off-canvas-scrollbox]",e._recordScrollable),e.$element.off("touchmove","[data-off-canvas-scrollbox]",e._scrollboxTouchMoved)),!0===e.options.trapFocus&&(e.$content.removeAttr("tabindex"),s.Keyboard.releaseFocus(e.$element)),e.$element.trigger("closed.zf.offCanvas")})))}},{key:"toggle",value:function(e,t){this.$element.hasClass("is-open")?this.close(e,t):this.open(e,t)}},{key:"_handleKeyboard",value:function(e){var t=this;s.Keyboard.handleKey(e,"OffCanvas",{close:function(){return t.close(),t.$lastTrigger.focus(),!0},handled:function(){e.preventDefault()}})}},{key:"_destroy",value:function(){this.close(),this.$element.off(".zf.trigger .zf.offCanvas"),this.$overlay.off(".zf.offCanvas"),this.onLoadListener&&r()(window).off(this.onLoadListener)}}])}(a.Plugin);v.defaults={closeOnClick:!0,contentOverlay:!0,contentId:null,nested:null,contentScroll:!0,transitionTime:null,transition:"push",forceTo:null,isRevealed:!1,revealOn:null,inCanvasOn:null,autoFocus:!0,revealClass:"reveal-for-",trapFocus:!1}},
74"./js/foundation.orbit.js": 75/*!********************************!*\ 76 !*** ./js/foundation.orbit.js ***! 77 \********************************/function(e,t,n){n.r(t),n.d(t,{Orbit:function(){return b}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),o=n(/*! ./foundation.util.motion */"./js/foundation.util.motion.js"),s=n(/*! ./foundation.util.timer */"./js/foundation.util.timer.js"),l=n(/*! ./foundation.util.imageLoader */"./js/foundation.util.imageLoader.js"),c=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),u=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),d=n(/*! ./foundation.util.touch */"./js/foundation.util.touch.js");function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,m(i.key),i)}}function m(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}function g(e,t,n){return t=v(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){return f(this,t),g(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Orbit",d.Touch.init(r()),this._init(),a.Keyboard.register("Orbit",{ltr:{ARROW_RIGHT:"next",ARROW_LEFT:"previous"},rtl:{ARROW_LEFT:"next",ARROW_RIGHT:"previous"}})}},{key:"_init",value:function(){this._reset(),this.$wrapper=this.$element.find(".".concat(this.options.containerClass)),this.$slides=this.$element.find(".".concat(this.options.slideClass));var e=this.$element.find("img"),t=this.$slides.filter(".is-active"),n=this.$element[0].id||(0,c.GetYoDigits)(6,"orbit");this.$element.attr({"data-resize":n,id:n}),t.length||this.$slides.eq(0).addClass("is-active"),this.options.useMUI||this.$slides.addClass("no-motionui"),e.length?(0,l.onImagesLoaded)(e,this._prepareForOrbit.bind(this)):this._prepareForOrbit(),this.options.bullets&&this._loadBullets(),this._events(),this.options.autoPlay&&this.$slides.length>1&&this.geoSync(),this.options.accessible&&this.$wrapper.attr("tabindex",0)}},{key:"_loadBullets",value:function(){this.$bullets=this.$element.find(".".concat(this.options.boxOfBullets)).find("button")}},{key:"geoSync",value:function(){var e=this;this.timer=new s.Timer(this.$element,{duration:this.options.timerDelay,infinite:!1},(function(){e.changeSlide(!0)})),this.timer.start()}},{key:"_prepareForOrbit",value:function(){this._setWrapperHeight()}},{key:"_setWrapperHeight",value:function(e){var t,n=0,i=0,a=this;this.$slides.each((function(){t=this.getBoundingClientRect().height,r()(this).attr("data-sli
77de",i),/mui/g.test(r()(this)[0].className)||a.$slides.filter(".is-active")[0]===a.$slides.eq(i)[0]||r()(this).css({display:"none"}),n=t>n?t:n,i++})),i===this.$slides.length&&(this.$wrapper.css({height:n}),e&&e(n))}},{key:"_setSlideHeight",value:function(e){this.$slides.each((function(){r()(this).css("max-height",e)}))}},{key:"_events",value:function(){var e=this;this.$element.off(".resizeme.zf.trigger").on({"resizeme.zf.trigger":this._prepareForOrbit.bind(this)}),this.$slides.length>1&&(this.options.swipe&&this.$slides.off("swipeleft.zf.orbit swiperight.zf.orbit").on("swipeleft.zf.orbit",(function(t){t.preventDefault(),e.changeSlide(!0)})).on("swiperight.zf.orbit",(function(t){t.preventDefault(),e.changeSlide(!1)})),this.options.autoPlay&&(this.$slides.on("click.zf.orbit",(function(){e.$element.data("clickedOn",!e.$element.data("clickedOn")),e.timer[e.$element.data("clickedOn")?"pause":"start"]()})),this.options.pauseOnHover&&this.$element.on("mouseenter.zf.orbit",(function(){e.timer.pause()})).on("mouseleave.zf.orbit",(function(){e.$element.data("clickedOn")||e.timer.start()}))),this.options.navButtons&&this.$element.find(".".concat(this.options.nextClass,", .").concat(this.options.prevClass)).attr("tabindex",0).on("click.zf.orbit touchend.zf.orbit",(function(t){t.preventDefault(),e.changeSlide(r()(this).hasClass(e.options.nextClass))})),this.options.bullets&&this.$bullets.on("click.zf.orbit touchend.zf.orbit",(function(){if(/is-active/g.test(this.className))return!1;var t=r()(this).data("slide"),n=t>e.$slides.filter(".is-active").data("slide"),i=e.$slides.eq(t);e.changeSlide(n,i,t)})),this.options.accessible&&this.$wrapper.add(this.$bullets).on("keydown.zf.orbit",(function(t){a.Keyboard.handleKey(t,"Orbit",{next:function(){e.changeSlide(!0)},previous:function(){e.changeSlide(!1)},handled:function(){r()(t.target).is(e.$bullets)&&e.$bullets.filter(".is-active").focus()}})})))}},{key:"_reset",value:function(){void 0!==this.$slides&&this.$slides.length>1&&(this.$element.off(".zf.orbit").find("*").off(".zf.orbit"),this.options.autoPlay&&this.timer.restart(),this.$slides.each((function(e){r()(e).removeClass("is-active is-active is-in").removeAttr("aria-live").hide()})),this.$slides.first().addClass("is-active").show(),this.$element.trigger("slidechange.zf.orbit",[this.$slides.first()]),this.options.bullets&&this._updateBullets(0))}},{key:"changeSlide",value:function(e,t,n){if(this.$slides){var i=this.$slides.filter(".is-active").eq(0);if(/mui/g.test(i[0].className))return!1;var r,a=this.$slides.first(),s=this.$slides.last(),l=e?"Right":"Left",c=e?"Left":"Right",u=this;(r=t||(e?this.options.infiniteWrap?i.next(".".concat(this.options.slideClass)).length?i.next(".".concat(this.options.slideClass)):a:i.next(".".concat(this.options.slideClass)):this.options.infiniteWrap?i.prev(".".concat(this.options.slideClass)).length?i.prev(".".concat(this.options.slideClass)):s:i.prev(".".concat(this.options.slideClass)))).length&&(this.$element.trigger("beforeslidechange.zf.orbit",[i,r]),this.options.bullets&&(n=n||this.$slides.index(r),this._updateBullets(n)),this.options.useMUI&&!this.$element.is(":hidden")?(o.Motion.animateIn(r.addClass("is-active"),this.options["animInFrom".concat(l)],(function(){r.css({display:"block"}).attr("aria-live","polite")})),o.Motion.animateOut(i.removeClass("is-active"),this.options["animOutTo".concat(c)],(function(){i.removeAttr("aria-live"),u.options.autoPlay&&!u.timer.isPaused&&u.timer.restart()}))):(i.removeClass("is-active is-in").removeAttr("aria-live").hide(),r.addClass("is-active is-in").attr("aria-live","polite").show(),this.options.autoPlay&&!this.timer.isPaused&&this.timer.restart()),this.$element.trigger("slidechange.zf.orbit",[r]))}}},{key:"_updateBullets",value:function(e){var t=this.$bullets.filter(".is-active"),n=this.$bullets.not(".is-active"),i=this.$bullets.eq(e);t.removeClass("is-active").blur(),i.addClass("is-active");var a=t.children("[data-slide-active-label]").last();if(!a.length){var o=t.children("span");n.toArray().map((function(e){return r()(e).children("span").length})).every((function(e){return e<o.length}
77))&&(a=o.last()).attr("data-slide-active-label","")}a.length&&(a.detach(),i.append(a))}},{key:"_destroy",value:function(){this.$element.off(".zf.orbit").find("*").off(".zf.orbit").end().hide()}}])&&p(n.prototype,i),u&&p(n,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,u}(u.Plugin);b.defaults={bullets:!0,navButtons:!0,animInFromRight:"slide-in-right",animOutToRight:"slide-out-right",animInFromLeft:"slide-in-left",animOutToLeft:"slide-out-left",autoPlay:!0,timerDelay:5e3,infiniteWrap:!0,swipe:!0,pauseOnHover:!0,accessible:!0,containerClass:"orbit-container",slideClass:"orbit-slide",boxOfBullets:"orbit-bullets",nextClass:"orbit-next",prevClass:"orbit-previous",useMUI:!0}},
77"./js/foundation.positionable.js": 78/*!***************************************!*\ 79 !*** ./js/foundation.positionable.js ***! 80 \***************************************/function(e,t,n){n.r(t),n.d(t,{Positionable:function(){return y}});var i=n(/*! ./foundation.util.box */"./js/foundation.util.box.js"),r=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var f=["left","right","top","bottom"],p=["top","bottom","center"],m=["left","right","center"],g={left:p,right:p,top:m,bottom:m};function v(e,t){var n=t.indexOf(e);return n===t.length-1?t[0]:t[n+1]}var y=function(e){function t(){return s(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(r=[{key:"_init",value:function(){this.triedPositions={},this.position="auto"===this.options.position?this._getDefaultPosition():this.options.position,this.alignment="auto"===this.options.alignment?this._getDefaultAlignment():this.options.alignment,this.originalPosition=this.position,this.originalAlignment=this.alignment}},{key:"_getDefaultPosition",value:function(){return"bottom"}},{key:"_getDefaultAlignment",value:function(){switch(this.position){case"bottom":case"top":return(0,a.rtl)()?"right":"left";case"left":case"right":return"bottom"}}},{key:"_reposition",value:function(){this._alignmentsExhausted(this.position)?(this.position=v(this.position,f),this.alignment=g[this.position][0]):this._realign()}},{key:"_realign",value:function(){this._addTriedPosition(this.position,this.alignment),this.alignment=v(this.alignment,g[this.position])}},{key:"_addTriedPosition",value:function(e,t){this.triedPositions[e]=this.triedPositions[e]||[],this.triedPositions[e].push(t)}},{key:"_positionsExhausted",value:function(){for(var e=!0,t=0;t<f.length;t++)e=e&&this._alignmentsExhausted(f[t]);return e}},{key:"_alignmentsExhausted",value:function(e){return this.triedPositions[e]&&this.triedPositions[e].length===g[e].length}},{key:"_getVOffset",value:function(){return this.options.vOffset}},{key:"_getHOffset",value:function(){return this.options.hOffset}},{key:"_setPosition",value:function(e,t,n){if("false"===e.attr("aria-expanded"))return!1;if(this.options.allowOverlap||(this.position=this.originalPosition,this.alignment=this.originalAlignment),t.offset(i.Box.GetExplicitOffsets(t,e,this.position,this.alignment,this._getVOffset(),this._getHOffset())),!this.options.allowOverlap){for(var r=1e8,a={position:this.position,alignment:this.alignment};!this._positionsExhausted();){var o=i.Box.OverlapArea(t,n,!1,!1,this.options.allowBottomOverlap);if(0===o)return;o<r&&(r=o,a={position:this.position,alignment:this.alignment}),this._reposition(),t.offset(i.Box.GetExplicitOffsets(t,e,this.position,this.alignment,this._getVOffset(),this._getHOffset()))}
80this.position=a.position,this.alignment=a.alignment,t.offset(i.Box.GetExplicitOffsets(t,e,this.position,this.alignment,this._getVOffset(),this._getHOffset()))}}}])&&l(n.prototype,r),o&&l(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(r.Plugin);y.defaults={position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,vOffset:0,hOffset:0}},
80"./js/foundation.responsiveAccordionTabs.js": 81/*!**************************************************!*\ 82 !*** ./js/foundation.responsiveAccordionTabs.js ***! 83 \**************************************************/function(e,t,n){n.r(t),n.d(t,{ResponsiveAccordionTabs:function(){return v}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),l=n(/*! ./foundation.accordion */"./js/foundation.accordion.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function d(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function h(e,t,n){return t=p(t),f(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function f(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g={tabs:{cssClass:"tabs",plugin:n(/*! ./foundation.tabs */"./js/foundation.tabs.js").Tabs,open:function(e,t){return e.selectTab(t)},close:null,toggle:null},accordion:{cssClass:"accordion",plugin:l.Accordion,open:function(e,t){return e.down(r()(t))},close:function(e,t){return e.up(r()(t))},toggle:function(e,t){return e.toggle(r()(t))}}},v=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(i=h(this,t,[e,n]),i.options.reflow&&i.storezfData||i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=r()(e),this.$element.data("zfPluginBase",this),this.options=r().extend({},t.defaults,this.$element.data(),n),this.rules=this.$element.data("responsive-accordion-tabs"),this.currentMq=null,this.currentRule=null,this.currentPlugin=null,this.className="ResponsiveAccordionTabs",this.$element.attr("id")||this.$element.attr("id",(0,o.GetYoDigits)(6,"responsiveaccordiontabs")),this._init(),this._events()}},{key:"_init",value:function(){if(a.MediaQuery._init(),"string"==typeof this.rules){for(var e={},t=this.rules.split(" "),n=0;n<t.length;n++){var i=t[n].split("-"),o=i.length>
831?i[0]:"small",s=i.length>1?i[1]:i[0];null!==g[s]&&(e[o]=g[s])}this.rules=e}this._getAllOptions(),r().isEmptyObject(this.rules)||this._checkMediaQueries()}},{key:"_getAllOptions",value:function(){for(var e in this.allOptions={},g)if(g.hasOwnProperty(e)){var t=g[e];try{var n=r()("<ul></ul>"),i=new t.plugin(n,this.options);for(var a in i.options)if(i.options.hasOwnProperty(a)&&"zfPlugin"!==a){var o=i.options[a];this.allOptions[a]=o}i.destroy()}catch(e){console.warn("Warning: Problems getting Accordion/Tab options: ".concat(e))}}}},{key:"_events",value:function(){this._changedZfMediaQueryHandler=this._checkMediaQueries.bind(this),r()(window).on("changed.zf.mediaquery",this._changedZfMediaQueryHandler)}},{key:"_checkMediaQueries",value:function(){var e,t=this;r().each(this.rules,(function(t){a.MediaQuery.atLeast(t)&&(e=t)})),e&&(this.currentPlugin instanceof this.rules[e].plugin||(r().each(g,(function(e,n){t.$element.removeClass(n.cssClass)})),this.$element.addClass(this.rules[e].cssClass),this.currentPlugin&&(!this.currentPlugin.$element.data("zfPlugin")&&this.storezfData&&this.currentPlugin.$element.data("zfPlugin",this.storezfData),this.currentPlugin.destroy()),this._handleMarkup(this.rules[e].cssClass),this.currentRule=this.rules[e],this.currentPlugin=new this.currentRule.plugin(this.$element,this.options),this.storezfData=this.currentPlugin.$element.data("zfPlugin")))}},{key:"_handleMarkup",value:function(e){var t=this,n="accordion",i=r()("[data-tabs-content="+this.$element.attr("id")+"]");if(i.length&&(n="tabs"),n!==e){var a=t.allOptions.linkClass?t.allOptions.linkClass:"tabs-title",s=t.allOptions.panelClass?t.allOptions.panelClass:"tabs-panel";this.$element.removeAttr("role");var l=this.$element.children("."+a+",[data-accordion-item]").removeClass(a).removeClass("accordion-item").removeAttr("data-accordion-item"),c=l.children("a").removeClass("accordion-title");if("tabs"===n?(i=i.children("."+s).removeClass(s).removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby")).children("a").removeAttr("role").removeAttr("aria-controls").removeAttr("aria-selected"):i=l.children("[data-tab-content]").removeClass("accordion-content"),i.css({display:"",visibility:""}),l.css({display:"",visibility:""}),"accordion"===e)i.each((function(e,n){r()(n).appendTo(l.get(e)).addClass("accordion-content").attr("data-tab-content","").removeClass("is-active").css({height:""}),r()("[data-tabs-content="+t.$element.attr("id")+"]").after('<div id="tabs-placeholder-'+t.$element.attr("id")+'"></div>').detach(),l.addClass("accordion-item").attr("data-accordion-item",""),c.addClass("accordion-title")}));else if("tabs"===e){var u=r()("[data-tabs-content="+t.$element.attr("id")+"]"),d=r()("#tabs-placeholder-"+t.$element.attr("id"));d.length?(u=r()('<div class="tabs-content"></div>').insertAfter(d).attr("data-tabs-content",t.$element.attr("id")),d.remove()):u=r()('<div class="tabs-content"></div>').insertAfter(t.$element).attr("data-tabs-content",t.$element.attr("id")),i.each((function(e,t){var n=r()(t).appendTo(u).addClass(s),i=c.get(e).hash.slice(1),a=r()(t).attr("id")||(0,o.GetYoDigits)(6,"accordion");i!==a&&(""!==i?r()(t).attr("id",i):(i=a,r()(t).attr("id",i),r()(c.get(e)).attr("href",r()(c.get(e)).attr("href").replace("#","")+"#"+i))),r()(l.get(e)).hasClass("is-active")&&n.addClass("is-active")})),l.addClass(a)}}}},{key:"open",value:function(){var e;if(this.currentRule&&"function"==typeof this.currentRule.open)return(e=this.currentRule).open.apply(e,[this.currentPlugin].concat(Array.prototype.slice.call(arguments)))}},{key:"close",value:function(){var e;if(this.currentRule&&"function"==typeof this.currentRule.close)return(e=this.currentRule).close.apply(e,[this.currentPlugin].concat(Array.prototype.slice.call(arguments)))}},{key:"toggle",value:function(){var e;if(this.currentRule&&"function"==typeof this.currentRule.toggle)return(e=this.currentRule).toggle.apply(e,[this.currentPlugin].concat(Array.prototype.slice.call(arguments)))}},{key:"_destroy",value:function(){this.currentPlugin&&this.currentPlugin.destroy(),r()(window).off("changed.zf.mediaquery",this._changedZfMediaQueryHandler)}}
83])&&u(n.prototype,i),s&&u(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(s.Plugin);v.defaults={}},
83"./js/foundation.responsiveMenu.js": 84/*!*****************************************!*\ 85 !*** ./js/foundation.responsiveMenu.js ***! 86 \*****************************************/function(e,t,n){n.r(t),n.d(t,{ResponsiveMenu:function(){return b}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),l=n(/*! ./foundation.dropdownMenu */"./js/foundation.dropdownMenu.js"),c=n(/*! ./foundation.drilldown */"./js/foundation.drilldown.js"),u=n(/*! ./foundation.accordionMenu */"./js/foundation.accordionMenu.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function p(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function m(e,t,n){return t=g(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var y={dropdown:{cssClass:"dropdown",plugin:l.DropdownMenu},drilldown:{cssClass:"drilldown",plugin:c.Drilldown},accordion:{cssClass:"accordion-menu",plugin:u.AccordionMenu}},b=function(e){function t(){return h(this,t),m(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e){this.$element=r()(e),this.rules=this.$element.data("responsive-menu"),this.currentMq=null,this.currentPlugin=null,this.className="ResponsiveMenu",this._init(),this._events()}},{key:"_init",value:function(){if(a.MediaQuery._init(),"string"==typeof this.rules){for(var e={},t=this.rules.split(" "),n=0;n<t.length;n++){var i=t[n].split("-"),s=i.length>
861?i[0]:"small",l=i.length>1?i[1]:i[0];null!==y[l]&&(e[s]=y[l])}this.rules=e}r().isEmptyObject(this.rules)||this._checkMediaQueries(),this.$element.attr("data-mutate",this.$element.attr("data-mutate")||(0,o.GetYoDigits)(6,"responsive-menu"))}},{key:"_events",value:function(){var e=this;r()(window).on("changed.zf.mediaquery",(function(){e._checkMediaQueries()}))}},{key:"_checkMediaQueries",value:function(){var e,t=this;r().each(this.rules,(function(t){a.MediaQuery.atLeast(t)&&(e=t)})),e&&(this.currentPlugin instanceof this.rules[e].plugin||(r().each(y,(function(e,n){t.$element.removeClass(n.cssClass)})),this.$element.addClass(this.rules[e].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[e].plugin(this.$element,{})))}},{key:"_destroy",value:function(){this.currentPlugin.destroy(),r()(window).off(".zf.ResponsiveMenu")}}])&&f(n.prototype,i),s&&f(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(s.Plugin);b.defaults={}},
86"./js/foundation.responsiveToggle.js": 87/*!*******************************************!*\ 88 !*** ./js/foundation.responsiveToggle.js ***! 89 \*******************************************/function(e,t,n){n.r(t),n.d(t,{ResponsiveToggle:function(){return p}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),o=n(/*! ./foundation.util.motion */"./js/foundation.util.motion.js");function s(e){return(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})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,u(i.key),i)}}function u(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function d(e,t,n){return t=h(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var p=function(e){function t(){return l(this,t),d(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=r()(e),this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="ResponsiveToggle",this._init(),this._events()}},{key:"_init",value:function(){a.MediaQuery._init();var e=this.$element.data("responsive-toggle");if(e||console.error("Your tab bar needs an ID of a Menu as the value of data-tab-bar."),this.$targetMenu=r()("#".concat(e)),this.$toggler=this.$element.find("[data-toggle]").filter((function(){var t=r()(this).data("toggle");return t===e||""===t})),this.options=r().extend({},this.options,this.$targetMenu.data()),this.options.animate){var t=this.options.animate.split(" ");this.animationIn=t[0],this.animationOut=t[1]||null}this._update()}},{key:"_events",value:function(){this._updateMqHandler=this._update.bind(this),r()(window).on("changed.zf.mediaquery",this._updateMqHandler),this.$toggler.on("click.zf.responsiveToggle",this.toggleMenu.bind(this))}},{key:"_update",value:function(){a.MediaQuery.atLeast(this.options.hideFor)?(this.$element.hide(),this.$targetMenu.show()):(this.$element.show(),this.$targetMenu.hide())}},{key:"toggleMenu",value:function(){var e=this;a.MediaQuery.atLeast(this.options.hideFor)||(this.options.animate?this.$targetMenu.is(":hidden")?o.Motion.animateIn(this.$targetMenu,this.animationIn,(function(){e.$element.trigger("toggled.zf.responsiveToggle"),e.$targetMenu.find("[data-mutate]").triggerHandler("mutateme.zf.trigger")})):o.Motion.animateOut(this.$targetMenu,this.animationOut,(function(){e.$element.trigger("toggled.zf.responsiveToggle")})):(this.$targetMenu.toggle(0),this.$targetMenu.find("[data-mutate]").trigger("mutateme.zf.trigger"),this.$element.trigger("toggled.zf.responsiveToggle")))}},{key:"_destroy",value:function(){this.$element.off(".zf.responsiveToggle"),this.$toggler.off(".zf.responsiveToggle"),r()(window).off("changed.zf.mediaquery",this._updateMqHandler)}}
89])&&c(n.prototype,i),s&&c(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,s}(n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js").Plugin);p.defaults={hideFor:"medium",animate:!1}},
89"./js/foundation.reveal.js": 90/*!*********************************!*\ 91 !*** ./js/foundation.reveal.js ***! 92 \*********************************/function(e,t,n){n.r(t),n.d(t,{Reveal:function(){return b}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),l=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),c=n(/*! ./foundation.util.motion */"./js/foundation.util.motion.js"),u=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js"),d=n(/*! ./foundation.util.touch */"./js/foundation.util.touch.js");function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,m(i.key),i)}}function m(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=h(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}function g(e,t,n){return t=v(t),function(e,t){if(t&&("object"==h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){return f(this,t),g(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Reveal",this._init(),d.Touch.init(r()),u.Triggers.init(r()),s.Keyboard.register("Reveal",{ESCAPE:"close"})}},{key:"_init",value:function(){var e=this;l.MediaQuery._init(),this.id=this.$element.attr("id"),this.isActive=!1,this.cached={mq:l.MediaQuery.current},this.$anchor=r()('[data-open="'.concat(this.id,'"]')).length?r()('[data-open="'.concat(this.id,'"]')):r()('[data-toggle="'.concat(this.id,'"]')),this.$anchor.attr({"aria-controls":this.id,"aria-haspopup":"dialog",tabindex:0}),(this.options.fullScreen||this.$element.hasClass("full"))&&(this.options.fullScreen=!0,this.options.overlay=!1),this.options.overlay&&!this.$overlay&&(this.$overlay=this._makeOverlay(this.id)),this.$element.attr({role:"dialog","aria-hidden":!0,"data-yeti-box":this.id,"data-resize":this.id}),this.$overlay?this.$element.detach().appendTo(this.$overlay):(this.$element.detach().appendTo(r()(this.options.appendTo)),this.$element.addClass("without-overlay")),this._events(),this.options.deepLink&&window.location.hash==="#".concat(this.id)&&(this.onLoadListener=(0,o.onLoad)(r()(window),(function(){return e.open()})))}},{key:"_makeOverlay",value:function(){var e="";return this.options.additionalOverlayClasses&&(e=" "+this.options.additionalOverlayClasses),r()("<div></div>").addClass("reveal-overlay"+e).appendTo(this.options.appendTo)}},{key:"_updatePosition",value:function(){var e,t=this.$element.outerWidth(),n=r()(window).width(),i=this.$element.outerHeight(),a=r()(window).height(),o=null;e="auto"===this.options.hOffset?parseInt((n-t)/2,10):parseInt(this.options.hOffset,10),"auto"===this.options.vOffset?o=i>a?parseInt(Math.min(100,a/10),10):parseInt((a-i)/4,10):null!==this.options.vOffset&&(o=parseInt(this.options.vOffset,10)),null!==o&&this.$element.css({top:o+"px"}),this.$overlay&&"auto"===this.options.hOffset||(this.$element.css({left:e+"px"}),this.$element.css({margin:"0px"}))}},{key:"_events",value:function(){var e=this,t=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":function(n,i){if
vendor: 4,313 bytes, line 92
92(n.target===t.$element[0]||r()(n.target).parents("[data-closable]")[0]===i)return e.close.apply(e)},"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":function(){t._updatePosition()}}),this.options.closeOnClick&&this.options.overlay&&this.$overlay.off(".zf.reveal").on("click.zf.dropdown tap.zf.dropdown",(function(e){e.target!==t.$element[0]&&!r().contains(t.$element[0],e.target)&&r().contains(document,e.target)&&t.close()})),this.options.deepLink&&r()(window).on("hashchange.zf.reveal:".concat(this.id),this._handleState.bind(this))}},{key:"_handleState",value:function(){window.location.hash!=="#"+this.id||this.isActive?this.close():this.open()}},{key:"_disableScroll",value:function(e){e=e||r()(window).scrollTop(),r()(document).height()>r()(window).height()&&r()("html").css("top",-e)}},{key:"_enableScroll",value:function(e){e=e||parseInt(r()("html").css("top"),10),r()(document).height()>r()(window).height()&&(r()("html").css("top",""),r()(window).scrollTop(-e))}},{key:"open",value:function(){var e=this,t="#".concat(this.id);this.options.deepLink&&window.location.hash!==t&&(window.history.pushState?this.options.updateHistory?window.history.pushState({},"",t):window.history.replaceState({},"",t):window.location.hash=t),this.$activeAnchor=r()(document.activeElement).is(this.$anchor)?r()(document.activeElement):this.$anchor,this.isActive=!0,this.$element.css({visibility:"hidden"}).show().scrollTop(0),this.options.overlay&&this.$overlay.css({visibility:"hidden"}).show(),this._updatePosition(),this.$element.hide().css({visibility:""}),this.$overlay&&(this.$overlay.css({visibility:""}).hide(),this.$element.hasClass("fast")?this.$overlay.addClass("fast"):this.$element.hasClass("slow")&&this.$overlay.addClass("slow")),this.options.multipleOpened||this.$element.trigger("closeme.zf.reveal",this.id),0===r()(".reveal:visible").length&&this._disableScroll();var n=this;this.options.animationIn?(this.options.overlay&&c.Motion.animateIn(this.$overlay,"fade-in"),c.Motion.animateIn(this.$element,this.options.animationIn,(function(){e.$element&&(e.focusableElements=s.Keyboard.findFocusable(e.$element),n.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),n._addGlobalClasses(),s.Keyboard.trapFocus(n.$element))}))):(this.options.overlay&&this.$overlay.show(0),this.$element.show(this.options.showDelay)),this.$element.attr({"aria-hidden":!1,tabindex:-1}).focus(),s.Keyboard.trapFocus(this.$element),this._addGlobalClasses(),this._addGlobalListeners(),this.$element.trigger("open.zf.reveal")}},{key:"_addGlobalClasses",value:function(){var e=function(){r()("html").toggleClass("zf-has-scroll",!!(r()(document).height()>r()(window).height()))};this.$element.on("resizeme.zf.trigger.revealScrollbarListener",(function(){return e()})),e(),r()("html").addClass("is-reveal-open")}},{key:"_removeGlobalClasses",value:function(){this.$element.off("resizeme.zf.trigger.revealScrollbarListener"),r()("html").removeClass("is-reveal-open"),r()("html").removeClass("zf-has-scroll")}},{key:"_addGlobalListeners",value:function(){var e=this;this.$element&&(this.focusableElements=s.Keyboard.findFocusable(this.$element),this.options.overlay||!this.options.closeOnClick||this.options.fullScreen||r()("body").on("click.zf.dropdown tap.zf.dropdown",(function(t){t.target!==e.$element[0]&&!r().contains(e.$element[0],t.target)&&r().contains(document,t.target)&&e.close()})),this.options.closeOnEsc&&r()(window).on("keydown.zf.reveal",(function(t){s.Keyboard.handleKey(t,"Reveal",{close:function(){e.options.closeOnEsc&&e.close()}})})))}},{key:"close",value:function(){if(!this.isActive||!this.$element.is(":visible"))return!1;var e=this;function t(){var t=parseInt(r()("html").css("top"),10);0===r()(".reveal:visible").length&&e._removeGlobalClasses(),s.Keyboard.releaseFocus(e.$element),e.$element.attr("aria-hidden",!0),0===r()(".reveal:visible").length&&e._enableScroll(t),e.$element.trigger("closed.zf.reveal")}if(this.options.animationOut?(this.options.overlay&&c.Motion.animateOut(this.$overlay,"fade-out"),c.Motion.animateOut(this.$element,this.options.animationOut,t)):(this.$element.hide(this.options.hideDelay),this.options.overlay?this.$overlay.hide(0,t):t()),this.options.closeOnEsc&&r()(window).off("keydown.zf.reveal"),!this.options.overlay&&this.options.closeOnClick&&r()("body").off("
92click.zf.dropdown tap.zf.dropdown"),this.$element.off("keydown.zf.reveal"),this.options.resetOnClose&&this.$element.html(this.$element.html()),this.isActive=!1,e.options.deepLink&&window.location.hash==="#".concat(this.id))if(window.history.replaceState){var n=window.location.pathname+window.location.search;this.options.updateHistory?window.history.pushState({},"",n):window.history.replaceState("",document.title,n)}else window.location.hash="";this.$activeAnchor.focus()}},{key:"toggle",value:function(){this.isActive?this.close():this.open()}},{key:"_destroy",value:function(){this.options.overlay&&(this.$element.appendTo(r()(this.options.appendTo)),this.$overlay.hide().off().remove()),this.$element.hide().off(),this.$anchor.off(".zf"),r()(window).off(".zf.reveal:".concat(this.id)),this.onLoadListener&&r()(window).off(this.onLoadListener),0===r()(".reveal:visible").length&&this._removeGlobalClasses()}}])&&p(n.prototype,i),a&&p(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);b.defaults={animationIn:"",animationOut:"",showDelay:0,hideDelay:0,closeOnClick:!0,closeOnEsc:!0,multipleOpened:!1,vOffset:"auto",hOffset:"auto",fullScreen:!1,overlay:!0,resetOnClose:!1,deepLink:!1,updateHistory:!1,appendTo:"body",additionalOverlayClasses:""}},
92"./js/foundation.slider.js": 93/*!*********************************!*\ 94 !*** ./js/foundation.slider.js ***! 95 \*********************************/function(e,t,n){n.r(t),n.d(t,{Slider:function(){return y}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),o=n(/*! ./foundation.util.motion */"./js/foundation.util.motion.js"),s=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),l=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),c=n(/*! ./foundation.util.touch */"./js/foundation.util.touch.js"),u=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,p(i.key),i)}}function p(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=d(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==d(t)?t:t+""}function m(e,t,n){return t=g(t),function(e,t){if(t&&("object"==d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(){return h(this,t),m(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),function(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Slider",this.initialized=!1,c.Touch.init(r()),u.Triggers.init(r()),this._init(),a.Keyboard.register("Slider",{ltr:{ARROW_RIGHT:"increase",ARROW_UP:"increase",ARROW_DOWN:"decrease",ARROW_LEFT:"decrease",SHIFT_ARROW_RIGHT:"increaseFast",SHIFT_ARROW_UP:"increaseFast",SHIFT_ARROW_DOWN:"decreaseFast",SHIFT_ARROW_LEFT:"decreaseFast",HOME:"min",END:"max"},rtl:{ARROW_LEFT:"increase",ARROW_RIGHT:"decrease",SHIFT_ARROW_LEFT:"increaseFast",SHIFT_ARROW_RIGHT:"decreaseFast"}})}},{key:"_init",value:function(){this.inputs=this.$element.find("input"),this.handles=this.$element.find("[data-slider-handle]"),this.$handle=this.handles.eq(0),this.$input=this.inputs.length?this.inputs.eq(0):r()("#".concat(this.$handle.attr("aria-controls"))),this.$fill=this.$element.find("[data-slider-fill]").css(this.options.vertical?"height":"width",0),(this.options.disabled||this.$element.hasClass(this.options.disabledClass))&&(this.options.disabled=!0,this.$element.addClass(this.options.disabledClass)),this.inputs.length||(this.inputs=r()().add(this.$input),this.options.binding=!0),this._setInitAttr(0),this.handles[1]&&(this.options.doubleSided=!0,this.$handle2=this.handles.eq(1),this.$input2=this.inputs.length>1?this.inputs.eq(1):r()("#".concat(this.$handle2.attr("aria-controls"))),this.inputs[1]||(this.inputs=this.inputs.add(this.$input2)),this._setInitAttr(1)),this.setHandles(),this._events(),this.initialized=!0}},{key:"setHandles",value:function(){var e=this;this.handles[1]?this._setHandlePos(this.$handle,this.inputs.eq(0).val(),(function(){e._setHandlePos(e.$handle2,e.inputs.eq(1).val())})):this._setHandlePos(this.$handle,this.inputs.eq(0).val())}},{key:"_reflow",value:function(){this.setHandles()}},{key:"_pctOfBar",value:function(e){var t=b(e-this.options.start,this.options.end-this.options.start);switch(this.options.positionValueFunction){case"pow":t=this._logTransform(t);break;case"log":t=this._powTransform(t)}return t.toFixed(2)}},{key:"_value",value:function(e){switch(this.options.positionValueFunction){case"pow":e=this._powTransform(e);break;case"log":e=this._logTransform(e)}return this.options.vertical?parseFloat(this.options.end)+e*(this.options.start-this.options.end):(this.options.end-this.options.start)*e+parseFloat(this.options.start)}},{key:"_logTransform",value:function(e){return function(e,t){return Math.log(t)/Math.log(e)}(this.options.nonLinearBase,e*(this.options.nonLinearBase-1)+1)}},{key:"_powTransform",value:function(e){return(Math.pow(this.options.nonLinearBase,e)-1)/(this.options.nonLinearBase-1)}},{key:"_setHandlePos",value:function(e,t,n){if(!this.$element.hasClass(this.options.disabledClass)){(t=parseFloat(t))<this.options.start?t=this.options.start:t>this.options.end&&(t=this.options.end);var i=this.options.doubleSided;
95if(i)if(0===this.handles.index(e)){var r=parseFloat(this.$handle2.attr("aria-valuenow"));t=t>=r?r-this.options.step:t}else{var a=parseFloat(this.$handle.attr("aria-valuenow"));t=t<=a?a+this.options.step:t}var s=this,l=this.options.vertical,c=l?"height":"width",u=l?"top":"left",d=e[0].getBoundingClientRect()[c],h=this.$element[0].getBoundingClientRect()[c],f=this._pctOfBar(t),p=(100*b((h-d)*f,h)).toFixed(this.options.decimal);t=parseFloat(t.toFixed(this.options.decimal));var m={};if(this._setValues(e,t),i){var g,v=0===this.handles.index(e),y=Math.floor(100*b(d,h));if(v)m[u]="".concat(p,"%"),g=parseFloat(this.$handle2[0].style[u])-p+y,n&&"function"==typeof n&&n();else{var _=parseFloat(this.$handle[0].style[u]);g=p-(isNaN(_)?(this.options.initialStart-this.options.start)/((this.options.end-this.options.start)/100):_)+y}m["min-".concat(c)]="".concat(g,"%")}var w=this.$element.data("dragging")?1e3/60:this.options.moveTime;(0,o.Move)(w,e,(function(){isNaN(p)?e.css(u,"".concat(100*f,"%")):e.css(u,"".concat(p,"%")),s.options.doubleSided?s.$fill.css(m):s.$fill.css(c,"".concat(100*f,"%"))})),this.initialized&&(this.$element.one("finished.zf.animate",(function(){s.$element.trigger("moved.zf.slider",[e])})),clearTimeout(s.timeout),s.timeout=setTimeout((function(){s.$element.trigger("changed.zf.slider",[e])}),s.options.changedDelay))}}},{key:"_setInitAttr",value:function(e){var t=0===e?this.options.initialStart:this.options.initialEnd,n=this.inputs.eq(e).attr("id")||(0,s.GetYoDigits)(6,"slider");this.inputs.eq(e).attr({id:n,max:this.options.end,min:this.options.start,step:this.options.step}),this.inputs.eq(e).val(t),this.handles.eq(e).attr({role:"slider","aria-controls":n,"aria-valuemax":this.options.end,"aria-valuemin":this.options.start,"aria-valuenow":t,"aria-orientation":this.options.vertical?"vertical":"horizontal",tabindex:0})}},{key:"_setValues",value:function(e,t){var n=this.options.doubleSided?this.handles.index(e):0;this.inputs.eq(n).val(t),e.attr("aria-valuenow",t)}},{key:"_handleEvent",value:function(e,t,n){var i;if(n)i=this._adjustValue(null,n);else{e.preventDefault();var a=this.options.vertical,o=a?"height":"width",l=a?"top":"left",c=a?e.pageY:e.pageX,u=this.$element[0].getBoundingClientRect()[o],d=a?r()(window).scrollTop():r()(window).scrollLeft(),h=this.$element.offset()[l];e.clientY===e.pageY&&(c+=d);var f,p=c-h,m=b(f=p<0?0:p>u?u:p,u);i=this._value(m),(0,s.rtl)()&&!this.options.vertical&&(i=this.options.end-i),i=this._adjustValue(null,i),t||(t=_(this.$handle,l,f,o)<=_(this.$handle2,l,f,o)?this.$handle:this.$handle2)}this._setHandlePos(t,i)}},{key:"_adjustValue",value:function(e,t){var n,i,r,a=this.options.step,o=parseFloat(a/2);return 0===(i=(n=e?parseFloat(e.attr("aria-valuenow")):t)>=0?n%a:a+n%a)?n:n=n>=(r=n-i)+o?r+a:r}},{key:"_events",value:function(){this._eventsForHandle(this.$handle),this.handles[1]&&this._eventsForHandle(this.$handle2)}},{key:"_eventsForHandle",value:function(e){var t,n=this,i=function(e){var t=n.inputs.index(r()(this));n._handleEvent(e,n.handles.eq(t),r()(this).val())};if(this.inputs.off("keyup.zf.slider").on("keyup.zf.slider",(function(e){13===e.keyCode&&i.call(this,e)})),this.inputs.off("change.zf.slider").on("change.zf.slider",i),this.options.clickSelect&&this.$element.off("click.zf.slider").on("click.zf.slider",(function(e){if(n.$element.data("dragging"))return!1;r()(e.target).is("[data-slider-handle]")||(n.options.doubleSided?n._handleEvent(e):n._handleEvent(e,n.$handle))})),this.options.draggable){this.handles.addTouch();var o=r()("body");e.off("mousedown.zf.slider").on("mousedown.zf.slider",(function(i){e.addClass("is-dragging"),n.$fill.addClass("is-dragging"),n.$element.data("dragging",!0),t=r()(i.currentTarget),o.on("mousemove.zf.slider",(function(e){e.preventDefault(),n._handleEvent(e,t)})).on("mouseup.zf.slider",(function(i){n._handleEvent(i,t),e.removeClass("is-dragging"),n.$fill.removeClass("is-dragging"),n.$element.data("dragging",!1),o.off("mousemove.zf.slider mouseup.zf.slider")}))})).on("selectstart.zf.slider touchmove.zf.slider",(function(e){e.preventDefault()}))}e.off("keydown.zf.slider").on("keydown.zf.slider",(function(t){var i,o=r()(this),s=(n.options.doubleSided&&n.handles.index(o),parseFloat(e.attr("aria-valuenow")));a.Keyboard.handleKey(t,"Slider",{decrease:function(){i=s-n.options.step},increase:function(){i=s+n.options.step},decreaseFast:function(){i=s-10*n.options.step},increaseFast:function(){i=s+10*n.options.step},min:function(){i=n.options.start},max:function(){i=n.options.end},handled:function(){t.preventDefault(),n._setHandlePos(o,i)}})}))}},{key:"_destroy",value:function(){this.handles.off(".zf.slider"),this.inputs.off(".zf.slider"),this.$element.off(".zf.slider"),clearTimeout(this.timeout)}}])}(l.Plugin);function b(e,t){return e/t}function _(e,t,n,i){return Math.abs(e.position()[t]+e[i]()/2-n)}y
vendor: 291 bytes, line 95
95.defaults={start:0,end:100,step:1,initialStart:0,initialEnd:100,binding:!1,clickSelect:!0,vertical:!1,draggable:!0,disabled:!1,doubleSided:!1,decimal:2,moveTime:200,disabledClass:"disabled",invertVertical:!1,changedDelay:500,nonLinearBase:5,positionValueFunction:"linear"}},"./js/foundation.
95smoothScroll.js": 96/*!***************************************!*\ 97 !*** ./js/foundation.smoothScroll.js ***! 98 \***************************************/function(e,t,n){n.r(t),n.d(t,{SmoothScroll:function(){return f}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js");function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,c(i.key),i)}}function c(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var f=function(e){function t(){return s(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),function(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="SmoothScroll",this._init()}},{key:"_init",value:function(){var e=this.$element[0].id||(0,a.GetYoDigits)(6,"smooth-scroll");this.$element.attr({id:e}),this._events()}},{key:"_events",value:function(){this._linkClickListener=this._handleLinkClick.bind(this),this.$element.on("click.zf.smoothScroll",this._linkClickListener),this.$element.on("click.zf.smoothScroll",'a[href^="#"]',this._linkClickListener)}},{key:"_handleLinkClick",value:function(e){var n=this;if(r()(e.currentTarget).is('a[href^="#"]')){var i=e.currentTarget.getAttribute("href");this._inTransition=!0,t.scrollToLoc(i,this.options,(function(){n._inTransition=!1})),e.preventDefault()}}},{key:"_destroy",value:function(){this.$element.off("click.zf.smoothScroll",this._linkClickListener),this.$element.off("click.zf.smoothScroll",'a[href^="#"]',this._linkClickListener)}}],[{key:"scrollToLoc",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.defaults,i=arguments.length>2?arguments[2]:void 0,a=r()(e);if(!a.length)return!1;var o=Math.round(a.offset().top-n.threshold/2-n.offset);r()("html, body").stop(!0).animate({scrollTop:o},n.animationDuration,n.animationEasing,(function(){"function"==typeof i&&i()}))}}])}(n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js").Plugin);f.defaults={animationDuration:500,animationEasing:"linear",threshold:50,offset:0}},
98"./js/foundation.sticky.js": 99/*!*********************************!*\ 100 !*** ./js/foundation.sticky.js ***! 101 \*********************************/function(e,t,n){n.r(t),n.d(t,{Sticky:function(){return g}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),l=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return u(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Sticky",l.Triggers.init(r()),this._init()}},{key:"_init",value:function(){s.MediaQuery._init();var e=this.$element.parent("[data-sticky-container]"),t=this.$element[0].id||(0,o.GetYoDigits)(6,"sticky"),n=this;e.length?this.$container=e:(this.wasWrapped=!0,this.$element.wrap(this.options.container),this.$container=this.$element.parent()),this.$container.addClass(this.options.containerClass),this.$element.addClass(this.options.stickyClass).attr({"data-resize":t,"data-mutate":t}),""!==this.options.anchor&&r()("#"+n.options.anchor).attr({"data-mutate":t}),this.scrollCount=this.options.checkEvery,this.isStuck=!1,this.onLoadListener=(0,o.onLoad)(r()(window),(function(){n.containerHeight="none"===n.$element.css("display")?0:n.$element[0].getBoundingClientRect().height,n.$container.css("height",n.containerHeight),n.elemHeight=n.containerHeight,""!==n.options.anchor?n.$anchor=r()("#"+n.options.anchor):n._parsePoints(),n._setSizes((function(){var e=window.pageYOffset;n._calc(!1,e),n.isStuck||n._removeSticky(!(e>=n.topPoint))})),n._events(t.split("-").reverse().join("-"))}))}},{key:"_parsePoints",value:function(){for(var e=[""===this.options.topAnchor?1:this.options.topAnchor,""===this.options.btmAnchor?document.documentElement.scrollHeight:this.options.btmAnchor],t={},n=0,i=e.length;n<i&&e[n];n++){var a;if("number"==typeof e[n])a=e[n];else{var o=e[n].split(":"),s=r()("#".concat(o[0]));a=s.offset().top,o[1]&&"bottom"===o[1].toLowerCase()&&(a+=s[0].getBoundingClientRect().height)}t[n]=a}this.points=t}},{key:"_events",value:function(e){var t=this,n=this.scrollListener="scroll.zf.".concat(e);this.isOn||(this.canStick&&(this.isOn=!0,r()(window).off(n).on(n,(function(){0===t.scrollC
101ount?(t.scrollCount=t.options.checkEvery,t._setSizes((function(){t._calc(!1,window.pageYOffset)}))):(t.scrollCount--,t._calc(!1,window.pageYOffset))}))),this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",(function(){t._eventsHandler(e)})),this.$element.on("mutateme.zf.trigger",(function(){t._eventsHandler(e)})),this.$anchor&&this.$anchor.on("mutateme.zf.trigger",(function(){t._eventsHandler(e)})))}},{key:"_eventsHandler",value:function(e){var t=this,n=this.scrollListener="scroll.zf.".concat(e);t._setSizes((function(){t._calc(!1),t.canStick?t.isOn||t._events(e):t.isOn&&t._pauseListeners(n)}))}},{key:"_pauseListeners",value:function(e){this.isOn=!1,r()(window).off(e),this.$element.trigger("pause.zf.sticky")}},{key:"_calc",value:function(e,t){if(e&&this._setSizes(),!this.canStick)return this.isStuck&&this._removeSticky(!0),!1;t||(t=window.pageYOffset),t>=this.topPoint?t<=this.bottomPoint?this.isStuck||this._setSticky():this.isStuck&&this._removeSticky(!1):this.isStuck&&this._removeSticky(!0)}},{key:"_setSticky",value:function(){var e=this,t=this.options.stickTo,n="top"===t?"marginTop":"marginBottom",i="top"===t?"bottom":"top",r={};r[n]="".concat(this.options[n],"em"),r[t]=0,r[i]="auto",this.isStuck=!0,this.$element.removeClass("is-anchored is-at-".concat(i)).addClass("is-stuck is-at-".concat(t)).css(r).trigger("sticky.zf.stuckto:".concat(t)),this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",(function(){e._setSizes()}))}},{key:"_removeSticky",value:function(e){var t=this.options.stickTo,n="top"===t,i={},r=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight,a=e?"top":"bottom";i[n?"marginTop":"marginBottom"]=0,i.bottom="auto",i.top=e?0:r,this.isStuck=!1,this.$element.removeClass("is-stuck is-at-".concat(t)).addClass("is-anchored is-at-".concat(a)).css(i).trigger("sticky.zf.unstuckfrom:".concat(a))}},{key:"_setSizes",value:function(e){this.canStick=s.MediaQuery.is(this.options.stickyOn),this.canStick||e&&"function"==typeof e&&e();var t=this.$container[0].getBoundingClientRect().width,n=window.getComputedStyle(this.$container[0]),i=parseInt(n["padding-left"],10),r=parseInt(n["padding-right"],10);if(this.$anchor&&this.$anchor.length?this.anchorHeight=this.$anchor[0].getBoundingClientRect().height:this._parsePoints(),this.$element.css({"max-width":"".concat(t-i-r,"px")}),this.options.dynamicHeight||!this.containerHeight){var a=this.$element[0].getBoundingClientRect().height||this.containerHeight;a="none"===this.$element.css("display")?0:a,this.$container.css("height",a),this.containerHeight=a}if(this.elemHeight=this.containerHeight,!this.isStuck&&this.$element.hasClass("is-at-bottom")){var o=(this.points?this.points[1]-this.$container.offset().top:this.anchorHeight)-this.elemHeight;this.$element.css("top",o)}this._setBreakPoints(this.containerHeight,(function(){e&&"function"==typeof e&&e()}))}},{key:"_setBreakPoints",value:function(e,t){if(!this.canStick){if(!t||"function"!=typeof t)return!1;t()}var n=v(this.options.marginTop),i=v(this.options.marginBottom),r=this.points?this.points[0]:this.$anchor.offset().top,a=this.points?this.points[1]:r+this.anchorHeight,o=window.innerHeight;"top"===this.options.stickTo?(r-=n,a-=e+n):"bottom"===this.options.stickTo&&(r-=o-(e+i),a-=o-i),this.topPoint=r,this.bottomPoint=a,t&&"function"==typeof t&&t()}},{key:"_destroy",value:function(){this._removeSticky(!0),this.$element.removeClass("".concat(this.options.stickyClass," is-anchored is-at-top")).css({height:"",top:"",bottom:"","max-width":""}).off("resizeme.zf.trigger").off("mutateme.zf.trigger"),this.$anchor&&this.$anchor.length&&this.$anchor.off("change.zf.sticky"),this.scrollListener&&r()(window).off(this.scrollListener),this.onLoadListener&&r()(window).off(this.onLoadListener),this.wasWrapped?this.$element.unwrap():this.$container.removeClass(this.options.containerClass).css({height:""})}}])&&d(n.prototype,i),a&&d(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);function v(e){return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*e}
101g.defaults={container:"<div data-sticky-container></div>",stickTo:"top",anchor:"",topAnchor:"",btmAnchor:"",marginTop:1,marginBottom:1,stickyOn:"medium",stickyClass:"sticky",containerClass:"sticky-container",dynamicHeight:!0,checkEvery:-1}},
101"./js/foundation.tabs.js": 102/*!*******************************!*\ 103 !*** ./js/foundation.tabs.js ***! 104 \*******************************/function(e,t,n){n.r(t),n.d(t,{Tabs:function(){return g}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),o=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),s=n(/*! ./foundation.util.keyboard */"./js/foundation.util.keyboard.js"),l=n(/*! ./foundation.util.imageLoader */"./js/foundation.util.imageLoader.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return u(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Tabs",this._init(),s.Keyboard.register("Tabs",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"previous",ARROW_DOWN:"next",ARROW_LEFT:"previous"})}},{key:"_init",value:function(){var e=this,t=this;if(this._isInitializing=!0,this.$element.attr({role:"tablist"}),this.$tabTitles=this.$element.find(".".concat(this.options.linkClass)),this.$tabContent=r()('[data-tabs-content="'.concat(this.$element[0].id,'"]')),this.$tabTitles.each((function(){var e=r()(this),n=e.find("a"),i=e.hasClass("".concat(t.options.linkActiveClass)),a=n.attr("data-tabs-target")||n[0].hash.slice(1),s=n[0].id?n[0].id:"".concat(a,"-label"),l=r()("#".concat(a));e.attr({role:"presentation"}),n.attr({role:"tab","aria-controls":a,"aria-selected":i,id:s,tabindex:i?"0":"-1"}),l.attr({role:"tabpanel","aria-labelledby":s}),i&&(t._initialAnchor="#".concat(a)),i||l.attr("aria-hidden","true"),i&&t.options.autoFocus&&(t.onLoadListener=(0,o.onLoad)(r()(window),(function(){r()("html, body").animate({scrollTop:e.offset().top},t.options.deepLinkSmudgeDelay,(function(){n.focus()}))})))})),this.options.matchHeight){var n=this.$tabContent.find("img");n.length?(0,l.onImagesLoaded)(n,this._setHeight.bind(this)):this._setHeight()}this._checkDeepLink=function(){var t=window.location.hash;if(!t.length){if(e._isInitializing)return;e._initialAnchor&&(t=e._initialAnchor)}var n=t.indexOf("#")>=0?t.slice(1):t,i=n&&r()("#".concat(n)),a=t&&e.$element.find('[href$="'.concat(t,'"],[data-tabs-target="').concat(n,'"]')).first();if(i.length&&a.length){if(i&&i.length&&a&&a.length?e.selectTab(i,!0):e._collapse(),e.options.deepLinkSmudge){var o=e.$element.offset();r()("html, body").animate({scrollTop:o.top-e.options.deepLinkSmudgeOffset},e.options.deepLinkSmudgeDelay)}e.$element.trigger("deeplink.zf.tabs",[a,i])}},this.options.deepLink&&this._checkDeepLink(),this._events(),this._isInitializing=!1}},{key:"_events",value:function(){this._addKeyHandler(),this._addClickHandler(),this._setHeightMqHandler=null,this.options.matchHeight&&(this._setHeightMqHandler=this._setHeight.bind(this),r()(window).on("changed.zf.mediaquery",this._setHeightMqHandler)),this.options.deepLink&&r()(window).on("hashchange",this._checkDeepLink)}},{key:"_addClickHandler",value:function(){var e=this;this.$element.off("click.zf.tabs").on("click.zf.tabs",".".concat(this.options.linkClass),(function(t){t.preventDefault(),e._handleTabChange(r()(this))}))}},{key:"_addKeyHandler",value:function(){var e=this;this.$tabTitles.off("keydown.zf.tabs").on("keydown.zf.tabs",(function(t){if(9!==t.which){var n,i,a=r()(this),o=a.parent("ul").children("li");o.each((function(t){r()(this).is(a)&&(e.options.wrapOnKeys?(n=0===t?o.last():o.eq(t-1),i=t===o.length-1?o.first():o.eq(t+1)):(n=o.eq(Math.max(0,t-1)),i=o.eq(Math.min(t+1,o.length-1))))})),s.Keyboard.handleKey(t,"Tabs",{open:function(){a.find('[role="tab"]').focus(),e._handleTabChange(a)},previous:function(){n.find('[role="tab"]').focus(),e._handleTabChange(n)},next:function(){i.find('[role="tab"]').focus(),e._handleTabChange(i)},handled:function(){t.preventDefault()}})}}))}},{key:"_handleTabChange",value:function(e,t){if(e.hasClass("".concat(this.options.linkActiveClass)))this.options.activeCollapse&&this._collapse();else{var n=this.$element.find(".".concat(this.options.linkClass,".").concat(this.options.linkActiveClass)),i=e.find('[role="tab"]'),r=i.attr("data-tabs-target"),a=r&&r.length?"#".concat(r):i[0].hash,o=this.$tabContent.find(a);this._collapseTab(n),this._openTab(e),this.options.deepLink&&!t&&(this.options.updateHistory?history.pushState({},"",location.pathname+location.search+a):history.replaceState({},"",location.pathname+location.search+a)),this.$element.trigger("change.zf.tabs",[e,o]),o.find("[data-mutate]").trigger("mutateme.zf.trigger")}}},{key:"_openTab",value:function(e){var t=e.find('[role="tab"]'),n=t.attr("data-tabs-target")||t[0].hash.slice(1),i=this.$tabContent.find("#".concat(n));e.addClass("".concat(this.options.linkActiveClass)),t.attr({"aria-selected":"true",tabindex:"0"}),i.addClass("".concat(this.options.panelActiveClass)).removeAttr("aria-hidden")}},{key:"_collapseTab",value:function(e){var t=e.removeClass("".concat(this.options.linkActiveClass)).find('[role="tab"]').attr({"aria-selected":"false",tabindex:-1});r()("#".concat(t.attr("aria-controls"))).removeClass("".concat(this.options.panelActiveClass)).attr({"aria-hidden":"true"})}},{key:"_collapse",value:function(){var e=this.$element.find(".".concat(this.options.linkClass,".").concat(this.options.linkActiveClass));e.length&&(this._collapseTab(e),this.$element.trigger("collapse.zf.tabs",[e]))}},{key:"selectTab",value:function(e,t){var n,i;(n="object"===c(e)?e[0].id:e).indexOf("#")<0?i="#".concat(n):(i=n,n=n.slice(1));var r=this.$tabTitles.has('[href$="'.concat(i,'"],[data-tabs-target="').concat(n,'"]')).first();this._handleTabChange(r,t)}},{key:"_setHeight",value:function(){var e=0,t=this;this.$tabContent&&this.$tabContent.find(".".concat(this.options.panelClass)).css("min-height","").each((function(){var n=r()(this),i=n.hasClass("".concat(t.options.panelActiveClass));i||n.css({visibility:"hidden",display:"block"});var a=this.getBoundingClientRect().height;i||n.css({visibility:"",display:""}),e=a>e?a:e})).css("min-height","".concat(e,"px"))}},{key:"_destroy",value:function(){this.$element.find(".".concat(this.options.linkClass)).off(".zf.tabs").hide().end().find(".".concat(this.options.panelClass)).hide(),this.options.matchHeight&&null!=this._setHeightMqHandler&&r()(window).off("changed.zf.mediaquery",this._setHeightMqHandler),this.options.deepLink&&r()(window).off("hashchange",this._checkDeepLink),this.onLoadListener&&r()(window).off(this.onLoadListener)}}
104])&&d(n.prototype,i),a&&d(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a}(a.Plugin);g.defaults={deepLink:!1,deepLinkSmudge:!1,deepLinkSmudgeDelay:300,deepLinkSmudgeOffset:0,updateHistory:!1,autoFocus:!1,wrapOnKeys:!0,matchHeight:!1,activeCollapse:!1,linkClass:"tabs-title",linkActiveClass:"is-active",panelClass:"tabs-panel",panelActiveClass:"is-active"}},
104"./js/foundation.toggler.js": 105/*!**********************************!*\ 106 !*** ./js/foundation.toggler.js ***! 107 \**********************************/function(e,t,n){n.r(t),n.d(t,{Toggler:function(){return g}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.util.motion */"./js/foundation.util.motion.js"),o=n(/*! ./foundation.core.plugin */"./js/foundation.core.plugin.js"),s=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),l=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,h(i.key),i)}}function h(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var g=function(e){function t(){return u(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,e.data(),n),this.className="",this.className="Toggler",l.Triggers.init(r()),this._init(),this._events()}},{key:"_init",value:function(){var e,t=this.$element[0].id,n=r()('[data-open~="'.concat(t,'"], [data-close~="').concat(t,'"], [data-toggle~="').concat(t,'"]'));if(this.options.animate)e=this.options.animate.split(" "),this.animationIn=e[0],this.animationOut=e[1]||null,n.attr("aria-expanded",!this.$element.is(":hidden"));else{if("string"!=typeof(e=this.options.toggler)||!e.length)throw new Error("The 'toggler' option containing the target class is required, got \"".concat(e,'"'));this.className="."===e[0]?e.slice(1):e,n.attr("aria-expanded",this.$element.hasClass(this.className))}n.each((function(e,n){var i=r()(n),a=i.attr("aria-controls")||"";new RegExp("\\b".concat((0,s.RegExpEscape)(t),"\\b")).test(a)||i.attr("aria-controls",a?"".concat(a," ").concat(t):t)}))}},{key:"_events",value:function(){this.$element.off("toggle.zf.trigger").on("toggle.zf.trigger",this.toggle.bind(this))}},{key:"toggle",value:function(){this[this.options.animate?"_toggleAnimate":"_toggleClass"]()}},{key:"_toggleClass",value:function(){this.$element.toggleClass(this.className);var e=this.$element.hasClass(this.className);e?this.$element.trigger("on.zf.toggler"):this.$element.trigger("off.zf.toggler"),this._updateARIA(e),this.$element.find("[data-mutate]").trigger("mutateme.zf.trigger")}},{key:"_toggleAnimate",value:function(){var e=this;this.$element.is(":hidden")?a.Motion.animateIn(this.$element,this.animationIn,(function(){e._updateARIA(!0),this.trigger("on.zf.toggler"),this.find("[data-mutate]").trigger("mutateme.zf.trigger")})):a.Motion.animateOut(this.$element,this.animationOut,(function(){e._updateARIA(!1),this.trigger("off.zf.toggler"),this.find("[data-mutate]").trigger("mutateme.zf.trigger")}))}},{key:"_updateARIA",value:function(e){var t=this.$element[0].id;r()('[data-open="'.concat(t,'"], [data-close="').concat(t,'"], [data-toggle="').concat(t,'"]')).attr({"aria-expanded":!!e})}},{key:"_destroy",value:function(){this.$element.off(".zf.toggler")}}
107])&&d(n.prototype,i),o&&d(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(o.Plugin);g.defaults={toggler:void 0,animate:!1}},
107"./js/foundation.tooltip.js": 108/*!**********************************!*\ 109 !*** ./js/foundation.tooltip.js ***! 110 \**********************************/function(e,t,n){n.r(t),n.d(t,{Tooltip:function(){return y}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),o=n(/*! ./foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),s=n(/*! ./foundation.util.triggers */"./js/foundation.util.triggers.js");function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,d(i.key),i)}}function d(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function h(e,t,n){return t=g(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function f(e,t,n,i){var r=p(g(1&i?e.prototype:e),t,n);return 2&i&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function p(){return(p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=m(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function m(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=g(e)););return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(){return c(this,t),h(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(i=[{key:"_setup",value:function(e,n){this.$element=e,this.options=r().extend({},t.defaults,this.$element.data(),n),this.className="Tooltip",this.isActive=!1,this.isClick=!1,s.Triggers.init(r()),this._init()}},{key:"_init",value:function(){o.MediaQuery._init();var e=this.$element.attr("aria-describedby")||(0,a.GetYoDigits)(6,"tooltip");this.options.tipText=this.options.tipText||this.$element.attr("title"),this.template=this.options.template?r()(this.options.template):this._buildTemplate(e),this.options.allowHtml?this.template.appendTo(document.body).html(this.options.tipText).hide():this.template.appendTo(document.body).text(this.options.tipText).hide(),this.$element.attr({title:"","aria-describedby":e,"data-yeti-box":e,"data-toggle":e,"data-resize":e}).addClass(this.options.triggerClass),f(t,"_init",this,3)([]),this._events()}},{key:"_getDefaultPosition",value:function(){var e=this.$element[0].className;this.$element[0]instanceof SVGElement&&(e=e.baseVal);var t=e.match(/\b(top|left|right|bottom)\b/g);return t?t[0]:"top"}},{key:"_getDefaultAlignment",value:function(){return"center"}},{key:"_getHOffset",value:function(){return"left"===this.position||"right"===this.position?this.options.hOffset+this.options.tooltipWidth:this.options.hOffset}},{key:"_getVOffset",value:function(){return"top"===this.position||"bottom"===this.position?this.options.vOffset+this.options.tooltipHeight:this.options.vOffset}},{key:"_buildTemplate",value:function(e){var t="".concat(this.options.tooltipClass," ").concat(this.options.templateClasses).trim();return r()("<div></div>").addClass(t).attr({role:"tooltip","aria-hidden":!0,"data-is-active":!1,"data-is-focus":!1,id:e})}},{key:"_setPosition",value:function(){f(t,"_setPosition",this,3)([this.$element,this.template])}},{key:"show",value:function(){if("all"!==this.options.showOn&&!o.MediaQuery.is(this.options.showOn))return!1;this.template.css("visibility","hidden").show(),this._setPosition(),this.template.removeClass("top bottom left right").addClass(this.position),this.template.removeClass("align-top align-bottom align-left align-right al
110ign-center").addClass("align-"+this.alignment),this.$element.trigger("closeme.zf.tooltip",this.template.attr("id")),this.template.attr({"data-is-active":!0,"aria-hidden":!1}),this.isActive=!0,this.template.stop().hide().css("visibility","").fadeIn(this.options.fadeInDuration,(function(){})),this.$element.trigger("show.zf.tooltip")}},{key:"hide",value:function(){var e=this;this.template.stop().attr({"aria-hidden":!0,"data-is-active":!1}).fadeOut(this.options.fadeOutDuration,(function(){e.isActive=!1,e.isClick=!1})),this.$element.trigger("hide.zf.tooltip")}},{key:"_events",value:function(){var e=this,t="ontouchstart"in window||void 0!==window.ontouchstart,n=!1;t&&this.options.disableForTouch||(this.options.disableHover||this.$element.on("mouseenter.zf.tooltip",(function(){e.isActive||(e.timeout=setTimeout((function(){e.show()}),e.options.hoverDelay))})).on("mouseleave.zf.tooltip",(0,a.ignoreMousedisappear)((function(){clearTimeout(e.timeout),(!n||e.isClick&&!e.options.clickOpen)&&e.hide()}))),t&&this.$element.on("tap.zf.tooltip touchend.zf.tooltip",(function(){e.isActive?e.hide():e.show()})),this.options.clickOpen?this.$element.on("mousedown.zf.tooltip",(function(){e.isClick||(e.isClick=!0,!e.options.disableHover&&e.$element.attr("tabindex")||e.isActive||e.show())})):this.$element.on("mousedown.zf.tooltip",(function(){e.isClick=!0})),this.$element.on({"close.zf.trigger":this.hide.bind(this)}),this.$element.on("focus.zf.tooltip",(function(){if(n=!0,e.isClick)return e.options.clickOpen||(n=!1),!1;e.show()})).on("focusout.zf.tooltip",(function(){n=!1,e.isClick=!1,e.hide()})).on("resizeme.zf.trigger",(function(){e.isActive&&e._setPosition()})))}},{key:"toggle",value:function(){this.isActive?this.hide():this.show()}},{key:"_destroy",value:function(){this.$element.attr("title",this.template.text()).off(".zf.trigger .zf.tooltip").removeClass(this.options.triggerClass).removeClass("top right left bottom").removeAttr("aria-describedby data-disable-hover data-resize data-toggle data-tooltip data-yeti-box"),this.template.remove()}}])&&u(n.prototype,i),l&&u(n,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,l}(n(/*! ./foundation.positionable */"./js/foundation.positionable.js").Positionable);y.defaults={hoverDelay:200,fadeInDuration:150,fadeOutDuration:150,disableHover:!1,disableForTouch:!1,templateClasses:"",tooltipClass:"tooltip",triggerClass:"has-tip",showOn:"small",template:"",tipText:"",touchCloseText:"Tap to close.",clickOpen:!0,position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!1,vOffset:0,hOffset:0,tooltipHeight:14,tooltipWidth:12,allowHtml:!1}},
vendor: 1,984 bytes, lines 110-113
110"./js/foundation.util.box.js": 111/*!***********************************!*\ 112 !*** ./js/foundation.util.box.js ***! 113 \***********************************/function(e,t,n){n.r(t),n.d(t,{Box:function(){return i}});var i={ImNotTouchingYou:function(e,t,n,i,a){return 0===r(e,t,n,i,a)},OverlapArea:r,GetDimensions:a,GetExplicitOffsets:function(e,t,n,i,r,o,s){var l,c,u=a(e),d=t?a(t):null;if(null!==d){switch(n){case"top":l=d.offset.top-(u.height+r);break;case"bottom":l=d.offset.top+d.height+r;break;case"left":c=d.offset.left-(u.width+o);break;case"right":c=d.offset.left+d.width+o}switch(n){case"top":case"bottom":switch(i){case"left":c=d.offset.left+o;break;case"right":c=d.offset.left-u.width+d.width-o;break;case"center":c=s?o:d.offset.left+d.width/2-u.width/2+o}break;case"right":case"left":switch(i){case"bottom":l=d.offset.top-r+d.height-u.height;break;case"top":l=d.offset.top+r;break;case"center":l=d.offset.top+r+d.height/2-u.height/2}}}return{top:l,left:c}}};function r(e,t,n,i,r){var o,s,l,c,u=a(e);if(t){var d=a(t);s=d.height+d.offset.top-(u.offset.top+u.height),o=u.offset.top-d.offset.top,l=u.offset.left-d.offset.left,c=d.width+d.offset.left-(u.offset.left+u.width)}else s=u.windowDims.height+u.windowDims.offset.top-(u.offset.top+u.height),o=u.offset.top-u.windowDims.offset.top,l=u.offset.left-u.windowDims.offset.left,c=u.windowDims.width-(u.offset.left+u.width);return s=r?0:Math.min(s,0),o=Math.min(o,0),l=Math.min(l,0),c=Math.min(c,0),n?l+c:i?o+s:Math.sqrt(o*o+s*s+l*l+c*c)}function a(e){if((e=e.length?e[0]:e)===window||e===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var t=e.getBoundingClientRect(),n=e.parentNode.getBoundingClientRect(),i=document.body.getBoundingClientRect(),r=window.pageYOffset,a=window.pageXOffset;return{width:t.width,height:t.height,offset:{top:t.top+r,left:t.left+a},parentDims:{width:n.width,height:n.height,offset:{top:n.top+r,left:n.left+a}},windowDims:{width:i.width,height:i.height,offset:{top:r,left:a}}}}},
113"./js/foundation.util.imageLoader.js": 114/*!*******************************************!*\ 115 !*** ./js/foundation.util.imageLoader.js ***! 116 \*******************************************/function(e,t,n){n.r(t),n.d(t,{onImagesLoaded:function(){return a}});var i=n(/*! jquery */"jquery"),r=n.n(i);function a(e,t){var n=e.length;function i(){0==--n&&t()}0===n&&t(),e.each((function(){if(this.complete&&void 0!==this.naturalWidth)i();else{var e=new Image,t="load.zf.images error.zf.images";r()(e).one(t,(function e(){r()(this).off(t,e),i()})),e.src=r()(this).attr("src")}}))}},
116"./js/foundation.util.keyboard.js": 117/*!****************************************!*\ 118 !*** ./js/foundation.util.keyboard.js ***! 119 \****************************************/function(e,t,n){n.r(t),n.d(t,{Keyboard:function(){return u}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),o={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",35:"END",36:"HOME",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},s={};function l(e){return!!e&&e.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter((function(){return!(!r()(this).is(":visible")||r()(this).attr("tabindex")<0)})).sort((function(e,t){if(r()(e).attr("tabindex")===r()(t).attr("tabindex"))return 0;var n=parseInt(r()(e).attr("tabindex"),10),i=parseInt(r()(t).attr("tabindex"),10);return void 0===r()(e).attr("tabindex")&&i>0?1:void 0===r()(t).attr("tabindex")&&n>0?-1:0===n&&i>0?1:0===i&&n>0||n<i?-1:n>i?1:void 0}))}function c(e){var t=o[e.which||e.keyCode]||String.fromCharCode(e.which).toUpperCase();return t=t.replace(/\W+/,""),e.shiftKey&&(t="SHIFT_".concat(t)),e.ctrlKey&&(t="CTRL_".concat(t)),e.altKey&&(t="ALT_".concat(t)),t=t.replace(/_$/,"")}var u={keys:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=e[n]);return t}(o),parseKey:c,handleKey:function(e,t,n){var i,o=s[t],l=this.parseKey(e);if(!o)return console.warn("Component not defined!");if(!0!==e.zfIsKeyHandled)if((i=n[(void 0===o.ltr?o:(0,a.rtl)()?r().extend({},o.ltr,o.rtl):r().extend({},o.rtl,o.ltr))[l]])&&"function"==typeof i){var c=i.apply();e.zfIsKeyHandled=!0,(n.handled||"function"==typeof n.handled)&&n.handled(c)}else(n.unhandled||"function"==typeof n.unhandled)&&n.unhandled()},findFocusable:l,register:function(e,t){s[e]=t},trapFocus:function(e){var t=l(e),n=t.eq(0),i=t.eq(-1);e.on("keydown.zf.trapfocus",(function(e){e.target===i[0]&&"TAB"===c(e)?(e.preventDefault(),n.focus()):e.target===n[0]&&"SHIFT_TAB"===c(e)&&(e.preventDefault(),i.focus())}))},releaseFocus:function(e){e.off("keydown.zf.trapfocus")}}},
119"./js/foundation.util.mediaQuery.js": 120/*!******************************************!*\ 121 !*** ./js/foundation.util.mediaQuery.js ***! 122 \******************************************/function(e,t,n){n.r(t),n.d(t,{MediaQuery:function(){return l}});var i=n(/*! jquery */"jquery"),r=n.n(i);function a(e){return(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})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}window.matchMedia||(window.matchMedia=function(){var e=window.styleMedia||window.media;if(!e){var t,n=document.createElement("style"),i=document.getElementsByTagName("script")[0];n.type="text/css",n.id="matchmediajs-test",i?i.parentNode.insertBefore(n,i):document.head.appendChild(n),t="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle,e={matchMedium:function(e){var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}());var l={queries:[],current:"",_init:function(){if(!0===this.isInitialized)return this;this.isInitialized=!0,r()("meta.foundation-mq").length||r()('<meta class="foundation-mq" name="foundation-mq" content>').appendTo(document.head);var e,t,n,i=r()(".foundation-mq").css("font-family");for(var a in n=void 0,n={},e="string"!=typeof(t=i)?n:(t=t.trim().slice(1,-1))?n=t.split("&").reduce((function(e,t){var n=t.replace(/\+/g," ").split("="),i=n[0],r=n[1];return i=decodeURIComponent(i),r=void 0===r?null:decodeURIComponent(r),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]:e[i]=r,e}),{}):n,this.queries=[],e)e.hasOwnProperty(a)&&this.queries.push({name:a,value:"only screen and (min-width: ".concat(e[a],")")});this.current=this._getCurrentSize(),this._watcher()},_reInit:function(){this.isInitialized=!1,this._init()},atLeast:function(e){var t=this.get(e);return!!t&&window.matchMedia(t).matches},only:function(e){return e===this._getCurrentSize()},upTo:function(e){var t=this.next(e);return!t||!this.atLeast(t)},is:function(e){var t=o(e.trim().split(" ").filter((function(e){return!!e.length})),2),n=t[0],i=t[1],r=void 0===i?"":i;if("only"===r)return this.only(n);if(!r||"up"===r)return this.atLeast(n);if("down"===r)return this.upTo(n);throw new Error('\n Invalid breakpoint passed to MediaQuery.is().\n Expected a breakpoint name formatted like "<size> <modifier>", got "'.concat(e,'".\n '))},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){var n=this.queries[t];if(e===n.name)return n.value}return null},next:function(e){var t=this,n=this.queries.findIndex((function(n){return t._getQueryName(n)===e}));if(-1===n)throw new Error('\n Unknown breakpoint "'.concat(e,'" passed to MediaQuery.next().\n Ensure it is present in your Sass "$breakpoints" setting.\n '));var i=this.queries[n+1];return i?i.name:null},_getQueryName:function(e){if("string"==typeof e)return e;if("object"===a(e))return e.name;throw new TypeError('\n Invalid value passed to MediaQuery._getQueryName().\n Expected a breakpoint name (String) or a breakpoint query (Object), got "'.concat(e,'" (').concat(a(e),")\n "))},_getCurrentSize:function(){for(var e,t=0;t<this.queries.length;t++){var n=this.queries[t];window.matchMedia(n.value).matches&&(e=n)}return e&&this._getQueryName(e)},_watcher:function(){var e=this;r()(window).on("resize.zf.trigger",(function(){var t=e._getCurrentSize(),n=e.current;t!==n&&(e.current=t,r()(window).trigger("changed.zf.mediaquery",[t,n]))}))}}},
122"./js/foundation.util.motion.js": 123/*!**************************************!*\ 124 !*** ./js/foundation.util.motion.js ***! 125 \**************************************/function(e,t,n){n.r(t),n.d(t,{Motion:function(){return l},Move:function(){return c}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),o=["mui-enter","mui-leave"],s=["mui-enter-active","mui-leave-active"],l={animateIn:function(e,t,n){u(!0,e,t,n)},animateOut:function(e,t,n){u(!1,e,t,n)}};function c(e,t,n){var i,r,a=null;if(0===e)return n.apply(t),void t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t]);i=window.requestAnimationFrame((function o(s){a||(a=s),r=s-a,n.apply(t),r<e?i=window.requestAnimationFrame(o,t):(window.cancelAnimationFrame(i),t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t]))}))}function u(e,t,n,i){if((t=r()(t).eq(0)).length){var l=e?o[0]:o[1],c=e?s[0]:s[1];u(),t.addClass(n).css("transition","none"),requestAnimationFrame((function(){t.addClass(l),e&&t.show()})),requestAnimationFrame((function(){t[0].offsetWidth,t.css("transition","").addClass(c)})),t.one((0,a.transitionend)(t),(function(){e||t.hide(),u(),i&&i.apply(t)}))}function u(){t[0].style.transitionDuration=0,t.removeClass("".concat(l," ").concat(c," ").concat(n))}}},
125"./js/foundation.util.nest.js": 126/*!************************************!*\ 127 !*** ./js/foundation.util.nest.js ***! 128 \************************************/function(e,t,n){n.r(t),n.d(t,{Nest:function(){return a}});var i=n(/*! jquery */"jquery"),r=n.n(i),a={Feather:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";e.attr("role","menubar"),e.find("a").attr({role:"menuitem"});var n=e.find("li").attr({role:"none"}),i="is-".concat(t,"-submenu"),a="".concat(i,"-item"),o="is-".concat(t,"-submenu-parent"),s="accordion"!==t;n.each((function(){var e=r()(this),n=e.children("ul");if(n.length){if(e.addClass(o),s){var l=e.children("a:first");l.attr({"aria-haspopup":!0,"aria-label":l.attr("aria-label")||l.text()}),"drilldown"===t&&e.attr({"aria-expanded":!1})}n.addClass("submenu ".concat(i)).attr({"data-submenu":"",role:"menubar"}),"drilldown"===t&&n.attr({"aria-hidden":!0})}e.parent("[data-submenu]").length&&e.addClass("is-submenu-item ".concat(a))}))},Burn:function(e,t){var n="is-".concat(t,"-submenu"),i="".concat(n,"-item"),r="is-".concat(t,"-submenu-parent");e.find(">li, > li > ul, .menu, .menu > li, [data-submenu] > li").removeClass("".concat(n," ").concat(i," ").concat(r," is-submenu-item submenu is-active")).removeAttr("data-submenu").css("display","")}}},
vendor: 743 bytes, lines 128-131
128"./js/foundation.util.timer.js": 129/*!*************************************!*\ 130 !*** ./js/foundation.util.timer.js ***! 131 \*************************************/function(e,t,n){function i(e,t,n){var i,r,a=this,o=t.duration,s=Object.keys(e.data())[0]||"timer",l=-1;this.isPaused=!1,this.restart=function(){l=-1,clearTimeout(r),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(r),l=l<=0?o:l,e.data("paused",!1),i=Date.now(),r=setTimeout((function(){t.infinite&&a.restart(),n&&"function"==typeof n&&n()}),l),e.trigger("timerstart.zf.".concat(s))},this.pause=function(){this.isPaused=!0,clearTimeout(r),e.data("paused",!0);var t=Date.now();l-=t-i,e.trigger("timerpaused.zf.".concat(s))}}n.r(t),n.d(t,{Timer:function(){return i}})},
131"./js/foundation.util.touch.js": 132/*!*************************************!*\ 133 !*** ./js/foundation.util.touch.js ***! 134 \*************************************/function(e,t,n){n.r(t),n.d(t,{Touch:function(){return h}});var i=n(/*! jquery */"jquery"),r=n.n(i);function a(e){return(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})(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,s(i.key),i)}}function s(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var l,c,u,d,h={},f=!1,p=!1;function m(e){if(this.removeEventListener("touchmove",g),this.removeEventListener("touchend",m),!p){var t=r().Event("tap",d||e);r()(this).trigger(t)}d=null,f=!1,p=!1}function g(e){if(!0===r().spotSwipe.preventDefault&&e.preventDefault(),f){var t,n=e.touches[0].pageX,i=l-n;p=!0,u=(new Date).getTime()-c,Math.abs(i)>=r().spotSwipe.moveThreshold&&u<=r().spotSwipe.timeThreshold&&(t=i>0?"left":"right"),t&&(e.preventDefault(),m.apply(this,arguments),r()(this).trigger(r().Event("swipe",Object.assign({},e)),t).trigger(r().Event("swipe".concat(t),Object.assign({},e))))}}function v(e){1===e.touches.length&&(l=e.touches[0].pageX,d=e,f=!0,p=!1,c=(new Date).getTime(),this.addEventListener("touchmove",g,{passive:!0===r().spotSwipe.preventDefault}),this.addEventListener("touchend",m,!1))}function y(){this.addEventListener&&this.addEventListener("touchstart",v,{passive:!0})}var b=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="1.0.0",this.enabled="ontouchstart"in document.documentElement,this.preventDefault=!1,this.moveThreshold=75,this.timeThreshold=200,this._init()},(t=[{key:"_init",value:function(){r().event.special.swipe={setup:y},r().event.special.tap={setup:y},r().each(["left","up","down","right"],(function(){r().event.special["swipe".concat(this)]={setup:function(){r()(this).on("swipe",r().noop)}}}))}}])&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();h.setupSpotSwipe=function(){r().spotSwipe=new b(r())},h.setupTouchHandler=function(){r().fn.addTouch=function(){this.each((function(t,n){r()(n).bind("touchstart touchmove touchend touchcancel",(function(t){e(t)}))}));var e=function(e){var t,n=e.changedTouches[0],i={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"}[e.type];"MouseEvent"in window&&"function"==typeof window.MouseEvent?t=new window.MouseEvent(i,{bubbles:!0,cancelable:!0,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY}):(t=document.createEvent("MouseEvent")).initMouseEvent(i,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(t)}}},h.init=function(){void 0===r().spotSwipe&&(h.setupSpotSwipe(r()),h.setupTouchHandler(r()))}},
134"./js/foundation.util.triggers.js": 135/*!****************************************!*\ 136 !*** ./js/foundation.util.triggers.js ***! 137 \****************************************/function(e,t,n){n.r(t),n.d(t,{Triggers:function(){return u}});var i=n(/*! jquery */"jquery"),r=n.n(i),a=n(/*! ./foundation.core.utils */"./js/foundation.core.utils.js"),o=n(/*! ./foundation.util.motion */"./js/foundation.util.motion.js");function s(e){return(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})(e)}var l=function(){for(var e=["WebKit","Moz","O","Ms",""],t=0;t<e.length;t++)if("".concat(e[t],"MutationObserver")in window)return window["".concat(e[t],"MutationObserver")];return!1}(),c=function(e,t){e.data(t).split(" ").forEach((function(n){r()("#".concat(n))["close"===t?"trigger":"triggerHandler"]("".concat(t,".zf.trigger"),[e])}))},u={Listeners:{Basic:{},Global:{}},Initializers:{}};function d(e,t,n){var i,a=Array.prototype.slice.call(arguments,3);r()(window).on(t,(function(){i&&clearTimeout(i),i=setTimeout((function(){n.apply(null,a)}),e||10)}))}u.Listeners.Basic={openListener:function(){c(r()(this),"open")},closeListener:function(){r()(this).data("close")?c(r()(this),"close"):r()(this).trigger("close.zf.trigger")},toggleListener:function(){r()(this).data("toggle")?c(r()(this),"toggle"):r()(this).trigger("toggle.zf.trigger")},closeableListener:function(e){var t=r()(this).data("closable");e.stopPropagation(),""!==t?o.Motion.animateOut(r()(this),t,(function(){r()(this).trigger("closed.zf")})):r()(this).fadeOut().trigger("closed.zf")},toggleFocusListener:function(){var e=r()(this).data("toggle-focus");r()("#".concat(e)).triggerHandler("toggle.zf.trigger",[r()(this)])}},u.Initializers.addOpenListener=function(e){e.off("click.zf.trigger",u.Listeners.Basic.openListener),e.on("click.zf.trigger","[data-open]",u.Listeners.Basic.openListener)},u.Initializers.addCloseListener=function(e){e.off("click.zf.trigger",u.Listeners.Basic.closeListener),e.on("click.zf.trigger","[data-close]",u.Listeners.Basic.closeListener)},u.Initializers.addToggleListener=function(e){e.off("click.zf.trigger",u.Listeners.Basic.toggleListener),e.on("click.zf.trigger","[data-toggle]",u.Listeners.Basic.toggleListener)},u.Initializers.addCloseableListener=function(e){e.off("close.zf.trigger",u.Listeners.Basic.closeableListener),e.on("close.zf.trigger","[data-closeable], [data-closable]",u.Listeners.Basic.closeableListener)},u.Initializers.addToggleFocusListener=function(e){e.off("focus.zf.trigger blur.zf.trigger",u.Listeners.Basic.toggleFocusListener),e.on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",u.Listeners.Basic.toggleFocusListener)},u.Listeners.Global={resizeListener:function(e){l||e.each((function(){r()(this).triggerHandler("resizeme.zf.trigger")})),e.attr("data-events","resize")},scrollListener:function(e){l||e.each((function(){r()(this).triggerHandler("scrollme.zf.trigger")})),e.attr("data-events","scroll")},closeMeListener:function(e,t){var n=e.namespace.split(".")[0];r()("[data-".concat(n,"]")).not('[data-yeti-box="'.concat(t,'"]')).each((function(){var e=r()(this);e.triggerHandler("close.zf.trigger",[e])}))}},u.Initializers.addClosemeListener=function(e){var t=r()("[data-yeti-box]"),n=["dropdown","tooltip","reveal"];if(e&&("string"==typeof e?n.push(e):"object"===s(e)&&"string"==typeof e[0]?n=n.concat(e):console.error("Plugin names must be strings")),t.length){var i=n.map((function(e){return"closeme.zf.".concat(e)})).join(" ");r()(window).off(i).on(i,u.Listeners.Global.closeMeListener)}},u.Initializers.addResizeListener=function(e){var t=r()("[data-resize]");t.length&&d(e,"resize.zf.trigger",u.Listeners.Global.resizeListener,t)},u.Initializers.addScrollListener=function(e){var t=r()("[data-scroll]");t.length&&d(e,"scroll.zf.trigger",u.Listeners.Global.scrollListener,t)},u.Initializers.addMutationEventsListener=function(e){if(!l)return!1;var t=e.find("[data-resize], [data-scroll], [data-mutate]"),n=function(e){var t=r()(e[0].target);switch(e[0].type){case"attributes":"scroll"===t.attr("data-events")&&"data-events"===e[0].attributeName&&t.triggerHandler("scrollme.zf.trigger",[t,window.pageYOffset]),"resize"===t.attr("data-events")&&"data-events"===e[0].attributeName&&t.triggerHandler("resizeme.zf.trigger",[t]),"style"===e[0].attributeName&&(t.closest("[data-mutate]").attr("data-events","mutate"),t.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[t.closest("[data-mutate]")]));break;case"childList":t.closest("[data-mutate]").attr("data-events","mutate"),t.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[t.closest("[data-mutate]")]);break;default:return!1}};if(t.length)for(var i=0;i<=t.length-1;i++)new l(n).observe(t[i],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]})}
137,u.Initializers.addSimpleListeners=function(){var e=r()(document);u.Initializers.addOpenListener(e),u.Initializers.addCloseListener(e),u.Initializers.addToggleListener(e),u.Initializers.addCloseableListener(e),u.Initializers.addToggleFocusListener(e)},u.Initializers.addGlobalListeners=function(){var e=r()(document);u.Initializers.addMutationEventsListener(e),u.Initializers.addResizeListener(250),u.Initializers.addScrollListener(),u.Initializers.addClosemeListener()},u.init=function(e,t){(0,a.onLoad)(r()(window),(function(){!0!==r().triggersInitialized&&(u.Initializers.addSimpleListeners(),u.Initializers.addGlobalListeners(),r().triggersInitialized=!0)})),t&&(t.Triggers=u,t.IHearYou=u.Initializers.addGlobalListeners)}}
137,jquery: 138/*!********************************************************************************************!*\ 139 !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***! 140 \********************************************************************************************/function(t){t.exports=e}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){ 141/*!**********************************!*\ 142 !*** ./js/entries/foundation.js ***! 143 \**********************************/ 144i.r(r),i.d(r,{Abide:function(){return m.Abide},Accordion:function(){return g.Accordion},AccordionMenu:function(){return v.AccordionMenu},Box:function(){return o.Box},CoreUtils:function(){return a},Drilldown:function(){return y.Drilldown},Dropdown:function(){return b.Dropdown},DropdownMenu:function(){return _.DropdownMenu},Equalizer:function(){return w.Equalizer},Foundation:function(){return n.Foundation},Interchange:function(){return T.Interchange},Keyboard:function(){return l.Keyboard},Magellan:function(){return S.Magellan},MediaQuery:function(){return c.MediaQuery},Motion:function(){return u.Motion},Nest:function(){return d.Nest},OffCanvas:function(){return k.OffCanvas},Orbit:function(){return x.Orbit},ResponsiveAccordionTabs:function(){return M.ResponsiveAccordionTabs},ResponsiveMenu:function(){return C.ResponsiveMenu},ResponsiveToggle:function(){return E.ResponsiveToggle},Reveal:function(){return A.Reveal},Slider:function(){return O.Slider},SmoothScroll:function(){return P.SmoothScroll},Sticky:function(){return I.Sticky},Tabs:function(){return L.Tabs},Timer:function(){return h.Timer},Toggler:function(){return D.Toggler},Tooltip:function(){return j.Tooltip},Touch:function(){return f.Touch},Triggers:function(){return p.Triggers},onImagesLoaded:function(){return s.onImagesLoaded}});var e=i(/*! jquery */"jquery"),t=i.n(e),n=i(/*! ../foundation.core */"./js/foundation.core.js"),a=i(/*! ../foundation.core.utils */"./js/foundation.core.utils.js"),o=i(/*! ../foundation.util.box */"./js/foundation.util.box.js"),s=i(/*! ../foundation.util.imageLoader */"./js/foundation.util.imageLoader.js"),l=i(/*! ../foundation.util.keyboard */"./js/foundation.util.keyboard.js"),c=i(/*! ../foundation.util.mediaQuery */"./js/foundation.util.mediaQuery.js"),u=i(/*! ../foundation.util.motion */"./js/foundation.util.motion.js"),d=i(/*! ../foundation.util.nest */"./js/foundation.util.nest.js"),h=i(/*! ../foundation.util.timer */"./js/foundation.util.timer.js"),f=i(/*! ../foundation.util.touch */"./js/foundation.util.touch.js"),p=i(/*! ../foundation.util.triggers */"./js/foundation.util.triggers.js"),m=i(/*! ../foundation.abide */"./js/foundation.abide.js"),g=i(/*! ../foundation.accordion */"./js/foundation.accordion.js"),v=i(/*! ../foundation.accordionMenu */"./js/foundation.accordionMenu.js"),y=i(/*! ../foundation.drilldown */"./js/foundation.drilldown.js"),b=i(/*! ../foundation.dropdown */"./js/foundation.dropdown.js"),_=i(/*! ../foundation.dropdownMenu */"./js/foundation.dropdownMenu.js"),w=i(/*! ../foundation.equalizer */"./js/foundation.equalizer.js"),T=i(/*! ../foundation.interchange */"./js/foundation.interchange.js"),S=i(/*! ../foundation.magellan */"./js/foundation.magellan.js"),k=i(/*! ../foundation.offcanvas */"./js/foundation.offcanvas.js"),x=i(/*! ../foundation.orbit */"./js/foundation.orbit.js"),C=i(/*! ../foundation.responsiveMenu */"./js/foundation.responsiveMenu.js"),E=i(/*! ../foundation.responsiveToggle */"./js/foundation.responsiveToggle.js"),A=i(/*! ../foundation.reveal */"./js/foundation.reveal.js"),O=i(/*! ../foundation.slider */"./js/foundation.slider.js"),P=i(/*! ../foundation.smoothScroll */"./js/foundation.smoothScroll.js"),I=i(/*! ../foundation.sticky */"./js/foundation.sticky.js"),L=i(/*! ../foundation.tabs */"./js/foundation.tabs.js"),D=i(/*! ../foundation.toggler */"./js/foundation.toggler.js"),j=i(/*! ../foundation.tooltip */"./js/foundation.tooltip.js"),M=i(/*! ../foundation.responsiveAccordionTabs */"./js/foundation.responsiveAccordionTabs.js");n.Foundation.addToJquery(t()),n.Foundation.rtl=a.rtl,n.Foundation.GetYoDigits=a.GetYoDigits,n.Foundation.transitionend=a.transitionend,n.Foundation.RegExpEscape=a.RegExpEscape,n.Foundation.onLoad=a.onLoad,n.Foundation.Box=o.Box,n.Foundation.onImagesLoaded=s.onImagesLoaded,n.Foundation.Keyboard=l.Keyboard,n.Foundation.MediaQuery=c.MediaQuery,n.Foundation.Motion=u.Motion,n.Foundation.Move=u.Move,n.Foundation.Nest=d.Nest,n.Foundation.Timer=h.Timer,f.Touch.init(t()),p.Triggers.init(t(),n.Foundation),c.MediaQuery._init(),n.Foundation.plugin(m.Abide,"Abide"),n.Foundation.plugin(g.Accordion,"Accordion"),n.Foundation.plugin(v.AccordionMenu,"AccordionMenu"),n.Foundation.plugin(y.Drilldown,"Drilldown"),n.Foundation.plugin(b.Dropdown,"Dropdown"),n.Foundation.plugin(_.DropdownMenu,"DropdownMenu"),n.Foundation.plugin(w.Equalizer,"Equalizer"),n.Foundation.plugin(T.Interchange,"Interchange"),n.Foundation.plugin(S.Magellan,"Magellan"),n.Foundation.plugin(k.OffCanvas,"OffCanvas"),n.Foundation.plugin(x.Orbit,"Orbit"),n.Foundation.plugin(C.ResponsiveMenu,"ResponsiveMenu"),n.Foundation.plugin(E.ResponsiveToggle,"ResponsiveToggle"),n.Foundation.plugin(A.Reveal,"Reveal"),n.Foundation.plugin(O.Slider,"Slider"),n.Foundation.plugin(P.SmoothScroll,"SmoothScroll"),n.Foundation.plugin(I.Sticky,"Sticky"),n.Foundation.plugin(L.Tabs,"Tabs"),n.Foundation.plugin(D.Toggler,"Toggler"),n.Foundation.plugin(j.Tooltip,"Tooltip"),n.Foundation.plugin(M.ResponsiveAccordionTabs,"ResponsiveAccordionTabs"),r.default=n.Foundation}(),r}()},e.exports=i(n(1))},function(e,t,n){"use strict";(function(e){if(n(175),n(372),n(373),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;function t(e,t,n){e[t]||Object.defineProperty(e,t,{writable:!0,configurable:!0,value:n})}t(String.prototype,"padLeft","".padStart),t(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach((function(e){[][e]&&t(Array,e,Function.call.bind([][e]))}))}).call(this,n(57))},function(e,t,n){n(176),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230
vendor: 32,772 bytes, line 144
144),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(256),n(257),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(108),n(280),n(141),n(281),n(142),n(282),n(283),n(284),n(285),n(286),n(145),n(147),n(148),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),e.exports=n(29)},function(e,t,n){"use strict";var i=n(11),r=n(24),a=n(17),o=n(4),s=n(22),l=n(41).KEY,c=n(12),u=n(63),d=n(58),h=n(45),f=n(15),p=n(123),m=n(89),g=n(178),v=n(74),y=n(10),b=n(13),_=n(19),w=n(25),T=n(34),S=n(44),k=n(48),x=n(126),C=n(26),E=n(73),A=n(18),O=n(46),P=C.f,I=A.f,L=x.f,D=i.Symbol,j=i.JSON,M=j&&j.stringify,R=f("_hidden"),N=f("toPrimitive"),$={}.propertyIsEnumerable,B=u("symbol-registry"),F=u("symbols"),U=u("op-symbols"),z=Object.prototype,H="function"==typeof D&&!!E.f,q=i.QObject,V=!q||!q.prototype||!q.prototype.findChild,X=a&&c((function(){return 7!=k(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=P(z,t);i&&delete z[t],I(e,t,n),i&&e!==z&&I(z,t,i)}:I,W=function(e){var t=F[e]=k(D.prototype);return t._k=e,t},G=H&&"symbol"==typeof D.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof D},Y=function(e,t,n){return e===z&&Y(U,t,n),y(e),t=T(t,!0),y(n),r(F,t)?(n.enumerable?(r(e,R)&&e[R][t]&&(e[R][t]=!1),n=k(n,{enumerable:S(0,!1)})):(r(e,R)||I(e,R,S(1,{})),e[R][t]=!0),X(e,t,n)):I(e,t,n)},K=function(e,t){y(e);for(var n,i=g(t=w(t)),r=0,a=i.length;a>r;)Y(e,n=i[r++],t[n]);return e},Q=function(e){var t=$.call(this,e=T(e,!0));return!(this===z&&r(F,e)&&!r(U,e))&&(!(t||!r(this,e)||!r(F,e)||r(this,R)&&this[R][e])||t)},J=function(e,t){if(e=w(e),t=T(t,!0),e!==z||!r(F,t)||r(U,t)){var n=P(e,t);return!n||!r(F,t)||r(e,R)&&e[R][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=L(w(e)),i=[],a=0;n.length>a;)r(F,t=n[a++])||t==R||t==l||i.push(t);return i},ee=function(e){for(var t,n=e===z,i=L(n?U:w(e)),a=[],o=0;i.length>o;)!r(F,t=i[o++])||n&&!r(z,t)||a.push(F[t]);return a};H||(s((D=function(){if(this instanceof D)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===z&&t.call(U,n),r(this,R)&&r(this[R],e)&&(this[R][e]=!1),X(this,e,S(1,n))};return a&&V&&X(z,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),C.f=J,A.f=Y,n(49).f=x.f=Z,n(65).f=Q,E.f=ee,a&&!n(40)&&s(z,"propertyIsEnumerable",Q,!0),p.f=function(e){return W(f(e))}),o(o.G+o.W+o.F*!H,{Symbol:D});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)f(te[ne++]);for(var ie=O(f.store),re=0;ie.length>re;)m(ie[re++]);o(o.S+o.F*!H,"Symbol",{for:function(e){return r(B,e+="")?B[e]:B[e]=D(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){V=!0},useSimple:function(){V=!1}}),o(o.S+o.F*!H,"Object",{create:function(e,t){return void 0===t?k(e):K(k(e),t)},defineProperty:Y,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ae=c((function(){E.f(1)}));o(o.S+o.F*ae,"Object",{getOwnPropertySymbols:function(e){return E.f(_(e))}}),j&&o(o.S+o.F*(!H||c((function(){var e=D();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(b(t)||void 0!==e)&&!G(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,M.apply(j,i)}}),D.prototype[N]||n(21)(D.prototype,N,D.prototype.valueOf),d(D,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){e.exports=n(63)("native-function-to-string",Function.toString)},function(e,t,n){var i=n(46),r=n(73),a=n(65);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var o,s=n(e),l=a.f,c=0;s.length>c;)l.call(e,o=s[c++])&&t.push(o);return t}},function(e,t,n){var i=n(4);i(i.S,"Object",{create:n(48)})},function(e,t,n){var i=n(4);i(i.S+i.F*!n(17),"Object",{defineProperty:n(18).f})},function(e,t,n){var i=n(4);i(i.S+i.F*!n(17),"Object",{defineProperties:n(125)})},function(e,t,n){var i=n(25),r=n(26).f;n(36)("getOwnPropertyDescriptor",(function(){return function(e,t){return r(i(e),t)}}))},function(e,t,n){var i=n(19),r=n(27);n(36)("getPrototypeOf",(function(){return function(e){return r(i(e))}}))},function(e,t,n){var i=n(19),r=n(46);n(36)("keys",(function(){return function(e){return r(i(e))}}))},function(e,t,n){n(36)("getOwnPropertyNames",(function(){return n(126).f}))},function(e,t,n){var i=n(13),r=n(41).onFreeze;n(36)("freeze",(function(e){return function(t){return e&&i(t)?e(r(t)):t}}))},function(e,t,n){var i=n(13),r=n(41).onFreeze;n(36)("seal",(function(e){return function(t){return e&&i(t)?e(r(t)):t}}))},function(e,t,n){var i=n(13),r=n(41).onFreeze;n(36)("preventExtensions",(function(e){return function(t){return e&&i(t)?e(r(t)):t}}))},function(e,t,n){var i=n(13);n(36)("isFrozen",(function(e){return function(t){return!i(t)||!!e&&e(t)}}))},function(e,t,n){var i=n(13);n(36)("isSealed",(function(e){return function(t){return!i(t)||!!e&&e(t)}}))},function(e,t,n){var i=n(13);n(36)("isExtensible",(function(e){return function(t){return!!i(t)&&(!e||e(t))}}))},function(e,t,n){var i=n(4);i(i.S+i.F,"Object",{assign:n(127)})},function(e,t,n){var i=n(4);i(i.S,"Object",{is:n(128)})},function(e,t,n){var i=n(4);i(i.S,"Object",{setPrototypeOf:n(93).set})},function(e,t,n){"use strict";var i=n(59),r={};r[n(15)("toStringTag")]="z",r+""!="[object z]"&&n(22)(Object.prototype,"toString",(function(){return"[object "+i(this)+"]"}),!0)},function(e,t,n){var i=n(4);i(i.P,"Function",{bind:n(129)})},function(e,t,n){var i=n(18).f,r=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in r||n(17)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var i=n(13),r=n(27),a=n(15)("hasInstance"),o=Function.prototype;a in o||n(18).f(o,a,{value:function(e){if("function"!=typeof this||!i(e))return!1;if(!i(this.prototype))return e instanceof this;for(;e=r(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var i=n(4),r=n(131);i(i.G+i.F*(parseInt!=r),{parseInt:r})},function(e,t,n){var i=n(4),r=n(132);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},function(e,t,n){"use strict";var i=n(11),r=n(24),a=n(31),o=n(95),s=n(34),l=n(12),c=n(49).f,u=n(26).f,d=n(18).f,h=n(60).trim,f=i.Number,p=f,m=f.prototype,g="Number"==a(n(48)(m)),v="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,i,r,a=(t=v?t.trim():h(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+t}for(var o,l=t.slice(2),c=0,u=l.length;c<u;c++)if((o=l.charCodeAt(c))<48||o>r)return NaN;return parseInt(l,i)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof f&&(g?l((function(){m.valueOf.call(n)})):"Number"!=a(n))?o(new p(y(t)),n,f):y(t)};for(var b,_=n(17)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)r(p,b=_[w])&&!r(f,b)&&d(f,b,u(p,b));f.prototype=m,m.constructor=f,n(22)(i,"Number",f)}},function(e,t,n){"use strict";var i=n(4),r=n(32),a=n(133),o=n(96),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(e,t){for(var n=-1,i=t;++n<6;)i+=e*c[n],c[n]=i%1e7,i=l(i/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=l(n/e),n=n%e*1e7},f=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t},p=function(e,t,n){return 0===t?n:t%2==1?p(e,t-1,n*e):p(e*e,t/2,n)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(12)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,i,s,l=a(this,u),c=r(e),m="",g="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(m="-",l=-l),l>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(l*p(2,69,1))-69)<0?l*p(2,-t,1):l/p(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),i=c;i>=7;)d(1e7,0),i-=7;for(d(p(10,i,1),0),i=t-1;i>=23;)h(1<<23),i-=23;h(1<<i),d(1,1),h(2),g=f()}else d(0,n),d(1<<-t,0),g=f()+o.call("0",c);return g=c>0?m+((s=g.length)<=c?"0."+o.call("0",c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):m+g}})},function(e,t,n){"use strict";var i=n(4),r=n(12),a=n(133),o=1..toPrecision;i(i.P+i.F*(r((function(){return"1"!==o.call(1,void 0)}))||!r((function(){o.call({})}))),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?o.call(t):o.call(t,e)}})},function(e,t,n){var i=n(4);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var i=n(4),r=n(11).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},function(e,t,n){var i=n(4);i(i.S,"Number",{isInteger:n(134)})},function(e,t,n){var i=n(4);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var i=n(4),r=n(134),a=Math.abs;i(i.S,"Number",{isSafeInteger:function(e){return r(e)&&a(e)<=9007199254740991}})},function(e,t,n){var i=n(4);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var i=n(4);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var i=n(4),r=n(132);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(e,t,n){var i=n(4),r=n(131);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(e,t,n){var i=n(4),r=n(135),a=Math.sqrt,o=Math.acosh;i(i.S+i.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:r(e-1+a(e-1)*a(e+1))}})},function(e,t,n){var i=n(4),r=Math.asinh;i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var i=n(4),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var i=n(4),r=n(97);i(i.S,"Math",{cbrt:function(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var i=n(4);i(i.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var i=n(4),r=Math.exp;i(i.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},function(e,t,n){var i=n(4),r=n(98);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},function(e,t,n){var i=n(4);i(i.S,"Math",{fround:n(136)})},function(e,t,n){var i=n(4),r=Math.abs;i(i.S,"Math",{hypot:function(e,t){for(var n,i,a=0,o=0,s=arguments.length,l=0;o<s;)l<(n=r(arguments[o++]))?(a=a*(i=l/n)*i+1,l=n):a+=n>0?(i=n/l)*i:n;return l===1/0?1/0:l*Math.sqrt(a)}})},function(e,t,n){var i=n(4),r=Math.imul;i(i.S+i.F*n(12)((function(){return-5!=r(4294967295,5)||2!=r.length})),"Math",{imul:function(e,t){var n=+e,i=+t,r=65535&n,a=65535&i;return 0|r*a+((65535&n>>>16)*a+r*(65535&i>>>16)<<16>>>0)}})},function(e,t,n){var i=n(4);i(i.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var i=n(4);i(i.S,"Math",{log1p:n(135)})},function(e,t,n){var i=n(4);i(i.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var i=n(4);i(i.S,"Math",{sign:n(97)})},function(e,t,n){var i=n(4),r=n(98),a=Math.exp;i(i.S+i.F*n(12)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},function(e,t,n){var i=n(4),r=n(98),a=Math.exp;i(i.S,"Math",{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},function(e,t,n){var i=n(4);i(i.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var i=n(4),r=n(47),a=String.fromCharCode,o=String.fromCodePoint;i(i.S+i.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,o=0;i>o;){if(t=+arguments[o++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var i=n(4),r=n(25),a=n(16);i(i.S,"String",{raw:function(e){for(var t=r(e.raw),n=a(t.length),i=arguments.length,o=[],s=0;n>s;)o.push(String(t[s++])),s<i&&o.push(String(arguments[s]));return o.join("")}})},function(e,t,n){"use strict";n(60)("trim",(function(e){return function(){return e(this,3)}}))},function(e,t,n){"use strict";var i=n(75)(!0);n(99)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var i=n(4),r=n(75)(!1);i(i.P,"String",{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var i=n(4),r=n(16),a=n(101),o="".endsWith;i(i.P+i.F*n(102)("endsWith"),"String",{endsWith:function(e){var t=a(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=r(t.length),s=void 0===n?i:Math.min(r(n),i),l=String(e);return o?o.call(t,l,s):t.slice(s-l.length,s)===l}})},function(e,t,n){"use strict";var i=n(4),r=n(101);i(i.P+i.F*n(102)("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(4);i(i.P,"String",{repeat:n(96)})},function(e,t,n){"use strict";var i=n(4),r=n(16),a=n(101),o="".startsWith;i(i.P+i.F*n(102)("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return o?o.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){"use strict";n(23)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(23)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(23)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(23)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(23)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(23)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(23)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(23)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(23)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(23)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(23)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(23)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(23)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var i=n(4);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var i=n(4),r=n(19),a=n(34);i(i.P+i.F*n(12)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=r(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var i=n(4),r=n(255);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(e,t,n){"use strict";var i=n(12),r=Date.prototype.getTime,a=Date.prototype.toISOString,o=function(e){return e>9?e:"0"+e};e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-50000000000001))}))||!i((function(){a.call(new Date(NaN))}))?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+("00000"+Math.abs(t)).slice(i?-6:-4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:a},function(e,t,n){var i=Date.prototype,r=i.toString,a=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(22)(i,"toString",(function(){var e=a.call(this);return e==e?r.call(this):"Invalid Date"}))},function(e,t,n){var i=n(15)("toPrimitive"),r=Date.prototype;i in r||n(21)(r,i,n(258))},function(e,t,n){"use strict";var i=n(10),r=n(34);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(i(this),"number"!=e)}},function(e,t,n){var i=n(4);i(i.S,"Array",{isArray:n(74)})},function(e,t,n){"use strict";var i=n(30),r=n(4),a=n(19),o=n(137),s=n(103),l=n(16),c=n(104),u=n(105);r(r.S+r.F*!n(77)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,r,d,h=a(e),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(h);if(g&&(m=i(m,p>2?arguments[2]:void 0,2)),null==y||f==Array&&s(y))for(n=new f(t=l(h.length));t>v;v++)c(n,v,g?m(h[v],v):h[v]);else for(d=y.call(h),n=new f;!(r=d.next()).done;v++)c(n,v,g?o(d,m,[r.value,v],!0):r.value);return n.length=v,n}})},function(e,t,n){"use strict";var i=n(4),r=n(104);i(i.S+i.F*n(12)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var i=n(4),r=n(25),a=[].join;i(i.P+i.F*(n(64)!=Object||!n(33)(a)),"Array",{join:function(e){return a.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var i=n(4),r=n(92),a=n(31),o=n(47),s=n(16),l=[].slice;i(i.P+i.F*n(12)((function(){r&&l.call(r)})),"Array",{slice:function(e,t){var n=s(this.length),i=a(this);if(t=void 0===t?n:t,"Array"==i)return l.call(this,e,t);for(var r=o(e,n),c=o(t,n),u=s(c-r),d=new Array(u),h=0;h<u;h++)d[h]="String"==i?this.charAt(r+h):this[r+h];return d}})},function(e,t,n){"use strict";var i=n(4),r=n(20),a=n(19),o=n(12),s=[].sort,l=[1,2,3];i(i.P+i.F*(o((function(){l.sort(void 0)}))||!o((function(){l.sort(null)}))||!n(33)(s)),"Array",{sort:function(e){return void 0===e?s.call(a(this)):s.call(a(this),r(e))}})},function(e,t,n){"use strict";var i=n(4),r=n(37)(0),a=n(33)([].forEach,!0);i(i.P+i.F*!a,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(13),r=n(74),a=n(15)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var i=n(4),r=n(37)(1);i(i.P+i.F*!n(33)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(4),r=n(37)(2);i(i.P+i.F*!n(33)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(4),r=n(37)(3);i(i.P+i.F*!n(33)([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(4),r=n(37)(4);i(i.P+i.F*!n(33)([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(4),r=n(138);i(i.P+i.F*!n(33)([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var i=n(4),r=n(138);i(i.P+i.F*!n(33)([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var i=n(4),r=n(72)(!1),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(33)(a)),"Array",{indexOf:function(e){return o?a.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(4),r=n(25),a=n(32),o=n(16),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!n(33)(s)),"Array",{lastIndexOf:function(e){if(l)return s.apply(this,arguments)||0;var t=r(this),n=o(t.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,a(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}})},function(e,t,n){var i=n(4);i(i.P,"Array",{copyWithin:n(139)}),n(42)("copyWithin")},function(e,t,n){var i=n(4);i(i.P,"Array",{fill:n(107)}),n(42)("fill")},function(e,t,n){"use strict";var i=n(4),r=n(37)(5),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),i(i.P+i.F*a,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(42)("find")},function(e,t,n){"use strict";var i=n(4),r=n(37)(6),a="findIndex",o=!0;a in[]&&Array(1)[a]((function(){o=!1})),i(i.P+i.F*o,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(42)(a)},function(e,t,n){n(50)("Array")},function(e,t,n){var i=n(11),r=n(95),a=n(18).f,o=n(49).f,s=n(76),l=n(66),c=i.RegExp,u=c,d=c.prototype,h=/a/g,f=/a/g,p=new c(h)!==h;if(n(17)&&(!p||n(12)((function(){return f[n(15)("match")]=!1,c(h)!=h||c(f)==f||"/a/i"!=c(h,"i")})))){c=function(e,t){var n=this instanceof c,i=s(e),a=void 0===t;return!n&&i&&e.constructor===c&&a?e:r(p?new u(i&&!a?e.source:e,t):u((i=e instanceof c)?e.source:e,i&&a?l.call(e):t),n?this:d,c)};for(var m=function(e){e in c||a(c,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},g=o(u),v=0;g.length>v;)m(g[v++]);d.constructor=c,c.prototype=d,n(22)(i,"RegExp",c)}n(50)("RegExp")},function(e,t,n){"use strict";n(142);var i=n(10),r=n(66),a=n(17),o=/./.toString,s=function(e){n(22)(RegExp.prototype,"toString",e,!0)};n(12)((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?s((function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?r.call(e):void 0)})):"toString"!=o.name&&s((function(){return o.call(this)}))},function(e,t,n){"use strict";var i=n(10),r=n(16),a=n(110),o=n(78);n(79)("match",1,(function(e,t,n,s){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=i(e),c=String(this);if(!l.global)return o(l,c);var u=l.unicode;l.lastIndex=0;for(var d,h=[],f=0;null!==(d=o(l,c));){var p=String(d[0]);h[f]=p,""===p&&(l.lastIndex=a(c,r(l.lastIndex),u)),f++}return 0===f?null:h}]}))},function(e,t,n){"use strict";var i=n(10),r=n(19),a=n(16),o=n(32),s=n(110),l=n(78),c=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n(79)("replace",2,(function(e,t,n,p){return[function(i,r){var a=e(this),o=null==i?void 0:i[t];return void 0!==o?o.call(i,a,r):n.call(String(a),i,r)},function(e,t){var r=p(n,e,this,t);if(r.done)return r.value;var d=i(e),h=String(this),f="function"==typeof t;f||(t=String(t));var g=d.global;if(g){var v=d.unicode;d.lastIndex=0}for(var y=[];;){var b=l(d,h);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(d.lastIndex=s(h,a(d.lastIndex),v))}for(var _,w="",T=0,S=0;S<y.length;S++){b=y[S];for(var k=String(b[0]),x=c(u(o(b.index),h.length),0),C=[],E=1;E<b.length;E++)C.push(void 0===(_=b[E])?_:String(_));var A=b.groups;if(f){var O=[k].concat(C,x,h);void 0!==A&&O.push(A);var P=String(t.apply(void 0,O))}else P=m(k,h,x,C,A,t);x>=T&&(w+=h.slice(T,x)+P,T=x+k.length)}return w+h.slice(T)}];function m(e,t,i,a,o,s){var l=i+e.length,c=a.length,u=f;return void 0!==o&&(o=r(o),u=h),n.call(s,u,(function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(l);case"<":s=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var h=d(u/10);return 0===h?n:h<=c?void 0===a[h-1]?r.charAt(1):a[h-1]+r.charAt(1):n}s=a[u-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var i=n(10),r=n(128),a=n(78);n(79)("search",1,(function(e,t,n,o){return[function(n){var i=e(this),r=null==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=o(n,e,this);if(t.done)return t.value;var s=i(e),l=String(this),c=s.lastIndex;r(c,0)||(s.lastIndex=0);var u=a(s,l);return r(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},function(e,t,n){"use strict";var i=n(76),r=n(10),a=n(67),o=n(110),s=n(16),l=n(78),c=n(109),u=n(12),d=Math.min,h=[].push,f="length",p=!u((function(){RegExp(4294967295,"y")}));n(79)("split",2,(function(e,t,n,u){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[f]||2!="ab".split(/(?:ab)*/)[f]||4!=".".split(/(.?)(.?)/)[f]||".".split(/()()/)[f]>1||"".split(/.?/)[f]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(r,e,t);for(var a,o,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?4294967295:t>>>0,m=new RegExp(e.source,u+"g");(a=c.call(m,r))&&!((o=m.lastIndex)>d&&(l.push(r.slice(d,a.index)),a[f]>1&&a.index<r[f]&&h.apply(l,a.slice(1)),s=a[0][f],d=o,l[f]>=p));)m.lastIndex===a.index&&m.lastIndex++;return d===r[f]?!s&&m.test("")||l.push(""):l.push(r.slice(d)),l[f]>p?l.slice(0,p):l}:"0".split(void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var r=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,r,i):m.call(String(r),n,i)},function(e,t){var i=u(m,e,this,t,m!==n);if(i.done)return i.value;var c=r(e),h=String(this),f=a(c,RegExp),g=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),y=new f(p?c:"^(?:"+c.source+")",v),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===h.length)return null===l(y,h)?[h]:[];for(var _=0,w=0,T=[];w<h.length;){y.lastIndex=p?w:0;var S,k=l(y,p?h:h.slice(w));if(null===k||(S=d(s(y.lastIndex+(p?0:w)),h.length))===_)w=o(h,w,g);else{if(T.push(h.slice(_,w)),T.length===b)return T;for(var x=1;x<=k.length-1;x++)if(T.push(k[x]),T.length===b)return T;w=_=S}}return T.push(h.slice(_)),T}]}))},function(e,t,n){"use strict";var i,r,a,o,s=n(40),l=n(11),c=n(30),u=n(59),d=n(4),h=n(13),f=n(20),p=n(51),m=n(52),g=n(67),v=n(111).set,y=n(112)(),b=n(113),_=n(143),w=n(80),T=n(144),S=l.TypeError,k=l.process,x=k&&k.versions,C=x&&x.v8||"",E=l.Promise,A="process"==u(k),O=function(){},P=r=b.f,I=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(15)("species")]=function(e){e(O,O)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(O)instanceof t&&0!==C.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),L=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},D=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var i=e._v,r=1==e._s,a=0,o=function(t){var n,a,o,s=r?t.ok:t.fail,l=t.resolve,c=t.reject,u=t.domain;try{s?(r||(2==e._h&&R(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),o=!0)),n===t.promise?c(S("Promise-chain cycle")):(a=L(n))?a.call(n,l,c):l(n)):c(i)}catch(e){u&&!o&&u.exit(),c(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&j(e)}))}},j=function(e){v.call(l,(function(){var t,n,i,r=e._v,a=M(e);if(a&&(t=_((function(){A?k.emit("unhandledRejection",r,e):(n=l.onunhandledrejection)?n({promise:e,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)})),e._h=A||M(e)?2:1),e._a=void 0,a&&t.e)throw t.v}))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){v.call(l,(function(){var t;A?k.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})}))},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),D(t,!0))},$=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=L(e))?y((function(){var i={_w:n,_d:!1};try{t.call(e,c($,i,1),c(N,i,1))}catch(e){N.call(i,e)}})):(n._v=e,n._s=1,D(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};I||(E=function(e){p(this,E,"Promise","_h"),f(e),i.call(this);try{e(c($,this,1),c(N,this,1))}catch(e){N.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(53)(E.prototype,{then:function(e,t){var n=P(g(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new i;this.promise=e,this.resolve=c($,e,1),this.reject=c(N,e,1)},b.f=P=function(e){return e===E||e===o?new a(e):r(e)}),d(d.G+d.W+d.F*!I,{Promise:E}),n(58)(E,"Promise"),n(50)("Promise"),o=n(29).Promise,d(d.S+d.F*!I,"Promise",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!I),"Promise",{resolve:function(e){return T(s&&this===o?E:this,e)}}),d(d.S+d.F*!(I&&n(77)((function(e){E.all(e).catch(O)}))),"Promise",{all:function(e){var t=this,n=P(t),i=n.resolve,r=n.reject,a=_((function(){var n=[],a=0,o=1;m(e,!1,(function(e){var s=a++,l=!1;n.push(void 0),o++,t.resolve(e).then((function(e){l||(l=!0,n[s]=e,--o||i(n))}),r)})),--o||i(n)}));return a.e&&r(a.v),n.promise},race:function(e){var t=this,n=P(t),i=n.reject,r=_((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}})},function(e,t,n){"use strict";var i=n(149),r=n(54);n(81)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return i.def(r(this,"WeakSet"),e,!0)}},i,!1,!0)},function(e,t,n){"use strict";var i=n(4),r=n(82),a=n(114),o=n(10),s=n(47),l=n(16),c=n(13),u=n(11).ArrayBuffer,d=n(67),h=a.ArrayBuffer,f=a.DataView,p=r.ABV&&u.isView,m=h.prototype.slice,g=r.VIEW;i(i.G+i.W+i.F*(u!==h),{ArrayBuffer:h}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(e){return p&&p(e)||c(e)&&g in e}}),i(i.P+i.U+i.F*n(12)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(o(this),e);for(var n=o(this).byteLength,i=s(e,n),r=s(void 0===t?n:t,n),a=new(d(this,h))(l(r-i)),c=new f(this),u=new f(a),p=0;i<r;)u.setUint8(p++,c.getUint8(i++));return a}}),n(50)("ArrayBuffer")},function(e,t,n){var i=n(4);i(i.G+i.W+i.F*!n(82).ABV,{DataView:n(114).DataView})},function(e,t,n){n(38)("Int8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Uint8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Uint8",1,(function(e){return function(t,n,i){return e(this,t,n,i)}}),!0)},function(e,t,n){n(38)("Int16",2,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Uint16",2,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Int32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Uint32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Float32",4,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){n(38)("Float64",8,(function(e){return function(t,n,i){return e(this,t,n,i)}}))},function(e,t,n){var i=n(4),r=n(20),a=n(10),o=(n(11).Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n(12)((function(){o((function(){}))})),"Reflect",{apply:function(e,t,n){var i=r(e),l=a(n);return o?o(i,t,l):s.call(i,t,l)}})},function(e,t,n){var i=n(4),r=n(48),a=n(20),o=n(10),s=n(13),l=n(12),c=n(129),u=(n(11).Reflect||{}).construct,d=l((function(){function e(){}return!(u((function(){}),[],e)instanceof e)})),h=!l((function(){u((function(){}))}));i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(c.apply(e,i))}var l=n.prototype,f=r(s(l)?l:Object.prototype),p=Function.apply.call(e,f,t);return s(p)?p:f}})},function(e,t,n){var i=n(18),r=n(4),a=n(10),o=n(34);r(r.S+r.F*n(12)((function(){Reflect.defineProperty(i.f({}
vendor: 10,866 bytes, line 144
144,1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){a(e),t=o(t,!0),a(n);try{return i.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var i=n(4),r=n(26).f,a=n(10);i(i.S,"Reflect",{deleteProperty:function(e,t){var n=r(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var i=n(4),r=n(10),a=function(e){this._t=r(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(100)(a,"Object",(function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),i(i.S,"Reflect",{enumerate:function(e){return new a(e)}})},function(e,t,n){var i=n(26),r=n(27),a=n(24),o=n(4),s=n(13),l=n(10);o(o.S,"Reflect",{get:function e(t,n){var o,c,u=arguments.length<3?t:arguments[2];return l(t)===u?t[n]:(o=i.f(t,n))?a(o,"value")?o.value:void 0!==o.get?o.get.call(u):void 0:s(c=r(t))?e(c,n,u):void 0}})},function(e,t,n){var i=n(26),r=n(4),a=n(10);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return i.f(a(e),t)}})},function(e,t,n){var i=n(4),r=n(27),a=n(10);i(i.S,"Reflect",{getPrototypeOf:function(e){return r(a(e))}})},function(e,t,n){var i=n(4);i(i.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var i=n(4),r=n(10),a=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(e){return r(e),!a||a(e)}})},function(e,t,n){var i=n(4);i(i.S,"Reflect",{ownKeys:n(151)})},function(e,t,n){var i=n(4),r=n(10),a=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(e){r(e);try{return a&&a(e),!0}catch(e){return!1}}})},function(e,t,n){var i=n(18),r=n(26),a=n(27),o=n(24),s=n(4),l=n(44),c=n(10),u=n(13);s(s.S,"Reflect",{set:function e(t,n,s){var d,h,f=arguments.length<4?t:arguments[3],p=r.f(c(t),n);if(!p){if(u(h=a(t)))return e(h,n,s,f);p=l(0)}if(o(p,"value")){if(!1===p.writable||!u(f))return!1;if(d=r.f(f,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,i.f(f,n,d)}else i.f(f,n,l(0,s));return!0}return void 0!==p.set&&(p.set.call(f,s),!0)}})},function(e,t,n){var i=n(4),r=n(93);r&&i(i.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var i=n(4),r=n(72)(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(42)("includes")},function(e,t,n){"use strict";var i=n(4),r=n(152),a=n(19),o=n(16),s=n(20),l=n(106);i(i.P,"Array",{flatMap:function(e){var t,n,i=a(this);return s(e),t=o(i.length),n=l(i,0),r(n,i,i,t,0,1,e,arguments[1]),n}}),n(42)("flatMap")},function(e,t,n){"use strict";var i=n(4),r=n(152),a=n(19),o=n(16),s=n(32),l=n(106);i(i.P,"Array",{flatten:function(){var e=arguments[0],t=a(this),n=o(t.length),i=l(t,0);return r(i,t,t,n,0,void 0===e?1:s(e)),i}}),n(42)("flatten")},function(e,t,n){"use strict";var i=n(4),r=n(75)(!0),a=n(12)((function(){return"ð ®·"!=="ð ®·".at(0)}));i(i.P+i.F*a,"String",{at:function(e){return r(this,e)}})},function(e,t,n){"use strict";var i=n(4),r=n(153),a=n(80),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var i=n(4),r=n(153),a=n(80),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(60)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){"use strict";n(60)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){"use strict";var i=n(4),r=n(35),a=n(16),o=n(76),s=n(66),l=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(100)(c,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),i(i.P,"String",{matchAll:function(e){if(r(this),!o(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in l?String(e.flags):s.call(e),i=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=a(e.lastIndex),new c(i,t)}})},function(e,t,n){n(89)("asyncIterator")},function(e,t,n){n(89)("observable")},function(e,t,n){var i=n(4),r=n(151),a=n(25),o=n(26),s=n(104);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=a(e),l=o.f,c=r(i),u={},d=0;c.length>d;)void 0!==(n=l(i,t=c[d++]))&&s(u,t,n);return u}})},function(e,t,n){var i=n(4),r=n(154)(!1);i(i.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){var i=n(4),r=n(154)(!0);i(i.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){"use strict";var i=n(4),r=n(19),a=n(20),o=n(18);n(17)&&i(i.P+n(83),"Object",{__defineGetter__:function(e,t){o.f(r(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(4),r=n(19),a=n(20),o=n(18);n(17)&&i(i.P+n(83),"Object",{__defineSetter__:function(e,t){o.f(r(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(4),r=n(19),a=n(34),o=n(27),s=n(26).f;n(17)&&i(i.P+n(83),"Object",{__lookupGetter__:function(e){var t,n=r(this),i=a(e,!0);do{if(t=s(n,i))return t.get}while(n=o(n))}})},function(e,t,n){"use strict";var i=n(4),r=n(19),a=n(34),o=n(27),s=n(26).f;n(17)&&i(i.P+n(83),"Object",{__lookupSetter__:function(e){var t,n=r(this),i=a(e,!0);do{if(t=s(n,i))return t.set}while(n=o(n))}})},function(e,t,n){var i=n(4);i(i.P+i.R,"Map",{toJSON:n(155)("Map")})},function(e,t,n){var i=n(4);i(i.P+i.R,"Set",{toJSON:n(155)("Set")})},function(e,t,n){n(84)("Map")},function(e,t,n){n(84)("Set")},function(e,t,n){n(84)("WeakMap")},function(e,t,n){n(84)("WeakSet")},function(e,t,n){n(85)("Map")},function(e,t,n){n(85)("Set")},function(e,t,n){n(85)("WeakMap")},function(e,t,n){n(85)("WeakSet")},function(e,t,n){var i=n(4);i(i.G,{global:n(11)})},function(e,t,n){var i=n(4);i(i.S,"System",{global:n(11)})},function(e,t,n){var i=n(4),r=n(31);i(i.S,"Error",{isError:function(e){return"Error"===r(e)}})},function(e,t,n){var i=n(4);i(i.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var i=n(4);i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var i=n(4),r=180/Math.PI;i(i.S,"Math",{degrees:function(e){return e*r}})},function(e,t,n){var i=n(4),r=n(157),a=n(136);i(i.S,"Math",{fscale:function(e,t,n,i,o){return a(r(e,t,n,i,o))}})},function(e,t,n){var i=n(4);i(i.S,"Math",{iaddh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(e,t,n){var i=n(4);i(i.S,"Math",{isubh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)-(i>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},function(e,t,n){var i=n(4);i(i.S,"Math",{imulh:function(e,t){var n=+e,i=+t,r=65535&n,a=65535&i,o=n>>16,s=i>>16,l=(o*a>>>0)+(r*a>>>16);return o*s+(l>>16)+((r*s>>>0)+(65535&l)>>16)}})},function(e,t,n){var i=n(4);i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var i=n(4),r=Math.PI/180;i(i.S,"Math",{radians:function(e){return e*r}})},function(e,t,n){var i=n(4);i(i.S,"Math",{scale:n(157)})},function(e,t,n){var i=n(4);i(i.S,"Math",{umulh:function(e,t){var n=+e,i=+t,r=65535&n,a=65535&i,o=n>>>16,s=i>>>16,l=(o*a>>>0)+(r*a>>>16);return o*s+(l>>>16)+((r*s>>>0)+(65535&l)>>>16)}})},function(e,t,n){var i=n(4);i(i.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var i=n(4),r=n(29),a=n(11),o=n(67),s=n(144);i(i.P+i.R,"Promise",{finally:function(e){var t=o(this,r.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var i=n(4),r=n(113),a=n(143);i(i.S,"Promise",{try:function(e){var t=r.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var i=n(39),r=n(10),a=i.key,o=i.set;i.exp({defineMetadata:function(e,t,n,i){o(e,t,r(n),a(i))}})},function(e,t,n){var i=n(39),r=n(10),a=i.key,o=i.map,s=i.store;i.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),i=o(r(t),n,!1);if(void 0===i||!i.delete(e))return!1;if(i.size)return!0;var l=s.get(t);return l.delete(n),!!l.size||s.delete(t)}})},function(e,t,n){var i=n(39),r=n(10),a=n(27),o=i.has,s=i.get,l=i.key,c=function(e,t,n){if(o(e,t,n))return s(e,t,n);var i=a(t);return null!==i?c(e,i,n):void 0};i.exp({getMetadata:function(e,t){return c(e,r(t),arguments.length<3?void 0:l(arguments[2]))}})},function(e,t,n){var i=n(147),r=n(156),a=n(39),o=n(10),s=n(27),l=a.keys,c=a.key,u=function(e,t){var n=l(e,t),a=s(e);if(null===a)return n;var o=u(a,t);return o.length?n.length?r(new i(n.concat(o))):o:n};a.exp({getMetadataKeys:function(e){return u(o(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var i=n(39),r=n(10),a=i.get,o=i.key;i.exp({getOwnMetadata:function(e,t){return a(e,r(t),arguments.length<3?void 0:o(arguments[2]))}})},function(e,t,n){var i=n(39),r=n(10),a=i.keys,o=i.key;i.exp({getOwnMetadataKeys:function(e){return a(r(e),arguments.length<2?void 0:o(arguments[1]))}})},function(e,t,n){var i=n(39),r=n(10),a=n(27),o=i.has,s=i.key,l=function(e,t,n){if(o(e,t,n))return!0;var i=a(t);return null!==i&&l(e,i,n)};i.exp({hasMetadata:function(e,t){return l(e,r(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var i=n(39),r=n(10),a=i.has,o=i.key;i.exp({hasOwnMetadata:function(e,t){return a(e,r(t),arguments.length<3?void 0:o(arguments[2]))}})},function(e,t,n){var i=n(39),r=n(10),a=n(20),o=i.key,s=i.set;i.exp({metadata:function(e,t){return function(n,i){s(e,t,(void 0!==i?r:a)(n),o(i))}}})},function(e,t,n){var i=n(4),r=n(112)(),a=n(11).process,o="process"==n(31)(a);i(i.G,{asap:function(e){var t=o&&a.domain;r(t?t.bind(e):e)}})},function(e,t,n){"use strict";var i=n(4),r=n(11),a=n(29),o=n(112)(),s=n(15)("observable"),l=n(20),c=n(10),u=n(51),d=n(53),h=n(21),f=n(52),p=f.RETURN,m=function(e){return null==e?void 0:l(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},v=function(e){return void 0===e._o},y=function(e){v(e)||(e._o=void 0,g(e))},b=function(e,t){c(e),this._c=void 0,this._o=e,e=new _(this);try{var n=t(e),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:l(n),this._c=n)}catch(t){return void e.error(t)}v(this)&&g(this)};b.prototype=d({},{unsubscribe:function(){y(this)}});var _=function(e){this._s=e};_.prototype=d({},{next:function(e){var t=this._s;if(!v(t)){var n=t._o;try{var i=m(n.next);if(i)return i.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(v(t))throw e;var n=t._o;t._o=void 0;try{var i=m(n.error);if(!i)throw e;e=i.call(n,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!v(t)){var n=t._o;t._o=void 0;try{var i=m(n.complete);e=i?i.call(n,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var w=function(e){u(this,w,"Observable","_f")._f=l(e)};d(w.prototype,{subscribe:function(e){return new b(e,this._f)}
vendor: 5,331 bytes, line 144
144,forEach:function(e){var t=this;return new(a.Promise||r.Promise)((function(n,i){l(e);var r=t.subscribe({next:function(t){try{return e(t)}catch(e){i(e),r.unsubscribe()}},error:i,complete:n})}))}}),d(w,{from:function(e){var t="function"==typeof this?this:w,n=m(c(e)[s]);if(n){var i=c(n.call(e));return i.constructor===t?i:new t((function(e){return i.subscribe(e)}))}return new t((function(t){var n=!1;return o((function(){if(!n){try{if(f(e,!1,(function(e){if(t.next(e),n)return p}))===p)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:w)((function(e){var t=!1;return o((function(){if(!t){for(var i=0;i<n.length;++i)if(e.next(n[i]),t)return;e.complete()}})),function(){t=!0}}))}}),h(w.prototype,s,(function(){return this})),i(i.G,{Observable:w}),n(50)("Observable")},function(e,t,n){var i=n(11),r=n(4),a=n(80),o=[].slice,s=/MSIE .\./.test(a),l=function(e){return function(t,n){var i=arguments.length>2,r=!!i&&o.call(arguments,2);return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};r(r.G+r.B+r.F*s,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},function(e,t,n){var i=n(4),r=n(111);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},function(e,t,n){for(var i=n(108),r=n(46),a=n(22),o=n(11),s=n(21),l=n(61),c=n(15),u=c("iterator"),d=c("toStringTag"),h=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),m=0;m<p.length;m++){var g,v=p[m],y=f[v],b=o[v],_=b&&b.prototype;if(_&&(_[u]||s(_,u,h),_[d]||s(_,d,v),l[v]=h,y))for(g in i)_[g]||a(_,g,i[g],!0)}},function(e,t,n){(function(t){!function(t){"use strict";var n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag",l="object"==typeof e,c=t.regeneratorRuntime;if(c)l&&(e.exports=c);else{(c=t.regeneratorRuntime=l?e.exports:{}).wrap=m;var u={},d={};d[a]=function(){return this};var h=Object.getPrototypeOf,f=h&&h(h(C([])));f&&f!==n&&i.call(f,a)&&(d=f);var p=b.prototype=v.prototype=Object.create(d);y.prototype=p.constructor=b,b.constructor=y,b[s]=y.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(p),e},c.awrap=function(e){return{__await:e}},_(w.prototype),w.prototype[o]=function(){return this},c.AsyncIterator=w,c.async=function(e,t,n,i){var r=new w(m(e,t,n,i));return c.isGeneratorFunction(t)?r:r.next().then((function(e){return e.done?e.value:r.next()}))},_(p),p[s]="Generator",p[a]=function(){return this},p.toString=function(){return"[object Generator]"},c.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},c.values=C,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
144if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;k(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}}}function m(e,t,n,i){var r=t&&t.prototype instanceof v?t:v,a=Object.create(r.prototype),o=new x(i||[]);return a._invoke=function(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return E()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=T(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=g(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(e,n,o),a}function g(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function v(){}function y(){}function b(){}function _(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function w(e){function n(t,r,a,o){var s=g(e[t],e,r);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(e){n("next",e,a,o)}),(function(e){n("throw",e,a,o)})):Promise.resolve(c).then((function(e){l.value=e,a(l)}),o)}o(s.arg)}var r;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=function(e,t){function i(){return new Promise((function(i,r){n(e,t,i,r)}))}return r=r?r.then(i,i):i()}}function T(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=g(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,u;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:E}}function E(){return{value:void 0,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,n(57))},function(e,t,n){n(374),e.exports=n(29).RegExp.escape},function(e,t,n){var i=n(4),r=n(375)(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(e){return r(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t){},function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){"use strict";var i=n(0);e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,a){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var o=a;if(t)if(i.TextDecoder){var s=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e}),"utf-8")}(r.headers&&r.headers["content-type"]);try{o=new TextDecoder(s).decode(a)}catch(e){}}else o=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:o})}else e(null,a)}}},function(e,t,n){var i=n(5),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();
vendor: 5,389 bytes, line 144
144function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=r(null)}function l(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var o=r[a].split(n);if(2===o.length)t(o[0].trim(),o[1].trim())}}function c(e,t,n){var i=e;function r(){var t=o(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=r(),c(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),c(),t.endTime=r(),c(),function(e,t){var i=new s;l(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}a.prototype=r(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},f={v:"title",lang:"lang"},p={rt:"ruby"};function m(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function i(e,t){return!p[t.localName]||p[t.localName]===e.localName}function r(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),a=f[t];return a&&n&&(r[a]=n.trim()),r}for(var a,s,l=e.document.createElement("div"),c=l,m=[];null!==(a=n());)if("<"!==a[0])c.appendChild(e.document.createTextNode((s=a,u.innerHTML=s,s=u.textContent,u.textContent="",s)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=o(a.substr(1,a.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=r(y[1],y[3])))continue;if(!i(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var i=t?"background-color":"color",r=h[n];g.style[i]=r}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 6,112 bytes, line 144
144],[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 v(e){for(var t=0;t<g.length;t++){var n=g[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var a=0;a<n.length;a++)if(v(n.charCodeAt(a)))return"rtl";return"ltr"}function b(){}function _(e,t,n){b.call(this),this.cue=t,this.cueDiv=m(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:y(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":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size}""===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 w(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function T(e,t,n,i){var r=new w(t),a=t.cue,o=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}(a),s=[];if(a.snapToLines){var l;switch(a.vertical){case"":s=["+y","-y"],l="height";break;case"rl":s=["+x","-x"],l="width";break;case"lr":s=["-x","+x"],l="width"}var c=r.lineHeight,u=c*Math.round(o),d=n[l]+c,h=s[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),o<0&&(u+=""===a.vertical?n.height:n.width,s=s.reverse()),r.move(h,u)}else{var f=r.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=f/2;break;case"end":o-=f}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,"%")})}s=["+y","-x","+x","-y"],r=new w(t)}var p=function(e,t){for(var r,a=new w(e),o=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(i);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(r=new w(e),o=l),e=new w(a)}return r||a}(r,s);t.move(p.toCSSCompatValues(n))}function S(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=r(b.prototype),_.prototype.constructor=_,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.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)},w.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}},w.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}},S.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},S.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};S.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",
vendor: 6,736 bytes, line 144
144i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],a=w.getSimpleBoxPosition(i),o={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var n,s,l=0;l<t.length;l++)s=t[l],n=new _(e,s,o),i.appendChild(n.div),T(0,n,a,r),s.displayState=n.div,r.push(w.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)i.appendChild(t[s].displayState)},S.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},S.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":!function(e){var n=new s;l(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",o(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}}),/=/):l(e,(function(e,n){switch(e){case"Region":!function(e){var n=new s;if(l(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new s;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:r=n(),t.state){case"HEADER":/:/.test(r)?i(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":try{c(r,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new a(a.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=S},function(e,t){var n={"":1,lr:1,rl:1},i={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function r(e){return"string"==typeof e&&(!!i[e.toLowerCase()]&&e.toLowerCase())}function a(e,t,i){this.hasBeenReset=!1;var a="",o=!1,s=e,l=t,c=i,u=null,d="",h=!0,f="auto",p="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a},set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(e){var t=r(e);t?(p=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=r(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=r(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}a.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=a},function(e,t){var n={"":!0,up:!0};function i(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,r=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!i(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a}
vendor: 20,041 bytes, lines 144-151
144,set:function(e){if(!i(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!i(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!i(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!i(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}},function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";(function(e){ 145/*! 146 * The buffer module from node.js, for the browser. 147 * 148 * @author Feross Aboukhadijeh <http://feross.org> 149 * @license MIT 150 */ 151var i=n(384),r=n(385),a=n(386);function o(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=s(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(i)return F(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var a,o=1,s=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(r){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o<i;++o){var s=parseInt(t.substr(2*o,2),16);if(isNaN(s))return o;e[n+o]=s}return o}function _(e,t,n,i){return z(F(t,e.length-n),e,n,i)}function w(e,t,n,i){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function T(e,t,n,i){return w(e,t,n,i)}function S(e,t,n,i){return z(U(t),e,n,i)}function k(e,t,n,i){return z(function(e,t){for(var n,i,r,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),i=n>>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var a,o,s,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[r+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[r+1],o=e[r+2],128==(192&a)&&128==(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[r+1],o=e[r+2],s=e[r+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var o=e[n];if(!l.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(i,r),r+=o.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),c=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(c[d]!==u[d]){a=c[d],o=u[d];break}return a<o?-1:o<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function O(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=B(e[a]);return r}function P(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function D(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r<a;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function j(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r<a;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function M(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,i,a){return a||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function N(e,t,n,i,a){return a||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a<n&&(r*=256);)this[t+a]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}var a=0,o=1,s=0;for(this[t]=255&e;++a<n&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,a=i-n;if(this===e&&n<t&&t<i)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=l.isBuffer(e)?e:F(new l(e,i).toString()),s=o.length;for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var $=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var i=e.length,r=null,a=[],o=0;o<i;++o){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>
151-1&&a.push(239,191,189);continue}if(o+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(57))},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=c(e),o=i[0],s=i[1],l=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,s)),u=0,d=s>0?o-4:o;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,a=[],o=0,s=n-r;o<s;o+=16383)a.push(u(e,o,o+16383>s?s:o+16383));1===r?(t=e[n-1],a.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return a.join("")};for(var i=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)i[s]=o[s],r[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,a,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(i[(a=r)>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){ 152/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ 153t.read=function(e,t,n,i,r){var a,o,s=8*r-i-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-u)-1,f>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=c}return(f?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var o,s,l,c=8*a-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+f]=255&s,f+=p,s/=256,r-=8);for(o=o<<r|s,c+=r;c>0;e[n+f]=255&o,f+=p,o/=256,c-=8);e[n+f-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){var i=n(68),r=n(158),a=n(388),o=n(389),s=r.DOMImplementation,l=i.NAMESPACE,c=o.ParseError,u=o.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function f(){this.cdata=!1}function p(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var n=this.options,i=new u,r=n.domBuilder||new f,o=n.errorHandler,s=n.locator,c=n.xmlns||{},h=/\/x?html?$/.test(t),p=h?a.HTML_ENTITIES:a.XML_ENTITIES;s&&r.setDocumentLocator(s),i.errorHandler=function(e,t,n){if(!e){if(t instanceof f)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+m(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(o,r,s),i.domBuilder=n.domBuilder||r,h&&(c[""]=l.HTML),c.xml=c.xml||l.XML;var g=n.normalizeLineEndings||d;return e&&"string"==typeof e?i.parse(g(e),c,p):i.errorHandler.error("invalid doc source"),r.doc},f.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),o=i.length;v(this,a),this.currentElement=a,this.locator&&p(this.locator,a);for(var s=0;s<o;s++){e=i.getURI(s);var l=i.getValue(s),c=(n=i.getQName(s),r.createAttributeNS(e,n));this.locator&&p(i.getLocator(s),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&p(this.locator,n),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&p(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=g.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&p(this.locator,i),v(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&p(this.locator,r),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,m(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,m(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.__DOMHandler=f,t.normalizeLineEndings=d,t.DOMParser=h},function(e,t,n){"use strict";var i=n(68).freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i
vendor: 28,756 bytes, line 153
153({Aacute:"Ã",aacute:"á",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"Ã",acirc:"â",acute:"´",Acy:"Ð",acy:"а",AElig:"Ã",aelig:"æ",af:"â¡",Afr:"ð",afr:"ð",Agrave:"Ã",agrave:"à ",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"Ã
",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"ð¸",aopf:"ð",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"Ã
",aring:"Ã¥",Ascr:"ð",ascr:"ð¶",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"Ã",atilde:"ã",Auml:"Ã",auml:"ä",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"ð
",bfr:"ð",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"ð¹",bopf:"ð",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"¦",Bscr:"â¬",bscr:"ð·",bsemi:"â",bsim:"â½",bsime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"Ã",ccedil:"ç",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"â",cfr:"ð ",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"®",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"ð",coprod:"â",Coproduct:"â",COPY:"©",copy:"©",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"ð",cscr:"ð¸",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"¤",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"°",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"ð",dfr:"ð¡",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"´",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"¨",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"÷",divide:"÷",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"ð»",dopf:"ð",Dot:"¨",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"¨",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"ð",dscr:"ð¹",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"Ã",eacute:"é",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"Ã",ecirc:"ê",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"ð",efr:"ð¢",eg:"âª",Egrave:"Ã",egrave:"è",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"ð¼",eopf:"ð",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"Ã",eth:"ð",Euml:"Ã",euml:"ë",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"ð",ffr:"ð£",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"ð½",fopf:"ð",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"½",frac13:"â
",frac14:"¼",frac15:"â
",frac16:"â
",frac18:"â
",frac23:"â
",frac25:"â
",frac34:"¾",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"ð»",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"ð",gfr:"ð¤",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"ð¾",gopf:"ð",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"ð¢",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"½",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"ð¥",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"ð",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"ð½",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"Ã",iacute:"Ã",ic:"â£",Icirc:"Ã",icirc:"î",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"¡",iff:"â",Ifr:"â",ifr:"ð¦",Igrave:"Ã",igrave:"ì",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"ð",iopf:"ð",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"â",iscr:"ð¾",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"Ã",iuml:"ï",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"ð",jfr:"ð§",jmath:"È·",Jopf:"ð",jopf:"ð",Jscr:"ð¥",jscr:"ð¿",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"ð",kfr:"ð¨",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"ð",kopf:"ð",Kscr:"ð¦",kscr:"ð",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"«",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"ð",lfr:"ð©",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"ð",lopf:"ð",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"ð",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"¯",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"ð",mfr:"ðª",mho:"â§",micro:"µ",mid:"â£",midast:"*",midcir:"â«°",middot:"·",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"ð",mopf:"ð",mp:"â",Mscr:"â³",mscr:"ð",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:" ",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"ð",nfr:"ð«",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:" ",Nopf:"â",nopf:"ð",Not:"⫬",not:"¬",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"ð©",nscr:"ð",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"Ã",ntilde:"ñ",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"Ã",oacute:"ó",oast:"â",ocir:"â",Ocirc:"Ã",ocirc:"ô",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"ð",ofr:"ð¬",ogon:"Ë",Ograve:"Ã",ograve:"ò",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"ð",oopf:"ð ",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"ª",ordm:"º",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"ðª",oscr:"â´",Oslash:"Ã",oslash:"ø",osol:"â",Otilde:"Ã",otilde:"õ",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"Ã",ouml:"ö",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"¶",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"ð",pfr:"ð",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"ð¡",pound:"£",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"ð«",pscr:"ð
",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"ð",qfr:"ð®",qint:"â¨",Qopf:"â",qopf:"ð¢",qprime:"â",Qscr:"ð¬",qscr:"ð",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"»",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"®",reg:"®",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"â",Rfr:"â",rfr:"ð¯",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"ð£",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"ð",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"§",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"ð",sfr:"ð°",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"Â",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"ð",sopf:"ð¤",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"ð®",sscr:"ð",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"¯",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"Ã",Tab:"\t",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"ð",tfr:"ð±",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickSpace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"Ã",thorn:"þ",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"Ã",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"ð",topf:"ð¥",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"ð¯",tscr:"ð",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"Ã",uacute:"ú",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"Ã",ucirc:"û",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"ð",ufr:"ð²",Ugrave:"Ã",ugrave:"ù",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"¨",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"ð",uopf:"ð¦",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"ð°",uscr:"ð",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"Ã",uuml:"ü",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"ð",vfr:"ð³",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"ð",vopf:"ð§",vprop:"â",vrtri:"â³",Vscr:"ð±",vscr:"ð",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"ð",wfr:"ð´",Wopf:"ð",wopf:"ð¨",wp:"â",wr:"â",wreath:"â",Wscr:"ð²",wscr:"ð",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"ð",xfr:"ðµ",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"ð",xopf:"ð©",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"ð³",xscr:"ð",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"Ã",yacute:"ý",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"Â¥",Yfr:"ð",yfr:"ð¶",YIcy:"Ð",yicy:"Ñ",Yopf:"ð",yopf:"ðª",Yscr:"ð´",yscr:"ð",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"ð·",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"ð«",Zscr:"ðµ",zscr:"ð",zwj:"â",zwnj:"â"}),t.entityMap=t.HTML_ENTITIES},
vendor: 1,116 bytes, line 153
153function(e,t,n){var i=n(68).NAMESPACE,r=n(68).tagNamePattern;function a(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function o(){}function s(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function l(e,t,n,r,a,o){function s(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,a),i)}for(var l,c=++t,u=0;;){var d=e.charAt(c);if(0===u&&"<"===d)throw new Error("unexpected < in tag name: "+e.slice(t,c));switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(o.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");s(l,h=e.slice(t,c),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');s(l,h=e.slice(t,c),t),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,c));
vendor: 5,258 bytes, line 153
153case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,c)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=l),4==u?(o.warning('attribute "'+h+'" missed quot(")!'),s(l,h,t)):(i.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),s(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"Â":d=" ";default:if(d<=" ")switch(u){case 0:n.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var h=e.slice(t,c);o.warning('attribute "'+h+'" missed quot(")!!'),s(l,h,t);case 5:u=6}else switch(u){case 2:n.tagName;i.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,u=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function c(e,t,n){for(var r=e.tagName,a=null,o=e.length;o--;){var s=e[o],l=s.qName,c=s.value;if((f=l.indexOf(":"))>0)var u=s.prefix=l.slice(0,f),d=l.slice(f+1),h="xmlns"===u&&d;else d=l,u=null,h="xmlns"===l&&"";s.localName=d,!1!==h&&(null==a&&(a={},n=Object.create(n)),n[h]=a[h]=c,s.uri=i.XMLNS,t.startPrefixMapping(h,c))}for(o=e.length;o--;){(u=(s=e[o]).prefix)&&("xml"===u&&(s.uri=i.XML),"xmlns"!==u&&(s.uri=n[u||""]))}var f;(f=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,f),d=e.localName=r.slice(f+1)):(u=null,d=e.localName=r);var p=e.uri=n[u||""];if(t.startElement(p,d,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(p,d,r),a)for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&t.endPrefixMapping(u)}function u(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),a)}return t+1}function d(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function h(e,t,n,i){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var s=a[1][0],l=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var u=a[o-1];return n.startDTD(s,l,c),n.endDTD(),u.index+u[0].length}}return-1}function f(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function p(){this.attributeNames={}}a.prototype=new Error,a.prototype.name=a.name,o.prototype={parse:function(e,t,n){var o=this.domBuilder;o.startDocument(),function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}(t,t={}),function(e,t,n,o,m){function g(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(m.error("entity not found:"+e),e)}function v(t){if(t>x){var n=e.substring(x,t).replace(/&#?\w+;/g,g);T&&y(x),o.characters(n,0,t-x),x=t}}function y(t,n){for(;t>=_&&(n=w.exec(e));)b=n.index,_=b+n[0].length,T.lineNumber++;T.columnNumber=t-b+1}var b=0,_=0,w=/.*(?:\r\n?|\n)|.*$/g,T=o.locator,S=[{currentNSMap:t}],k={},x=0;for(;;){try{var C=e.indexOf("<",x);if(C<0){if(!e.substr(x).match(/^\s*$/)){var E=o.doc,A=E.createTextNode(e.substr(x));E.appendChild(A),o.currentElement=A}return}switch(C>x&&v(C),e.charAt(C+1)){case"/":var O=e.indexOf(">",C+3),P=e.substring(C+2,O).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),I=S.pop();O<0?(P=e.substring(C+2).replace(/[\s<].*/,""),m.error("end tag name: "+P+" is not complete:"+I.tagName),O=C+1+P.length):P.match(/\s</)?(P=P.replace(/[\s<].*/,""),m.error("end tag name: "+P+" maybe not complete"),O=C+1+P.length):/[ \t\n\r]/.test(P)&&r.test(P.split(/[ \t\n\r]/)[0])&&m.error('end tag name is followed by whitespace and trailing content: "'+P+'"');var L=I.localNSMap,D=I.tagName==P;if(D||I.tagName&&I.tagName.toLowerCase()==P.toLowerCase()){if(o.endElement(I.uri,I.localName,P),L)for(var j in L)Object.prototype.hasOwnProperty.call(L,j)&&o.endPrefixMapping(j);D||m.fatalError("end tag name: "+P+" is not match the current start tagName:"+I.tagName)}else S.push(I);O++;break;case"?":T&&y(C),O=f(e,C,o);break;case"!":T&&y(C),O=h(e,C,o,m);break;default:T&&y(C);var M=new p,R=S[S.length-1].currentNSMap,N=(O=l(e,C,M,R,g,m),M.length);
153if(!M.closed&&d(e,O,M.tagName,k)&&(M.closed=!0,n.nbsp||m.warning("unclosed xml attribute")),T&&N){for(var $=s(T,{}),B=0;B<N;B++){var F=M[B];y(F.offset),F.locator=s(T,{})}o.locator=$,c(M,o,R)&&S.push(M),o.locator=T}else c(M,o,R)&&S.push(M);i.isHTML(M.uri)&&!M.closed?O=u(e,O,M.tagName,g,o):O++}}catch(e){if(e instanceof a)throw e;m.error("element parse error: "+e),O=-1}O>x?x=O:v(Math.max(C,x)+1)}}(e,t,n,o,this.errorHandler),o.endDocument()}},p.prototype={setTagName:function(e){if(!r.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!r.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=o,t.ParseError=a},function(e,t){var n=Math.pow(2,32);e.exports={getUint64:function(e){var t,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(t=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:i.getUint32(0)*n+i.getUint32(4)},MAX_UINT32:n}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){(function(e){var t,n,i,r,a,o,s;XA.component.accessibility=(t=e,document,i=function(e){return t(document.activeElement).closest(e)},r=function(e,t){var n=t;"left"==e&&t.prev()?(t.attr("tabindex","-1"),n=t.prev()):"right"==e&&t.next()&&(t.attr("tabindex","-1"),n=t.next()),n.attr("tabindex","0").trigger("click").focus()},a=function(e,t,n){var i=t.closest("li.item"),r=t,a=i.next(),o=i.prev();"down"==e&&a.length?(n.preventDefault(),t.attr("tabindex","-1"),r=a):"up"==e&&o.length&&(n.preventDefault(),t.attr("tabindex","-1"),r=o),r.find(".toggle-header").attr("tabindex","0").focus()},o={tabs:function(e){var t=i("li.active");t&&(e==n.keys.right?r("right",t):e==n.keys.left&&r("left",t))},accordion:function(e,t,r){var o=i("div.toggle-header");o&&(e==n.keys.down?a("down",o,r):e==n.keys.up?a("up",o,r):t||e!=n.keys.tab?t&&e==n.keys.tab&&a("up",o,r):a("down",o,r))},flip:function(e){var t=i("[class*='Side']");t&&(e!=n.keys.right&&e!=n.keys.left||function(e){var t=e.next().length?e.next():e.prev();e.attr("tabindex","-1"),t.trigger("click").attr("tabindex","0").focus()}(t))}},s=function(e,n,i){var r,a=(r=t(document.activeElement).closest(".initialized")).length?r.attr("class").split(" ")[1]:"";o[a]&&o[a](e,n,i)},(n={}).keys={end:35,home:36,left:37,up:38,right:39,down:40,delete:46,enter:13,space:32,tab:9},n.indexedElements=t("body").find("[tabindex]"),n.watchEvents=function(){t(document).on("keydown",(function(e){var t=e.keyCode,n=e.shiftKey;s(t,n,e)}))},n.initInstance=function(){n.watchEvents(),n.indexedElements.eq(0).attr("tabindex","0")},n.init=function(){n.initInstance()},n),XA.register("accessibility",XA.component.accessibility)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r;XA.component.anchorList=(t=e,document,n=".js-anchor-list-component",i=".js-anchor-link",r=".js-anchor-list",{init:function(){t(n).length>0&&t(n).each((function(e){var n=t(i),a=t(this).find(r),o="";if(n.length>0&&a.length>0){var s="",l=n.length;l>=5&&l<=8?s="anchor-list--columns-two":l>=9&&l<=12?s="anchor-list--columns-three":l>=13&&(s="anchor-list--columns-four"),a.addClass(s),n.each((function(e){o+='<li><a href="#'+t(this).attr("data-magellan-target")+'">'+t(this).attr("data-anchor-title")+"</li>"})),a.html(o)}}))}}),XA.register("anchor-list",XA.component.anchorList)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.accordions=function(e){var t={},n=function(){e(this).addClass("show")},i=function(){e(this).removeClass("show")},r=e("body").hasClass("on-page-editor");function a(e,t){window.dataLayer&&window.dataLayer.push({event:"accordion","accordion-name":t,"accordion-action":e})}function o(a,o){var s=a.hasClass("simple-accordion"),l="click",c=a.find(".toggle-header").filter((function(t,n){return e(n).closest(".accordion").is(a)}));o.expandOnHover&&(l+=" mouseenter"),c.on("mouseover",n),c.on("mouseleave",i),c.on("focus",n),c.on("blur",i),c.on("keyup",(function(e){13==e.keyCode||e.keyCode})),a.hasClass("accordion-horizontal")&&(e(document).ready((function(){!function(t){var n=e(t).width(),i=e(t).find(".item"),r=0;_.each(i,(function(a){var o=e(a).find(".toggle-content"),s=e(a).find(".toggle-header"),l=n-i.length*s.outerWidth();e(a).hasClass("active")&&e(a).css({width:l}),o.css({width:e(t).hasClass("accordion-image")?l+s.outerWidth():l-s.outerWidth()-parseInt(s.css("padding"))}),e(a).find(".toggle-content").height()>r&&(r=e(a).find(".toggle-content").height())}))}(a)})),_.each(c,(function(t){!function(t){var n=e(t),i=e(t).find("img"),r=i.attr("src");r&&(n.parents(".accordion").addClass("accordion-image"),n.css({background:"url("+r+")","background-repeat":"no-repeat","background-size":"cover","background-position":"50% 100%"}),i.hide())}(t)}))),c.on(l,(function(){if(!r||!s){var n=e(this),i=n.closest(".item"),a=n.parents(".accordion"),l=i.find(".toggle-content:first"),c=i.siblings(),u=c.find(".toggle-content");i.find(".field-heading").text();a.hasClass("accordion-horizontal")?t.animateHorizontal.call(this,o):(o.canOpenMultiple||(c.removeClass("active"),u.stop().slideUp({duration:o.speed,easing:o.easing},t.callback(i))),i.toggleClass("active"),o.canToggle?(l.slideToggle({duration:o.speed,easing:o.easing,complete:function(){e([document.documentElement,document.body]).animate({scrollTop:i.offset().top},500)}},t.callback(i)),t.setAnchor(i),t.removeGetParam("accordionId")):l.slideDown({duration:o.speed,easing:o.easing},t.callback(i)))}}))}function s(){var t,n=function(){var t=e(this).parent().siblings();if(t.size()>0)return t.slideToggle(),!1},i=function(t){t.preventDefault();var n=e(this).find(".toggle-icon").parent().siblings();if(n.size()>0)return n.slideToggle(),!1};
153(t=e(".accordion-menu")).find(".toggle-icon").off("click",n),t.find("li").children("a").each((function(){var t=e(this);t.siblings().length>0&&0===t.find(".toggle-icon").length&&t.append('<span class="toggle-icon" aria-hidden="true"></span>')})),t.find(".toggle-icon").on("click",n),t.find("li.level1 > a").on("click",i),t.find("li").removeAttr("style"),e(".toggle-icon").keyup((function(t){var n;" "!==t.key&&"Enter"!==t.key||(n=e(this).parent().siblings()).size()>0&&n.slideToggle()})),e(".accordion-menu .toggle-icon").attr("role","button").attr("tabindex",0).removeAttr("aria-hidden")}return t.callback=function(e){var t=e.find(".field-heading").text();e.hasClass("active")?a("reveal",t):a("retract",t)},t.animateHorizontal=function(n){var i=e(this).parents(".accordion"),r=e(this).closest(".item"),a=r.find(".toggle-header"),o=r.find(".toggle-content"),s=i.find(".item"),l=r.siblings(),c=l.find(".toggle-content");if(r.toggleClass("active"),l.removeClass("active"),l.stop(!0).animate({width:0},n.speed,n.easing,(function(){c.css({display:"none"})})),r.hasClass("active")){var u=i.hasClass("accordion-image")?o.outerWidth():i.width()-((s.length-1)*r.outerWidth()+2),d=i.hasClass("accordion-image")?u:u-a.outerWidth();r.stop(!0).animate({width:u},n.speed,n.easing,(function(){})),o.css({width:d,display:"block"})}else r.stop(!0).animate({width:0},n.speed,n.easing,(function(){o.css({display:"none"})})),t.callback(r)},t.setAnchor=function(e){window.location.hash="#"+e.attr("id")},t.removeGetParam=function(e){var t=new URLSearchParams(location.search);t.delete(e),history.replaceState(null,"","?"+t+location.hash)},t.openAnchoredAccordion=function(n){if(!window.location.hash.includes("e=")){var i=window.location.hash.substring(window.location.hash.indexOf("#faq-"),41);if(i||1!=!(i="#"+t.getUrlParam("accordionId")).length){var r=e(n).find(i+" .toggle-header");null!=r&&r.length&&r.click()}}},t.getUrlParam=function(e){var t=window.location.search;return new URLSearchParams(t).get(e)},t.initInstance=function(n,i){n.find(".toggle-header").eq(0).attr("tabindex","0"),n.hasClass("toggle")&&e.extend(i,{canToggle:!0}),n.find(".toggle-content").hide();var r,a,s=XA.queryString.getQueryParam((a=(r=n)[0].id,r.length>0&&""!=a?a.toLocaleLowerCase():null));if(null!=s)for(var l=s.split(","),c=n.find("ul").first().children(),u=0;u<c.length;u++){var d=c[u];l.indexOf(u+"")>-1&&(e(d).addClass("active"),e(d).find(".toggle-content").show())}else i.expandedByDefault&&(n.find("li:first-child").addClass("active"),n.find("li:first-child").find(".toggle-content").show());o(n,i),t.openAnchoredAccordion(n)},t.init=function(){e(".accordion:not(.initialized)").each((function(){var n=e(this).data("properties"),i=e(this);t.initInstance(i,n),i.addClass("initialized")})),s(),e(".toggle-header").on("click",(function(e){e.preventDefault()})),e(".accordion").prev(".accordion").addClass("accordion-has-sibling")},t}(e),XA.register("accordions",XA.component.accordions)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i;XA.component.archive=(t=e,_,i=function(e){var n=t(e.target);n.siblings("ul").toggle(),n.toggleClass("opened")},(n={}).initInstance=function(e){e.find(".group-header").on("click",i)},n.init=function(){for(var e,i=t(".sxa-archive:not(.initialized)"),r=0,a=i.length;r<a;r++)e=t(i[r]),n.initInstance(e),e.addClass("initialized")},n),XA.register("archive",XA.component.archive)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.breadcrumb=function(e){var t={};function n(e){this.breadcrumb=e,this.hideHistory=[],this.hideHistory.elems=[],this.hideHistory.widths=[]}return n.prototype.getElements=function(e){var t=[];return e.find("li").each((function(){t.push(this)})),t},n.prototype.calculateListElementsWidth=function(t){var n=0;return t.find(">li").each((function(){n+=e(this).width()})),n},n.prototype.calculateWidth=function(){var t,n=e(this.breadcrumb).find("nav>ol"),i=n.width(),r=this.calculateListElementsWidth(n),a=this.getElements(n),o=0;if(i>r+this.hideHistory.widths[this.hideHistory.widths.length-1]){var s=this.hideHistory.elems.pop();this.hideHistory.widths.pop(),e(s).removeClass("item-hide")}for(;i<r&&a.length>2;)o=Math.round(a.length/2)-1,t=e(a[o]),this.hideHistory.elems.push(a[o]),this.hideHistory.widths.push(t.width()),t.addClass("item-hide"),r=this.calculateListElementsWidth(n),a.splice(o,1)},n.prototype.init=function(){var t=this;t.calculateWidth(),e(window).resize((function(){t.calculateWidth()}))},n.prototype.makeNavigation=function(){var t=e(this.breadcrumb);t.find("li > ol").length>0&&t.addClass("breadcrumb-navigation")},t.initInstance=function(t){var i=new n(t);e(t).hasClass("breadcrumb-hide")?i.init():i.makeNavigation()},t.init=function(){e(".breadcrumb:not(.initialized)").each((function(){t.initInstance(e(this)),e(this).addClass("initialized")}))},t}(e,document),XA.register("breadcrumb",XA.component.breadcrumb)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.carousels=function(e){var t={},n=null,i=null;function r(){this.elapsed=0,this.stamp=null}function a(e,t,n){this.view=t,this.view.init(n)}function o(e,t,n){var i=e.extend(!0,{},{isEnabled:!0,hasPrevNextItems:!0,item:{label:"#{index}",selector:null},prevItem:{label:"<",selector:null,isContainer:!1},nextItem:{label:">",selector:null,isContainer:!1},slidesCount:0},n);if(this.$=e,this.$items=e(),this.$nextItem=e(),this.$prevItem=e(),this.$selectedItem=null,i.isEnabled){var r=this;setTimeout((function(){r.prepareItems(i.item,i.slidesCount,t),r.selectItem(0)}),1e3),t.find(".nav").trigger("navigation-created",this)}}function s(){this.canChangeSlide=!0,this.defaults=null,this.navigation=null,this.owner=null,this.preventScheduling=!1,this.settings=null,this.slideTimer=new r,this.timeIndicator=null,this.timers=[],this.timeoutId=null,this.transition=null,this.transitionSettings=new XA.component.carousels.Transitions.TransitionSettings,this.$slides=null,this.$wrapper=null,this.changeCurrentSlide=null,this.getCurrentSlide=null,this.timers.push(this.slideTimer)}function l(e,t,n){var i={navigation:{},timeout:1e4,transition:"BasicTransition",isPauseEnabled:!0,timeIndicator:{isEnabled:!1,selector:null,view:"View",options:{}}};this.context=t,t.owner=this,t.defaults=i,t.settings=e.extend(!0,{},i,n),t.transitionSettings.$slides=t.$slides}function c(){var e=this;this.slider=null,this.$currentSlide=null,this.$slides=null,this.changeCurrentSlide=function(t){e.$currentSlide=t,e.slider.selectNavigationItem(t.index())},this.getCurrentSlide=function(){return e.$currentSlide},this.data={}}return r.prototype.update=function(){null!==this.stamp&&(this.elapsed+=this.newStamp()-this.stamp)},r.prototype.set=function(){this.stamp=this.newStamp()},r.prototype.newStamp=function(){return(new Date).valueOf()},r.prototype.reset=function(){this.elapsed=0},a.prototype=new r,a.constructor=r,a.prototype.play=function(){this.view.play()},a.prototype.pause=function(){this.view.pause()},a.prototype.reset=function(){r.prototype.reset.call(this),this.view.reset()},a.prototype.update=function(){r.prototype.update.call(this),this.view.update(this.elapsed)},n=function(e){function t(t){var n,i=t.text;return t.text="",t.href="#",n=e("<a>",t),e("<span>",{text:i}).appendTo(n),n}return{getElement:function(t){var n=e(t);return 0===n.length&&(n=null),n},createItems:function(e,n,i){var r,a=/#\{index\}/g;for(r=0;r<i;r++)t({text:n.replace(a,r+1)}).appendTo(e)},createPrevNextItem:function(n,i,r){var a=null,o=null!==n.selector;return o&&(r=this.getElement(n.selector)),null!==r&&(n.isContainer||!o?(a=t(e.extend({},{text:n.label},i)),r.first()[n.method](a)):a=r.first()),a}}}(e),o.prototype.selectedItemClass="active",o.prototype.selectItem=function(e){null!==this.$selectedItem&&this.$selectedItem.removeClass(this.selectedItemClass),this.$selectedItem=this.$items.eq(e).addClass(this.selectedItemClass)},o.prototype.prepareItems=function(t,i,r){var a=null;return null!==t.selector?a=n.getElement(t.selector):(a=e("<div/>",{class:"nav"})).appendTo(r),null!==a&&(0===a.children().length&&n.createItems(a,t.label,i),this.$items=a.children().slice(0,i)),a},o.prototype.preparePrevNextItems=function(e,t){var i;e.prevItem.method="prepend",i=n.createPrevNextItem(e.prevItem,{class:"prev"},t),this.$prevItem=null===i?this.$prevItem:i,e.nextItem.method="append",
153i=n.createPrevNextItem(e.nextItem,{class:"next"},t),this.$nextItem=null===i?this.$nextItem:i},l.prototype.executeOnTimers=function(e,t){var n=null,i=null,r=t.timers;for(n=0;n<r.length;n++)"function"==typeof(i=r[n])[e]&&i[e]()},l.prototype.descheduleSlide=function(e){null!==e.timeoutId&&(clearTimeout(e.timeoutId),e.timeoutId=null)},l.prototype.scheduleSlide=function(e){var t=e.owner;t.descheduleSlide(e),!e.preventScheduling&&e.$slides.length>1&&(t.executeOnTimers("set",e),e.canChangeSlide?(null!==e.timeIndicator&&e.timeIndicator.play(),e.timeoutId=setTimeout((function(){t.changeCurrentSlideBy(1,e)}),e.settings.timeout-e.slideTimer.elapsed)):setTimeout((function(){t.scheduleSlide(e)}),100))},l.prototype.changeCurrentSlideBy=function(t,n){var i=n.transitionSettings,r=n.getCurrentSlide(),a=n.$slides;t%a.length!=0&&(n.canChangeSlide=!1,i.offset=t,i.$currentSlide=r,i.$nextSlide=a.eq((r.index()+t)%a.length),n.changeCurrentSlide(i.$nextSlide),n.transition.perform(n.transitionSettings,t),n.owner.executeOnTimers("reset",n)),e(n.$wrapper).parents(".carousel").trigger("slide-changed")},l.prototype.run=function(){this.executeOnTimers("reset",this.context),this.scheduleSlide(this.context)},l.prototype.onChangeCurrentSlide=function(e,t,n){var i=n.owner;e.preventDefault(),n.canChangeSlide&&(i.descheduleSlide(n),i.changeCurrentSlideBy(t,n))},l.prototype.selectNavigationItem=function(e){this.context.navigation.selectItem(e)},i=function(e){var t=-1,n=1;function i(e,t,n){var i=t.owner,r=t.$wrapper.find(".nav-items");r.find(".active").attr("tabindex","-1"),i.onChangeCurrentSlide(e,n,t),r.find(".active").attr("tabindex","0")}function r(r){r.settings.navigation.slidesCount=r.$slides.length,r.navigation=new o(e,r.$wrapper,r.settings.navigation),setTimeout((function(){!function(r){var a=r.owner,o=r.$wrapper.find(".nav-items"),s=r.$wrapper.find(".prev-text"),l=r.$wrapper.find(".next-text"),c=r.$wrapper.parents(".carousel");r.navigation.$items.each((function(t){var n=r.$slides.eq(t);e(this).click((function(e){a.onChangeCurrentSlide(e,n.index()-r.getCurrentSlide().index(),r)}))})),s.click((function(e){i(e,r,t)})),l.click((function(e){i(e,r,n)})),r.navigation.$prevItem.click((function(e){i(e,r,t)})),r.navigation.$nextItem.click((function(e){i(e,r,n)})),o.on("keydown",(function(o){switch(o.keyCode){case 37:i(o,r,t),e(this).parent().find(".active").focus();break;case 39:i(o,r,n),e(this).parent().find(".active").focus();break;case 13:!function(e){var t=e.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]');if(0!==t.length){t[0].focus()}}(a.context.getCurrentSlide())}})),c.on("slide-changed",(function(e){var t=o.find(".active");t.attr("tabindex","0"),o.find(document.activeElement).length&&t.focus(),o.find(">div").not(".active").attr("tabindex","-1")}))}(r)}),1e3),r.settings.isPauseEnabled&&function(e){var t=e.owner,n=e.$wrapper,i=n.find(".nav a"),r=function(){e.preventScheduling=!0,t.descheduleSlide(e),t.executeOnTimers("update",e),null!==e.timeIndicator&&e.timeIndicator.pause()};n.mouseenter(r),i.on("focus",r);var a=function(){e.preventScheduling=!1,t.scheduleSlide(e)};n.mouseleave(a),i.on("blur",a)}(r)}return{initialize:function(t){r(t),function(e){var t=null,n=e.owner;e.transitionSettings.callback=function(){e.canChangeSlide=!0,e.preventScheduling?n.executeOnTimers("reset",e):n.scheduleSlide(e)},null==(t=XA.component.carousels.Transitions[e.settings.transition])&&(t=XA.component.carousels.Transitions[e.defaults.transition]),e.transition=new t,e.transition.init(e.transitionSettings)}(t),t.settings.timeIndicator.isEnabled&&function(t){var n=t.settings,i=null,r=XA.component.carousels.IndicatorViews[n.timeIndicator.view],o=null;null!==r&&(o=new r(n.timeIndicator.selector,n.timeIndicator.options),i=new a(e,o,n.timeout),t.timeIndicator=i,t.timers.push(i))}(t)}}}(e),c.prototype.reset=function(){this.$slides.each((function(){e(this).hide()})),this.changeCurrentSlide(this.$slides.first()),this.$currentSlide.show()},c.prototype.init=function(t,n){var r=e("<div/>",{class:"wrapper"}),a=null;r.append(t.children().detach()),t.append(r),this.$slides=t.find(".slides li.slide"),(a=new s).changeCurrentSlide=this.changeCurrentSlide,a.getCurrentSlide=this.getCurrentSlide,a.$slides=this.$slides,a.$wrapper=r,this.slider=new l(e,a,n),i.initialize(a),this.reset(),this.slider.run()},c.prototype.swipeSlide=function(){var e=this,t=this.slider.context.$wrapper,n=new Hammer(t[0]);n.get("pan").set({direction:Hammer.DIRECTION_HORIZONTAL}),n.on("swipeleft",(function(t){e.slider.context.owner.onChangeCurrentSlide(t,1,e.slider.context)})),n.on("swiperight",(function(t){e.slider.context.owner.onChangeCurrentSlide(t,-1,e.slider.context)}))},c.prototype.maxSlideInfoHeight=function(){var e=0;(n=this.$slides[0]&&this.$slides[0].querySelector(".slide-info"))&&(e=n.offsetHeight);for(var t=1;t<this.$slides.length;t++){var n;if(n=this.$slides[t].querySelector(".slide-info")){var i=n.offsetHeight;e<i&&(e=i)}}return e},c.prototype.resizeWrapper=function(){var e=this.maxSlideInfoHeight();this.slider.context.$wrapper.find(".slide-info").css({"min-height":e})},t.initInstance=function(t){var n,i,r,a,o=t.data("properties"),s=(t=t.find(".carousel-inner")).attr("data-id"),l=(t.eq(0),parseInt(XA.queryString.getQueryParam(t.closest(".component.carousel").attr("id")||"carousel"))),u=void 0!==l&&!isNaN(l)&&l<t.find(".sxa-numbers").length;if(o){o.navigation||(o.navigation={item:{},prevItem:{},nextItem:{},isEnabled:!u}),o.navigation.item.selector="[data-id='"+s+"'] .nav-items",o.navigation.prevItem.selector="#"+s+" .nav",o.navigation.nextItem.selector="#"+s+" .nav";var d=new c(e);d.init(t,o),e(document).ready((function(){d.resizeWrapper()})),u?(i=(n=d.slider.context).transitionSettings,r=n.getCurrentSlide(),a=n.$slides,n.canChangeSlide=!1,i.$currentSlide=r,i.$nextSlide=e(a[l]),n.changeCurrentSlide(i.$nextSlide),n.transition.perform(n.transitionSettings),n.owner.executeOnTimers("reset",n),n.navigation.prepareItems(o.navigation.item,a.length,e(n.$wrapper)),n.navigation.selectItem(l)):d.swipeSlide()}},t.init=function(){e(".carousel:not(.initialized)").each((function(){t.initInstance(e(this)),e(this).addClass("initialized")}))},t}(e),XA.register("carousels",XA.component.carousels),XA.component.carousels.Transitions=function(){var e={};function t(){}function n(){}function i(){}function r(){}function a(){}function o(){}return t.prototype.$currentSlide=null,t.prototype.$nextSlide=null,t.prototype.$slides=null,t.prototype.offset=0,t.prototype.callback=null,e.TransitionSettings=t,n.prototype=new n,n.prototype.init=function(e){},n.prototype.factor=function(e){return e.offset>0?1:-1},n.prototype.perform=function(e){e.callback()},e.Transition=n,i.prototype=new n,i.constructor=i,i.prototype.perform=function(e){e.$currentSlide.hide(),e.$nextSlide.show(),e.callback()},e.BasicTransition=i,r.prototype=new n,r.constructor=r,r.prototype.init=function(){},r.prototype.perform=function(e){var t=e.$slides.parent(),n=e.$nextSlide;t.css("z-index",0),n.css("z-index",1),e.$slides.css({position:"relative"}),e.$nextSlide.css({position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}),n.fadeIn((function(){e.$currentSlide.hide(),e.$nextSlide.css({position:"relative",left:"0",transform:"none"}),n.css("z-index",""),t.css("z-index",""),e.callback()}))},e.FadeInTransition=r,a.prototype=new n,a.constructor=a,a.prototype.onAnimationComplete=function(e,t){e.$currentSlide.hide(),e.$nextSlide.css({top:"",bottom:"",left:"",position:"",width:""}),t.css({left:""}),t.css("margin-left",""),e.callback()},a.prototype.perform=function(e,t){var n=this.factor(e),i=this.onAnimationComplete,r=e.$currentSlide.width(),a=e.$slides.parent();e.$nextSlide.css({top:"0",bottom:"0",left:"100%",position:"absolute",width:"100%"}),t>0?e.$nextSlide.css({left:"100%"}):e.$nextSlide.css({left:"-100%"}),e.$nextSlide.show(),a.animate({left:-n*r+"px"},(function(){i(e,a)}))},e.SlideHorizontallyTransition=a,o.prototype=new n,o.constructor=o,o.prototype.onAnimationComplete=function(e,t){e.$currentSlide.hide(),e.$nextSlide.css({top:"",bottom:"",left:"",right:"",position:"",width:""}),t.css("top",""),t.css("margin-top",""),e.callback()},o.prototype.perform=function(e,t){var n=this.factor(e),i=this.onAnimationComplete,r=e.$currentSlide.height(),a=e.$slides.parent();e.$nextSlide.css({left:"0",right:"0",position:"absolute",width:"100%"}),t>0?e.$nextSlide.css({top:"-100%",bottom:"100%"}):e.$nextSlide.css({top:"100%",bottom:"-100%"}),e.$nextSlide.show(),a.animate({top:n*r},(function(){i(e,a)}))},e.SlideVerticallyTransition=o,e}(),XA.component.carousels.IndicatorViews=function(e){var t={},n=null;function i(e){var t,i=!1;for(null===n&&(n=document.createElement("supportElement").style),t=0;t<e.length;t++)if(void 0!==n[e[t]]){i=!0;break}return i}function r(){return i(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])}function a(t,n){this.$indicator=e(t)}function o(t,n){a.call(this,t);this.settings=e.extend(!0,{},{opacity:.8},n),this.$container=this.$indicator,this.$indicator=this.$indicator.find("div")}function s(t,n){a.call(this,t);function i(e){var t="rotate("+e+"deg)";return{"-webkit-transform":t,"-moz-transform":t,"-o-transform":t,"-ms-transform":t,transform:t}}function r(t,n){var r={fontSize:"180px",animateOptions:{step:function(e){t.css(i(e))},easing:"linear"}},a=e.extend(!0,{},r,n);t.animate({"font-size":a.fontSize},a.animateOptions)}function o(e,t,n){t.addClass("half"),e.addClass("half"),r(t,{fontSize:"360px",animateOptions:{duration:n}})}this.settings=e.extend(!0,{},{opacity:.5},n),this.$mask=this.$indicator.find("span.mask").first(),this.$rotator=this.$indicator.find("span.rotator").first(),this.resetCss=function(){this.$rotator.removeClass("half"),this.$rotator.css(i(0)),this.$rotator.css("font-size","0p
153x"),this.$mask.removeClass("half")},this.playPhaseOne=function(){var e=this.timeout/2-this.timeElapsed;!function(e,t,n,i){r(t,{animateOptions:{duration:n,complete:function(){o(e,t,i)}}})}(this.$mask,this.$rotator,e,this.timeout/2)},this.playPhaseTwo=function(){var e=this.timeout-this.timeElapsed;o(this.$mask,this.$rotator,e)}}return t.Tools={},t.Tools.isCssSupported=i,t.Tools.isTransformSupported=r,a.prototype.init=function(e){this.timeElapsed=0,this.timeout=e},a.prototype.reset=function(){this.timeElapsed=0},a.prototype.play=function(){},a.prototype.pause=function(){},a.prototype.update=function(e){this.timeElapsed=e},t.View=a,o.prototype=new a,o.constructor=o,o.prototype.init=function(e){a.prototype.init.call(this,e);var t=this.settings.opacity;this.$container.css("opacity",t),this.$indicator.css("opacity",t)},o.prototype.reset=function(){a.prototype.reset.call(this),this.$indicator.stop(!0),this.$indicator.css("width","0px")},o.prototype.pause=function(){this.$indicator.stop(!0)},o.prototype.play=function(){this.$indicator.animate({width:"100%"},this.timeout-this.timeElapsed,"linear")},t.ProgressBarView=o,s.prototype=new a,s.constructor=s,s.prototype.init=function(e){a.prototype.init.call(this,e),r()&&(this.$indicator.show(),this.$mask.css("opacity",this.settings.opacity))},s.prototype.reset=function(){a.prototype.reset.call(this),this.$rotator.stop(!0),this.resetCss()},s.prototype.pause=function(){this.$rotator.stop(!0)},s.prototype.play=function(){var e=this.playPhaseOne;this.timeElapsed>=this.timeout/2&&(e=this.playPhaseTwo),e.call(this)},t.RotatorView=s,t}(e)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.parallax=function(e,t){var n={};function i(){return e(window).width()<768}return n.initInstance=function(n){!function(n){var r=n.children(".component-content"),a=e(window).height(),o=r[0].offsetTop,s=r[0].offsetHeight,l=i();function c(){if(l)return!1;var t=e(window).scrollTop();o<=t+a&&o+s>=t&&r.css("background-position","50% "+Math.round(3*(o-t)/8)+"px")}c(),e(document).on("scroll",t.throttle(c,10)),e(window).on("resize",t.throttle((function(){(l=i())?r.css("background-position","50% 0"):c()}),150))}(n)},n.init=function(){e(".parallax-background:not(.initialized)").each((function(){n.initInstance(e(this)),e(this).addClass("initialized")}))},n}(e,_),XA.register("parallax-background",XA.component.parallax)}).call(this,n(1))},function(e,t,n){(function(e){var t;XA.component.countDownTimer=(document,(t={}).init=function(){var e=document.querySelectorAll(".js-countdown-timer");if(e.length>0)for(var t=function(e){var t,n,i,r,a,o,s,l,c,u;n=(t=e).dataset.date.replace(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/,"$1-$2-$3T$4:$5:$6Z"),i=new Date(n),r=t.getElementsByClassName("countdown__items")[0],a=t.getElementsByClassName("days")[0],o=t.getElementsByClassName("hours")[0],s=t.getElementsByClassName("minutes")[0],l=t.getElementsByClassName("seconds")[0],c=t.getElementsByClassName("countdown__end-message")[0],u=setInterval((function(){var e=Date.parse(i)-Date.parse(new Date),t=Math.floor(e/1e3%60),n=Math.floor(e/1e3/60%60),d=Math.floor(e/36e5%24),h=Math.floor(e/864e5);a.innerHTML="<span class='countdown__number'>"+h+"</span><span class='countdown__unit'>"+(1==h?"Day":"Days")+"</span>",o.innerHTML="<span class='countdown__number'>"+d+"</span><span class='countdown__unit'>"+(1==d?"Hour":"Hours")+"</span>",s.innerHTML="<span class='countdown__number'>"+n+"</span><span class='countdown__unit'>"+(1==n?"Minute":"Minutes")+"</span>",l.innerHTML="<span class='countdown__number'>"+t+"</span><span class='countdown__unit'>"+(1==t?"Second":"Seconds")+"</span>",e<=0&&(clearInterval(u),c.classList.add("show"),r.classList.add("hide"))}),1e3)},n=0;n<=e.length-1;n++)t(e[n])},t),XA.register("countdown-timer",XA.component.countDownTimer)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.disqus=function(e,t){var n={};return n.initInstance=function(e,n){window.disqus_config=function(){this.page.url=n.disqus_url,this.page.identifier=n.disqus_identifier,this.page.title=n.disqus_title,this.page.category_id=n.disqus_category_id},e.find("#disqus_thread").length>0&&function(e){var n=t.createElement("script");n.type="text/javascript",n.async=!0,n.src="//"+e.disqus_shortname+".disqus.com/embed.js",(t.getElementsByTagName("head")[0]||t.getElementsByTagName("body")[0]).appendChild(n)}(n)},n.init=function(){e(".disqus:not(.initialized)").each((function(){var t=e(this).data("properties");n.initInstance(e(this),t),e(this).addClass("initialized")}))},n}(e,document),XA.register("disqus",XA.component.disqus)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.facebook=function(e,t){var n={initInstance:function(){var e,n,i,r,a;n="script",i="facebook-jssdk",a=(e=t).getElementsByTagName(n)[0],e.getElementById(i)||((r=e.createElement(n)).id=i,r.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7",a.insertBefore(r,a.firstChild))},init:function(){e(".fb-comments:not(.initialized)").each((function(){n.initInstance(),e(this).addClass("initialized")}))}};return n}(e,document),XA.register("facebook",XA.component.facebook)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.flash=function(e){var t={};function n(e){var t=e.attr("height"),n=e.attr("width"),i=t*e.width()/n;e.height(i)}return t.initInstance=function(t,i){!function(e,t){e.find(".component-content > div").flash(t)}(t,i),function(t){e(document).ready((function(){var i=t.find("embed");i.css("width","100%"),n(i),e(window).resize((function(){n(i)}))}))}(t)}
153,t.init=function(){var n=e(".flash:not(.initialized)");n.length>0&&n.each((function(){var n=e(this).data("properties");t.initInstance(e(this),n),e(this).addClass("initialized")}))},t}(e,document),XA.register("flash",XA.component.flash)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i;XA.component.flip=(t=e,document,n=!1,(i={equalSideHeight:function(e){var t=e.find(".Side0"),n=e.find(".Side1"),i=this.calcSlideSizeInToggle(t),r=this.calcSlideSizeInToggle(n),a=Math.max(i,r);e.find(".flipsides").css({"min-height":a+"px"}),t.add(n).css({bottom:0})},calcSlideSizeInToggle:function(e){var n=e.find(">div"),i=0;return n.each((function(e,n){i+=t(n).outerHeight(!0)})),i+=parseInt(e.css("padding-top")),i+=parseInt(e.css("padding-bottom"))},equalSideHeightInToggle:function(e){var t=e.find(".Side0"),n=e.find(".Side1"),i=this.calcSlideSizeInToggle(t),r=this.calcSlideSizeInToggle(n),a=Math.max(i,r);e.find(".flipsides").css({"min-height":a+"px"}),t.add(n).css({bottom:0})}}).initInstance=function(e){e.find('[class*="Side0"]').attr("tabindex","0"),e.hasClass("flip-hover")&&!("ontouchstart"in window)?e.hover((function(){e.addClass("active")}),(function(){e.removeClass("active")})):e.on("click",(function(){e.toggleClass("active")}))},i.initFlips=function(){t(".flip:not(.initialized)").each((function(){t(this).find(".flipsides").find(".Side0").attr("tabindex","0"),i.initInstance(t(this)),t(this).addClass("initialized"),i.equalSideHeight(t(this))}))},i.init=function(){t(window).on("resize",(function(){t(".flip.initialized").each((function(){i.equalSideHeight(t(this))}))})),n?i.initFlips():t(document).ready((function(){i.initFlips(),n=!0}))},i),XA.register("flip",XA.component.flip)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.calendar=function(e){function t(e,t){this.data=t.data,this.selector=e,this.options=t,this.events=[],this.checkSource()}function n(t,n,i){var r=this,a="",o="",s="";for(var l in"gcalendar"===n.dataType?(googleCalendarApiKey=n.calendarApiKey,i=n.calendarId):googleCalendarApiKey=null,n.showPrevNext&&(a="prev, next"),n.showMonthCaptions&&(o="title"),n.calendarTypes)"day"===n.calendarTypes[l]?n.calendarTypes[l]="basicDay":"week"===n.calendarTypes[l]&&(n.calendarTypes[l]="basicWeek");n.calendarTypes.length>1&&(s=n.calendarTypes.join()),e(t).fullCalendar({monthNames:n.localization.monthNames,monthNamesShort:n.localization.monthNamesShort,dayNames:n.localization.dayNames,dayNamesShort:n.localization.dayNamesShort,nextDayThreshold:"00:00",buttonText:{agendaDay:"agenda day",agendaWeek:"agenda week"},header:{left:a,center:o,right:s},googleCalendarApiKey:googleCalendarApiKey,events:i,renderEvent:!1,eventRender:function(t,i){n.compactView&&"json"===n.dataType?e(i).css("display","none"):"json"===n.dataType&&r.attachTooltip(t,i,!1),i.addClass(t.eventClass)},eventAfterAllRender:function(){n.compactView&&"json"===n.dataType&&r.renderCompactCalendarEvents(t,i)}})}t.prototype.checkSource=function(){switch(this.options.dataType){case"json":this.getJson(),new n(this.selector,this.options,this.events);break;case"gcalendar":new n(this.selector,this.options,this.events)}},t.prototype.getJson=function(){var t,n,i=this,r=[];e.each(i.data,(function(){t=new Date(this.eventStart),n=new Date(this.eventEnd),t===n&&!0,r={title:this.eventName,start:t,end:n,eventDescription:this.eventDescription,eventLink:this.eventLink,eventClass:this.eventClass},i.events.push(r)}))},n.prototype.attachTooltip=function(t,n,i){var r,a;e(n).on("mouseenter",(function(){var n;a="",e(".calendar-tooltip").fadeOut(),e(".calendar-tooltip").remove(),i?(a="",e.each(t,(function(){a+="<div class='compact-event'><span class='title'>"+this.title+"</span><span class='description'>"+this.eventDescription+"</span><span class='link'><a href='"+this.eventLink+"'>Link</a></span></div>"}))):a="<span class='description'>"+t.eventDescription+"</span><span class='link'>"+t.eventLink+"</span>",(r=e("<div style='border-radius:5px;border:1px solid #000;position:absolute;z-index:999; paading:5px;background:#FFF' class='calendar-tooltip'><div class='arrow'></div><div class='events'>"+a+"</div></div>")).css({left:e(this).offset().left}),r.css({top:e(this).offset().top-e(this).height()}),e("body").append(r),e(this).unbind("mouseleave"),e(this).on("mouseleave",(function(){n=setTimeout((function(){r.fadeOut((function(){e(this).remove()}))}),300),r.unbind("mouseenter"),r.on("mouseenter",(function(){clearTimeout(n)}))})),r.unbind("mouseleave"),r.on("mouseleave",(function(){e(this).fadeOut((function(){e(this).remove()}))}))}))},n.prototype.renderCompactCalendarEvents=function(t,n){var i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y=this,b=[];e(t).find(".fc-day").each((function(){i=this,r=new Date(e(this).data("date")),o=r.getDate(),s=r.getMonth(),l=r.getFullYear(),b=[],e.each(n,(function(){a=this,g=new Date(this.start),c=g.getDate(),u=g.getMonth(),d=g.getFullYear(),this.end&&(v=new Date(this.end),h=v.getDate(),f=v.getMonth(),p=v.getFullYear(),m=v.getHours()),l>=d&&l<=p&&s>=u&&s<=f&&o>=c&&o<=h&&(l==p&&s==f&&o==h&&m<9||(e(i).addClass("selected-day"),b.push(a)))})),b.length&&y.attachTooltip(b,i,!0)}))};var i={};return i.initInstance=function(n,i){var r="#"+n.find(".event-calendar-inner").attr("id");i.compactView&&"json"===i.dataType&&e(this).addClass("compact-mode"),new t(r,i),e(window).resize((function(){!function(t){e(t).fullCalendar("render")}(r)}))},i.init=function(){e(".event-calendar:not(.initialized)").each((function(){var t=e(this).data("properties");i.initInstance(e(this),t),e(this).addClass("initialized")}))},i}(e,document),XA.register("calendar",XA.component.calendar)}
153).call(this,n(1))},function(e,t,n){(function(e){var t,n;XA.component.galleria=(t=e,document,n={initInstance:function(n,i){var r=n.find(".gallery-inner").attr("id"),a=t('script[src="'+i.theme+'"]');a&&a.remove(),t(document).ready((function(){var t=i.height?i.height:"250px",n=Object.assign({},i);delete n.theme,e("#"+r).css("height",t),Galleria.loadTheme(i.theme),Galleria.run("#"+r,n),Galleria.ready((function(){this.bind("image",(function(e){e.imageTarget.alt=e.galleriaData.title}))}))}))},init:function(){t(".gallery:not(.initialized)").each((function(){var e=t(this).data("properties");n.initInstance(t(this),e),t(this).addClass("initialized")}))}}),XA.register("galleria",XA.component.galleria)}).call(this,n(1))},function(e,t,n){(function(e){var t,n;XA.component.uwaXaHeader=(t=e,document,n=".header-masterbrand",{init:function(){var e,i,r;t(n).length>0&&(t(".header-masterbrand .breadcrumb-item.last").hasClass("home")?(i=t(".header-masterbrand .breadcrumb-item.last").find("a").attr("href"),e=t(".header-masterbrand .breadcrumb-item.last").find("a").text(),r='\n <li class="breadcrumb-item breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle icon-only">\n <a title="Home" href="'.concat(i,'">\n <span class="home-icon--mobile"></span>\n </a>\n </div>\n </li>\n <li class="breadcrumb-item breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle">\n <span class="separator">></span>\n ').concat(e,"\n </div>\n </li>\n ")):(i=t(".header-masterbrand .breadcrumb-item.last").prev().find("a").attr("href"),e=t(".header-masterbrand .breadcrumb-item.last").prev().find("a").text(),r='\n <li class="breadcrumb-item breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle icon-only">\n <span class="separator fa fa-chevron-left"></span>\n </div>\n </li>\n <li class="breadcrumb-item breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle">\n <a title="'.concat(e,'" href="').concat(i,'">').concat(e,"</a>\n </div>\n </li>\n ")),t(".header-masterbrand .breadcrumb-item.last").parent().append(r))}}),XA.register("uwa-xa-header",XA.component.uwaXaHeader)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var t,i,r=n(169),a=n(70);XA.component.imageGallery=(t=e,document,i={initInstance:function(e,t){var n=e.find(".gallery-swiper")[0];if(n){for(var i=new r.a(n,{modules:[a.c,a.d,a.a,a.b],observer:!0,observeParents:!0,slidesPerView:1,normalizeSlideIndex:!0,pagination:{el:".swiper-pagination",type:"fraction"},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},a11y:!0,keyboard:!0}),o=document.querySelectorAll(".gallery-image"),s=document.querySelectorAll("[data-gallery]"),l=document.querySelectorAll(".gallery-modal"),c=0;c<=o.length-1;c++)o[c].addEventListener("click",(function(e){var t=e.currentTarget.dataset.slide;i.slideTo(t,100,!1)}));for(var u=0;u<=s.length-1;u++)s[u].addEventListener("click",(function(e){var t=e.currentTarget.dataset.gallery;document.getElementById(t).classList.add("open")}));for(var d=function(e){var t=e.querySelector(".gallery-swiper");e.addEventListener("click",(function(n){t.contains(n.target)||function(e){e.classList.remove("open")}(e)}))},h=0;h<=l.length-1;h++)d(l[h])}},init:function(){t(".image-gallery:not(.initialized)").each((function(){var e=t(this).data("properties");i.initInstance(t(this),e),t(this).addClass("initialized")})),document.addEventListener("keyup",(function(e){if("Escape"===e.key){var t=document.querySelectorAll(".gallery-modal.open");console.log("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/component-image-gallery.js (85:20)","modalOpen = ",t,t.length),t[0].classList.remove("open")}}),!1)}}),XA.register("image-gallery",XA.component.imageGallery)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.languageSelector=function(e){var t={};function n(e){return"flags-"+e.data("country-code")}return t.initInstance=function(t){var i,r,a,o,s;i=e(t),r=i.find(".language-selector-select-item"),a=i.find(".language-selector-item-container"),o=a.find(".language-selector-item"),s=n(r),r.f
153ind(">a").addClass(s),a.find(".language-selector-item").each((function(){s=n(e(this)),e(this).find(">a").addClass(s)})),r.on("click",(function(){a.slideToggle()})),o.on("click",(function(){var t=e(this).find("a").attr("href");window.location.href=t}))},t.init=function(){e(".language-selector:not(.initialized)").each((function(){t.initInstance(this),e(this).addClass("initialized")}))},t}(e,document),XA.register("language-selector",XA.component.languageSelector)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.linkList=(document,{init:function(){for(var e=document.querySelectorAll("#content .js-link-list"),t=0;t<e.length;t++){var n=e[t].querySelectorAll("li").length;n>=5&&n<=8?e[t].classList.add("link-list--columns-two"):n>=9&&n<=12?e[t].classList.add("link-list--columns-three"):n>=13&&e[t].classList.add("link-list--columns-four")}}}),XA.register("link-list",XA.component.linkList)}).call(this,n(1))},function(e,t,n){(function(e,t){var n;XA.component.uwaNavigationMobile=(document,(n={}).init=function(){t.fn.slideMobileMenu=function(e){var n={hamburgerId:"navigation-toggle js-navigation-toggle",wrapperClass:"navigation-mobile js-navigation-mobile",submenuClass:"sub-navigation",onMenuLoad:function(){return!0},onMenuToggle:function(){return!0}};if(0===this.length)return this;var i={},r=t(this),a=function(){i.hamburger=t("<button/>",{id:i.settings.hamburgerId,class:i.settings.hamburgerId,type:"button","data-target":"#mega-menu","aria-controls":"mega-menu","aria-expanded":"false","aria-label":"Toggle navigation",html:"<span></span><span></span><span></span><span></span>"}),i.smmOuter=t("<nav/>",{class:i.settings.wrapperClass}),r.clone().appendTo(i.smmOuter),i.smmOuter.appendTo(t("#header")),i.hamburger.appendTo(t("#header"))},o=function(){i.smmOuter.find(".sub-navigation").each((function(){var e=t(this),n=e.closest("li"),i=(n.find("a"),t("<li/>",{html:"<a href='#' class='main-navigation__back js-navigation-back'>Back</a>"}));n.addClass("has-child"),i.prependTo(e)}))};i.settings=t.extend({},n,e),a(),o(),"function"==typeof i.settings.onMenuLoad&&i.settings.onMenuLoad(r),t(".js-navigation-toggle").on("click",(function(e){e.preventDefault(),t(".js-navigation-mobile").addClass("overflow")&&t(".js-navigation-mobile").removeClass("overflow"),t(".js-navigation-toggle").toggleClass("open"),t("body").toggleClass("mobile-menu-active"),t(".js-navigation-mobile").toggleClass("active").find("li.active").removeClass("active"),setTimeout((function(){t(".js-navigation-mobile").addClass("overflow")}),500)})),i.smmOuter.find("li.has-child > .nav-toggle").on("click",(function(e){e.preventDefault(),t(".js-navigation-mobile").removeClass("overflow"),t("."+i.settings.wrapperClass).scrollTop(0),t(this).closest("li").addClass("active").siblings().removeClass("active"),setTimeout((function(){t(".js-navigation-mobile").addClass("overflow")}),500);var n=t(this).parent("li"),r=0;t(n).find(".js-sub-navigation > li").each((function(){r+=t(this).innerHeight()}));var a=r+60;t(n).find(".featured-link").css("top",a)})),i.smmOuter.find(".js-navigation-back").on("click",(function(e){e.preventDefault(),t(".js-navigation-mobile").removeClass("overflow"),t(this).closest(".sub-navigation").closest(".has-child").removeClass("active"),setTimeout((function(){t(".js-navigation-mobile").addClass("overflow")}),500)}))}},n),XA.register("uwa-navigation-mobile",XA.component.uwaNavigationMobile)}).call(this,n(1),n(1))},function(e,t,n){(function(e){XA.component.uwaNavigation=function(e){var t={init:function(){!function(){window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e("body").on("click",".js-main-navigation > .submenu > a",(function(t){e(window).width()>991&&t.preventDefault();var n=e(this).parent("li");e(".js-main-navigation > li").removeClass("active-state"),e("body").addClass("desktop-menu-active"),n.addClass("active-state")})),e(".js-main-navigation .main-navigation__mega-menu-btn--close").on("click",(function(t){t.preventDefault(),e(".js-main-navigation li").removeClass("active-state"),e("body").removeClass("desktop-menu-active")})),e(".js-main-navigation .main-navigation__mega-menu-btn--close").on("keydown",(function(t){"Enter"===t.key&&(e(".js-main-navigation li").removeClass("active-state"),e("body").removeClass("desktop-menu-active"))}));var t=window.location.pathname.toLowerCase();e(".js-in-page-navigation").find("ul li a").each((function(){e(this).closest("li").toggleClass("active-page",e(this).attr("href").toLowerCase()==t||e(this).attr("href")+"/"==t)})),setTimeout((function(){e(".js-in-page-navigation").find(".active-page").each((function(){e(this).parent().closest("li").toggleClass("active-parent")})),e(".js-in-page-navigation").find(".active-page").each((function(){e(this).closest(".level1").toggleClass("active-section")}))}),500),setTimeout((function(){var t=e(".js-in-page-navigation").find(".active-page");e(t).hasClass("level3")&&e(".js-in-page-navigation").addClass("in-page-navigation-level-4"),e(t).hasClass("level4")&&e(".js-in-page-navigation").addClass("in-page-navigation-level-4"),e(t).hasClass("level5")&&e(".js-in-page-navigation").addClass("in-page-navigation-level-5")}),500)}(),function(){e(".js-main-navigation").slideMobileMenu();
153var t=e("header .js-quicklinks ul").clone().addClass("quicklinks-mobile");e(".js-navigation-mobile .js-main-navigation").after(t)}()}};return t}(e,document),XA.register("uwa-navigation",XA.component.uwaNavigation)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.navigation=function(t){var n,i=0,r={show:function(e){this.debounce(),(n=e).closest("li").addClass("show")},debounce:function(){i&&(clearTimeout(i),i=null)},hide:function(){n&&n.closest("li").removeClass("show")},queueHide:function(){i=setTimeout((function(){r.hide()}),200)},focus:function(){t(this).closest("li").siblings().removeClass("show"),t(this).closest("li").addClass("show")},blur:function(){t(this).closest("li").is(".last")&&t(this).parents(".rel-level1").removeClass("show")}};function a(e){e.find(".rel-level1").each((function(){t(this).find("ul").length||t(this).addClass("no-child")})),function(e){e.find(".navigation-title").on("click",(function(e){var n=t(this).closest("li");n.parents(".navigation").hasClass("navigation-mobile")&&(t(e.target).is("a")||(n.hasClass("active")?n.find(">ul").slideToggle((function(){n.removeClass("active")})):n.find(">ul").slideToggle((function(){n.addClass("active")}))))})),e.find(".rel-level1").on("focus",(function(){t(this).siblings("ul").slideDown(),t(this).closest("li").siblings().find("ul").slideUp()}))}(e)}var o={};return o.initInstance=function(n){var i;n.hasClass("navigation-main")?((i=n).on("mouseover",".rel-level1 > a, .rel-level1 >.navigation-title>a, .rel-level2 >.navigation-title>a",(function(){t(this).closest("li").siblings().removeClass("show"),t(this).closest("li.rel-level1").siblings().removeClass("show"),t(this).closest("li.rel-level1").siblings().find(".show").removeClass("show");var e=t(this).closest("li").find(">ul");r.show(e)})),i.on("mouseleave",".rel-level1 > a, .rel-level1 >.navigation-title",r.queueHide),i.on("mouseover",".rel-level1 > ul",r.debounce),i.on("mouseleave",".rel-level1 > ul",r.queueHide),i.on("focus",".rel-level1 > a, .rel-level1 >.navigation-title, .rel-level1 >.navigation-title",r.focus),i.on("blur",".rel-level2 > a",r.blur),i.on("mouseleave",(function(){t(this).find(".show").removeClass("show")})),i.find(".rel-level1").each((function(){t(this).find("ul").length&&t(this).addClass("submenu")})),i.find(".rel-level2").each((function(){t(this).parents("#header")>0&&t(this).find("ul").length&&(t(this).addClass("submenu"),t(this).parents(".rel-level1").addClass("wide-nav")),t(this).find("> img").length&&t(this).addClass("submenu navigation-image")})),i.on("click",".sxaToogleNavBtn",(function(){e(this).find(".sxaWrappedList").toggleClass("hidden")})),a(n)):n.hasClass("navigation-mobile")&&a(n)},o.init=function(){t(".navigation:not(.initialized)").each((function(){o.initInstance(t(this)),t(this).addClass("initialized")})),t(".mobile-nav:not(.initialized)").each((function(){!function(e){t(e).on("click",(function(){t(this).parents(".navigation").toggleClass("active"),t(this).toggleClass("active")}))}(this),t(this).addClass("initialized")}))},o}(e,document),XA.register("navigation",XA.component.navigation)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.overlay=function(e){var t,n,i,r={},a=window.location.href,o=location.host,s=!1;function l(){if(a.indexOf("sc_mode=preview")>-1)return!0;var t=e("#hdPageMode");return t.length>0&&"preview"==t.attr("value")}function c(t){var n=t.split("?")[0].split(".").pop();return e.inArray(n,["gif","png","jpg","jpeg"])>-1}function u(t,n){var i=n.find(".overlay-inner"),a=n.find(".component-content"),s=function(e){var t,n=e.split("?")[1],i=[];if(null!=n){n=n.split("&");for(var r=0;r<n.length;r++)t=n[r].split("="),i.push(t[1]),i[t[0]]=t[1]}return i}(t),u=function(e){return e.indexOf(o)>-1}(t),h=function(e){var t={};return null!==e.width&&(t.width=e.width),null!==e.height&&(t.height=e.height),t}(s);a.addClass("overlayFullWidth"),i.removeAttr("style"),u?c(t)?(i.empty().append(e("<img>",{src:t})),i.css(h),a.removeClass("overlayFullWidth"),d(n)):t.indexOf("overlaytype=iframe")>-1?(i.empty().append(e("<iframe>",{src:t,style:"width: 100%; height: 100%"})),i.css(h),d(n)):(l()&&("cf_overlay=1",t=t.replace("sitecore/shell/"),t+=(-1==t.indexOf("?")?"?":"&")+"cf_overlay=1"),e.get(t,(function(t){var o=e(t).before().first();r.resizeOverlay(i,a,{width:o.attr("data-width"),height:o.data("height"),percent:o.data("percent")}),i.empty().append(t),XA.init(),d(n)}))):(c(t)?i.empty().append(e("<img>",{src:t})):i.empty().append(e("<iframe >",{src:t,style:"width: 100%; height: 100%"})),i.css(h),d(n))}function d(r){var o,s;r.show().animate({opacity:1}),e("#wrapper").addClass("aria-hidden"),i=document.activeElement,o=r.find(".overlay-close"),setTimeout((function(){o.focus()}),0),(s=r.find(".overlay-inner")).blur((function(e){e.preventDefault(),e.stopPropagation(),setTimeout((function(){o.focus()}),0)}));
153var c=s.find('a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]');return c=Array.prototype.slice.call(c),t=c[0],n=c[c.length-1],t.focus(),(l()||function(){if(a.indexOf("sc_mode=edit")>-1)return!0;var t=e("#hdPageMode");return t.length>0&&"edit"==t.attr("value")}())&&r.find("> .component-content").css({top:200,transform:"translate(-50%, 0)"}),r}return r.resizeOverlay=function(t,n,i){var r="px",a={width:"",height:""},o=e(window).height();i.percent?(r="%",t.addClass("overlay-percent")):t.removeClass("overlay-percent"),i.width&&(a.width=i.width+r),i.height&&(a.height=i.height+r),a["max-height"]=o-100-.1*o+"px",n.css(a)},r.initInstance=function(t,n,i){t.on("click",(function(e){e.preventDefault(),e.stopPropagation(),function(e){e.css({opacity:1}).show()}(n),u(this.href,n);for(var t=this.href.split("/"),i=0;i<=t.length&&0==t.pop().length;i++);})),e(this).addClass("initialized")},r.init=function(){var a,o,c,u,d,h,f,p;!s&&e(".overlay-source").length&&e("body").append("<div class='overlay-wrapper'><div class='overlay component'><div class='component-content' role='dialog'><div class='overlay-inner'></div><div class='overlay-close' role='button' aria-label='Close dialog'></div></div></div></div>"),e("#wrapper").hasClass("overlay-page")&&(h=e(".overlay-page"),a=h.children(".component-content"),f=e("#spnOverlay"),p=a.children(".overlay-inner"),r.resizeOverlay(p,a,{width:a.data("width"),height:a.data("height"),percent:a.data("percent")}),a.on("click",(function(e){e.stopPropagation()})),h.on("click",(function(){l()&&(location.href=location.href.replace("sc_mode=preview","sc_mode=edit"))}))),f=e(".overlay-wrapper > .overlay"),a=f.find(".component-content"),o=e(".overlay-source a:not(.initialized), a.overlay-source:not(.initialized)"),c=e(".overlay-inner"),u=f.find(".overlay-close"),d=function(){!function(t){e("#wrapper").removeClass("aria-hidden");var n=t.find(".overlay-inner");t.animate({opacity:0}
153,(function(){if(t.hide(),n.empty(),mejs)for(var i in mejs.players)1==e("#"+mejs.players[i].id).parents(".overlay").length&&(e("#"+mejs.players[i].id+" video").attr("src",""),mejs.players[i].remove(),mejs.players.splice(i,1))}))}(f),c.off("blur"),setTimeout((function(){null!=i&&i.focus()}),0)},s||(a.on("click",(function(e){e.stopPropagation()})),f.on("click",(function(){d()})),u.on("click",(function(e){e.preventDefault(),d()})),e("body").keydown((function(e){9===e.keyCode&&(e.shiftKey?document.activeElement===t&&(e.preventDefault(),n.focus()):document.activeElement===n&&(e.preventDefault(),t.focus())),27===e.keyCode&&(e.stopPropagation(),d())})),e(window).on("resize",(function(){var t=e(window).height();t=t-100-.1*t,a.css("max-height",t+"px")})),s=!0),o.each((function(){r.initInstance(e(this),f,a)}))},r}(e),XA.register("overlay",XA.component.overlay),[].forEach.call(document.querySelectorAll(".search-results.overlay-source"),(function(e){XA.dom.observeDOM(e,(function(){XA.component.overlay.init()}))}))}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i;XA.component.snippet=(t=e,(i={}).initInstance=function(e,t){},i.init=function(){t(".snippet:not(.initialized)").each((function(){var e=t(this).find(".snippet-inner");n=t(this),i.initInstance(n,e),t(this).addClass("initialized")}))},i),XA.register("snippet",XA.component.snippet)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.social=function(e,t){var n={};n.shareProperties,n.initFacebook=function(){var e,n,i,r,a;n="script",i="facebook-jssdk",a=(e=t).getElementsByTagName(n)[0],e.getElementById(i)||((r=e.createElement(n)).id=i,r.src="//connect.facebook.net/en_US/all.js#xfbml=1",a.parentNode.insertBefore(r,a))};return n.initInstance=function(e,t){n.shareProperties.push(t)},n.init=function(){var i,r,a,o=e(".sharethis:not(.initialized)");n.shareProperties=[],o.each((function(){var t=e(this).data("properties");n.initInstance(e(this),t),e(this).addClass("initialized")})),i=n.shareProperties,a=e(".sharethis"),void 0===window.stLight&&((r=t.createElement("script")).type="text/javascript",r.src="//w.sharethis.com/button/buttons.js",e(window).on("load",(function(){e(i).each((function(){try{window.stLight.options(this)}catch(e){}}))})),e(a[0]).append(r))},n}(e,document),XA.register("social",XA.component.social)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.uwaSearchModal=(document,{init:function(){e(".js-btn--open-search").on("click",(function(t){t.preventDefault(),e(".js-search-modal").addClass("active"),e(".header-masterbrand").addClass("search-active"),setTimeout((function(){e(".js-search-modal .search-box-input.tt-input").trigger("focus")}),200)})),e(".js-btn--close-search").on("click",(function(t){t.preventDefault(),e(".js-search-modal").removeClass("active"),e(".header-masterbrand").removeClass("search-active"),setTimeout((function(){e(".js-btn--open-search").trigger("focus")}),200)}))}}),XA.register("uwa-search-modal",XA.component.uwaSearchModal)}).call(this,n(1))},function(e,t){var n;XA.component.tabs=((n={}).initInstance=function(e){var t=e,n=[],i=null,r=null;n=Array.from(t.querySelectorAll("[role=tab]"));for(var a=[],o=0;o<n.length;o+=1){var s=n[o],l=document.getElementById(s.getAttribute("aria-controls"));s.tabIndex=-1,s.setAttribute("aria-selected","false"),a.push(l),s.addEventListener("keydown",u.bind(this)),s.addEventListener("click",d.bind(this)),i||(i=s),r=s}function c(e,t){"boolean"!=typeof t&&(t=!0);for(var i=0;i<n.length;i+=1){var r=n[i];e===r?(r.setAttribute("aria-selected","true"),r.removeAttribute("tabindex"),r.classList.add("active"),a[i].setAttribute("aria-hidden","false"),t&&r.focus()):(r.setAttribute("aria-selected","false"),r.tabIndex=-1,r.classList.remove("active"),a[i].setAttribute("aria-hidden","true"))}}function u(e){var t,a,o=e.currentTarget,s=!1;switch(e.key){case"ArrowLeft":(t=o)===i?c(r):(a=n.indexOf(t),c(n[a-1])),s=!0;break;case"ArrowRight":!function(e){var t;e===r?c(i):(t=n.indexOf(e),c(n[t+1]))}(o),s=!0;break;case"Home":c(i),s=!0;break;case"End":c(r),s=!0}s&&(e.stopPropagation(),e.preventDefault())}function d(e){c(e.currentTarget)}c(i,!1)},n.init=function(){for(var e=document.querySelectorAll("[role=tablist]"),t=[],i=0;i<e.length;i++)n.initInstance(e[i]),t.push(e[i].offsetWidth);function r(e,n,i){var r=e,a=r.parentNode;t[n]>a.offsetWidth?r.classList.add("make-accordion"):r.classList.remove("make-accordion")}for(var a=0;a<=e.length-1;a++)r(e[a],a);var o=null;function s(t,n,i){for(var a=0;a<=e.length-1;a++)r(e[a],a)}window.addEventListener("resize",(function(){this.clearTimeout(o),o=this.setTimeout(s,100)}))},n),XA.register("tabs",XA.component.tabs)},function(e,t,n){(function(e){var t,n,i,r,a,o,s;XA.component.toggle=(t=e,a=function(e){var n=function(e){return t(e).find(".component.flip")}(e),i=t(e).find(".event-calendar");if(t(e).find("details").attr("open","open"),i.length&&i.trigger("resize"),n.lengt)try{XA.component.flip.equalSideHeightInToggle(e)}catch(e){console.warn("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/component-toggle.js (52:16)","Error during calculation height of Flip list in toggle")}},o=function(e){var i=t(e).find("summary");n.expandOnHover&&i.on("mouseenter",(function(){a(e)})),n.expandedByDefault&&a(e),i.on("click",(function(n){n.preventDefault(),t(this).closest("details").attr("open")?function(e){t(e).find("details").removeAttr("open")}(e):a(e)}))},s=function(e){o(e),function(e){t(e).find("details summary~.component>.component-content").css({"animation-name":n.easing,"animation-duration":(n.speed||500)+"ms"})}(e)},(r={}).initInstance=function(e){s(e)},r.init=function(){t(".toggle:not(.initialized)").each((function(){i=t(this),n=i.data("properties"),r.initInstance(this,n),i.addClass("initialized")}))},r),XA.register("component-toggle",XA.component.toggle)}
153).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(1);var t,i,r=n(167);XA.component.tooltipBadges=(t=e,document,i={initBadge:function(e){var n=t.grep(e.attr("class").split(" "),(function(e,t){return 0===e.indexOf("badge-")})).join(),i=document.getElementById(n),a=i.getAttribute("data-icon"),o=document.createElement("button"),s=t(o).prop({type:"button",class:"js-button-badge"}).attr("style","background-image:url("+a+")"),l=e.find("h2").first();t("body").hasClass("on-page-editor")?e.before(s):(l.addClass("js-display-inline"),l.after(s)),Object(r.a)(o,{content:function(){return i.innerHTML},theme:"light",interactive:!0,allowHTML:!0})},init:function(){t(".js-badge:not(.badges-initialized)").each((function(){var e=t(this);i.initBadge(e),t(this).addClass("badges-initialized")}))}}),XA.register("tooltipBadges",XA.component.tooltipBadges)}).call(this,n(1))},function(e,t){(function(){}).call(this),function(){var e,t,n,i,r,a,o,s,l,c,u,d;document.querySelector("body").getAttribute("class")&&document.querySelector("body").getAttribute("class").indexOf("on-page-editor")>-1||((c={element:function(){var e,t,n,i,r;return"open"in(t=document.createElement("details"))&&(t.innerHTML="<summary>a</summary>b",t.setAttribute("style","position: absolute; left: -9999px"),(i=null!=(r=document.body)?r:document.documentElement).appendChild(t),e=t.offsetHeight,t.open=!0,n=t.offsetHeight,i.removeChild(t),e!==n)}(),toggleEvent:"ontoggle"in document.createElement("details")}).element&&c.toggleEvent||(o=function(){return document.head.insertAdjacentHTML("afterbegin",'<style>@charset"UTF-8";details:not([open])>*:not(summary){display:none;}details>summary{display:block;}details>summary::before{content:"âº";padding-right:0.3rem;font-size:0.6rem;cursor:default;}details[open]>summary::before{content:"â¼";}</style>')},a=function(){var e,t,n,i,r;return e=document.createElement("details").constructor.prototype,i=e.setAttribute,n=e.removeAttribute,r=null!=(t=Object.getOwnPropertyDescriptor(e,"open"))?t.set:void 0,Object.defineProperties(e,{open:{set:function(e){return"DETAILS"===this.tagName?(e?this.setAttribute("open",""):this.removeAttribute("open"),e):null!=r?r.call(this,e):void 0}},setAttribute:{value:function(e,t){return d(this,function(n){return function(){return i.call(n,e,t)}}(this))}},removeAttribute:{value:function(e){return d(this,function(t){return function(){return n.call(t,e)}}(this))}}})},s=function(){return i((function(e){var t;return t=e.querySelector("summary"),e.hasAttribute("open")?(e.removeAttribute("open"),t.setAttribute("aria-expanded",!1)):(e.setAttribute("open",""),t.setAttribute("aria-expanded",!0))}))},r=function(){var t,n,i,r;for(i=document.querySelectorAll("summary"),t=0,n=i.length;n>t;t++)r=i[t],e(r);return"undefined"!=typeof MutationObserver&&null!==MutationObserver?new MutationObserver((function(t){var n,i,a,o,s;for(o=[],i=0,a=t.length;a>i;i++)n=t[i].addedNodes,o.push(function(){var t,i,a;for(a=[],t=0,i=n.length;i>t;t++)"DETAILS"===(s=n[t]).tagName&&(r=s.querySelector("summary"))?a.push(e(r,s)):a.push(void 0);return a}());return o})).observe(document.documentElement,{subtree:!0,childList:!0}):document.addEventListener("DOMNodeInserted",(function(t){return"SUMMARY"===t.target.tagName?e(t.target):void 0}))},e=function(e,t){return null==t&&(t=n(e,"DETAILS")),e.setAttribute("aria-expanded",t.hasAttribute("open")),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0"),e.hasAttribute("role")?void 0:e.setAttribute("role","button")},l=function(){return"undefined"!=typeof MutationObserver&&null!==MutationObserver?new MutationObserver((function(e){var t,n,i,r,a,o;for(a=[],n=0,i=e.length;i>n;n++)o=(r=e[n]).target,t=r.attributeName,"DETAILS"===o.tagName&&"open"===t?a.push(u(o)):a.push(void 0);return a})).observe(document.documentElement,{attributes:!0,subtree:!0}):i((function(e){var t;return t=e.getAttribute("open"),setTimeout((function(){return e.getAttribute("open")!==t?u(e):void 0}),1)}))},t=function(e){return!(e.defaultPrevented||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.target.isContentEditable)},i=function(e){return addEventListener("click",(function(i){var r,a;return t(i)&&i.which<=1&&(r=n(i.target,"SUMMARY"))&&"DETAILS"===(null!=(a=r.parentElement)?a.tagName:void 0)?e(r.parentElement):void 0}),!1),addEventListener("keydown",(function(i){var r,a,o;return t(i)&&(13===(a=i.keyCode)||32===a)&&(r=n(i.target,"SUMMARY"))&&"DETAILS"===(null!=(o=r.parentElement)?o.tagName:void 0)?(e(r.parentElement),i.preventDefault()):void 0}),!1)},n="function"==typeof Element.prototype.closest?function(e,t){return e.closest(t)}:function(e,t){for(;e;){if(e.tagName===t)return e;e=e.parentElement}},u=function(e){var t;return(t=document.createEvent("Events")).initEvent("toggle",!0,!1),e.dispatchEvent(t)},d=function(e,t){var n,i;return n=e.getAttribute("open"),i=t(),e.getAttribute("open")!==n&&u(e),i},c.element||(o(),a(),s(),r()),c.element&&!c.toggleEvent&&l()))}.call(this),function(){}.call(this)},function(e,t,n){(function(e){var t,n,i,r;XA.component.equalHeight=(t=e,document,n=".equalized-content",i=".equal:not(.flip.component),.flip .Side0,.flip .Side1",r={fixHeight:function(){t(n).each((function(){var e=t(this).find(i),n=0;e.each((function(){var e=t(this);e.css("min-height","inherit"),e.find(">.component-content").css("min-height","inherit"),e.outerHeight(!0)>n&&(n=e.outerHeight(!0))})),n>0&&e.each((function(){var e=t(this);(e.hasClass("Side0")||e.hasClass("Side1"))&&e.parent().attr("class","flip").css({"min-height":n}),e.css({"min-height":n}),e.find(">.component-content").css({"min-height":n})}))}))},init:function(){t(document).ready((function(){r.fixHeight()})),t(window).on("resize",(function(){setTimeout(r.fixHeight,0)}))}}),XA.register("equalHeight",XA.component.equalHeight)}
153).call(this,n(1))},function(e,t,n){(function(e){var t;XA.component.searchEqualHeight=(document,(t={}).init=function(){},t),XA.register("searchEqualHeight",XA.component.searchEqualHeight)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i;XA.component.uwaXaFooter=(t=e,document,n="#footer",i=".sxa-footer",{init:function(){var e=t(i);if(e.length>0){var r,a,o=e.closest("#footer"),s=e.closest("footer"),l=t(".js-this-page-btn"),c=t(".js-this-page-info");s.css({overflow:"visible",backgroundColor:"rgb(0,48,135)",marginTop:60,transition:"background-color 150ms ease-in-out"}),o.css({paddingRight:0,maxWidth:1392,paddingBottom:0}),c.hide(),l.on("click",(function(e){e.preventDefault(),c.slideToggle(),l.parent().toggleClass("open")})),l.parent().addClass("fa fa-chevron-down this-page__icon"),t(".footer-language-button--china").hide(),t(".sxa-footer li.last").hasClass("home")?(a=t(".sxa-footer .breadcrumb li.last").find("a").attr("href"),r=t(".sxa-footer .breadcrumb li.last").find("a").text(),pageDirectHomepageUrl=t(".breadcrumb a.home:not(.uwa-home)").find("a").attr("href"),'\n <li class="breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle icon-only">\n <a title="Home" href="'.concat(pageDirectHomepageUrl,'">\n <span class="home-icon--mobile breadcrumb-no-link"></span>\n </a>\n </div>\n </li>\n <li class="breadcrumb-item--mobile-only">\n ').concat(r,"\n </li>\n ")):(a=t(".sxa-footer .breadcrumb li.last").prev().find("a").attr("href"),r=t(".sxa-footer .breadcrumb li.last").prev().find("a").text(),pageDirectHomepageUrl=t(".breadcrumb li.home:not(.uwa-home)").find("a").attr("href"),'\n <li class="breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle icon-only">\n <a title="Home" href="'.concat(pageDirectHomepageUrl,'">\n <span class="home-icon--mobile"></span>\n </a>\n </div>\n </li>\n <li class="breadcrumb-item--mobile-only">\n <div class="navigation-title field-navigationtitle">\n <span class="separator">></span>\n <a title="').concat(r,'" href="').concat(a,'">').concat(r,"</a>\n </div>\n </li>\n "))}else t(n).length>0&&t(n).prepend('<div class="overlay-footer-abstract"></div>')}}),XA.register("uwa-xa-footer",XA.component.uwaXaFooter)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){n(115),n(159);var t,i,r=n(165),a=n.n(r),o=n(117),s=n.n(o);XA.component.globalfeaturecard=(t=e,document,i={resizeImage:function(e,n){var i,r=t(e),a=t(n),o=r.parents(".global-carousel__list"),l=410;i=r.data().properties,o.data()&&(i=o.data().properties),i&&i.cardHeight&&(l=i.cardHeight),l&&r.height(l);var c=a.width();a.height(.56*c);for(var u=function(e){for(var n=t(e),i=function(e){var i=t(e),r=i.width();r>400?(i.find(".field-teaser-text").hide(),i.find(".field-short-description").hide(),i.find(".field-long-description").show()):r>300?(i.find(".field-teaser-text").hide(),i.find(".field-short-description").show(),i.find(".field-long-description").hide()):(i.find(".field-teaser-text").show(),i.find(".field-short-description").hide(),i.find(".field-long-description").hide());var a=i.offset().top-n.offset().top;if(l)for(var o=Math.floor(l-a-34),c=function(e){try{s()(e,{clamp:"".concat(o,"px")})}catch(e){console.log("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/component-global-feature-card.js (86:32)","an error occured trying to clamp")}o<20&&t(e).hide()},u=i.find("div:visible"),d=0;d<=u.length-1;d++)c(u[d])},r=n.find(".global-feature-card__text"),a=0;a<=r.length-1;a++)i(r[a])},d=0;d<=r.length-1;d++)u(r[d])},resizeAll:function(){t(".global-feature-card").each((function(){i.initInstance(t(this))}))},initInstance:function(e){for(var n,i=this,r=t(e).find(".global-feature-card__image"),a=0;a<=r.length-1;a++)n=r[a],i.resizeImage(e,n)},initEvents:function(e){for(var n,i,r=t(e).find(".global-feature-card__modal-content"),o=0;o<=r.length-1;o++)(i=r[o])&&(n=a()(i));if(n){console.log("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/component-global-feature-card.js (135:12)",n);for(var s=function(e){t(e).modaal({fullscreen:!0,type:"inline"})},l=t(e).find(".global-feature-card__splink"),c=0;c<=l.length-1;c++)s(l[c])}},init:function(){t(".global-feature-card:not(.initialized)").each((function(){i.initInstance(t(this)),i.initEvents(t(this)),t(this).addClass("initialized")}))}}),XA.register("globalfeaturecard",XA.component.globalfeaturecard)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var t,i;n(115),n(117);XA.component.globalfeatures=(t=e,document,i={initInstance:function(e){var n=t(e).data().properties,i=n.numberOfCard;n.cardHeight,t(e).on("init",(function(e){XA.component.globalfeaturecard.resizeAll()})),t(e).slick({infinite:!1,dots:!0,arrows:!0,slidesToShow:Number(i)||3,slidesToScroll:Number(i)||3,responsive:[{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]})},init:function(){t(".global-carousel .global-carousel__list:not(.initialized)").each((function(){i.initInstance(t(this)),t(this).addClass("initialized")}))}}),XA.register("globalfeatures",XA.component.globalfeatures)}).call(this,n(1))},function(e,t,n){"use strict";(function(e){var t,i,r,a;n(115),n(159);XA.component.globalfeaturesBanner=(t=e,document,i={}
153,r=t(document),a=t(window),i.init=function(){r.on("click",".small-modal-hook",(function(e){e.preventDefault();var n=t(e.currentTarget).attr("href");if(t(n).addClass("shown"),t(".modal-overlay").addClass("shown"),t(n).focus(),t(e.currentTarget).data("onmodalopen")){var i=window[t(e.currentTarget).data("onmodalopen")];i&&i(t(n))}})),a.on("keyup",(function(t){("keyup"===t.type&&27===t.keyCode||"click"===t.type)&&e()}));var e=function(){t(".signup-login-modal").removeClass("shown"),t(".modal-overlay").removeClass("shown")};r.on("click",".close-modal-btn",(function(t){t.preventDefault(),e()}));var n=0;r.on("click",".modal-hook",(function(e){e.preventDefault(),n=t(document).scrollTop(),t(e.currentTarget).data("modaal-scope")||t(e.currentTarget).modaal({fullscreen:!0,type:"inline",start_open:!0,after_close:function(){t(document).scrollTop(n)},after_open:function(){if(t(e.currentTarget).data("onmodalopen")){var n=window[t(e.currentTarget).data("onmodalopen")];n&&n(t("#"+t(e.currentTarget).data("modaal-scope")))}t("#"+t(e.currentTarget).data("modaal-scope")+" iframe[src*='youtube']:not(.study-abroad-video)").length&&t("#"+t(e.currentTarget).data("modaal-scope")+" iframe[src*='youtube']")[0].contentWindow.postMessage(JSON.stringify({event:"command",func:"playVideo",args:""}),"*"),t(".modal-tile-carousel").slick({dots:!1,autoplay:!0,autoplaySpeed:8e3,arrows:!0,infinite:!0,centerMode:!0,fade:!0,speed:300,slidesToShow:1,adaptiveHeight:!1,pauseOnDotsHover:!0,cssEase:"linear"})},before_close:function(){t(".modal-tile-carousel").slick("unslick")}})}))},i),XA.register("globalfeaturesBanner",XA.component.globalfeaturesBanner)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.locationService=function(e,t){"use strict";var n,i,r,a,o={},s=!1,l=[],c=[];return n=function(e,t){var n;l.push(t),c.push(e),s||(s=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition((function(e){for(n=0;n<c.length;n++)c[n]([e.coords.latitude,e.coords.longitude]);s=!1}),(function(e){a("Error while detecting user location"),s=!1}),i()):(a("Your browser does not support geolocation"),s=!1))},i=function(){return-1!==r().indexOf("Chrome")?{enableHighAccuracy:!0,timeout:1e4,maximumAge:0}:{timeout:1e3,maximumAge:1/0}},r=function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))},a=function(e){var t;for(t=0;t<l.length;t++)"function"==typeof l[t]&&l[t](e)},o.detectLocation=function(e,t){n(e,t)},o}(0,document),XA.register("locationService",XA.component.locationService)}).call(this,n(1))},function(e,t){XA.component.search={},XA.component.search.facet={},XA.component.search.results={},XA.component.search.vent=_.extend({},Backbone.Events)},function(e,t,n){(function(e){XA.component.search.ajax=(document,new(Backbone.Model.extend({getData:function(e){var t=this.getPrameterByName("sc_site"),n=void 0!==e.excludeSiteName&&e.excludeSiteName?e.url:XA.component.search.url.createSiteUrl(e.url,t);Backbone.ajax({dataType:"json",url:n,success:function(t){e.callback(t)}})},getPrameterByName:function(e,t){t||(t=window.location.href),e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}})))}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.baseModel=(document,Backbone.Model.extend({sortFacetArray:function(e,t){switch(e){case"SortByCount":t.sort((function(e,t){return t.Count-e.Count}))}}})),XA.register("searchBaseModel",XA.component.search.baseModel)}).call(this,n(1))},function(e,t,n){(function(e){var t;XA.component.search.baseView=(t=e,document,Backbone.View.extend({initialize:function(){},translateSignatures:function(e,t){var n,i;if(t=t?t.toLowerCase():"",null==e)return[t];if(n=e.split(","),""===e)return[t];for(i=0;i<n.length;i++)n[i]=n[i]+"_"+t;return n},updateSignaturesHash:function(e,t,n){for(var i=0;i<e.length;i++)n[e[i]]=t;return n},manageVisibilityByData:function(e,n){0===_.size(n)||void 0!==n.Values&&0==n.Values.length?t(e).hide():t(e).show()}})),XA.register("searchBaseView",XA.component.search.baseView)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a,o,s,l;XA.component.search.box=(t=e,document,r={},a=[],o=[],s=Backbone.Model.extend({defaults:{autocomplete:"",dataProperties:{},searchQuery:"",loadingInProgress:!1,sig:[]},createSuggestionsUrl:function(e,t){var n=this.get("dataProperties").suggestionsMode,r=this.get("dataProperties").endpoint,a=this.get("dataProperties").suggestionEndpoint;switch(n){case"ShowPredictions":return i.createPredictiveSearchUrl(a,e,t);default:return i.createPredictiveSearchUrl(r,e,t)}},getSignature:function(){var e,t=this.get("dataProperties").searchResultsSignature;return null==t?"":(e=t.split(","),""===t?"":e[0])},getLanguage:function(){var e,t=this.get("dataProperties"),n=XA.component.search.results.searchResultModels,i=t.languageSource,r=this.getSignature();switch(i){case"CurrentLanguage":case"AllLanguages":return t.l;default:if(void 0!==(e=n.filter((function(e){return e.get("dataProperties").sig===r}))[0]))return e.get("dataProperties").l}return""}}),l=XA.component.search.baseView.extend({initialize:function(){var e,n=this,r=this,a=XA.component.search.ajax.getPrameterByName("sc_site"),o=this.$el.data();o.properties.targetSignature=null!==o.properties.targetSignature?o.properties.targetSignature:"",this.model.set({dataProperties:o.properties}),this.model.set("sig",this.translateSignatures(o.properties.searchResultsSignature,"q")),this.model.on("change:loadingInProgress",this.loading,this),(e=new autoComplete({selector:function(){return n.$el.find(".search-box-input")[0]},data:{src:function(){try{r.model.set({loadingInProgress:!0});var e=i.createSiteUrl(r.model.createSuggestionsUrl(t.extend({l:r.model.getLanguage()},r.model.get("dataProperties")),r.model.get("searchQuery")),a);return fetch(e).then((function(e){return e.json()})).then((function(e){return r.model.set({loadingInProgress:!1}),e.Results}))}catch(e){return e}},keys:["Html"],cache:!1,filter:function(e){return _.map(e,(function(e){return{key:e.key,match:e.match,value:{html:e.value.Html}}}))}},threshold:o.properties.minSuggestionsTriggerCharacterCount,searchEngine:"loose",resultsList:{tag:"div",class:"autocomplete-menu autocomplete-menu__absolute",destination:function(){return n.$el.find(".search-box-input")[0]},maxResults:r.model.get("dataProperties").p,tabSelect:!1},resultItem:{element:function(e,t){var n=o.properties.suggestionsMode,i=t&&t.value&&t.value.html?t.value.html.replace(/(<([^>]+)>)/gi,""):"",r=""!==i?i:t&&t.value&&t.value.html;switch(n){case"ShowPredictions":case"ShowSearchResultsAsPredictions":e.innerText=r;break;default:e.innerHtml=t.html}},tag:"span",class:"sugesstion-item autocomplete-suggestion autocomplete-selectable",selected:"autocomplete-cursor"},events:{input:{focus:function(){e.input.value.length&&e.start()}}}})).input.addEventListener("selection",this.suggestionSelected.bind(r)),this.model.set({autocomplete:e}),this.model.set({valueProvider:function(){return r.$el.find(".search-box-input").val()}}),XA.component.search.vent.on("hashChanged",this.updateSearchBoxValue.bind(this))},events:{"click .search-box-button":"updateQueryModelClick","click .search-box-button-with-redirect":"updateQueryWithRedirect","keypress .search-box-input":"predictiveSearch","keydown .search-box-input":"predictiveSearch"},loading:function(){this.$el.toggleClass("loading-in-progress")},suggestionSelected:function(e){e.preventDefault();var n,i=e&&e.detail&&e.detail.selection&&e.detail.selection.value,r=this.model.get("dataProperties").suggestionsMode;try{n=t(i.html).text()}catch(e){n=""}var a,o=""!=n?n:i.html;switch(r){case"ShowPredictions":case"ShowSearchResultsAsPredictions":this.performSearch(o);break;default:(a=t(i.html).find("a")).length&&(window.location.href=t(a[
1530]).attr("href"))}},updateQueryWithRedirect:function(e){e.preventDefault();var t=this.model.get("dataProperties").resultPage,n=this.model.get("dataProperties").targetSignature,r=this.model.get("dataProperties").searchResultsSignature,a=encodeURIComponent(this.$el.find(".search-box-input").val()),o=this.model.get("sig"),s={};s=""!==n?this.updateSignaturesHash([n+"_q"],a,this.createOffsetObject()):this.updateSignaturesHash(o,a,this.createOffsetObject()),window.location.href=i.createRedirectSearchUrl(t,s,r,n)},updateQueryModelClick:function(e){e.preventDefault(),XA.component.search.vent.trigger("new-search");var t=this.$el.find(".search-box-input").val();this.closeDropdown(),this.updateQueryModel(t)},updateQueryModel:function(e){var t,i={},r=this.translateSignatures(this.model.get("dataProperties").searchResultsSignature,"e"),a=this.model.get("sig");for(t=0;t<a.length;t++)i[a[t]]=e,i[r[t]]=0;n.updateHash(i,this.model.get("dataProperties").targetUrl)},predictiveSearch:function(e){13===e.keyCode&&(e.preventDefault(),this.performSearch(this.$el.find(".search-box-input").val()))},performSearch:function(e){var t=this.model.get("dataProperties"),n=t.targetSignature,r=t.searchResultsSignature,a=t.resultPage,o=this.model.get("sig"),s={};XA.component.search.vent.trigger("new-search"),this.closeDropdown(),this.$el.find(".search-box-input").val(e),""===a?this.updateQueryModel(e):(e=encodeURIComponent(e),s=""!==n?this.updateSignaturesHash([n+"_q"],e,this.createOffsetObject()):this.updateSignaturesHash(o,e,this.createOffsetObject()),window.location.href=i.createRedirectSearchUrl(a,s,r,n))},createOffsetObject:function(){var e,t=this.model.get("sig"),n=this.model.get("dataProperties").targetSignature,i=""!==n?n:this.model.get("dataProperties").searchResultsSignature,r=this.translateSignatures(i,"e"),a={};for(e=0;e<t.length;e++)a[r[e]]=0;return a},updateSearchBoxValue:function(){var e,t=n.parseHashParameters(window.location.hash),i=this.$el.find(".search-box-input"),r=this.model.get("sig");for(e=0;e<r.length;e++)t.hasOwnProperty(r[e])?i.val(decodeURIComponent(t[r[e]])):i.val("")},closeDropdown:function(){this.model.get("autocomplete").close()}}),r.init=function(){if(!t("body").hasClass("on-page-editor")){n=XA.component.search.query,XA.component.search.results.searchResultModels,i=XA.component.search.url;var e=t(".search-box:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new s;o.push(i),a.push(new l({el:n,model:i})),n.addClass("initialized")}))}},r.searchBoxViews=a,r.searchBoxModels=o,r),XA.register("searchBox",XA.component.search.box)}).call(this,n(1))},function(e,t,n){(function(e){var t;XA.component.search.facet.data=(t=e,document,new(Backbone.Model.extend({defaults:{},initialize:function(){},getInitialFacetData:function(){var e,t=this.getFacetRequestData(),n=t.data,i=[];for(var r in n)n.hasOwnProperty(r)&&(i=(i=i.concat(n[r].normalFiltering)).concat(n[r].partialFiltering),e=this.getSearchResultsLanguage(r),i.length>0&&XA.component.search.ajax.getData({callback:function(e){XA.component.search.vent.trigger("facet-data-loaded",e)},url:XA.component.search.url.createMultiFacetUrl({endpoint:t.endpoint,s:t.s,l:e},i,r)}))},filterFacetData:function(e){var n,i,r,a,o,s=this.getFacetRequestData(e),l=s.data;for(var c in l)l.hasOwnProperty(c)&&(i=this.getSearchResultsLanguage(c),r=this.getSearchResultsScope(c),a=this.getSearchResultsModelBySignature(c),o=a.get("dataProperties").itemid,l[c].normalFiltering.length>0&&(n=t.extend({endpoint:s.endpoint,s:r,l:i},e),XA.component.search.ajax.getData({callback:function(e){XA.component.search.vent.trigger("facet-data-filtered",e)},url:XA.component.search.url.createMultiFacetUrl(n,l[c].normalFiltering,c,o)})),l[c].partialFiltering.length>0&&_.each(l[c].partialFiltering,(function(a){var l=t.extend({},e);delete l[""!==c?c+"_"+a:a],delete l[""!==c?c+"_"+a.toLowerCase():a.toLowerCase()],n=t.extend({endpoint:s.endpoint,s:r,l:i},l),XA.component.search.ajax.getData({callback:function(e){XA.component.search.vent.trigger("facet-data-partial-filtered",e)},url:XA.component.search.url.createMultiFacetUrl(n,[a],c,o)})})))},getFacetRequestData:function(e){var t,n,i,r,a=this,o=[],s={};for(t in XA.component.search.facet)"function"==typeof(n=XA.component.search.facet[t]).getFacetDataRequestInfo&&(o=n.getFacetDataRequestInfo(),_.each(o,(function(t){r=""!==t.signature?t.signature+"_"+t.facetName:t.facetName,s.hasOwnProperty(t.signature)||a.initRequestObject(s,t),t.filterWithoutMe&&(void 0===e||e.hasOwnProperty(r)||e.hasOwnProperty(r.toLowerCase()))?(s[t.signature].partialFiltering.push(t.facetName),i=t.endpoint):(s[t.signature].normalFiltering.push(t.facetName),i=t.endpoint)})));return{endpoint:i,data:s}},initRequestObject:function(e,t){e[t.signature]={},e[t.signature].normalFiltering=[],e[t.signature].partialFiltering=[]},getSearchResultsLanguage:function(e){var t=this.getSearchResultsModelBySignature(e);return void 0!==t?t.get("dataProperties").l:""}
153,getSearchResultsScope:function(e){var t=this.getSearchResultsModelBySignature(e);return void 0!==t?t.get("dataProperties").s:""},getSearchResultsModelBySignature:function(e){return XA.component.search.results.searchResultModels.filter((function(t){return t.get("dataProperties").sig===e}))[0]}})))}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a;XA.component.search.facet.summary=(t=e,document,n={},XA.component.search.url,i=XA.component.search.query,XA.component.search.ajax,r=Backbone.Model.extend({defaults:{dataProperties:{},sig:[],hash:""},initialize:function(){this.set("resultData",{}),XA.component.search.vent.on("facet-data-loaded",this.processData.bind(this)),XA.component.search.vent.on("facet-data-partial-filtered",this.processData.bind(this)),XA.component.search.vent.on("facet-data-filtered",this.processData.bind(this))},requestFacetData:function(e,t){return _.find(e,(function(e){return e.Key.toLowerCase()===t.facetName.toLowerCase()}))},translateSignatures:function(e,t){var n,i;if(t=t.toLowerCase(),null==e)return[t];if(n=e.split(","),""===e)return[t];for(i=0;i<n.length;i++)n[i]=n[i]+"_"+t;return n},processData:function(e){var t,n,r,a,o=i.parseHashParameters(window.location.hash),s=[],l=XA.component.search.facet;for(r in l)if("function"==typeof(a=XA.component.search.facet[r]).getFacetDataRequestInfo){s=a.getFacetDataRequestInfo();for(var c=0;c<s.length;c++)for(var u=s[c],d=u.signature.split(","),h=0;h<d.length;h++){var f=d[h];if(e.Signature==f&&this.get("sig")==f&&void 0!==(t=this.requestFacetData(e.Facets,u))){n=t.Name;for(var p=this.get("resultData"),m=this.translateSignatures(f,t.Key.toLowerCase()),g=0;g<m.length;g++){var v=m[g];o[v]?p[n]={value:o[v],key:t.Key,signature:e.Signature,facetHashName:v}:delete p[n]}this.set("resultData",p),this.trigger("change",this)}}}}}),a=XA.component.search.baseView.extend({tagName:"div",className:"facet-search-summary",template:"<% if(Object.keys(resultData).length){ %> <div class='facet-summary-wrapper clearfix'><% _.forEach(resultData, function(obj,key){ %><div class='active-facet-summary-element' data-hash='<%=obj.facetHashName%>' data-key='<%=obj.key%>' data-signature='<%=obj.signature%>'><span class='facet-summary-name'><%= key %>:</span> <%= renderFacetValues(obj.value) %></div><% }); %></div><% }%>",renderFacetValues:function(e){return e.split("||").map((function(e){return"<div class='facet-summary-value' data-value="+encodeURIComponent(e)+"><p>"+e+"</p><span class='removeFacetValue'>x</span></div>"})).join(" ")},clearButtons:function(e){t(e.currentTarget).closest(".facet-summary").find(".clear-all-active-facets").trigger("click")},initialize:function(){var e=this.$el.data(),t=this,n=e.properties;Backbone.$(".facet-summary .clear-filter").on("click",(function(e){t.clearButtons(e)})),Backbone.$(".facet-summary .bottom-remove-filter").on("click",(function(e){t.clearButtons(e)})),this.translateSignatures(n.searchResultsSignature,"summary"),this.model.set("sig",n.searchResultsSignature),e=this.$el.data("properties"),this.model.on("change",this.render,this),this.render()},events:{"click .removeFacetValue":"removeFacetValue","click .clear-filter":"clearAllActiveFacets","click .bottom-remove-filter button":"clearAllActiveFacets"},createHash:function(e){var t="#";for(option in e)t+=option+"="+e[option]+"&";return t},updateLocation:function(e){XA.component.search.query.updateHash(e)},getFacetParams:function(e){var n=t(e).closest(".active-facet-summary-element");return{key:n.data("key"),signature:n.data("signature")}},clearAllActiveFacets:function(){var e=this,n=i.parseHashParameters(window.location.hash);this.$el.find(".active-facet-summary-element").each((function(){var i=e.getFacetParams(t(this)),r=e.translateSignatures(i.signature,i.key);_.each(r,(function(e){n[e]=""}))})),e.updateLocation(n)},removeFacetValue:function(e){var n=t(e.currentTarget).closest(".facet-summary-value"),r=decodeURIComponent(n.data("value")),a=this.getFacetParams(e.currentTarget),o=i.parseHashParameters(window.location.hash),s=this.translateSignatures(a.signature,a.key);_.each(s,(function(e){o[e]=o[e].split("||").filter((function(e){return e!==r})).join("||")})),this.updateLocation(o)},render:function(){var e,t=this.model.get("resultData"),n=this.$el.data();this.properties=n.properties,this.manageVisibilityByData(this.$el,t),this.model&&(this.model.set({dataProperties:this.properties}),this.model.set("sig",this.properties.searchResultsSignature)),window.location.href.startsWith("file://")||(void 0!==t&&(e=_.template(this.template,{imports:{renderFacetValues:this.renderFacetValues}})({resultData:t})),this.$el.find(".facet-summary-placeholder").html(e))}}),n.init=function(){if(!t("body").hasClass("on-page-editor")){i=XA.component.search.query,XA.component.search.ajax,XA.component.search.url;var e=t(".facet-summary:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new r;new a({el:n,model:i}),n.addClass("initialized")}))}},n),XA.register("facetSummary",XA.component.search.facet.summary)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.facet.dropdown=function(t,n){"use strict";var i,r={},a=XA.component.search.baseModel.extend({defaults:{template:"<% _.forEach(results, function(result){%><option data-facetName=\"<%= result.Name !== '' ? encodeURIComponent(result.Name) : '_empty_' %>\" <%= result.Selected !== undefined ? 'selected' : '' %> ><%= result.Name !== '' ? result.Name : emptyText %> (<%= result.Count %>)</option><%}); %>",dataProperties:{},blockNextRequest:!1,resultData:{},optionSelected:!1,sig:[]},initialize:function(){XA.component.search.vent.on("facet-data-loaded",this.processData.bind(this)),XA.component.search.vent.on("facet-data-filtered",this.processData.bind(this)),XA.component.search.vent.on("facet-data-partial-filtered",this.processData.bind(this)),XA.component.search.vent.on("hashChanged",this.updateComponent.bind(this))},toggleBlockRequests:function(){var e=this.get("blockNextRequest");this.set(this.get("blockNextRequest"),!e)},processData:function(t){var n,r,a,o,s=i.parseHashParameters(window.location.hash),l=this.get("sig"),c=this.get("dataProperties"),u=c.searchResultsSignature.split(","),d=c.sortOrder,h=c.f;for(o=0;o<u.length;o++)if(t.Facets.length>0&&t.Signature===u[o]||""===t.Signature||null===t.Signature){if(void 0===(r=_.find(t.Facets,(function(e){return e.Key.toLowerCase()===h.toLowerCase()}))))return;for(a=0;a<l.length;
153a++)e.isEmptyObject(_.pick(s,l[a]))||""!==s[l[a]]&&(0===(n=_.where(r.Values,{Name:s[l[a]]})).length&&(n=_.where(r.Values,{Name:""})),n.length>0&&(n[0].Selected=!0,this.optionSelected=!0));this.sortFacetArray(d,r.Values),this.set({resultData:r.Values})}},updateComponent:function(e){var t,n,i=this.get("sig");for(t=0;t<i.length;t++)n=i[t].toLowerCase(),e.hasOwnProperty(n)&&""!==e[n]?this.set({optionSelected:!0}):this.set({optionSelected:!1})}}),o=XA.component.search.baseView.extend({initialize:function(){var e=this.$el.data();this.properties=e.properties,this.model&&(this.model.set({dataProperties:this.properties}),this.model.set("sig",this.translateSignatures(this.properties.searchResultsSignature,this.properties.f))),this.model.on("change",this.render,this)},events:{"change .facet-dropdown-select":"updateFacet","click .bottom-remove-filter, .clear-filter":"clearFilter"},updateFacet:function(e){var t=this.$el.find(".facet-dropdown-select").find("option:selected"),n=decodeURIComponent(t.data("facetname")),r=this.model.get("sig");""===n?this.model.set({optionSelected:!1}):this.model.set({optionSelected:!0}),i.updateHash(this.updateSignaturesHash(r,n,{}))},render:function(){var e=this.model.get("resultData"),n=this.$el.find(".facet-dropdown-select"),i=this.model.get("dataProperties").emptyValueText,r=this.$el.find(".facet-heading > span"),a=n.find("option:first"),o=t("<option />"),s=_.template(this.model.get("template"))({results:e,emptyText:i});this.manageVisibilityByData(this.$el,e),o.text(a.text()),o.data("facetname",""),this.model.get("optionSelected")?r.addClass("has-active-facet"):""===a.data("facetname")&&r.removeClass("has-active-facet"),n.empty().append(o).append(s)},clearFilter:function(){var e=this.$el.find(".facet-dropdown-select"),t=this.$el.find(".facet-heading > span"),n=this.model.get("sig");i.updateHash(this.updateSignaturesHash(n,"",{})),this.model.set({optionSelected:!1}),t.removeClass("has-active-facet"),e.val(e.find("option:first").val())}});return r.init=function(){if(!t("body").hasClass("on-page-editor")){i=XA.component.search.query,XA.component.search.url;var e=t(".facet-dropdown:not(.initialized)");_.each(e,(function(e){var n=t(e);new o({el:n,model:new a});n.addClass("initialized")}))}},r.getFacetDataRequestInfo=function(){var e=t(".facet-dropdown"),n=[];return _.each(e,(function(e){var i,r=t(e).data().properties,a=r.searchResultsSignature.split(",");for(i=0;i<a.length;i++)n.push({signature:null===a[i]?"":a[i],facetName:r.f,endpoint:r.endpoint,filterWithoutMe:!0})})),n},r}(e,document),XA.register("facetDropdown",XA.component.search.facet.dropdown)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a;XA.component.search.facet.managedrange=(t=e,document,i={},r=Backbone.Model.extend({defaults:{dataProperties:{},sig:[]}}),a=XA.component.search.baseView.extend({initialize:function(){this.properties=this.$el.data().properties,this.model&&(this.model.set({dataProperties:this.properties}),this.model.set("sig",this.translateSignatures(this.properties.searchResultsSignature,this.properties.f))),0===this.$el.find(".filterButton").length&&(this.$el.find(".manualRangeMin").on("blur",this.textBoxChange.bind(this,[])),this.$el.find(".manualRangeMax").on("blur",this.textBoxChange.bind(this,[]))),this.model.on("change",this.render,this),XA.component.search.vent.on("hashChanged",this.updateComponent.bind(this))},events:{"click .faceLink":"linkClick","click .facetRadio":"radioClick","click .facetCheckbox":"checkBoxClick","click .filterButton":"filter","click .bottom-remove-filter, .clear-filter":"clearFilter","keyup .manualRangeMin, .manualRangeMax":"configureKeyCodes"},configureKeyCodes:function(e){13==e.keyCode&&this.filter()},updateHash:function(e){var i=this.model.get("sig"),r=[];_.each(e,(function(e){var n=t(e);r.push(n.data().minvalue+"|"+n.data().maxvalue)})),this.$el.find(".manualRangeMin").val(""),this.$el.find(".manualRangeMax").val(""),n.updateHash(this.updateSignaturesHash(i,r.join(","),{}))},render:function(){var e,i,r=n.parseHashParameters(window.location.hash),a=this.$el.find(".facet-heading > span"),o=this.model.get("sig"),s=this;for(i=0;i<o.length;i++)r.hasOwnProperty(o[i])&&""!==r[o[i]]&&(e=r[o[i]].split(","),a.addClass("has-active-facet"),_.each(e,(function(e){var n,i,r=e.split("|"),a=r[0],o=r[1];""===a&&""===o||(""!==a&&""!==o?n=".facetCheckbox[data-minvalue='"+a+"'][data-maxvalue='"+o+"'], .facetRadio[data-minvalue='"+a+"'][data-maxvalue='"+o+"']":""!==a&&""===o?n=".facetCheckbox[data-minvalue='"+a+"'], .facetRadio[data-minvalue='"+a+"']":""===a&&""!==o&&(n=".facetCheckbox[data-maxvalue='"+o+"'], .facetRadio[data-maxvalue='"+o+"']"),(i=t(n)).length>0?i.attr("checked","checked"):(s.$el.find(".manualRangeMin").val(r[0]),s.$el.find(".manualRangeMax").val(r[1])))})))},radioClick:function(e){var n=t(e.currentTarget);t(".facetRadio").attr("name",n.attr("name")),this.updateHash(n)},checkBoxClick:function(e){t(e.currentTarget).is(":checked")&&(this.$el.find(".manualRangeMin").val(""),this.$el.find(".manualRangeMax").val(""))},linkClick:function(e){var i=t(e.currentTarget),r=i.data().minvalue+"|"+i.data().maxvalue;this.$el.find(".facetCheckbox[data-shortid!="+i.data().shortid+"]").removeAttr("checked"),this.$el.find(".facetCheckbox[data-shortid="+i.data().shortid+"]").attr("checked","checked"),this.$el.find(".manualRangeMin").val(""),this.$el.find(".manualRangeMax").val(""),n.updateHash(this.updateSignaturesHash(sig,r,{}))},filter:function(){var e,t,i=this.model.get("dataProperties").multipleSelection,r=this.$el.find(".facetCheckbox:checked"),a=this.$el.find(".facetRadio:checked"),o=this.$el.find(".manualRangeMin"),s=this.$el.find(".manualRangeMax"),l=this.model.get("sig");e=o.length>0&&""!==o.val()?o.val():"",t=s.length>0&&""!==s.val()?s.val():"",""!==e||""!==t?(this.$el.find(".facetRadio").removeAttr("checked"),this.$el.find(".facetCheckbox").removeAttr("checked"),n.updateHash(this.updateSignaturesHash(l,e+"|"+t,{}
153))):(r.length>0||a.length>0)&&(i?this.updateHash(r):this.radioClick({currentTarget:a}))},clearFilter:function(){var e,t,i=this.$el.find(".manualRangeMin"),r=this.$el.find(".manualRangeMax"),a=this.model.get("dataProperties"),o=this.$el.find(".facet-heading > span"),s=n.parseHashParameters(window.location.hash),l=this.model.get("sig"),c=!1;for(t=0;t<l.length;t++)void 0!==s[e=l[t]]&&""!==s[e]&&(delete a[e],s[e]="",c=!0);c&&(n.updateHash(s),this.model.set({dataProperties:a}),this.$el.find(".facetCheckbox").removeAttr("checked"),this.$el.find(".facetRadio").removeAttr("checked"),o.removeClass("has-active-facet"),i.length>0&&i.val(i.data().defaultvalue),r.length>0&&r.val(r.data().defaultvalue))},textBoxChange:function(){var e=this.$el.find(".manualRangeMin"),t=this.$el.find(".manualRangeMax"),i=e.length>0&&""!==e.val()?e.val():"",r=t.length>0&&""!==t.val()?t.val():"",a=this.model.get("sig");this.$el.find(".facetRadio").removeAttr("checked"),this.$el.find(".facetCheckbox").removeAttr("checked"),""!==i||""!==r?n.updateHash(this.updateSignaturesHash(a,i+"|"+r,{})):n.updateHash(this.updateSignaturesHash(a,"",{}))},updateComponent:function(e){var t,n,i=this.model.get("sig");for(n=0;n<i.length;n++)t=i[n].toLowerCase(),e.hasOwnProperty(t)?this.render():this.clearFilter()}}),i.init=function(){if(!t("body").hasClass("on-page-editor")){n=XA.component.search.query,XA.component.search.ajax,XA.component.search.url;var e=t(".facet-managed-range:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new r,o=new a({el:n,model:i});n.addClass("initialized"),o.render()}))}},i),XA.register("managedrange",XA.component.search.facet.managedrange)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a;XA.component.search.facet.rangeslider=(t=e,document,i={},r=Backbone.Model.extend({defaults:{dataProperties:{},sig:[],timeStamp:""}}),a=XA.component.search.baseView.extend({initialize:function(){var e=this.$el.data();this.properties=e.properties,this.model&&(this.model.set({dataProperties:this.properties}),this.model.set("sig",this.translateSignatures(this.properties.searchResultsSignature,this.properties.f))),this.model.on("change",this.updateSelectedValue,this),XA.component.search.vent.on("hashChanged",this.updateModel.bind(this)),this.render()},events:{"click .bottom-remove-filter, .clear-filter":"removeFacet","mouseup .ui-slider-handle":"updateModel"},render:function(){var n,i,r,a=this,o=this.model.get("sig"),s=XA.component.search.query.parseHashParameters(window.location.hash),l=parseFloat(this.model.get("dataProperties").minRangeValue),c=parseFloat(this.model.get("dataProperties").maxRangeValue),u=parseFloat(this.model.get("dataProperties").changeStep),d=t("<div />").addClass("slider-value"),h=this.$el.find(".facet-heading > span"),f=this.$el.find(".slider");for(r=0;r<o.length;r++)if(e.isEmptyObject(_.pick(s,o[r])))n=parseFloat(this.model.get("dataProperties").selectedMinValue),i=parseFloat(this.model.get("dataProperties").selectedMaxValue),h.removeClass("has-active-facet");else{var p=_.values(_.pick(s,o[r]))[0];p&&(n=parseFloat(p.split("|")[0]),i=parseFloat(p.split("|")[1]),h.addClass("has-active-facet"))}isNaN(l)&&(l=0),isNaN(c)&&(c=0),(isNaN(u)||0===u)&&(u=1),isNaN(n)&&(n=l),isNaN(i)&&(i=c),f.slider({range:!0,min:l,max:c,step:u,values:[n,i],create:function(e,r){t(".slider-value").remove(),f.after(d),0===n&&0===i||a.updateText(n,i)},slide:_.debounce((function(e,t){a.updateModel(a.updateSignaturesHash(o,t.values[0]+"|"+t.values[1],{}))}),500)})},removeFacet:function(){var e=this.$el,t=this.model.get("sig"),i=this.$el.find(".slider"),r=e.find(".facet-heading > span"),a=this.model.get("dataProperties"),o=n.parseHashParameters(window.location.hash);r.removeClass("has-active-facet"),a.selectedMinValue=a.minRangeValue,a.selectedMaxValue=a.maxRangeValue,this.updateText(a.minRangeValue,a.maxRangeValue),i.slider("values",[a.minRangeValue,a.maxRangeValue]),this.model.set({dataProperties:a}),o.hasOwnProperty(this.model.get("sig"))&&n.updateHash(this.updateSignaturesHash(t,"",o))},updateModel:function(e){var t,i,r,a,o,s,l=this.model.get("sig");for(e||(e=n.parseHashParameters(window.location.hash)),s=0;s<l.length;
153s++)if(t=l[s].toLocaleString(),e.hasOwnProperty(t))if(""!==(r=_.values(_.pick(e,t))[0])){if(a=parseFloat(r.split("|")[0]),void 0===(o=parseFloat(r.split("|")[1]))||void 0===a)continue;(i=this.model.get("dataProperties")).selectedMinValue=isNaN(a)?i.minRangeValue:a,i.selectedMaxValue=isNaN(o)?i.maxRangeValue:o,this.model.set("dataProperties",i),this.model.set("timeStamp",(new Date).getTime())}else this.removeFacet()},updateSelectedValue:function(){var e=this.model.get("dataProperties"),t=e.selectedMinValue,i=e.selectedMaxValue,r=this.$el.find(".slider"),a=this.model.get("sig");r.slider("values",[t,i]),this.updateText(t,i),this.$el.find(".facet-heading > span").addClass("has-active-facet"),n.updateHash(this.updateSignaturesHash(a,t+"|"+i,{}))},updateText:function(e,t){var n=this.$el.find(".slider-value"),i=this.model.get("dataProperties").formatingString;i=i.replace("{from}",e).replace("{to}",t),n.html(i)}}),i.init=function(){n=XA.component.search.query,XA.component.search.url;var e=t(".facet-range-selector:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new r;new a({el:n,model:i}),n.addClass("initialized")}))},i),XA.register("searchFacetRangeSlider",XA.component.search.facet.rangeslider)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a;XA.component.search.facet.slider=(t=e,document,i={},r=Backbone.Model.extend({defaults:{dataProperties:{},selectedValue:null,sig:[],timeStamp:""}}),a=XA.component.search.baseView.extend({initialize:function(){var e=this.$el.data();this.properties=e.properties,this.model&&(this.model.set({dataProperties:this.properties}),this.model.set("sig",this.translateSignatures(this.properties.searchResultsSignature,this.properties.f))),this.model.on("change",this.updateSelectedValue,this),XA.component.search.vent.on("hashChanged",this.updateModel.bind(this)),this.render()},events:{"click .bottom-remove-filter, .clear-filter":"removeFacet","mouseup .ui-slider-handle":"updateModel"},render:function(){var e=this,i=this.model.get("sig"),r=this.model.get("dataProperties"),a=n.parseHashParameters(window.location.hash),o=parseFloat(r.minValue),s=parseFloat(r.maxValue),l=_.isEmpty(_.pick(a,r.f))?parseFloat(r.selectedValue):_.values(_.pick(a,r.f))[0],c=parseFloat(r.changeStep),u=t("<div />").addClass("slider-value"),d=this.$el.find(".slider");n=XA.component.search.query,XA.component.search.url,isNaN(o)&&(o=0),isNaN(s)&&(s=0),isNaN(c)&&(c=1),isNaN(l)&&(l=0),d.slider({min:o,max:s,step:c,value:l,slide:_.debounce((function(t,n){e.updateModel(e.updateSignaturesHash(i,n.value,{}))}),500)}),t(".slider-value").remove(),u.html(r.formatingString.replace("{value}",l)),d.after(u)},removeFacet:function(){var e=this.$el,t=this.model.get("sig"),i=this.$el.find(".slider"),r=this.$el.find(".slider-value"),a=e.find(".facet-heading > span"),o=this.model.get("dataProperties"),s=e.data("properties"),l=s.f;a.removeClass("has-active-facet"),r.html(""),i.slider("value",s.minValue),o[l]="",n.updateHash(this.updateSignaturesHash(t,"",{})),this.model.set({dataProperties:o})},updateModel:function(e){var t,i,r,a,o=this.model.get("sig");for(e||(e=n.parseHashParameters(window.location.hash)),a=0;a<o.length;a++)i=o[a].toLowerCase(),e.hasOwnProperty(i)&&(""!==(r=_.values(_.pick(e,i))[0])?((t=this.model.get("dataProperties")).selectedValue=r,this.model.set("dataProperties",t),this.model.set("timeStamp",(new Date).getTime())):this.removeFacet())},updateSelectedValue:function(){var e,t=this.model.get("dataProperties"),i=t.selectedValue,r=this.$el.find(".slider-value"),a=this.$el.find(".slider"),o=this.model.get("sig");a.slider("value",i),e=t.formatingString.replace("{value}",i),r.html(e),this.$el.find(".facet-heading > span").addClass("has-active-facet"),n.updateHash(this.updateSignaturesHash(o,i,{}))}}),i.init=function(){n=XA.component.search.query,XA.component.search.url;var e=t(".facet-slider:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new r;new a({el:n,model:i}),n.addClass("initialized")}))},i),XA.register("searchFacetSlider",XA.component.search.facet.slider)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r;XA.component.search.loadMore=(t=e,document,r={},n=Backbone.Model.extend({defaults:{dataProperties:{},sig:[]}}),i=Backbone.View.extend({initialize:function(){var e=this.$el.data(),t=this;null===e.properties.searchResultsSignature&&(e.properties.searchResultsSignature=""),this.model&&this.model.set("sig",e.properties.searchResultsSignature.split(",")),XA.component.search.vent.on("results-loaded",(function(e){var n,i=t.model.get("sig"),r=void 0!==e.offset?e.offset:0;for(n=0;n<i.length;n++)i[n]===e.searchResultsSignature&&(e.pageSize>=e.dataCount||r+e.pageSize>=e.dataCount?t.$el.hide():t.$el.show())}))},events:{"mousedown input":"loadMore"},loadMore:function(){var e,t=this.model.get("sig");for(e=0;e<t.length;e++)XA.component.search.vent.trigger("loadMore",{sig:t[e]})}}),r.init=function(){if(!t("body").hasClass("on-page-editor")){var e=t(".load-more:not(.initialized)");_.each(e,(function(e){var r=t(e);new i({el:r,model:new n}),r.addClass("initialized")}))}},r),XA.register("searchLoadMore",XA.component.search.loadMore)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.locationfilter=function(e,t){"use strict";var n,i,r,a,o={},s=[],l=!1,c=XA.connector.mapsConnector;return a=function(){var e;
153for(e=0;e<s.length;e++)new r({el:s[e],model:new i})},i=Backbone.Model.extend({defaults:{dataProperties:{},sig:[]}}),r=XA.component.search.baseView.extend({initialize:function(){var e=this,t=this,n={},i=this.$el.data(),r=this.$el.find(".location-search-box-input"),a=i.properties.searchResultsSignature.split(",");null===i.properties.searchResultsSignature&&(i.properties.searchResultsSignature=""),this.model.set({dataProperties:i.properties}),this.model.set({sig:a}),this.model.set({queryParams:{maxResults:i.properties.p,text:""}}),(n=new autoComplete({selector:function(){return e.$el.find(".location-search-box-input")[0]},data:{src:function(e){return new Promise((function(n,r){if(i.properties.p)try{var a=Object.assign({},t.model.get("queryParams"));return a.text=e,a.text?c.locationAutocomplete(a,n,r):[]}catch(e){r(e)}}))},keys:["text"],cache:!1},threshold:2,searchEngine:"loose",placeholder:i.myLocationText,resultsList:{tag:"div",class:"autocomplete-menu autocomplete-menu__absolute",destination:function(){return e.$el.find(".location-search-box-input")[0]},maxResults:t.model.get("dataProperties").p,tabSelect:!1},resultItem:{tag:"div",class:"sugesstion-item autocomplete-suggestion autocomplete-selectable",selected:"autocomplete-cursor"},events:{input:{focus:function(){n.input.value.length&&n.start()}}}})).input.addEventListener("selection",(function(e){var n=e&&e.detail&&e.detail.selection?e.detail.selection.value:void 0,i=n?n.text:void 0;t.translateUserLocation(i),r.val(i)})),this.addressLookup(!0),XA.component.search.vent.on("hashChanged",(function(e){var t=e[a.length>0&&""!==a[0]?a[0]+"_a":"a"];null!=t&&""!==t&&r.val(t)}))},events:{"click .location-search-box-button":"addressLookup","keypress .location-search-box-input":"searchTextChanges","keyup .location-search-box-input":"autocomplete"},addressLookup:function(e){var t,n=this.model.get("dataProperties"),i={text:this.getAddress(e),maxResults:1};switch(""===i.text&&(t=this.createHashObject("","",""),this.updateHash(t,n)),n.mode){case"Location":this.detectLocation();break;case"UserProvided":this.translateUserLocation(i);break;case"Mixed":void 0===i.text||""===i.text?this.detectLocation():this.translateUserLocation(i)}},getAddress:function(e){var t,i=this.$el.find(".location-search-box-input").val(),r=n.parseHashParameters(window.location.hash),a=this.model.get("sig");return!0===e||""!==i&&void 0!==i?(""!==i&&void 0!==i||(""!==(t=r[a.length>0&&""!==a[0]?a[0]+"_a":"a"])&&(i=t),void 0===i&&(i="")),i):""},autocomplete:function(e){var t,n=this.model.get("dataProperties");e.stopPropagation(),13!==e.keyCode&&(t={text:this.$el.find(".location-search-box-input").val(),maxResults:n.p},this.model.set({queryParams:t}))},searchTextChanges:function(e){return e.stopPropagation(),13!==e.keyCode||(this.addressLookup(!1),!1)},translateUserLocation:function(e){var t=this,n=this.model.get("dataProperties"),i=void 0!==e.text?e.text:e,r=this.$el.find(".location-search-box-input"),a={};""!==i&&(c.addressLookup({text:i},(function(e){a=t.createHashObject(e[0]+"|"+e[1],n.f+",Ascending"),t.updateHash(a,n)}),(function(){console.error("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/search/component-search-location-filter.js (333:14)","Error while getting '"+i+"' location")})),r.blur(),""===r.val()&&r.val(i))},detectLocation:function(){var e=this.model.get("dataProperties"),t=this.$el.find(".location-search-box-input"),n=this,i={};XA.component.locationService.detectLocation((function(r){i=n.createHashObject(r[0]+"|"+r[1],e.f+",Ascending"),n.updateHash.call(n,i,e),t.length>0&&t.attr("placeholder",e.myLocationText)}),(function(e){console.log("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/search/component-search-location-filter.js (365:14)",e)}))},updateHash:function(e,t){var i,r,a,o=this.model.get("sig"),s=void 0!==XA.component.search?XA.component.search.results.searchResultModels:[],l=this.$el.find(".location-search-box-input").val();for(r=0;r<s.length;r++)for(a=0;a<o.length;a++)i=o[a],s[r].get("dataProperties").sig===i&&s[r].set("loadMoreOffset",0);if(null!==l&&""!==l)for(r=0;r<o.length;r++)e[""!==(i=o[r])?i+"_a":"a"]=l;for(n.updateHash(e,t.targetUrl),r=0;r<o.length;r++)XA.component.search.vent.trigger("my-location-coordinates-changed",{sig:o[r],coordinates:e[""!==o[r]?o[r]+"_g":"g"].split("|")})},createHashObject:function(e,t,n){var i,r,a=this.model.get("sig"),o={};for(r=0;r<a.length;r++)o[""!==(i=a[r])?i+"_g":"g"]=e,o[""!==i?i+"_o":"o"]=t,void 0!==n&&(o[""!==i?i+"_a":"a"]=n);return o}}),o.init=function(){if(!e("body").hasClass("on-page-editor")){n=XA.component.search.query,XA.component.search.url;var t=e(".location-filter:not(.initialized)");_.each(t,(function(t){var n=e(t),i=n.data("properties");s.push(n),l||"Location"===i.mode?a():c.loadScript(i.key,XA.component.search.locationfilter.scriptsLoaded),n.addClass("initialized")}))}},o.scriptsLoaded=function(){l||(console.log("C:/src/Project/XaSites/code/Theme-SXA/src/_masterbrand/js/components/search/component-search-location-filter.js (484:8)","Maps api loaded"),l=!0,a())},o}(e,document),XA.register("locationfilter",XA.component.search.locationfilter)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.pageSelector=function(e,t){var n,i={};facetName="e";var r=Backbone.Model.extend({defaults:{dataProperties:{},resultsCount:0,offset:0,selectedValue:1,pageSize:0,repeatRequest:!1,template:"<ul class='page-selector-list'> <li class='page-selector-item-first'><a href='#'><%= data.first %></a></li><li class='page-selector-item-previous'><a href='#'><%= data.previous %></a></li><% var beforePage = 0; %><% _.each(data.pages, function(page){ %><% if((beforePage+1) != page.number){ %><li><span class='page-selector-more'>...</span></li><% } %><% beforePage = page.number; %><% if(data.selectedValue === page.number){ %><% active = 'active'; %><% }else { active = '' } %><li><a class='page-selector-item-link <%= active %>' data-offset='<%= page.offset %>' data-itemNumber='<%= page.number %>' href='#'><%= page.number %></a></li><% }); %><li class='page-selector-item-next'><a href='#'><%= data.next %></a></li><li class='page-selector-item-last'><a href='#'><%= data.last %></a></li></ul>",sig:[],timeStamp:(new Date).getTime()}}),a=XA.component.search.baseView.extend({initialize:function(){var e=this.$el.data();null===e.properties.searchResultsSignature&&(e.properties.searchResultsSignature=""),this.model.set("dataProperties",e),this.model.set("sig",this.translateSignatures(e.properties.searchResultsSignature,facetName)),this.model.on("change",this.render,this),XA.component.search.vent.on("results-loaded",this.handleLoadedData.bind(this)),window.location.href.startsWith("file://")&&this.model.set({resultsCount:10,pageSize:2,selectedValue:2})},events:{"click .page-selector-item-link":"updateSelectedValue","click .page-selector-item-first a":"show
153FirstPage","click .page-selector-item-last a":"showLastPage","click .page-selector-item-previous a":"showPrevPage","click .page-selector-item-next a":"showNextPage"},updateModelAfterSearch:function(e,t){this.model.set({pageSize:parseInt(e.pageSize),resultsCount:parseInt(e.dataCount),offset:parseInt(e.offset),selectedValue:parseInt(t)}),this.model.set("timeStamp",(new Date).getTime()),this.updateElementCssClass(e)},updateElementCssClass:function(e){this.el.classList.remove("page-selector-empty"),this.el.classList.remove("page-selector-single-page"),0===e.dataCount?this.el.classList.add("page-selector-empty"):(e.pageSize>e.dataCount||e.offset>e.dataCount)&&this.el.classList.add("page-selector-single-page")},updateSelectedValue:function(t){t.preventDefault();var i=this.model.get("sig"),r=e(t.target).data();n.updateHash(this.updateSignaturesHash(i,r.offset,{}))},showFirstPage:function(t){t.preventDefault();var i=this.model.get("sig");e(t.target).data();n.updateHash(this.updateSignaturesHash(i,0,{}))},showLastPage:function(e){e.preventDefault();var t=this.model.get("resultsCount")%this.model.get("pageSize"),i=this.model.get("resultsCount")-(0===t?this.model.get("pageSize"):t),r=this.model.get("sig");n.updateHash(this.updateSignaturesHash(r,i,{}))},showNextPage:function(e){e.preventDefault();var t=this.model.get("offset"),i=this.model.get("sig");t+this.model.get("pageSize")<this.model.get("resultsCount")&&(t+=this.model.get("pageSize")),n.updateHash(this.updateSignaturesHash(i,t,{}))},showPrevPage:function(t){t.preventDefault();var i=this.model.get("offset"),r=(e(t.target).data(),this.model.get("sig"));i-this.model.get("pageSize")>=0&&(i-=this.model.get("pageSize")),n.updateHash(this.updateSignaturesHash(r,i,{}))},render:function(){var e,t=this.model.get("dataProperties").properties,n=this.model.get("resultsCount"),i=this.model.get("pageSize"),r=this.model.get("selectedValue"),a=Math.ceil(n/i),o=[],s=r-t.treshold/2,l=r+t.treshold/2;if(s<0&&(l+=Math.abs(s)),l>a&&(s-=l-a),t.treshold>=a)for(var c=0;c<a;c++)o.push({number:c+1,offset:c*i});else for(c=1;c<=a;c++)(1===c||c===a||c>=s&&c<=l)&&o.push({number:c,offset:(c-1)*i});e={previous:t.previous,first:t.first,next:t.next,last:t.last,pages:o,selectedValue:r};var u=_.template(this.model.get("template"))({data:e});this.$el.html(u),this.handleButtonState(r,a)},handleButtonState:function(e,t){this.$el.find(".page-selector-item-last, .page-selector-item-next").removeClass("inactive"),this.$el.find(".page-selector-item-first, .page-selector-item-previous").removeClass("inactive"),0==t?(this.$el.find(".page-selector-item-first, .page-selector-item-previous").addClass("inactive"),this.$el.find(".page-selector-item-last, .page-selector-item-next").addClass("inactive")):(1==e&&this.$el.find(".page-selector-item-first, .page-selector-item-previous").addClass("inactive"),e==t&&this.$el.find(".page-selector-item-last, .page-selector-item-next").addClass("inactive"))},handleLoadedData:function(e){var t,i,r,a,o=this,s=this.model.get("dataProperties").properties.searchResultsSignature.split(","),l=n.parseHashParameters(window.location.hash);for(void 0===e.offset&&(e.offset=0),a=0;a<s.length;a++)encodeURIComponent(s[a])===e.searchResultsSignature&&(e.pageSize>e.dataCount||e.offset>e.dataCount?(this.updateModelAfterSearch(e,1),setTimeout((function(){r=n.parseHashParameters(window.location.hash),i=""!==e.searchResultsSignature?e.searchResultsSignature+"_e":"e","0"!==l[i]&&(r[i]=0,Backbone.history.navigate(o.createFirstPageUrlHash(r),{trigger:!0,replace:!0}))}),100)):(t=Math.ceil(e.offset/e.pageSize)+1,this.updateModelAfterSearch(e,t)))},createFirstPageUrlHash:function(e){var t="",n=0;return _.each(e,(function(e,i){n>0&&(t+="&"),n++,t+=i+"="+e})),t}});return i.init=function(){if(!e("body").hasClass("on-page-editor")){n=XA.component.search.query;var t=e(".page-selector:not(.initialized)");_.each(t,(function(t){var n=e(t);new a({el:n,model:new r}),n.addClass("initialized")}))}},i}(e,document),XA.register("searchPageSelector",XA.component.search.pageSelector)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a,o;XA.component.search.pageSize=(t=e,document,r={},a=Backbone.Model.extend({defaults:{sig:[]}}),o=XA.component.search.baseView.extend({clicks:0,initialize:function(){var e=this,t=this.getCurrentPageSize(),n=this.$el.data().properties;this.model.set("sig",this.translateSignatures(n.searchResultsSignature,"p")),this.selectOption(t),void 0===t&&""!==n.defaultPageSize&&e.selectOption(n.defaultPageSize),XA.component.search.vent.on("hashChanged",(function(t){var n,i=e.model.get("sig");for(n=0;n<i.length;n++)t.hasOwnProperty(i[n])&&e.selectOption(t[i[n]])}))},events:{"click select":"updatePageSizeClick","change select":"updatePageSizeSelect"},getCurrentPageSize:function(){n.parseHashParameters(window.location.hash);var e,t=this.model.get("sig");for(e=0;e<t.length;e++)if(hash.hasOwnProperty(t[e]))return hash[t[e]]},selectOption:function(e){if(void 0!==e){var t=this.$el.find("select option[value='"+e+"']");t.siblings().removeAttr("selected"),t.attr("selected","selected")}},updatePageSizeClick:function(e){if(this.clicks++,2===this.clicks){var n=t(e.target).find("option:selected").val();void 0!==n&&this.updatePageSize(n),this.clicks=0}},updatePageSize:function(e){var t=this.model.get("sig");i.updateHash(this.updateSignaturesHash(t,e,{}))},updatePageSizeSelect:function(e){var t=e.currentTarget.value;this.updatePageSize(t)}}),r.init=function(){if(!t("body").hasClass("on-page-editor")){n=XA.component.search.query,i=XA.component.search.parameters,XA.component.search.results.searchResultModels;var e=t(".page-size:not(.initialized)");_.each(e,(function(e){var n=t(e);new o({el:n,model:new a}),n.addClass("initialized")}))}},r.getDefaultPageSizes=function(){var e,n,i,r,a,o=t(".page-size"),s=[];if(o.length>0){for(n=0;n<o.length;n++)r=(e=(a=t(o[n])).data()).properties.searchResultsSignature.split(","),i=e.properties.defaultPageSize,s.push({signatures:r,defaultPageSize:""!==i?i:a.find("select option:first-child").val()});return s}return-1},r),XA.register("searchPageSize",XA.component.search.pageSize)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a;XA.component.search.parameters=(t=e,document,r=!1,a={},(i={}).init=function(){t("body").hasClass("on-page-editor")||r||(n=XA.component.search.query,XA.component.search.results.searchResultModels,r=!0)},i.registerDefault=function(e){_.each(e,(function(t,n){a[n]=e[n].toString()}))},i.updateHash=function(e){_.each(e,(function(t,n){a[n]===e[n].toString()&&(e[n]="")})),n.updateHash(e)},i),XA.register("searchParameters",XA.component.search.parameters)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.query=(document,new(Backbone.Model.extend({defaults:{hash:"",hashObj:{}},initialize:function(){var e=window.location.hash;e.length&&(this.set({hash:e}),this.createHashObj())},createHashObj:function(){this.set({hashObj:this.parseHashParameters(this.get("hash"))})},parseHashParameters:function(e){if(null===e||""===e)return{};var t={},n=(e=e||window.location.hash).slice(e.indexOf("#")+1).split("&"),i=n;n=[];for(var r=0;r<=i.length-1;r++)""!==i[r]&&n.push(i[r]);for(var a=0;a<n.length;a++){var o=n[a].split("="),s=o[0].toLowerCase();o.length>
1531?t[decodeURIComponent(s)]=decodeURIComponent(o[1].replace(/[+]/g," ")):t[decodeURIComponent(s)]=null}return t},updateHash:function(e,t){var n="#",i=this.parseHashParameters(window.location.hash);_.each(e,(function(e,t){""!==e?i[t]=e:delete i[t]})),"#"!==t&&null!=t||(t=window.location.pathname);var r=0;_.each(i,(function(e,t){r>0&&(n+="&"),r++,n+=t+"="+encodeURIComponent(e).replace(/%7C/g,"|")})),Backbone.history.navigate(n,{trigger:!0}),n.length&&(this.set({hash:n}),this.createHashObj())},isSignaturePresentInHash:function(e,t){for(var n=Object.keys(e),i=!1,r=n.length,a=0;a<r;a++)if(n[a].startsWith(t)){i=!0;break}return i}})))}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a,o;XA.component.search.radiusFilter=(t=e,document,o={},i=Backbone.Model.extend({defaults:{properties:[],selected:{},sig:[]}}),r=XA.component.search.baseView.extend({initialize:function(){var e=_.map(this.$el.find("li[data-value][data-title]"),(function(e){return t(e)})),n=this.$el.data("properties");_.each(e,(function(e){e.addClass("radius-button")})),this.model.set({properties:n,selected:{}}),this.model.bind("change",this.render,this),this.model.set("sig",this.translateSignatures(n.searchResultsSignature,n.f)),XA.component.search.vent.on("hashChanged",this.hashChanged.bind(this)),this.render()},events:{"click li":"radiusClick","click .bottom-remove-filter, .clear-filter":"deselect"},render:function(){var e;e=this.model.get("selected"),this.$el.find(".selected").removeClass("selected"),void 0!==e&&e.length?e.addClass("selected"):(e=this.$el.find("[data-value='-1']")).length&&e.length>=1&&t(e[0]).addClass("selected")},updateHash:function(e){var t=this.model.get("sig");e=-1==e?"":e,a.updateHash(this.updateSignaturesHash(t,e,{}))},radiusClick:function(e){var n=t(e.currentTarget);this.updateHash(n.data("value")),this.model.set({selected:n})},deselect:function(e){this.updateHash(""),this.model.set({selected:void 0})},hashChanged:function(e){var n,i,r,a,o=this.model.get("sig");for(a=0;a<o.length;a++)n=o[a].toLowerCase(),e.hasOwnProperty(n)&&(i=""===(i=e[n])?-1:i,(r=this.$el.find("[data-value='"+i+"']")).length&&r.length>=1?this.model.set({selected:t(r[0])}):this.model.set({selected:void 0}))}}),n=function(e){var t=new i;new r({el:e[0],model:t}),e.addClass("initialized")},o.init=function(){if(!t("body").hasClass("on-page-editor")){var e=t(".radius-filter:not(.initialized)");_.each(e,(function(e){n(t(e))})),a=XA.component.search.query,XA.component.search.url}},o),XA.register("radiusFilter",XA.component.search.radiusFilter)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.results=function(e,t){"use strict";var n,i={},r=[],a=[],o=[],s=[],l=Backbone.Model.extend({defaults:{template:"<% if(!results.length){ %><div class='no-results'><%= noResultsText %></div> <% }else { %><ul class='search-result-list'> <% _.forEach(results, function(result){ %><li <% if(result.Geospatial){%>data-id='<%= result.Id %>' data-longitude='<%= result.Geospatial.Longitude %>' data-latitude='<%= result.Geospatial.Latitude %>'<% } %>><%= result.Html %></li><% }); %></ul><% } %><div class='search-result-overlay'>",templateItems:"<% _.forEach(results, function(result){ %><li <% if(result.Geospatial){%>data-id='<%= result.Id %>' data-longitude='<%= result.Geospatial.Longitude %>' data-latitude='<%= result.Geospatial.Latitude %>'<% } %>><%= result.Html %></li><% }); %>",dataProperties:{},blockNextRequest:!1,noResultsText:"",resultData:{},loadingInProgress:!1,loadingMoreInProgress:!1,resultDataMore:{},loadMoreOffset:0,loadMore:!1},initialize:function(){var e=n.parseHashParameters(window.location.hash),t=encodeURIComponent(this.get("dataProperties").sig),i="e_"+t;e.hasOwnProperty("e")&&""===t&&this.set("loadMoreOffset",parseInt(e.e)),e.hasOwnProperty(i)&&this.set("loadMoreOffset",parseInt(e[i])),XA.component.search.vent.on("results-loaded",this.resultsLoaded.bind(this)),XA.component.search.vent.on("results-loading",this.resultsLoading.bind(this))},blockRequests:function(e){this.set("blockNextRequest",e)},checkBlockingRequest:function(){return this.get("blockNextRequest")},getMyOffset:function(){var e=n.parseHashParameters(window.location.hash),t=encodeURIComponent(this.get("dataProperties").sig);return e.hasOwnProperty("e_"+t)?e["e_"+t]:0},resultsLoaded:function(e){encodeURIComponent(this.get("dataProperties").sig)===e.searchResultsSignature&&(this.get("loadMore")?(this.set({resultDataMore:e}),this.set({loadingMoreInProgress:!1}),this.unset("loadMore",{silent:!0})):(this.set({resultData:e}),this.set({loadingInProgress:!1})),this.blockRequests(!1))},resultsLoading:function(e){this.cid==e&&(this.get("loadMore")?this.set({loadingMoreInProgress:!0}):this.set({loadingInProgress:!0}))}}),c=Backbone.View.extend({initialize:function(){var e=this.$el.data(),t=this.$el.find(".no-results").html(),n=XA.component.search.router,i=n?n.routerInstance:void 0,r=this;null===e.properties.sig&&(e.properties.sig=""),this.model&&this.model.set({dataProperties:e.properties,noResultsText:t}),this.model.on("change:loadingInProgress",this.loading,this),this.model.on("change:loadingMoreInProgress",this.loadingMore,this),this.model.on("change:resultData",this.render,this),this.model.on("change:resultDataMore",this.renderPart,this),this.$el.on("remove",(function(){var e=a;a=[];for(var t=0;t<=e.length-1;t++)e[t].cid!==r.model.cid&&a.push(e[t])})),XA.component.search.vent.on("add-variant-class",(function(e){var t=r.model.get("dataProperties").sig;e.sig===t&&(r.$el.removeClass(r.$el.attr("data-class-variant")),r.$el.attr("data-class-variant",e.classes),r.$el.addClass(e.classes))}
153)),XA.component.search.vent.on("loadMore",(function(e){var t=r.model.get("dataProperties").sig;e.sig===t&&XA.component.search.service.getData({loadMore:"true",p:r.model.get("dataProperties").p,singleRequestMode:t})})),XA.component.search.vent.on("my-location-coordinates-changed",(function(e){e.sig===r.model.get("dataProperties").sig&&r.model.get("loadMore")&&r.$el.find(".search-result-list").html("")})),i&&e.properties.autoFireSearch&&this.$el.closest(".overlay-inner").length&&i.checkUrl(window.location.hash,!0),XA.component.search.vent.on("hashChanged",this.ShowHideSearchElements.bind(this)),this.render()},ShowHideSearchElements:function(){for(var e,t=this,n=this.model.get("dataProperties").autoFireSearch,i=window.location.hash.includes("e="),a=[],l=0;l<=r.length-1;l++)e=r[l],t.model.get("dataProperties").sig===e.model.get("dataProperties").sig&&a.push(r[l]);for(var c,u,d=[],h=0;h<=o.length-1;h++)c=o[h],u=void 0,(null===(u=c.data("properties"))||void 0===u?void 0:u.searchResultsSignature)===t.model.get("dataProperties").sig&&d.push(o[h]);for(var f=function(e){var n;return(null===(n=e.data("properties"))||void 0===n?void 0:n.targetSignature)===t.model.get("dataProperties").sig},p=[],m=0;m<=s.length-1;m++)f(s[m])&&p.push(s[m]);0!=n||i?(null!=a[0]&&a[0].$el.show(),null!=d[0]&&d[0].show(),null!=p[0]&&p[0].show()):(null!=a[0]&&a[0].$el.hide(),null!=d[0]&&d[0].hide(),null!=p[0]&&p[0].hide())},events:{"click .search-result-list > li[data-longitude][data-latitude]":"poiClick"},loading:function(){this.model.get("loadingInProgress")?this.$el.addClass("loading-in-progress"):this.$el.removeClass("loading-in-progress")},loadingMore:function(){this.model.get("loadingMoreInProgress")?this.$el.addClass("loading-more-in-progress"):this.$el.removeClass("loading-more-in-progress")},renderPart:function(){var e=_.template(this.model.get("templateItems"))({results:this.model.get("resultDataMore").data});this.$el.find(".search-result-list").append(e)},render:function(){var e=this.model.get("resultData").data;if(!window.location.href.startsWith("file://")){void 0===e&&(e=[]);var t=_.template(this.model.get("template"))({results:e,noResultsText:this.model.get("noResultsText")});this.$el.html(t)}},poiClick:function(t){var n=e(t.currentTarget);XA.component.search.vent.trigger("center-map",{sig:this.model.get("dataProperties").sig,coordinates:[n.data("latitude"),n.data("longitude")],id:n.data("id")})}});return i.init=function(){if(!e("body").hasClass("on-page-editor")){XA.component.search.url,n=XA.component.search.query,XA.component.search.ajax;var t=e(".search-results:not(.initialized)");_.each(t,(function(t){var n=e(t),i=new l;a.push(i),r.push(new c({el:n,model:i})),n.addClass("initialized")}));var i=e(".search-results-count");_.each(i,(function(t){s.push(e(t))}));var u=e(".load-more");_.each(u,(function(t){o.push(e(t))}))}},i.searchResultViews=r,i.searchResultModels=a,i}(e,document),XA.register("searchResults",XA.component.search.results)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r;XA.component.search.results.count=(t=e,document,i={},r=Backbone.View.extend({initialize:function(){this.$el.data(),n.parseHashParameters(window.location.hash);var e=this.$el.find(".results-count"),t=this;if(this.resultsCountText=e.html(),window.location.href.startsWith("file://"))return e.html(t.resultsCountText.replace("{count}",1)),void t.$el.find(".results-count").show();XA.component.search.vent.on("results-loaded",(function(r){if(t.$el.find(".results-count").length>0){var a=t.$el.data("properties").targetSignature;if(""!=a&&a!=r.searchResultsSignature)return;var o=n.parseHashParameters(window.location.hash)[""!=a?a+"_q":"q"];void 0!==o&&""!=o?e.html(t.resultsCountText.replace("{count}",r.dataCount).replace("{keyword}",i.sanitizeHTML(o))):e.html(t.resultsCountText.replace("{count}",r.dataCount).replace('for "{keyword}"',"")),t.$el.find(".results-count").show()}}))}}),i.init=function(){if(!t("body").hasClass("on-page-editor")){n=XA.component.search.query;var e=t(".search-results-count:not(.initialized)");_.each(e,(function(e){var n=t(e);new r({el:n}),n.addClass("initialized")}))}},i.sanitizeHTML=function(e){return e.replace(/[^\w. ]/gi,(function(e){return"&#"+e.charCodeAt(0)+";"}))},i),XA.register("searchResultsCount",XA.component.search.results.count)}
153).call(this,n(1))},function(e,t,n){(function(e){var t,n,r,a,o;XA.component.search.facet.resultsfilter=(t=e,document,r={},a=XA.component.search.baseModel.extend({defaults:{template:"<div class='facet-search-filter <% if(!showAllFacets){%>facet-hided<%}%>'><% _.forEach(facet.Values, function(value,key){%><p class='facet-value <% if(highlightBehaviour<=key){ %> hide-facet-value <% } %>' data-facetValue='<%= value.Name !== '' ? encodeURI(value.Name) : '_empty_' %>'><span><%= value.Name !== '' ? value.Name : emptyText %> <span class='facet-count'>(<%= value.Count %>)</span></span></p><% }); %><% if(highlightBehaviour>=1 && resultsCount>highlightBehaviour){ %><div class='toogle-facet-visibility'><% if(showAllFacets){ %><%=showLessText%><%}else{%><%=showMoreText%><%} %></div><%}%></div>",templateMulti:"<div class='facet-search-filter <% if(!showAllFacets){%>facet-hided<%}%>'><% _.forEach(facet.Values, function(value,key){%><p class='facet-value <% if(highlightBehaviour<=key){ %> hide-facet-value <% } %>' data-facetValue='<%= value.Name !== '' ? encodeURI(value.Name) : '_empty_' %>'><input type='checkbox' name='facetValue' /><label for='facetName'><%= value.Name !== '' ? value.Name : emptyText %> <span class='facet-count' data-facetCount='<%= value.Count %>'>(<%= value.Count %>)</span></label></p><% }); %><% if(highlightBehaviour>=1 && resultsCount>highlightBehaviour){ %><div class='toogle-facet-visibility'><% if(showAllFacets){ %><%=showLessText%><%}else{%><%=showMoreText%><%} %></div><%}%></div>",dataProperties:{},blockNextRequest:!1,resultData:{},timeStamp:"",showAllFacets:!1,sig:[]},initialize:function(){XA.component.search.vent.on("facet-data-loaded",this.processData.bind(this)),XA.component.search.vent.on("facet-data-partial-filtered",this.processData.bind(this)),XA.component.search.vent.on("facet-data-filtered",this.processData.bind(this)),XA.component.search.vent.on("hashChanged",this.updateComponent.bind(this)),this.set({facetArray:[]})},toggleBlockRequests:function(){var e=this.get("blockNextRequest");this.set(this.get("blockNextRequest"),!e)},processData:function(e){var t,n=this,i=this.get("dataProperties"),r=i.searchResultsSignature.split(","),a=i.sortOrder;for(null===e.Signature&&(e.Signature=""),t=0;t<r.length;t++)if(e.Facets.length>0&&e.Signature===r[t]){var o=_.find(e.Facets,(function(e){return e.Key.toLowerCase()===n.get("dataProperties").f.toLowerCase()}));void 0!==o&&(this.sortFacetArray(a,o.Values),n.set({resultData:o}))}else n.set({resultData:[]})},updateFacetArray:function(e){if(e){for(var t=e.split("||"),n=[],i=0;i<t.length;i++)n.push(t[i]);this.set({facetArray:_.unique(n)})}},updateComponent:function(e){var t=this.get("sig");for(i=0;i<t.length;i++)e.hasOwnProperty(t[i])?this.updateFacetArray(e[t[i]]):this.set({facetArray:[]}),this.set("timeStamp",(new Date).getTime())}}),o=XA.component.search.baseView.extend({initialize:function(){var t,i,r=this.$el.data(),a=n.parseHashParameters(window.location.hash),o=r.properties;for(null===r.properties.searchResultsSignature&&(r.properties.searchResultsSignature=""),t=this.translateSignatures(o.searchResultsSignature,o.f),this.model.set({dataProperties:o}),this.model.set("sig",t),i=0;i<t.length;i++)if(!e.isEmptyObject(_.pick(a,t[i]))){var s=_.values(_.pick(a,t[i]))[0];this.model.updateFacetArray(s)}this.model.on("change",this.render,this)},events:{"click .facet-value":"updateFacet","click .filterButton":"updateFacet","click .clear-filter":"removeFacet","click .bottom-remove-filter > button":"removeFacet","click .toogle-facet-visibility":"toogleFacetVisibility"},toogleFacetVisibility:function(){var e=this.model.get("showAllFacets");this.model.set("showAllFacets",!e)},updateFacet:function(e){var i,r,a=t(e.currentTarget),o=this.model.get("facetArray"),s=this.model.get("dataProperties"),l=this.$el.find(".facet-heading > span"),c=a.parents(".component-content").find(".facet-search-filter"),u=s.f.toLowerCase(),d=a.data("facetvalue"),h=void 0!==d?decodeURIComponent(d):d,f=this.model.get("sig"),p={};if(s.multi){if(h&&(a.is(":not(.active-facet)")?(this.setActiveFacet(u,h),o.push(h)):(a.removeClass("active-facet"),a.find("[type=checkbox]").prop("checked",!1),a.find("[type=checkbox] + label:after").css({background:"#fff"}),(i=o.indexOf(h))>-1&&o.splice(i,1),0==o.length&&l.removeClass("has-active-facet")),this.model.set({facetArray:o})),"button"==a[0].type){for(r=0;r<f.length;r++)p[f[r]]=_.uniq(o,(function(e){return JSON.stringify(e)})).join("||");n.updateHash(p)}}else if(h){for(r=0;r<f.length;r++)p[f[r]]=h;c.data("active-facet",p),this.setActiveFacet(u,h),n.updateHash(p)}},removeFacet:function(e){e.preventDefault();var i=this.$el,r=i.find(".facet-heading > span"),a=i.find(".facet-value"),o=this.model.get("sig");n.updateHash(this.updateSignaturesHash(o,"",{})),r.removeClass("has-active-facet"),_.each(a,(function(e){var n=t(e);n.hasClass("active-facet")&&(n.removeClass("active-facet"),n.find("[type=checkbox]").prop("checked",!1),n.find("[type=checkbox] + label:after").css({background:"#fff"}))})),this.model.set({facetArray:[]})},render:function(){var t,i,r=this,a=this.model.get("resultData"),o=this.$el.find(".facet-heading > span"),s=this.model.get("dataProperties").f.split("|"),l=this.model.get("dataProperties").emptyValueText,c=this.model.get("dataProperties").highlightThreshold,u=this.model.get("dataProperties").showLessText,d=this.model.get("dataProperties").showMoreText,h=parseInt(this.model.get("dataProperties").highlightBehaviour),f=this.model.get("showAllFacets"),p=n.parseHashParameters(window.location.hash),m=this.model.get("sig");window.location.href.startsWith("file://")||(this.manageVisibilityByData(this.$el,a),void 0!==a&&(i=(!0===r.model.get("dataProperties").multi?_.template(r.model.get("templateMulti")):_.template(r.model.get("template")))({facet:a,emptyText:l,showLessText:u,showMoreText:d,highlightBehaviour:h,showAllFacets:f,resultsCount:a.Values?a.Values.length:-1})),r.$el.find(".contentContainer").html(i),_.each(s,(function(n){t=n.toLowerCase();for(var i=0;i<m.length;i++)if(!e.isEmptyObject(_.pick(p,m))){var a=_.values(_.pick(p,m))[0];if(a)return void r.setActiveFacet(t,a)}})),c&&this.handleThreshold(c),0===this.model.get("facetArray").length?o.removeClass("has-active-facet"):o.addClass("has-active-facet"))}
153,setActiveFacet:function(e,n){var i,r,a=this.model.get("dataProperties"),o=this.$el.find("p[data-facetvalue]"),s=this.$el.find(".facet-heading > span"),l=this;n=n.toString().toLowerCase(),i=[];for(var c=this.$el.find("[data-facetvalue]"),u=function(){var e;return decodeURIComponent(null===(e=t(this).attr("data-facetvalue"))||void 0===e?void 0:e.toLowerCase())===n},d=0;d<=c.length-1;d++)u(c[d])&&i.push(c[d]);null!=n&&((r=n.split("||")).length>1&&(a.multi=!0),a.multi?_.each(o,(function(e){if(r.length>1)for(var n=0,a=r.length;n<a;n++){i=[];for(var o=l.$el.find("[data-facetvalue]"),s=function(){var e;return decodeURIComponent(null===(e=t(this).attr("data-facetvalue"))||void 0===e?void 0:e.toLowerCase())===r[n]},c=0;c<=o.length-1;c++)s(o[c])&&i.push(o[c]);e===i[0]&&(t(e).addClass("active-facet"),t(e).find("[type=checkbox]").prop("checked",!0))}e===i[0]&&(t(e).addClass("active-facet"),t(e).find("[type=checkbox]").prop("checked",!0))})):_.each(o,(function(e){e!==i[0]?(t(e).removeClass("active-facet"),t(e).find("[type=checkbox]").prop("checked",!1),t(e).find("[type=checkbox] + label:after").css({background:"#fff"})):t(e).addClass("active-facet")})),s.addClass("has-active-facet"))},handleThreshold:function(e){var n=this.$el.find(".facet-search-filter").children("p");_.each(n,(function(n){var i=t(n).find(".facet-count");i.data("facetcount")>e&&i.addClass("highlighted")}))}}),r.init=function(){if(!t("body").hasClass("on-page-editor")){n=XA.component.search.query,XA.component.search.ajax,XA.component.search.url;var e=t(".facet-single-selection-list:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new a;new o({el:n,model:i}),n.addClass("initialized")}))}},r.getFacetDataRequestInfo=function(){var e=t(".facet-single-selection-list"),n=[];return _.each(e,(function(e){var i,r=t(e).data().properties,a=r.searchResultsSignature.split(",");for(i=0;i<a.length;i++)n.push({signature:null===a[i]?"":a[i],facetName:r.f,endpoint:r.endpoint,showMoreText:r.showMoreText,showLessText:r.showLessText,highlightBehaviour:r.highlightBehaviour,s:r.s,filterWithoutMe:!r.collapseOnSelection})})),n},r),XA.register("facetResultsFilter",XA.component.search.facet.resultsfilter)}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a;XA.component.search.sort=(t=e,document,i={},r=Backbone.Model.extend({defaults:{updateOrder:!1,sig:[]}}),a=XA.component.search.baseView.extend({initialize:function(){var e=this.$el.data();this.model&&this.model.set("sig",this.translateSignatures(e.properties.sig,"o")),XA.component.search.vent.on("hashChanged",this.updateComponent.bind(this))},events:{"click .sort-results-group a":"sortSearchResultsLink","change select":"sortSearchResultsSelect"},sortSearchResultsLink:function(e){e.preventDefault(),this.sortSearchResults(t(e.currentTarget).parent())},sortSearchResultsSelect:function(e){this.sortSearchResults(t(e.currentTarget[e.currentTarget.options.selectedIndex]))},sortSearchResults:function(e){var t=e.data(),i=this.model.get("sig"),r=t.facet+","+t.direction;""!==t.direction?n.updateHash(this.updateSignaturesHash(i,r,{})):n.updateHash(this.updateSignaturesHash(i,"",{}))},updateComponent:function(e){var t,n,i,r=this.model.get("sig");for(i=0;i<r.length;i++)e.hasOwnProperty(r[i])?(n=e[r[i]].split(","),t=this.$el.find("[data-facet='"+n[0]+"'][data-direction='"+n[1]+"']")):t=this.$el.find("[data-facet][data-direction]:first");this.$el.find("[data-facet][data-direction]").removeAttr("selected"),t.attr("selected","selected")}}),i.init=function(){if(!t("body").hasClass("on-page-editor")){XA.component.search.query,n=XA.component.search.parameters;var e=t(".sort-results:not(.initialized)");_.each(e,(function(e){var n=t(e),i=new r;new a({el:n,model:i}),n.addClass("initialized")}))}},i.getFirstSortingOption=function(e){var n,i,r,a,o=t(".sort-results");for(r=0;r<o.length;r++)if(void 0!==e)for(i=t(o[r]).data().properties.sig.split(","),a=0;a<i.length;a++)if(i[a]===e&&""!==(n=t(o[r]).find("[data-facet][data-direction]").data()).direction)return n.facet+","+n.direction;return-1},i),XA.register("searchSort",XA.component.search.sort)}).call(this,n(1))},function(e,t,n){(function(e){var t,n;XA.component.search.url=(t=e,document,n=function(e){var t,n=(e+="").split("||"),i=[];return _.each(n,(function(e){t=e.split("|"),_.contains(e,"|")&&3===t.length?
153i.push(t[1]+"|"+t[2]):i.push(e)})),i.join("||")},new(Backbone.Model.extend({createSearchUrl:function(e,t){var n=this.setEndpoint(e.endpoint);return n+=e.l?"&l="+e.l:"",n+=e.s?"&s="+e.s:"",n+=e.itemid?"&itemid="+e.itemid:"",n+=this.getFacetParams(e,t),n=this.fixUrl(n)},createRedirectSearchUrl:function(e,n,i,r){var a,o,s,l,c=XA.component.search.query.get("hashObj"),u={},d={},h=0;if(""!==i)for(s in c)a=s.substring(s.indexOf("_")+1),(o=s.substr(0,s.indexOf("_")))===i&&(d[s]=c[s]);else d=c;if(n=t.extend({},d,n),""!==r)for(s in n)a=s.substring(s.indexOf("_")+1),(o=s.substr(0,s.indexOf("_")))===i?u[r+"_"+a]=n[s]:o===r&&(u[s]=n[s]);else u=n;return l=this.setEndpoint(e+"#"),_.each(u,(function(e,t){l+=(0===h?"":"&")+t+"="+e,h++})),l},createPredictiveSearchUrl:function(e,t,n){var i=this.setEndpoint(e);return i+="?q="+encodeURIComponent(n),i+="&v="+t.v,i+="&p="+t.p,i+=t.l?"&l="+t.l:"",i+=t.s?"&s="+t.s:"",i+=t.itemid?"&itemid="+t.itemid:""},createFacetUrl:function(e,t){var n=this.setEndpoint(e.endpoint);return n+="?f="+e.f.toLowerCase(),n+=e.s?"&s="+e.s:"",n+=e.l?"&l="+e.l:"",n+=t?"&q="+encodeURIComponent(t):"",n+=this.getFacetParams(e)},createMultiFacetUrl:function(e,t,n,i){var r=this.setEndpoint(e.endpoint);return r+="?f="+t.join("||").toLowerCase(),r+=e.s?"&s="+e.s:"",r+=e.l?"&l="+e.l:"",r+=i?"&itemid="+i:"",r+=this.getFacetParams(e,n),r+="&sig="+encodeURIComponent(n)},clearUrlParams:function(e,t){var n=e.f.toLowerCase(),i={};return delete t[n],delete i[n],XA.component.search.query.updateHash(i),t},getFacetParams:function(e,t){var i,r="",a=["endpoint","l","s","e","f","sig","itemid"],o=["g","o","q","p","e","v"];for(facet in e.hasOwnProperty("sig")&&(r+="&sig="+encodeURIComponent(e.sig)),e)-1===a.indexOf(facet)&&facet&&e[facet]&&(i=facet.substring(facet.indexOf("_")+1),t===facet.substr(0,facet.indexOf("_"))&&-1===o.indexOf(i)&&(r+="&"+i+"="+encodeURIComponent(n(e[facet]))));return r=this.getSpecialParams(e,t,o,r)},getSpecialParams:function(e,t,n,i){var r,a,o,s;for(r in e)o=r.substring(r.indexOf("_")+1),s=r.substr(0,r.indexOf("_")),-1!==n.indexOf(o)&&(a=void 0!==e[r]?e[r]:"",t===s&&(i+="&"+o+"="+encodeURIComponent(a)));return i},createGetPoiContentUrl:function(e,t,n){var i=this.setEndpoint(e.endpoint);return i+="/"+n+"/"+t},createGetGeoPoiContentUrl:function(e,t,n,i,r,a){var o=this.setEndpoint(e.endpoint);return o+="/"+n+"/"+t+"/"+i+"/"+r+"/"+a},createSiteUrl:function(e,t){return null!=t&&""!==t?e+"&sc_site="+t:e},setEndpoint:function(e){var t=window.location.origin;return-1!==e.indexOf(t)?e:t+e},fixUrl:function(e){var t;return t=(e=e.replace(/[?]/g,"&")).indexOf("&"),e=e.substr(0,t)+"?"+e.substr(t+1)}})))}).call(this,n(1))},function(e,t,n){(function(e){var t,n,i,r,a,o,s;XA.component.search.variantFilter=(t=e,document,r={},a={},o=Backbone.Model.extend({defaults:{dataProperties:{},sig:[]}}),s=XA.component.search.baseView.extend({initialize:function(){var e,t=n.parseHashParameters(window.location.hash),i=this.$el.data(),r=this.translateSignatures(i.properties.searchResultsSignature,"v"),o=this;for(null===i.properties.searchResultsSignature&&(i.properties.searchResultsSignature=""),this.model.set({dataProperties:i}),this.model.set("sig",r),e=0;e<r.length;e++)t.hasOwnProperty(r[e])&&this.selectVariantIcon(t[r[e]]);XA.component.search.vent.on("results-loaded",(function(s){var l,c,u=i.properties.searchResultsSignature.split(",");for(t=n.parseHashParameters(window.location.hash),e=0;e<u.length;e++)l=u[e],t.hasOwnProperty(r[e])&&a.hasOwnProperty(l)?(c=a[l][t[r[e]]],o.triggerAddVariant(c.cssClass,l),o.selectVariantIcon(t[r[e]])):a.hasOwnProperty(l)&&a[l].hasOwnProperty(0)&&setTimeout((function(){o.triggerAddVariant(a[l][0].cssClass,l),o.selectVariantIcon(0)}),100)}))},events:{"click div > div":"changeVariant"},changeVariant:function(e){var n=t(e.currentTarget),r=this.model.get("sig"),a=n.data();this.$el.find(".active-variant").removeClass("active-variant"),n.addClass("active-variant"),i.updateHash(this.updateSignaturesHash(r,a.variantindex,{})),this.triggerAddVariant(t(e.currentTarget).attr("class"))},triggerAddVariant:function(e,t){XA.component.search.vent.trigger("add-variant-class",{classes:e,sig:t})},selectVariantIcon:function(e){this.$el.find("div[data-variantIndex]").removeClass("active-variant"),this.$el.find("div[data-variantIndex="+e+"]").addClass("active-variant")}}),r.init=function(){if(!t("body").hasClass("on-page-editor")){n=XA.component.search.query,i=XA.component.search.parameters;var e=t(".variant-selector:not(.initialized)");_.each(e,(function(e){var n=t(e);new s({el:n,model:new o}),n.addClass("initialized")}))}},r.getVariantMappings=function(e){var n,i,r=t(".variant-selector"),o={};if(!a.hasOwnProperty(e))for(i=0;i<r.length;i++)-1!==t(r[i]).data().properties.searchResultsSignature.split(",").indexOf(e)&&(n=t(r[i]).find(".variant-option"),_.each(n,(function(e){var n=t(e).data();o[n.variantindex]={id:n.variant,cssClass:t(e).attr("class")}}
153)),a[e]=o);return a.hasOwnProperty(e)?a[e]:{}},r),XA.register("variantFilter",XA.component.search.variantFilter)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.service=function(e,t){"use strict";var n=XA.component.search.results.searchResultModels,i=XA.component.search.url,r=XA.component.search.query,a=XA.component.search.parameters,o=XA.component.search.ajax;return new(Backbone.Model.extend({defaults:{},initialize:function(){var e=this;XA.component.search.vent.on("orderChanged",(function(t){e.getData(t)}))},getData:function(e){n.length>0?this.getSearchResultsData(e):this.getEndpointAndSearch(e)},getSearchResultsData:function(t){var a,s,l,c,u,d,h,f=r.parseHashParameters(window.location.hash),p=this;_.each(n,(function(n){if(u=null!==n.get("dataProperties").sig?encodeURIComponent(n.get("dataProperties").sig):"",s=""!==u?u+"_e":"e",(n.get("dataProperties").autoFireSearch||f&&r.isSignaturePresentInHash(f,u))&&(a=n.get("dataProperties").defaultSortOrder,l=n.get("dataProperties").p,c=n.get("dataProperties").v,void 0===t||!t.hasOwnProperty("singleRequestMode")||t.singleRequestMode==u)){if((f=p.getDefaultDefaultPageSize(u,l,f)).hasOwnProperty("l")&&""===f.l&&(f.l=n.get("dataProperties").l),d=e.extend({},n.get("dataProperties"),f),(d=e.extend(d,t)).hasOwnProperty("loadMore")){n.set("loadMore",!0),delete d.loadMore;var m=n.get("loadMoreOffset")+d.p;n.set("loadMoreOffset",m),d[s]=m}else n.get("loadMoreOffset")&&(0!==d.p&&(d.p=d.p*(1+n.get("loadMoreOffset")/d.p),d[s]=0,n.set("loadMoreOffset",0)),delete d.variantChanged);d=p.getSortOrder(u,d,a),d=p.setVariant(u,d,c),(h=i.createSearchUrl(d,u))&&(n.checkBlockingRequest()||(n.blockRequests(!0),XA.component.search.vent.trigger("results-loading",n.cid),o.getData({callback:function(e){e.Signature=null!==e.Signature?e.Signature:"",XA.component.search.vent.trigger("results-loaded",{dataCount:e.Count,data:e.Results,pageSize:""!==e.Signature&&d.hasOwnProperty(e.
153Signature+"_p")?d[e.Signature+"_p"]:d.p,offset:""!==e.Signature&&d.hasOwnProperty(e.Signature+"_e")?d[e.Signature+"_e"]:d.e,searchResultsSignature:e.Signature,loadMore:n.get("loadMore")})},url:h})))}}))},getSearchData:function(t){var n,a,s,l,c=r.parseHashParameters(window.location.hash),u=e.extend({},c,u,t);for((u=this.getDefaultDefaultPageSize("",0,u)).hasOwnProperty("o")||void 0===XA.component.search.sort||-1!==(a=XA.component.search.sort.getFirstSortingOption())&&(u.o=a),u.endpoint=XA.component.map.getSearchEndpoint(),n=XA.component.map.getSignatures(),l=0;l<n.length;l++){if(u.sig=n[l],!(s=i.createSearchUrl(u,n[l])))return;o.getData({callback:function(e){e.Signature=null!==e.Signature?e.Signature:"",XA.component.search.vent.trigger("results-loaded",{dataCount:e.Count,data:e.Results,pageSize:u.p,offset:0,searchResultsSignature:e.Signature})},url:s})}},getEndpointAndSearch:function(){XA.component.map&&void 0!==XA.component.map.getSearchEndpoint()?this.getSearchData():setTimeout(this.getEndpointAndSearch.bind(this),100)},getSortOrder:function(e,t,n){var i=XA.component.search.sort.getFirstSortingOption(e),r=""!==e?e+"_o":"o",o="",s={};return-1!==i?o=i:""!==n&&(o=n),t.hasOwnProperty(r)||""===o||(delete t.defaultSortOrder,delete t.o,t[r]=o),s[r]=o,a.registerDefault(s),t},getDefaultDefaultPageSize:function(e,t,n){var i,r=XA.component.search.pageSize.getDefaultPageSizes(),o=""!==e?e+"_p":"p";if(!n.hasOwnProperty(o)&&void 0!==XA.component.search.pageSize&&-1!==r){i=[];for(var s=0;s<=r.length-1;s++)-1!==r[s].signatures.indexOf(e)&&i.push(r[s]);i.length>0&&(n[o]=i[0].defaultPageSize)}n.hasOwnProperty(o)||0==t||(n[o]=t);var l={};return l[o]=t,a.registerDefault(l),n},setVariant:function(t,n,i){var r=XA.component.search.variantFilter.getVariantMappings(t),o=""!==t?t+"_v":"v";""===t&&e.isEmptyObject(r)||(""===t&&n.hasOwnProperty(o)&&r.hasOwnProperty(n[o])?n[o]=r[n[o]].id:""===t&&r.hasOwnProperty(0)?n[o]=r[0].id:(delete n.v,n.hasOwnProperty(o)?n[o]=r[n[o]].id:r.hasOwnProperty(0)?n[o]=r[0].id:n[o]=i));var s={};return s[o]=0,a.registerDefault(s),n}}))}(e,document)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.router=function(e,t){"use strict";var n,i,r,a={},o=!1;return r=Backbone.Router.extend({routes:{"*params":"checkUrl"},checkUrl:function(e,t){var r=n.parseHashParameters(window.location.hash);XA.component.search.service.getData(),r?(t||JSON.stringify(r)!==JSON.stringify(i))&&(XA.component.search.facet.data.filterFacetData(r),i=r,XA.component.search.vent.trigger("hashChanged",r)):(XA.component.search.facet.data.getInitialFacetData(),XA.component.search.vent.trigger("hashChanged",r))}}),a.init=function(){e("body").hasClass("on-page-editor")||o||(n=XA.component.search.query,this.api.routerInstance=new r,Backbone.History.started||Backbone.history.start(),o=!0)},a}(e,document),XA.register("searchRouter",XA.component.search.router)}).call(this,n(1))},function(e,t,n){(function(e){XA.component.search.facet.daterange=function(e,t){var n,i,r,a={};i=function(t){return null!==t&&""!==t?e.datepicker.formatDate("yymmdd",t):""},r=function(e){var t=e.substr(0,4),n=e.substr(4,2)-1,i=e.substr(6,2),r=new Date(t,n,i);if(""!==e){if(r.getFullYear()==t&&r.getMonth()==n&&r.getDate()==i)return r;throw"Invalid date: "+e}};var o=Backbone.Model.extend({defaults:{dataProperties:{},sig:[]}}),s=XA.component.search.baseView.extend({initialize:function(){this.properties=this.$el.data().properties,this.model&&(this.model.set({dataProperties:this.properties}),this.model.set("sig",this.translateSignatures(this.properties.searchResultsSignature,this.properties.f))),this.model.on("change",this.render,this),XA.component.search.vent.on("hashChanged",this.updateComponent.bind(this))},events:{"change .startDate":"updateFacet","change .endDate":"updateFacet","click .bottom-remove-filter, .clear-filter":"clearFilter"},render:function(){var t,i,a=parseInt(this.model.get("dataProperties").fromDateDefaultOffset),o=parseInt(this.model.get("dataProperties").toDateDefaultOffset),s=this.model.get("dataProperties").fromDateDisplayFormat,l=this.model.get("dataProperties").toDateDisplayFormat,c=this.model.get("dataProperties").fromDateMonthsShown,u=this.model.get("dataProperties").toDateMonthsShown,d=this.model.get("dataProperties").fromDatePastDays,h=this.model.get("dataProperties").toDateFutureDays,f=this.model.get("dataProperties").fromDateVisible,p=this.model.get("dataProperties").toDateVisible,m=this.$el.find(".startDate"),g=this.$el.find(".endDate"),v=n.parseHashParameters(window.location.hash),y=this.model.get("sig"),b=e("html").attr("lang")?e("html").attr("lang"):"",_=this.$el.closest(".overlay-inner").length;for(l&&(l=l.replace(/yy/g,"y")),s&&(s=s.replace(/yy/g,"y")),f&&m.datepicker({dateFormat:s,changeMonth:c,changeYear:c,minDate:d?""!=a?-1*a:new Date(1900,1,1):new Date,beforeShow:_?this.overrideZIndex:void 0}),p&&g.datepicker({dateFormat:l,changeMonth:u,changeYear:u,maxDate:h?""!=o?o:new Date(2100,1,1):new Date,beforeShow:_?this.overrideZIndex:void 0}),$xa.datepicker.setDefaults($xa.datepicker.regional[b]),i=0;i<y.length;i++)v.hasOwnProperty(y[i])&&""!=v[y[i]]&&(t=v[y[i]].split("|"),m.datepicker("setDate",r(t[0])),g.datepicker("setDate",r(t[1])
153))},updateFacet:function(e){var t=this.$el.find(".facet-heading > span"),r=this.$el.find(".startDate"),a=this.$el.find(".endDate"),o=r.length>0?r.datepicker("getDate"):null,s=a.length>0?a.datepicker("getDate"):null,l=this.model.get("sig");n.updateHash(this.updateSignaturesHash(l,i(o)+"|"+i(s),{})),t.addClass("has-active-facet")},clearFilter:function(e){var t,i,r=this.model.get("dataProperties"),a=this.$el.find(".facet-heading > span"),o=n.parseHashParameters(window.location.hash),s=this.model.get("sig"),l=!1;for(a.removeClass("has-active-facet"),i=0;i<s.length;i++)void 0!==o[t=s[i]]&&""!==o[t]&&(delete r[t],l=!0);l&&(n.updateHash(this.updateSignaturesHash(s,"",o)),this.model.set({dataProperties:r}),this.$el.find(".startDate").val(""),this.$el.find(".endDate").val(""))},updateComponent:function(e){var t,n,i,r=this.$el.find(".startDate"),a=this.$el.find(".endDate"),o=this.model.get("sig");for(i=0;i<o.length;i++)t=o[i].toLowerCase(),e.hasOwnProperty(t)&&""!==e[t]?(""!==(n=e[t].split("|"))[0]&&this.handleDate(r,n[0]),""!==n[1]&&this.handleDate(a,n[1])):this.clearFilter()},handleDate:function(e,t){var n=this.$el.find(".facet-heading > span");0!==e.length&&i(e.datepicker("getDate"))!==t?(e.datepicker("setDate",r(t)),n.addClass("has-active-facet")):""===t&&e.datepicker("setDate",null)},overrideZIndex:function(){setTimeout((function(){var t=e(".ui-datepicker"),n=t.attr("style");t.attr("style",n+"z-index: 10000 !important")}),0)}});return a.init=function(){if(!e("body").hasClass("on-page-editor")){n=XA.component.search.query,XA.component.search.url;var t=e(".facet-date-range:not(.initialized)");_.each(t,(function(t){var n=e(t),i=new o;new s({el:n,model:i}).render(),n.addClass("initialized")}))}},a}(e,document),XA.register("facetDateRange",XA.component.search.facet.daterange)}).call(this,n(1))},function(e,t,n){},function(e,t,n){"use strict";n.r(t);n(173),n(174);var i=n(55),r=n(1);r(document).ready((function(){var e=r(".xa-video--default");e.length>0&&e.each((function(e,t){var n=r(this),i=r(this).find(".xa-video__asset")[0],a=r(i).find("video");r(i).hasClass("video-fluid")&&a.parent().addClass("vjs-fluid"),r(a).on("pause",(function(){n.find(".xa-video__edge").show()})),r(a).on("play",(function(){n.find(".xa-video__edge").hide()}))}))})),r(document).ready((function(){var e=r(".xa-video--hero");e.length>0&&e.each((function(e,t){r(this);var n=r(this).find(".xa-video--hero__toggle-play")[0],a=r(this).find(".xa-video--hero__asset"),o=r(a).find("video"),s=o.data("desktop"),l=o.attr("id");window.matchMedia("(max-width: 768px)").matches||Object(i.a)(l).src({type:"video/mp4",src:s});r(n).on("click",(function(){a.each((function(e,t){var n=r(this).find("video");n[0].paused?n[0].play():n[0].pause()}))})),r(n).keypress((function(e){if(13==e.which)return r(this).click(),!1})),r(o).on("pause",(function(){r(this).closest(".xa-video").find(".xa-video--hero__toggle-play").removeClass("pause")})),r(o).on("play",(function(){r(this).closest(".xa-video").find(".xa-video--hero__toggle-play").addClass("pause")}))}))})),r(document).ready((function(){var e=r(".xa-video--vertical");if(e.length>0){var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);var a=[],o=[];e.each((function(e,t){var n=r(this),d=n.find(".xa-video--vertical__content-wrapper")[0],h=n.find(".xa-video--vertical__asset")[0],f=n.find(".xa-video--vertical__play")[0],p=n.find(".xa-video--vertical__close")[0],m=r(h).find("video"),g=r(h).find("> div"),v=m.data("videcontent"),y=m.data("videopreview"),b=n.find(".youtube-wrapper"),_=n.find(".youtube-placeholder"),w=(n.find(".field-videoposterimage"),m.attr("id")),T=m.data("youtube"),S=Object(i.a)(w);o.push({videoObject:S,teaser:y});var k=g.find(".vjs-text-track-display");k.hide();var x=function(){r(o).each((function(e,t){t.videoObject.paused()||t.videoObject.pause(),t.videoObject.src({autoplay:!0,controls:!1,src:t.teaser,type:"video/mp4"})})),r(a).each((function(e,t){t.destroy()})),r(".xa-video--vertical__asset").show(),r(".xa-video--vertical__play").show(),r(".field-vi
153deoposterimage").show(),r(".youtube-wrapper").hide(),r(".xa-video--vertical__asset > div").addClass("vjs-controls-disabled"),r(".xa-video--vertical__padding-wrapper").show(),r(".xa-video--vertical__close").hide(),r(".xa-video--vertical__play-wrapper").removeClass("add-bg"),r(".vjs-text-track-display").hide()};r(p).on("click",(function(){x()})),r(f).on("click",(function(){x();var e=r(this);if(e.parent().parent().siblings(".xa-video--vertical__close").css("display","flex"),e.parent().parent().siblings(".field-videoposterimage").hide(),e.parent().siblings(".xa-video--vertical__padding-wrapper .field-videotextoverlay").css("opacity","0"),e.parent().parent().hide(),"/"==v.charAt(0))S.src({autoplay:!0,controls:!0,src:v,type:"video/mp4"}),r(g).removeClass("vjs-controls-disabled"),r(g).attr("loop","false"),r(g).removeAttr("loop"),r(m).attr("loop","false"),r(m).removeAttr("loop"),S.play(),k.show(),S.on("ended",(function(){x()}));else{r(b).show();var t,n=r(_).attr("id");t=new YT.Player(n,{height:"768",width:"432",videoId:T,events:{onReady:c,onStateChange:u}}),a.push(t),r(h).hide()}})),r(d).hover(s,l),r(f).keypress((function(e){if(13==e.which)return r(this).click(),!1})),r(p).keypress((function(e){if(13==e.which)return r(this).click(),!1}))}))}function s(e){r(this).find(".xa-video--vertical__padding-wrapper").is(":visible")&&(r(this).find(".field-videoposterimage").hide(),r(this).find(".xa-video--vertical__padding-wrapper").is(":visible")&&(r(this).find(".field-videotextoverlay").css("opacity","1"),r(this).find(".xa-video--vertical__play-wrapper").addClass("add-bg")),r(this).find("video").attr("loop","loop"),r(this).find("video")[0].play())}function l(e){r(this).find(".xa-video--vertical__padding-wrapper").is(":visible")&&(r(this).find(".field-videoposterimage").show(),r(this).find(".field-videotextoverlay").css("opacity","0"),r(this).find(".xa-video--vertical__play-wrapper").removeClass("add-bg"),r(this).find("video").removeAttr("loop"),r(this).find("video")[0].pause())}function c(e){e.target.playVideo()}function u(e){if(0==e.data){var t="#"+e.target.getIframe().id.toString();r(t).parent().siblings(".xa-video--vertical__asset").show(),r(t).parent().siblings(".field-videoposterimage").show(),r(t).parent().siblings(".xa-video--vertical__padding-wrapper").show(),r(t).parent().siblings(".xa-video--vertical__play-wrapper").find(".xa-video--vertical__play").show(),r(t).parent().siblings(".xa-video--vertical__close").hide(),r(t).parent().siblings(".xa-video--vertical__padding-wrapper .field-videotextoverlay").css("opacity","0"),r(".xa-video--vertical__play-wrapper").removeClass("add-bg"),r(t).parent().hide(),e.target.destroy()}}}));var a=".site-header",o="#header .uwa-breadcrumb",s="false",l=r("body"),c=!1,u={init:function(){r(a).length>0&&(h(),f(),p(),m(),d(),g())}},d=function(){var e=r("[data-sitecore-js-trigger=navigation-sidebar]"),t=r(".navigation-sidebar"),n=r("[data-sitecore-js-target=navigation-global-overlay]");function i(e,n,i){l.addClass("navigation-global-animate-closing"),n?setTimeout((function(){l.find(".navigation-global-overlay").removeAttr("style"),l.removeClass("navigation-global-animate-closing navigation-global-active side-nav-active")}),250):(l.find(".navigation-global-overlay").removeAttr("style"),l.removeClass("navigation-global-animate-closing navigation-global-active side-nav-active")),i.length>0&&i.text("Menu"),t.removeClass("slide-in").addClass("slide-out"),e.removeClass("uwa-close").addClass("fa-bars"),e.attr("aria-label","Open site navigation")}e.on("click",(function(e){t.toggleClass("active");var n,a,o=r(e.currentTarget),s=r(e.currentTarget).find("span");if(t.hasClass("active"))return t.removeClass("slide-out").addClass("slide-in"),o.removeClass("fa-bars").addClass("uwa-close"),o.attr("aria-label","Close site navigation"),s.length>0&&s.text("Close"),l.addClass("navigation-global-active side-nav-active"),l.find(".navigation-global-overlay").css("top",r("#header").height()+"px"),n=r("[data-navigation-global-type=accordionslide]"),a=n.find(".navigation-global-level-1"),void n.find(".navigation-global-level-2").each((function(){var e=r(this);e.data("currentpage").indexOf("active")>-1&&(a.addClass("hidden"),setTimeout((function(){e.addClass("active")}),600))}));i(o,!0,s)})),u.closeSideNav=function(n){e.each((function(){r(this).is(":visible")&&(t.removeClass("active"),i(r(this),n,r(this).find("span")))}))},n.on("click",(function(e){u.closeSideNav(!0)}))},h=function(){var e=r("[data-navigation-global-type=sitetabbed]"),t=r("[data-sitecore-js-trigger=navigation-global-level-1]"),n=r("[data-sitecore-js-target=navigation-global-overlay]"),i=e.find(t),a=e.find("[data-sitecore-js-trigger=navigation-global-level-2]"),o=e.find("[data-sitecore-js-target=navigation-global-level-2]"),c=e.find(".navigation-global-level-2-panel-close"),d=function(){l.addClass("navigation-global-animate-closing"),setTimeout((function(){l.find(".navigation-global-overlay").removeAttr("style"),l.removeClass("navigation-global-animate-closing navigation-global-active side-nav-active")}),250),i.removeClass("active").attr("aria-selected",!1),i.parent().removeClass("active"),o.find("[data-sitecore-js-target-id]").removeClass("active").attr("aria-hidden",!0),s="false"},h=function(){var t,n,c;l.addClass("navigation-global-active"),t=r(event.currentTarget),n=t.attr("data-sitecore-js-target-id"),c="[data-sitecore-js-target-id=".concat(n,"]"),i.removeClass("active").attr("aria-selected",!1),t.addClass("active").attr("aria-selected",!0),t.parent().addClass("active"),t.parent().siblings().find(a).removeClass("active").attr("aria-selected",!1),e.addClass("active"),o.find(c).addClass("active").attr("aria-hidden",!1),o.find(c).siblings().removeClass("active").attr("aria-hidden",!0),o.find(c).find("li:first-child a"),e.attr("aria-expanded",!0),s="true"};
153r(document).on("keyup",(function(e){27===e.keyCode&&"true"===s&&d()})),n.on("click",(function(e){d()})),t.on("click",(function(e){u.closeSideNav(),"true"===s?d():h()})),c.on("click",(function(e){d()}))},f=function(){var e=r("[data-navigation-global-type=accordion]"),t=r("[data-sitecore-js-trigger=navigation-global-level-1--accordion]"),n=e.find("[data-sitecore-js-trigger=navigation-global-level-2]"),i=e.find("[data-sitecore-js-target=navigation-global-level-2]"),a=(r("[data-sitecore-js-trigger=navigation-sidebar]"),"true");t.on("click",(function(n){r(n.currentTarget).toggleClass("active"),t.hasClass("active")?(l.addClass("navigation-global-accordion-active"),e.addClass("active").attr("aria-expanded",!0),t.find(".fa").addClass("fa-chevron-up").removeClass("fa-bars"),"true"===a&&(e.find(".active").find(i).slideDown().attr("aria-expanded",!0),a="false")):(l.removeClass("navigation-global-accordion-active"),e.removeClass("active").attr("aria-expanded",!1),t.find(".fa").addClass("fa-bars").removeClass("fa-chevron-up"))})),i.hide().attr("aria-expanded",!1),n.on("click",(function(e){var t=r(e.currentTarget),n=t.parent().siblings(i),a=t.parent().parent();a.hasClass("active")?(a.removeClass("active"),n.slideUp(),n.attr("aria-expanded",!1)):(a.addClass("active"),n.slideDown(),n.attr("aria-expanded",!0))}))},p=function(){var e=r("[data-navigation-global-type=tabbed]"),t=r("[data-sitecore-js-trigger=navigation-global-level-1--tabbed]"),n=r("[data-sitecore-js-target=navigation-global-overlay]"),i=e.find("[data-sitecore-js-trigger=navigation-global-level-2]"),a=e.find("[data-sitecore-js-target=navigation-global-level-2]"),o=function(){l.addClass("navigation-global-animate-closing"),setTimeout((function(){l.find(".navigation-global-overlay").removeAttr("style"),l.removeClass("navigation-global-animate-closing navigation-global-active side-nav-active")}),250),t.attr("aria-label","Open the Global and Site Navigation Menu").removeClass("active"),t.find(".fa").addClass("fa-bars").removeClass("fa-chevron-up"),e.attr("aria-expanded",!1),s="false"};t.on("click",(function(n){"true"===s?o():(l.addClass("navigation-global-active"),t.attr("aria-label","Close the Global and Site Navigation Menu").addClass("active"),t.find(".fa").addClass("fa-times").removeClass("fa-bars"),e.attr("aria-expanded",!0),s="true")})),r(document).on("keyup",(function(e){27===e.keyCode&&"true"===s&&o()})),n.on("click",(function(e){o()})),i.on("click",(function(t){var n=r(t.currentTarget),o=n.attr("data-sitecore-js-target-id"),s="[data-sitecore-js-target-id=".concat(o,"]");n.addClass("active").attr("aria-selected",!0),n.parent().siblings().find(i).removeClass("active").attr("aria-selected",!1),e.addClass("active"),a.find(s).addClass("active").attr("aria-hidden",!1),a.find(s).siblings().removeClass("active").attr("aria-hidden",!0),a.find(s).find("li:first-child a")}))},m=function(){var e=r("[data-navigation-global-type=accordionslide]"),t=r("[data-sitecore-js-trigger=navigation-global-level-1--accordion]"),n=e.find("[data-sitecore-js-trigger=navigation-global-level-2]"),i=e.find("[data-sitecore-js-target=navigation-global-level-2]"),a=e.find("[data-sitecore-js-trigger=navigation-global-level-2-back]"),o="true";a.on("click",(function(t){e.find("[data-sitecore-js-target-id]").removeClass("active"),r(".navigation-global-level-1").removeClass("hidden")})),t.on("click",(function(n){r(n.currentTarget).toggleClass("active"),t.hasClass("active")?(l.addClass("navigation-global-accordion-active"),e.addClass("active").attr("aria-expanded",!0),t.find(".fa").addClass("fa-chevron-up").removeClass("fa-bars"),"true"===o&&(e.find(".active").find(i).slideDown().attr("aria-expanded",!0),o="false")):(l.removeClass("navigation-global-accordion-active"),e.removeClass("active").attr("aria-expanded",!1),t.find(".fa").addClass("fa-bars").removeClass("fa-chevron-up"))})),n.on("click",(function(t){var n=r(t.currentTarget).attr("data-sitecore-js-target-id"),i="[data-sitecore-js-target-id=".concat(n,"]");e.find(i).addClass("active"),e.find(".navigation-global-level-1").addClass("hidden")}))},g=function(){var e=r("[data-sitecore-js-trigger=navigation-global-search]"),t=r("[data-sitecore-js-target=navigation-global-search]"),n=r("[data-sitecore-js-target=navigation-global-search-input]"),i=r("[data-sitecore-js-target=navigation-global-search-overlay]"),a={};r("input[name=navigation-global-search-toggle]").each((function(){var e=r(this).data("search-scope");e&&(a[e]=r(this).val()+"&query={urlQuery}")}));var o="",s=r(".navigation-global-search-btn"),u=function(){l.addClass("navigation-global-search-active"),t.addClass("active").attr("aria-expanded",!0),n.focus(),i.addClass("active"),c="true"},d=function(){l.removeClass("navigation-global-search-active"),t.removeClass("active").attr("aria-expanded",!1),n.blur(),i.addClass("inactive"),setTimeout((function(){i.removeClass("inactive active")}),250),c="false"};d(),i.on("click",(function(){d()}
153)),r(document).on("keyup",(function(e){27===e.keyCode&&"true"===c&&d()})),n.keypress((function(e){13==e.keyCode&&s.trigger("click")})),e.on("click",(function(e){"false"===c?u():d()})),s.on("click",(function(){o=r(".navigation-global-search-form-input").val();var e,t=(e=r(".navigation-global-search-text.active").text(),(a[e]||"https://search.uwa.edu.au/s/search.html?collection=uwa-meta&form=uwa&profile=_default&query={urlQuery}").replace("{urlQuery}",o));window.location.href=t})),r(".navigation-global-search-form2").on("click",(function(){r(".navigation-global-search-form2").find(".navigation-global-search-text").toggleClass("active")}))};u.breadcrumbInit=function(){r(o).length>0&&r(o).each((function(){1!=r(this).find("nav li").length?r(this).show():r(this).hide()}))},u.init(),u.breadcrumbInit();n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407);r(document).ready((function(){var e=r(".hero-video-container");e.length>0&&e.each((function(e,t){r(this);var n=r(this).find(".hero-video__toggle-play")[0],i=r(this);r(i).find("video");r(n).on("click",(function(){var e=r(this);i.each((function(t,n){var i=r(this).find("video");i[0].paused?(i[0].play(),e.addClass("pause")):(i[0].pause(),e.removeClass("pause"))}))})),r(n).keypress((function(e){if(13==e.which)return r(this).click(),!1}))}))}));n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455);var v=n(166),y=n.n(v);String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.indexOf(e,t)===t}),r(document).ready((function(){var e;r(document).foundation(),y()(),(e=r(".module-wrapper .row")).length>0&&e.each((function(){r(this).removeClass("row"),r(this).addClass("grid-x")}))}));n(456)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.