PageSourceSearch

https://www.fetchtv.com.au/scripts/vendor-94dba05283.min.js

js fetchtv.com.au collected 2026-09-24 09:19:26 UTC 897,644 bytes, 2 lines download raw bytes

vendor: 82,687 bytes, line 1
1function _defineProperty(t,e,n){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);n=n.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}if(!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)}("undefined"!=typeof window?window:this,function($,P){function N(t,e){return e.toUpperCase()}var t=[],E=$.document,c=t.slice,F=t.concat,U=t.push,i=t.indexOf,j={},B=j.toString,f=j.hasOwnProperty,g={},e="2.2.4",x=function(t,e){return new x.fn.init(t,e)},V=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,q=/^-ms-/,H=/-([\da-z])/gi;function W(t){var e=!!t&&"length"in t&&t.length,n=x.type(t);return"function"!==n&&!x.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}x.fn=x.prototype={jquery:e,constructor:x,selector:"",length:0,toArray:function(){return c.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:c.call(this)},pushStack:function(t){t=x.merge(this.constructor(),t);return t.prevObject=this,t.context=this.context,t},each:function(t){return x.each(this,t)},map:function(n){return this.pushStack(x.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:U,sort:t.sort,splice:t.splice},x.extend=x.fn.extend=function(){var t,e,n,r,i,o=arguments[0]||{},a=1,s=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[a]||{},a++),"object"==typeof o||x.isFunction(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)i=o[e],o!==(n=t[e])&&(u&&n&&(x.isPlainObject(n)||(r=x.isArray(n)))?(i=r?(r=!1,i&&x.isArray(i)?i:[]):i&&x.isPlainObject(i)?i:{},o[e]=x.extend(u,i,n)):void 0!==n&&(o[e]=n));return o},x.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===x.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!x.isArray(t)&&0<=e-parseFloat(e)+1},isPlainObject:function(t){if("object"!==x.type(t)||t.nodeType||x.isWindow(t))return!1;if(t.constructor&&!f.call(t,"constructor")&&!f.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(var e in t);return void 0===e||f.call(t,e)},isEmptyObject:function(t){for(var e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?j[B.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=x.trim(t))&&(1===t.indexOf("use strict")?((e=E.createElement("script")).text=t,E.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(q,"ms-").replace(H,N)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(W(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(V,"")},makeArray:function(t,e){e=e||[];return null!=t&&(W(Object(t))?x.merge(e,"string"==typeof t?[t]:t):U.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:i.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!=a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(W(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return F.apply([],a)},guid:1,proxy:function(t,e){var n,r;if("string"==typeof e&&(r=t[e],e=t,t=r),x.isFunction(t))return n=c.call(arguments,2),(r=function(){return t.apply(e||this,n.concat(c.call(arguments)))}).guid=t.guid=t.guid||x.guid++,r},now:Date.now,support:g}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=t[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){j["[object "+e+"]"]=e.toLowerCase()});function r(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&x(t).is(n))break;r.push(t)}return r}function G(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var e=function(P){function p(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function N(){E()}var t,f,w,o,F,g,U,j,$,u,l,E,x,e,S,m,r,i,v,T="sizzle"+ +new Date,y=P.document,_=0,B=0,V=lt(),q=lt(),b=lt(),H=function(t,e){return t===e&&(l=!0),0},W={}.hasOwnProperty,n=[],G=n.pop,z=n.push,C=n.push,K=n.slice,k=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",X="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",Q=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+X+")*)|.*)\\)|)",J=new RegExp(a+"+","g"),A=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Z=new RegExp("^"+a+"*,"+a+"*"),tt=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),et=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),nt=new RegExp(Q),rt=new RegExp("^"+s+"$"),d={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+X),PSEUDO:new RegExp("^"+Q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},it=/^(?:input|select|textarea|button)$/i,ot=/^h\d$/i,c=/^[^{]+\{\s*\[native \w/,at=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,st=/[+~]/,ut=/'|\\/g,h=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig");try{C.apply(n=K.call(y.childNodes),y.childNodes),n[y.childNodes.length].nodeType}catch(t){C={apply:n.length?function(t,e){z.apply(t,K.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function D(t,e,n,r){var i,o,a,s,u,l,c,p,d=e&&e.ownerDocument,h=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==h&&9!==h&&11!==h)return n;if(!r&&((e?e.ownerDocument||e:y)!==x&&E(e),e=e||x,S)){if(11!==h&&(l=at.exec(t)))if(i=l[1]){if(9===h){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(d&&(a=d.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(l[2])return C.apply(n,e.getElementsByTagName(t)),n;if((i=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return C.apply(n,e.getElementsByClassName(i)),n}if(f.qsa&&!b[t+" "]&&(!m||!m.test(t))){if(1!==h)d=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(ut,"\\$&"):e.setAttribute("id",s=T),o=(c=g(t)).length,u=rt.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=u+" "+I(c[o]);p=c.join(","),d=st.test(t)&&dt(e.parentNode)||e}if(p)try{return C.apply(n,d.querySelectorAll(p)),n}catch(t){}finally{s===T&&e.removeAttribute("id")}}}return j(t.replace(A,"$1"),e,n,r)}function lt(){var n=[];function r(t,e){return n.push(t+" ")>w.cacheLength&&delete r[n.shift()],r[t+" "]=e}return r}function O(t){return t[T]=!0,t}function R(t){var e=x.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ct(t,e){for(var n=t.split("|"),r=n.length;r--;)w.attrHandle[n[r]]=e}function pt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function L(a){return O(function(o){return o=+o,O(function(t,e){for(var n,r=a([],t.length,o),i=r.length;i--;)t[n=r[i]]&&(t[n]=!(e[n]=t[n]))})})}function dt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=D.support={},F=D.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},E=D.setDocument=function(t){var t=t?t.ownerDocument||t:y;return t!==x&&9===t.nodeType&&t.documentElement&&(e=(x=t).documentElement,S=!F(x),(t=x.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",N,!1):t.attachEvent&&t.attachEvent("onunload",N)),f.attributes=R(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=R(function(t){return t.appendChild(x.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=c.test(x.getElementsByClassName),f.getById=R(function(t){return e.appendChild(t).id=T,!x.getElementsByName||!x.getElementsByName(T).length}),f.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&S)return(e=e.getElementById(t))?[e]:[]},w.filter.ID=function(t){var e=t.replace(h,p);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(h,p);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}}),w.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},w.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&S)return e.getElementsByClassName(t)},r=[],m=[],(f.qsa=c.test(x.querySelectorAll))&&(R(function(t){e.appendChild(t).innerHTML="<a id='"+T+"'></a><select id='"+T+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+a+"*(?:value|"+Y+")"),t.querySelectorAll("[id~="+T+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||m.push(".#.+[+~]")}),R(function(t){var e=x.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+a+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=c.test(i=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector))&&R(function(t){f.disconnectedMatch=i.call(t,"div"),i.call(t,"[s!='']:x"),r.push("!=",Q)}),m=m.length&&new RegExp(m.join("|")),r=r.length&&new RegExp(r.join("|")),t=c.test(e.compareDocumentPosition),v=t||c.test(e.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},H=t?function(t,e){var n;return t===e?(l=!0,0):(n=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===x||t.ownerDocument===y&&v(y,t)?-1:e===x||e.ownerDocument===y&&v(y,e)?1:u?k(u,t)-k(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return l=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===x?-1:e===x?1:i?-1:o?1:u?k(u,t)-k(u,e):0;if(i===o)return pt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pt(a[r],s[r]):a[r]===y?-1:s[r]===y?1:0}),x},D.matches=function(t,e){return D(t,null,null,e)},D.matchesSelector=function(t,e){if((t.ownerDocument||t)!==x&&E(t),e=e.replace(et,"='$1']"),f.matchesSelector&&S&&!b[e+" "]&&(!r||!r.test(e))&&(!m||!m.test(e)))try{var n=i.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<D(e,x,null,[t]).length},D.contains=function(t,e){return(t.ownerDocument||t)!==x&&E(t),v(t,e)},D.attr=function(t,e){(t.ownerDocument||t)!==x&&E(t);var n=w.attrHandle[e.toLowerCase()],n=n&&W.call(w.attrHandle,e.toLowerCase())?n(t,e,!S):void 0;return void 0!==n?n:f.attributes||!S?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},D.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},D.uniqueSort=function(t){var e,n=[],r=0,i=0;if(l=!f.detectDuplicates,u=!f.sortStable&&t.slice(0),t.sort(H),l){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return u=null,t},o=D.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=o(e);return n},(w=D.selectors={cacheLength:50,createPseudo:O,match:d,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(h,p),t[3]=(t[3]||t[4]||t[5]||"").replace(h,p),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||D.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&D.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return d.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&nt.test(n)&&(e=(e=g(n,!0))&&n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(h,p).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(t){t=D.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===r:"!="===n?t!==r:"^="===n?r&&0===t.indexOf(r):"*="===n?r&&-1<t.indexOf(r):"$="===n?r&&t.slice(-r.length)===r:"~="===n?-1<(" "+t.replace(J," ")+" ").indexOf(r):"|="===n&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(f,t,e,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var r,i,o,a,s,u,l=v!=y?"nextSibling":"previousSibling",c=t.parentNode,p=b&&t.nodeName.toLowerCase(),d=!n&&!b,h=!1;if(c){if(v){for(;l;){for(a=t;a=a[l];)if(b?a.nodeName.toLowerCase()===p:1===a.nodeType)return!1;u=l="only"===f&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&d){for(h=(s=(r=(i=(o=(a=c)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===_&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(h=s=0,u.pop());)if(1===a.nodeType&&++h&&a===t){i[f]=[_,s,h];break}}else if(!1===(h=d?s=(r=(i=(o=(a=t)[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===_&&r[1]:h))for(;(a=++s&&a&&a[l]||(h=s=0,u.pop()))&&((b?a.nodeName.toLowerCase()!==p:1!==a.nodeType)||!++h||(d&&((i=(o=a[T]||(a[T]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[_,h]),a!==t)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(t,o){var e,a=w.pseudos[t]||w.setFilters[t.toLowerCase()]||D.error("unsupported pseudo: "+t);return a[T]?a(o):1<a.length?(e=[t,t,"",o],w.setFilters.hasOwnProperty(t.toLowerCase())?O(function(t,e){for(var n,r=a(t,o),i=r.length;i--;)t[n=k(t,r[i])]=!(e[n]=r[i])}):function(t){return a(t,0,e)}):a}},pseudos:{not:O(function(t){var r=[],i=[],s=U(t.replace(A,"$1"));return s[T]?O(function(t,e,n,r){for(var i,o=s(t,null,r,[]),a=t.length;a--;)(i=o[a])&&(t[a]=!(e[a]=i))}):function(t,e,n){return r[0]=t,s(r,null,n,i),r[0]=null,!i.pop()}}),has:O(function(e){return function(t){return 0<D(e,t).length}}),contains:O(function(e){return e=e.replace(h,p),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:O(function(n){return rt.test(n||"")||D.error("unsupported lang: "+n),n=n.replace(h,p).toLowerCase(),function(t){var e;do{if(e=S?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=P.location&&P.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===e},focus:function(t){return t===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return ot.test(t.nodeName)},input:function(t){return it.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:L(function(){return[0]}),last:L(function(t,e){return[e-1]}),eq:L(function(t,e,n){return[n<0?n+e:n]}),even:L(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:L(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:L(function(t,e,n){for(var r=n<0?n+e:n;0<=--r;)t.push(r);return t}),gt:L(function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})w.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function ht(){}function I(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(a,t,e){var s=t.dir,u=e&&"parentNode"===s,l=B++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||u)return a(t,e,n)}:function(t,e,n){var r,i,o=[_,l];if(n){for(;t=t[s];)if((1===t.nodeType||u)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||u){if((r=(i=(i=t[T]||(t[T]={}))[t.uniqueID]||(i[t.uniqueID]={}))[s])&&r[0]===_&&r[1]===l)return o[2]=r[2];if((i[s]=o)[2]=a(t,e,n))return!0}}}function gt(i){return 1<i.length?function(t,e,n){for(var r=i.length;r--;)if(!i[r](t,e,n))return!1;return!0}:i[0]}function M(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)!(o=t[s])||n&&!n(o,r,i)||(a.push(o),l&&e.push(s));return a}function mt(h,f,g,m,v,t){return m&&!m[T]&&(m=mt(m)),v&&!v[T]&&(v=mt(v,t)),O(function(t,e,n,r){var i,o,a,s=[],u=[],l=e.length,c=t||function(t,e,n){for(var r=0,i=e.length;r<i;r++)D(t,e[r],n);return n}(f||"*",n.nodeType?[n]:n,[]),p=!h||!t&&f?c:M(c,s,h,n,r),d=g?v||(t?h:l||m)?[]:e:p;if(g&&g(p,d,n,r),m)for(i=M(d,u),m(i,[],n,r),o=i.length;o--;)(a=i[o])&&(d[u[o]]=!(p[u[o]]=a));if(t){if(v||h){if(v){for(i=[],o=d.length;o--;)(a=d[o])&&i.push(p[o]=a);v(null,d=[],i,r)}for(o=d.length;o--;)(a=d[o])&&-1<(i=v?k(t,a):s[o])&&(t[i]=!(e[i]=a))}}else d=M(d===e?d.splice(l,d.length):d),v?v(null,e,d,r):C.apply(e,d)})}function vt(m,v){function t(t,e,n,r,i){var o,a,s,u=0,l="0",c=t&&[],p=[],d=$,h=t||b&&w.find.TAG("*",i),f=_+=null==d?1:Math.random()||.1,g=h.length;for(i&&($=e===x||e||i);l!==g&&null!=(o=h[l]);l++){if(b&&o){for(a=0,e||o.ownerDocument===x||(E(o),n=!S);s=m[a++];)if(s(o,e||x,n)){r.push(o);break}i&&(_=f)}y&&((o=!s&&o)&&u--,t)&&c.push(o)}if(u+=l,y&&l!==u){for(a=0;s=v[a++];)s(c,p,e,n);if(t){if(0<u)for(;l--;)c[l]||p[l]||(p[l]=G.call(r));p=M(p)}C.apply(r,p),i&&!t&&0<p.length&&1<u+v.length&&D.uniqueSort(r)}return i&&(_=f,$=d),c}var y=0<v.length,b=0<m.length;return y?O(t):t}return ht.prototype=w.filters=w.pseudos,w.setFilters=new ht,g=D.tokenize=function(t,e){var n,r,i,o,a,s,u,l=q[t+" "];if(l)return e?0:l.slice(0);for(a=t,s=[],u=w.preFilter;a;){for(o in n&&!(r=Z.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=tt.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(A," ")}),a=a.slice(n.length)),w.filter)!(r=d[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?D.error(t):q(t,s).slice(0)},U=D.compile=function(t,e){var n,r=[],i=[],o=b[t+" "];if(!o){for(n=(e=e||g(t)).length;n--;)((o=function t(e){for(var r,n,i,o=e.length,a=w.relative[e[0].type],s=a||w.relative[" "],u=a?1:0,l=ft(function(t){return t===r},s,!0),c=ft(function(t){return-1<k(r,t)},s,!0),p=[function(t,e,n){return t=!a&&(n||e!==$)||((r=e).nodeType?l:c)(t,e,n),r=null,t}];u<o;u++)if(n=w.relative[e[u].type])p=[ft(gt(p),n)];else{if((n=w.filter[e[u].type].apply(null,e[u].matches))[T]){for(i=++u;i<o&&!w.relative[e[i].type];i++);return mt(1<u&&gt(p),1<u&&I(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(A,"$1"),n,u<i&&t(e.slice(u,i)),i<o&&t(e=e.slice(i)),i<o&&I(e))}p.push(n)}return gt(p)}(e[n]))[T]?r:i).push(o);(o=b(t,vt(i,r))).selector=t}return o},j=D.select=function(t,e,n,r){var i,o,a,s,u,l="function"==typeof t&&t,c=!r&&g(t=l.selector||t);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&f.getById&&9===e.nodeType&&S&&w.relative[o[1].type]){if(!(e=(w.find.ID(a.matches[0].replace(h,p),e)||[])[0]))return n;l&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=d.needsContext.test(t)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((u=w.find[s])&&(r=u(a.matches[0].replace(h,p),st.test(o[0].type)&&dt(e.parentNode)||e))){if(o.splice(i,1),t=r.length&&I(o))break;return C.apply(n,r),n}}return(l||U(t,c))(r,e,!S,n,!e||st.test(t)&&dt(e.parentNode)||e),n},f.sortStable=T.split("").sort(H).join("")===T,f.detectDuplicates=!!l,E(),f.sortDetached=R(function(t){return 1&t.compareDocumentPosition(x.createElement("div"))}),R(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&R(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),R(function(t){return null==t.getAttribute("disabled")})||ct(Y,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),D}($),z=(x.find=e,x.expr=e.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=e.uniqueSort,x.text=e.getText,x.isXMLDoc=e.isXML,x.contains=e.contains,x.expr.match.needsContext),K=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Y=/^.[^:#\[\.,]*$/;function X(t,n,r){if(x.isFunction(n))return x.grep(t,function(t,e){return!!n.call(t,e,t)!==r});if(n.nodeType)return x.grep(t,function(t){return t===n!==r});if("string"==typeof n){if(Y.test(n))return x.filter(n,t,r);n=x.filter(n,t)}return x.grep(t,function(t){return-1<i.call(n,t)!==r})}x.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?x.find.matchesSelector(r,t)?[r]:[]:x.find.matches(t,x.grep(e,function(t){return 1===t.nodeType}))},x.fn.extend({find:function(t){var e,n=this.length,r=[],i=this;if("string"!=typeof t)return this.pushStack(x(t).filter(function(){for(e=0;e<n;e++)if(x.contains(i[e],this))return!0}));for(e=0;e<n;e++)x.find(t,i[e],r);return(r=this.pushStack(1<n?x.unique(r):r)).selector=this.selector?this.selector+" "+t:t,r},filter:function(t){return this.pushStack(X(this,t||[],!1))},not:function(t){return this.pushStack(X(this,t||[],!0))},is:function(t){return!!X(this,"string"==typeof t&&z.test(t)?x(t):t||[],!1).length}});var Q,J=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Z=((x.fn.init=function(t,e,n){if(t){if(n=n||Q,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):x.isFunction(t)?void 0!==n.ready?n.ready(t):t(x):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),x.makeArray(t,this));if(!(r="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:J.exec(t))||!r[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(r[1]){if(e=e instanceof x?e[0]:e,x.merge(this,x.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:E,!0)),K.test(r[1])&&x.isPlainObject(e))for(var r in e)x.isFunction(this[r])?this[r](e[r]):this.attr(r,e[r])}else(n=E.getElementById(r[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=E,this.selector=t}return this}).prototype=x.fn,Q=x(E),/^(?:parents|prev(?:Until|All))/),tt={children:!0,contents:!0,next:!0,prev:!0};function et(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}x.fn.extend({has:function(t){var e=x(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(x.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,r=0,i=this.length,o=[],a=z.test(t)||"string"!=typeof t?x(t,e||this.context):0;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&x.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?x.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?i.call(x(t),this[0]):i.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),x.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return r(t,"parentNode")},parentsUntil:function(t,e,n){return r(t,"parentNode",n)},next:function(t){return et(t,"nextSibling")},prev:function(t){return et(t,"previousSibling")},nextAll:function(t){return r(t,"nextSibling")},prevAll:function(t){return r(t,"previousSibling")},nextUntil:function(t,e,n){return r(t,"nextSibling",n)},prevUntil:function(t,e,n){return r(t,"previousSibling",n)},siblings:function(t){return G((t.parentNode||{}).firstChild,t)},children:function(t){return G(t.firstChild)},contents:function(t){return t.contentDocument||x.merge([],t.childNodes)}},function(r,i){x.fn[r]=function(t,e){var n=x.map(this,i,t);return(e="Until"!==r.slice(-5)?t:e)&&"string"==typeof e&&(n=x.filter(e,n)),1<this.length&&(tt[r]||x.uniqueSort(n),Z.test(r))&&n.reverse(),this.pushStack(n)}});var nt,S=/\S+/g;function rt(){E.removeEventListener("DOMContentLoaded",rt),$.removeEventListener("load",rt),x.ready()}x.Callbacks=function(r){var t,n;r="string"==typeof r?(t=r,n={},x.each(t.match(S)||[],function(t,e){n[e]=!0}),n):x.extend({},r);function i(){for(s=r.once,a=o=!0;l.length;c=-1)for(e=l.shift();++c<u.length;)!1===u[c].apply(e[0],e[1])&&r.stopOnFalse&&(c=u.length,e=!1);r.memory||(e=!1),o=!1,s&&(u=e?[]:"")}var o,e,a,s,u=[],l=[],c=-1,p={add:function(){return u&&(e&&!o&&(c=u.length-1,l.push(e)),function n(t){x.each(t,function(t,e){x.isFunction(e)?r.unique&&p.has(e)||u.push(e):e&&e.length&&"string"!==x.type(e)&&n(e)})}(arguments),e)&&!o&&i(),this},remove:function(){return x.each(arguments,function(t,e){for(var n;-1<(n=x.inArray(e,u,n));)u.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<x.inArray(t,u):0<u.length},empty:function(){return u=u&&[],this},disable:function(){return s=l=[],u=e="",this},disabled:function(){return!u},lock:function(){return s=l=[],e||(u=e=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),o)||i(),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!a}};return p},x.extend({Deferred:function(t){var o=[["resolve","done",x.Callbacks("once memory"),"resolved"],["reject","fail",x.Callbacks("once memory"),"rejected"],["notify","progress",x.Callbacks("memory")]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var i=arguments;return x.Deferred(function(r){x.each(o,function(t,e){var n=x.isFunction(i[t])&&i[t];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&x.isFunction(t.promise)?t.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[e[0]+"With"](this===a?r.promise():this,n?[t]:arguments)})}),i=null}).promise()},promise:function(t){return null!=t?x.extend(t,a):a}},s={};return a.pipe=a.then,x.each(o,function(t,e){var n=e[2],r=e[3];a[e[1]]=n.add,r&&n.add(function(){i=r},o[1^t][2].disable,o[2][2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?a:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e,n,r){return function(t){n[e]=this,r[e]=1<arguments.length?c.call(arguments):t,r===i?l.notifyWith(n,r):--u||l.resolveWith(n,r)}}var i,n,r,o=0,a=c.call(arguments),s=a.length,u=1!==s||t&&x.isFunction(t.promise)?s:0,l=1===u?t:x.Deferred();if(1<s)for(i=new Array(s),n=new Array(s),r=new Array(s);o<s;o++)a[o]&&x.isFunction(a[o].promise)?a[o].promise().progress(e(o,n,i)).done(e(o,r,a)).fail(l.reject):--u;return u||l.resolveWith(r,a),l.promise()}}),x.fn.ready=function(t){return x.ready.promise().done(t),this},x.extend({isReady:!1,readyWait:1,holdReady:function(t){t?x.readyWait++:x.ready(!0)},ready:function(t){(!0===t?--x.readyWait:x.isReady)||(x.isReady=!0)!==t&&0<--x.readyWait||(nt.resolveWith(E,[x]),x.fn.triggerHandler&&(x(E).triggerHandler("ready"),x(E).off("ready")))}}),x.ready.promise=function(t){return nt||(nt=x.Deferred(),"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?$.setTimeout(x.ready):(E.addEventListener("DOMContentLoaded",rt),$.addEventListener("load",rt))),nt.promise(t)},x.ready.promise();function p(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===x.type(n))for(s in i=!0,n)p(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,x.isFunction(r)||(a=!0),e=l?a?(e.call(t,r),null):(l=e,function(t,e,n){return l.call(x(t),n)}):e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o}function m(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function n(){this.expando=x.expando+n.uid++}n.uid=1,n.prototype={register:function(t,e){e=e||{};return t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){var e;return m(t)?((e=t[this.expando])||(e={},m(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e):{}},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[e]=n;else for(r in e)i[r]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var r;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(r=this.get(t,e))?r:this.get(t,x.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r,i,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{n=(r=x.isArray(e)?e.concat(e.map(x.camelCase)):(i=x.camelCase(e),e in o?[e,i]:(r=i)in o?[r]:r.match(S)||[])).length;for(;n--;)delete o[r[n]]}void 0!==e&&!x.isEmptyObject(o)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var v=new n,u=new n,it=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ot=/[A-Z]/g;function at(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(ot,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:it.test(n)?x.parseJSON(n):n)}catch(t){}u.set(t,e,n)}else n=void 0;return n}x.extend({hasData:function(t){return u.hasData(t)||v.hasData(t)},data:function(t,e,n){return u.access(t,e,n)},removeData:function(t,e){u.remove(t,e)},_data:function(t,e,n){return v.access(t,e,n)},_removeData:function(t,e){v.remove(t,e)}}),x.fn.extend({data:function(r,t){var e,n,i,o=this[0],a=o&&o.attributes;if(void 0!==r)return"object"==typeof r?this.each(function(){u.set(this,r)}):p(this,function(e){var t,n;if(o&&void 0===e)return void 0!==(t=u.get(o,r)||u.get(o,r.replace(ot,"-$&").toLowerCase()))||(n=x.camelCase(r),void 0!==(t=u.get(o,n)))||void 0!==(t=at(o,n,void 0))?t:void 0;n=x.camelCase(r),this.each(function(){var t=u.get(this,n);u.set(this,n,e),-1<r.indexOf("-")&&void 0!==t&&u.set(this,r,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(i=u.get(o),1===o.nodeType)&&!v.get(o,"hasDataAttrs")){for(e=a.length;e--;)a[e]&&0===(n=a[e].name).indexOf("data-")&&(n=x.camelCase(n.slice(5)),at(o,n,i[n]));v.set(o,"hasDataAttrs",!0)}return i},removeData:function(t){return this.each(function(){u.remove(this,t)})}}),x.extend({queue:function(t,e,n){var r;if(t)return r=v.get(t,e=(e||"fx")+"queue"),n&&(!r||x.isArray(n)?r=v.access(t,e,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=x.queue(t,e),r=n.length,i=n.shift(),o=x._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){x.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return v.get(t,n)||v.access(t,n,{empty:x.Callbacks("once memory").add(function(){v.remove(t,[e+"queue",n])})})}}),x.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?x.queue(this[0],e):void 0===n?this:this.each(function(){var t=x.queue(this,e,n);x._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&x.dequeue(this,e)})},dequeue:function(t){return this.each(function(){x.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--i||o.resolveWith(a,[a])}var r,i=1,o=x.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(r=v.get(a[s],t+"queueHooks"))&&r.empty&&(i++,r.empty.add(n));return n(),o.promise(e)}});function y(t,e){return"none"===x.css(t=e||t,"display")||!x.contains(t.ownerDocument,t)}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,d=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),s=["Top","Right","Bottom","Left"];function st(t,e,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return x.css(t,e,"")},u=s(),l=n&&n[3]||(x.cssNumber[e]?"":"px"),c=(x.cssNumber[e]||"px"!==l&&+u)&&d.exec(x.css(t,e));if(c&&c[3]!==l)for(l=l||c[3],n=n||[],c=+u||1;c/=o=o||".5",x.style(t,e,c+l),o!==(o=s()/u)&&1!==o&&--a;);return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r)&&(r.unit=l,r.start=c,r.end=i),i}var ut=/^(?:checkbox|radio)$/i,lt=/<([\w:-]+)/,ct=/^$|\/(?:java|ecma)script/i,b={option:[1,"<select multiple='multiple'>","</select>"],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 w(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&x.nodeName(t,e)?x.merge([t],n):n}function pt(t,e){for(var n=0,r=t.length;n<r;n++)v.set(t[n],"globalEval",!e||v.get(e[n],"globalEval"))}b.optgroup=b.option,b.tbody=b.tfoot=b.colgroup=b.caption=b.thead,b.th=b.td;var dt=/<|&#?\w+;/;function ht(t,e,n,r,i){for(var o,a,s,u,l,c=e.createDocumentFragment(),p=[],d=0,h=t.length;d<h;d++)if((o=t[d])||0===o)if("object"===x.type(o))x.merge(p,o.nodeType?[o]:o);else if(dt.test(o)){for(a=a||c.appendChild(e.createElement("div")),s=(lt.exec(o)||["",""])[1].toLowerCase(),s=b[s]||b._default,a.innerHTML=s[1]+x.htmlPrefilter(o)+s[2],l=s[0];l--;)a=a.lastChild;x.merge(p,a.childNodes),(a=c.firstChild).textContent=""}else p.push(e.createTextNode(o));for(c.textContent="",d=0;o=p[d++];)if(r&&-1<x.inArray(o,r))i&&i.push(o);else if(u=x.contains(o.ownerDocument,o),a=w(c.appendChild(o),"script"),u&&pt(a),n)for(l=0;o=a[l++];)ct.test(o.type||"")&&n.push(o);return c}e=E.createDocumentFragment().appendChild(E.createElement("div")),(D=E.createElement("input")).setAttribute("type","radio"),D.setAttribute("checked","checked"),D.setAttribute("name","t"),e.appendChild(D),g.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue;var ft=/^key/,gt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mt=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function l(){return!1}function yt(){try{return E.activeElement}catch(t){}}function bt(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)bt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=l;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return x().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),t.each(function(){x.event.add(this,e,i,r,n)})}x.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,p,d,h,f=v.get(e);if(f)for(n.handler&&(n=(o=n).handler,i=o.selector),n.guid||(n.guid=x.guid++),s=(s=f.events)||(f.events={}),a=(a=f.handle)||(f.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(S)||[""]).length;u--;)p=h=(d=mt.exec(t[u])||[])[1],d=(d[2]||"").split(".").sort(),p&&(l=x.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=x.event.special[p]||{},h=x.extend({type:p,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:d.join(".")},o),(c=s[p])||((c=s[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,d,a))||e.addEventListener&&e.addEventListener(p,a),l.add&&(l.add.call(e,h),h.handler.guid||(h.handler.guid=n.guid)),i?c.splice(c.delegateCount++,0,h):c.push(h),x.event.global[p]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,p,d,h,f,g,m=v.hasData(t)&&v.get(t);if(m&&(u=m.events)){for(l=(e=(e||"").match(S)||[""]).length;l--;)if(h=g=(s=mt.exec(e[l])||[])[1],f=(s[2]||"").split(".").sort(),h){for(p=x.event.special[h]||{},d=u[h=(r?p.delegateType:p.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,p.remove&&p.remove.call(t,c));a&&!d.length&&(p.teardown&&!1!==p.teardown.call(t,f,m.handle)||x.removeEvent(t,h,m.handle),delete u[h])}else for(h in u)x.event.remove(t,h+e[l],n,r,!0);x.isEmptyObject(u)&&v.remove(t,"handle events")}},dispatch:function(t){t=x.event.fix(t);var e,n,r,i,o,a=c.call(arguments),s=(v.get(this,"events")||{})[t.type]||[],u=x.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,t)){for(o=x.event.handlers.call(this,t,s),e=0;(r=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(i.namespace)||(t.handleObj=i,t.data=i.data,void 0!==(i=((x.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,a))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,r,i,o,a=[],s=e.delegateCount,u=t.target;if(s&&u.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==t.type)){for(r=[],n=0;n<s;n++)void 0===r[i=(o=e[n]).selector+" "]&&(r[i]=o.needsContext?-1<x(i,this).index(u):x.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,r,i=e.button;return null==t.pageX&&null!=e.clientX&&(n=(r=t.target.ownerDocument||E).documentElement,r=r.body,t.pageX=e.clientX+(n&&n.scrollLeft||r&&r.scrollLeft||0)-(n&&n.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||r&&r.scrollTop||0)-(n&&n.clientTop||r&&r.clientTop||0)),t.which||void 0===i||(t.which=1&i?1:2&i?3:4&i?2:0),t}},fix:function(t){if(t[x.expando])return t;var e,n,r,i=t.type,o=t,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=gt.test(i)?this.mouseHooks:ft.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,t=new x.Event(o),e=r.length;e--;)t[n=r[e]]=o[n];return t.target||(t.target=E),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==yt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===yt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&x.nodeName(this,"input"))return this.click(),!1},_default:function(t){return x.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},x.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},x.Event=function(t,e){if(!(this instanceof x.Event))return new x.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?vt:l):this.type=t,e&&x.extend(this,e),this.timeStamp=t&&t.timeStamp||x.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=vt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=vt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=vt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,i){x.event.special[t]={delegateType:i,bindType:i,handle:function(t){var e,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||x.contains(this,n))||(t.type=r.origType,e=r.handler.apply(this,arguments),t.type=i),e}}}),x.fn.extend({on:function(t,e,n,r){return bt(this,t,e,n,r)},one:function(t,e,n,r){return bt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)r=t.handleObj,x(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=l),this.each(function(){x.event.remove(this,t,n,e)});for(i in t)this.off(i,e,t[i])}return this}});var wt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,$t=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Tt(t,e){return x.nodeName(t,"table")&&x.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function _t(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ct(t){var e=xt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function kt(t,e){var n,r,i,o,a,s;if(1===e.nodeType){if(v.hasData(t)&&(o=v.access(t),a=v.set(e,o),s=o.events))for(i in delete a.handle,a.events={},s)for(n=0,r=s[i].length;n<r;n++)x.event.add(e,i,s[i][n]);u.hasData(t)&&(o=u.access(t),a=x.extend({},o),u.set(e,a))}}function T(n,r,i,o){r=F.apply([],r);var t,e,a,s,u,l,c=0,p=n.length,d=p-1,h=r[0],f=x.isFunction(h);if(f||1<p&&"string"==typeof h&&!g.checkClone&&Et.test(h))return n.each(function(t){var e=n.eq(t);f&&(r[0]=h.call(this,t,e.html())),T(e,r,i,o)});if(p&&(e=(t=ht(r,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(s=(a=x.map(w(t,"script"),_t)).length;c<p;c++)u=t,c!==d&&(u=x.clone(u,!0,!0),s)&&x.merge(a,w(u,"script")),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,x.map(a,Ct),c=0;c<s;c++)u=a[c],ct.test(u.type||"")&&!v.access(u,"globalEval")&&x.contains(l,u)&&(u.src?x._evalUrl&&x._evalUrl(u.src):x.globalEval(u.textContent.replace(St,"")))}return n}function At(t,e,n){for(var r,i=e?x.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(w(r)),r.parentNode&&(n&&x.contains(r.ownerDocument,r)&&pt(w(r,"script")),r.parentNode.removeChild(r));return t}x.extend({htmlPrefilter:function(t){return t.replace(wt,"<$1></$2>")},clone:function(t,e,n){var r,i,o,a,s,u,l,c=t.cloneNode(!0),p=x.contains(t.ownerDocument,t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||x.isXMLDoc(t)))for(a=w(c),r=0,i=(o=w(t)).length;r<i;r++)s=o[r],u=a[r],l=void 0,"input"===(l=u.nodeName.toLowerCase())&&ut.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(e)if(n)for(o=o||w(t),a=a||w(c),r=0,i=o.length;r<i;r++)kt(o[r],a[r]);else kt(t,c);return 0<(a=w(c,"script")).length&&pt(a,!p&&w(t,"script")),c},cleanData:function(t){for(var e,n,r,i=x.event.special,o=0;void 0!==(n=t[o]);o++)if(m(n)){if(e=n[v.expando]){if(e.events)for(r in e.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,e.handle);n[v.expando]=void 0}n[u.expando]&&(n[u.expando]=void 0)}}}),x.fn.extend({domManip:T,detach:function(t){return At(this,t,!0)},remove:function(t){return At(this,t)},text:function(t){return p(this,function(t){return void 0===t?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return T(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Tt(this,t).appendChild(t)})},prepend:function(){return T(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Tt(this,t)).insertBefore(t,e.firstChild)})},before:function(){return T(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return T(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(x.cleanData(w(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return x.clone(this,t,e)})},html:function(t){return p(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!$t.test(t)&&!b[(lt.exec(t)||["",""])[1].toLowerCase()]){t=x.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(x.cleanData(w(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return T(this,arguments,function(t){var e=this.parentNode;x.inArray(this,n)<0&&(x.cleanData(w(this)),e)&&e.replaceChild(t,this)},n)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){x.fn[t]=function(t){for(var e,n=[],r=x(t),i=r.length-1,o=0;o<=i;o++)e=o===i?this:this.clone(!0),x(r[o])[a](e),U.apply(n,e.get());return this.pushStack(n)}});var Dt,Ot={HTML:"block",BODY:"block"};function Rt(t,e){t=x(e.createElement(t)).appendTo(e.body),e=x.css(t[0],"display");return t.detach(),e}function Lt(t){var e=E,n=Ot[t];return n||("none"!==(n=Rt(t,e))&&n||((e=(Dt=(Dt||x("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=Rt(t,e),Dt.detach()),Ot[t]=n),n}function It(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:$).getComputedStyle(t)}function Mt(t,e,n,r){var i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in n=n.apply(t,r||[]),e)t.style[i]=o[i];return n}var Pt,o,Nt,Ft,a,h,Ut=/^margin/,jt=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),_=E.documentElement;function Bt(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",_.appendChild(a);var t=$.getComputedStyle(h);Pt="1%"!==t.top,Ft="2px"===t.marginLeft,o="4px"===t.width,h.style.marginRight="50%",Nt="4px"===t.marginRight,_.removeChild(a)}function C(t,e,n){var r,i,o=t.style;return""!==(i=(n=n||It(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==i||x.contains(t.ownerDocument,t)||(i=x.style(t,e)),n&&!g.pixelMarginRight()&&jt.test(i)&&Ut.test(e)&&(t=o.width,e=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=n.width,o.width=t,o.minWidth=e,o.maxWidth=r),void 0!==i?i+"":i}function Vt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}a=E.createElement("div"),(h=E.createElement("div")).style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===h.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(h),x.extend(g,{pixelPosition:function(){return Bt(),Pt},boxSizingReliable:function(){return null==o&&Bt(),o},pixelMarginRight:function(){return null==o&&Bt(),Nt},reliableMarginLeft:function(){return null==o&&Bt(),Ft},reliableMarginRight:function(){var t,e=h.appendChild(E.createElement("div"));return e.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",h.style.width="1px",_.appendChild(a),t=!parseFloat($.getComputedStyle(e).marginRight),_.removeChild(a),h.removeChild(e),t}}));var qt=/^(none|table(?!-c[ea]).+)/,Ht={position:"absolute",visibility:"hidden",display:"block"},Wt={letterSpacing:"0",fontWeight:"400"},Gt=["Webkit","O","Moz","ms"],zt=E.createElement("div").style;function Kt(t){if(t in zt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Gt.length;n--;)if((t=Gt[n]+e)in zt)return t}function Yt(t,e,n){var r=d.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function Xt(t,e,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=x.css(t,n+s[o],!0,i)),r?("content"===n&&(a-=x.css(t,"padding"+s[o],!0,i)),"margin"!==n&&(a-=x.css(t,"border"+s[o]+"Width",!0,i))):(a+=x.css(t,"padding"+s[o],!0,i),"padding"!==n&&(a+=x.css(t,"border"+s[o]+"Width",!0,i)));return a}function Qt(t,e,n){var r=!0,i="width"===e?t.offsetWidth:t.offsetHeight,o=It(t),a="border-box"===x.css(t,"boxSizing",!1,o);if(i<=0||null==i){if(((i=C(t,e,o))<0||null==i)&&(i=t.style[e]),jt.test(i))return i;r=a&&(g.boxSizingReliable()||i===t.style[e]),i=parseFloat(i)||0}return i+Xt(t,e,n||(a?"border":"content"),r,o)+"px"}function Jt(t,e){for(var n,r,i,o=[],a=0,s=t.length;a<s;a++)(r=t[a]).style&&(o[a]=v.get(r,"olddisplay"),n=r.style.display,e?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&y(r)&&(o[a]=v.access(r,"olddisplay",Lt(r.nodeName)))):(i=y(r),"none"===n&&i||v.set(r,"olddisplay",i?n:x.css(r,"display"))));for(a=0;a<s;a++)!(r=t[a]).style||e&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=e?o[a]||"":"none");return t}function k(t,e,n,r,i){return new k.prototype.init(t,e,n,r,i)}x.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=C(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=x.camelCase(e),u=t.style;if(e=x.cssProps[s]||(x.cssProps[s]=Kt(s)||s),a=x.cssHooks[e]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:u[e];"string"===(o=typeof n)&&(i=d.exec(n))&&i[1]&&(n=st(t,e,i),o="number"),null==n||n!=n||("number"===o&&(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r)))||(u[e]=n)}},css:function(t,e,n,r){var i,o=x.camelCase(e);return e=x.cssProps[o]||(x.cssProps[o]=Kt(o)||o),"normal"===(i=void 0===(i=(o=x.cssHooks[e]||x.cssHooks[o])&&"get"in o?o.get(t,!0,n):i)?C(t,e,r):i)&&e in Wt&&(i=Wt[e]),(""===n||n)&&(o=parseFloat(i),!0===n||isFinite(o))?o||0:i}}),x.each(["height","width"],function(t,i){x.cssHooks[i]={get:function(t,e,n){if(e)return qt.test(x.css(t,"display"))&&0===t.offsetWidth?Mt(t,Ht,function(){return Qt(t,i,n)}):Qt(t,i,n)},set:function(t,e,n){var r=n&&It(t),n=n&&Xt(t,i,n,"border-box"===x.css(t,"boxSizing",!1,r),r);return n&&(r=d.exec(e))&&"px"!==(r[3]||"px")&&(t.style[i]=e,e=x.css(t,i)),Yt(0,e,n)}}}),x.cssHooks.marginLeft=Vt(g.reliableMarginLeft,function(t,e){if(e)return(parseFloat(C(t,"marginLeft"))||t.getBoundingClientRect().left-Mt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),x.cssHooks.marginRight=Vt(g.reliableMarginRight,function(t,e){if(e)return Mt(t,{display:"inline-block"},C,[t,"marginRight"])}),x.each({margin:"",padding:"",border:"Width"},function(i,o){x.cssHooks[i+o]={expand:function(t){for(var e=0,n={},r="string"==typeof t?t.split(" "):[t];e<4;e++)n[i+s[e]+o]=r[e]||r[e-2]||r[0];return n}},Ut.test(i)||(x.cssHooks[i+o].set=Yt)}),x.fn.extend({css:function(t,e){return p(this,function(t,e,n){var r,i,o={},a=0;if(x.isArray(e)){for(r=It(t),i=e.length;a<i;a++)o[e[a]]=x.css(t,e[a],!1,r);return o}return void 0!==n?x.style(t,e,n):x.css(t,e)},t,e,1<arguments.length)},show:function(){return Jt(this,!0)},hide:function(){return Jt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){y(this)?x(this).show():x(this).hide()})}}),((x.Tween=k).prototype={constructor:k,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||x.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var t=k.propHooks[this.prop];return(t&&t.get?t:k.propHooks._default).get(this)},run:function(t){var e,n=k.propHooks[this.prop];return this.options.duration?this.pos=e=x.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:k.propHooks._default).set(this),this}}).init.prototype=k.prototype,(k.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=x.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){x.fx.step[t.prop]?x.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[x.cssProps[t.prop]]&&!x.cssHooks[t.prop]?t.elem[t.prop]=t.now:x.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=k.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},x.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},x.fx=k.prototype.init,x.fx.step={};var A,Zt,D,te=/^(?:toggle|show|hide)$/,ee=/queueHooks$/;function ne(){return $.setTimeout(function(){A=void 0}),A=x.now()}function re(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=s[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function ie(t,e,n){for(var r,i=(O.tweeners[e]||[]).concat(O.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function O(i,t,e){var n,o,r,a,s,u,l,c=0,p=O.prefilters.length,d=x.Deferred().always(function(){delete h.elem}),h=function(){if(o)return!1;for(var t=A||ne(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,r=f.tweens.length;n<r;n++)f.tweens[n].run(e);return d.notifyWith(i,[f,e,t]),e<1&&r?t:(d.resolveWith(i,[f]),!1)},f=d.promise({elem:i,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},e),originalProperties:t,originalOptions:e,startTime:A||ne(),duration:e.duration,tweens:[],createTween:function(t,e){e=x.Tween(i,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(!o){for(o=!0;e<n;e++)f.tweens[e].run(1);t?(d.notifyWith(i,[f,1,0]),d.resolveWith(i,[f,t])):d.rejectWith(i,[f,t])}return this}}),g=f.props,m=g,v=f.opts.specialEasing;for(r in m)if(s=v[a=x.camelCase(r)],u=m[r],x.isArray(u)&&(s=u[1],u=m[r]=u[0]),r!==a&&(m[a]=u,delete m[r]),(l=x.cssHooks[a])&&"expand"in l)for(r in u=l.expand(u),delete m[a],u)r in m||(m[r]=u[r],v[r]=s);else v[a]=s;for(;c<p;c++)if(n=O.prefilters[c].call(f,i,g,f.opts))return x.isFunction(n.stop)&&(x._queueHooks(f.elem,f.opts.queue).stop=x.proxy(n.stop,n)),n;return x.map(g,ie,f),x.isFunction(f.opts.start)&&f.opts.start.call(i,f),x.fx.timer(x.extend(h,{elem:i,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}x.Animation=x.extend(O,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return st(n.elem,t,d.exec(e),n),n}]},tweener:function(t,e){for(var n,r=0,i=(t=x.isFunction(t)?(e=t,["*"]):t.match(S)).length;r<i;r++)n=t[r],O.tweeners[n]=O.tweeners[n]||[],O.tweeners[n].unshift(e)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c=this,p={},d=e.style,h=e.nodeType&&y(e),f=v.get(e,"fxshow");for(r in n.queue||(null==(s=x._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,x.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(l=x.css(e,"display"))?v.get(e,"olddisplay")||Lt(e.nodeName):l))&&"none"===x.css(e,"float")&&(d.display="inline-block"),n.overflow&&(d.overflow="hidden",c.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),t)if(i=t[r],te.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!f||void 0===f[r])continue;h=!0}p[r]=f&&f[r]||x.style(e,r)}else l=void 0;if(x.isEmptyObject(p))"inline"===("none"===l?Lt(e.nodeName):l)&&(d.display=l);else for(r in f?"hidden"in f&&(h=f.hidden):f=v.access(e,"fxshow",{}),o&&(f.hidden=!h),h?x(e).show():c.done(function(){x(e).hide()}),c.done(function(){for(var t in v.remove(e,"fxshow"),p)x.style(e,t,p[t])}),p)a=ie(h?f[r]:0,r,c),r in f||(f[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],prefilter:function(t,e){e?O.prefilters.unshift(t):O.prefilters.push(t)}}),x.speed=function(t,e,n){var r=t&&"object"==typeof t?x.extend({},t):{complete:n||!n&&e||x.isFunction(t)&&t,duration:t,easing:n&&e||e&&!x.isFunction(e)&&e};return r.duration=x.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in x.fx.speeds?x.fx.speeds[r.duration]:x.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){x.isFunction(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(t,e,n,r){return this.filter(y).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,t,n,r){function i(){var t=O(this,x.extend({},e),a);(o||v.get(this,"finish"))&&t.stop(!0)}var o=x.isEmptyObject(e),a=x.speed(t,n,r);return i.finish=i,o||!1===a.queue?this.each(i):this.queue(a.queue,i)},stop:function(i,t,o){function a(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof i&&(o=t,t=i,i=void 0),t&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var t=!0,e=null!=i&&i+"queueHooks",n=x.timers,r=v.get(this);if(e)r[e]&&r[e].stop&&a(r[e]);else for(e in r)r[e]&&r[e].stop&&ee.test(e)&&a(r[e]);for(e=n.length;e--;)n[e].elem!==this||null!=i&&n[e].queue!==i||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||x.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=v.get(this),n=e[a+"queue"],r=e[a+"queueHooks"],i=x.timers,o=n?n.length:0;for(e.finish=!0,x.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===a&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),x.each(["toggle","show","hide"],function(t,r){var i=x.fn[r];x.fn[r]=function(t,e,n){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(re(r,!0),t,e,n)}}),x.each({slideDown:re("show"),slideUp:re("hide"),slideToggle:re("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){x.fn[t]=function(t,e,n){return this.animate(r,t,e,n)}}),x.timers=[],x.fx.tick=function(){var t,e=0,n=x.timers;for(A=x.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||x.fx.stop(),A=void 0},x.fx.timer=function(t){x.timers.push(t),t()?x.fx.start():x.timers.pop()},x.fx.interval=13,x.fx.start=function(){Zt=Zt||$.setInterval(x.fx.tick,x.fx.interval)},x.fx.stop=function(){$.clearInterval(Zt),Zt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(r,t){return r=x.fx&&x.fx.speeds[r]||r,this.queue(t=t||"fx",function(t,e){var n=$.setTimeout(t,r);e.stop=function(){$.clearTimeout(n)}})},D=E.createElement("input"),e=E.createElement("select"),t=e.appendChild(E.createElement("option")),D.type="checkbox",g.checkOn=""!==D.value,g.optSelected=t.selected,e.disabled=!0,g.optDisabled=!t.disabled,(D=E.createElement("input")).value="t",D.type="radio",g.radioValue="t"===D.value;var oe,R=x.expr.attrHandle,ae=(x.fn.extend({attr:function(t,e){return p(this,x.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){x.removeAttr(this,t)})}}),x.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?x.prop(t,e,n):(1===o&&x.isXMLDoc(t)||(e=e.toLowerCase(),i=x.attrHooks[e]||(x.expr.match.bool.test(e)?oe:void 0)),void 0!==n?null===n?void x.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):!(i&&"get"in i&&null!==(r=i.get(t,e)))&&null==(r=x.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){var n;if(!g.radioValue&&"radio"===e&&x.nodeName(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,r,i=0,o=e&&e.match(S);if(o&&1===t.nodeType)for(;n=o[i++];)r=x.propFix[n]||n,x.expr.match.bool.test(n)&&(t[r]=!1),t.removeAttribute(n)}}),oe={set:function(t,e,n){return!1===e?x.removeAttr(t,n):t.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(t,e){var o=R[e]||x.find.attr;R[e]=function(t,e,n){var r,i;return n||(i=R[e],R[e]=r,r=null!=o(t,e,n)?e.toLowerCase():null,R[e]=i),r}}),/^(?:input|select|textarea|button)$/i),se=/^(?:a|area)$/i,ue=(x.fn.extend({prop:function(t,e){return p(this,x.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[x.propFix[t]||t]})}}),x.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(t)||(e=x.propFix[e]||e,i=x.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=x.find.attr(t,"tabindex");return e?parseInt(e,10):ae.test(t.nodeName)||se.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g);function L(t){return t.getAttribute&&t.getAttribute("class")||""}x.fn.extend({addClass:function(e){var t,n,r,i,o,a,s=0;if(x.isFunction(e))return this.each(function(t){x(this).addClass(e.call(this,t,L(this)))});if("string"==typeof e&&e)for(t=e.match(S)||[];n=this[s++];)if(a=L(n),r=1===n.nodeType&&(" "+a+" ").replace(ue," ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(a=x.trim(r))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,r,i,o,a,s=0;if(x.isFunction(e))return this.each(function(t){x(this).removeClass(e.call(this,t,L(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(S)||[];n=this[s++];)if(a=L(n),r=1===n.nodeType&&(" "+a+" ").replace(ue," ")){for(o=0;i=t[o++];)for(;-1<r.indexOf(" "+i+" ");)r=r.replace(" "+i+" "," ");a!==(a=x.trim(r))&&n.setAttribute("class",a)}return this},toggleClass:function(i,e){var o=typeof i;return"boolean"==typeof e&&"string"==o?e?this.addClass(i):this.removeClass(i):x.isFunction(i)?this.each(function(t){x(this).toggleClass(i.call(this,t,L(this),e),e)}):this.each(function(){var t,e,n,r;if("string"==o)for(e=0,n=x(this),r=i.match(S)||[];t=r[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==i&&"boolean"!=o||((t=L(this))&&v.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==i&&v.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,r=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+L(e)+" ").replace(ue," ").indexOf(r))return!0;return!1}});var le=/\r/g,ce=/[\x20\t\r\n\f]+/g,pe=(x.fn.extend({val:function(e){var n,t,r,i=this[0];return arguments.length?(r=x.isFunction(e),this.each(function(t){1!==this.nodeType||(null==(t=r?e.call(this,t,x(this).val()):e)?t="":"number"==typeof t?t+="":x.isArray(t)&&(t=x.map(t,function(t){return null==t?"":t+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value"))||(this.value=t)})):i?(n=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(i,"value"))?t:"string"==typeof(t=i.value)?t.replace(le,""):null==t?"":t:void 0}}),x.extend({valHooks:{option:{get:function(t){var e=x.find.attr(t,"value");return null!=e?e:x.trim(x.text(t)).replace(ce," ")}},select:{get:function(t){for(var e,n=t.options,r=t.selectedIndex,i="select-one"===t.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s<a;s++)if(((e=n[s]).selected||s===r)&&(g.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!x.nodeName(e.parentNode,"optgroup"))){if(e=x(e).val(),i)return e;o.push(e)}return o},set:function(t,e){for(var n,r,i=t.options,o=x.makeArray(e),a=i.length;a--;)((r=i[a]).selected=-1<x.inArray(x.valHooks.option.get(r),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(t,e){if(x.isArray(e))return t.checked=-1<x.inArray(x(t).val(),e)}},g.checkOn||(x.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),/^(?:focusinfocus|focusoutblur)$/),I=(x.extend(x.event,{trigger:function(t,e,n,r){var i,o,a,s,u,l,c=[n||E],p=f.call(t,"type")?t.type:t,d=f.call(t,"namespace")?t.namespace.split("."):[],h=o=n=n||E;if(3!==n.nodeType&&8!==n.nodeType&&!pe.test(p+x.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),s=p.indexOf(":")<0&&"on"+p,(t=t[x.expando]?t:new x.Event(p,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:x.makeArray(e,[t]),l=x.event.special[p]||{},r||!l.trigger||!1!==l.trigger.apply(n,e))){if(!r&&!l.noBubble&&!x.isWindow(n)){for(a=l.delegateType||p,pe.test(a+p)||(h=h.parentNode);h;h=h.parentNode)c.push(h),o=h;o===(n.ownerDocument||E)&&c.push(o.defaultView||o.parentWindow||$)}for(i=0;(h=c[i++])&&!t.isPropagationStopped();)t.type=1<i?a:l.bindType||p,(u=(v.get(h,"events")||{})[t.type]&&v.get(h,"handle"))&&u.apply(h,e),(u=s&&h[s])&&u.apply&&m(h)&&(t.result=u.apply(h,e),!1===t.result)&&t.preventDefault();return t.type=p,r||t.isDefaultPrevented()||l._default&&!1!==l._default.apply(c.pop(),e)||!m(n)||s&&x.isFunction(n[p])&&!x.isWindow(n)&&((o=n[s])&&(n[s]=null),n[x.event.triggered=p](),x.event.triggered=void 0,o)&&(n[s]=o),t.result}},simulate:function(t,e,n){n=x.extend(new x.Event,n,{type:t,isSimulated:!0});x.event.trigger(n,null,e)}}),x.fn.extend({trigger:function(t,e){return this.each(function(){x.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return x.event.trigger(t,e,n,!0)}}),x.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){x.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),x.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),g.focusin="onfocusin"in $,g.focusin||x.each({focus:"focusin",blur:"focusout"},function(n,r){function i(t){x.event.simulate(r,t.target,x.event.fix(t))}x.event.special[r]={setup:function(){var t=this.ownerDocument||this,e=v.access(t,r);e||t.addEventListener(n,i,!0),v.access(t,r,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=v.access(t,r)-1;e?v.access(t,r,e):(t.removeEventListener(n,i,!0),v.remove(t,r))}}}),$.location),de=x.now(),he=/\?/,fe=(x.parseJSON=function(t){return JSON.parse(t+"")},x.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new $.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+t),e},/#.*$/),ge=/([?&])_=[^&]*/,me=/^(.*?):[ \t]*([^\r\n]*)$/gm,ve=/^(?:GET|HEAD)$/,ye=/^\/\//,be={},we={},$e="*/".concat("*"),Ee=E.createElement("a");function xe(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,r=0,i=t.toLowerCase().match(S)||[];if(x.isFunction(e))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Se(e,r,i,o){var a={},s=e===we;function u(t){var n;return a[t]=!0,x.each(e[t]||[],function(t,e){e=e(r,i,o);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(r.dataTypes.unshift(e),u(e),!1)}),n}return u(r.dataTypes[0])||!a["*"]&&u("*")}function Te(t,e){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r=r||{})[n]=e[n]);return r&&x.extend(!0,t,r),t}Ee.href=I.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:I.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(I.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$e,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":x.parseJSON,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Te(Te(t,x.ajaxSettings),e):Te(x.ajaxSettings,t)},ajaxPrefilter:xe(be),ajaxTransport:xe(we),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var u,l,c,n,p,d,r,h=x.ajaxSetup({},e=e||{}),f=h.context||h,g=h.context&&(f.nodeType||f.jquery)?x(f):x.event,m=x.Deferred(),v=x.Callbacks("once memory"),y=h.statusCode||{},i={},o={},b=0,a="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!n)for(n={};e=me.exec(c);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?c:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=o[n]=o[n]||t,i[t]=e),this},overrideMimeType:function(t){return b||(h.mimeType=t),this},statusCode:function(t){if(t)if(b<2)for(var e in t)y[e]=[y[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){t=t||a;return u&&u.abort(t),s(0,t),this}};if(m.promise(w).complete=v.add,w.success=w.done,w.error=w.fail,h.url=((t||h.url||I.href)+"").replace(fe,"").replace(ye,I.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=x.trim(h.dataType||"*").toLowerCase().match(S)||[""],null==h.crossDomain){t=E.createElement("a");try{t.href=h.url,t.href=t.href,h.crossDomain=Ee.protocol+"//"+Ee.host!=t.protocol+"//"+t.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Se(be,h,e,w),2!==b){for(r in(d=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!ve.test(h.type),l=h.url,h.hasContent||(h.data&&(l=h.url+=(he.test(l)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=ge.test(l)?l.replace(ge,"$1_="+de++):l+(he.test(l)?"&":"?")+"_="+de++)),h.ifModified&&(x.lastModified[l]&&w.setRequestHeader("If-Modified-Since",x.lastModified[l]),x.etag[l])&&w.setRequestHeader("If-None-Match",x.etag[l]),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&w.setRequestHeader("Content-Type",h.contentType),w.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+$e+"; q=0.01":""):h.accepts["*"]),h.headers)w.setRequestHeader(r,h.headers[r]);if(h.beforeSend&&(!1===h.beforeSend.call(f,w,h)||2===b))return w.abort();for(r in a="abort",{success:1,error:1,complete:1})w[r](h[r]);if(u=Se(we,h,e,w)){if(w.readyState=1,d&&g.trigger("ajaxSend",[w,h]),2===b)return w;h.async&&0<h.timeout&&(p=$.setTimeout(function(){w.abort("timeout")},h.timeout));try{b=1,u.send(i,s)}catch(t){if(!(b<2))throw t;s(-1,t)}}else s(-1,"No Transport")}return w;function s(t,e,n,r){var i,o,a,s=e;2!==b&&(b=2,p&&$.clearTimeout(p),u=void 0,c=r||"",w.readyState=0<t?4:0,r=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a=a||i}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,w,n)),a=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(h,a,w,r),r?(h.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(x.lastModified[l]=n),n=w.getResponseHeader("etag"))&&(x.etag[l]=n),204===t||"HEAD"===h.type?s="nocontent":304===t?s="notmodified":(s=a.state,i=a.data,r=!(o=a.error))):(o=s,!t&&s||(s="error",t<0&&(t=0))),w.status=t,w.statusText=(e||s)+"",r?m.resolveWith(f,[i,s,w]):m.rejectWith(f,[w,s,o]),w.statusCode(y),y=void 0,d&&g.trigger(r?"ajaxSuccess":"ajaxError",[w,h,r?i:o]),v.fireWith(f,[w,s]),d)&&(g.trigger("ajaxComplete",[w,h]),--x.active||x.event.trigger("ajaxStop"))}},getJSON:function(t,e,n){return x.get(t,e,n,"json")},getScript:function(t,e){return x.get(t,void 0,e,"script")}}),x.each(["get","post"],function(t,i){x[i]=function(t,e,n,r){return x.isFunction(e)&&(r=r||n,n=e,e=void 0),x.ajax(x.extend({url:t,type:i,dataType:r,data:e,success:n},x.isPlainObject(t)&&t))}}),x._evalUrl=function(t){return x.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(e){var t;return x.isFunction(e)?this.each(function(t){x(this).wrapAll(e.call(this,t))}):(this[0]&&(t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return x.isFunction(n)?this.each(function(t){x(this).wrapInner(n.call(this,t))}):this.each(function(){var t=x(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=x.isFunction(e);return this.each(function(t){x(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){x.nodeName(this,"body")||x(this).replaceWith(this.childNodes)}).end()}}),x.expr.filters.hidden=function(t){return!x.expr.filters.visible(t)},x.expr.filters.visible=function(t){return 0<t.offsetWidth||0<t.offsetHeight||0<t.getClientRects().length};var _e=/%20/g,Ce=/\[\]$/,ke=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,De=/^(?:input|select|textarea|keygen)/i;x.param=function(t,e){function n(t,e){e=x.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var r,i=[];if(void 0===e&&(e=x.ajaxSettings&&x.ajaxSettings.traditional),x.isArray(t)||t.jquery&&!x.isPlainObject(t))x.each(t,function(){n(this.name,this.value)});else for(r in t)!function n(r,t,i,o){if(x.isArray(t))x.each(t,function(t,e){i||Ce.test(r)?o(r,e):n(r+"["+("object"==typeof e&&null!=e?t:"")+"]",e,i,o)});else if(i||"object"!==x.type(t))o(r,t);else for(var e in t)n(r+"["+e+"]",t[e],i,o)}(r,t[r],e,n);return i.join("&").replace(_e,"+")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=x.prop(this,"elements");return t?x.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!x(this).is(":disabled")&&De.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!ut.test(t))}).map(function(t,e){var n=x(this).val();return null==n?null:x.isArray(n)?x.map(n,function(t){return{name:e.name,value:t.replace(ke,"\r\n")}}):{name:e.name,value:n.replace(ke,"\r\n")}}).get()}}),x.ajaxSettings.xhr=function(){try{return new $.XMLHttpRequest}catch(t){}};var Oe={0:200,1223:204},M=x.ajaxSettings.xhr(),Re=(g.cors=!!M&&"withCredentials"in M,g.ajax=M=!!M,x.ajaxTransport(function(i){var o,a;if(g.cors||M&&!i.crossDomain)return{send:function(t,e){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)r.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===t?r.abort():"error"===t?"number"!=typeof r.status?e(0,"error"):e(r.status,r.statusText):e(Oe[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&$.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return x.globalEval(t),t}}}),x.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),x.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(t,e){r=x("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(t){r.remove(),i=null,t&&e("error"===t.type?404:200,t.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}}),[]),Le=/(=)\?(?=&|$)|\?\?/,Ie=(x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||x.expando+"_"+de++;return this[t]=!0,t}}),x.ajaxPrefilter("json jsonp",function(t,e,n){var r,i,o,a=!1!==t.jsonp&&(Le.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=x.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Le,"$1"+r):!1!==t.jsonp&&(t.url+=(he.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||x.error(r+" was not called"),o[0]},t.dataTypes[0]="json",i=$[r],$[r]=function(){o=arguments},n.always(function(){void 0===i?x($).removeProp(r):$[r]=i,t[r]&&(t.jsonpCallback=e.jsonpCallback,Re.push(r)),o&&x.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),x.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||E;var r=K.exec(t),n=!n&&[];return r?[e.createElement(r[1])]:(r=ht([t],e,n),n&&n.length&&x(n).remove(),x.merge([],r.childNodes))},x.fn.load);function Me(t){return x.isWindow(t)?t:9===t.nodeType&&t.defaultView}x.fn.load=function(t,e,n){var r,i,o,a,s;return"string"!=typeof t&&Ie?Ie.apply(this,arguments):(a=this,-1<(s=t.indexOf(" "))&&(r=x.trim(t.slice(s)),t=t.slice(0,s)),x.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),0<a.length&&x.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(r?x("<div>").append(x.parseHTML(t)).find(r):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this)},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){x.fn[e]=function(t){return this.on(e,t)}}),x.expr.filters.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(t,e,n){var r,i,o,a,s=x.css(t,"position"),u=x(t),l={};"static"===s&&(t.style.position="relative"),o=u.offset(),r=x.css(t,"top"),a=x.css(t,"left"),s=("absolute"===s||"fixed"===s)&&-1<(r+a).indexOf("auto")?(i=(s=u.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(a)||0),null!=(e=x.isFunction(e)?e.call(t,n,x.extend({},o)):e).top&&(l.top=e.top-o.top+i),null!=e.left&&(l.left=e.left-o.left+s),"using"in e?e.using.call(t,l):u.css(l)}},x.fn.extend({offset:function(e){var t,n,r,i;return arguments.length?void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)}
1):(r={top:0,left:0},(i=(n=this[0])&&n.ownerDocument)?(t=i.documentElement,x.contains(t,n)?(r=n.getBoundingClientRect(),n=Me(i),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):void 0)},position:function(){var t,e,n,r;if(this[0])return n=this[0],r={top:0,left:0},"fixed"===x.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),(r=x.nodeName(t[0],"html")?r:t.offset()).top+=x.css(t[0],"borderTopWidth",!0),r.left+=x.css(t[0],"borderLeftWidth",!0)),{top:e.top-r.top-x.css(n,"marginTop",!0),left:e.left-r.left-x.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===x.css(t,"position");)t=t.offsetParent;return t||_})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var o="pageYOffset"===i;x.fn[e]=function(t){return p(this,function(t,e,n){var r=Me(t);if(void 0===n)return r?r[i]:t[e];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):t[e]=n},e,t,arguments.length)}}),x.each(["top","left"],function(t,n){x.cssHooks[n]=Vt(g.pixelPosition,function(t,e){if(e)return e=C(t,n),jt.test(e)?x(t).position()[n]+"px":e})}),x.each({Height:"height",Width:"width"},function(o,a){x.each({padding:"inner"+o,content:a,"":"outer"+o},function(r,t){x.fn[t]=function(t,e){var n=arguments.length&&(r||"boolean"!=typeof t),i=r||(!0===t||!0===e?"margin":"border");return p(this,function(t,e,n){var r;return x.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+o],r["scroll"+o],t.body["offset"+o],r["offset"+o],r["client"+o])):void 0===n?x.css(t,e,i):x.style(t,e,n,i)},a,n?t:void 0,n,null)}})}),x.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),x.fn.andSelf=x.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var Pe=$.jQuery,Ne=$.$;return x.noConflict=function(t){return $.$===x&&($.$=Ne),t&&$.jQuery===x&&($.jQuery=Pe),x},P||($.jQuery=$.$=x),x}),!function(bt){"use strict";var c={objectMaxDepth:5,urlErrorParamsEnabled:!0};function e(t){if(!Tt(t))return c;D(t.objectMaxDepth)&&(c.objectMaxDepth=p(t.objectMaxDepth)?t.objectMaxDepth:NaN),D(t.urlErrorParamsEnabled)&&Ut(t.urlErrorParamsEnabled)&&(c.urlErrorParamsEnabled=t.urlErrorParamsEnabled)}function p(t){return w(t)&&0<t}function x(a,s){s=s||Error;var u="https://errors.angularjs.org/1.8.2/",t=u.replace(".","\\.")+"[\\s\\S]*",l=new RegExp(t,"g");return function(){var t,e,n=arguments[0],r=arguments[1],i="["+(a?a+":":"")+n+"] ",o=Vt(arguments,2).map(function(t){return re(t,c.objectMaxDepth)}),i=(i+=r.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e<o.length?o[e].replace(l,""):t}))+("\n"+u+(a?a+"/":"")+n);if(c.urlErrorParamsEnabled)for(e=0,t="?";e<o.length;e++,t="&")i+=t+"p"+e+"="+encodeURIComponent(o[e]);return new s(i)}}var wt,m,h=/^\/(.+)\/([a-z]*)$/,g="validity",$t=Object.prototype.hasOwnProperty,C=function(t){return _t(t)?t.toLowerCase():t},T=function(t){return _t(t)?t.toUpperCase():t},a=[].slice,r=[].splice,i=[].push,v=Object.prototype.toString,$=Object.getPrototypeOf,R=x("ng"),b=bt.angular||(bt.angular={}),L=0;function M(t){var e;return null!=t&&!H(t)&&(Ct(t)||_t(t)||wt&&t instanceof wt||w(e="length"in Object(t)&&t.length)&&(0<=e&&e-1 in t||"function"==typeof t.item))}function Et(t,e,n){if(t)if(kt(t))for(i in t)"prototype"!==i&&"length"!==i&&"name"!==i&&t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else if(Ct(t)||M(t))for(var r="object"!=typeof t,i=0,o=t.length;i<o;i++)(r||i in t)&&e.call(n,t[i],i,t);else if(t.forEach&&t.forEach!==Et)t.forEach(e,n,t);else if(V(t))for(i in t)e.call(n,t[i],i,t);else if("function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else for(i in t)$t.call(t,i)&&e.call(n,t[i],i,t);return t}function I(t,e,n){for(var r=Object.keys(t).sort(),i=0;i<r.length;i++)e.call(n,t[r[i]],r[i])}function P(n){return function(t,e){n(e,t)}}function N(){return++L}function F(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function U(t,e,n){for(var r=t.$$hashKey,i=0,o=e.length;i<o;++i){var a=e[i];if(Tt(a)||kt(a))for(var s=Object.keys(a),u=0,l=s.length;u<l;u++){var c=s[u],p=a[c];n&&Tt(p)?E(p)?t[c]=new Date(p.valueOf()):q(p)?t[c]=new RegExp(p):p.nodeName?t[c]=p.cloneNode(!0):K(p)?t[c]=p.clone():"__proto__"!==c&&(Tt(t[c])||(t[c]=Ct(p)?[]:{}),U(t[c],[p],!0)):t[c]=p}}return F(t,r),t}
1function xt(t){return U(t,a.call(arguments,1),!1)}function j(t){return U(t,a.call(arguments,1),!0)}function y(t){return parseInt(t,10)}var It=bt.document.documentMode,k=Number.isNaN||function(t){return t!=t};function Mt(t,e){return xt(Object.create(t),e)}function A(){}function Pt(t){return t}function _(t){return function(){return t}}function B(t){return kt(t.toString)&&t.toString!==v}function St(t){return void 0===t}function D(t){return void 0!==t}function Tt(t){return null!==t&&"object"==typeof t}function V(t){return null!==t&&"object"==typeof t&&!$(t)}function _t(t){return"string"==typeof t}function w(t){return"number"==typeof t}function E(t){return"[object Date]"===v.call(t)}function Ct(t){return Array.isArray(t)||t instanceof Array}function Nt(t){switch(v.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return 1;default:return t instanceof Error}}function kt(t){return"function"==typeof t}function q(t){return"[object RegExp]"===v.call(t)}function H(t){return t&&t.window===t}function Ft(t){return t&&t.$evalAsync&&t.$watch}function Ut(t){return"boolean"==typeof t}function W(t){return t&&kt(t.then)}A.$inject=[],Pt.$inject=[];var G=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var At=function(t){return _t(t)?t.trim():t},z=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function K(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function Dt(t){return C(t.nodeName||t[0]&&t[0].nodeName)}function Y(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function jt(t,e){e=t.indexOf(e);return 0<=e&&t.splice(e,1),e}function X(t,n,e){var r,i=[],o=[];if(e=p(e)?e:NaN,n){if((r=n)&&w(r.length)&&G.test(v.call(r))||"[object ArrayBuffer]"===v.call(n))throw R("cpta","Can't copy! TypedArray destination cannot be mutated.");if(t===n)throw R("cpi","Can't copy! Source and destination are identical.");return Ct(n)?n.length=0:Et(n,function(t,e){"$$hashKey"!==e&&delete n[e]}),i.push(t),o.push(n),a(t,n,e)}return s(t,e);function a(t,e,n){if(--n<0)return"...";var r,i=e.$$hashKey;if(Ct(t))for(var o=0,a=t.length;o<a;o++)e.push(s(t[o],n));else if(V(t))for(r in t)e[r]=s(t[r],n);else if(t&&"function"==typeof t.hasOwnProperty)for(r in t)t.hasOwnProperty(r)&&(e[r]=s(t[r],n));else for(r in t)$t.call(t,r)&&(e[r]=s(t[r],n));return F(e,i),e}function s(t,e){if(!Tt(t))return t;var n=i.indexOf(t);if(-1!==n)return o[n];if(H(t)||Ft(t))throw R("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var n=!1,r=function(t){switch(v.call(t)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new t.constructor(s(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":return t.slice?t.slice(0):(e=new ArrayBuffer(t.byteLength),new Uint8Array(e).set(new Uint8Array(t)),e);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":var e=new RegExp(t.source,t.toString().match(/[^/]*$/)[0]);return e.lastIndex=t.lastIndex,e;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(kt(t.cloneNode))return t.cloneNode(!0)}(t);return void 0===r&&(r=Ct(t)?[]:Object.create($(t)),n=!0),i.push(t),o.push(r),n?a(t,r,e):r}}function Bt(t,e){return t===e||t!=t&&e!=e}function Ot(t,e){if(t===e)return!0;if(null!==t&&null!==e){if(t!=t&&e!=e)return!0;var n,r,i,o=typeof t;if(o==typeof e&&"object"==o){if(!Ct(t)){if(E(t))return!!E(e)&&Bt(t.getTime(),e.getTime());if(q(t))return!!q(e)&&t.toString()===e.toString();if(Ft(t)||Ft(e)||H(t)||H(e)||Ct(e)||E(e)||q(e))return!1;for(r in i=Rt(),t)if("$"!==r.charAt(0)&&!kt(t[r])){if(!Ot(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&"$"!==r.charAt(0)&&D(e[r])&&!kt(e[r]))return!1;return!0}if(!Ct(e))return!1;if((n=t.length)===e.length){for(r=0;r<n;r++)if(!Ot(t[r],e[r]))return!1;return!0}}}return!1}var Q=function(){var t;return D(Q.rules)||((t=bt.document.querySelector("[ng-csp]")||bt.document.querySelector("[data-ng-csp]"))?(t=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp"),Q.rules={noUnsafeEval:!t||-1!==t.indexOf("no-unsafe-eval"),noInlineStyle:!t||-1!==t.indexOf("no-inline-style")}
1):Q.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(t){return!0}}(),noInlineStyle:!1}),Q.rules},J=function(){if(D(J.name_))return J.name_;for(var t,e,n,r=ct.length,i=0;i<r;++i)if(e=ct[i],t=bt.document.querySelector("["+e.replace(":","\\:")+"jq]")){n=t.getAttribute(e+"jq");break}return J.name_=n};function Z(t,e,n){return t.concat(a.call(e,n))}function Vt(t,e){return a.call(t,e||0)}function qt(t,e){var n=2<arguments.length?Vt(arguments,2):[];return!kt(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,Z(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function tt(t,e){var n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:H(e)?n="$WINDOW":e&&bt.document===e?n="$DOCUMENT":Ft(e)&&(n="$SCOPE"),n}function et(t,e){if(!St(t))return w(e)||(e=e?2:null),JSON.stringify(t,tt,e)}function nt(t){return _t(t)?JSON.parse(t):t}var rt=/:/g;function it(t,e){t=t.replace(rt,"");t=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return k(t)?e:t}function ot(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function at(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return ot(t,n*(it(e,r)-r))}function Ht(t){t=wt(t).clone().empty();var e=wt("<div></div>").append(t).html();try{return t[0].nodeType===Zt?C(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(t,e){return"<"+C(e)})}catch(t){return C(e)}}function st(t){try{return decodeURIComponent(t)}catch(t){}}function ut(t){var i={};return Et((t||"").split("&"),function(t){var e,n,r;t&&(n=t=t.replace(/\+/g,"%20"),-1!==(e=t.indexOf("="))&&(n=t.substring(0,e),r=t.substring(e+1)),D(n=st(n)))&&(r=!D(r)||st(r),$t.call(i,n)?Ct(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r)}),i}function lt(t){return o(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function o(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}var ct=["ng-","data-ng-","ng:","x-ng-"];pt=bt.document;var pt,dt=!(yt=pt.currentScript)||(yt instanceof bt.HTMLScriptElement||yt instanceof bt.SVGScriptElement)&&[(yt=yt.attributes).getNamedItem("src"),yt.getNamedItem("href"),yt.getNamedItem("xlink:href")].every(function(t){if(!t)return!0;if(!t.value)return!1;var e=pt.createElement("a");if(e.href=t.value,pt.location.origin===e.origin)return!0;switch(e.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}});function ht(n,t){var r,i,e={};Et(ct,function(t){t+="app";!r&&n.hasAttribute&&n.hasAttribute(t)&&(i=(r=n).getAttribute(t))}),Et(ct,function(t){var e,t=t+"app";!r&&(e=n.querySelector("["+t.replace(":","\\:")+"]"))&&(i=(r=e).getAttribute(t))}),r&&(dt?(e.strictDi=null!==function(t,e){for(var n,r=ct.length,i=0;i<r;++i)if(n=ct[i]+e,_t(n=t.getAttribute(n)))return n;return null}(r,"strict-di"),t(r,i?[i]:[],e)):bt.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function ft(e,n,r){function i(){if((e=wt(e)).injector())throw t=e[0]===bt.document?"document":Ht(e),R("btstrpd","App already bootstrapped with this element '{0}'",t.replace(/</,"&lt;").replace(/>/,"&gt;"));(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng");var t=hn(n,r.strictDi);return t.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),t}r=xt({strictDi:!1},r=Tt(r)?r:{});var t=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(bt&&t.test(bt.name)&&(r.debugInfoEnabled=!0,bt.name=bt.name.replace(t,"")),bt&&!o.test(bt.name))return i();bt.name=bt.name.replace(o,""),b.resumeBootstrap=function(t){return Et(t,function(t){n.push(t)}),i()},kt(b.resumeDeferredBootstrap)&&b.resumeDeferredBootstrap()}function gt(){bt.name="NG_ENABLE_DEBUG_INFO!"+bt.name,bt.location.reload()}function mt(t){t=b.element(t).injector();if(t)return t.get("$$testability");throw R("test","no injector found for element argument to getTestability")}var vt=/[A-Z]/g;function Wt(t,n){return n=n||"_",t.replace(vt,function(t,e){return(e?n:"")+t.toLowerCase()})}var yt=!1;function Gt(){s.legacyXHTMLReplacement=!0}function zt(t,e,n){if(!t)throw R("areq","Argument '{0}' is {1}",e||"?",n||"required")}function Kt(t,e,n){zt(kt(t=n&&Ct(t)?t[t.length-1]:t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t))}function Yt(t,e){if("hasOwnProperty"===t)throw R("badname","hasOwnProperty is not a valid {0} name",e)}function Xt(t){for(var e,n=t[0],r=t[t.length-1],i=1;n!==r&&(n=n.nextSibling);i++)!e&&t[i]===n||(e=e||wt(a.call(t,0,i))).push(n);return e||t}function Rt(){return Object.create(null)}function Qt(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!B(t)||Ct(t)||E(t)?et(t):t.toString()}return t}var Jt=1,Zt=3,te=8,ee=9;function ne(t){var p=x("$injector"),d=x("ng");function n(t,e,n){return t[e]||(t[e]=n())}t=n(t,"angular",Object);return t.$$minErr=t.$$minErr||x,n(t,"module",function(){var e={};return function(s,u,l){var c={},t="module";if("hasOwnProperty"===s)throw d("badname","hasOwnProperty is not a valid {0} name",t);return u&&e.hasOwnProperty(s)&&(e[s]=null),n(e,s,function(){var o,t,e,n,a;
1if(u)return o=[],n=r("$injector","invoke","push",t=[]),a={_invokeQueue:o,_configBlocks:t,_runBlocks:e=[],info:function(t){if(D(t)){if(Tt(t))return c=t,this;throw d("aobj","Argument '{0}' must be an object","value")}return c},requires:u,name:s,provider:i("$provide","provider"),factory:i("$provide","factory"),service:i("$provide","service"),value:r("$provide","value"),constant:r("$provide","constant","unshift"),decorator:i("$provide","decorator",t),animation:i("$animateProvider","register"),filter:i("$filterProvider","register"),controller:i("$controllerProvider","register"),directive:i("$compileProvider","directive"),component:i("$compileProvider","component"),config:n,run:function(t){return e.push(t),this}},l&&n(l),a;throw p("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",s);function r(t,e,n,r){return r=r||o,function(){return r[n||"push"]([t,e,arguments]),a}}function i(n,r,i){return i=i||o,function(t,e){return e&&kt(e)&&(e.$$moduleName=s),i.push([n,r,arguments]),a}}})}})}function S(t,e){if(Ct(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(Tt(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}function re(t,e){var n,r;return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):St(t)?"undefined":"string"!=typeof t?(n=t,r=[],p(e=e)&&(n=b.copy(n,null,e)),JSON.stringify(n,function(t,e){if(Tt(e=tt(t,e))){if(0<=r.indexOf(e))return"...";r.push(e)}return e})):t}var ie={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};s.expando="ng339";var oe=s.cache={},ae=1;s._data=function(t){return this.cache[t[this.expando]]||{}};
1var se=/-([a-z])/g,ue=/^-ms-/,le={mouseleave:"mouseout",mouseenter:"mouseover"},ce=x("jqLite");function pe(t,e){return e.toUpperCase()}function de(t){return t.replace(se,pe)}var he,fe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ge=/<|&#?\w+;/,me=/<([\w:-]+)/,ve=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ye={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]},be=(ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,{option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]});for(he in ye){var we=ye[he],$e=we.slice().reverse();be[he]=[$e.length,"<"+$e.join("><")+">","</"+we.join("></")+">"]}function Ee(t){return!ge.test(t)}function xe(t){t=t.nodeType;return t===Jt||!t||t===ee}function Se(t,e){var n,r,i,o=e.createDocumentFragment(),a=[];if(Ee(t))a.push(e.createTextNode(t));else{if(n=o.appendChild(e.createElement("div")),e=(me.exec(t)||["",""])[1].toLowerCase(),t=s.legacyXHTMLReplacement?t.replace(ve,"<$1></$2>"):t,It<10)for(r=be[e]||be._default,n.innerHTML=r[1]+t+r[2],i=r[0];i--;)n=n.firstChild;else{for(i=(r=ye[e]||[]).length;-1<--i;)n.appendChild(bt.document.createElement(r[i])),n=n.firstChild;n.innerHTML=t}a=Z(a,n.childNodes),(n=o.firstChild).textContent=""}return o.textContent="",o.innerHTML="",Et(a,function(t){o.appendChild(t)}),o}be.optgroup=be.option;var Te=bt.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))};function s(t){if(t instanceof s)return t;var e,n,r;if(_t(t)&&(t=At(t),e=!0),!(this instanceof s)){if(e&&"<"!==t.charAt(0))throw ce("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new s(t)}e?Ne(this,(e=t,n=n||bt.document,(r=fe.exec(e))?[n.createElement(r[1])]:(r=Se(e,n))?r.childNodes:[])):kt(t)?Ve(t):Ne(this,t)}function _e(t){return t.cloneNode(!0)}function Ce(t,e){!e&&xe(t)&&wt.cleanData([t]),t.querySelectorAll&&wt.cleanData(t.querySelectorAll("*"))}function ke(t){for(var e in t)return;return 1}function Ae(t){var e=t.ng339,n=e&&oe[e],r=n&&n.events,n=n&&n.data;n&&!ke(n)||r&&!ke(r)||(delete oe[e],t.ng339=void 0)}function De(n,t,r,e){if(D(e))throw ce("offargs","jqLite#off() does not support the `selector` argument");var e=Re(n),i=e&&e.events,o=e&&e.handle;if(o){if(t){var a=function(t){var e=i[t];D(r)&&jt(e||[],r),D(r)&&e&&0<e.length||(n.removeEventListener(t,o),delete i[t])};Et(t.split(" "),function(t){a(t),le[t]&&a(le[t])})}else for(t in i)"$destroy"!==t&&n.removeEventListener(t,o),delete i[t];Ae(n)}}function Oe(t,e){var n=t.ng339,n=n&&oe[n];n&&(e?delete n.data[e]:n.data={},Ae(t))}function Re(t,e){var n=t.ng339,r=n&&oe[n];return e&&!r&&(t.ng339=n=++ae,r=oe[n]={events:{},data:{},handle:void 0}),r}function Le(t,e,n){if(xe(t)){var r,i=D(n),o=!i&&e&&!Tt(e),a=!e,t=Re(t,!o),s=t&&t.data;if(i)s[de(e)]=n;else{if(a)return s;if(o)return s&&s[de(e)];for(r in e)s[de(r)]=e[r]}}}function Ie(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function Me(t,e){var n,r;e&&t.setAttribute&&(n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n,Et(e.split(" "),function(t){t=At(t),r=r.replace(" "+t+" "," ")}),r!==n)&&t.setAttribute("class",At(r))}function Pe(t,e){var n,r;e&&t.setAttribute&&(n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n,Et(e.split(" "),function(t){t=At(t),-1===r.indexOf(" "+t+" ")&&(r+=t+" ")}),r!==n)&&t.setAttribute("class",At(r))}function Ne(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Fe(t,e){return Ue(t,"$"+(e||"ngController")+"Controller")}function Ue(t,e,n){t.nodeType===ee&&(t=t.documentElement);for(var r=Ct(e)?e:[e];t;){for(var i=0,o=r.length;i<o;i++)if(D(n=wt.data(t,r[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function je(t){for(Ce(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Be(t,e){e||Ce(t);e=t.parentNode;e&&e.removeChild(t)}function Ve(t){function e(){bt.document.removeEventListener("DOMContentLoaded",e),bt.removeEventListener("load",e),t()}"complete"===bt.document.readyState?bt.setTimeout(t):(bt.document.addEventListener("DOMContentLoaded",e),bt.addEventListener("load",e))}var qe=s.prototype={ready:Ve,toString:function(){var e=[];return Et(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(t){return wt(0<=t?this[t]:this[this.length+t])},length:0,push:i,sort:[].sort,splice:[].splice},He={},We=(Et("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){He[C(t)]=t}),{}),Ge=(Et("input,select,option,textarea,button,form,details".split(","),function(t){We[t]=!0}),{ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"});function ze(t,e){e=He[e.toLowerCase()];return e&&We[Dt(t)]&&e}function Ke(t,e){var n;if(St(e))return(n=t.nodeType)===Jt||n===Zt?t.textContent:"";t.textContent=e}function Ye(s,u){function t(t,e){t.isDefaultPrevented=function(){return t.defaultPrevented};var n=u[e||t.type],r=n?n.length:0;if(r){St(t.immediatePropagationStopped)&&(i=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){t.immediatePropagationStopped=!0,t.stopPropagation&&t.stopPropagation(),i&&i.call(t)}),t.isImmediatePropagationStopped=function(){return!0===t.immediatePropagationStopped};var i,o=n.specialHandlerWrapper||Xe;1<r&&(n=S(n));for(var a=0;a<r;a++)t.isImmediatePropagationStopped()||o(s,t,n[a])}}return t.elem=s,t}function Xe(t,e,n){n.call(t,e)}function Qe(t,e,n){var r=e.relatedTarget;r&&(r===t||Te.call(t,r))||n.call(t,e)}function Je(){this.$get=function(){return xt(s,{hasClass:function(t,e){return Ie(t=t.attr?t[0]:t,e)},addClass:function(t,e){return Pe(t=t.attr?t[0]:t,e)},removeClass:function(t,e){return Me(t=t.attr?t[0]:t,e)}})}}function Ze(t,e){var n=t&&t.$$hashKey;return n?"function"==typeof n?t.$$hashKey():n:"function"==(n=typeof t)||"object"==n&&null!==t?t.$$hashKey=n+":"+(e||N)():n+":"+t}Et({data:Le,removeData:Oe,hasData:function(t){for(var e in oe[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)Oe(t[e]),De(t[e])}},function(t,e){s[e]=t}),Et({data:Le,inheritedData:Ue,scope:function(t){return wt.data(t,"$scope")||Ue(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return wt.data(t,"$isolateScope")||wt.data(t,"$isolateScopeNoTemplate")},controller:Fe,injector:function(t){return Ue(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Ie,css:function(t,e,n){if(e=de(e.replace(ue,"ms-")),!D(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r,i=t.nodeType;if(i!==Zt&&2!==i&&i!==te&&t.getAttribute)return i=C(e),r=He[i],D(n)?void(null===n||!1===n&&r?t.removeAttribute(e):t.setAttribute(e,r?i:n)):(n=t.getAttribute(e),null===(n=r&&null!==n?i:n)?void 0:n)},prop:function(t,e,n){if(!D(n))return t[e];t[e]=n},text:(Ke.$dv="",Ke),val:function(t,e){var n;if(St(e))return t.multiple&&"select"===Dt(t)?(n=[],Et(t.options,function(t){t.selected&&n.push(t.value||t.text)}),n):t.value;t.value=e},html:function(t,e){if(St(e))return t.innerHTML;Ce(t,!0),t.innerHTML=e},empty:je},function(l,t){s.prototype[t]=function(t,e){var n,r,i=this.length;if(l!==je&&St(2===l.length&&l!==Ie&&l!==Fe?t:e)){if(Tt(t)){for(n=0;n<i;n++)if(l===Le)l(this[n],t);else for(r in t)l(this[n],r,t[r]);return this}for(var o=St(u=l.$dv)?Math.min(i,1):i,a=0;a<o;a++)var s=l(this[a],t,e),u=u?u+s:s;return u}for(n=0;n<i;n++)l(this[n],t,e);return this}}),Et({removeData:Oe,on:function(i,t,o,e){if(D(e))throw ce("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(xe(i))for(var e=Re(i,!0),a=e.events,s=(s=e.handle)||(e.handle=Ye(i,a)),n=0<=t.indexOf(" ")?t.split(" "):[t],r=n.length,u=function(t,e,n){var r=a[t];r||((r=a[t]=[]).specialHandlerWrapper=e,"$destroy"===t)||n||i.addEventListener(t,s),r.push(o)};r--;)t=n[r],le[t]?(u(le[t],Qe),u(t,void 0,!0)):u(t)},off:De,one:function(e,n,r){(e=wt(e)).on(n,function t(){e.off(n,r),e.off(n,t)}),e.on(n,r)},replaceWith:function(e,t){var n,r=e.parentNode;Ce(e),Et(new s(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(t){var e=[];
1return Et(t.childNodes,function(t){t.nodeType===Jt&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===Jt||11===n)for(var r=0,i=(e=new s(e)).length;r<i;r++){var o=e[r];t.appendChild(o)}},prepend:function(e,t){var n;e.nodeType===Jt&&(n=e.firstChild,Et(new s(t),function(t){e.insertBefore(t,n)}))},wrap:function(t,e){var n;t=t,e=wt(e).eq(0).clone()[0],(n=t.parentNode)&&n.replaceChild(e,t),e.appendChild(t)},remove:Be,detach:function(t){Be(t,!0)},after:function(t,e){var n=t,r=t.parentNode;if(r)for(var i=0,o=(e=new s(e)).length;i<o;i++){var a=e[i];r.insertBefore(a,n.nextSibling),n=a}},addClass:Pe,removeClass:Me,toggleClass:function(n,t,r){t&&Et(t.split(" "),function(t){var e=r;((e=St(r)?!Ie(n,t):e)?Pe:Me)(n,t)})},parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:_e,triggerHandler:function(e,t,n){var r,i,o=t.type||t,a=Re(e),a=a&&a.events,a=a&&a[o];a&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:A,type:o,target:e},t.type&&(r=xt(r,t)),o=S(a),i=n?[r].concat(n):[r],Et(o,function(t){r.isImmediatePropagationStopped()||t.apply(e,i)}))}},function(a,t){s.prototype[t]=function(t,e,n){for(var r,i=0,o=this.length;i<o;i++)St(r)?D(r=a(this[i],t,e,n))&&(r=wt(r)):Ne(r,a(this[i],t,e,n));return D(r)?r:this}}),s.prototype.bind=s.prototype.on,s.prototype.unbind=s.prototype.off;var tn=Object.create(null);function en(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}en.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return k(t)?tn:t},get:function(t){t=this._transformKey(t);t=this._idx(t);if(-1!==t)return this._values[t]},has:function(t){return t=this._transformKey(t),-1!==this._idx(t)},set:function(t,e){t=this._transformKey(t);var n=this._idx(t);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=t,this._values[n]=e},delete:function(t){t=this._transformKey(t);t=this._idx(t);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var nn=en,rn=[function(){this.$get=[function(){return nn}]}],on=/^([^(]+?)=>/,an=/^[^(]*\(\s*([^)]*)\)/m,sn=/,/,un=/^\s*(_?)(\S+?)\1\s*$/,ln=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,cn=x("$injector");function pn(t){return Function.prototype.toString.call(t)}function dn(t){t=pn(t).replace(ln,"");return t.match(on)||t.match(an)}function hn(t,l){l=!0===l;var o={},a="Provider",s=[],i=new nn,c={$provide:{provider:r(d),factory:r(h),service:r(function(t,e){return h(t,["$injector",function(t){return t.instantiate(e)}])}),value:r(function(t,e){return h(t,_(e),!1)}),constant:r(function(t,e){Yt(t,"constant"),c[t]=e,n[t]=e}),decorator:function(t,e){var n=u.get(t+a),r=n.$get;n.$get=function(){var t=p.invoke(r,n);return p.invoke(e,null,{$delegate:t})}}}},u=c.$injector=g(c,function(t,e){throw b.isString(e)&&s.push(e),cn("unpr","Unknown provider: {0}",s.join(" <- "))}),n={},e=g(n,function(t,e){e=u.get(t+a,e);return p.invoke(e.$get,e,void 0,t)}),p=e,t=(c["$injector"+a]={$get:_(e)},p.modules=u.modules=Rt(),f(t));return(p=e.get("$injector")).strictDi=l,Et(t,function(t){t&&p.invoke(t)}),p.loadNewModules=function(t){Et(f(t),function(t){t&&p.invoke(t)})},p;function r(n){return function(t,e){if(!Tt(t))return n(t,e);Et(t,P(n))}}function d(t,e){if(Yt(t,"service"),(e=kt(e)||Ct(e)?u.instantiate(e):e).$get)return c[t+a]=e;throw cn("pget","Provider '{0}' must define $get factory method.",t)}function h(t,e,n){return d(t,{$get:!1!==n?(r=t,i=e,function(){var t=p.invoke(i,this);if(St(t))throw cn("undef","Provider '{0}' must return a value from $get factory method.",r);return t}):e});var r,i}function f(t){zt(St(t)||Ct(t),"modulesToLoad","not an array");var n,r=[];return Et(t,function(e){if(!i.get(e)){i.set(e,!0);try{_t(e)?(n=m(e),p.modules[e]=n,r=r.concat(f(n.requires)).concat(n._runBlocks),t(n._invokeQueue),t(n._configBlocks)):kt(e)||Ct(e)?r.push(u.invoke(e)):Kt(e,"module")}catch(t){throw Ct(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),cn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function t(t){for(var e=0,n=t.length;e<n;e++){var r=t[e],i=u.get(r[0]);i[r[1]].apply(i,r[2])}}}),r}function g(n,r){function u(e,t){if(n.hasOwnProperty(e)){if(n[e]===o)throw cn("cdep","Circular dependency foun
1d: {0}",e+" <- "+s.join(" <- "));return n[e]}try{return s.unshift(e),n[e]=o,n[e]=r(e,t),n[e]}catch(t){throw n[e]===o&&delete n[e],t}finally{s.shift()}}function i(t,e,n){for(var r=[],i=hn.$$annotate(t,l,n),o=0,a=i.length;o<a;o++){var s=i[o];if("string"!=typeof s)throw cn("itkn","Incorrect injection token! Expected service name as string, got {0}",s);r.push(e&&e.hasOwnProperty(s)?e[s]:u(s,n))}return r}return{invoke:function(t,e,n,r){return"string"==typeof n&&(r=n,n=null),n=i(t,n,r),function(t){var e;if(!It&&"function"==typeof t)return Ut(e=t.$$ngIsClass)?e:t.$$ngIsClass=/^class\b/.test(pn(t))}(t=Ct(t)?t[t.length-1]:t)?(n.unshift(null),new(Function.prototype.bind.apply(t,n))):t.apply(e,n)},instantiate:function(t,e,n){var r=Ct(t)?t[t.length-1]:t;return(t=i(t,e,n)).unshift(null),new(Function.prototype.bind.apply(r,t))},get:u,annotate:hn.$$annotate,has:function(t){return c.hasOwnProperty(t+a)||n.hasOwnProperty(t)}}}}function fn(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(r,i,o){var a=r.document;function s(t){var e,n;t?(t.scrollIntoView(),kt(n=u.yOffset)?n=n():K(n)?(e=n[0],n="fixed"!==r.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):w(n)||(n=0),(e=n)&&(n=t.getBoundingClientRect().top,r.scrollBy(0,n-e))):r.scrollTo(0,0)}function u(t){var e,n;(t=_t(t)?t:w(t)?t.toString():i.hash())?(e=a.getElementById(t))?s(e):(e=a.getElementsByName(t),n=null,Array.prototype.some.call(e,function(t){if("a"===Dt(t))return n=t,!0}),n?s(n):"top"===t&&s(null)):s(null)}return t&&o.$watch(function(){return i.hash()},function(t,e){var n;t===e&&""===t||(e=function(){o.$evalAsync(u)},"complete"===(n=n||bt).document.readyState?n.setTimeout(e):wt(n).on("load",e))}),u}]}hn.$$annotate=function(t,e,n){var r;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw _t(n)&&n||(n=t.name||((e=dn(e=t))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn")),cn("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);Et(dn(t)[1].split(sn),function(t){t.replace(un,function(t,e,n){r.push(n)})})}t.$inject=r}}else Ct(t)?(e=t.length-1,Kt(t[e],"fn"),r=t.slice(0,e)):Kt(t,"fn",!0);return r};var gn=x("$animate"),mn=1,vn="ng-animate";function yn(t,e){return t||e?t?e?(t=Ct(t)?t.join(" "):t)+" "+(e=Ct(e)?e.join(" "):e):t:e:""}function bn(t){return Tt(t)?t:{}}function wn(){this.$get=A}function $n(){var l=new nn,c=[];this.$get=["$$AnimateRunner","$rootScope",function(o,a){return{enabled:A,on:A,off:A,pin:A,push:function(t,e,n,r){r&&r(),(n=n||{}).from&&t.css(n.from),n.to&&t.css(n.to),(n.addClass||n.removeClass)&&(r=t,t=n.addClass,n=n.removeClass,i=l.get(r)||{},t=s(i,t,!0),n=s(i,n,!1),t||n)&&(l.set(r,i),c.push(r),1===c.length)&&a.$$postDigest(u);var i,t=new o;return t.complete(),t}};function s(e,t,n){var r=!1;return t&&Et(t=_t(t)?t.split(" "):Ct(t)?t:[],function(t){t&&(r=!0,e[t]=n)}),r}function u(){Et(c,function(t){var n,r,i,e,o,a=l.get(t);a&&(_t(e=t.attr("class"))&&(e=e.split(" ")),o=Rt(),Et(e,function(t){t.length&&(o[t]=!0)}),n=o,i=r="",Et(a,function(t,e){t!==!!n[e]&&(t?r+=(r.length?" ":"")+e:i+=(i.length?" ":"")+e)}),Et(t,function(t){r&&Pe(t,r),i&&Me(t,i)}),l.delete(t))}),c.length=0}}]}function En(){this.$get=["$$rAF",function(e){var n=[];function r(t){n.push(t),1<n.length||e(function(){for(var t=0;t<n.length;t++)n[t]();n=[]})}return function(){var e=!1;return r(function(){e=!0}),function(t){e?t():r(t)}}}]}function xn(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function o(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){r()?i(t,0,!1):e(t)},this._state=0}return o.chain=function(t,n){var r=0;!function e(){if(r===t.length)return void n(!0);t[r](function(t){!1===t?n(!1):(r++,e())})}()},o.all=function(e,n){var r=0,i=!0;function o(t){i=i&&t,++r===e.length&&n(i)}Et(e,function(t){t.done(o)})},o.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:A,getPromise:function(){var t;return this.promise||((t=this).promise=e(function(e,n){t.done(function(t){(!1===t?n:e)()})})),this.promise},then:function(t,e){return this.getPromise().then(t,e)},catch:function(t){return this.getPromise().catch(t)},finally:function(t){return this.getPromise().finally(t)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(t){var e=this;0===e._state&&(e._state=1,e._tick(function(){e._resolve(t)}))},_resolve:function(e){2!==this._state&&(Et(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},o}]}function Sn(){this.$get=["$$rAF","$q","$$AnimateRunner",function(a,t,s){return function(t,e){var n=e||{};(n=n.$$prepared?n:X(n)).cleanupStyles&&(n.from=n.to=null),n.from&&(t.css(n.from),n.from=null);var r,i=new s;return{start:o,end:o};function o(){return a(function(){n.addClass&&(t.addClass(n.addClass),n.addClass=null),n.removeClass&&(t.removeClass(n.removeClass),n.removeClass=null),n.to&&(t.css(n.to),n.to=null),r||i.complete(),r=!0}),i}}}]}var Tn=["$provide",function(r){var i=this,e=null,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(t,e){if(t&&"."!==t.charAt(0))throw gn("notcsel","Expecting class selector starting with '.' got '{0}'.",t);var n=t+"-animation";i.$$registeredAnimations[t.substr(1)]=n,r.factory(n,e)},this.customFilter=function(t){return n=1===arguments.length?kt(t)?t:null:n},this.classNameFilter=function(t){if(1===arguments.length&&((e=t instanceof RegExp?t:null)&&new RegExp("[(\\s|\\/)]"+vn+"[(\\s|\\/)]").test(e.toString())))throw e=null,gn("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',vn);return e},this.$get=["$$animateQueue",function(o){function i(t,e,n){var r;(n=!n||!(r=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===mn)return n}}(n))||r.parentNode||r.previousElementSibling?n:null)?n.after(t):e.prepend(t)}return{on:o.on,off:o.off,pin:o.pin,enabled:o.enabled,cancel:function(t){t.cancel&&t.cancel()},enter:function(t,e,n,r){return e=e&&wt(e),n=n&&wt(n),i(t,e=e||n.parent(),n),o.push(t,"enter",bn(r))},move:function(t,e,n,r){return e=e&&wt(e),n=n&&wt(n),i(t,e=e||n.parent(),n),o.push(t,"move",bn(r))},leave:function(t,e){return o.push(t,"leave",bn(e),function(){t.remove()})},addClass:function(t,e,n){return(n=bn(n)).addClass=yn(n.addclass,e),o.push(t,"addClass",n)},removeClass:function(t,e,n){return(n=bn(n)).removeClass=yn(n.removeClass,e),o.push(t,"removeClass",n)},setClass:function(t,e,n,r){return(r=bn(r)).addClass=yn(r.addClass,e),r.removeClass=yn(r.removeClass,n),o.push(t,"setClass",r)},animate:function(t,e,n,r,i){return(i=bn(i)).from=i.from?xt(i.from,e):e,i.to=i.to?xt(i.to,n):n,i.tempClasse
1s=yn(i.tempClasses,r=r||"ng-inline-animate"),o.push(t,"animate",i)}}}]}];function _n(o,t,e,a,n){var s=this,u=o.location,l=o.history,i=o.setTimeout,r=o.clearTimeout,c={},p=n(e);s.isMock=!1,s.$$completeOutstandingRequest=p.completeTask,s.$$incOutstandingRequestCount=p.incTaskCount,s.notifyWhenNoOutstandingRequests=p.notifyWhenNoPendingTasks;var d,h,f=u.href,g=t.find("base"),m=null,v=a.history?function(){try{return l.state}catch(t){}}:A,y=(E(),s.url=function(t,e,n){var r,i;return St(n)&&(n=null),u!==o.location&&(u=o.location),l!==o.history&&(l=o.history),t?(r=h===n,t=O(t).href,(f!==t||a.history&&!r)&&(i=f&&xr(f)===xr(t),f=t,h=n,!a.history||i&&r?(i||(m=t),e?u.replace(t):i?u.hash=-1===(i=(r=t).indexOf("#"))?"":r.substr(i):u.href=t,u.href!==t&&(m=t)):(l[e?"replaceState":"pushState"](n,"",t),E()),m=m&&t),s):(m||u.href).replace(/#$/,"")},s.state=function(){return d},[]),b=!1;function w(){m=null,x()}var $=null;function E(){Ot(d=St(d=v())?null:d,$)&&(d=$),h=$=d}function x(){var t=h;E(),f===s.url()&&t===d||(f=s.url(),h=d,Et(y,function(t){t(s.url(),d)}))}s.onUrlChange=function(t){return b||(a.history&&wt(o).on("popstate",w),wt(o).on("hashchange",w),b=!0),y.push(t),t},s.$$applicationDestroyed=function(){wt(o).off("hashchange popstate",w)},s.$$checkUrlChange=x,s.baseHref=function(){var t=g.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},s.defer=function(t,e,n){var r;return e=e||0,n=n||p.DEFAULT_TASK_TYPE,p.incTaskCount(n),r=i(function(){delete c[r],p.completeTask(t,n)},e),c[r]=n,r},s.defer.cancel=function(t){var e;return!!c.hasOwnProperty(t)&&(e=c[t],delete c[t],r(t),p.completeTask(A,e),!0)}}function Cn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(t,e,n,r,i){return new _n(t,r,e,n,i)}]}function kn(){this.$get=function(){var p={};function t(t,e){if(t in p)throw x("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var n=0,r=xt({},e,{id:t}),i=Rt(),o=e&&e.capacity||Number.MAX_VALUE,a=Rt(),s=null,u=null;return p[t]={put:function(t,e){if(!St(e))return o<Number.MAX_VALUE&&l(a[t]||(a[t]={key:t})),t in i||n++,i[t]=e,o<n&&this.remove(u.key),e},get:function(t){if(o<Number.MAX_VALUE){var e=a[t];if(!e)return;l(e)}return i[t]},remove:function(t){if(o<Number.MAX_VALUE){var e=a[t];if(!e)return;e===s&&(s=e.p),e===u&&(u=e.n),c(e.n,e.p),delete a[t]}t in i&&(delete i[t],n--)},removeAll:function(){i=Rt(),n=0,a=Rt(),s=u=null},destroy:function(){a=r=i=null,delete p[t]},info:function(){return xt({},r,{size:n})}};function l(t){t!==s&&(u?u===t&&(u=t.n):u=t,c(t.n,t.p),c(t,s),(s=t).n=null)}function c(t,e){t!==e&&(t&&(t.p=e),e)&&(e.n=t)}}return t.info=function(){var n={};return Et(p,function(t,e){n[e]=t.info()}),n},t.get=function(t){return p[t]},t}}function An(){this.$get=["$cacheFactory",function(t){return t("templates")}]}var Lt=x("$compile");var Dn=new function(){};function On(i,e){var q={},H="Directive",ft=/^\s*directive:\s*([\w-]+)\s+(.*)$/,gt=/(([\w-]+)(?::([^;]+))?;?)/,mt=function(t){for(var e={},n=t.split(","),r=0;r<n.length;r++)e[n[r]]=!0;return e}("ngSrc,ngSrcset,src,srcset"),p=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,vt=/^(on[a-z]+|formaction)$/,s=Rt();function h(t,r,i){var o=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,a=Rt();return Et(t,function(t,e){if((t=t.trim())in s)a[e]=s[t];else{var n=t.match(o);if(!n)throw Lt("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",r,e,t,i?"controller bindings definition":"isolate scope definition");a[e]={mode:n[1][0],collection:"*"===n[2],optional:"?"===n[3],attrName:n[4]||e},n[4]&&(s[t]=a[e])}}),a}this.directive=function t(u,e){if(zt(u,"name"),Yt(u,"directive"),_t(u)){var n=u,r=n.charAt(0);if(!r||r!==C(r))throw Lt("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",n);if(n!==n.trim())throw Lt("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",n);zt(e,"directiveFactory"),q.hasOwnProperty(u)||(q[u]=[],i.factory(u+H,["$injector","$exceptionHandler",function(o,a){var s=[];return Et(q[u],function(t,e){try{var n=o.invoke(t);kt(n)?n={compile:_(n)}:!n.compile&&n.link&&(n.compile=_(n.link)),n.priority=n.priority||0,n.index=e,n.name=n.name||u,
1n.require=(!Ct(i=(r=n).require||r.controller&&r.name)&&Tt(i)&&Et(i,function(t,e){var n=t.match(p);t.substring(n[0].length)||(i[e]=n[0]+e)}),i),n.restrict=function(t,e){if(!t||_t(t)&&/[EACM]/.test(t))return t||"EA";throw Lt("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e)}(n.restrict,u),n.$$moduleName=t.$$moduleName,s.push(n)}catch(t){a(t)}var r,i}),s}])),q[u].push(e)}else Et(u,P(t));return this},this.component=function t(e,i){var o;return _t(e)?(o=i.controller||function(){},Et(i,function(t,e){"$"===e.charAt(0)&&(n[e]=t,kt(o))&&(o[e]=t)}),n.$inject=["$injector"],this.directive(e,n)):(Et(e,P(qt(this,t))),this);function n(r){function t(n){return kt(n)||Ct(n)?function(t,e){return r.invoke(n,this,{$element:t,$attrs:e})}:n}var e=i.template||i.templateUrl?i.template:"",n={controller:o,controllerAs:function(t,e){if(e&&_t(e))return e;if(_t(t)){e=Un.exec(t);if(e)return e[3]}}(i.controller)||i.controllerAs||"$ctrl",template:t(e),templateUrl:t(i.templateUrl),transclude:i.transclude,scope:{},bindToController:i.bindings||{},restrict:"E",require:i.require};return Et(i,function(t,e){"$"===e.charAt(0)&&(n[e]=t)}),n}},this.aHrefSanitizationTrustedUrlList=function(t){return D(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(t){this.aHrefSanitizationTrustedUrlList=t}}),this.imgSrcSanitizationTrustedUrlList=function(t){return D(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(t){this.imgSrcSanitizationTrustedUrlList=t}});var c=!0,d=!(this.debugInfoEnabled=function(t){return D(t)?(c=t,this):c}),f=(this.strictComponentBindingsEnabled=function(t){return D(t)?(d=t,this):d},10),g=(this.onChangesTtl=function(t){return arguments.length?(f=t,this):f},!0),m=(this.commentDirectivesEnabled=function(t){return arguments.length?(g=t,this):g},!0),yt=(this.cssClassDirectivesEnabled=function(t){return arguments.length?(m=t,this):m},Rt());function t(e,t){Et(t,function(t){yt[t.toLowerCase()]=e})}this.addPropertySecurityContext=function(t,e,n){var r=t.toLowerCase()+"|"+e.toLowerCase();if(r in yt&&yt[r]!==n)throw Lt("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,yt[r],n);return yt[r]=n,this},t(l.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(l.CSS,["*|style"]),t(l.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(l.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(l.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(O,R,W,G,L,ht,I,M,r){var o,l=/^\w/,s=bt.document.createElement("div"),N=g,F=m,t=f;function a(){try{if(!--t)throw o=void 0,Lt("infchng","{0} $onChanges() iterations reached. Aborting!\n",f);I.$apply(function(){for(var t=0,e=o.length;t<e;++t)try{o[t]()}catch(t){W(t)}o=void 0})}finally{t++}}function u(t,e){if(!t)return t;if(!_t(t))throw Lt("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",e=At(t),t=/\s/.test(e)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=e.split(t),i=Math.floor(r.length/2),o=0;o<i;o++)var a=2*o,n=(n+=M.getTrustedMediaUrl(At(r[a])))+(" "+At(r[1+a]));e=At(r[2*o]).split(/\s/);return n+=M.getTrustedMediaUrl(At(e[0])),2===e.length&&(n+=" "+At(e[1])),n}function z(t,e){if(e)for(var n,r=Object.keys(e),i=0,o=r.length;i<o;i++)this[n=r[i]]=e[n];else this.$attr={};this.$$element=t}function K(t,e){try{t.addClass(e)}catch(t){}}z.prototype={$normalize:Mn,$addClass:function(t){t&&0<t.length&&r.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&r.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Pn(t,e),n=(n&&n.length&&r.addClass(this.$$element,n),Pn(e,t));n&&n.length&&r.removeClass(this.$$element,n)},$set:function(t,e,n,r){var i=ze(this.$$element[0],t),o=Ge[t],a=t,r=(i?(this.$$element.prop(t,e),r=i):o&&(this[o]=e,a=o),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Wt(t,"-")),"img"===Dt(this.$$element)&&"srcset"===t&&(this[t]=e=u(e,"$set('srcset', value)")),!1!==n&&(null===e||St(e)?this.$$element.removeAttr(r):l.test(r)?i&&!1===e?this.$$element.removeAttr(r):this.$$element.attr(r,e):(o=this.$$element[0],t=r,n=e,s.innerHTML="<span "+t+">",t=s.firstChild.attributes,i=t[0],t.removeNamedItem(i.name),i.value=n,o.attributes.setNamedItem(i))),this.$$observers);r&&Et(r[a],function(t){try{t(e)}catch(t){W(t)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=Rt()),i=r[t]||(r[t]=[]);return i.push(e),I.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(t)||St(n[t])||e(n[t])}),function(){jt(i,e)}}};var e=R.startSymbol(),n=R.endSymbol(),Y="{{"===e&&"}}"===n?Pt:function(t){return t.replace(/\{\{/g,e).replace(/}}/g,n)},U=/^ng(Attr|Prop|On)([A-Z].*)$/,j=/^(.+)Start$/;return X.$$addBindingInfo=c?function(t,e){var n=t.data("$binding")||[];Ct(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:A,X.$$addBindingClass=c?function(t){K(t,"ng-binding")}:A,X.$$addScopeInfo=c?function(t,e,n,r){t.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:A,X.$$addScopeClass=c?function(t,e){K(t,e?"ng-isolate-scope":"ng-scope")}:A,X.$$createComment=function(t,e){var n="";return c&&(n=" "+(t||"")+": ",e)&&(n+=e+" "),bt.document.createComment(n)},X;function X(s,t,e,n,u){var l=Q(s=s instanceof wt?s:wt(s),t,s,e,n,u),c=(X.$$addScopeClass(s),null);return function(t,e,n){if(!s)throw Lt("multilink","This element has already been linked.");zt(t,"scope"),u&&u.needsNewScope&&(t=t.$parent.$new());var r,i=(n=n||{}).parentBoundTranscludeFn,o=n.transcludeControllers,n=n.futureParentElement;
1if(i&&i.$$boundTransclude&&(i=i.$$boundTransclude),r="html"!==(c=c||function(t){t=t&&t[0];return t&&"foreignobject"!==Dt(t)&&v.call(t).match(/SVG/)?"svg":"html"}(n))?wt(ut(c,wt("<div></div>").append(s).html())):e?qe.clone.call(s):s,o)for(var a in o)r.data("$"+a+"Controller",o[a].instance);return X.$$addScopeInfo(r,t),e&&e(r,t),l&&l(t,r,r,i),e||(s=l=null),r}}function Q(t,f,e,n,r,i){for(var o,a,s,g,m=[],u=Ct(t)||t instanceof wt,l=0;l<t.length;l++){if(a=new z,11===It){c=y=v=h=d=p=void 0;var c,p=t,d=l,h=u,v=p[d],y=v.parentNode;if(v.nodeType===Zt)for(;;){if(!(c=y?v.nextSibling:p[d+1])||c.nodeType!==Zt)break;v.nodeValue=v.nodeValue+c.nodeValue,c.parentNode&&c.parentNode.removeChild(c),h&&c===p[d+1]&&p.splice(d+1,1)}}(o=(o=Z(t[l],[],a,0===l?n:void 0,r)).length?rt(o,t[l],a,f,e,null,[],[],i):null)&&o.scope&&X.$$addScopeClass(a.$$element),a=o&&o.terminal||!(a=t[l].childNodes)||!a.length?null:Q(a,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:f),(o||a)&&(m.push(l,o,a),s=!0,g=g||o),i=null}return s?function(t,e,n,r){var i,o,a,s,u,l,c,p,d;if(g){var h=e.length;for(d=new Array(h),u=0;u<m.length;u+=3)d[c=m[u]]=e[c]}else d=e;for(u=0,l=m.length;u<l;)a=d[m[u++]],i=m[u++],o=m[u++],i?(i.scope?(s=t.$new(),X.$$addScopeInfo(wt(a),s)):s=t,p=i.transcludeOnThisElement?J(t,i.transclude,r):!i.templateOnThisElement&&r?r:!r&&f?J(t,f):null,i(o,s,a,n,p)):o&&o(t,a.childNodes,void 0,r)}:null}function J(o,a,s){function t(t,e,n,r,i){return t||((t=o.$new(!1,i)).$$transcluded=!0),a(t,e,{parentBoundTranscludeFn:s,transcludeControllers:n,futureParentElement:r})}var e,n=t.$$slots=Rt();for(e in a.$$slots)a.$$slots[e]?n[e]=J(o,a.$$slots[e],s):n[e]=null;return t}function Z(t,e,n,r,i){var o,a,s,u,l=t.nodeType,c=n.$attr;switch(l){case Jt:s=Dt(t),P(e,Mn(s),"E",r,i);for(var p=t.attributes,d=0,h=p&&p.length;d<h;d++){var f,g,m,v=!1,y=!1,b=!1,w=!1,$=!1,E=(g=p[d]).name,x=g.value;(f=(m=Mn(E.toLowerCase())).match(U))?(b="Attr"===f[1],w="Prop"===f[1],$="On"===f[1],E=E.replace(Ln,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,function(t,e){return e.toUpperCase()})):(f=m.match(j))&&function(t){if(q.hasOwnProperty(t))for(var e=O.get(t+H),n=0,r=e.length;n<r;n++)if(e[n].multiElement)return 1;return}(f[1])&&(y=(v=E).substr(0,E.length-5)+"end",E=E.substr(0,E.length-6)),w||$?(n[m]=x,c[m]=g.name,w?function(t,e,n,o){if(vt.test(o))throw Lt("nodomevents","Property bindings for HTML DOM event properties are disallowed");var t=Dt(t),r=function(t,e){e=e.toLowerCase();return yt[t+"|"+e]||yt["*|"+e]}(t,o),a=Pt;"srcset"!==o||"img"!==t&&"source"!==t?r&&(a=M.getTrusted.bind(M,r)):a=V;e.push({priority:100,compile:function(t,e){var r=L(e[n]),i=L(e[n],function(t){return M.valueOf(t)});return{pre:function(e,n){function t(){var t=r(e);n[0][o]=a(t)}t(),e.$watch(i,t)}}}})}(t,e,m,E):(f=m,$=E,e.push(Wo(L,I,W,f,$,!1)))):(c[m=Mn(E.toLowerCase())]=E,!b&&n.hasOwnProperty(m)||(n[m]=x,ze(t,m)&&(n[m]=!0)),function(t,e,o,a,n){var r=Dt(t),s=function(t,e){if("srcdoc"===e)return M.HTML;return"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?M.RESOURCE_URL:M.MEDIA_URL:"xlinkHref"===e?"image"===t?M.MEDIA_URL:"a"===t?M.URL:M.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?M.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:M.URL}(r,a),i=!n,u=mt[a]||n,l=R(o,i,s,u);if(l){if("multiple"===a&&"select"===r)throw Lt("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Ht(t));if(vt.test(a))throw Lt("nodomevents","Interpolations for HTML DOM event attributes are disallowed");e.push({priority:100,compile:function(){return{pre:function(t,e,n){var r=n.$$observers||(n.$$observers=Rt()),i=n[a];i!==o&&(l=i&&R(i,!0,s,u),o=i),l&&(n[a]=l(t),(r[a]||(r[a]=[])).$$inter=!0,(n.$$observers&&n.$$observers[a].$$scope||t).$watch(l,function(t,e){"class"===a&&t!==e?n.$updateClass(t,e):n.$set(a,t)}))}}}})}}(t,e,x,m,b),P(e,m,"A",r,i,v,y))}if("input"===s&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),F&&(_t(a=Tt(a=t.className)?a.animVal:a)&&""!==a))for(;o=gt.exec(a);)m=Mn(o[2]),P(e,m,"C",r,i)&&(n[m]=At(o[3])),a=a.substr(o.index+o[0].length);break;case Zt:s=e,S=t.nodeValue,(u=R(S,!0))&&s.push({priority:0,compile:function(t){var t=t.parent(),r=!!t.length;return r&&X.$$addBindingClass(t),function(t,e){var n=e.parent();r||X.$$addBindingClass(n),X.$$addBindingInfo(n,u.expressions),t.$watch(u,function(t){e[0].nodeValue=t})}}});break;case te:if(N){var S=t,T=e,_=n,C=r,k=i;try{var A,D=ft.exec(S.nodeValue);D&&(A=Mn(D[1]),P(T,A,"M",C,k))&&(_[A]=At(D[2]))}catch(t){}}}return e.sort(B),e}function tt(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Lt("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n)}
1while(t.nodeType===Jt&&(t.hasAttribute(e)&&i++,t.hasAttribute(n))&&i--,r.push(t),t=t.nextSibling,0<i)}else r.push(t);return wt(r)}function et(o,a,s){return function(t,e,n,r,i){return e=tt(e[0],a,s),o(t,e,n,r,i)}}function nt(t,e,n,r,i,o){var a;return t?X(e,n,r,i,o):function(){return a||(a=X(e,n,r,i,o),e=n=o=null),a.apply(this,arguments)}}function rt(t,w,$,e,n,P,E,x,r){r=r||{};for(var i,o,a=-Number.MAX_VALUE,S=r.newScopeDirective,T=r.controllerDirectives,_=r.newIsolateScopeDirective,C=r.templateDirective,s=r.nonTlbTranscludeDirective,u=!1,l=!1,k=r.hasElementTranscludeDirective,c=$.$$element=wt(w),p=P,d=e,N=!1,h=!1,f=0,g=t.length;f<g;f++){var m,v=(m=t[f]).$$start,y=m.$$end;if(v&&(c=tt(w,v,y)),O=void 0,a>m.priority)break;if((o=m.scope)&&(m.templateUrl||(Tt(o)?(st("new/isolated scope",_||S,m,c),_=m):st("new/isolated scope",_,m,c)),S=S||m),i=m.name,!N&&(m.replace&&(m.templateUrl||m.template)||m.transclude&&!m.$$tlb)){for(var b,F=f+1;b=t[F++];)if(b.transclude&&!b.$$tlb||b.replace&&(b.templateUrl||b.template)){h=!0;break}N=!0}if(!m.templateUrl&&m.controller&&(T=T||Rt(),st("'"+i+"' controller",T[i],m,c),T[i]=m),o=m.transclude)if(u=!0,m.$$tlb||(st("transclusion",s,m,c),s=m),"element"===o)k=!0,a=m.priority,O=c,c=$.$$element=wt(X.$$createComment(i,$[i])),w=c[0],lt(n,Vt(O),w),d=nt(h,O,e,a,p&&p.name,{nonTlbTranscludeDirective:s});else{var A=Rt();if(Tt(o)){var D,U,O=bt.document.createDocumentFragment(),j=Rt(),R=Rt();for(D in Et(o,function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,j[t]=e,A[e]=null,R[e]=n}),Et(c.contents(),function(t){var e=j[Mn(Dt(t))];(e?(R[e]=!0,A[e]=A[e]||bt.document.createDocumentFragment(),A[e]):O).appendChild(t)}),Et(R,function(t,e){if(!t)throw Lt("reqslot","Required transclusion slot `{0}` was not filled.",e)}),A)A[D]&&(U=wt(A[D].childNodes),A[D]=nt(h,U,e));O=wt(O.childNodes)}else O=wt(_e(w)).contents();c.empty(),(d=nt(h,O,e,void 0,void 0,{needsNewScope:m.$$isolateScope||m.$$newScope})).$$slots=A}if(m.template)if(l=!0,st("template",C,m,c),o=kt((C=m).template)?m.template(c,$):m.template,o=Y(o),m.replace){if(p=m,O=Ee(o)?[]:Nn(ut(m.templateNamespace,At(o))),w=O[0],1!==O.length||w.nodeType!==Jt)throw Lt("tplrt","Template for directive '{0}' must have exactly one root element. {1}",i,"");lt(n,c,w);var B={$attr:{}},V=Z(w,[],B),q=t.splice(f+1,t.length-(f+1));(_||S)&&ot(V,_,S),t=t.concat(V).concat(q),at($,B),g=t.length}else c.html(o);if(m.templateUrl)l=!0,st("template",C,m,c),(C=m).replace&&(p=m),M=function(c,p,d,h,f,g,m,v){var y,b,w=[],$=p[0],E=c.shift(),x=Mt(E,{templateUrl:null,transclude:null,replace:null,$$originalDirective:E}),S=kt(E.templateUrl)?E.templateUrl(p,d):E.templateUrl,T=E.templateNamespace;return p.empty(),G(S).then(function(t){var n,e;if(t=Y(t),E.replace){if(e=Ee(t)?[]:Nn(ut(T,At(t))),n=e[0],1!==e.length||n.nodeType!==Jt)throw Lt("tplrt","Template for directive '{0}' must have exactly one root element. {1}",E.name,S);e={$attr:{}},lt(h,p,n);var r=Z(n,[],e);Tt(E.scope)&&ot(r,!0),c=r.concat(c),at(d,e)}else n=$,p.html(t);for(c.unshift(x),y=rt(c,n,d,f,p,E,g,m,v),Et(h,function(t,e){t===n&&(h[e]=p[0])}),b=Q(p[0].childNodes,f);w.length;){var i,o=w.shift(),a=w.shift(),s=w.shift(),u=w.shift(),l=p[0];o.$$destroyed||(a!==$&&(i=a.className,v.hasElementTranscludeDirective&&E.replace||(l=_e(n)),lt(s,wt(a),l),K(wt(l),i)),s=y.transcludeOnThisElement?J(o,y.transclude,u):u,y(b,o,l,h,s))}w=null}).catch(function(t){Nt(t)&&W(t)}),function(t,e,n,r,i){var o=i;e.$$destroyed||(w?w.push(e,n,r,o):(y.transcludeOnThisElement&&(o=J(e,y.transclude,i)),y(b,e,n,r,o)))}}(t.splice(f,t.length-f),c,$,n,u&&d,E,x,{controllerDirectives:T,newScopeDirective:S!==m&&S,newIsolateScopeDirective:_,templateDirective:C,nonTlbTranscludeDirective:s}),g=t.length;else if(m.compile)try{var L=m.compile(c,$,d),I=m.$$originalDirective||m;kt(L)?H(null,qt(I,L),v,y):L&&H(qt(I,L.pre),qt(I,L.post),v,y)}catch(t){W(t,Ht(c))}m.terminal&&(M.terminal=!0,a=Math.max(a,m.priority))}return M.scope=S&&!0===S.scope,M.transcludeOnThisElement=u,M.templateOnThisElement=l,M.transclude=d,r.hasElementTranscludeDirective=k,M;function H(t,e,n,r){t&&((t=n?et(t,n,r):t).require=m.require,t.directiveName=i,_!==m&&!m.$$isolateScope||(t=ct(t,{isolateScope:!0})),E.push(t)),e&&((e=n?et(e,n,r):e).require=m.require,e.directiveName=i,_!==m&&!m.$$isolateScope||(e=ct(e,{isolateScope:!0})),x.push(e))}function M(t,e,n,r,a){var i,o,s,u,l,c,p,d,h,f,g;for(g in w===n?d=(h=$).$$element:h=new z(d=wt(n),$),l=e,_?u=e.$new(!0):S&&(l=e.$parent),a&&((p=function(t,e,n,r){var i;Ft(t)||(r=n,n=e,e=t,t=void 0);k&&(i=c);n=n||(k?d.parent():d);{if(!r)return a(t,e,i,n,b);var o=a.$$slots[r];if(o)return o(t,e,i,n,b);if(St(o))throw Lt("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Ht(d))}}
1).$$boundTransclude=a,p.isSlotFilled=function(t){return!!a.$$slots[t]}),T&&(c=function(t,e,n,r,i,o,a){var s,u=Rt();for(s in r){var l=r[s],c={$scope:l===a||l.$$isolateScope?i:o,$element:t,$attrs:e,$transclude:n},p=l.controller,p=("@"===p&&(p=e[l.name]),ht(p,c,!0,l.controllerAs));u[l.name]=p,t.data("$"+l.name+"Controller",p.instance)}return u}(d,h,p,T,u,e,_)),_&&(X.$$addScopeInfo(d,u,!0,!(C&&(C===_||C===_.$$originalDirective))),X.$$addScopeClass(d,!0),u.$$isolateBindings=_.$$isolateBindings,(f=dt(e,h,u,u.$$isolateBindings,_)).removeWatches)&&u.$on("$destroy",f.removeWatches),c){var m=T[g],v=c[g],y=m.$$bindings.bindToController;v.instance=v(),d.data("$"+m.name+"Controller",v.instance),v.bindingInfo=dt(l,h,v.instance,y,m)}for(Et(T,function(t,e){var n=t.require;t.bindToController&&!Ct(n)&&Tt(n)&&xt(c[e].instance,it(e,n,d,c))}),Et(c,function(t){var e=t.instance;if(kt(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){W(t)}if(kt(e.$onInit))try{e.$onInit()}catch(t){W(t)}kt(e.$doCheck)&&(l.$watch(function(){e.$doCheck()}),e.$doCheck()),kt(e.$onDestroy)&&l.$on("$destroy",function(){e.$onDestroy()})}),i=0,o=E.length;i<o;i++)pt(s=E[i],s.isolateScope?u:e,d,h,s.require&&it(s.directiveName,s.require,d,c),p);var b=e;for(_&&(_.template||null===_.templateUrl)&&(b=u),t&&t(b,n.childNodes,void 0,a),i=x.length-1;0<=i;i--)pt(s=x[i],s.isolateScope?u:e,d,h,s.require&&it(s.directiveName,s.require,d,c),p);Et(c,function(t){t=t.instance;kt(t.$postLink)&&t.$postLink()})}}function it(n,t,r,i){if(_t(t)){var e,o,a=t.match(p),s=t.substring(a[0].length),u=a[1]||a[3],a="?"===a[2];if("^^"===u?r=r.parent():o=(o=i&&i[s])&&o.instance,o||(e="$"+s+"Controller",o="^^"===u&&r[0]&&r[0].nodeType===ee?null:u?r.inheritedData(e):r.data(e)),!o&&!a)throw Lt("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,n)}else if(Ct(t)){o=[];for(var l=0,c=t.length;l<c;l++)o[l]=it(n,t[l],r,i)}else Tt(t)&&(o={},Et(t,function(t,e){o[e]=it(n,t,r,i)}));return o||null}function ot(t,e,n){for(var r=0,i=t.length;r<i;r++)t[r]=Mt(t[r],{$$isolateScope:e,$$newScope:n})}function P(t,e,n,r,i,o,a){if(e!==i){var s=null;if(q.hasOwnProperty(e))for(var u=O.get(e+H),l=0,c=u.length;l<c;l++){var p,d=u[l];(St(r)||r>d.priority)&&-1!==d.restrict.indexOf(n)&&((d=o?Mt(d,{$$start:o,$$end:a}):d).$$bindings||(p=d.$$bindings=function(t,e){var n={isolateScope:null,bindToController:null};if(Tt(t.scope)&&(!0===t.bindToController?(n.bindToController=h(t.scope,e,!0),n.isolateScope={}):n.isolateScope=h(t.scope,e,!1)),Tt(t.bindToController)&&(n.bindToController=h(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw Lt("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}(d,d.name),Tt(p.isolateScope)&&(d.$$isolateBindings=p.isolateScope)),t.push(d),s=d)}return s}}function at(n,r){var i=r.$attr,o=n.$attr;Et(n,function(t,e){"$"!==e.charAt(0)&&(r[e]&&r[e]!==t&&(t.length?t+=("style"===e?";":" ")+r[e]:t=r[e]),n.$set(e,t,!0,i[e]))}),Et(r,function(t,e){n.hasOwnProperty(e)||"$"===e.charAt(0)||(n[e]=t,"class"!==e&&"style"!==e&&(o[e]=i[e]))})}function B(t,e){var n=e.priority-t.priority;return 0!=n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function st(t,e,n,r){function i(t){return t?" (module: "+t+")":""}if(e)throw Lt("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Ht(r))}function ut(t,e){switch(t=C(t||"html")){case"svg":case"math":var n=bt.document.createElement("div");return n.innerHTML="<"+t+">"+e+"</"+t+">",n.childNodes[0].childNodes;default:return e}}function V(t){return u(M.valueOf(t),"ng-prop-srcset")}function lt(t,e,n){var r,i=e[0],o=e.length,a=i.parentNode;if(t)for(p=0,r=t.length;p<r;p++)if(t[p]===i){t[p++]=n;for(var s=p,u=s+o-1,l=t.length;s<l;s++,u++)u<l?t[s]=t[u]:delete t[s];t.length-=o-1,t.context===i&&(t.context=n);break}a&&a.replaceChild(n,i);for(var c=bt.document.createDocumentFragment(),p=0;p<o;p++)c.appendChild(e[p]);for(wt.hasData(i)&&(wt.data(n,wt.data(i)),wt(i).off("$destroy")),wt.cleanData(c.querySelectorAll("*")),p=1;p<o;p++)delete e[p];e[0]=n,e.length=1}function ct(t,e){return xt(function(){return t.apply(null,arguments)},t,e)}function pt(t,e,n,r,i,o){try{t(e,n,r,i,o)}catch(t){W(t,Ht(n))}}function b(t,e){if(d)throw Lt("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function dt(d,h,f,t,g){var r,m=[],v={};function y(t,e,n){kt(f.$onChanges)&&!Bt(e,n)&&(o||(d.$$postDigest(a),o=[]),r||(r={},o.push(i)),r[t]&&(n=r[t].previousValue),r[t]=new Rn(n,e))}function i(){f.$onChanges(r),r=void 0}return Et(t,function(t,n){var e,r,i,o,a,s,u,l,c=t.attrName,p=t.optional;switch(t.mode){case"@":p||$t.call(h,c)||(b(c,g.name),f[n]=h[c]=void 0),e=h.$observe(c,function(t){var e;(_t(t)||Ut(t))&&(e=f[n],y(n,t,e),f[n]=t)}
1),h.$$observers[c].$$scope=d,_t(a=h[c])?f[n]=R(a)(d):Ut(a)&&(f[n]=a),v[n]=new Rn(Dn,f[n]),m.push(e);break;case"=":if(!$t.call(h,c)){if(p)break;b(c,g.name),h[c]=void 0}p&&!h[c]||(i=(r=L(h[c])).literal?Ot:Bt,o=r.assign||function(){throw a=f[n]=r(d),Lt("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",h[c],c,g.name)},a=f[n]=r(d),(s=function(t){return i(t,f[n])||(i(t,a)?o(d,t=f[n]):f[n]=t),a=t}).$stateful=!0,e=t.collection?d.$watchCollection(h[c],s):d.$watch(L(h[c],s),null,r.literal),m.push(e));break;case"<":if(!$t.call(h,c)){if(p)break;b(c,g.name),h[c]=void 0}p&&!h[c]||(u=(r=L(h[c])).literal,l=f[n]=r(d),v[n]=new Rn(Dn,f[n]),e=d[t.collection?"$watchCollection":"$watch"](r,function(t,e){if(e===t){if(e===l||u&&Ot(e,l))return;e=l}y(n,t,e),f[n]=t}),m.push(e));break;case"&":p||$t.call(h,c)||b(c,g.name),(r=h.hasOwnProperty(c)?L(h[c]):A)===A&&p||(f[n]=function(t){return r(d,t)})}}),{initialChanges:v,removeWatches:m.length&&function(){for(var t=0,e=m.length;t<e;++t)m[t]()}}}}]}function Rn(t,e){this.previousValue=t,this.currentValue=e}On.$inject=["$provide","$$sanitizeUriProvider"],Rn.prototype.isFirstChange=function(){return this.previousValue===Dn};var Ln=/^((?:x|data)[:\-_])/i,In=/[:\-_]+(.)/g;function Mn(t){return t.replace(Ln,"").replace(In,function(t,e,n){return n?e.toUpperCase():e})}function Pn(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue t;n+=(0<n.length?" ":"")+a}return n}function Nn(t){var e=(t=wt(t)).length;if(!(e<=1))for(;e--;){var n=t[e];(n.nodeType===te||n.nodeType===Zt&&""===n.nodeValue.trim())&&r.call(t,e,1)}return t}var Fn=x("$controller"),Un=/^(\S+)(\s+as\s+([\w$]+))?$/;function jn(){var l={};this.has=function(t){return l.hasOwnProperty(t)},this.register=function(t,e){Yt(t,"controller"),Tt(t)?xt(l,t):l[t]=e},this.$get=["$injector",function(s){return function(e,n,t,r){var i,o,a;if(t=!0===t,r&&_t(r)&&(o=r),_t(e)){if(!(r=e.match(Un)))throw Fn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(i=r[1],o=o||r[3],!(e=l.hasOwnProperty(i)?l[i]:function(t,e,n){if(!e)return t;for(var r,i=e.split("."),o=t,a=i.length,s=0;s<a;s++)r=i[s],t=t&&(o=t)[r];return!n&&kt(t)?qt(o,t):t}(n.$scope,i,!0)))throw Fn("ctrlreg","The controller with the name '{0}' is not registered.",i);Kt(e,i,!0)}return t?(r=(Ct(e)?e[e.length-1]:e).prototype,a=Object.create(r||null),o&&u(n,o,a,i||e.name),xt(function(){var t=s.invoke(e,a,n,i);return t!==a&&(Tt(t)||kt(t))&&(a=t,o)&&u(n,o,a,i||e.name),a},{instance:a,identifier:o})):(a=s.instantiate(e,n,i),o&&u(n,o,a,i||e.name),a)};function u(t,e,n,r){if(!t||!Tt(t.$scope))throw x("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}function Bn(){this.$get=["$window",function(t){return wt(t.document)}]}function Vn(){this.$get=["$document","$rootScope",function(t,e){var n=t[0],r=n&&n.hidden;function i(){r=n.hidden}return t.on("visibilitychange",i),e.$on("$destroy",function(){t.off("visibilitychange",i)}),function(){return r}}]}function qn(){this.$get=["$log",function(n){return function(t,e){n.error.apply(n,arguments)}}]}function Hn(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof wt&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]}var Wn="application/json",Gn={"Content-Type":Wn+";charset=utf-8"},zn=/^\[|^\{(?!\{)/,Kn={"[":/]$/,"{":/}$/},Yn=/^\)]\}',?\n/,Xn=x("$http");function Qn(t){return Tt(t)?E(t)?t.toISOString():et(t):t}function Jn(){this.$get=function(){return function(t){var n;return t?(n=[],I(t,function(t,e){null===t||St(t)||kt(t)||(Ct(t)?Et(t,function(t){n.push(o(e)+"="+o(Qn(t)))}):n.push(o(e)+"="+o(Qn(t))))}),n.join("&")):""}}}function Zn(){this.$get=function(){return function(t){var e;return t?(e=[],function n(t,r,i){Ct(t)?Et(t,function(t,e){n(t,r+"["+(Tt(t)?e:"")+"]")}):Tt(t)&&!E(t)?I(t,function(t,e){n(t,r+(i?"":"[")+e+(i?"":"]"))}):(kt(t)&&(t=t()),e.push(o(r)+"="+(null==t?"":o(Qn(t)))))}(t,"",!0),e.join("&")):""}}}function tr(e,n){if(_t(e)){var t=e.replace(Yn,"").trim();if(t){n=n("Content-Type"),n=n&&0===n.indexOf(Wn);if(n||(i=(r=t).match(zn))&&Kn[i[0]].test(r))try{e=nt(t)}catch(t){if(n)throw Xn("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var r,i;return e}function er(t){var e,n=Rt();function r(t,e){t&&(n[t]=n[t]?n[t]+", "+e:e)}return _t(t)?Et(t.split("\n"),function(t){e=t.indexOf(":"),r(C(At(t.substr(0,e))),At(t.substr(e+1)))}):Tt(t)&&Et(t,function(t,e){r(C(e),At(t))}),n}function nr(e){var n;return function(t){return n=n||er(e),t?void 0===(t=n[C(t)])?null:t:n}}function rr(e,n,r,t){return kt(t)?t(e,n,r):(Et(t,function(t){e=t(e,n,r)}),e)}function ir(t){return 200<=t&&t<300}function or(){var $=this.defaults={transformResponse:[tr],transformRequest:[function(t){return Tt(t)&&"[object File]"!==v.call(t)&&"[object Blob]"!==v.call(t)&&"[object FormData]"!==v.call(t)?et(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:S(Gn),put:S(Gn),patch:S(Gn)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},E=!1,n=(this.useApplyAsync=function(t){return D(t)?(E=!!t,this):E},this.interceptors=[]),r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins}
1,set:function(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(s,h,f,t,g,m,u,v){var e,y=t("$http"),l=($.paramSerializer=_t($.paramSerializer)?u.get($.paramSerializer):$.paramSerializer,[]),b=(Et(n,function(t){l.unshift(_t(t)?u.get(t):u.invoke(t))}),e=[bi].concat(r.map(O)),function(t){t=O(t);return e.some($i.bind(null,t))});function w(t){if(!Tt(t))throw x("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);var n,e,r,i;if(_t(v.valueOf(t.url)))return(n=xt({method:"get",transformRequest:$.transformRequest,transformResponse:$.transformResponse,paramSerializer:$.paramSerializer,jsonpCallbackParam:$.jsonpCallbackParam},t)).headers=function(t){var e,n,r,i=$.headers,o=xt({},t.headers);t:for(e in i=xt({},i.common,i[C(t.method)])){for(r in n=C(e),o)if(C(r)===n)continue t;o[e]=i[e]}return function(t,n){var r,i={};return Et(t,function(t,e){kt(t)?null!=(r=t(n))&&(i[e]=r):i[e]=t}),i}(o,S(t))}(t),n.method=T(n.method),n.paramSerializer=_t(n.paramSerializer)?u.get(n.paramSerializer):n.paramSerializer,s.$$incOutstandingRequestCount("$http"),e=[],r=[],i=m.resolve(n),Et(l,function(t){(t.request||t.requestError)&&e.unshift(t.request,t.requestError),(t.response||t.responseError)&&r.push(t.response,t.responseError)}),i=o(i,e),(i=o(i=i.then(function(t){var n=t.headers,e=rr(t.data,nr(n),void 0,t.transformRequest);St(e)&&Et(n,function(t,e){"content-type"===C(e)&&delete n[e]});St(t.withCredentials)&&!St($.withCredentials)&&(t.withCredentials=$.withCredentials);return function(o,t){var a,e,s=m.defer(),n=s.promise,r=o.headers,i="jsonp"===C(o.method),u=o.url;i?u=v.getTrustedResourceUrl(u):_t(u)||(u=v.valueOf(u));u=function(t,e){0<e.length&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(u,o.paramSerializer(o.params)),i&&(u=function(n,r){var t=n.split("?");if(2<t.length)throw Xn("badjsonp",'Illegal use more than one "?", in url, "{1}"',n);return Et(ut(t[1]),function(t,e){if("JSON_CALLBACK"===t)throw Xn("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',n);if(e===r)throw Xn("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',r,n)}),n+=(-1===n.indexOf("?")?"?":"&")+r+"=JSON_CALLBACK"}(u,o.jsonpCallbackParam));w.pendingRequests.push(o),n.then(d,d),!o.cache&&!$.cache||!1===o.cache||"GET"!==o.method&&"JSONP"!==o.method||(a=Tt(o.cache)?o.cache:Tt($.cache)?$.cache:y);a&&(D(e=a.get(u))?W(e)?e.then(p,p):Ct(e)?c(e[1],e[0],S(e[2]),e[3],e[4]):c(e,200,{},"OK","complete"):a.put(u,n));St(e)&&((i=b(o.url)?f()[o.xsrfCookieName||$.xsrfCookieName]:void 0)&&(r[o.xsrfHeaderName||$.xsrfHeaderName]=i),h(o.method,u,t,function(t,e,n,r,i){a&&(ir(t)?a.put(u,[t,e,er(n),r,i]):a.remove(u));function o(){c(e,t,n,r,i)}E?g.$applyAsync(o):(o(),g.$$phase||g.$apply())},r,o.timeout,o.withCredentials,o.responseType,l(o.eventHandlers),l(o.uploadEventHandlers)));return n;function l(t){var e;if(t)return e={},Et(t,function(n,t){e[t]=function(t){function e(){n(t)}E?g.$applyAsync(e):g.$$phase?e():g.$apply(e)}}),e}function c(t,e,n,r,i){(ir(e=-1<=e?e:0)?s.resolve:s.reject)({data:t,status:e,headers:nr(n),config:o,statusText:r,xhrStatus:i})}function p(t){c(t.data,t.status,S(t.headers()),t.statusText,t.xhrStatus)}function d(){var t=w.pendingRequests.indexOf(o);-1!==t&&w.pendingRequests.splice(t,1)}}(t,e).then(a,a)}),r)).finally(function(){s.$$completeOutstandingRequest(A,"$http")});throw x("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",t.url);function o(t,e){for(var n=0,r=e.length;n<r;){var i=e[n++],o=e[n++];t=t.then(i,o)}return e.length=0,t}function a(t){var e=xt({},t);return e.data=rr(t.data,t.headers,t.status,n.transformResponse),ir(t.status)?e:m.reject(e)}}return w.pendingRequests=[],function(){Et(arguments,function(n){w[n]=function(t,e){return w(xt({},e||{},{method:n,url:t}))}})}("get","delete","head","jsonp"),function(){Et(arguments,function(r){w[r]=function(t,e,n){return w(xt({},n||{},{method:r,url:t,data:e}))}})}("post","put","patch"),w.defaults=$,w}]}function ar(){this.$get=function(){return function(){return new bt.XMLHttpRequest}}}function sr(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,r){return x=r,S=(E=t).defer,T=e,_=n[0],function(t,r,e,i,n,o,a,s,u,l){if(r=r||E.url(),"jsonp"===C(t))var c=T.createCallback(r),p=(g=c,m=function(t,e){var n=200===t&&T.getResponse(c);$(i,t,n,"",e,"complete"),T.removeCallback(c)},f=(f=r).replace("JSON_CALLBACK",g),v=_.createElement("script"),y=null,v.type="text/javascript",v.src=f,v.async=!0,y=function(t){v.removeEventListener("load",y),v.removeEventListener("error",y),_.body.removeChild(v),v=null;var e=-1,n="unknown";t&&(n=(t="load"!==t.type||T.wasCalled(g)?t:{type:"error"}).type,e="error"===t.type?404:200),m&&m(e,n)},v.addEventListener("load",y),v.addEventListener("error",y),_.body.appendChild(v),y);else{var d=x(t,r),h=!1;d.open(t,r,!0),Et(n,function(t,e){D(t)&&d.setRequestHeader(e,t)}),d.onload=function(){var t=d.statusText||"",e="response"in d?d.response:d.responseText,n=1223===d.status?204:d.status;0===n&&(n=e?200:"file"===O(r).protocol?404:0),$(i,n,e,d.getAllResponseHeaders(),t,"complete")};if(d.onerror=function(){$(i,-1,null,null,"","error")},d.ontimeout=function(){$(i,-1,null,null,"","timeout")},d.onabort=function(){$(i,-1,null,null,"",h?"timeout":"abort")},Et(u,function(t,e){d.addEventListener(e,t)}),Et(l,function(t,e){d.upload.addEventListener(e,t)}),a&&(d.withCredentials=!0),s)try{d.responseType=s}catch(t){if("json"!==s)throw t}d.send(St(e)?null:e)}var f,g,m,v,y,b;function w(t){h="timeout"===t,p&&p(),d&&d.abort()}function $(t,e,n,r,i,o){D(b)&&S.cancel(b),p=d=null,t(e,n,r,i,o)}0<o?b=S(function(){w("timeout")},o):W(o)&&o.then(function(){w(D(o.$$timeoutId)?"timeout":"abort")})};var E,x,S,T,_}]}var ur=b.$interpolateMinErr=x("$interpolate");function lr(){var S="{{",T="}}";this.startSymbol=function(t){return t?(S=t,this):S},this.endSymbol=function(t){return t?(T=t,this):T},this.$get=["$parse","$exceptionHandler","$sce",function(v,y,b){var w=S.length,$=T.length,e=new RegExp(S.replace(/./g,t),"g"),n=new RegExp(T.replace(/./g,t),"g");function t(t){return"\\\\\\"+t}function E(t){return t.replace(e,S).replace(n,T)}function x(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function r(i,t,r,o){var e,a=r===b.URL||r===b.MEDIA_URL;if(!i.length||-1===i.indexOf(S))return t?void 0:(e=E(i),(e=_(e=a?b.getTrusted(r,e):e)).exp=i,e.expressions=[],e.$$watchDelegate=x,e);o=!!o;for(var n,s,u=0,l=[],c=i.length,p=[],d=[];u<c;){if(-1===(s=i.indexOf(S,u))||-1===(n=i.indexOf(T,s+w))){u!==c&&p.push(E(i.substring(u)));break}u!==s&&p.push(E(i.substring(u,s))),s=i.substring(s+w,n),l.push(s),u=n+$,d.push(p.length),p.push("")}var h,f=1===p.length&&1===d.length,g=a&&f?void 0:function(t){try{return t=r&&!a?b.getTrusted(r,t):b.valueOf(t),o&&!D(t)?t:Qt(t)}catch(t){y(ur.interr(i,t))}},m=l.map(function(t){return v(t,g)});return!t||l.length?(h=function(t){for(var e=0,n=l.length;e<n;e++){if(o&&St(t[e]))return;p[d[e]]=t[e]}return a?b.getTrusted(r,f?p[0]:p.join("")):(r&&1<p.length&&ur.throwNoconcat(i),p.join(""))},xt(function(t){var e=0,n=l.length,r=new Array(n);try{for(;e<n;e++)r[e]=m[e](t);return h(r)}catch(t){y(ur.interr(i,t))}},{exp:i,expressions:l,$$watchDelegate:function(r,i){var o;return r.$watchGroup(m,function(t,e){var n=h(t);i.call(this,n,t!==e?o:n,r),o=n})}})):void 0}return r.startSymbol=function(){return S},r.endSymbol=function(){return T},r}]}ur.throwNoconcat=function(t){throw ur("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",t)},ur.interr=function(t,e){return ur("interr","Can't interpolate: {0}\n{1}",t,e.toString())};var cr=x("$interval");function pr(){this.$get=["$$intervalFactory","$window",function(t,r){function n(t){r.clearInterval(t),delete i[t]}var i={},t=t(function(t,e,n){t=r.setInterval(t,e);return i[t]=n,t},n);return t.cancel=function(t){if(!t)return!1;var e;if(t.hasOwnProperty("$$intervalId"))return!!i.hasOwnProperty(t.$$intervalId)&&(t=t.$$intervalId,ti((e=i[t]).promise),e.reject("canceled"),n(t),!0);throw cr("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.")},t}]}function dr(){this.$get=["$browser","$q","$$q","$rootScope",function(h,f,g,m){return function(p,d){return function(t,e,n,r){var i=4<arguments.length,o=i?Vt(arguments,4):[],a=0,s=D(r)&&!r,u=(s?g:f).defer(),l=u.promise;function c(){i?t.apply(null,o):t(a)}return n=D(n)?n:0,l.$$intervalId=p(function(){s?h.defer(c):m.$evalAsync(c),u.notify(a++),0<n&&n<=a&&(u.resolve(a),d(l.$$intervalId)),s||m.$apply()},e,u,s),l}}}]}function hr(){this.$get=function(){var i=b.callbacks,o={};function a(t){function e(t){e.data=t,e.called=!0}return e.id=t,e}return{createCallback:function(t){var e="_"+(i.$$counter++).toString(36),n="angular.callbacks."+e,r=a(e);return o[n]=i[e]=r,n},wasCalled:function(t){return o[t].called},getResponse:function(t){return o[t].data},removeCallback:function(t){delete i[o[t].id],delete o[t]}}}}var fr=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,gr={http:80,https:443,ftp:21},mr=x("$location");function vr(t,e,n){r=[],Et(e,function(t,e){Ct(t)?Et(t,function(t){r.push(o(e,!0)+(!0===t?"":"="+o(t,!0)))}):r.push(o(e,!0)+(!0===t?"":"="+o(t,!0)))});var r,e=r.length?r.join("&"):"",n=n?"#"+lt(n):"";return function(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=lt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(e?"?"+e:"")+n}function yr(t,e){t=O(t);e.$$protocol=t.protocol,e.$$host=t.hostname,e.$$port=y(t.port)||gr[t.protocol]||null}var br=/^\s*[\\/]{2,}/;function wr(t,e,n){if(br.test(t))throw mr("badpath",'Invalid url "{0}".',t);var r="/"!==t.charAt(0),t=O(t=r?"/"+t:t),r=r&&"/"===t.pathname.charAt(0)?t.pathname.substring(1):t.pathname;e.$$path=function(t,e){for(var n=t.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(r,n),e.$$search=ut(t.search),e.$$hash=decodeURIComponent(t.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function $r(t,e){return t.slice(0,e.length)===e}function Er(t,e){if($r(e,t))return e.substr(t.length)}function xr(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function Sr(r,i,o){this.$$html5=!0,o=o||"",yr(r,this),this.$$parse=function(t){var e=Er(i,t);if(!_t(e))throw mr("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,i);wr(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return i+t.substr(1)},this.$$parseLinkUrl=function(t,e){var n;return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(D(e=Er(r,t))?(n=e,n=o&&D(e=Er(o,e))?i+(Er
1("/",e)||e):r+n):D(e=Er(i,t))?n=i+e:i===t+"/"&&(n=i),n&&this.$$parse(n),!!n)}}function Tr(r,i,o){yr(r,this),this.$$parse=function(t){var e,n=Er(r,t)||Er(i,t);St(n)||"#"!==n.charAt(0)?this.$$html5?e=n:(e="",St(n)&&(r=t,this.replace())):St(e=Er(o,n))&&(e=n),wr(e,this,!1),this.$$path=function(t,e,n){var r=/^\/[A-Z]:(\/.*)/;$r(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return(n=r.exec(t))?n[1]:t}(this.$$path,e,r),this.$$compose()},this.$$normalizeUrl=function(t){return r+(t?o+t:"")},this.$$parseLinkUrl=function(t,e){return xr(r)===xr(t)&&(this.$$parse(t),!0)}}function _r(r,i,o){this.$$html5=!0,Tr.apply(this,arguments),this.$$parseLinkUrl=function(t,e){var n;return e&&"#"===e[0]?(this.hash(e.slice(1)),!0):(r===xr(t)?n=t:(e=Er(i,t))?n=r+o+e:i===t+"/"&&(n=i),n&&this.$$parse(n),!!n)},this.$$normalizeUrl=function(t){return r+o+t}}var Cr={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=vr(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:kr("$$absUrl"),url:function(t){var e;return St(t)?this.$$url:(!(e=fr.exec(t))[1]&&""!==t||this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this)},protocol:kr("$$protocol"),host:kr("$$host"),port:kr("$$port"),path:Ar("$$path",function(t){return"/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t}),search:function(n,t){switch(arguments.length){case 0:return this.$$search;case 1:if(_t(n)||w(n))n=n.toString(),this.$$search=ut(n);else{if(!Tt(n))throw mr("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");Et(n=X(n,{}),function(t,e){null==t&&delete n[e]}),this.$$search=n}break;default:St(t)||null===t?delete this.$$search[n]:this.$$search[n]=t}return this.$$compose(),this},hash:Ar("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};function kr(t){return function(){return this[t]}}function Ar(e,n){return function(t){return St(t)?this[e]:(this[e]=n(t),this.$$compose(),this)}}function Dr(){var g="!",m={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return D(t)?(g=t,this):g},this.html5Mode=function(t){return Ut(t)?(m.enabled=t,this):Tt(t)?(Ut(t.enabled)&&(m.enabled=t.enabled),Ut(t.requireBase)&&(m.requireBase=t.requireBase),(Ut(t.rewriteLinks)||_t(t.rewriteLinks))&&(m.rewriteLinks=t.rewriteLinks),this):m},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(a,s,u,i,t){var e,n,r=s.baseHref(),o=s.url();if(m.enabled){if(!r&&m.requireBase)throw mr("nobase","$location in HTML5 mode requires a <base> tag to be present!");n=o.substring(0,o.indexOf("/",o.indexOf("//")+2))+(r||"/"),e=u.history?Sr:_r}else n=xr(o),e=Tr;var l,c=(r=n).substr(0,xr(r).lastIndexOf("/")+1),p=((l=new e(n,c,"#"+g)).$$parseLinkUrl(o,o),l.$$state=s.state(),/^\s*(javascript|mailto):/i);function d(t,e,n){var r=l.url(),i=l.$$state;try{s.url(t,e,n),l.$$state=s.state()}catch(t){throw l.url(r),l.$$state=i,t}}i.on("click",function(t){var e=m.rewriteLinks;if(e&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var n,r=wt(t.target);"a"!==Dt(r[0]);)if(r[0]===i[0]||!(r=r.parent())[0])return;_t(e)&&St(r.attr(e))||(e=r.prop("href"),n=r.attr("href")||r.attr("xlink:href"),Tt(e)&&"[object SVGAnimatedString]"===e.toString()&&(e=O(e.animVal).href),p.test(e))||!e||r.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(e,n)&&(t.preventDefault(),l.absUrl()!==s.url())&&a.$apply()}}),l.absUrl()!==o&&s.url(l.absUrl(),!0);var h=!0;return s.onUrlChange(function(r,i){$r(r,c)?(a.$evalAsync(function(){var t,e=l.absUrl(),n=l.$$state;l.$$parse(r),l.$$state=i,t=a.$broadcast("$locationChangeStart",r,e,i,n).defaultPrevented,l.absUrl()===r&&(t?(l.$$parse(e),l.$$state=n,d(e,!1,n)):(h=!1,f(e,n)))}),a.$$phase||a.$digest()):t.location.href=r}),a.$watch(function(){var n,r,i,o,t,e;(h||l.$$urlUpdatedByLocation)&&(l.$$urlUpdatedByLocation=!1,n=s.url(),e=l.absUrl(),r=s.state(),i=l.$$replace,o=!((t=n)===(e=e)||O(t).href===O(e).href)||l.$$html5&&u.history&&r!==l.$$state,h||o)&&(h=!1,a.$evalAsync(function(){var t=l.absUrl(),e=a.$broadcast("$locationChangeStart",t,n,l.$$state,r).defaultPrevented;l.absUrl()===t&&(e?(l.$$parse(n),l.$$state=r):(o&&d(t,i,r===l.$$state?null:l.$$state),f(n,r)))})),l.$$replace=!1}),l;function f(t,e){a.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}}]}function Or(){var r=!0,o=this;this.debugEnabled=function(t){return D(t)?(r=t,this):r},this.$get=["$window",function(e){var t,i=It||/\bEdge\//.test(e.navigator&&e.navigator.userAgent);return{log:n("log"),info:n("info"),warn:n("warn"),error:n("error"),debug:(t=n("debug"),function(){r&&t.apply(o,arguments)})};function n(t){var n=e.console||{},r=n[t]||n.log||A;return function(){var e=[];return Et(arguments,function(t){e.push((Nt(t=t)&&(t.stack&&i?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t))}),Function.prototype.apply.call(r,n,e)}}}]}Et([_r,Tr,Sr],function(e){e.prototype=Object.create(Cr),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e===Sr&&this.$$html5)return this.$$state=St(t)?null:t,this.$$urlUpdatedByLocation=!0,this;throw mr("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API")}});var Rr=x("$parse"),Lr={}.constructor.prototype.valueOf;function Ir(t){return t+""}var Mr=Rt(),Pr=(Et("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(t){Mr[t]=!0}),{n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'}),Nr=function(t){this.options=t},d=(Nr.prototype={constructor:Nr,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){var e,n,r,i,o,a=this.text.charAt(this.index);'"'===a||"'"===a?this.readString(a):this.isNumber(a)||"."===a&&this.isNumber(this.peek())?this.readNumber():this.isIdentifierStart(this.peekMultichar())?this.readIdent():this.is(a,"(){}[].,;:?")?(this.tokens.push({index:this.index,text:a}),this.index++):this.isWhitespace(a)?this.index++:(n=(e=a+this.peek())+this.peek(2),o=Mr[a],r=Mr[e],i=Mr[n],o||r||i?(this.tokens.push({index:this.index,text:o=i?n:r?e:a,operator:!0}),this.index+=o.length):this.throwError("Unexpected next character ",this.index,this.index+1))}return this.tokens},is:function(t,e){return-1!==e.indexOf(t)},peek:function(t){t=t||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&t<="9"&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t||" "===t},isIdentifierStart:function(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.co
1dePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isIdentifierContinue:function(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):this.isValidIdentifierContinue(t)},isValidIdentifierContinue:function(t,e){return this.isValidIdentifierStart(t,e)||this.isNumber(t)},codePointAt:function(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888},peekMultichar:function(){var t,e,n=this.text.charAt(this.index),r=this.peek();return r&&(t=n.charCodeAt(0),e=r.charCodeAt(0),55296<=t)&&t<=56319&&56320<=e&&e<=57343?n+r:n},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;e=D(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw Rr("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=C(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))t+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})},readIdent:function(){var t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var e=this.peekMultichar();if(!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})},readString:function(t){for(var e=this.index,n=(this.index++,""),r=t,i=!1;this.index<this.text.length;){var o,a=this.text.charAt(this.index);if(r+=a,i)"u"===a?((o=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))):n+=Pr[a]||a,i=!1;else if("\\"===a)i=!0;else{if(a===t)return this.index++,void this.tokens.push({index:e,text:r,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",e)}},function(t,e){this.lexer=t,this.options=e});function Fr(t,e){return void 0!==t?t:e}function Ur(t,e){return void 0===t?e:void 0===e?t:t+e}d.Program="Program",d.ExpressionStatement="ExpressionStatement",d.AssignmentExpression="AssignmentExpression",d.ConditionalExpression="ConditionalExpression",d.LogicalExpression="LogicalExpression",d.BinaryExpression="BinaryExpression",d.UnaryExpression="UnaryExpression",d.CallExpression="CallExpression",d.MemberExpression="MemberExpression",d.Identifier="Identifier",d.Literal="Literal",d.ArrayExpression="ArrayExpression",d.Property="Property",d.ObjectExpression="ObjectExpression",d.ThisExpression="ThisExpression",d.LocalsExpression="LocalsExpression",d.NGValueParameter="NGValueParameter",d.prototype={ast:function(t){this.text=t,this.tokens=this.lexer.lex(t);t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var t=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),!this.expect(";"))return{type:d.Program,body:t}},expressionStatement:function(){return{type:d.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var t=this.expression();this.expect("|");)t=this.filter(t);return t},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary();if(this.expect("=")){if(!qr(t))throw Rr("lval","Trying to assign a value to a non l-value");t={type:d.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t},ternary:function(){var t,e,n=this.logicalOR();return this.expect("?")&&(t=this.expression(),this.consume(":"))?(e=this.expression(),{type:d.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:d.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:d.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");
1)e={type:d.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:d.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?t=X(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:d.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:d.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:d.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:d.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){for(var e=[t],t={type:d.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression());return t},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)for(;t.push(this.filterChain()),this.expect(","););return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:d.Identifier,name:t.text}},constant:function(){return{type:d.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(t.push(this.expression()),this.expect(",")););return this.consume("]"),{type:d.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)for(;!this.peek("}")&&(t={type:d.Property,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.expression()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.expression()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.expression(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.expression()):this.throwError("invalid key",this.peek()),e.push(t),this.expect(",")););return this.consume("}"),{type:d.ObjectExpression,properties:e}},throwError:function(t,e){throw Rr("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw Rr("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},peekToken:function(){if(0===this.tokens.length)throw Rr("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,r){return this.peekAhead(0,t,e,n,r)},peekAhead:function(t,e,n,r,i){if(this.tokens.length>t){var t=this.tokens[t],o=t.text;if(o===e||o===n||o===r||o===i||!e&&!n&&!r&&!i)return t}return!1},expect:function(t,e,n,r){t=this.peek(t,e,n,r);return!!t&&(this.tokens.shift(),t)},selfReferential:{this:{type:d.ThisExpression},$locals:{type:d.LocalsExpression}}};var jr=1,Br=2;function u(t,e,n){var r,i,o,a=t.isPure=function(t,e){switch(t.type){case d.MemberExpression:if(t.computed)return!1;break;case d.UnaryExpression:return jr;case d.BinaryExpression:return"+"!==t.operator&&jr;case d.CallExpression:return!1}return void 0===e?Br:e}(t,n);switch(t.type){case d.Program:r=!0,Et(t.body,function(t){u(t.expression,e,a),r=r&&t.expression.constant}),t.constant=r;break;case d.Literal:t.constant=!0,t.toWatch=[];break;case d.UnaryExpression:u(t.argument,e,a),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case d.BinaryExpression:u(t.left,e,a),u(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case d.LogicalExpression:u(t.left,e,a),u(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case d.ConditionalExpression:u(t.test,e,a),u(t.alternate,e,a),u(t.consequent,e,a),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case d.Identifier:t.constant=!1,t.toWatch=[t];break;case d.MemberExpression:u(t.object,e,a),t.computed&&u(t.property,e,a),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case d.CallExpression:o=!!t.filter&&(o=t.callee.name,!e(o).$stateful),r=o,i=[],Et(t.arguments,function(t){u(t,e,a),r=r&&t.constant,i.push.apply(i,t.toWatch)}),t.constant=r,t.toWatch=o?i:[t];break;case d.AssignmentExpression:u(t.left,e,a),u(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case d.ArrayExpression:r=!0,i=[],Et(t.elements,function(t){u(t,e,a),r=r&&t.constant,i.push.apply(i,t.toWatch)}),t.constant=r,t.toWatch=i;break;case d.ObjectExpression:r=!0,i=[],Et(t.properties,function(t){u(t.value,e,a),r=r&&t.value.constant,i.push.apply(i,t.value.toWatch),t.computed&&(u(t.key,e,!1),r=r&&t.key.constant,i.push.apply(i,t.key.toWatch))}),t.constant=r,t.toWatch=i;break;case d.ThisExpression:case d.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Vr(t){var e;return 1===t.length&&(1!==(e=(t=t[0].expression).toWatch).length||e[0]!==t)?e:void 0}function qr(t){return t.type===d.Identifier||t.type===d.MemberExpression}function Hr(t){if(1===t.body.length&&qr(t.body[0].expression))return{type:d.AssignmentExpression,left:t.body[0].expression,right:{type:d.NGValueParameter},operator:"="}}function Wr(t){this.$filter=t}function Gr(t){this.$filter=t}function zr(t,e,n){this.ast=new d(t,n),this.astCompiler=new(n.csp?Gr:Wr)(e)}function Kr(t){return kt(t.valueOf)?t.valueOf():Lr.call(t)}function Yr(){var s,u,l=Rt(),c={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){c[t]=e},this.setIdentifierFns=function(t,e){return s=t,u=e,this},this.$get=["$filter",function(i){var o={csp:Q().noUnsafeEval,literals:X(c),isIdentifierStart:kt(s)&&s,isIdentifierContinue:kt(u)&&u};return t.$$getAst=function(t){return new zr(new Nr(o),i,o).getAst(t).ast},t;function t(t,e){var n,r;switch(typeof t){case"string":return t=t.trim(),(r=l[n=t])||(r=new zr(new Nr(o),i,o).parse(t),l[n]=f(r)),a(r,e);case"function":return a(t,e);default:return a(A,e)}}function d(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Kr(t))&&!n)&&(t===e||t!=t&&e!=e)}function e(t,e,n,o,r){var a,i,s=o.inputs;if(1===s.length)return i=d,s=s[0],t.$watch(function(t){var e=s(t);return d(e,i,s.isPure)||(a=o(t,void 0,void 0,[e]),i=e&&Kr(e)),a},e,n,r);for(var u=[],l=[],c=0,p=s.length;c<p;c++)u[c]=d,l[c]=null;
1return t.$watch(function(t){for(var e=!1,n=0,r=s.length;n<r;n++){var i=s[n](t);(e=e||!d(i,u[n],s[n].isPure))&&(u[n]=(l[n]=i)&&Kr(i))}return a=e?o(t,void 0,void 0,l):a},e,n,r)}function n(t,e,n,r,i){var o,a,s=r.literal?h:D,u=r.$$intercepted||r,l=r.$$interceptor||Pt,c=r.inputs&&!u.inputs;return d.literal=r.literal,d.constant=r.constant,d.inputs=r.inputs,f(d),o=t.$watch(d,e,n,i);function p(){s(a)&&o()}function d(t,e,n,r){return a=c&&r?r[0]:u(t,e,n,r),s(a)&&t.$$postDigest(p),l(a)}}function h(t){var e=!0;return Et(t,function(t){D(t)||(e=!1)}),e}function r(t,e,n,r){var i=t.$watch(function(t){return i(),r(t)},e,n);return i}function f(t){return t.constant?t.$$watchDelegate=r:t.oneTime?t.$$watchDelegate=n:t.inputs&&(t.$$watchDelegate=e),t}function a(i,o){var e,n,a,t;return o?(i.$$interceptor&&(e=i.$$interceptor,n=o,r.$stateful=e.$stateful||n.$stateful,r.$$pure=e.$$pure&&n.$$pure,o=r,i=i.$$intercepted),a=!1,(t=function(t,e,n,r){t=a&&r?r[0]:i(t,e,n,r);return o(t)}).$$intercepted=i,t.$$interceptor=o,t.literal=i.literal,t.oneTime=i.oneTime,t.constant=i.constant,o.$stateful||(a=!i.inputs,t.inputs=i.inputs||[i],o.$$pure)||(t.inputs=t.inputs.map(function(e){return e.isPure===Br?function(t){return e(t)}:e})),f(t)):i;function r(t){return n(e(t))}}}]}function Xr(){var n=!0;this.$get=["$rootScope","$exceptionHandler",function(e,t){return Jr(function(t){e.$evalAsync(t)},t,n)}],this.errorOnUnhandledRejections=function(t){return D(t)?(n=t,this):n}}function Qr(){var n=!0;this.$get=["$browser","$exceptionHandler",function(e,t){return Jr(function(t){e.defer(t)},t,n)}],this.errorOnUnhandledRejections=function(t){return D(t)?(n=t,this):n}}function Jr(s,u,l){var n=x("$q",TypeError),c=0,r=[];function i(){return new t}function t(){var e=this.promise=new o;this.resolve=function(t){h(e,t)},this.reject=function(t){f(e,t)},this.notify=function(t){m(e,t)}}function o(){this.$$state={status:0}}function p(){for(;!c&&r.length;){var t,e=r.shift();e.pur||(Zr(e),t="Possibly unhandled rejection: "+re(e.value),Nt(e.value)?u(e.value,t):u(t))}}function d(a){!l||a.pending||2!==a.status||a.pur||(0===c&&0===r.length&&s(p),r.push(a)),!a.processScheduled&&a.pending&&(a.processScheduled=!0,++c,s(function(){var t,e,n=a,r=n.pending;n.processScheduled=!1,n.pending=void 0;try{for(var i=0,o=r.length;i<o;++i){Zr(n),e=r[i][0],t=r[i][n.status];try{kt(t)?h(e,t(n.value)):(1===n.status?h:f)(e,n.value)}catch(t){f(e,t),t&&!0===t.$$passToExceptionHandler&&u(t)}}}finally{--c,l&&0===c&&s(p)}}))}function h(t,e){t.$$state.status||(e===t?g(t,n("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):function e(n,t){var r;var i=!1;try{(Tt(t)||kt(t))&&(r=t.then),kt(r)?(n.$$state.status=-1,r.call(t,o,a,s)):(n.$$state.value=t,n.$$state.status=1,d(n.$$state))}catch(t){a(t)}function o(t){i||(i=!0,e(n,t))}function a(t){i||(i=!0,g(n,t))}function s(t){m(n,t)}}(t,e))}function f(t,e){t.$$state.status||g(t,e)}function g(t,e){t.$$state.value=e,t.$$state.status=2,d(t.$$state)}function m(t,i){var o=t.$$state.pending;t.$$state.status<=0&&o&&o.length&&s(function(){for(var t,e,n=0,r=o.length;n<r;n++){e=o[n][0],t=o[n][3];try{m(e,kt(t)?t(i):i)}catch(t){u(t)}}})}function a(t){var e=new o;return f(e,t),e}function v(t,e,n){var r=null;try{kt(n)&&(r=n())}catch(t){return a(t)}return W(r)?r.then(function(){return e(t)},a):e(t)}function y(t,e,n,r){var i=new o;return h(i,t),i.then(e,n,r)}xt(o.prototype,{then:function(t,e,n){var r;return St(t)&&St(e)&&St(n)?this:(r=new o,this.$$state.pending=this.$$
1state.pending||[],this.$$state.pending.push([r,t,e,n]),0<this.$$state.status&&d(this.$$state),r)},catch:function(t){return this.then(null,t)},finally:function(e,t){return this.then(function(t){return v(t,b,e)},function(t){return v(t,a,e)},t)}});var b=y;function e(t){var e;if(kt(t))return e=new o,t(function(t){h(e,t)},function(t){f(e,t)}),e;throw n("norslvr","Expected resolverFn, got '{0}'",t)}return e.prototype=o.prototype,e.defer=i,e.reject=a,e.when=y,e.resolve=b,e.all=function(t){var n=new o,r=0,i=Ct(t)?[]:{};return Et(t,function(t,e){r++,y(t).then(function(t){i[e]=t,--r||h(n,i)},function(t){f(n,t)})}),0===r&&h(n,i),n},e.race=function(t){var e=i();return Et(t,function(t){y(t).then(e.resolve,e.reject)}),e.promise},e}function Zr(t){t.pur=!0}function ti(t){t.$$state&&Zr(t.$$state)}function ei(){this.$get=["$window","$timeout",function(t,n){var r=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,t=!!r,e=t?function(t){var e=r(t);return function(){i(e)}}:function(t){var e=n(t,16.66,!1);return function(){n.cancel(e)}};return e.supported=t,e}]}function ni(){var S=10,T=x("$rootScope"),_=null,C=null;this.digestTtl=function(t){return S=arguments.length?t:S},this.$get=["$exceptionHandler","$parse","$browser",function(h,f,g){function i(t){t.currentScope.$$destroyed=!0}function o(){this.$id=N(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,(this.$root=this).$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}o.prototype={constructor:o,$new:function(t,e){var n;function r(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=N(),this.$$ChildScope=null,this.$$suspended=!1}return e=e||this,t?(n=new o).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=(r.prototype=this,r)),n=new this.$$ChildScope),n.$parent=e,n.$$prevSibling=e.$$childTail,e.$$childHead?(e.$$childTail.$$nextSibling=n,e.$$childTail=n):e.$$childHead=e.$$childTail=n,!t&&e===this||n.$on("$destroy",i),n},$watch:function(t,e,n,r){var i,o,a,s=f(t),e=kt(e)?e:A;return s.$$watchDelegate?s.$$watchDelegate(this,e,n,s,t):(o=(i=this).$$watchers,a={fn:e,last:E,get:s,exp:r||t,eq:!!n},_=null,o||((o=i.$$watchers=[]).$$digestWatchIndex=-1),o.unshift(a),o.$$digestWatchIndex++,u(this,1),function(){var t=jt(o,a);0<=t&&(u(i,-1),t<o.$$digestWatchIndex)&&o.$$digestWatchIndex--,_=null})},$watchGroup:function(e,r){var t,i=new Array(e.length),o=new Array(e.length),n=[],a=this,s=!1,u=!0;return e.length?1===e.length?this.$watch(e[0],function(t,e,n){o[0]=t,i[0]=e,r(o,t===e?o:i,n)}):(Et(e,function(t,e){t=a.$watch(t,function(t){o[e]=t,s||(s=!0,a.$evalAsync(l))});n.push(t)}),function(){for(;n.length;)n.shift()()}):(t=!0,a.$evalAsync(function(){t&&r(o,o,a)}),function(){t=!1});function l(){s=!1;try{u?(u=!1,r(o,o,a)):r(o,i,a)}finally{for(var t=0;t<e.length;t++)i[t]=o[t]}}},$watchCollection:function(t,n){e.$$pure=f(t).literal,e.$stateful=!e.$$pure;var a,s,r,i=this,o=1<n.length,u=0,t=f(t,e),l=[],c={},p=!0,d=0;function e(t){var e,n,r,i;if(!St(a=t)){if(Tt(a))if(M(a)){s!==l&&(d=(s=l).length=0,u++),e=a.length,d!==e&&(u++,s.length=d=e);for(var o=0;o<e;o++)i=s[o],r=a[o],i!=i&&r!=r||i===r||(u++,s[o]=r)}else{for(n in s!==c&&(s=c={},d=0,u++),e=0,a)$t.call(a,n)&&(e++,r=a[n],i=s[n],n in s?i!=i&&r!=r||i===r||(u++,s[n]=r):(d++,s[n]=r,u++));if(e<d)for(n in u++,s)$t.call(a,n)||(d--,delete s[n])}else s!==a&&(s=a,u++);return u}}return this.$watch(t,function(){if(p?(p=!1,n(a,a,i)):n(a,r,i),o)if(Tt(a))if(M(a)){r=new Array(a.length);for(var t=0;t<a.length;t++)r[t]=a[t]}else for(var e in r={},a)$t.call(a,e)&&(r[e]=a[e]);else r=a})},$digest:function(){var t,e,n,r,i,o,a,s=S,u=v.length?m:this,l=[];w("$digest"),g.$$checkUrlChange(),this===m&&null!==C&&(g.defer.cancel(C),x()),_=null;do{for(var c=!1,p=u,d=0;d<v.length;d++){try{(0,(a=v[d]).fn)(a.scope,a.locals)}catch(t){h(t)}_=null}v.length=0;
1t:do{if(r=!p.$$suspended&&p.$$watchers)for(r.$$digestWatchIndex=r.length;r.$$digestWatchIndex--;)try{if(t=r[r.$$digestWatchIndex])if((e=(0,t.get)(p))===(n=t.last)||(t.eq?Ot(e,n):k(e)&&k(n))){if(t===_){c=!1;break t}}else c=!0,(_=t).last=t.eq?X(e,null):e,(0,t.fn)(e,n===E?e:n,p),s<5&&(l[o=4-s]||(l[o]=[]),l[o].push({msg:kt(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:e,oldVal:n}))}catch(t){h(t)}if(!(i=!p.$$suspended&&p.$$watchersCount&&p.$$childHead||p!==u&&p.$$nextSibling))for(;p!==u&&!(i=p.$$nextSibling);)p=p.$parent}while(p=i);if((c||v.length)&&!s--)throw $(),T("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",S,l)}while(c||v.length);for($();b<y.length;)try{y[b++]()}catch(t){h(t)}y.length=b=0,g.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var t,e=this.$parent;for(t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===m&&g.$$applicationDestroyed(),u(this,-this.$$watchersCount),this.$$listenerCount)a(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=A,this.$on=this.$watch=this.$watchGroup=function(){return A},this.$$listeners={},this.$$nextSibling=null,!function t(e){9===It&&(e.$$childHead&&t(e.$$childHead),e.$$nextSibling)&&t(e.$$nextSibling),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}(this)}},$eval:function(t,e){return f(t)(this,e)},$evalAsync:function(t,e){m.$$phase||v.length||g.defer(function(){v.length&&m.$digest()},null,"$evalAsync"),v.push({scope:this,fn:f(t),locals:e})},$$postDigest:function(t){y.push(t)},$apply:function(t){try{w("$apply");try{return this.$eval(t)}finally{$()}}catch(t){h(t)}finally{try{m.$digest()}catch(t){throw h(t),t}}},$applyAsync:function(t){var e=this;t&&n.push(function(){e.$eval(t)}),t=f(t),null===C&&(C=g.defer(function(){m.$apply(x)},null,"$applyAsync"))},$on:function(e,n){for(var r=this.$$listeners[e],t=(r||(this.$$listeners[e]=r=[]),r.push(n),this);t.$$listenerCount[e]||(t.$$listenerCount[e]=0),t.$$listenerCount[e]++,t=t.$parent;);var i=this;return function(){var t=r.indexOf(n);-1!==t&&(delete r[t],a(i,1,e))}},$emit:function(t,e){var n,r,i,o=[],a=this,s=!1,u={name:t,targetScope:a,stopPropagation:function(){s=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=Z([u],arguments,1);do{for(n=a.$$listeners[t]||o,u.currentScope=a,r=0,i=n.length;r<i;r++)if(n[r])try{n[r].apply(null,l)}catch(t){h(t)}else n.splice(r,1),r--,i--}while(!s&&(a=a.$parent));return u.currentScope=null,u},$broadcast:function(t,e){var n=this,r=this,i={name:t,targetScope:this,preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1};if(this.$$listenerCount[t]){for(var o,a,s,u=Z([i],arguments,1);n=r;){for(a=0,s=(o=(i.currentScope=n).$$listeners[t]||[]).length;a<s;a++)if(o[a])try{o[a].apply(null,u)}catch(t){h(t)}else o.splice(a,1),a--,s--;if(!(r=n.$$listenerCount[t]&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(r=n.$$nextSibling);)n=n.$parent}i.currentScope=null}return i}};var m=new o,v=m.$$asyncQueue=[],y=m.$$postDigestQueue=[],n=m.$$applyAsyncQueue=[],b=0;return m;function w(t){if(m.$$phase)throw T("inprog","{0} already in progress",m.$$phase);m.$$phase=t}function $(){m.$$phase=null}function u(t,e){for(;t.$$watchersCount+=e,t=t.$parent;);}function a(t,e,n){for(;t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n],t=t.$parent;);}function E(){}function x(){for(;n.length;)try{n.shift()()}catch(t){h(t)}C=null}}]}function ri(){var r=/^\s*(https?|s?ftp|mailto|tel|file):/,i=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return D(t)?(r=t,this):r},this.imgSrcSanitizationTrustedUrlList=function(t){return D(t)?(i=t,this):i},this.$get=function(){return function(t,e){var e=e?i:r,n=O(t&&t.trim()).href;return""===n||n.match(e)?t:"unsafe:"+n}}}Wr.prototype={compile:function(t){var i=this,e=(this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},u(t,i.$filter),""),n=(this.stage="assign",(n=Hr(t))&&(this.state.computing="assign",r=this.nextId(),this.recurse(n,r),this.return_(r),e="fn.assign="+this.generateFunction("assign","s,v,l")),Vr(t.body)),r=(i.stage="inputs",Et(n,function(t,e){var n="fn"+e,r=(i.state[n]={vars:[],body:[],own:{}},i.state.computing=n,i.nextId());i.recurse(t,r),i.return_(r),i.state.inputs.push({name:n,isPure:t.isPure}),t.watchId=e}),this.state.computing="fn",this.stage="main",this.recurse(t),'"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+e+this.watchFns()+"return fn;"),n=new Function("$filter","getStringValue","ifDefined","plus",r)(this.$filter,Ir,Fr,Ur);return this.state=this.stage=void 0,n},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return Et(t,function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(t){return t.name}).join(",")+"];"),e.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var n=[],r=this;return Et(this.state.filters,function(t,e){n.push(t+"=$filter("+r.escape(e)+")")}),n.length?"var "+n.join(",")+";":""},varsPrefix:function(t){return this.state[t].vars.length?"var "+this.state[t].vars.join(",")+";":""},body:function(t){return this.state[t].body.join("")},recurse:function(n,e,t,r,i,o){var a,s,u,l,c,p=this;if(r=r||A,!o&&D(n.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",n.watchId)),this.lazyRecurse(n,e,t,r,i,!0));else switch(n.type){case d.Program:Et(n.body,function(t,e){p.recurse(t.expression,void 0,void 0,function(t){s=t}),e!==n.body.length-1?p.current().body.push(s,";"):p.return_(s)});break;
1case d.Literal:l=this.escape(n.value),this.assign(e,l),r(e||l);break;case d.UnaryExpression:this.recurse(n.argument,void 0,void 0,function(t){s=t}),l=n.operator+"("+this.ifDefined(s,0)+")",this.assign(e,l),r(l);break;case d.BinaryExpression:this.recurse(n.left,void 0,void 0,function(t){a=t}),this.recurse(n.right,void 0,void 0,function(t){s=t}),l="+"===n.operator?this.plus(a,s):"-"===n.operator?this.ifDefined(a,0)+n.operator+this.ifDefined(s,0):"("+a+")"+n.operator+"("+s+")",this.assign(e,l),r(l);break;case d.LogicalExpression:e=e||this.nextId(),p.recurse(n.left,e),p.if_("&&"===n.operator?e:p.not(e),p.lazyRecurse(n.right,e)),r(e);break;case d.ConditionalExpression:e=e||this.nextId(),p.recurse(n.test,e),p.if_(e,p.lazyRecurse(n.alternate,e),p.lazyRecurse(n.consequent,e)),r(e);break;case d.Identifier:e=e||this.nextId(),t&&(t.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",n.name)+"?l:s"),t.computed=!1,t.name=n.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",n.name)),function(){p.if_("inputs"===p.stage||"s",function(){i&&1!==i&&p.if_(p.isNull(p.nonComputedMember("s",n.name)),p.lazyAssign(p.nonComputedMember("s",n.name),"{}")),p.assign(e,p.nonComputedMember("s",n.name))})},e&&p.lazyAssign(e,p.nonComputedMember("l",n.name))),r(e);break;case d.MemberExpression:a=t&&(t.context=this.nextId())||this.nextId(),e=e||this.nextId(),p.recurse(n.object,a,void 0,function(){p.if_(p.notNull(a),function(){n.computed?(s=p.nextId(),p.recurse(n.property,s),p.getStringValue(s),i&&1!==i&&p.if_(p.not(p.computedMember(a,s)),p.lazyAssign(p.computedMember(a,s),"{}")),l=p.computedMember(a,s),p.assign(e,l),t&&(t.computed=!0,t.name=s)):(i&&1!==i&&p.if_(p.isNull(p.nonComputedMember(a,n.property.name)),p.lazyAssign(p.nonComputedMember(a,n.property.name),"{}")),l=p.nonComputedMember(a,n.property.name),p.assign(e,l),t&&(t.computed=!1,t.name=n.property.name))},function(){p.assign(e,"undefined")}),r(e)},!!i);break;case d.CallExpression:e=e||this.nextId(),n.filter?(s=p.filter(n.callee.name),u=[],Et(n.arguments,function(t){var e=p.nextId();p.recurse(t,e),u.push(e)}),l=s+"("+u.join(",")+")",p.assign(e,l),r(e)):(s=p.nextId(),a={},u=[],p.recurse(n.callee,s,a,function(){p.if_(p.notNull(s),function(){Et(n.arguments,function(t){p.recurse(t,n.constant?void 0:p.nextId(),void 0,function(t){u.push(t)})}),l=a.name?p.member(a.context,a.name,a.computed)+"("+u.join(",")+")":s+"("+u.join(",")+")",p.assign(e,l)},function(){p.assign(e,"undefined")}),r(e)}));break;case d.AssignmentExpression:s=this.nextId(),a={},this.recurse(n.left,void 0,a,function(){p.if_(p.notNull(a.context),function(){p.recurse(n.right,s),l=p.member(a.context,a.name,a.computed)+n.operator+s,p.assign(e,l),r(e||l)})},1);break;case d.ArrayExpression:u=[],Et(n.elements,function(t){p.recurse(t,n.constant?void 0:p.nextId(),void 0,function(t){u.push(t)})}),l="["+u.join(",")+"]",this.assign(e,l),r(e||l);break;case d.ObjectExpression:c=!(u=[]),Et(n.properties,function(t){t.computed&&(c=!0)}),c?(e=e||this.nextId(),this.assign(e,"{}"),Et(n.properties,function(t){t.computed?(a=p.nextId(),p.recurse(t.key,a)):a=t.key.type===d.Identifier?t.key.name:""+t.key.value,s=p.nextId(),p.recurse(t.value,s),p.assign(p.member(e,a,t.computed),s)})):(Et(n.properties,function(e){p.recurse(e.value,n.constant?void 0:p.nextId(),void 0,function(t){u.push(p.escape(e.key.type===d.Identifier?e.key.name:""+e.key.value)+":"+t)})}),l="{"+u.join(",")+"}",this.assign(e,l)),r(e||l);break;case d.ThisExpression:this.assign(e,"s"),r(e||"s");break;case d.LocalsExpression:this.assign(e,"l"),r(e||"l");break;case d.NGValueParameter:this.assign(e,"v"),r(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),r[n]},assign:function(t,e){if(t)return this.current().body.push(t,"=",e,";"),t},filter:function(t){return this.state.filters.hasOwnProperty(t)||(this.state.filters[t]=this.nextId(!0)),this.state.filters[t]},ifDefined:function(t,e){return"ifDefined("+t+","+this.escape(e)+")"},plus:function(t,e){return"plus("+t+","+e+")"},return_:function(t){this.current().body.push("return ",t,";")},if_:function(t,e,n){var r;!0===t?e():((r=this.current().body).push("if(",t,"){"),e(),r.push("}"),n&&(r.push("else{"),n(),r.push("}")))},not:function(t){return"!("+t+")"},isNull:function(t){return t+"==null"},notNull:function(t){return t+"!=null"},nonComputedMember:function(t,e){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?t+"."+e:t+'["'+e.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(t,e){return t+"["+e+"]"},member:function(t,e,n){return n?this.computedMember(t,e):this.nonComputedMember(t,e)},getStringValue:function(t){this.assign(t,"getStringValue("+t+")")},lazyRecurse:function(t,e,n,r,i,o){var a=this;return function(){a.recurse(t,e,n,r,i,o)}},lazyAssign:function(t,e){var n=this;return function(){n.assign(t,e)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)},escape:function(t){if(_t(t))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(w(t))return t.toString();if(!0===t)return"true";if(!1===t)return"false";if(null===t)return"null";if(void 0===t)return"undefined";throw Rr("esc","IMPOSSIBLE")},nextId:function(t,e){var n="v"+this.state.nextId++;return t||this.current().vars.push(n+(e?"="+e:"")),n},current:function(){return this.state[this.state.computing]}},Gr.prototype={compile:function(t){var r,i,o=this,e=(u(t,o.$filter),(e=Hr(t))&&(r=this.recurse(e)),Vr(t.body)),a=(e&&(i=[],Et(e,function(t,e){var n=o.recurse(t);
vendor: 5,157 bytes, line 1
1n.isPure=t.isPure,t.input=n,i.push(n),t.watchId=e})),[]),e=(Et(t.body,function(t){a.push(o.recurse(t.expression))}),0===t.body.length?A:1===t.body.length?a[0]:function(e,n){var r;return Et(a,function(t){r=t(e,n)}),r});return r&&(e.assign=function(t,e,n){return r(t,n,e)}),i&&(e.inputs=i),e},recurse:function(t,u,e){var o,l,c,n=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case d.Literal:return this.value(t.value,u);case d.UnaryExpression:return l=this.recurse(t.argument),this["unary"+t.operator](l,u);case d.BinaryExpression:case d.LogicalExpression:return o=this.recurse(t.left),l=this.recurse(t.right),this["binary"+t.operator](o,l,u);case d.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),u);case d.Identifier:return n.identifier(t.name,u,e);case d.MemberExpression:return o=this.recurse(t.object,!1,!!e),t.computed||(l=t.property.name),t.computed&&(l=this.recurse(t.property)),t.computed?this.computedMember(o,l,u,e):this.nonComputedMember(o,l,u,e);case d.CallExpression:return c=[],Et(t.arguments,function(t){c.push(n.recurse(t))}),t.filter&&(l=this.$filter(t.callee.name)),t.filter||(l=this.recurse(t.callee,!0)),t.filter?function(t,e,n,r){for(var i=[],o=0;o<c.length;++o)i.push(c[o](t,e,n,r));var a=l.apply(void 0,i,r);return u?{context:void 0,name:void 0,value:a}:a}:function(t,e,n,r){var i,o=l(t,e,n,r);if(null!=o.value){for(var a=[],s=0;s<c.length;++s)a.push(c[s](t,e,n,r));i=o.value.apply(o.context,a)}return u?{value:i}:i};case d.AssignmentExpression:return o=this.recurse(t.left,!0,1),l=this.recurse(t.right),function(t,e,n,r){var i=o(t,e,n,r),t=l(t,e,n,r);return i.context[i.name]=t,u?{value:t}:t};case d.ArrayExpression:return c=[],Et(t.elements,function(t){c.push(n.recurse(t))}),function(t,e,n,r){for(var i=[],o=0;o<c.length;++o)i.push(c[o](t,e,n,r));return u?{value:i}:i};case d.ObjectExpression:return c=[],Et(t.properties,function(t){t.computed?c.push({key:n.recurse(t.key),computed:!0,value:n.recurse(t.value)}):c.push({key:t.key.type===d.Identifier?t.key.name:""+t.key.value,computed:!1,value:n.recurse(t.value)})}),function(t,e,n,r){for(var i={},o=0;o<c.length;++o)c[o].computed?i[c[o].key(t,e,n,r)]=c[o].value(t,e,n,r):i[c[o].key]=c[o].value(t,e,n,r);return u?{value:i}:i};case d.ThisExpression:return function(t){return u?{value:t}:t};case d.LocalsExpression:return function(t,e){return u?{value:e}:e};case d.NGValueParameter:return function(t,e,n){return u?{value:n}:n}}},"unary+":function(i,o){return function(t,e,n,r){t=D(t=i(t,e,n,r))?+t:0;return o?{value:t}:t}},"unary-":function(i,o){return function(t,e,n,r){t=D(t=i(t,e,n,r))?-t:-0;return o?{value:t}:t}},"unary!":function(i,o){return function(t,e,n,r){t=!i(t,e,n,r);return o?{value:t}:t}},"binary+":function(i,o,a){return function(t,e,n,r){t=Ur(i(t,e,n,r),o(t,e,n,r));return a?{value:t}:t}},"binary-":function(o,a,s){return function(t,e,n,r){var i=o(t,e,n,r),t=a(t,e,n,r),e=(D(i)?i:0)-(D(t)?t:0);return s?{value:e}:e}},"binary*":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)*o(t,e,n,r);return a?{value:t}:t}},"binary/":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)/o(t,e,n,r);return a?{value:t}:t}},"binary%":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)%o(t,e,n,r);return a?{value:t}:t}},"binary===":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)===o(t,e,n,r);return a?{value:t}:t}},"binary!==":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)!==o(t,e,n,r);return a?{value:t}:t}},"binary==":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)==o(t,e,n,r);return a?{value:t}:t}},"binary!=":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)!=o(t,e,n,r);return a?{value:t}:t}},"binary<":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)<o(t,e,n,r);return a?{value:t}:t}},"binary>":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)>o(t,e,n,r);return a?{value:t}:t}},"binary<=":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)<=o(t,e,n,r);return a?{value:t}:t}},"binary>=":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)>=o(t,e,n,r);return a?{value:t}:t}},"binary&&":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)&&o(t,e,n,r);return a?{value:t}:t}},"binary||":function(i,o,a){return function(t,e,n,r){t=i(t,e,n,r)||o(t,e,n,r);return a?{value:t}:t}},"ternary?:":function(i,o,a,s){return function(t,e,n,r){t=(i(t,e,n,r)?o:a)(t,e,n,r);return s?{value:t}:t}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(i,o,a){return function(t,e,n,r){e=e&&i in e?e:t,a&&1!==a&&e&&null==e[i]&&(e[i]={}),t=e?e[i]:void 0;return o?{context:e,name:i,value:t}:t}},computedMember:function(s,u,l,c){return function(t,e,n,r){var i,o,a=s(t,e,n,r);return null!=a&&(i=u(t,e,n,r),i+="",c&&1!==c&&a&&!a[i]&&(a[i]={}),o=a[i]),l?{context:a,name:i,value:o}:o}},nonComputedMember:function(i,o,a,s){return function(t,e,n,r){t=i(t,e,n,r),s&&1!==s&&t&&null==t[o]&&(t[o]={}),e=null!=t?t[o]:void 0;return a?{context:t,name:o,value:e}:e}},inputs:function(i,o){return function(t,e,n,r){return r?r[o]:i(t,e,n)}}},zr.prototype={constructor:zr,parse:function(t){var e,t=this.getAst(t),n=this.ast
1Compiler.compile(t.ast);return n.literal=0===(e=t.ast).body.length||1===e.body.length&&(e.body[0].expression.type===d.Literal||e.body[0].expression.type===d.ArrayExpression||e.body[0].expression.type===d.ObjectExpression),n.constant=t.ast.constant,n.oneTime=t.oneTime,n},getAst:function(t){var e=!1;return":"===(t=t.trim()).charAt(0)&&":"===t.charAt(1)&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}};var ii=x("$sce"),l={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},oi=/_([a-z])/g;function ai(t){return t.replace(oi,pe)}function si(t){var e=[];return D(t)&&Et(t,function(t){e.push(function(t){if("self"===t)return t;if(_t(t)){if(-1<t.indexOf("***"))throw ii("iwcard","Illegal sequence *** in string matcher.  String: {0}",t);return t=z(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(q(t))return new RegExp("^"+t.source+"$");throw ii("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(t))}),e}function ui(){this.SCE_CONTEXTS=l;var s=["self"],u=[];this.trustedResourceUrlList=function(t){return s=arguments.length?si(t):s},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(t){this.trustedResourceUrlList=t}}),this.bannedResourceUrlList=function(t){return u=arguments.length?si(t):u},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(t){this.bannedResourceUrlList=t}}),this.$get=["$injector","$$sanitizeUri",function(t,r){var i=function(t){throw ii("unsafe","Attempting to use an unsafe value in a safe context.")};function o(t,e){return"self"===t?$i(e,bi)||$i(e,function(){if(bt.document.baseURI)return bt.document.baseURI;yi||((yi=bt.document.createElement("a")).href=".",yi=yi.cloneNode(!1));return yi.href}()):t.exec(e.href)}function e(t){function e(t){this.$$unwrapTrustedValue=function(){return t}}return(e.prototype=t?new t:e.prototype).valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}t.has("$sanitize")&&(i=t.get("$sanitize"));var n=e(),a={};return a[l.HTML]=e(n),a[l.CSS]=e(n),a[l.MEDIA_URL]=e(n),a[l.URL]=e(a[l.MEDIA_URL]),a[l.JS]=e(n),a[l.RESOURCE_URL]=e(a[l.URL]),{trustAs:function(t,e){var n=a.hasOwnProperty(t)?a[t]:null;if(!n)throw ii("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||St(e)||""===e)return e;if("string"!=typeof e)throw ii("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(t,e){if(null===e||St(e)||""===e)return e;var n=a.hasOwnProperty(t)?a[t]:null;if(n&&e instanceof n)return e.$$unwrapTrustedValue();if(kt(e.$$unwrapTrustedValue)&&(e=e.$$unwrapTrustedValue()),t===l.MEDIA_URL||t===l.URL)return r(e.toString(),t===l.MEDIA_URL);if(t===l.RESOURCE_URL){if(function(t){for(var e=O(t.toString()),n=!1,r=0,i=s.length;r<i;r++)if(o(s[r],e)){n=!0;break}if(n)for(r=0,i=u.length;r<i;r++)if(o(u[r],e)){n=!1;break}return n}(e))return e;throw ii("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}if(t===l.HTML)return i(e);throw ii("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof n?t.$$unwrapTrustedValue():t}}}]}function li(){var e=!0;this.enabled=function(t){return e=arguments.length?!!t:e},this.$get=["$parse","$sceDelegate",function(r,t){if(e&&It<8)throw ii("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var i=S(l),n=(i.isEnabled=function(){return e},i.trustAs=t.trustAs,i.getTrusted=t.getTrusted,i.valueOf=t.valueOf,e||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=Pt),i.parseAs=function(e,t){var n=r(t);return n.literal&&n.constant?n:r(t,function(t){return i.getTrusted(e,t)})},i.parseAs),o=i.getTrusted,a=i.trustAs;return Et(l,function(e,t){t=C(t);i[ai("parse_as_"+t)]=function(t){return n(e,t)},i[ai("get_trusted_"+t)]=function(t){return o(e,t)},i[ai("trust_as_"+t)]=function(t){return a(e,t)}}),i}]}function ci(){this.$get=["$window","$document",function(t,e){var n={},r=!(!(t.nw&&t.nw.process)&&t.chrome&&(t.chrome.app&&t.chrome.app.runtime||!t.chrome.app&&t.chrome.runtime&&t.chrome.runtime.id))&&t.history&&t.history.pushState,i=y((/android (\d+)/.exec(C((t.navigator||{}).userAgent))||[])[1]),t=/Boxee/i.test((t.navigator||{}).userAgent),o=e[0]||{},e=o.body&&o.body.style,a=!1,s=!1;return e&&(a=!!("transition"in e||"webkitTransition"in e),s=!!("animation"in e||"webkitAnimation"in e)),{history:!(!r||i<4||t),hasEvent:function(t){var e;return("input"!==t||!It)&&(St(n[t])&&(e=o.createElement("div"),n[t]="on"+t in e),n[t])},csp:Q(),transitions:a,animations:s,android:i}}]}function pi(){this.$get=_(function(t){return new di(t)})}function di(o){var a={},r=[],s=this.ALL_TASKS_TYPE="$$all$$",u=this.DEFAULT_TASK_TYPE="$$default$$";function l(){var t=r.pop();return t&&t.cb}function c(t){for(var e=r.length-1;0<=e;--e){var n=r[e];if(n.type===t)return r.splice(e,1),n.cb}}this.completeTask=function(t,e){e=e||u;try{t()}finally{!function(t){a[t=t||u]&&(a[t]--,a[s]--)}(e);var t=a[e],n=a[s];if(!n||!t)for(var r,i=n?c:l;r=i(e);)try{r()}catch(t){o.error(t)}}},this.incTaskCount=function(t){a[t=t||u]=(a[t]||0)+1,a[s]=(a[s]||0)+1},this.notifyWhenNoPendingTasks=function(t,e){a[e=e||s]?r.push({type:e,cb:t}):t()}}var hi=x("$templateRequest");function fi(){var l;this.httpOptions=function(t){return t?(l=t,this):l},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(r,i,o,a,s){function u(e,n){u.totalPendingRequests++,_t(e)&&!St(i.get(e))||(e=s.getTrustedResourceUrl(e));var t=o.defaults&&o.defaults.transformResponse;return Ct(t)?t=t.filter(function(t){return t!==tr}):t===tr&&(t=null),o.get(e,xt({cache:i,transformResponse:t},l)).finally(function(){u.totalPendingRequests--}).then(function(t){return i.put(e,t.data)},function(t){n||(t=hi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",e,t.status,t.statusText),r(t));return a.reject(t)})}return u.totalPendingRequests=0,u}]}function gi(){this.$get=["$rootScope","$browser","$location",function(e,n,r){var t={findBindings:function(t,n,r){var t=t.getElementsByClassName("ng-binding"),i=[];return Et(t,function(e){var t=b.element(e).data("$binding");t&&Et(t,function(t){r?new RegExp("(^|\\s)"+z(n)+"(\\s|\\||$)").test(t)&&i.push(e):-1!==t.indexOf(n)&&i.push(e)})}),i},findModels:function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=t.querySelectorAll("["+r[i]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return r.url()},setLocation:function(t){t!==r.url()&&(r.url(t),e.$digest())},whenStable:function(t){n.notifyWhenNoOutstandingRequests(t)}};return t}]}var mi=x("$timeout");function vi(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(s,u,l,c,p){var d={};function t(t,e,n){kt(t)||(n=e,e=t,t=A);var r=Vt(arguments,3),i=D(n)&&!n,o=(i?c:l).defer(),a=o.promise,n=u.defer(function(){try{o.resolve(t.apply(null,r))}catch(t){o.reject(t),p(t)}finally{delete d[a.$$timeoutId]}i||s.$apply()},e,"$timeout");return a.$$timeoutId=n,d[n]=o,a}return t.cancel=function(t){if(!t)return!1;var e;if(t.hasOwnProperty("$$timeoutId"))return!!d.hasOwnProperty(t.$$timeoutId)&&(t=t.$$timeoutId,ti((e=d[t]).promise),e.reject("canceled"),delete d[t],u.defer.cancel(t));throw mi("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.")},t}]}var yi,n=bt.document.createElement("a"),bi=O(bt.location.href),wi=(n.href="http://[::1]","[::1]"===n.hostname);function O(t){var e;return _t(t)?(e=t,It&&(n.setAttribute("href",e),e=n.href),n.setAttribute("href",e),e=n.hostname,!wi&&-1<e.indexOf(":")&&(e="["+e+"]"),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:e,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}):t}function $i(t,e){return t=O(t),e=O(e),t.protocol===e.protocol&&t.host===e.host}function Ei(){this.$get=_(bt)}function xi(t){var a=t[0]||{},s={},u="";function l(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var t,e,n,r,i,o=function(t){try{return t.cookie||""}catch(t){return""}}(a);if(o!==u)for(t=(u=o).split("; "),s={},n=0;n<t.length;n++)0<(r=(e=t[n]).indexOf("="))&&(i=l(e.substring(0,r)),St(s[i]))&&(s[i]=l(e.substring(r+1)));return s}}function Si(){this.$get=xi}function Ti(r){function i(t,e){var n;return Tt(t)?(n={},Et(t,function(t,e){n[e]=i(e,t)}),n):r.factory(t+"Filter",e)}this.register=i,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],i("currency",Di),i("date",Bi),i("filter",_i),i("json",Vi),i("limitTo",Wi),i("lowercase",qi),i("number",Oi),i("orderBy",zi),i("uppercase",Hi)}function _i(){return function(t,e,n,r){if(!M(t)){if(null==t)return t;throw x("filter")("notarray","Expected array but received: {0}",t)}var i,o;switch(r=r||"$",ki(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":o=!0;case"object":i=function(e,n,r,i){var o=Tt(e)&&r in e;!0===n?n=Ot:kt(n)||(n=function(t,e){return!(St(t)||(null===t||null===e?t!==e:Tt(e)||Tt(t)&&!B(t)||(t=C(""+t),e=C(""+e),-1===t.indexOf(e))))});return function(t){return o&&!Tt(t)?Ci(t,e[r],n,r,!1):Ci(t,e,n,r,i)}}(e,n,r,o);break;default:return t}return Array.prototype.filter.call(t,i)}}function Ci(t,e,n,r,i,o){var a,s=ki(t),u=ki(e);if("string"===u&&"!"===e.charAt(0))return!Ci(t,e.substring(1),n,r,i);if(Ct(t))return t.some(function(t){return Ci(t,e,n,r,i)});switch(s){case"object":if(i){for(a in t)if(a.charAt&&"$"!==a.charAt(0)&&Ci(t[a],e,n,r,!0))return!0;return!o&&Ci(t,e,n,r,!1)}if("object"!==u)return n(t,e);for(a in e){var l=e[a];if(!kt(l)&&!St(l)){var c=a===r;
1if(!Ci(c?t:t[a],l,n,r,c,c))return!1}}return!0;case"function":return!1;default:return n(t,e)}}function ki(t){return null===t?"null":typeof t}xi.$inject=["$document"],Ti.$inject=["$provide"];var Ai="0";function Di(t){var i=t.NUMBER_FORMATS;return function(t,e,n){St(e)&&(e=i.CURRENCY_SYM),St(n)&&(n=i.PATTERNS[1].maxFrac);var r=e?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:Ri(t,i.PATTERNS[1],i.GROUP_SEP,i.DECIMAL_SEP,n).replace(r,e)}}function Oi(t){var n=t.NUMBER_FORMATS;return function(t,e){return null==t?t:Ri(t,n.PATTERNS[0],n.GROUP_SEP,n.DECIMAL_SEP,e)}}function Ri(t,e,n,r,i){if(!_t(t)&&!w(t)||isNaN(t))return"";var o=!isFinite(t),a=!1,s=Math.abs(t)+"",u="";if(o)u="∞";else{var l=o=function(t){var e,n,r,i,o,a=0;for(0<(r=(t=-1<(n=t.indexOf("."))?t.replace(".",""):t).search(/e/i))?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charAt(r)===Ai;r++);if(r===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===Ai;)o--;for(n-=r,e=[],i=0;r<=o;r++,i++)e[i]=+t.charAt(r)}return 22<n&&(e=e.splice(0,21),a=n-1,n=1),{d:e,e:a,i:n}}(s),c=i,s=e.minFrac,i=e.maxFrac,p=l.d,d=p.length-l.i,h=(c=St(c)?Math.min(Math.max(s,d),i):+c)+l.i,s=p[h];if(0<h){p.splice(Math.max(l.i,h));for(var f=h;f<p.length;f++)p[f]=0}else{d=Math.max(0,d),l.i=1,p.length=Math.max(1,h=c+1),p[0]=0;for(var g=1;g<h;g++)p[g]=0}if(5<=s)if(h-1<0){for(var m=0;h<m;m--)p.unshift(0),l.i++;p.unshift(1),l.i++}else p[h-1]++;for(;d<Math.max(0,c);d++)p.push(0);(i=p.reduceRight(function(t,e,n,r){return r[n]=(e+=t)%10,Math.floor(e/10)},0))&&(p.unshift(i),l.i++);for(var v=o.d,y=o.i,s=o.e,i=[],a=v.reduce(function(t,e){return t&&!e},!0);y<0;)v.unshift(0),y++;0<y?i=v.splice(y,v.length):(i=v,v=[0]);var b=[];for(v.length>=e.lgSize&&b.unshift(v.splice(-e.lgSize,v.length).join(""));v.length>e.gSize;)b.unshift(v.splice(-e.gSize,v.length).join(""));v.length&&b.unshift(v.join("")),u=b.join(n),i.length&&(u+=r+i.join("")),s&&(u+="e+"+s)}return t<0&&!a?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function Li(t,e,n,r){var i="";for((t<0||r&&t<=0)&&(r?t=1-t:(t=-t,i="-")),t=""+t;t.length<e;)t=Ai+t;return i+(t=n?t.substr(t.length-e):t)}function t(e,n,r,i,o){return r=r||0,function(t){t=t["get"+e]();return(0<r||-r<t)&&(t+=r),Li(t=0===t&&-12===r?12:t,n,i,o)}}function Ii(n,r,i){return function(t,e){t=t["get"+n]();return e[T((i?"STANDALONE":"")+(r?"SHORT":"")+n)][t]}}function Mi(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}function Pi(n){return function(t){var e=Mi(t.getFullYear()),t=(t=t,new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay())));return Li(1+Math.round((+t-+e)/6048e5),n)}}function Ni(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}Di.$inject=["$locale"];var Fi={yyyy:t("FullYear",4,0,!(Oi.$inject=["$locale"]),!0),yy:t("FullYear",2,0,!0,!0),y:t("FullYear",1,0,!1,!0),MMMM:Ii("Month"),MMM:Ii("Month",!0),MM:t("Month",2,1),M:t("Month",1,1),LLLL:Ii("Month",!1,!0),dd:t("Date",2),d:t("Date",1),HH:t("Hours",2),H:t("Hours",1),hh:t("Hours",2,-12),h:t("Hours",1,-12),mm:t("Minutes",2),m:t("Minutes",1),ss:t("Seconds",2),s:t("Seconds",1),sss:t("Milliseconds",3),EEEE:Ii("Day"),EEE:Ii("Day",!0),a:function(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){var r=0<=(n=-1*n)?"+":"";return r+=Li(Math[0<n?"floor":"ceil"](n/60),2)+Li(Math.abs(n%60),2)},ww:Pi(2),w:Pi(1),G:Ni,GG:Ni,GGG:Ni,GGGG:function(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}},Ui=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,ji=/^-?\d+$/;function Bi(g){var m=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(e,t,n){var r,i,o,a,s,u,l,c,p,d="",h=[];if(t=g.DATETIME_FORMATS[t=t||"mediumDate"]||t,!E(e=w(e=_t(e)?ji.test(e)?y(e):(p=(o=e).match(m))?(a=new Date(0),c=l=0,u=p[8]?a.setUTCFullYear:a.setFullYear,s=p[8]?a.setUTCHours:a.setHours,p[9]&&(l=y(p[9]+p[10]),c=y(p[9]+p[11])),u.call(a,y(p[1]),y(p[2])-1,y(p[3])),u=y(p[4]||0)-l,l=y(p[5]||0)-c,c=y(p[6]||0),p=Math.round(1e3*parseFloat("0."+(p[7]||0))),s.call(a,u,l,c,p),a):o:e)?new Date(e):e)||!isFinite(e.getTime()))return e;for(;t;)t=(i=Ui.exec(t))?(h=Z(h,i,1)).pop():(h.push(t),null);var f=e.getTimezoneOffset();return n&&(f=it(n,f),e=at(e,n,!0)),Et(h,function(t){r=Fi[t],d+=r?r(e,g.DATETIME_FORMATS,f):"''"
1===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}}function Vi(){return function(t,e){return et(t,e=St(e)?2:e)}}Bi.$inject=["$locale"];var qi=_(C),Hi=_(T);function Wi(){return function(t,e,n){return e=(Math.abs(Number(e))===1/0?Number:y)(e),!k(e)&&M(t=w(t)?t.toString():t)?(n=(n=!n||isNaN(n)?0:y(n))<0?Math.max(0,t.length+n):n,0<=e?Gi(t,n,n+e):0===n?Gi(t,e,t.length):Gi(t,Math.max(0,n+e),n)):t}}function Gi(t,e,n){return _t(t)?t.slice(e,n):a.call(t,e,n)}function zi(i){return function(t,e,n,r){if(null!=t){if(!M(t))throw x("orderBy")("notarray","Expected array but received: {0}",t);var o=(e=0===(e=Ct(e)?e:[e]).length?["+"]:e).map(function(t){var e,n=1,r=Pt;return kt(t)?r=t:_t(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t)&&(r=i(t)).constant&&(e=r(),r=function(t){return t[e]}),{get:r,descending:n}}),a=n?-1:1,s=kt(r)?r:l,e=Array.prototype.map.call(t,function(r,i){return{value:r,tieBreaker:{value:i,type:"number",index:i},predicateValues:o.map(function(t){var t=t.get(r),e=i,n=typeof t;return null===t?n="null":"object"===n&&(t=function(t){if(kt(t.valueOf)&&u(t=t.valueOf()))return t;B(t)&&u(t=t.toString());return t}(t)),{value:t,type:n,index:e}})}});e.sort(function(t,e){for(var n=0,r=o.length;n<r;n++){var i=s(t.predicateValues[n],e.predicateValues[n]);if(i)return i*o[n].descending*a}return(s(t.tieBreaker,e.tieBreaker)||l(t.tieBreaker,e.tieBreaker))*a}),t=e.map(function(t){return t.value})}return t};function u(t){switch(typeof t){case"number":case"boolean":case"string":return 1;default:return}}function l(t,e){var n,r,i=0,o=t.type,a=e.type;return o===a?(n=t.value,r=e.value,"string"===o?(n=n.toLowerCase(),r=r.toLowerCase()):"object"===o&&(Tt(n)&&(n=t.index),Tt(r))&&(r=e.index),n!==r&&(i=n<r?-1:1)):i="undefined"!==o&&("undefined"===a||"null"!==o&&("null"===a||o<a))?-1:1,i}}function Ki(t){return(t=kt(t)?{link:t}:t).restrict=t.restrict||"AC",_(t)}zi.$inject=["$parse"];var Yi=_({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){var n;"a"===e[0].nodeName.toLowerCase()&&(n="[object SVGAnimatedString]"===v.call(e.prop("href"))?"xlink:href":"href",e.on("click",function(t){e.attr(n)||t.preventDefault()}))}}}),Xi={},Qi=(Et(He,function(t,r){var i,e;function o(t,e,n){t.$watch(n[i],function(t){n.$set(r,!!t)})}"multiple"!==t&&(i=Mn("ng-"+r),e="checked"===t?function(t,e,n){n.ngModel!==n[i]&&o(t,0,n)}:o,Xi[i]=function(){return{restrict:"A",priority:100,link:e}})}),Et(Ge,function(t,i){Xi[i]=function(){return{priority:100,link:function(t,e,n){if("ngPattern"===i&&"/"===n.ngPattern.charAt(0)){var r=n.ngPattern.match(h);if(r)return void n.$set("ngPattern",new RegExp(r[1],r[2]))}t.$watch(n[i],function(t){n.$set(i,t)})}}}}),Et(["src","srcset","href"],function(a){var s=Mn("ng-"+a);Xi[s]=["$sce",function(o){return{priority:99,link:function(t,e,n){var r=a,i=a;"href"===a&&"[object SVGAnimatedString]"===v.call(e.prop("href"))&&(i="xlinkHref",n.$attr[i]="xlink:href",r=null),n.$set(s,o.getTrustedMediaUrl(n[s])),n.$observe(s,function(t){t?(n.$set(i,t),It&&r&&e.prop(r,n[i])):"href"===a&&n.$set(i,null)})}}}]}),{$addControl:A,$getControls:_([]),$$renameControl:function(t,e){t.$name=e},$removeControl:A,$setValidity:A,$setDirty:A,$setPristine:A,$setSubmitted:A,$$setSubmitted:A}),Ji="ng-pending",Zi="ng-submitted";function to(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Qi,this.$$element=t,this.$$animate=r,io(this)}to.$inject=["$element","$attrs","$scope","$animate","$interpolate"],to.prototype={$rollbackViewValue:function(){Et(this.$$controls,function(t){t.$rollbackViewValue()})},$commitViewValue:function(){Et(this.$$controls,function(t){t.$commitViewValue()})},$addControl:function(t){Yt(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls:function(){return S(this.$$controls)},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],(this[e]=t).$name=e},$removeControl:function(n){n.$name&&this[n.$name]===n&&delete this[n.$name],Et(this.$pending,function(t,e){this.$setValidity(e,null,n)},this),Et(this.$error,function(t,e){this.$setValidity(e,null,n)}
1,this),Et(this.$$success,function(t,e){this.$setValidity(e,null,n)},this),jt(this.$$controls,n),n.$$parentForm=Qi},$setDirty:function(){this.$$animate.removeClass(this.$$element,Zo),this.$$animate.addClass(this.$$element,ta),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Zo,ta+" "+Zi),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,Et(this.$$controls,function(t){t.$setPristine()})},$setUntouched:function(){Et(this.$$controls,function(t){t.$setUntouched()})},$setSubmitted:function(){for(var t=this;t.$$parentForm&&t.$$parentForm!==Qi;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,Zi),this.$submitted=!0,Et(this.$$controls,function(t){t.$$setSubmitted&&t.$$setSubmitted()})}},oo({clazz:to,set:function(t,e,n){var r=t[e];r?-1===r.indexOf(n)&&r.push(n):t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(jt(r,n),0===r.length)&&delete t[e]}});function eo(n){return["$timeout","$parse",function(u,e){return{name:"form",restrict:n?"EAC":"E",require:["form","^^?form"],controller:to,compile:function(t,e){t.addClass(Zo).addClass(Qo);var s=e.name?"name":!(!n||!e.ngForm)&&"ngForm";return{pre:function(e,t,n,r){var i,o=r[0];"action"in n||(t[0].addEventListener("submit",i=function(t){e.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),t.preventDefault()}),t.on("$destroy",function(){u(function(){t[0].removeEventListener("submit",i)},0,!1)}));(r[1]||o.$$parentForm).$addControl(o);var a=s?l(o.$name):A;s&&(a(e,o),n.$observe(s,function(t){o.$name!==t&&(a(e,void 0),o.$$parentForm.$$renameControl(o,t),(a=l(o.$name))(e,o))})),t.on("$destroy",function(){o.$$parentForm.$removeControl(o),a(e,void 0),xt(o,Qi)})}}}};function l(t){return""===t?e('this[""]').assign:e(t).assign||A}}]}var no=eo(),ro=eo(!0);function io(t){t.$$classCache={},t.$$classCache[Jo]=!(t.$$classCache[Qo]=t.$$element.hasClass(Qo))}function oo(t){var e=t.clazz,s=t.set,u=t.unset;function l(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function c(t,e,n){e=e?"-"+Wt(e,"-"):"",l(t,Qo+e,!0===n),l(t,Jo+e,!1===n)}e.prototype.$setValidity=function(t,e,n){var r,i,o,a;St(e)?(r=t,i=n,(o=this)[a="$pending"]||(o[a]={}),s(o[a],r,i)):(o=t,a=n,(r=this)[i="$pending"]&&u(r[i],o,a),ao(r[i])&&(r[i]=void 0)),(Ut(e)?e?(u(this.$error,t,n),s):(s(this.$error,t,n),u):(u(this.$error,t,n),u))(this.$$success,t,n),this.$pending?(l(this,Ji,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(l(this,Ji,!1),this.$valid=ao(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),c(this,t,e=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,e,this)}}function ao(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var so=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,uo=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,lo=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[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])?)*$/,co=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,i=/^(\d{4,})-(\d{2})-(\d{2})$/,po=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ho=/^(\d{4,})-W(\d\d)$/,fo=/^(\d{4,})-(\d\d)$/,go=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,mo="keydown wheel mousedown",vo=Rt(),yo=(Et("date,datetime-local,month,time,week".split(","),function(t){vo[t]=!0}),{text:function(t,e,n,r,i,o){wo(0,e,n,r,i,o),bo(r)},date:Eo("date",i,$o(i,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Eo("datetimelocal",po,$o(po,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Eo("time",go,$o(go,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Eo("week",ho,function(t,e){if(E(t))return t;if(_t(t)){ho.lastIndex=0;var n,r,i,o,a,s,t=ho.exec(t);if(t)return n=+t[1],t=+t[2],a=o=i=r=0,s=Mi(n),t=7*(t-1),e&&(r=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(n,0,s.getDate()+t,r,i,o,a)}return NaN},"yyyy-Www"),month:Eo("month",fo,$o(fo,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,r,i,o,a,s){var u;{var l;xo(0,e,0,r,"number"),So(r),wo(0,e,n,r,i,o),(D(n.min)||n.ngMin)&&(l=n.min||s(n.ngMin)(t),u=f(l),r.$validators.min=function(t,e){return r.$isEmpty(e)||St(u)||u<=e},n.$observe("min",function(t){t!==l&&(u=f(t),l=t,r.$validate())}))}{var c,p;(D(n.max)||n.ngMax)&&(c=n.max||s(n.ngMax)(t),p=f(c),r.$validators.max=function(t,e){return r.$isEmpty(e)||St(p)||e<=p},n.$observe("max",function(t){t!==c&&(p=f(t),c=t,r.$validate())}))}{var d,h;(D(n.step)||n.ngStep)&&(d=n.step||s(n.ngStep)(t),h=f(d),r.$validators.step=function(t,e){return r.$isEmpty(e)||St(h)||Co(e,u||0,h)},n.$observe("step",function(t){t!==d&&(h=f(t),d=t,r.$validate())}))}},url:function(t,e,n,r,i,o){wo(0,e,n,r,i,o),bo(r),r.$validators.url=function(t,e){t=t||e;return r.$isEmpty(t)||uo.test(t)}},email:function(t,e,n,r,i,o){wo(0,e,n,r,i,o),bo(r),r.$validators.email=function(t,e){t=t||e;return r.$isEmpty(t)||lo.test(t)}},radio:function(t,n,r,i){var o=!r.ngTrim||"false"!==At(r.ngTrim);St(r.name)&&n.attr("name",N());n.on("change",function(t){var e;n[0].checked&&(e=r.value,o&&(e=At(e)),i.$setViewValue(e,t&&t.type))}),i.$render=function(){var t=r.value;o&&(t=At(t)),n[0].checked=t===i.$viewValue},r.$observe("value",i.$render)},range:function(t,r,i,n,e,o){xo(0,r,0,n,"range"),So(n),wo(0,r,i,n,e,o);var a=n.$$hasNativeValidators&&"range"===r[0].type,s=a?0:void 0,u=a?100:void 0,l=a?1:void 0,c=r[0].validity,t=D(i.min),e=D(i.max),o=D(i.step),p=n.$render;n.$render=a&&D(c.rangeUnderflow)&&D(c.rangeOverflow)?function(){p(),n.$setViewValue(r.val())}:p,t&&(s=f(i.min),n.$validators.min=a?function(){return!0}:function(t,e){return n.$isEmpty(e)||St(s)||s<=e},d("min",function(t){s=f(t),k(n.$modelValue)||(a?((t=r.val())<s&&(t=s,r.val(t)),n.$setViewValue(t)):n.$validate())}));e&&(u=f(i.max),n.$validators.max=a?function(){return!0}:function(t,e){return n.$isEmpty(e)||St(u)||e<=u},d("max",function(t){u=f(t),k(n.$modelValue)||(a?(t=r.val(),u<t&&(r.val(u),t=u<s?s:u),n.$setViewValue(t)):n.$validate())}));o&&(l=f(i.step),n.$validators.step=a?function(){return!c.stepMismatch}:function(t,e){return n.$isEmpty(e)||St(l)||Co(e,s||0,l)},d("step",function(t){l=f(t),k(n.$modelValue)||(a?n.$viewValue!==r.val()&&n.$setViewValue(r.val()):n.$validate())}));function d(t,e){r.attr(t,i[t]);var n=i[t];i.$observe(t,function(t){t!==n&&e(n=t)})}},checkbox:function(t,e,n,r,i,o,a,s){var u=ko(s,t,"ngTrueValue",n.ngTrueValue,!0),l=ko(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",function(t){r.$setViewValue(e[0].checked,t&&t.type)}),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(function(t){return Ot(t,u)}),r.$parsers.push(function(t){return t?u:l})},hidden:A,button:A,submit:A,reset:A,file:A});function bo(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function wo(t,n,r,i,e,o){var a,s,u,l=C(n[0].type),c=(e.android||(a=!1,n.on("compositionstart",function(){a=!0}),n.on("compositionupdate",function(t){!St(t.data)&&""!==t.data||(a=!1)}),n.on("compositionend",function(){a=!1,c()})),function(t){var e;s&&(o.defer.cancel(s),s=null),!a&&(e=n.val(),t=t&&t.type,"password"===l||r.ngTrim&&"false"===r.ngTrim||(e=At(e)),i.$viewValue!==e||""===e&&i.$$hasNativeValidators)&&i.$setViewValue(e,t)});e.hasEvent("input")?n.on("input",c):(u=function(t,e,n){s=s||o.defer(function(){s=null,e&&e.value===n||c(t)})},n.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||u(t,this,this.value)}),e.hasEvent("paste")&&n.on("paste cut drop",u)),n.on("change",c),vo[l]&&i.$$hasNativeValidators&&l===r.type&&n.on(mo,function(t){var e,n,r;s||(e=this[g],n=e.badInput,r=e.typeMismatch,s=o.defer(function(){s=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}),i.$render=function(){var t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;n.val()!==t&&n.val(t)}}function $o(r,i){return function(t,e){var n;if(E(t))return t;if(_t(t)){if('"'===t.charAt(0)&&'"'===t.charAt(t.length-1)&&(t=t.substring(1,t.length-1)),so.test(t))return new Date(t);if(r.lastIndex=0,t=r.exec(t))return t.shift(),n=e?{yyyy:e.getFullYear(),MM:e.getMonth()+1,dd:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds(),sss:e.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Et(t,function(t,e){e<i.length&&(n[i[e]]=+t)}),e=new Date(n.yyyy,n.MM-1,n.dd,n.HH,n.mm,n.ss||0,1e3*n.sss||0),n.yyyy<100&&e.setFullYear(n.yyyy),e}return NaN}}function Eo(y,b,w,$){return function(t,e,n,r,i,o,a,s){xo(0,e,0,r,y),wo(0,e,n,r,i,o);var u,l,c,p,d,h,f="time"===y||"datetimelocal"===y;function g(t){return t&&(!t.getTime||t.getTime()===t.getTime())}function m(t){return D(t)&&!E(t)?v(t)||void 0:t}function v(t,e){var n=r.$options.getOption("timezone"),t=(l&&l!==n&&(e=ot(e,it(l))),w(t,e));return t=!isNaN(t)&&n?at(t,n):t}r.$parsers.push(function(t){return r.$isEmpty(t)?null:b.test(t)?v(t,u):void(r.$$parserName=y)}),r.$formatters.push(function(t){if(t&&!E(t))throw oa("datefmt","Expected `{0}` to be a date",t);var e,n;return g(t)?(u=t,(e=r.$options.getOption("timezone"))&&(u=at(u,l=e,!0)),t=t,e=e,n=$,f&&_t(r.$options.getOption("timeSecondsFormat"))&&(n=$.replace("ss.sss",r.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),t=a("date")(t,n,e),t=f&&r.$options.getOption("timeStripZeroSeconds")?t.replace(/(?::00)?(?:\.000)?$/,""):t):(l=u=null,"")}),(D(n.min)||n.ngMin)&&(c=n.min||s(n.ngMin)(t),p=m(c),r.$validators.min=function(t){return!g(t)||St(p)||w(t)>=p},n.$observe("min",function(t){t!==c&&(p=m(t),c=t,r.$validate())})),(D(n.max)||n.ngMax)&&(d=n.max||s(n.ngMax)(t),h=m(d),r.$validators.max=function(t){return!g(t)||St(h)||w(t)<=h},n.$observe("max",function(t){t!==d&&(h=m(t),d=t,r.$validate())}))}}function xo(t,n,e,r,i){var o=n[0];(r.$$hasNativeValidators=Tt(o.validity))&&r.$parsers.push(function(t){var e=n.prop(g)||{};if(!e.badInput&&!e.typeMismatch)return t;r.$$parserName=i})}function So(e){e.$parsers.push(function(t){return e.$isEmpty(t)?null:co.test(t)?parseFloat(t):void(e.$$parserName="number")}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!w(t))throw oa("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function f(t){return D(t)&&!w(t)&&(t=parseFloat(t)),k(t)?void 0:t}function To(t){return(0|t)===t}function _o(t){var e=t.toString(),n=e.indexOf(".");if(-1!==n)return e.length-n-1;if(-1<t&&t<1){n=/e-(\d+)$/.exec(e);if(n)return Number(n[1])}return 0}function Co(t,e,n){var r,i,o,t=Number(t),a=!To(t),s=!To(e),u=!To(n);return(a||s||u)&&(i=a?_o(t):0,o=s?_o(e):0,r=u?_o(n):0,i=Math.max(i,o,r),t*=o=Math.pow(10,i),e*=o,n*=o,a&&(t=Math.round(t)),s&&(e=Math.round(e)),u)&&(n=Math.round(n)),(t-e)%n==0}function ko(t,e,n,r,i){if(D(r)){if((t=t(r)).constant)return t(e);throw oa("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r)}return i}function Ao(){var i={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile:function(t,e){if("hidden"===C(e.type))return{pre:function(t,e,n,r){e=e[0];e.parentNode&&e.parentNode.insertBefore(e,e.nextSibling),Object.defineProperty&&Object.defineProperty(e,"value",i)}}}}}function Do(){function r(t,e,n){var r=D(n)?n:9===It?"":null;t.prop("value",r),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,e){return Ro.test(e.ngValue)?function(t,e,n){r(e,n,t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){r(e,n,t)})}}}}var Oo=["$browser","$sniffer","$filter","$parse",function(i,o,a,s){return{restrict:"E",require:["?ngModel"],link:{pre:function(t,e,n,r){r[0]&&(yo[C(n.type)]||yo.text)(t,e,n,r[0],o,i,a,s)}}}}],Ro=/^(true|false|\d+)$/,Lo=["$compile",function(r){return{restrict:"AC",compile:function(t){return r.$$addBindingClass(t),function(t,e,n){r.$$addBindingInfo(e,n.ngBind),e=e[0],t.$watch(n.ngBind,function(t){e.textContent=Qt(t)})}}}}],Io=["$interpolate","$compile",function(i,o){return{compile:function(t){return o.$$addBindingClass(t),function(t,e,n){var r=i(e.attr(n.$attr.ngBindTemplate));o.$$addBindingInfo(e,r.expressions),e=e[0],n.$observe("ngBindTemplate",function(t){e.textContent=St(t)?"":t})}}}}],Mo=["$sce","$parse","$compile",function(o,n,a){return{restrict:"A",compile:function(t,e){var r=n(e.ngBindHtml),i=n(e.ngBindHtml,function(t){return o.valueOf(t)});return a.$$addBindingClass(t),function(e,n,t){a.$$addBindingInfo(n,t.ngBindHtml),e.$
1watch(i,function(){var t=r(e);n.html(o.getTrustedHtml(t)||"")})}}}}],Po=_({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}});function No(u,l){var c;return u="ngClass"+u,["$parse",function(s){return{restrict:"AC",link:function(t,e,r){var n,i=e.data("$classCounts"),o=!0;function a(t,e){var n=[];return Et(t,function(t){(0<e||i[t])&&(i[t]=(i[t]||0)+e,i[t]===+(0<e))&&n.push(t)}),n.join(" ")}i||(i=Rt(),e.data("$classCounts",i)),"ngClass"!==u&&(c=c||s("$index",function(t){return 1&t}),t.$watch(c,function(t){(t===l?function(t){t=a(d(t),1),r.$addClass(t)}:function(t){t=a(d(t),-1),r.$removeClass(t)})(n);o=t})),t.$watch(s(r[u],h),function(t){o===l&&!function(t,e){var t=d(t),e=d(e),n=p(t,e),e=p(e,t),t=a(n,-1),n=a(e,1);r.$addClass(n),r.$removeClass(t)}(n,t);n=t})}}}];function p(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[];t:for(var r=0;r<t.length;r++){for(var i=t[r],o=0;o<e.length;o++)if(i===e[o])continue t;n.push(i)}return n}function d(t){return t&&t.split(" ")}function h(e){var t;return e&&(Ct(t=e)?t=e.map(h).join(" "):Tt(e)?t=Object.keys(e).filter(function(t){return e[t]}).join(" "):_t(e)||(t=e+""),t)}}var Fo=No("",!0),Uo=No("Odd",0),jo=No("Even",1),Bo=Ki({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),Vo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],qo={},Ho={blur:!0,focus:!0};function Wo(n,i,o,a,s,u){return{restrict:"A",compile:function(t,e){var r=n(e[a]);return function(n,t){t.on(s,function(t){function e(){r(n,{$event:t})}if(i.$$phase)if(u)n.$evalAsync(e);else try{e()}catch(t){o(t)}else n.$apply(e)})}}}}Et("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(r){var i=Mn("ng-"+r);qo[i]=["$parse","$rootScope","$exceptionHandler",function(t,e,n){return Wo(t,e,n,i,r,Ho[r])}]});function Go(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,r){var i=n.ngList||", ",o="false"!==n.ngTrim,a=o?At(i):i;r.$parsers.push(function(t){var e;if(!St(t))return e=[],t&&Et(t.split(a),function(t){t&&e.push(o?At(t):t)}),e}),r.$formatters.push(function(t){if(Ct(t))return t.join(i)}),r.$isEmpty=function(t){return!t||!t.length}}}}var zo=["$animate","$compile",function(u,l){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(t,n,r,e,i){var o,a,s;t.$watch(r.ngIf,function(t){t?a||i(function(t,e){a=e,t[t.length++]=l.$$createComment("end ngIf",r.ngIf),o={clone:t},u.enter(t,n.parent(),n)}):(s&&(s.remove(),s=null),a&&(a.$destroy(),a=null),o&&(s=Xt(o.clone),u.leave(s).done(function(t){!1!==t&&(s=null)}),o=null))})}}}],Ko=["$templateRequest","$anchorScroll","$animate",function(g,m,v){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:b.noop,compile:function(t,e){var n=e.ngInclude||e.src,h=e.onload||"",f=e.autoscroll;return function(o,a,t,s,u){function l(){e&&(e.remove(),e=null),c&&(c.$destroy(),c=null),p&&(v.leave(p).done(function(t){!1!==t&&(e=null)}),e=p,p=null)}var c,e,p,d=0;o.$watch(n,function(n){function r(t){!1===t||!D(f)||f&&!o.$eval(f)||m()}var i=++d;n?(g(n,!0).then(function(t){var e;o.$$destroyed||i===d&&(e=o.$new(),s.template=t,t=u(e,function(t){l(),v.enter(t,null,a).done(r)}),p=t,(c=e).$emit("$includeContentLoaded",n),o.$eval(h))},function(){o.$$destroyed||i===d&&(l(),o.$emit("$includeContentError",n))}),o.$emit("$includeContentRequested",n)):(l(),s.template=null)})}}}}],Yo=["$compile",function(i){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,e,n,r){v.call(e[0]).match(/SVG/)?(e.empty(),i(Se(r.template,bt.document).childNodes)(t,function(t){e.append(t)},{futureParentElement:e})):(e.html(r.template),i(e.contents())(t))}}}],Xo=Ki({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Qo="ng-valid",Jo="ng-invalid",Zo="ng-pristine",ta="ng-dirty",ea="ng-untouched",na="ng-touched",ra="ng-empty",ia="ng-not-empty",oa=x("ngModel");function aa(t,e,n,r,i,o,a,s,u){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(t),this.$$parentForm=Qi,this.$options=pa,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=e,io(this),(l=this).$$scope.$watch(function(t){t=l.$$ngModelGet(t);return t===l.$modelValue||l.$modelValue!=l.$modelValue&&t!=t||l.$$setModelValue(t),t})}aa.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],aa.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var n=this.$$parse(this.$$attr.ngModel+"()"),r=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var e=this.$$parsedNgModel(t);return e=kt(e)?n(t):e},this.$$ngModelSet=function(t,e){kt(this.$$parsedNgModel(t))?r(t,{$$$p:e}):this.$$parsedNgModelAssign(t,e)}}else if(!this.$$parsedNgModel.assign)throw oa("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Ht(this.$$element))},$render:A,$isEmpty:function(t){return St(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,ia),this.$$animate.addClass(this.$$element,ra)):(this.$$animate.removeClass(this.$$element,ra),this.$$animate.addClass(this.$$element,ia))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,ta),this.$$animate.addClass(this.$$element,Zo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Zo),this.$$animate.addClass(this.$$element,ta),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,ea,na)},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,na,ea)},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){var t,e,n,r,i,o;k(this.$modelValue)||(t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),(o=this).$$runValidators(e,t,function(t){i||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==r&&o.$$writeModelToScope())}))},$$runValidators:function(n,r,e){this.$$currentValidationRunId++;var i,o,a,s=this.$$currentValidationRunId,u=this;function l(t,e){s===u.$$currentValidationRunId&&u.$setValidity(t,e)}function t(t){s===u.$$currentValidationRunId&&e(t)}!function(){var t=u.$$parserName;{if(!St(u.$$parserValid))return u.$$parserValid||(Et(u.$validators,function(t,e){l(e,null)}),Et(u.$asyncValidators,function(t,e){l(e,null)})),l(t,u.$$parserValid),u.$$parserValid;l(t,null)}return 1}()||(i=!0,Et(u.$validators,function(t,e){t=Boolean(t(n,r));i=i&&t,l(e,t)}),!i&&(Et(u.$asyncValidators,function(t,e){l(e,null)}),1))?t(!1):(o=[],a=!0,Et(u.$asyncValidators,function(t,e){t=t(n,r);if(!W(t))throw oa("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",t);l(e,void 0),o.push(t.then(function(){l(e,!0)},function(){l(e,a=!1)}))}),o.length?u.$$q.all(o).then(function(){t(a)},A):t(!0))},$commitViewValue:function(){var t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,n=this;if(this.$$parserValid=!St(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var t=0;t<this.$parsers.length;t++)if(St(e=this.$parsers[t](e))){this.$$parserValid=!1;break}k(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$
1scope));var r=this.$modelValue,i=this.$options.getOption("allowInvalid");function o(){n.$modelValue!==r&&n.$$writeModelToScope()}this.$$rawModelValue=e,i&&(this.$modelValue=e,o()),this.$$runValidators(e,this.$$lastCommittedViewValue,function(t){i||(n.$modelValue=t?e:void 0,o())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),Et(this.$viewChangeListeners,function(t){try{t()}catch(t){this.$$exceptionHandler(t)}},this)},$setViewValue:function(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)},$$debounceViewValueCommit:function(t){var e=this.$options.getOption("debounce"),n=(w(e[t])?e=e[t]:w(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:w(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce),this);0<e?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},e):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()},$processModelValue:function(){var t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,A))},$$format:function(){for(var t=this.$formatters,e=t.length,n=this.$modelValue;e--;)n=t[e](n);return n},$$setModelValue:function(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},oo({clazz:aa,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var sa=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:aa,priority:1,compile:function(t){return t.addClass(Zo).addClass(ea).addClass(Qo),{pre:function(t,e,n,r){var i=r[0],o=r[1]||i.$$parentForm,r=r[2];r&&(i.$options=r.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(t){i.$name!==t&&i.$$parentForm.$$renameControl(i,t)}),t.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,e,n,r){var i=r[0];function o(){i.$setTouched()}i.$$setUpdateOnEvents(),e.on("blur",function(){i.$touched||(a.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],ua=/(\s+|^)default(\s+|$)/;function la(t){this.$$options=t}la.prototype={getOption:function(t){return this.$$options[t]},createChild:function(n){var r=!1;return Et(n=xt({},n),function(t,e){"$inherit"===t?"*"===e?r=!0:(n[e]=this.$$options[e],"updateOn"===e&&(n.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===e&&(n.updateOnDefault=!1,n[e]=At(t.replace(ua,function(){return n.updateOnDefault=!0," "})))},this),r&&(delete n["*"],da(n,this.$$options)),da(n,pa.$$options),new la(n)}};function ca(){function t(t,e){this.$$attrs=t,this.$$scope=e}return t.$inject=["$attrs","$scope"],t.prototype={$onInit:function(){var t=this.parentCtrl?this.parentCtrl.$options:pa,e=this.$$
1scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}}var pa=new la({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});function da(n,t){Et(t,function(t,e){D(n[e])||(n[e]=t)})}var ha=Ki({terminal:!0,priority:1e3}),fa=x("ngOptions"),ga=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,ma=["$compile","$document","$parse",function(g,m,$){var v=bt.document.createElement("option"),y=bt.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=A},post:function(t,o,e,n){for(var a=n[0],s=n[1],u=e.multiple,r=0,i=o.children(),l=i.length;r<l;r++)if(""===i[r].value){a.hasEmptyOption=!0,a.emptyOption=i.eq(r);break}o.empty();var c,n=!!a.emptyOption,p=(wt(v.cloneNode(!1)).val("?"),function(t,e,l){var n,r,i,c,o,p,a,d,h,f,g,m,v,s,y,u=t.match(ga);if(u)return n=u[5]||u[7],r=u[6],i=/ as /.test(u[0])&&u[1],c=u[9],o=$(u[2]?u[1]:n),p=i&&$(i)||o,a=c&&$(c),d=c?function(t,e){return a(l,e)}:function(t){return Ze(t)},h=function(t,e){return d(t,y(t,e))},f=$(u[2]||u[1]),g=$(u[3]||""),m=$(u[4]||""),v=$(u[8]),s={},y=r?function(t,e){return s[r]=e,s[n]=t,s}:function(t){return s[n]=t,s},{trackBy:c,getTrackByValue:h,getWatchables:$(v,function(t){for(var e=[],n=w(t=t||[]),r=n.length,i=0;i<r;i++){var o=t===n?i:n[i],a=t[o],o=y(a,o),a=d(a,o);e.push(a),(u[2]||u[1])&&(a=f(l,o),e.push(a)),u[4]&&(a=m(l,o),e.push(a))}return e}),getOptions:function(){for(var t=[],e={},n=v(l)||[],r=w(n),i=r.length,o=0;o<i;o++){var a=n===r?o:r[o],s=n[a],s=y(s,a),a=p(l,s),u=d(a,s),a=new b(u,a,f(l,s),g(l,s),m(l,s));t.push(a),e[u]=a}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[h(t)]},getViewValueFromOption:function(t){return c?X(t.viewValue):t.viewValue}}}};throw fa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Ht(e));function b(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function w(t){var e;if(!r&&M(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}}(e.ngOptions,o,t)),d=m[0].createDocumentFragment();function h(t,e){var n=v.cloneNode(!1),e=(e.appendChild(n),t),t=n;(e.element=t).disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function f(t){var t=c.getOptionFromViewValue(t),e=t&&t.element;return e&&!e.selected&&(e.selected=!0),t}a.generateUnknownOptionValue=function(t){return"?"},u?(a.writeValue=function(t){var e;c&&(e=t&&t.map(f)||[],c.items.forEach(function(t){t.element.selected&&!Y(e,t)&&(t.element.selected=!1)}))},a.readValue=function(){var t=o.val()||[],e=[];return Et(t,function(t){t=c.selectValueMap[t];t&&!t.disabled&&e.push(c.getViewValueFromOption(t))}),e},p.trackBy&&t.$watchCollection(function(){if(Ct(s.$viewValue))return s.$viewValue.map(function(t){return p.getTrackByValue(t)})},function(){s.$render()})):(a.writeValue=function(t){var e,n;c&&(e=o[0].options[o[0].selectedIndex],n=c.getOptionFromViewValue(t),e&&e.removeAttribute("selected"),n?(o[0].value!==n.selectValue&&(a.removeUnknownOption(),o[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):a.selectUnknownOrEmptyOption(t))},a.readValue=function(){var t=c.selectValueMap[o.val()];return t&&!t.disabled?(a.unselectEmptyOption(),a.removeUnknownOption(),c.getViewValueFromOption(t)):null},p.trackBy&&t.$watch(function(){return p.getTrackByValue(s.$viewValue)},function(){s.$render()})),n&&(g(a.emptyOption)(t),o.prepend(a.emptyOption),a.emptyOption[0].nodeType===te?(a.hasEmptyOption=!1,a.registerOption=function(t,e){""===e.val()&&(a.hasEmptyOption=!0,a.emptyOption=e,a.emptyOption.removeClass("ng-scope"),s.$render(),e.on("$destroy",function(){var t=a.$isEmptyOptionSelected();a.hasEmptyOption=!1,a.emptyOption=void 0,t&&s.$render()}))}):a.emptyOption.removeClass("ng-scope")),t.$watchCollection(p.getWatchables,function(){var t=c&&a.readValue();if(c)for(var e=c.items.length-1;0<=e;e--){var n=c.items[e];D(n.group)?Be(n.element.parentNode):Be(n.element)}c=p.getOptions();var r={};{var i;
1c.items.forEach(function(t){var e;D(t.group)?((e=r[t.group])||(e=y.cloneNode(!1),d.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e),h(t,e)):h(t,d)}),o[0].appendChild(d),s.$render(),s.$isEmpty(t)||(i=a.readValue(),p.trackBy||u?Ot(t,i):t===i)||(s.$setViewValue(i),s.$render())}})}}}}],va=["$locale","$interpolate","$log",function(f,g,m){var v=/{}/g,y=/^when(Minus)?(.+)$/;return{link:function(r,i,o){var a,t=o.count,s=o.$attr.when&&i.attr(o.$attr.when),u=o.offset||0,l=r.$eval(s)||{},c={},e=g.startSymbol(),n=g.endSymbol(),p=e+t+"-"+u+n,d=b.noop;function h(t){i.text(t||"")}Et(o,function(t,e){var n=y.exec(e);n&&(n=(n[1]?"-":"")+C(n[2]),l[n]=i.attr(o.$attr[e]))}),Et(l,function(t,e){c[e]=g(t.replace(v,p))}),r.$watch(t,function(t){var e=parseFloat(t),n=k(e);(e=n||e in l?e:f.pluralCat(e-u))===a||n&&k(a)||(d(),St(n=c[e])?(null!=t&&m.debug("ngPluralize: no rule defined for '"+e+"' in "+s),d=A,h()):d=r.$watch(n,h),a=e)})}}}],ya=x("ngRef"),ba=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,i){var o=Mn(Dt(t)),a=e(i.ngRef),s=a.assign||function(){throw y
1a("nonassign",'Expression in ngRef="{0}" is non-assignable!',i.ngRef)};return function(t,e,n){var r;if(n.hasOwnProperty("ngRefRead")){if("$element"===n.ngRefRead)r=e;else if(!(r=e.data("$"+n.ngRefRead+"Controller")))throw ya("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',n.ngRefRead,i.ngRef)}else r=e.data("$"+o+"Controller");s(t,r=r||e),e.on("$destroy",function(){a(t)===r&&s(t,null)})}}}}],wa=["$parse","$animate","$compile",function(a,A,s){function D(t,e,n,r,i,o,a){t[n]=r,i&&(t[i]=o),t.$index=e,t.$first=0===e,t.$last=e===a-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0==(1&e))}function O(t,e,n){return Ze(n)}function R(t,e){return e}var L="$$NG_REMOVED",I=x("ngRepeat");return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,e){var E=e.ngRepeat,x=s.$$createComment("end ngRepeat",E),e=E.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!e)throw I("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",E);var n=e[1],r=e[2],S=e[3],i=e[4];if(!(e=n.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw I("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",n);var T,o,_,C=e[3]||e[1],k=e[2];if(!S||/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(S)&&!/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(S))return i&&(T={$id:Ze},o=a(i),_=function(t,e,n,r){return k&&(T[k]=e),T[C]=n,T.$index=r,o(t,T)}),function(y,b,t,e,w){var $=Rt();y.$watchCollection(r,function(t){var n,e,r,i,o,a,s,u,l,c,p,d,h,f,g=b[0],m=Rt();if(S&&(y[S]=t),M(t))l=t,u=_||O;else for(var v in u=_||R,l=[],t)$t.call(t,v)&&"$"!==v.charAt(0)&&l.push(v);for(i=l.length,p=new Array(i),n=0;n<i;n++)if(o=t===l?n:l[n],a=t[o],s=u(y,o,a,n),$[s])c=$[s],delete $[s],m[s]=c,p[n]=c;else{if(m[s])throw Et(p,function(t){t&&t.scope&&($[t.id]=t)}),I("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",E,s,a);p[n]={id:s,scope:void 0,clone:void 0},m[s]=!0}for(h in T&&(T[C]=void 0),$){if(d=Xt((c=$[h]).clone),A.leave(d),d[0].parentNode)for(n=0,e=d.length;n<e;n++)d[n][L]=!0;c.scope.$destroy()}for(n=0;n<i;n++)if(o=t===l?n:l[n],a=t[o],(c=p[n]).scope){for(r=g;(r=r.nextSibling)&&r[L];);c.clone[0]!==r&&A.move(Xt(c.clone),null,g),g=(f=c).clone[f.clone.length-1],D(c.scope,n,C,a,k,o,i)}else w(function(t,e){c.scope=e;e=x.cloneNode(!1);t[t.length++]=e,A.enter(t,null,g),g=e,c.clone=t,m[c.id]=c,D(c.scope,n,C,a,k,o,i)});$=m})};throw I("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",S)}}}],$a="ng-hide",Ea="ng-hide-animate",xa=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngShow,function(t){r[t?"removeClass":"addClass"](e,$a,{tempClasses:Ea})})}}}],Sa=["$animate",function(r){return{restrict:"A",multiElement:!0,link:function(t,e,n){t.$watch(n.ngHide,function(t){r[t?"addClass":"removeClass"](e,$a,{tempClasses:Ea})})}}}],Ta=Ki(function(t,n,e){t.$watchCollection(e.ngStyle,function(t,e){e&&t!==e&&Et(e,function(t,e){n.css(e,"")}),t&&n.css(t)})}),_a=["$animate","$compile",function(l,c){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(t,e,n,i){var o,n=n.ngSwitch||n.on,a=[],s=[],u=[];t.$watch(n,function(t){for(var e,n;s.length;)l.cancel(s.pop());for(e=0,n=u.length;e<n;++e){var r=Xt(a[e].clone);u[e].$destroy(),(s[e]=l.leave(r)).done(function(e,n){return function(t){!1!==t&&e.splice(n,1)}}(s,e))}a.length=0,u.length=0,(o=i.cases["!"+t]||i.cases["?"])&&Et(o,function(n){n.transclude(function(t,e){u.push(e);e=n.element;t[t.length++]=c.$$createComment("end ngSwitchWhen"),a.push({clone:t}),l.enter(t,e.parent(),e)})})})}}}],Ca=Ki({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){Et(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(t,e,n){return n[e-1]!==t}),function(t){r.cases["!"+t]=r.cases["!"+t]||[],r.cases["!"+t].push({transclude:i,element:e})})}}),ka=Ki({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Aa=x("ngTransclude"),Da=["$compile",function(e){return{restrict:"EAC",compile:function(t){var a=e(t.contents());return t.empty(),function(t,n,e,r,i){if(!i)throw Aa("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Ht(n));e.ngTransclude===e.$attr.ngTransclude&&(e.ngTransclude="");e=e.ngTransclude||e.ngTranscludeSlot;function o(){a(t,function(t){n.append(t)})}i(function(t,e){t.length&&function(t){for(var e=0,n=t.length;e<n;e++){var r=t[e];if(r.nodeType!==Zt||r.nodeValue.trim())return 1}}(t)?n.append(t):(o(),e.$destroy())},null,e),e&&!i.isSlotFilled(e)&&o()}}}}],Oa=["$templateCache",function(n){return{restrict:"E",terminal:!0,compile:function(t,e){"text/ng-template"===e.type&&(e=e.id,t=t[0].text,n.put(e,t))}}}],Ra={$setViewValue:A,$render:A};function La(t,e){t.prop("selected",e),t.attr("selected",e)}function Ia(){return{restrict:"E",require:["select","?ngModel"],controller:Pa,priority:1,link:{pre:function(t,r,e,n){var i,o,a=n[0],s=n[1];s?(a.ngModelCtrl=s,r.on("change",function(){a.removeUnknownOption(),t.$apply(function(){s.$setViewValue(a.readValue())})}),e.multiple&&(a.multiple=!0,a.readValue=function(){var e=[];return Et(r.find("option"),function(t){t.selected&&!t.disabled&&(t=t.value,e.push(t in a.selectValueMap?a.selectValueMap[t]:t))}),e},a.writeValue=function(n){Et(r.find("option"),function(t){var e=!!n&&(Y(n,t.value)||Y(n,a.selectValueMap[t.value]));e!==t.selected&&La(wt(t),e)})},o=NaN,t.$watch(function(){o!==s.$viewValue||Ot(i,s.$viewValue)||(i=S(s.$viewValue),s.$render()),o=s.$viewValue}),s.$isEmpty=function(t){return!t||0===t.length})):a.registerOption=A},post:function(t,e,n,r){var i,o=r[1];o&&(i=r[0],o.$render=function(){i.writeValue(o.$viewValue)})}}}}var Ma,Pa=["$element","$scope",function(n,e){var s=this,r=new nn,t=(s.selectValueMap={},s.ngModelCtrl=Ra,s.multiple=!1,s.unknownOption=wt(bt.document.createElement("option")),s.hasEmptyOption=!1,s.emptyOption=void 0,s.renderUnknownOption=function(t){t=s.generateUnknownOptionValue(t);s.unknownOption.val(t),n.prepend(s.unknownOption),La(s.unknownOption,!0),n.val(t)},s.updateUnknownOption=function(t){t=s.generateUnknownOptionValue(t);s.unknownOption.val(t),La(s.unknownOption,!0),n.val(t)},s.generateUnknownOptionValue=function(t){return"? "+Ze(t)+" ?"},s.removeUnknownOption=function(){s.unknownOption.parent()&&s.unknownOption.remove()},s.selectEmptyOption=function(){s.emptyOption&&(n.val(""),La(s.emptyOption,!0))},s.unselectEmptyOption=function(){s.hasEmptyOption&&La(s.emptyOption,!1)},e.$on("$destroy",function(){s.renderUnknownOption=A}),s.readValue=function(){var t=n.val(),t=t in s.selectValueMap?s.selectValueMap[t]:t;return s.hasOption(t)?t:null},s.writeValue=function(t){var e=n[0].options[n[0].selectedIndex];e&&La(wt(e),!1),s.hasOption(t)?(s.removeUnknownOption(),e=Ze(t),n.val(e in s.selectValueMap?e:t),e=n[0].options[n[0].selectedIndex],La(wt(e),!0)):s.selectUnknownOrEmptyOption(t)},s.addOption=function(t,e){e[0].nodeType!==te&&(Yt(t,'"option value"'),""===t&&(s.hasEmptyOption=!0,s.emptyOption=e),e=r.get(t)||0,r.set(t,e+1),u())},s.removeOption=function(t){var e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(s.hasEmptyOption=!1,s.emptyOption=void 0)):r.set(t,e-1))},s.hasOption=function(t){return!!r.get(t)},s.$hasEmptyOption=function(){return s.hasEmptyOption},s.$isUnknownOptionSelected=function(){return n[0].options[0]===s.unknownOption[0]},s.$isEmptyOptionSelected=function(){return s.hasEmptyOption&&n[0].options[n[0].selectedIndex]===s.emptyOption[0]},!(s.selectUnknownOrEmptyOption=function(t){null==t&&s.emptyOption?(s.removeUnknownOption(),s.selectEmptyOption()):s.unknownOption.parent().length?s.updateUnknownOption(t):s.renderUnknownOption(t)}));function u(){t||(t=!0,e.$$postDigest(function(){t=!1,s.ngModelCtrl.$render()}))}var i=!1;function l(t){i||(i=!0,e.$$postDigest(function(){e.$$destroyed||(i=!1,s.ngModelCtrl.$setViewValue(s.readValue()),t&&s.ngModelCtrl.$render())}))}s.registerOption=function(t,r,i,e,n){var o,a;i.$attr.ngValue?i.$observe("value",function(t){var e,n=r.prop("selected");D(a)&&(s.removeOption(o),delete s.selectValueMap[a],e=!0),a=Ze(t),o=t,s.selectValueMap[a]=t,s.addOption(t,r),r.attr("value",a),e&&n&&l()}):e?i.$observe("value",function(t){s.readValue();var e,n=r.prop("selected");D(o)&&(s.removeOption(o),e=!0),o=t,s.addOption(t,r),e&&n&&l()}):n?t.$watch(n,function(t,e){i.$set("value",t);var n=r.prop("selected");e!==t&&s.removeOption(e),s.addOption(t,r),e&&n&&l()}):s.addOption(i.value,r),i.$observe("disabled",function(t){("true"===t||t&&r.prop("selected"))&&(s.multiple?l(!0):(s.ngModelCtrl.$setViewValue(null),s.ngModelCtrl.$render()))}),r.on("$destroy",function(){var t=s.readValue(),e=i.value;s.removeOption(e),u(),(s.multiple&&t&&-1!==t.indexOf(e)||t===e)&&l(!0)})}}],Na=["$interpolate",function(n){return{restrict:"E",priority:100,compile:function(t,e){var o,a;return D(e.ngValue)||(D(e.value)?o=n(e.value,!0):(a=n(t.text(),!0))||e.$set("value",t.text())),function(t,e,n){var r="$selectController",i=e.parent(),i=i.data(r)||i.parent().data(r);i&&i.registerOption(t,e,n,o,a)}}}}],Fa=["$parse",function(o){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){var i;r&&(i=n.hasOwnProperty("required")||o(n.ngRequired)(t),n.ngRequired||(n.required=!0),r.$validators.required=function(t,e){return!i||!r.$isEmpty(e)},n.$observe("required",function(t){i!==t&&(i=t,r.$validate())}))}}}],Ua=["$parse",function(n){return{restrict:"A",require:"?ngModel",compile:function(t,e){var a,s;return e.ngPattern&&(a=e.ngPattern,s="/"===e.ngPattern.charAt(0)&&h.test(e.ngPattern)?function(){return e.ngPattern}:n(e.ngPattern)),function(t,n,e,r){var i,o;r&&(i=e.pattern,e.ngPattern?i=s(t):a=e.pattern,o=Va(i,a,n),e.$observe("pattern",function(t){var e=o;o=Va(t,a,n),(e&&e.toString())!==(o&&o.toString())&&r.$validate()}),r.$validators.pattern=function(t,e){return r.$isEmpty(e)||St(o)||o.test(e)})}}}}],ja=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){var i,o;r&&(i=n.maxlength||a(n.ngMaxlength)(t),o=qa(i),n.$observe("maxlength",function(t){i!==t&&(o=qa(t),i=t,r.$validate())}),r.$validators.maxlength=function(t,e){return o<0||r.$isEmpty(e)||e.length<=o})}}}],Ba=["$parse",function(a){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){var i,o;r&&(i=n.minlength||a(n.ngMinlength)(t),o=qa(i)||-1,n.$observe("minlength",function(t){i!==t&&(o=qa(t)||-1,i=t,r.$validate())}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=o})}}}];function Va(t,e,n){if(t){if((t=_t(t)?new RegExp("^"+t+"$"):t).test)return t;throw x("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Ht(n))}}function qa(t){t=y(t);return k(t)?-1:t}bt.angular.bootstrap?bt.console&&console.log("WARNING: Tried to load AngularJS more than once."):(yt||(i=J(),(po=St(i)?bt.jQuery:i?bt[i]:void 0)&&po.fn.on?xt((wt=po).fn,{scope:qe.scope,isolateScope:qe.isolateScope,controller:qe.controller,injector:qe.injector,inheritedData:qe.inheritedData}):wt=s,Ma=wt.cleanData,wt.cleanData=function(t){for(var e,n,r=0;null!=(n=t[r]);r++)(e=(wt._data(n)||{}).events)&&e.$destroy&&wt(n).triggerHandler("$destroy");Ma(t)},b.element=wt,yt=!0),xt(b,{errorHandlingConfig:e,bootstrap:ft,copy:X,extend:xt,merge:j,equals:Ot,element:wt,forEach:Et,injector:hn,noop:A,bind:qt,toJson:et,fromJson:nt,identity:Pt,isUndefined:St,isDefined:D,isString:_t,isFunction:kt,isObject:Tt,isNumber:w,isElement:K,isArray:Ct,version:ie,isDate:E,callbacks:{$$counter:0},getTestability:mt,reloadWithDebugInfo:gt,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Gt,$$minErr:x,$$csp:Q,$$encodeUriSegment:lt,$$encodeUriQuery:o,$$lowercase:C,$$stringify:Qt,$$uppercase:T}
1),(m=ne(bt))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:ri}),t.provider("$compile",On).directive({a:Yi,input:Oo,textarea:Oo,form:no,script:Oa,select:Ia,option:Na,ngBind:Lo,ngBindHtml:Mo,ngBindTemplate:Io,ngClass:Fo,ngClassEven:jo,ngClassOdd:Uo,ngCloak:Bo,ngController:Vo,ngForm:ro,ngHide:Sa,ngIf:zo,ngInclude:Ko,ngInit:Xo,ngNonBindable:ha,ngPluralize:va,ngRef:ba,ngRepeat:wa,ngShow:xa,ngStyle:Ta,ngSwitch:_a,ngSwitchWhen:Ca,ngSwitchDefault:ka,ngOptions:ma,ngTransclude:Da,ngModel:sa,ngList:Go,ngChange:Po,pattern:Ua,ngPattern:Ua,required:Fa,ngRequired:Fa,minlength:Ba,ngMinlength:Ba,maxlength:ja,ngMaxlength:ja,ngValue:Do,ngModelOptions:ca}).directive({ngInclude:Yo,input:Ao}).directive(Xi).directive(qo),t.provider({$anchorScroll:fn,$animate:Tn,$animateCss:Sn,$$animateJs:wn,$$animateQueue:$n,$$AnimateRunner:xn,$$animateAsyncRun:En,$browser:Cn,$cacheFactory:kn,$controller:jn,$document:Bn,$$isDocumentHidden:Vn,$exceptionHandler:qn,$filter:Ti,$$forceReflow:Hn,$interpolate:lr,$interval:pr,$$intervalFactory:dr,$http:or,$httpParamSerializer:Jn,$httpParamSerializerJQLike:Zn,$httpBackend:sr,$xhrFactory:ar,$jsonpCallbacks:hr,$location:Dr,$log:Or,$parse:Yr,$rootScope:ni,$q:Xr,$$q:Qr,$sce:li,$sceDelegate:ui,$sniffer:ci,$$taskTrackerFactory:pi,$templateCache:An,$templateRequest:fi,$$testability:gi,$timeout:vi,$window:Ei,$$rAF:ei,$$jqLite:Je,$$Map:rn,$$cookieReader:Si})}]).info({angularVersion:"1.8.2"}),b.module("ngLocale",[],["$provide",function(t){var o="one",a="other";t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(t,e){var n,r,i=0|t;return t=t,void 0===(e=e)&&(e=Math.min((r=t,-1==(n=(r+="").indexOf("."))?0:r.length-n-1),3)),r=Math.pow(10,e),1==i&&0=={v:e,f:(t*r|0)%r}.v?o:a}})}]),wt(function(){ht(bt.document,ft)}))}(window),window.angular.$$csp().noInlineStyle||window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}')),!function(u){"use strict";function t(t,o,e){var a=e.baseHref(),s=t[0];return function(t,e,n){var r,i;s.cookie=(t=t,e=e,r=(n=(n=n)||{}).expires,i=u.isDefined(n.path)?n.path:a,u.isUndefined(e)&&(r="Thu, 01 Jan 1970 00:00:00 GMT",e=""),u.isString(r)&&(r=new Date(r)),4096<(i=(e=(e=(e=(e=(e=encodeURIComponent(t)+"="+encodeURIComponent(e))+(i?";path="+i:"")+(n.domain?";domain="+n.domain:""))+(r?";expires="+r.toUTCString():""))+(n.secure?";secure":""))+(n.samesite?";samesite="+n.samesite:"")).length+1)&&o.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"),e)}}u.module("ngCookies",["ng"]).info({angularVersion:"1.8.2"}).provider("$cookies",[function(){var e=this.defaults={};function i(t){return t?u.extend({},e,t):e}this.$get=["$$cookieReader","$$cookieWriter",function(e,r){return{get:function(t){return e()[t]},getObject:function(t){t=this.get(t);return t&&u.fromJson(t)},getAll:function(){return e()},put:function(t,e,n){r(t,e,i(n))},putObject:function(t,e,n){this.put(t,u.toJson(e),n)},remove:function(t,e){r(t,void 0,i(e))}}}]}]),t.$inject=["$document","$log","$browser"],u.module("ngCookies").provider("$$cookieWriter",function(){this.$get=t})}((window,window.angular)),!function(p,t){"use strict";var Z,tt,F=1,et="-add",nt="-remove",vt="ng-",T="ng-animate",U="$$ngAnimateChildren",yt=void 0===p.ontransitionend&&void 0!==p.onwebkittransitionend?(Z="WebkitTransition","webkitTransitionEnd transitionend"):(Z="transition","transitionend"),bt=void 0===p.onanimationend&&void 0!==p.onwebkitanimationend?(tt="WebkitAnimation","webkitAnimationEnd animationend"):(tt="animation","animationend"),r="Duration",wt="TimingFunction",o="PlayState",n=tt+"Delay",rt=tt+r,i=Z+"Delay",e=Z+r,a=t.$$minErr("ng");function g(t,e,n){if(!t)throw a("areq","Argument '{0}' is {1}",e||"?",n||"required")}function _(t,e){return t||e?t?e?(t=gt(t)?t.join(" "):t)+" "+(e=gt(e)?e.join(" "):e):t:e:""}function it(t,n,r){var i="";return t=gt(t)?t:t&&q(t)&&t.length?t.split(/\s+/):[],ft(t,function(t,e){t&&0<t.length&&(i=i+(0<e?" ":"")+(r?n+t:t+n))}),i}function z(t){if(t instanceof W)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===F)return t;break;default:return W(d(t))}if(t.nodeType===F)return W(t)}function d(t){if(!t[0])return t;for(var e=0;e<t.length;e++){var n=t[e];if(n.nodeType===F)return n}}function f(a){return function(t,e){var n,r,i,o;e.addClass&&(n=a,r=e.addClass,ft(t,function(t){n.addClass(t,r)}),e.addClass=null),e.removeClass&&(i=a,o=e.removeClass,ft(t,function(t){i.removeClass(t,o)}),e.removeClass=null)}}function ot(t){var e;return(t=t||{}).$$prepared||(e=t.domOperation||mt,t.domOperation=function(){t.$$domOperationFired=!0,e(),e=mt},t.$$prepared=!0),t}function at(t,e){$t(t,e),Et(t,e)}function $t(t,e){e.from&&(t.css(e.from),e.from=null)}function Et(t,e){e.to&&(t.css(e.to),e.to=null)}function j(t,e,n){var i,r,o,a=e.options||{},n=n.options||{},s=(a.addClass||"")+" "+(n.addClass||""),u=(a.removeClass||"")+" "+(n.removeClass||""),u=(i=t.attr("class"),t=s,s=u,r={},i=l(i),t=l(t),ft(t,function(t,e){r[e]=1}),s=l(s),ft(s,function(t,e){r[e]=1===r[e]?null:-1}),o={addClass:"",removeClass:""},ft(r,function(t,e){var n,r;1===t?(n="addClass",r=!i[e]||i[e+nt]):-1===t&&(n="removeClass",r=i[e]||i[e+et]),r&&(o[n].length&&(o[n]+=" "),o[n]+=e)}),o);
1function l(t){q(t)&&(t=t.split(" "));var e={};return ft(t,function(t){t.length&&(e[t]=!0)}),e}n.preparationClasses&&(a.preparationClasses=B(n.preparationClasses,a.preparationClasses),delete n.preparationClasses);t=a.domOperation!==mt?a.domOperation:null;return K(a,n),t&&(a.domOperation=t),a.addClass=u.addClass||null,a.removeClass=u.removeClass||null,e.addClass=a.addClass,e.removeClass=a.removeClass,a}function st(t){return t instanceof W?t[0]:t}function ut(t,e){var e=e?"paused":"",n=tt+o;return lt(t,[n,e]),[n,e]}function lt(t,e){var n=e[0],e=e[1];t.style[n]=e}function B(t,e){return t?e?t+" "+e:t:e}var ct=function(t,e){e=e?"-"+e+"s":"";return lt(t,[i,e]),[i,e]},s=["$interpolate",function(o){return{link:function(t,e,n){var r=n.ngAnimateChildren;function i(t){e.data(U,t="on"===t||"true"===t)}q(r)&&0===r.length?e.data(U,!0):(i(o(r)(t)),n.$observe("ngAnimateChildren",i))}}}],pt="$$animateCss",u={transitionDuration:e,transitionDelay:i,transitionProperty:Z+"Property",animationDuration:rt,animationDelay:n,animationIterationCount:tt+"IterationCount"},xt={transitionDuration:e,transitionDelay:i,animationDuration:rt,animationDelay:n};function dt(t,e){return[e?n:i,t+"s"]}function St(t,e,n){var i=Object.create(null),o=t.getComputedStyle(e)||{};return ft(n,function(t,e){var n,r,t=o[t];t&&(("-"===(n=t.charAt(0))||"+"===n||0<=n)&&(r=0,n=(n=t).split(/\s*,\s*/),ft(n,function(t){"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,r=r?Math.max(t,r):t}),t=r),0===t&&(t=null),i[e]=t)}),i}function ht(t){return 0===t||null!=t}function Tt(t,e){var n=Z,t=t+"s";return e?n+=r:t+=" linear all",[n,t]}function _t(e,n,t){ft(t,function(t){e[t]=Y(e[t])?e[t]:n.style.getPropertyValue(t)})}var Ct,K,ft,gt,Y,h,w,V,q,H,W,mt,e=["$animateProvider",function(t){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(q,H,W,G,z,n,K,e,Y){var X=f(H);var r=[];function Q(t){r.push(t),e.waitUntilQuiet(function(){z.flush();for(var t=n(),e=0;e<r.length;e++)r[e](t);r.length=0})}function J(t,e,n,r){t=t,n=n,r=r,o=u,(i=z.get(n))||"infinite"===(i=St(q,t,o)).animationIterationCount&&(i.animationIterationCount=1),t=r||0<i.transitionDuration||0<i.animationDuration,z.put(n,i,t);var i,o=i,r=o.animationDelay,n=o.transitionDelay;return o.maxDelay=r&&n?Math.max(r,n):r||n,o.maxDuration=Math.max(o.animationDuration*o.animationIterationCount,o.transitionDuration),o}return function(a,t){var s=t||{},u=(s.$$prepared||(s=ot(Ct(s))),{}),l=st(a);if(!l||!l.parentNode||!Y.enabled())return M();var c,r,i,n,p,d,h,P,f=[],e=(a.attr("class"),t={},(e=s)&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t),g=[];if(0===s.duration||!K.animations&&!K.transitions)return M();var m=s.event&&gt(s.event)?s.event.join(" "):s.event,t=m&&s.structural,o="",v="",y=(t?o=it(m,vt,!0):m&&(o=m),s.addClass&&(v+=it(s.addClass,et)),s.removeClass&&(v.length&&(v+=" "),v+=it(s.removeClass,nt)),s.applyClassesEarly&&v.length&&X(a,s),[o,v].join(" ").trim()),o=e.to&&0<Object.keys(e.to).length;if(!(0<(s.keyframeStyle||"").length)&&!o&&!y)return M();var b,w,N,$,E,x,S=z.cacheKey(l,m,s.addClass,s.removeClass);if(z.containsCachedAnimationWithoutDuration(S))return y=null,M();b=0<s.stagger?{transitionDelay:e=parseFloat(s.stagger),animationDelay:e,transitionDuration:0,animationDuration:0}:(e=l,$=y,x=xt,N="stagger-"+(C=S),0<z.count(C)&&((w=z.get(N))||(C=it($,"-stagger"),H.addClass(e,C),(w=St(q,e,x)).animationDuration=Math.max(w.animationDuration,0),w.transitionDuration=Math.max(w.transitionDuration,0),H.removeClass(e,C),z.put(N,w,!0))),w||{}),s.$$skipPreparationClasses||H.addClass(a,y),s.transitionStyle&&($=[Z,s.transitionStyle],lt(l,$),f.push($)),0<=s.duration&&(E=0<l.style[Z].length,x=Tt(s.duration,E),lt(l,x),f.push(x)),s.keyframeStyle&&(e=[tt,s.keyframeStyle],lt(l,e),f.push(e));var T,_,F=b?0<=s.staggerIndex?s.staggerIndex:z.count(S):0,C=0===F,k=(C&&!s.skipBlocking&&ct(l,9999),J(l,0,S,!t)),A=k.maxDelay,D=Math.max(A,0),O=k.maxDuration,R={};return R.hasTransitions=0<k.transitionDuration,R.hasAnimations=0<k.animationDuration,R.hasTransitionAll=R.hasTransitions&&"all"===k.transitionProperty,R.applyTransitionDuration=o&&(R.hasTransitions&&!R.hasTransitionAll||R.hasAnimations&&!R.hasTransitions),R.applyAnimationDuration=s.duration&&R.hasAnimations,R.applyTransitionDelay=ht(s.delay)&&(R.applyTransitionDuration||R.hasTransitions),R.applyAnimationDelay=ht(s.delay)&&R.hasAnimations,R.recalculateTimingStyles=0<v.length,(R.applyTransitionDuration||R.applyAnimationDuration)&&(O=s.duration?parseFloat(s.duration):O,R.applyTransitionDuration&&(
1R.hasTransitions=!0,k.transitionDuration=O,E=0<l.style[Z+"Property"].length,f.push(Tt(O,E))),R.applyAnimationDuration)&&(R.hasAnimations=!0,k.animationDuration=O,f.push([rt,O+"s"])),0!==O||R.recalculateTimingStyles?(T=it(y,"-active"),null!=s.delay&&("boolean"!=typeof s.delay&&(_=parseFloat(s.delay),D=Math.max(_,0)),R.applyTransitionDelay&&f.push(dt(_)),R.applyAnimationDelay)&&f.push(dt(_,!0)),null==s.duration&&0<k.transitionDuration&&(R.recalculateTimingStyles=R.recalculateTimingStyles||C),d=1e3*D,h=1e3*O,s.skipBlocking||(R.blockTransition=0<k.transitionDuration,R.blockKeyframeAnimation=0<k.animationDuration&&0<b.animationDelay&&0===b.animationDuration),s.from&&(s.cleanupStyles&&_t(u,l,Object.keys(s.from)),$t(a,s)),R.blockTransition||R.blockKeyframeAnimation?j(O):s.skipBlocking||ct(l,!1),{$$willAnimate:!0,end:L,start:function(){if(!c)return n=new W(p={end:L,cancel:U,resume:null,pause:null}),Q(V),n}}):M();function L(){I()}function U(){I(!0)}function I(t){var e;c||i&&r||(r=!(c=!0),y&&!s.$$skipPreparationClasses&&H.removeClass(a,y),T&&H.removeClass(a,T),ut(l,!1),ct(l,!1),ft(f,function(t){l.style[t[0]]=""}),X(a,s),at(a,s),Object.keys(u).length&&ft(u,function(t,e){t?l.style.setProperty(e,t):l.style.removeProperty(e)}),s.onDone&&s.onDone(),g&&g.length&&a.off(g.join(" "),B),(e=a.data(pt))&&(G.cancel(e[0].timer),a.removeData(pt)),n&&n.complete(!t))}function j(t){R.blockTransition&&ct(l,t),R.blockKeyframeAnimation&&ut(l,!!t)}function M(){return n=new W({end:L,cancel:U}),Q(mt),I(),{$$willAnimate:!1,start:function(){return n},end:L}}function B(t){t.stopPropagation();var e,t=t.originalEvent||t;t.target===l&&(e=t.$manualTimeStamp||Date.now(),t=parseFloat(t.elapsedTime.toFixed(3)),Math.max(e-P,0)>=d)&&O<=t&&(i=!0,I())}function V(){var t,e;function n(){if(!c){if(j(!1),ft(f,function(t){var e=t[0],t=t[1];l.style[e]=t}),X(a,s),H.addClass(a,T),R.recalculateTimingStyles){if(l.getAttribute("class"),S=z.cacheKey(l,m,s.addClass,s.removeClass),k=J(l,0,S,!1),A=k.maxDelay,D=Math.max(A,0),0===(O=k.maxDuration))return void I();R.hasTransitions=0<k.transitionDuration,R.hasAnimations=0<k.animationDuration}R.applyAnimationDelay&&(A="boolean"!=typeof s.delay&&ht(s.delay)?parseFloat(s.delay):A,D=Math.max(A,0),k.animationDelay=A,_=dt(A,!0),f.push(_),l.style[_[0]]=_[1]),d=1e3*D,h=1e3*O,s.easing&&(n=s.easing,R.hasTransitions&&(e=Z+wt,f.push([e,n]),l.style[e]=n),R.hasAnimations)&&(e=tt+wt,f.push([e,n]),l.style[e]=n),k.transitionDuration&&g.push(yt),k.animationDuration&&g.push(bt),P=Date.now();var t,e=d+1.5*h,n=P+e,r=a.data(pt)||[],i=!0;r.length&&((i=n>(t=r[0]).expectedEndTime)?G.cancel(t.timer):r.push(I)),i&&(t=G(o,e,!1),r[0]={timer:t,expectedEndTime:n},r.push(I),a.data(pt,r)),g.length&&a.on(g.join(" "),B),s.to&&(s.cleanupStyles&&_t(u,l,Object.keys(s.to)),Et(a,s))}}function o(){var t=a.data(pt);if(t){for(var e=1;e<t.length;e++)t[e]();a.removeData(pt)}}c||(l.parentNode?(t=function(t){var e,n;i?r&&t&&(r=!1,I()):(r=!t,k.animationDuration&&(t=ut(l,r),r?f.push(t):(t=t,n=(e=f).indexOf(t),0<=t&&e.splice(n,1))))},(e=0<F&&(k.transitionDuration&&0===b.transitionDuration||k.animationDuration&&0===b.animationDuration)&&Math.max(b.animationDelay,b.transitionDelay))?G(n,Math.floor(e*F*1e3),!1):n(),p.resume=function(){t(!0)},p.pause=function(){t(!1)}):I())}}}]}],l=["$$animationProvider",function(t){t.drivers.push("$$animateCssDriver");var v="ng-animate-shim",y="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(p,t,d,e,n,r,i){var h,f;return n.animations||n.transitions?(h=i[0].body,n=st(e),f=W((i=n).parentNode&&11===i.parentNode.nodeType||h.contains(n)?n:h),function(t){{var e,n,r,i,o,a;if(t.from&&t.to)return e=t.from,n=t.to,t.classes,r=t.anchors,i=s(e),o=s(n),a=[],ft(r,function(t){t=function(e,n){var r=W(st(e).cloneNode(!0)),i=g(u(r));e.addClass(v),n.addClass(v),r.addClass("ng-anchor"),f.append(r);var o,t=function(){var t=p(r,{addClass:y,delay:!0,from:s(e)});return t.$$willAnimate?t:null}();if(!t&&!(o=l()))return c();var a=t||o;return{start:function(){var t,e=a.start();return e.done(function(){if(e=null,!o&&(o=l()))return(e=o.start()).done(function(){e=null,c(),t.complete()}),e;c(),t.complete()}),t=new d({end:n,cancel:n});function n(){e&&e.end()}}};function s(t){var n={},r=st(t).getBoundingClientRect();return ft(["width","height","top","left"],function(t){var e=r[t];switch(t){case"top":e+=h.scrollTop;break;case"left":e+=h.scrollLeft}n[t]=Math.floor(e)+"px"}),n}function u(t){return t.attr("class")||""}function l(){var t=g(u(n)),e=m(t,i),t=m(i,t),e=p(r,{to:s(n),addClass:"ng-anchor-in "+e,removeClass:y+" "+t,delay:!0});return e.$$willAnimate?e:null}function c(){r.remove(),e.removeClass(v),n.removeClass(v)}}(t.out,t.in);t&&a.push(t)}),i||o||0!==a.length?{start:function(){var e=[],n=(i&&e.push(i.start()),o&&e.push(o.start()),ft(a,function(t){e.push(t.start())}),new d({end:t,cancel:t}));return d.all(e,function(t){n.complete(t)}),n;function t(){ft(e,function(t){t.end()})}}}:void 0}return s(t)}):mt;function g(t){return t.replace(/\bng-\S+\b/g,"")}
1function m(t,e){return q(t)&&(t=t.split(" ")),q(e)&&(e=e.split(" ")),t.filter(function(t){return-1===e.indexOf(t)}).join(" ")}function s(t){var e=t.element,n=t.options||{},t=(t.structural&&(n.event=t.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===t.event)&&(n.onDone=n.domOperation),n.preparationClasses&&(n.event=B(n.event,n.preparationClasses)),p(e,n));return t.$$willAnimate?t:null}}]}],c=["$animateProvider",function(b){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(m,v,t){var y=f(t);return function(t,e,n,r){var i,o,a,s,u,l=!1,c=(3===arguments.length&&V(n)&&(r=n,n=null),r=ot(r),n||(n=t.attr("class")||"",r.addClass&&(n+=" "+r.addClass),r.removeClass&&(n+=" "+r.removeClass)),r.addClass),p=r.removeClass,n=function(t){t=gt(t)?t:t.split(" ");for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=b.$$registeredAnimations[i];o&&!n[i]&&(e.push(m.get(o)),n[i]=!0)}return e}(n);if(n.length&&(s="leave"===e?(a="leave","afterLeave"):(a="before"+e.charAt(0).toUpperCase()+e.substr(1),e),"enter"!==e&&"move"!==e&&(i=g(t,e,r,n,a)),o=g(t,e,r,n,s)),i||o)return{$$willAnimate:!0,end:function(){return u?u.end():(h(),(u=new v).complete(!0)),u},start:function(){var e,t;return u||(u=new v,t=[],i&&t.push(function(t){e=i(t)}),t.length?t.push(function(t){d(),t(!0)}):d(),o&&t.push(function(t){e=o(t)}),u.setHost({end:function(){r()},cancel:function(){r(!0)}}),v.chain(t,n)),u;function n(t){h(),u.complete(t)}function r(t){l||((e||mt)(t),n(t))}}};function d(){r.domOperation(),y(t,r)}function h(){l=!0,d(),at(t,r)}function f(a,s,u,t,e){var n=[];return ft(t,function(t){var o=t[e];o&&n.push(function(){function e(t){n||(n=!0,(i||mt)(t),r.complete(!t))}var n=!1,r=new v({end:function(){e()},cancel:function(){e(!0)}}),i=function(t,e,n,r,i){var o;switch(n){case"animate":o=[e,r.from,r.to,i];break;case"setClass":o=[e,c,p,i];break;case"addClass":o=[e,c,i];break;case"removeClass":o=[e,p,i];break;default:o=[e,i]}if(o.push(r),n=t.apply(t,o))if((n=w(n.start)?n.start():n)instanceof v)n.done(i);else if(w(n))return n;return mt}(o,a,s,u,function(t){e(!1===t)});return r})}),n}function g(t,e,n,r,i){var o,a,s=f(t,e,n,r,i);if(0!==(s=0===s.length&&("beforeSetClass"===i?(o=f(t,"removeClass",n,r,"beforeRemoveClass"),a=f(t,"addClass",n,r,"beforeAddClass")):"setClass"===i&&(o=f(t,"removeClass",n,r,"removeClass"),a=f(t,"addClass",n,r,"addClass")),o&&(s=s.concat(o)),a)?s.concat(a):s).length)return function(t){var n=[];return s.length&&ft(s,function(t){n.push(t())}),n.length?v.all(n,t):t(),function(e){ft(n,function(t){e?t.cancel():t.end()})}}}}}]}],m=["$$animationProvider",function(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(i,o){return function(t){var r,i;return t.from&&t.to?(r=e(t.from),i=e(t.to),r||i?{start:function(){var t=[],e=(r&&t.push(r.start()),i&&t.push(i.start()),o.all(t,function(t){e.complete(t)}),new o({end:n(),cancel:n()}));return e;function n(){return function(){ft(t,function(t){t.end()})}}}}:void 0):e(t)};function e(t){var e=t.element,n=t.event,r=t.options,t=t.classes;return i(e,n,t,r)}}]}],G="data-ng-animate",X="$ngAnimatePin",v=["$animateProvider",function(c){var i=" ",r=this.rules={skip:[],cancel:[],join:[]};function M(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function o(t,e){var n,r;if(t&&e)return n=(e=e)?(e=e.split(i),r=Object.create(null),ft(e,function(t){r[t]=!0}),r):null,t.split(i).some(function(t){return n[t]})}function P(t,e,n){return r[t].some(function(t){return t(e,n)})}function N(t,e){var n=0<(t.addClass||"").length,t=0<(t.removeClass||"").length;return e?n&&t:n||t}r.join.push(function(t,e){return!t.structural&&N(t)}),r.skip.push(function(t,e){return!t.structural&&!N(t)}),r.skip.push(function(t,e){return"leave"===e.event&&t.structural}),r.skip.push(function(t,e){return e.structural&&2===e.state&&!t.structural}),r.cancel.push(function(t,e){return e.structural&&t.structural}),r.cancel.push(function(t,e){return 2===e.state&&t.structural}),r.cancel.push(function(t,e){var n,r;return!(e.structural||(n=t.addClass,t=t.removeClass,r=e.addClass,e=e.removeClass,H(n)&&H(t))||H(r)&&H(e))&&(o(n,e)||o(t,r))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(m,v,y,b,t,w,$,e,n,r,E){var x=new t,S=new t,T=null;function i(t){S.delete(t.target)}function o(){return!0}
1var a=v.$watch(function(){return 0===e.totalPendingRequests},function(t){t&&(a(),v.$$postDigest(function(){v.$$postDigest(function(){null===T&&(T=!0)})}))}),_=Object.create(null),t=c.customFilter(),s=c.classNameFilter(),C=t||o,k=s?function(t,e){t=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return s.test(t)}:o,A=f(n);function D(t,e){j(t,e,{})}var O=p.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function u(t,e,n){var r=d(e);return t.filter(function(t){return!(t.node===r&&(!n||t.callback===n))})}function R(t,e){"close"!==t||e.parentNode||l.off(e)}var l={on:function(t,e,n){var r=d(e);_[t]=_[t]||[],_[t].push({node:r,callback:n}),W(e).on("$destroy",function(){x.get(r)||l.off(t,e,n)})},off:function(t,e,n){if(1!==arguments.length||q(t)){var r=_[t];r&&(_[t]=1===arguments.length?null:u(r,e,n))}else for(var i in e=t,_)_[i]=u(_[i],e)},pin:function(t,e){g(h(t),"element","not an element"),g(h(e),"parentElement","not an element"),t.data(X,e)},push:function(t,e,n,r){(n=n||{}).domOperation=r;var i=t,o=e,a=Ct(r=n),l=z(i),c=st(l),p=c&&c.parentNode,s=(a=ot(a),new $),d=function(){var e=!1;return function(t){e?t():v.$$postDigest(function(){e=!0,t()})}}();if(gt(a.addClass)&&(a.addClass=a.addClass.join(" ")),a.addClass&&!q(a.addClass)&&(a.addClass=null),gt(a.removeClass)&&(a.removeClass=a.removeClass.join(" ")),a.removeClass&&!q(a.removeClass)&&(a.removeClass=null),a.from&&!V(a.from)&&(a.from=null),a.to&&!V(a.to)&&(a.to=null),T&&c&&C(c,o,r)&&k(c,a)){var u=0<=["enter","move","leave"].indexOf(o),r=E(),t=r||S.get(c),e=!t&&x.get(c)||{},n=!!e.state;if(t=t||n&&1===e.state?t:!function(t,e){var n,r=b[0].body,i=st(y),o=t===r||"HTML"===t.nodeName,a=t===i,s=!1,u=S.get(t),l=W.data(t,X);l&&(e=st(l));for(;e&&(a=a||e===i,e.nodeType===F);){var c=x.get(e)||{};if(!s){var p=S.get(e);if(!0===p&&!1!==u){u=!0;break}!1===p&&(u=!1),s=c.structural}if((H(n)||!0===n)&&(p=W.data(e,U),Y(p))&&(n=p),s&&!1===n)break;if((o=o||e===r)&&a)break;e=!a&&(l=W.data(e,X))?st(l):e.parentNode}return(!s||n)&&!0!==u&&a&&o}(c,p))r&&f(s,o,"start",M(a)),g(),r&&f(s,o,"close",M(a));else{u&&!function(t){t=t.querySelectorAll("["+G+"]");ft(t,function(t){var e=parseInt(t.getAttribute(G),10),n=x.get(t);if(n)switch(e){case 2:n.runner.end();case 1:x.delete(t)}})}(c);t={structural:u,element:l,event:o,addClass:a.addClass,removeClass:a.removeClass,close:g,options:a,runner:s};if(n){if(P("skip",t,e))return 2===e.state?(g(),s):(j(l,e,t),e.runner);r=P("cancel",t,e);if(r)if(2===e.state)e.runner.end();else{if(!e.structural)return j(l,e,t),e.runner;e.close()}else if(P("join",t,e)){if(2!==e.state)return function(t,e,n){var r="";e&&(r=it(e,vt,!0)),n.addClass&&(r=B(r,it(n.addClass,et))),(r=n.removeClass?B(r,it(n.removeClass,nt)):r).length&&(n.preparationClasses=r,t.addClass(r))}(l,u?o:null,a),o=t.event=e.event,a=j(l,e,t),e.runner;D(l,t)}}else D(l,t);var h,n=t.structural;(n=n||"animate"===t.event&&0<Object.keys(t.options.to||{}).length||N(t))?(h=(e.counter||0)+1,t.counter=h,I(c,1,t),v.$$postDigest(function(){l=z(i);var t=!(e=x.get(c)),e=e||{},n=0<(l.parent()||[]).length&&("animate"===e.event||e.structural||N(e));t||e.counter!==h||!n?(t&&(A(l,a),at(l,a)),(t||u&&e.event!==o)&&(a.domOperation(),s.end()),n||L(c)):(o=!e.structural&&N(e,!0)?"setClass":e.event,I(c,2),t=w(l,o,e.options),s.setHost(t),f(s,o,"start",M(a)),t.done(function(t){g(!t);t=x.get(c);t&&t.counter===h&&L(c),f(s,o,"close",M(a))}))})):(g(),L(c))}}else g();return s;function f(t,a,s,u){d(function(){e=p,n=c,i=[],(t=_[r=a])&&ft(t,function(t){(O.call(t.node,n)||"leave"===r&&O.call(t.node,e))&&i.push(t.callback)});var e,n,r,i,t,o=i;o.length?m(function(){ft(o,function(t){t(l,s,u)}),R(s,c)}):R(s,c)}),t.progress(a,s,u)}function g(t){var e,n;e=l,(n=a).preparationClasses&&(e.removeClass(n.preparationClasses),n.preparationClasses=null),n.activeClasses&&(e.removeClass(n.activeClasses),n.activeClasses=null),A(l,a),at(l,a),a.domOperation(),s.complete(!t)}},enabled:function(t,e){var n,r=arguments.length;return 0===r?e=!!T:h(t)?(n=st(t),1===r?e=!S.get(n):(S.has(n)||W(t).on("$destroy",i),S.set(n,!e))):e=T=!!t,e}};return l;function L(t){t.removeAttribute(G),x.delete(t)}function I(t,e,n){(n=n||{}).state=e,t.setAttribute(G,e);
1e=x.get(t),e=e?K(e,n):n;x.set(t,e)}}]}],y=["$animateProvider",function(t){var $="ng-animate-ref",E=this.drivers=[],p="$$animationRunner",x="$$animatePrepareClasses";function S(t){return t.data(p)}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(g,u,m,l,h,v,y){var b=[],c=f(g);function w(t){for(var o={children:[]},a=new h,e=0;e<t.length;e++){var n=t[e];a.set(n.domNode,t[e]={domNode:n.domNode,element:n.element,fn:n.fn,children:[]})}for(e=0;e<t.length;e++)!function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode;var r=n.parentNode;a.set(n,e);var i;for(;r;){if(i=a.get(r)){i.processed||(i=t(i));break}r=r.parentNode}(i||o).children.push(e);return e}(t[e]);var r,i=o,s=[],u=[];for(r=0;r<i.children.length;r++)u.push(i.children[r]);var l=u.length,c=0,p=[];for(r=0;r<u.length;r++){var d=u[r];l<=0&&(l=c,c=0,s.push(p),p=[]),p.push(d),d.children.forEach(function(t){c++,u.push(t)}),l--}return p.length&&s.push(p),s}return function(e,n,f){f=ot(f);var t,r,i=0<=["enter","move","leave"].indexOf(n),o=new l({end:function(){s()},cancel:function(){s(!0)}});return E.length?(t=_(e.attr("class"),_(f.addClass,f.removeClass)),(r=f.tempClasses)&&(t+=" "+r,f.tempClasses=null),i&&e.data(x,"ng-"+n+"-prepare"),e.data(p,o),b.push({element:e,classes:t,event:n,structural:i,options:f,beforeStart:function(){r=(r?r+" ":"")+T,g.addClass(e,r);var t=e.data(x);t&&(g.removeClass(e,t),t=null)},close:s}),e.on("$destroy",a),1<b.length||u.$$postDigest(function(){for(var s,u,a,l,c,e=[],t=(ft(b,function(t){S(t.element)?e.push(t):t.close()}),b.length=0,u=[],a={},ft(s=e,function(t,n){var r,i,e=st(t.element),o=t.event,o=0<=["enter","move"].indexOf(o),e=t.structural?(e=(e=e).hasAttribute($)?[e]:e.querySelectorAll("[ng-animate-ref]"),r=[],ft(e,function(t){var e=t.getAttribute($);e&&e.length&&r.push(t)}),r):[];e.length?(i=o?"to":"from",ft(e,function(t){var e=t.getAttribute($);a[e]=a[e]||{},a[e][i]={animationID:n,element:W(t)}})):u.push(t)}),l={},c={},ft(a,function(t,e){var n,r,i,o,a=t.from,t=t.to;a&&t?(n=s[a.animationID],r=s[t.animationID],i=a.animationID.toString(),c[i]||((o=c[i]={structural:!0,beforeStart:function(){n.beforeStart(),r.beforeStart()},close:function(){n.close(),r.close()},classes:function(t,e){t=t.split(" "),e=e.split(" ");for(var n=[],r=0;r<t.length;r++){var i=t[r];if("ng-"!==i.substring(0,3))for(var o=0;o<e.length;o++)if(i===e[o]){n.push(i);break}}return n.join(" ")}(n.classes,r.classes),from:n,to:r,anchors:[]}).classes.length?u.push(o):(u.push(n),u.push(r))),c[i].anchors.push({out:a.element,in:t.element})):(i=(o=(a||t).animationID).toString(),l[i]||(l[i]=!0,u.push(s[o])))}),u),n=[],r=(ft(t,function(o){var t=(o.from||o).element,e=f.addClass,a=y.cacheKey(t[0],o.event,(e?e+" ":"")+T,f.removeClass);n.push({element:t,domNode:st(t),fn:function(){var t,e,n,r=o.close;function i(t){t=S(t);t&&t.setHost(n)}!y.containsCachedAnimationWithoutDuration(a)&&(o.beforeStart(),e=S(o.anchors?o.from.element||o.to.element:o.element)&&(t=function(t){for(var e=E.length-1;0<=e;e--){var n=E[e],n=m.get(n)(t);if(n)return n}}(o))?t.start:e)?((t=e()).done(function(t){r(!t)}),n=t,(e=o).from&&e.to?(i(e.from.element),i(e.to.element)):i(e.element)):r()}})}),w(n)),i=0;i<r.length;i++)for(var o=r[i],p=0;p<o.length;p++){var d=o[p],h=d.element;r[i][p]=d.fn,0===i?h.removeData(x):(d=h.data(x))&&g.addClass(h,d)}v(r)})):s(),o;function a(){var t=S(e);!t||"leave"===n&&f.$$domOperationFired||t.end()}function s(t){e.off("$destroy",a),e.removeData(p),c(e,f),at(e,f),f.domOperation(),r&&g.removeClass(e,r),o.complete(!t)}}}]}];t.module("ngAnimate",[],function(){mt=t.noop,Ct=t.copy,K=t.extend,W=t.element,ft=t.forEach,gt=t.isArray,q=t.isString,V=t.isObject,H=t.isUndefined,Y=t.isDefined,w=t.isFunction,h=t.isElement}).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",["$animate",function(s){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(t,n,e,r,i){var o,a;t.$watchCollection(e.ngAnimateSwap||e.for,function(t){o&&s.leave(o),a&&(a.$destroy(),a=null),!t&&0!==t||i(function(t,e){o=t,a=e,s.enter(t,null,n)})})}}}]).directive("ngAnimateChildren",s).factory("$$rAFScheduler",["$$rAF",function(n){var r,i;function t(t){r=r.concat(t),o()}return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=n(function(){i=null,t(),o()})},t;function o(){if(r.length){for(var t=r.shift(),e=0;e<t.length;e++)t[e]();i||n(function(){i||o()})}}}]).provider("$$animateQueue",v).provider("$$animateCache",function(){var o="$$ngAnimateParentKey",a=0,r=Object.create(null);this.$get=[function(){return{cacheKey:function(t,e,n,r){var i=t.parentNode,i=[i[o]||(i[o]=++a),e,t.getAttribute("class")];return n&&i.push(n),r&&i.push(r),i.join(" ")},containsCachedAnimationWithoutDuration:function(t){t=r[t];return t&&!t.isValid||!1},flush:function(){r=Object.create(null)},count:function(t){t=r[t];return t?t.total:0},get:function(t){t=r[t];return t&&t.value},put:function(t,e,n){r[t]?(r[t].total++,r[t].value=e):r[t]={total:1,value:e,isValid:n}}}}]}).provider("$$animation",y).provider("$animateCss",e).provider("$$animateCssDriver",l).provider("$$animateJs",c).provider("$$animateJsDriver",m)}(window,window.angular),!function(b,E){"use strict";var w,$,x,S,T,_,C,k,A,D,O=E.$$minErr("$sanitize");E.module("ngSanitize",[]).provider("$sanitize",function(){var e=!1,r=!1,n=(this.$get=["$$sanitizeUri",function(n){return e=!0,r&&$(c,u),function(t){var e=[];return A(t,D(e,function(t,e){return!/^unsafe:/.test(n(t,e))})),e.join("")}}],this.enableSvg=function(t){return T(t)?(r=t,this):r},this.addValidElements=function(t){return e||(S(t)&&(t={htmlElements:t}),g(u,t.svgElements),g(s,t.htmlVoidElements),g(c,t.htmlVoidElements),g(c,t.htmlElements)),this},this.addValidAttrs=function(t){return e||$(d,f(t,!0)),this},w=E.bind,$=E.extend,x=E.forEach,S=E.isArray,T=E.isDefined,_=E.$$lowercase,C=E.noop,A=function(t,e){null==t?t="":"string"!=typeof t&&(t=""+t);var n=m(t);if(!n)return"";var r=5;do{if(0===r)throw O("uinput","Failed to sanitize html because the input is unstable")}while(r--,t=n.innerHTML,n=m(t),t!==n.innerHTML);var i,o=n.firstChild;for(;o;){switch(o.nodeType){case 1:e.start(o.nodeName.toLowerCase(),function(t){for(var e={},n=0,r=t.length;n<r;n++){var i=t[n];e[i.name]=i.value}return e}(o.attributes));break;case 3:e.chars(o.textContent)}if(!((i=o.firstChild)||(1===o.nodeType&&e.end(o.nodeName.toLowerCase()),i=y("nextSibling",o))))for(;null==i&&(o=y("parentNode",o))!==n;)i=y("nextSibling",o),1===o.nodeType&&e.end(o.nodeName.toLowerCase());o=i}for(;o=n.firstChild;)n.removeChild(o)},D=function(t,o){var e=!1,a=w(t,t.push);return{start:function(i,t){i=_(i),(e=!e&&l[i]?i:e)||!0!==c[i]||(a("<"),a(i),x(t,function(t,e){var n=_(e),r="img"===i&&"src"===n||"background"===n;
1!0!==d[n]||!0===p[n]&&!o(t,r)||(a(" "),a(e),a('="'),a(v(t)),a('"'))}),a(">"))},end:function(t){t=_(t),e||!0!==c[t]||!0===s[t]||(a("</"),a(t),a(">")),t==e&&(e=!1)},chars:function(t){e||a(v(t))}}},k=b.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},/[\uD800-\uDBFF][\uDC00-\uDFFF]/g),i=/([^#-~ |!])/g,s=h("area,br,col,hr,img,wbr"),t=h("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),o=h("rp,rt"),a=$({},o,t),t=$({},t,h("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),o=$({},o,h("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),u=h("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),l=h("script,style"),c=$({},s,t,o,a),p=h("background,cite,href,longdesc,src,xlink:href,xml:base"),t=h("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),o=h("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode
1-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),d=$({},p,o,t);function h(t,e){return f(t.split(","),e)}function f(t,e){for(var n={},r=0;r<t.length;r++)n[e?_(t[r]):t[r]]=!0;return n}function g(t,e){e&&e.length&&$(t,f(e))}var m=function(n,e){if(function(){try{return i("")}catch(t){}}())return i;var t,r;if(e&&e.implementation)return t=e.implementation.createHTMLDocument("inert"),r=(t.documentElement||t.getDocumentElement()).querySelector("body"),function(t){r.innerHTML=t,e.documentMode&&function t(e){for(;e;){if(e.nodeType===b.Node.ELEMENT_NODE)for(var n=e.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(e.removeAttributeNode(o),r--,i--)}var s=e.firstChild;s&&t(s),e=y("nextSibling",e)}}(r);return r};throw O("noinert","Can't create an inert html document");function i(t){t="<remove></remove>"+t;try{var e=(new n.DOMParser).parseFromString(t,"text/html").body;return e.firstChild.remove(),e}catch(t){}}}(b,b.document);function v(t){return t.replace(/&/g,"&amp;").replace(n,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(i,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function y(t,e){t=e[t];if(t&&k.call(e,t))throw O("elclob","Failed to sanitize html because the element is clobbered: {0}",e.outerHTML||e.outerText);return t}}).info({angularVersion:"1.8.2"}),E.module("ngSanitize").filter("linky",["$sanitize",function(f){var g=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,m=/^mailto:/i,v=E.$$minErr("linky"),y=E.isDefined,b=E.isFunction,w=E.isObject,$=E.isString;return function(t,e,n){if(null==t||""===t)return t;if(!$(t))throw v("notstring","Expected string but received: {0}",t);for(var r,i,o,a=b(n)?n:w(n)?function(){return n}:function(){return{}},s=t,u=[];r=s.match(g);){i=r[0],r[2]||r[4]||(i=(r[3]?"http://":"mailto:")+i),o=r.index,h(s.substr(0,o)),d=l=p=c=void 0;var l,c=i,p=r[0].replace(m,""),d=a(c);for(l in u.push("<a "),d)u.push(l+'="'+d[l]+'" ');!y(e)||"target"in d||u.push('target="',e,'" '),u.push('href="',c.replace(/"/g,"&quot;"),'">'),h(p),u.push("</a>"),s=s.substring(o+r[0].length)}return h(s),f(u.join(""));function h(t){var e;t&&u.push((t=t,D(e=[],C).chars(t),e.join("")))}}}])}(window,window.angular),!function(s){"use strict";var V=s.$$minErr("$resource"),u=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;function q(t,e){if(null==(n=e)||""===n||"hasOwnProperty"===n||!u.test("."+n))throw V("badmember",'Dotted member path "@{0}" is invalid.',e);for(var n,r=e.split("."),i=0,o=r.length;i<o&&s.isDefined(t);i++){var a=r[i];t=null!==t?t[a]:void 0}return t}function H(t,n){for(var e in n=n||{},s.forEach(n,function(t,e){delete n[e]}),t)!t.hasOwnProperty(e)||"$"===e.charAt(0)&&"$"===e.charAt(1)||(n[e]=t[e])}s.module("ngResource",["ng"]).info({angularVersion:"1.8.2"}).provider("$resource",function(){var d=/^https?:\/\/\[[^\]]*][^/]*/,a=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(L,r,I,M){var P=s.noop,N=s.forEach,F=s.extend,U=s.copy,j=s.isArray,l=s.isDefined,B=s.isFunction,i=s.isNumber,c=s.$$encodeUriQuery,p=s.$$encodeUriSegment;function o(t,e){this.template=t,this.defaults=F({},a.defaults,e),this.urlParams={}}return o.prototype={setUrlParams:function(n,r,t){var i,o,a=this,s=t||a.template,e="",u=a.urlParams=Object.create(null);N(s.split(/\W/),function(t){if("hasOwnProperty"===t)throw V("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(s)&&(u[t]={isQueryParamValue:new RegExp("\\?.*=:"+t+"(?:\\W|$)").test(s)})}),s=(s=s.replace(/\\:/g,":")).replace(d,function(t){return e=t,""}),r=r||{},N(a.urlParams,function(t,e){i=(r.hasOwnProperty(e)?r:a.defaults)[e],s=l(i)&&null!==i?(o=t.isQueryParamValue?c(i,!0):p(i),s.replace(new RegExp(":"+e+"(\\W|$)","g"),function(t,e){return o+e})):s.replace(new RegExp("(/?):"+e+"(\\W|$)","g"),function(t,e,n){return"/"===n.charAt(0)?n:e+n})}),s=(s=a.defaults.stripTrailingSlashes?s.replace(/\/+$/,"")||"/":s).replace(/\/\.(?=\w+($|\?))/,"."),n.url=e+s.replace(/\/(\\|%5C)\./,"/."),N(r,function(t,e){a.urlParam
1s[e]||(n.params=n.params||{},n.params[e]=t)})}},function(t,A,e,n){var D=new o(t,n);function O(t){return t.resource}function R(t){H(t||{},this)}return e=F({},a.defaults.actions,e),R.prototype.toJSON=function(){var t=F({},this);return delete t.$promise,delete t.$resolved,delete t.$cancelRequest,t},N(e,function(S,T){var _=!0===S.hasBody||!1!==S.hasBody&&/^(POST|PUT|PATCH)$/i.test(S.method),C=S.timeout,k=(l(S.cancellable)?S:D.defaults).cancellable;C&&!i(C)&&(r.debug("ngResource:\n  Only numeric values are allowed as `timeout`.\n  Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete S.timeout,C=null),R[T]=function(t,e,n,r){var i,o,a,s={};switch(arguments.length){case 4:a=r,o=n;case 3:case 2:if(!B(e)){s=t,i=e,o=n;break}if(B(t)){o=t,a=e;break}o=e,a=n;case 1:B(t)?o=t:_?i=t:s=t;break;case 0:break;default:throw V("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var u,l,c,p,d,h,f=this instanceof R,g=f?i:S.isArray?[]:new R(i),m={},v=S.interceptor&&S.interceptor.request||void 0,y=S.interceptor&&S.interceptor.requestError||void 0,b=S.interceptor&&S.interceptor.response||O,w=S.interceptor&&S.interceptor.responseError||I.reject,$=o?function(t){o(t,c.headers,c.status,c.statusText)}:void 0,E=a||void 0,x=(N(S,function(t,e){switch(e){default:m[e]=U(t);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!f&&k&&(u=I.defer(),m.timeout=u.promise,C)&&(l=M(u.resolve,C)),_&&(m.data=i),D.setUrlParams(m,F({},(p=i,d=S.params||{},h={},d=F({},A,d),N(d,function(t,e){B(t)&&(t=t(p)),h[e]=t&&t.charAt&&"@"===t.charAt(0)?q(p,t.substr(1)):t}),h),s),S.url),I.resolve(m).then(v).catch(y).then(L));return(x=(x=x.then(function(t){var e,n=t.data;if(n){if(j(n)!==!!S.isArray)throw V("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",T,S.isArray?"array":"object",j(n)?"array":"object",m.method,m.url);S.isArray?(g.length=0,N(n,function(t){"object"==typeof t?g.push(new R(t)):g.push(t)})):(e=g.$promise,H(n,g),g.$promise=e)}return t.resource=g,b(c=t)},function(t){return t.resource=g,w(c=t)})).finally(function(){g.$resolved=!0,!f&&k&&(g.$cancelRequest=P,M.cancel(l),u=l=m.timeout=null)})).then($,E),f?x:(g.$promise=x,g.$resolved=!1,k&&(g.$cancelRequest=function(t){x.catch(P),null!==u&&u.resolve(t)}),g)},R.prototype["$"+T]=function(t,e,n){B(t)&&(n=e,e=t,t={});t=R[T].call(this,t,this,e,n);return t.$promise||t}}),R}}]})}((window,window.angular)),!function(w){"use strict";function r(t,e){var o=[],t=t.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[?*])?/g,function(t,e,n,r){var i="?"===r||"*?"===r,r="*"===r||"*?"===r;return o.push({name:n,optional:i}),e=e||"",(i?"(?:"+e:e+"(?:")+(r?"(.+?)":"([^/]+)")+(i?"?)?":")")}).replace(/([/$*])/g,"\\$1");return e.ignoreTrailingSlashes&&(t=t.replace(/\/+$/,"")+"/*"),{keys:o,regexp:new RegExp("^"+t+"(?:[?#]|$)",e.caseInsensitiveMatch?"i":"")}}var o,a,e,$,n,t=w.module("ngRoute",[]).info({angularVersion:"1.8.2"}).provider("$route",function(){function y(t,e){return w.extend(Object.create(t),e)}o=w.isArray,a=w.isObject,e=w.isDefined,$=w.noop;var b={};this.when=function(t,e){var n,e=function(t,e){if(o(t)){e=e||[];for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(a(t))for(var i in e=e||{},t)"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i]);return e||t}(e);return w.isUndefined(e.reloadOnUrl)&&(e.reloadOnUrl=!0),w.isUndefined(e.reloadOnSearch)&&(e.reloadOnSearch=!0),w.isUndefined(e.caseInsensitiveMatch)&&(e.caseInsensitiveMatch=this.caseInsensitiveMatch),b[t]=w.extend(e,{originalPath:t},t&&r(t,e)),t&&(n="/"===t[t.length-1]?t.substr(0,t.length-1):t+"/",b[n]=w.extend({originalPath:t,redirectTo:t},r(n,e))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(t){return this.when(null,t="string"==typeof t?{redirectTo:t}:t),this},n=!0,this.eagerInstantiationEnabled=function(t){return e(t)?(n=t,this):n}
1,this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce","$browser",function(a,s,i,o,u,r,l,t){var c,p,d=!1,h={routes:b,reload:function(){var t={defaultPrevented:!(d=!0),preventDefault:function(){this.defaultPrevented=!0,d=!1}};a.$evalAsync(function(){e(t),t.defaultPrevented||n()})},updateParams:function(t){if(!this.current||!this.current.$$route)throw E("norout","Tried updating route with no current route");t=w.extend({},this.current.params,t),s.path(v(this.current.$$route.originalPath,t)),s.search(t)}};return a.$on("$locationChangeStart",e),a.$on("$locationChangeSuccess",n),h;function e(t){var n,r,e,i,o=h.current;w.forEach(b,function(t,e){!r&&(n=function(t,e){var n=e.keys,r={};if(!e.regexp)return null;var i=e.regexp.exec(t);if(!i)return null;for(var o=1,a=i.length;o<a;++o){var s=n[o-1],u=i[o];s&&u&&(r[s.name]=u)}return r}(s.path(),t))&&((r=y(t,{params:w.extend({},s.search(),n),pathParams:n})).$$route=t)}),c=r||b.null&&y(b.null,{params:{},pathParams:{}}),e=c,i=o,(p=!d&&e&&i&&e.$$route===i.$$route&&(!e.reloadOnUrl||!e.reloadOnSearch&&w.equals(e.pathParams,i.pathParams)))||!o&&!c||a.$broadcast("$routeChangeStart",c,o).defaultPrevented&&t&&t.preventDefault()}function n(){var e,n=h.current,r=c;p?(n.params=r.params,w.copy(n.params,i),a.$broadcast("$routeUpdate",n)):(r||n)&&(d=!1,h.current=r,e=o.resolve(r),t.$$incOutstandingRequestCount("$route"),e.then(f).then(g).then(function(t){return t&&e.then(m).then(function(t){r===h.current&&(r&&(r.locals=t,w.copy(r.params,i)),a.$broadcast("$routeChangeSuccess",r,n))})}).catch(function(t){r===h.current&&a.$broadcast("$routeChangeError",r,n,t)}).finally(function(){t.$$completeOutstandingRequest($,"$route")}))}function f(t){var e,n,r={route:t,hasRedirection:!1};if(t)if(t.redirectTo)w.isString(t.redirectTo)?(r.path=v(t.redirectTo,t.params),r.search=t.params,r.hasRedirection=!0):(n=s.path(),e=s.search(),n=t.redirectTo(t.pathParams,n,e),w.isDefined(n)&&(r.url=n,r.hasRedirection=!0));else if(t.resolveRedirectTo)return o.resolve(u.invoke(t.resolveRedirectTo)).then(function(t){return w.isDefined(t)&&(r.url=t,r.hasRedirection=!0),r});return r}function g(t){var e,n,r=!0;return r=t.route!==h.current||t.hasRedirection&&(e=s.url(),(n=t.url)?s.url(n).replace():n=s.path(t.path).search(t.search).replace().url(),n!==e)?!1:r}function m(t){var n;if(t)return n=w.extend({},t.resolve),w.forEach(n,function(t,e){n[e]=w.isString(t)?u.get(t):u.invoke(t,null,null,e)}),t=function(t){var e,n;w.isDefined(e=t.template)?w.isFunction(e)&&(e=e(t.params)):w.isDefined(n=t.templateUrl)&&(w.isFunction(n)&&(n=n(t.params)),w.isDefined(n))&&(t.loadedTemplateUrl=l.valueOf(n),e=r(n));return e}(t),w.isDefined(t)&&(n.$template=t),o.all(n)}function v(t,n){var r=[];return w.forEach((t||"").split(":"),function(t,e){0===e?r.push(t):(t=(e=t.match(/(\w+)(?:[?*])?(.*)/))[1],r.push(n[t]),r.push(e[2]||""),delete n[t])}),r.join("")}}]}).run(i),E=w.$$minErr("ngRoute");function i(t){n&&t.get("$route")}function s(d,h,f){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(r,i,t,e,o){var a,s,n,u=t.autoscroll,l=t.onload||"";function c(){n&&(f.cancel(n),n=null),a&&(a.$destroy(),a=null),s&&((n=f.leave(s)).done(function(t){!1!==t&&(n=null)}),s=null)}function p(){var t,e,n=d.current&&d.current.locals,n=n&&n.$template;w.isDefined(n)?(n=r.$new(),t=d.current,e=o(n,function(t){f.enter(t,null,s||i).done(function(t){!1===t||!w.isDefined(u)||u&&!r.$eval(u)||h()}),c()}),s=e,(a=t.scope=n).$emit("$viewContentLoaded"),a.$eval(l)):c()}r.$on("$routeChangeSuccess",p),p()}}}function u(a,s,u){return{restrict:"ECA",priority:-400,link:function(t,e){var n,r=u.current,i=r.locals,o=(e.html(i.$template),a(e.contents()));r.controller&&(i.$scope=t,n=s(r.controller,i),r.controllerAs&&(t[r.controllerAs]=n),e.data("$ngControllerController",n),e.children().data("$ngControllerController",n)),t[r.resolveAs||"$resolve"]=i,o(t)}}}i.$inject=["$injector"],t.provider("$routeParams",function(){this.$get=function(){return{}}}),t.directive("ngView",s),t.directive("ngView",u),s.$inject=["$route","$anchorScroll","$animate"],u.$inject=["$compile","$controller","$route"]}((window,window.angular)),!function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():t()}(function(){function t(e){"use strict";function t(){var t=e.preferredLanguage();angular.isString(t)?e.use(t):r.put(n,e.use())}var n=e.storageKey(),r=e.storage();t.displayName="fallbackFromIncorrectStorageValue",r?r.get(n)?e.use(r.get(n)).catch(t):t():angular.isString(e.preferredLanguage())&&e.use(e.preferredLanguage())}function e(t,o,a,i){"use strict";function e(){if(angular.isFunction(i.getLocale))return i.getLocale();var t,e,n=o.$get().navigator,r=["language","browserLanguage","systemLanguage","userLanguage"];
1if(angular.isArray(n.languages))for(t=0;t<n.languages.length;t++)if((e=n.languages[t])&&e.length)return e;for(t=0;t<r.length;t++)if((e=n[r[t]])&&e.length)return e;return null}function L(){var t=e()||"";return t=s[r]?s[r](t):t}function I(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function M(){return this.toString().replace(/^\s+|\s+$/g,"")}function l(t){return angular.isString(t)?t.toLowerCase():t}function P(t){if(t){for(var e,n,r=[],i=l(t),o=0,a=Z.length;o<a;o++)r.push(l(Z[o]));if(-1<(o=I(r,i)))return Z[o];if(c)for(n in c)if(c.hasOwnProperty(n)){var s=!1,u=Object.prototype.hasOwnProperty.call(c,n)&&l(n)===l(t);if("*"===n.slice(-1)&&(s=l(n.slice(0,-1))===l(t.slice(0,n.length-1))),(u||s)&&(e=c[n],-1<I(r,l(e))))return e}i=t.split("_");return 1<i.length&&-1<I(r,l(i[0]))?i[0]:void 0}}function N(t,e){if(!t&&!e)return J;if(t&&!e){if(angular.isString(t))return J[t]}else angular.isObject(J[t])||(J[t]={}),angular.extend(J[t],ut(e));return this}function F(t){return t?(tt=t,this):n?n+tt:tt}var U,c,j,B,V,q,H,n,W,G,z,K,Y,X,Q,lt,J={},Z=[],tt=t,et=[],nt="translate-cloak",ct=!1,rt=!1,it=".",ot=!1,pt=!1,at=0,st=!0,r="default",s={default:function(t){return(t||"").split("-").join("_")},java:function(t){var t=(t||"").split("-").join("_"),e=t.split("_");return 1<e.length?e[0].toLowerCase()+"_"+e[1].toUpperCase():t},bcp47:function(t){var e=(t||"").split("_").join("-"),n=e.split("-");switch(n.length){case 1:n[0]=n[0].toLowerCase();break;case 2:n[0]=n[0].toLowerCase(),4===n[1].length?n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase():n[1]=n[1].toUpperCase();break;case 3:n[0]=n[0].toLowerCase(),n[1]=n[1].charAt(0).toUpperCase()+n[1].slice(1).toLowerCase(),n[2]=n[2].toUpperCase();break;default:return e}return n.join("-")},"iso639-1":function(t){return(t||"").split("_").join("-").split("-")[0].toLowerCase()}},ut=(e.displayName="angular-translate/service: getFirstBrowserLanguage",L.displayName="angular-translate/service: getLocale",this.translations=N,this.cloakClassName=function(t){return t?(nt=t,this):nt},this.nestedObjectDelimeter=function(t){return t?(it=t,this):it},function(t,e,n,r){var i,o,a;for(i in e=e||[],n=n||{},t)Object.prototype.hasOwnProperty.call(t,i)&&(a=t[i],angular.isObject(a)?ut(a,e.concat(i),n,i):(o=e.length?""+e.join(it)+it+i:i,e.length&&i===r&&(n[""+e.join(it)]="@:"+o),n[o]=a));return n}),dt=(ut.displayName="flatObject",this.addInterpolation=function(t){return et.push(t),this},this.useMessageFormatInterpolation=function(){return this.useInterpolation("$translateMessageFormatInterpolation")},this.useInterpolation=function(t){return G=t,this},this.useSanitizeValueStrategy=function(t){return a.useStrategy(t),this},this.preferredLanguage=function(t){return t?(dt(t),this):U},function(t){return U=t?t:U}),ht=(this.translationNotFoundIndicator=function(t){return this.translationNotFoundIndicatorLeft(t),this.translationNotFoundIndicatorRight(t),this},this.translationNotFoundIndicatorLeft=function(t){return t?(Y=t,this):Y},this.translationNotFoundIndicatorRight=function(t){return t?(X=t,this):X},this.fallbackLanguage=function(t){return ht(t),this},function(t){return t?(angular.isString(t)?(B=!0,j=[t]):angular.isArray(t)&&(B=!1,j=t),angular.isString(U)&&I(j,U)<0&&j.push(U),this):B?j[0]:j});this.use=function(t){if(t){if(J[t]||z)return V=t,this;throw new Error("$translateProvider couldn't find translationTable for langKey: '"+t+"'")}return V},this.resolveClientLocale=L;this.storageKey=F,this.useUrlLoader=function(t,e){return this.useLoader("$translateUrlLoader",angular.extend({url:t},e))},this.useStaticFilesLoader=function(t){return this.useLoader("$translateStaticFilesLoader",t)},this.useLoader=function(t,e){return z=t,K=e||{},this},this.useLocalStorage=function(){return this.useStorage("$translateLocalStorage")},this.useCookieStorage=function(){return this.useStorage("$translateCookieStorage")},this.useStorage=function(t){return H=t,this},this.storagePrefix=function(t){return t&&(n=t,this)},this.useMissingTranslationHandlerLog=function(){return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")},this.useMissingTranslationHandler=function(t){return W=t,this},this.usePostCompiling=function(t){return ct=!!t,this},this.forceAsyncReload=function(t){return rt=!!t,this},this.uniformLanguageTag=function(t){return t?angular.isString(t)&&(t={standard:t}):t={},r=t.standard,this},this.determinePreferredLanguage=function(t){t=(t&&angular.isFunction(t)?t:L)();return U=Z.length&&P(t)||t,this},this.registerAvailableLanguageKeys=function(t,e){return t?(Z=t,e&&(c=e),this):Z},this.useLoaderCache=function(t){return!1===t?Q=void 0:!0===t?Q=!0:void 0===t?Q="$translationCache":t&&(Q=t),this},this.directivePriority=function(t){return void 0===t?at:(at=t,this)},this.statefulFilter=function(t){return void 0===t?st:(st=t,this)},this.postProcess=function(t){return lt=t||void 0,this},this.keepContent=function(t){return pt=!!t,this},this.$get=["$log","$injector","$rootScope","$q",function(t,s,o,m){function a(t){function e(t,e){p[e].setLocale(V)}V=t,H&&v.put($.storageKey(),V),o.$emit("$translateChangeSuccess",{language:t}),g.setLocale(V),e.displayName="eachInterpolatorLocaleSetter",angular.forEach(p,e),o.$emit("$translateChangeEnd",{language:t})}var v,y,c,e,g=s.get(G||"$translateDefaultInterpolation"),b=!1,p={},w={},$=function(t,r,i,o,a,s){!V&&U&&(V=U);var e=a&&a!==V?P(a)||a:V;if(a&&k(a),angular.isArray(t)){for(var n=t,u={},l=[],c=function(e){function t(t){u[e]=t,n.resolve([e,t])}var n=m.defer();return $(e,r,i,o,a,s).then(t,t),n.promise},p=0,d=n.length;p<d;p++)l.push(c(n[p]));return m.all(l).then(function(){return u})}var h=m.defer();if(!t)throw new TypeError("translationId must be a not empty string");t=M.apply(t);f=w[e]||w[U],y=0,H&&!f&&(g=v.get(tt),f=w[g],j)&&j.length&&(g=I(j,g),y=0===g?1:0,I(j,U)<0)&&j.push(U);var f,g=f;return g?((f=function(){T(t,r,i,o,e=a?e:V,s).then(h.resolve,h.reject)}).displayName="promiseResolved",g.finally(f).catch(angular.noop)):T(t,r,i,o,e,s).then(h.resolve,h.reject),h.promise},E=function(t){return Y&&(t=[Y,t].join(" ")),t=X?[t,X].join(" "):t},u=function(n){var r,t,e,i;if(n)return r=m.defer(),o.$emit("$translateLoadingStart",{language:n}),b=!0,"string"==typeof(t=Q)&&(t=s.get(t)),t=angular.extend({},K,{key:n,$http:angular.extend({},{cache:t},K.$http)}),(e=function(t){var e={};o.$emit("$translateLoadingSuccess",{language:n}),angular.isArray(t)?angular.forEach(t,function(t){angular.extend(e,ut(t))}):angular.extend(e,ut(t)),b=!1,r.resolve({key:n,table:e}),o.$emit("$translateLoadingEnd",{language:n})}).displayName="onLoaderSuccess",(i=function(t){o.$emit("$translateLoadingError",{language:t}),r.reject(t),o.$emit("$translateLoadingEnd",{language:t})}).displayName="onLoaderError",s.get(z)(t).then(e,i),r.promise;throw"No language key specified for loading."};if(H&&(!(v=s.get(H)).get||!v.put))throw new Error("Couldn't use storage '"+H+"', missing get() or put() method!");et.length&&((e=function(t){t=s.get(t);t.setLocale(U||V),p[t.getInterpolationIdentifier()]=t}).displayName="interpolationFactoryAdder",angular.forEach(et,e));function d(n,r,i,o,a){function t(t){var e;Object.prototype.hasOwnProperty.call(t,r)&&null!==t[r]?(o.setLocale(n),"@:"===(e=t[r]).substr(0,2)?d(n,e.substr(2),i,o,a).then(l.resolve,l.reject):(e=o.interpolate(t[r],i,"service",a,r),e=C(r,t[r],e,i,n),l.resolve(e)),o.setLocale(V)):l.reject()}var e,s,u,l=m.defer();return t.displayName="fallbackTranslationResolver",e=n,u=m.defer(),Object.prototype.hasOwnProperty.call(J,e)?u.resolve(J[e]):w[e]?((s=function(t){N(t.key,t.table),u.resolve(t.table)}).displayName="translationTableResolver",w[e].then(s,u.reject)):u.reject(),u.promise.then(t,l.reject),l.promise}function l(t,e,n,r,i){var o,a=J[t];if(a&&Object.prototype.hasOwnProperty.call(a,e)&&null!==a[e]){if(r.setLocale(t),o=r.interpolate(a[e],n,"filter",i,e),o=C(e,a[e],o,n,t,i),!angular.isString(o)&&angular.isFunction(o.$$unwrapTrustedValue)){a=o.$$unwrapTrustedValue();if("@:"===a.substr(0,2))return l(t,a.substr(2),n,r,i)}else if("@:"===o.substr(0,2))return l(t,o.substr(2),n,r,i);r.setLocale(V)}return o}function h(t,e,n,r,i,o){var a,s=m.defer();return t<j.length?(a=j[t],d(a,e,n,r,o).then(function(t){s.resolve(t)},function(){return h(t+1,e,n,r,i,o).then(s.resolve,s.reject)})):i?s.resolve(i):(a=x(e,n,i),W&&a?s.resolve(a):s.reject(E(e))),s.promise}function f(t,e,n,r,i){var o;return t<j.length&&(o=j[t],(o=l(o,e,n,r,i))||""===o||(o=f(t+1,e,n,r))),o}var x=function(t,e,n,r){return W?s.get(W)(t,V,e,n,r):t},S=function(t,e,n,r){return f(0<c?c:y,t,e,n,r)},T=function(t,e,n,r,i,o){var a,s=m.defer(),u=i?J[i]:J,l=n?p[n]:g;return u&&Object.prototype.hasOwnProperty.call(u,t)&&null!==u[t]?"@:"===(u=u[t]).substr(0,2)?$(u.substr(2),e,n,r,i,o).then(s.resolve,s.reject):(n=l.interpolate(u,e,"service",o,t),n=C(t,u,n,e,i),s.resolve(n)):(W&&!b&&(a=x(t,e,r)),i&&j&&j.length?h(0<c?c:y,t,e,l,r,o).then(function(t){s.resolve(t)},function(t){s.reject(E(t))}):W&&!b&&a?r?s.resolve(r):s.resolve(a):r?s.resolve(r):s.reject(E(t))),s.promise},_=function(t,e,n,r,i){var o,a,s=r?J[r]:J,u=g;return p&&Object.prototype.hasOwnProperty.call(p,n)&&(u=p[n]),o=s&&Object.prototype.hasOwnProperty.call(s,t)&&null!==s[t]?"@:"===(s=s[t]).substr(0,2)?_(s.substr(2),e,n,r,i):(o=u.interpolate(s,e,"filter",i,t),C(t,s,o,e,r,i)):(W&&!b&&(a=x(t,e,i)),r&&j&&j.length?(y=0,S(t,e,u,i)):W&&!b&&a?a:E(t))},C=function(t,e,n,r,i,o){var a=lt;return(a=a&&("string"==typeof a?s.get(a):a))?a(t,e,n,r,i,o):n},k=function(t){J[t]||!z||w[t]||(w[t]=u(t).then(function(t){return N(t.key,t.table),t}))},n=($.preferredLanguage=function(t){return t&&dt(t),U},$.cloakClassName=function(){return nt},$.nestedObjectDelimeter=function(){return it},$.fallbackLanguage=function(t){if(null!=t){if(ht(t),z&&j&&j.length)for(var e=0,n=j.length;e<n;e++)w[j[e]]||(w[j[e]]=u(j[e]));$.use($.use())}return B?j[0]:j},$.useFallbackLanguage=function(t){null!=t&&(t?-1<(t=I(j,t))&&(c=t):c=0)},$.proposedLanguage=function(){return q},$.storage=function(){return v},$.negotiateLocale=P,$.use=function(e){var n,t;return e?((n=m.defer()).promise.then(null,angular.noop),o.$emit("$translateChangeStart",{language:e}),t=P(e),0<Z.length&&!t?m.reject(e):(q=e=t?t:e,!rt&&J[e]||!z||w[e]?w[e]?w[e].then(function(t){return q===t.key&&a(t.key),n.resolve(t.key),t},function(t){return!V&&j&&0<j.length&&j[0]!==t?$.use(j[0]).then(n.resolve,n.reject):n.reject(t)}):(n.resolve(e),a(e)):(w[e]=u(e).then(function(t){return N(t.key,t.table),n.resolve(t.key),q===e&&a(t.key),t},function(t){return o.$emit("$translateChangeError",{language:t}),n.reject(t),o.$emit("$translateChangeEnd",{language:t}),m.reject(t)}),w[e].finally(function(){q===e&&(q=void 0),w[e]=void 0}).catch(angular.noop)),n.promise)):V}
1,$.resolveClientLocale=L,$.storageKey=function(){return F()},$.isPostCompilingEnabled=function(){return ct},$.isForceAsyncReloadEnabled=function(){return rt},$.isKeepContent=function(){return pt},$.refresh=function(t){if(!z)throw new Error("Couldn't refresh translation table, no loader registered!");o.$emit("$translateRefreshStart",{language:t});var e,n=m.defer(),r={};function i(e){var t=u(e);return(w[e]=t).then(function(t){J[e]={},N(e,t.table),r[e]=!0},angular.noop),t}return n.promise.then(function(){for(var t in J)!J.hasOwnProperty(t)||t in r||delete J[t];V&&a(V)},angular.noop).finally(function(){o.$emit("$translateRefreshEnd",{language:t})}),t?J[t]?i(t).then(n.resolve,n.reject):n.reject():(e=j&&j.slice()||[],V&&-1===e.indexOf(V)&&e.push(V),m.all(e.map(i)).then(n.resolve,n.reject)),n.promise},$.instant=function(t,e,n,r,i){var o=r&&r!==V?P(r)||r:V;if(null===t||angular.isUndefined(t))return t;if(r&&k(r),angular.isArray(t)){for(var a={},s=0,u=t.length;s<u;s++)a[t[s]]=$.instant(t[s],e,n,r,i);return a}if(angular.isString(t)&&t.length<1)return t;t=t&&M.apply(t);var l=[];U&&l.push(U),o&&l.push(o);for(var c,p,d=0,h=(l=j&&j.length?l.concat(j):l).length;d<h;d++){var f=l[d];if(void 0!==(p=J[f]&&void 0!==J[f][t]?_(t,e,n,o,i):p))break}return p||""===p||(Y||X?p=E(t):(p=g.interpolate(t,e,"filter",i),W&&!b&&(c=x(t,e,i)),W&&!b&&c&&(p=c))),p},$.versionInfo=function(){return"2.18.4"},$.loaderCache=function(){return Q},$.directivePriority=function(){return at},$.statefulFilter=function(){return st},$.isReady=function(){return ot},m.defer()),r=(n.promise.then(function(){ot=!0}),$.onReady=function(t){var e=m.defer();return angular.isFunction(t)&&e.promise.then(t),ot?e.resolve():n.promise.then(e.resolve),e.promise},$.getAvailableLanguageKeys=function(){return 0<Z.length?Z:null},$.getTranslationTable=function(t){return(t=t||$.use())&&J[t]?angular.copy(J[t]):null},o.$on("$translateReady",function(){n.resolve(),r(),r=null})),i=o.$on("$translateChangeEnd",function(){n.resolve(),i(),i=null});if(z){if(angular.equals(J,{})&&$.use()&&$.use($.use()),j&&j.length)for(var A=function(t){return N(t.key,t.table),o.$emit("$translateChangeEnd",{language:t.key}),t},D=0,O=j.length;D<O;D++){var R=j[D];!rt&&J[R]||(w[R]=u(R).then(A))}}else o.$emit("$translateReady",{language:$.use()});return $}]}function n(a,s){"use strict";var t={};return t.setLocale=function(t){0},t.getInterpolationIdentifier=function(){return"default"},t.useSanitizeValueStrategy=function(t){return s.useStrategy(t),this},t.interpolate=function(t,e,n,r,i){var o;return e=s.sanitize(e=e||{},"params",r,n),o=angular.isNumber(t)?""+t:angular.isString(t)?(o=a(t)(e),s.sanitize(o,"text",r,n)):""},t}function r(x,S,T,_,C){"use strict";function k(t){return angular.isString(t)?t.toLowerCase():t}return{restrict:"AE",scope:!0,priority:x.directivePriority(),compile:function(t,m){var v=m.translateValues||void 0,y=m.translateInterpolation||void 0,b=m.translateSanitizeStrategy||void 0,w=t[0].outerHTML.match(/translate-value-+/i),$="^(.*)("+S.startSymbol()+".*"+S.endSymbol()+")(.*)",E="^(.*)"+S.startSymbol()+"(.*)"+S.endSymbol()+"(.*)";return function(r,a,s){r.interpolateParams={},r.preText="",r.postText="",r.translateNamespace=function t(e){if(e.translateNamespace)return e.translateNamespace;if(e.$parent)return t(e.$parent)}(r);var i={},o=function(t){var e,n;angular.isFunction(o._unwatchOld)&&(o._unwatchOld(),o._unwatchOld=void 0),angular.equals(t,"")||!angular.isDefined(t)?(n=(e=function(){return this.toString().replace(/^\s+|\s+$/g,"")}.apply(a.text()).replace(/\n/g," ")).match($),angular.isArray(n)?(r.preText=n[1],r.postText=n[3],i.translate=S(n[2])(r.$parent),n=e.match(E),angular.isArray(n)&&n[2]&&n[2].length&&(o._unwatchOld=r.$watch(n[2],function(t){i.translate=t,h()}))):i.translate=e||void 0):i.translate=t,h()},t=r.interpolateParams,e=s,n=m;if(e.translateValues&&angular.extend(t,_(e.translateValues)(r.$parent)),w)for(var u in n)Object.prototype.hasOwnProperty.call(e,u)&&"translateValue"===u.substr(0,14)&&"translateValues"!==u&&(t[k(u.substr(14,1))+u.substr(15)]=n[u]);var l,c=!0;for(l in s.$observe("translate",function(t){void 0===t?o(""):""===t&&c||(i.translate=t,h()),c=!1}),s)s.hasOwnProperty(l)&&"translateAttr"===l.substr(0,13)&&13<l.length&&!function(e){s.$observe(e,function(t){i[e]=t,h()})}(l);if(s.$observe("translateDefault",function(t){r.defaultText=t,h()}),b&&s.$observe("translateSanitizeStrategy",function(t){r.sanitizeStrategy=_(t)(r.$parent),h()}),v&&s.$observe("translateValues",function(t){t&&r.$parent.$watch(function(){angular.extend(r.interpolateParams,_(t)(r.$parent))})}),w)for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&"translateValue"===p.substr(0,14)&&"translateValues"!==p&&!function(n){s.$observe(n,function(t){var e=k(n.substr(14,1))+n.substr(15);r.interpolateParams[e]=t})}(p);function d(t,e,n,r){var i,o;n||void 0!==e.defaultText&&(t=e.defaultText),"translate"===r?((n||!x.isKeepContent()&&void 0===s.translateKeepContent)&&a.empty().append(e.preText+t+e.postText),n=x.isPostCompilingEnabled(),o=(i=void 0!==m.translateCompile)&&"false"!==m.translateCompile,(n&&!i||o)&&T(a.contents())(e)):(n=(n="data-"===(n=s.$attr[r]).substr(0,5)?n.substr(5):n).substr(15),a.attr(n,t))}
1var h=function(){for(var t in i)i.hasOwnProperty(t)&&void 0!==i[t]&&f(t,i[t],r,r.interpolateParams,r.defaultText,r.translateNamespace)},f=function(e,t,n,r,i,o){t?(o&&"."===t.charAt(0)&&(t=o+t),x(t,r,y,i,n.translateLanguage,n.sanitizeStrategy).then(function(t){d(t,n,!0,e)},function(t){d(t,n,!1,e)})):d(t,n,!1,e)},g=((v||w||s.translateDefault)&&r.$watch("interpolateParams",h,!0),r.$on("translateLanguageChanged",h),C.$on("$translateChangeSuccess",h));a.text().length?s.translate?o(s.translate):o(""):s.translate&&o(s.translate),h(),r.$on("$destroy",g)}}}}function i(l,c){"use strict";return{restrict:"A",priority:l.directivePriority(),link:function(n,r,i){function t(){angular.forEach(o,function(t,e){t&&(u[e]=!0,n.translateNamespace&&"."===t.charAt(0)&&(t=n.translateNamespace+t),l(t,a,i.translateInterpolation,void 0,n.translateLanguage,s).then(function(t){r.attr(e,t)},function(t){r.attr(e,t)}))}),angular.forEach(u,function(t,e){o[e]||(r.removeAttr(e),delete u[e])})}var o,a,s,u={},e=(p(n,i.translateAttr,function(t){o=t},t),p(n,i.translateValues,function(t){a=t},t),p(n,i.translateSanitizeStrategy,function(t){s=t},t),i.translateValues&&n.$watch(i.translateValues,t,!0),n.$on("translateLanguageChanged",t),c.$on("$translateChangeSuccess",t));t(),n.$on("$destroy",e)}}}function p(t,e,n,r){"use strict";e&&("::"===e.substr(0,2)?e=e.substr(2):t.$watch(e,function(t){n(t),r()},!0),n(t.$eval(e)))}function o(a,s){"use strict";return{compile:function(t){function o(t){t.addClass(a.cloakClassName())}return o(t),function(t,e,n){var r=function(t){t.removeClass(a.cloakClassName())}.bind(this,e),i=o.bind(this,e);n.translateCloak&&n.translateCloak.length?(n.$observe("translateCloak",function(t){a(t).then(r,i)}),s.$on("$translateChangeSuccess",function(){a(n.translateCloak).then(r,i)})):a.onReady(r)}}}}function a(){"use strict";return{restrict:"A",scope:!0,compile:function(){return{pre:function(t,e,n){t.translateNamespace=function t(e){if(e.translateNamespace)return e.translateNamespace;if(e.$parent)return t(e.$parent)}(t),t.translateNamespace&&"."===n.translateNamespace.charAt(0)?t.translateNamespace+=n.translateNamespace:t.translateNamespace=n.translateNamespace}}}}}function s(){"use strict";return{restrict:"A",scope:!0,compile:function(){return function(e,t,n){n.$observe("translateLanguage",function(t){e.translateLanguage=t}),e.$watch("translateLanguage",function(){e.$broadcast("translateLanguageChanged")})}}}}function u(o,a){"use strict";function t(t,e,n,r){var i;return angular.isObject(e)||(i=this||{__SCOPE_IS_NOT_AVAILABLE:"More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"},e=o(e)(i)),a.instant(t,e,n,r)}return a.statefulFilter()&&(t.$stateful=!0),t}function l(t){"use strict";return t("translations")}return t.$inject=["$translate"],e.$inject=["$STORAGE_KEY","$windowProvider","$translateSanitizationProvider","pascalprechtTranslateOverrider"],n.$inject=["$interpolate","$translateSanitization"],r.$inject=["$translate","$interpolate","$compile","$parse","$rootScope"],i.$inject=["$translate","$rootScope"],o.$inject=["$translate","$rootScope"],u.$inject=["$parse","$translate"],l.$inject=["$cacheFactory"],angular.module("pascalprecht.translate",["ng"]).run(t),t.displayName="runTranslate",angular.module("pascalprecht.translate").provider("$translateSanitization",function(){"use strict";var n,r,c,p=null,d=!1,h=!1,i=((c={sanitize:function(t,e){return t="text"===e?o(t):t},escape:function(t,e){return t="text"===e?i(t):t},sanitizeParameters:function(t,e){return t="params"===e?s(t,o):t},escapeParameters:function(t,e){return t="params"===e?s(t,i):t},sce:function(t,e,n){return"text"===e?t=a(t):"params"===e&&"filter"!==n&&(t=s(t,i)),t},sceParameters:function(t,e){return t="params"===e?s(t,a):t}}).escaped=c.escapeParameters,this.addStrategy=function(t,e){return c[t]=e,this},this.removeStrategy=function(t){return delete c[t],this},this.useStrategy=function(t){return d=!0,p=t,this},this.$get=["$injector","$log",function(s,u){var e,l={};return s.has("$sanitize")&&(n=s.get("$sanitize")),s.has("$sce")&&(r=s.get("$sce")),{useStrategy:(e=this,function(t){e.useStrategy(t)}),sanitize:function(t,e,n,r){if(p||d||h||(u.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."),h=!0),!(n=n||null===n?n:p))return t;r=r||"service";var i,o,a,n=angular.isArray(n)?n:[n];return i=t,o=e,a=r,angular.forEach(n,function(e){if(angular.isFunction(e))i=e(i,o,a);else if(angular.isFunction(c[e]))i=c[e](i,o,a);else{if(!angular.isString(c[e]))throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+e+"'");if(!l[c[e]])try{l[c[e]]=s.get(c[e])}catch(t){throw l[c[e]]=function(){},new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '"+e+"'")}i=l[c[e]](i,o,a)}}),i}}}],function(t){var e=angular.element("<div></div>");return e.text(t),e.html()}),o=function(t){if(n)return n(t);throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.")},a=function(t){if(r)return r.trustAsHtml(t);throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.")},s=function(t,n,r){if(angular.isDate(t))return t;if(angular.isObject(t)){var i=angular.isArray(t)?[]:{};if(r){if(-1<r.indexOf(t))throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")}else r=[];return r.push(t),angular.forEach(t,function(t,e){angular.isFunction(t)||(i[e]=s(t,n,r))}),r.splice(-1,1),i}return angular.isNumber(t)||!0===t||!1===t||angular.isUndefined(t)||null===t?t:n(t)}}),angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider",{}).provider("$translate",e),e.displayName="displayName",angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation",n),n.displayName="$translateDefaultInterpolation",angular.module("pascalprecht.translate").constant("$STORAGE_KEY","NG_TRANSLATE_LANG_KEY"),angular.module("pascalprecht.translate").directive("translate",r),r.displayName="translateDirective",angular.module("pascalprecht.translate").directive("translateAttr",i),i.displayName="translateAttrDirective",angular.module("pascalprecht.translate").directive("translateCloak",o),o.displayName="translateCloakDirective",angular.module("pascalprecht.translate").directive("translateNamespace",a),a.displayName="translateNamespaceDirective",angular.module("pascalprecht.translate").directive("translateLanguage",s),s.displayName="translateLanguageDirective",angular.module("pascalprecht.translate").filter("translate",u),u.displayName="translateFilterFactory",angular.module("pascalprecht.translate").factory("$translationCache",l),l.displayName="$translationCache","pascalprecht.translate"}),!function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():t()}(function(){function t(i,o){"use strict";return function(e){if(!(e&&(angular.isArray(e.files)||angular.isString(e.prefix)&&angular.isString(e.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");e.files||(e.files=[{prefix:e.prefix,suffix:e.suffix}]);for(var t=[],n=e.files.length,r=0;r<n;r++)t.push(function(t){if(t&&angular.isString(t.prefix)&&angular.isString(t.suffix))return t=[t.prefix,e.key,t.suffix].join(""),angular.isObject(e.fileMap)&&e.fileMap[t]&&(t=e.fileMap[t]),o(angular.extend({url:t,method:"GET"},e.$http)).then(function(t){return t.data},function(){return i.reject(e.key)});throw new Error("Couldn't load static file, no prefix or suffix specified!")}
1({prefix:e.files[r].prefix,key:e.key,suffix:e.files[r].suffix}));return i.all(t).then(function(t){for(var e=t.length,n={},r=0;r<e;r++)for(var i in t[r])n[i]=t[r][i];return n})}}return t.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",t),t.displayName="$translateStaticFilesLoader","pascalprecht.translate"}),!function(d){"use strict";var t=d.module("ngTouch",[]);function e(l,c,p){t.directive(l,["$parse","$swipe",function(s,u){return function(n,r,t){var i,o,a=s(t[l]);var e=["touch"];d.isDefined(t.ngSwipeDisableMouse)||e.push("mouse"),u.bind(r,{start:function(t,e){i=t,o=!0},cancel:function(t){o=!1},end:function(t,e){!function(t){var e;if(i)return e=Math.abs(t.y-i.y),t=(t.x-i.x)*c,o&&e<75&&0<t&&30<t&&e/t<.3}(t)||n.$apply(function(){r.triggerHandler(p),a(n,{$event:e})})}},e)}}])}t.info({angularVersion:"1.8.2"}),t.factory("$swipe",[function(){var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};function l(t){var t=t.originalEvent||t,e=t.touches&&t.touches.length?t.touches:[t],t=t.changedTouches&&t.changedTouches[0]||e[0];return{x:t.clientX,y:t.clientY}}function c(t,e){var n=[];return d.forEach(t,function(t){t=r[t][e];t&&n.push(t)}),n.join(" ")}return{bind:function(t,n,e){var r,i,o,a,s=!1,u=(t.on(c(e=e||["mouse","touch","pointer"],"start"),function(t){o=l(t),s=!0,i=r=0,a=o,n.start&&n.start(o,t)}),c(e,"cancel"));u&&t.on(u,function(t){s=!1,n.cancel&&n.cancel(t)}),t.on(c(e,"move"),function(t){var e;s&&o&&(e=l(t),r+=Math.abs(e.x-a.x),i+=Math.abs(e.y-a.y),a=e,r<10&&i<10||(r<i?(s=!1,n.cancel&&n.cancel(t)):(t.preventDefault(),n.move&&n.move(e,t))))}),t.on(c(e,"end"),function(t){s&&(s=!1,n.end)&&n.end(l(t),t)})}}}]),e("ngSwipeLeft",-1,"swipeleft"),e("ngSwipeRight",1,"swiperight")}((window,window.angular)),!function(){"use strict";angular.module("fetch-web-angular",["ng"])}(),!function(){"use strict";angular.module("fetch-web-angular").provider("httpTrafficCopService",function(){var r=6e4,i=599,o=60,a=o*r,s=a/60,u=function(t){return!0},l=!0;return{enable:function(){return l=!0,this},disable:function(){return l=!1,this},canSendUpTo:function(t){return i=t-1,this},InEveryWindowOf:function(t){return a=(o=t)*r,this},minutes:function(){return a=o*(r=6e4),this},seconds:function(){return a=o*(r=1e3),this},whenRequestSatisfies:function(t){return u=t,this},$get:function(){var e=[0],t=new Date(1990,1,1);function n(){e.push(0),a/s<e.length&&e.shift()}return l&&(s=(a=o*r)/60,setInterval(n,s)),{canIssueRequest:function(t){return!l||!u(t)||_.reduce(e,function(t,e){return t+e},0)<=i},requestIssued:function(t){l&&u(t)&&++e[e.length-1]},shouldNotifyRejection:function(){return!!l&&(new Date).getTime()-t>a},rejectNotificationIssued:function(){t=(new Date).getTime()}}}}})}(),!function(){"use strict";angular.module("fetch-web-angular").factory("messageBus",["$rootScope","$log",function(r,n){var t={emitMessage:function(t,e){n.debug("messageBus.emitMessage - "+t),r.$emit(t,e)},onMessage:function(t,e,n){t=r.$on(t,e);return n&&n.$on("$destroy",t),t}};return{emitMessage:t.emitMessage,onMessage:t.onMessage}}])}(),!function(u){"use strict";u.module("fetch-web-angular").directive("ftPin",["$timeout",function(s){return{restrict:"EA",scope:{enteredPin:"=",pinCompleted:"&",invalidEntry:"&",autoFocus:"@",blurOnCompleted:"@"},template:'<div class="pin-box-container">  <div class="pin-area">    <div>      <span ng-repeat="digit in [0,1,2,3]" ng-class="{\'selected\': isSelectedDigit(digit)}" ng-click="selectDigit()">        <svg ng-if=\'enteredPin[digit]\' height="16" width="16">          <g>            <circle r="7.8" cy="8" cx="8" style="fill:#000000" />          </g>        </svg>      </span>    </div>   <input ng-pattern="/^[0-9]{1,4}$/" type="tel" maxlength="4" ng-click="selectDigit()" ng-paste="pasted()" ng-keyup="keyUp()" ng-model="enteredPin" ng-model-options="{ updateOn: \'keyDown input\' }"></input>  </div></div>',compile:function(){return{pre:function(t,e,n,r){},post:function(n,t,e,r){var i=u.element(".pin-area input",t),t=!!u.isDefined(n.autoFocus)&&"true"===n.autoFocus,o=!!u.isDefined(n.blurOnCompleted)&&"true"===n.blurOnCompleted;function a(){var t=i[0],e=(/[0-9]{1,4}/.exec(t.value)||[""])[0];t.value!==e&&n.invalidEntry(),t.value=e,n.enteredPin=e,n.selectDigit(),3<n.enteredPin.length&&n.isSelectedDigit(4)&&(o&&i.blur(),n.pinCompleted({relData:n.enteredPin}))}n.selectDigit=function(){i.focus();var t=i[0],e=(t.value||"").length;t.setSelectionRange(e,e)},n.isSelectedDigit=function(t){var e;return!!i.is(":focus")&&((e=i[0]).selectionStart===t||3<e.selectionStart&&3===t)},n.enteredPin=n.enteredPin||"",n.keyUp=a,n.pasted=function(){s(500).then(a)},t&&s(n.selectDigit,500)}}}}}])}(angular),!function(o){o.module("fetch-web-angular").directive("scrollTop",["$window",function(i){return{restrict:"A",compile:function(){return{pre:function(t,e,n,r){}
1,post:function(t,e,n,r){o.element(i).scrollTop(0)}}}}}])}(angular),!function(v){v.module("fetch-web-angular").directive("scrollClassTrigger",["$window","$timeout",function(h,r){var f=Rx.Observable.fromEvent(v.element(h),"scroll resize"),g=/^\$\((.*)\)@(top|bottom)([\-,+]?.*)?/,m=/^([\-.+])\$\(([^\)]*)\)@(top|bottom|height)([\-,+]?.*)?/;return{restrict:"A",scope:!1,compile:function(){return{pre:function(t,e,n,r){},post:function(i,t,e,n){var o=v.element(t),a=e.scrollClassTrigger,s=e.scrollMin,u=e.scrollMax,l=e.scrollPass,c=parseInt(e.sampleRate)||250,p="true"===e.debug;function d(t){p&&console.log("Parse syntax: ",t);var e,r,i,o,a,n,l={top:function(t){return t.offset().top},bottom:function(t){return t.offset().top+l.height(t)},height:function(t){return t.outerHeight()}};return g.test(t)?(p&&console.log("is jQuery expression: "),e=g.exec(t),r=e[1],i=l[e[2]],o=function t(e){var r,i,o,a,s,u,n;return p&&console.log("Parse offsetexpression: ",e),m.test(e)?(r=m.exec(e),i="-"===r[1]?-1:1,o=r[2],a=l[r[3]],s=t(r[4]),u=v.element(o),function(){var t=i*a(u),e=s(),n=t+e;return p&&console.debug(`${o}::${r[3]} = ${t} + rest: ${e} = `+n),n}):(n=parseInt(e)||0,function(){return p&&console.debug("Offsetvalue: "+n),n})}(e[3]),1!==(a=v.element(r)).length&&console.warn("scrollClassTrigger found unexpected match for relative trigger (should only be one). Expression:",r,"count:",a.length),function(){var t=i(a),e=o(),n=t+e;return p&&(console.debug("Base selector: "+r),console.debug(`Relative: ${t}, Offset: ${e}, Total: `+n)),n}):(n=parseInt(t)||0,p&&console.log("is raw value:",n),function(){return n})}r(function(){var e=d(s),n=d(u),t=f.sample(c).map(function(){return v.element(h).scrollTop()}),r=(t=p?t.map(function(t){return console.log("scroll current: "+scrollY+" min: "+e()+" max: "+n()),t}):t).subscribe(function(t){if(v.isDefined(l)&&v.isDefined(u)&&t>=n())o.removeClass(a),o.addClass(l);else{if(o.removeClass(l),t<=e())return o.removeClass(a);o.addClass(a)}});i.$on("$destroy",function(){r.dispose()})},1e3)}}}}}])}(angular),angular.module("fetch-web-shared",["fetch-web-angular"]),angular.module("fetch-web-shared").directive("fetchFooter",[function(){return{restrict:"A",template:'\n          <div class="fetch-footer">\n            <div class="content-container with-gutter">\n              <div class="fetch-footer-components">\n                <div class="fetch-footer-cta">\n                  <h2>Got questions? We\'ve got the answers.</h2>\n                  <a class="faqs-button button button-keyline" ng-href="{{ baseUrl + \'/faqs\' }}">FAQs</a>\n                  <a class="contact-button button button-keyline" ng-href="{{ baseUrl + \'/contact-us\' }}">Contact us</a>\n                </div>\n                <ul class="fetch-footer-links">\n                  <li><a ng-href="{{ baseUrl + \'/corporate\' }}">Corporate</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/jobs\' }}">Jobs</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/press-releases\' }}">Media releases</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/welcome\' }}">New customers</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/support/fetchtv-closed-captioning\' }}">Closed captions</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/terms-and-conditions\' }}">Terms and conditions</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/support/user-guides\' }}">User guides</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/reviews\' }}">Reviews</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/privacy-policy\' }}">Privacy policy</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/support/videos\' }}">Support videos</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/whats-hot\' }}">What\'s Hot on Fetch</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/contact-us\' }}"><strong>Contact Customer Support</strong></a></li>\n                  <li><a ng-href="{{ baseUrl + \'/support/mobile-playback\' }}">Multi-device playback rules</a></li>\n                  <li><a ng-href="{{ baseUrl + \'/warranty-cyber-security-compliance\' }}">Warranty and Cyber Security Compliance</a></li>\n                </ul>\n                <div class="fetch-footer-disclaimer">
1\n                  <span href class="logo svg-fetch-logo-blue"></span>\n                  <span class="fetch-footer-text">\n                    <p ng-bind-html="getDisclaimerContent()"></p>\n                  </span>\n                </div>\n                <div class="fetch-footer-bottom">\n                  <ul\n                    class="social-links"\n                    >\n                    <li><a href="https://www.facebook.com/fetchTV/ ">Facebook</a></li>\n                    <li><a href="https://www.instagram.com/fetch.au/?hl=en ">Instagram</a></li>\n                    <li><a href="https://www.tiktok.com/@fetch.au">TikTok</a></li>\n                    <li><a href="https://www.linkedin.com/company/fetchtv/posts/?feedView=all">LinkedIn</a></li>\n                    <li><a href="https://www.youtube.com/channel/UCA0LyyeJwhMLizp6EbVUbjA">YouTube</a></li>\n                  </ul>\n                  <div class="patent">Australian Patent Pending No. 2018427248</div>\n                  <div class="copyright">&copy; {{ ::currentYear }} Fetch TV Pty Limited</div>\n                </div>\n              </div>\n            </div>\n          </div>',scope:{getDisclaimerContent:"&",requestScrollToTop:"&",baseUrl:"@"},controller:["$scope",function(t){t.currentYear=(new Date).getFullYear()}]}}]),angular.module("fetch-web-shared").directive("howToBuy",[function(){return{restrict:"A",scope:{hideTitle:"<",hideButton:"<",baseUrl:"@",vendorClicked:"<"},controller:"howToBuyController",template:'<section\n           class="ways-to-buy">\n           <div\n             class="text-section"\n             data-ng-hide="hideTitle">\n             <h2>Ways to get Fetch</h2>\n           </div>\n          <div\n          class="vendor-groups"\n          >\n            <div\n            class="vendor-group"\n            data-ng-repeat="group in vendorGroups"\n            >\n              <h4>\n              {{ group.name }}\n              </h4>\n\n            <div\n              class="vendor-logos vendor-logo-sizes">\n              <a\n                class="vendor-cta"\n                data-ng-repeat="vendor in group.vendors"\n                data-ng-click="vendorClicked(vendor)"\n                target="_blank"\n                rel="noopener"\n                role="button">\n                <span\n                  class="overlay"\n                  data-ng-show="showVendorOverlay"\n                  >{{ vendor.title }}</span>\n                <span\n                  class="img-wrap">\n                  <picture\n                    class="{{ ::vendor.identifier }}"\n                    data-picture-set\n                    data-src="::vendor.image"\n                    data-alt="{{ ::vendor.title }} logo"\n                    data-loading="lazy">\n                  </picture>\n                  <div\n                    class="special-offer-label"\n                    data-ng-if="::vendor.specialOffer">\n                    <picture\n                      data-picture-set\n                      data-src="::vendor.specialOffer"\n                      data-alt="Special Offer">\n                    </picture>\n                  </div>\n                </span>\n                </a>\n              </div>\n            </div>\n          </div>\n           <div\n             data-ng-hide="hideButton"\n             class="section-spacing buy-button-container">\n             <a\n               href="{{ ::baseUrlPath }}/how-to-buy/"\n               class="button button-filled">Buy now</a>\n           </div>\n         </section>'}}]),angular.module("fetch-web-shared").directive("fetchNavbar",[function(){return{restrict:"A",template:'\n          <nav\n            class="fetch-navbar"\n            data-scroll-class-trigger="sticky"\n            data-scroll-min="24"\n            data-sample-rate="16"\n            ng-class="{ \'open\': menuOpen }">\n            <div\n              class="content-container with-gutter navigation-container">\n              <div\n                class="header-persistant">\n                <a\n                  ng-href="{{ homeUrl || \'/\' }}"\n                  class="logo">\n                </a>\n                <div\n                  class="mobile-container">\n                  <button\n                    aria-label="Main menu"\n                    ng-click="toggleMenu()"\n                    class="nav-toggle"></button>\n                </div>\n              </div>\n              <form\n                class="search-section"\n                ng-submit=performSearch(searchQuery)>\n                <input\n                  type="text"\n                  placeholder="Search..."\n                  ng-model="searchQuery"/>
1\n                <span\n                  class="search-mask-icon"></span>\n              </form>\n              <div\n                class="subsection-container"\n                >\n                <button\n                  class="subsection-back"\n                  ng-show="activeSubsection"\n                  ng-click="activeSubsection = undefined">\n                  <span\n                    class="menu-icon svg-mask-chevron-left-icon"></span>\n                  <span\n                    class="menu-label">Back</span>\n                </button>\n              </div>\n              <ul\n                class="primary-menu-items"\n                ng-class="{\n                    \'subsection-selected\': activeSubsection,\n                  }">\n                <li\n                  ng-repeat="primaryItem in menuItems()"\n                  ng-class="{\n                    \'desktop-exclusive\': primaryItem.desktopExclusive\n                  }">\n                  <div\n                    class="primary-menu-item">\n                    <a\n                      href=""\n                      class="primary-menu-button"\n                      title="{{ ::(primaryItem.title || primaryItem.name) }}"\n                      ng-click="navigateTo(primaryItem)">\n                      <span\n                        ng-if="::primaryItem.iconClass"\n                        ng-class="{\n                          \'primary-menu-icon\': (primaryItem.iconClass && !primaryItem.name),\n                          \'menu-icon\': (primaryItem.iconClass && primaryItem.name)\n                        }"\n                        class="{{ ::primaryItem.iconClass }}"></span>\n                      <span\n                        ng-if="::primaryItem.name"\n                        class="menu-label">{{ ::primaryItem.name }}</span>\n                    </a>\n                    <a\n                      href\n                      class="submenu-button"\n                      ng-if="primaryItem.subMenuItems"\n                      ng-click="setActiveSubsection(primaryItem.subMenuItems())">\n                      <span class="svg-mask-chevron-right-icon"></span>\n                    </a>\n                  </div>\n                  <div\n                    ng-if="primaryItem.subMenuItems().length > 0"\n                    class="sub-menu"\n                    ng-class="{\n                      \'active\': activeSubsection === primaryItem.subMenuItems(),\n                    }">\n                    <span\n                      class="menu-indicator"></span>\n                    <ul\n                      class="secondary-menu-items">\n                      <li\n                        ng-repeat="subItem in primaryItem.subMenuItems()">\n                        <a\n                          href=""\n                          ng-click="navigateTo(subItem)">\n                          <span\n                            class="menu-label">{{ ::subItem.name }}</span>\n                        </a>\n                      </li>\n                    </ul>\n                  </div>\n                </li>\n              </ul>\n              <a\n                href=""\n                ng-click="navigateTo({ \'action\': \'BUY_NOW\' })"\n                class="button button-keyline-light buy-button small-button">Buy now</a>\n            </div>\n          </nav>\n        ',scope:{menuClicked:"&",menuItems:"&",onSearch:"&",homeUrl:"@"},controller:["$scope","$location",function(e){e.menuOpen=!1,e.searchQuery=void 0,e.activeSubsection=void 0,e.setActiveSubsection=function(t){e.activeSubsection=t},e.toggleMenu=function(){e.menuOpen=!e.menuOpen},e.navigateTo=function(t){e.menuOpen=!1,e.activeSubsection=void 0,e.menuClicked&&e.menuClicked({relData:t})},e.performSearch=function(t){e.menuOpen=!1,e.onSearch&&e.onSearch({query:t}),e.searchQuery=void 0}}]}}]),!function(s){class u{constructor(t,e,n,r){this.name=t,this.link=e,this.action=n,this.externalLink=r}}class l extends u{constructor(t,e,n,r,i,o){super(t,e,n,o),this.subMenuItems="function"==typeof r?r:()=>r,this.iconClass=i}}var t={MenuItem:u,PrimaryMenuItem:l,getDefaultMenuStructure:function(){let n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};const t=[new u("TV on Fetch","/tv"),new u("TV Guide","/tv/guide"),new u("TV Store","/tv/store")],e=[new u("Movies on Fetch","/movies"),new u("Movie Store","/movie/store"),new u("Movie Box","/movie/box")],r
1=[new u("See all","/features-and-packages"),new u("Streaming Apps","/features/streaming-apps"),new u("Premium Channels","/packages/premium-channels"),new u("Special Interest","/packages/special-interest"),new u("Games","/games")],i=[new u("Log In",void 0,void 0,"/manage/login")],o=[new u("Enquiries","/contact-us")],a=[...o,new u("Live Chat",void 0,"OPEN_LIVE_CHAT")];return[new l("TV","/tv",void 0,t,"svg-mask-tv-icon"),new l("Movies","/movies",void 0,e,"svg-mask-movie-icon"),new l("Features & Packages","/features-and-packages",void 0,r,"svg-mask-star-icon"),new l("Account",void 0,"account",i,"svg-mask-user-icon"),new l("Contact Us","/contact-us",void 0,()=>new Set(Object.getOwnPropertyNames(window)).has("HubSpotConversations")?a:o),{title:"Search",iconClass:"svg-mask-search-icon",link:"/search",desktopExclusive:!0}].map(t=>{var e=n[t.name];return s.isDefined(e)&&(t.subMenuItems=e),t})}};s.module("fetch-web-shared").constant("fetchNavigationStructure",t)}(angular),angular.module("fetch-web-shared").controller("howToBuyController",["$scope",function(e){e.baseUrlPath=void 0,e.baseUrl?e.baseUrlPath=e.baseUrl:e.baseUrlPath="",e.showVendorOverlay=!0,void 0===e.vendorClicked&&(e.showVendorOverlay=!1,e.vendorClicked=function(t){window.location.href="".concat(e.baseUrlPath,"/how-to-buy")});class t{constructor(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.buyUrl=t,this.specialOffer=e}getBuyUrl(){return this.buyUrl}}class n extends t{constructor(){super(...arguments),_defineProperty(this,"name","Mighty"),_defineProperty(this,"identifier","mighty"),_defineProperty(this,"altName","Fetch TV Mighty"),_defineProperty(this,"imageUrl","/marketing/img/common/stb/mighty-4k.png"),_defineProperty(this,"imageClass","stb mighty")}}class r extends t{constructor(){super(...arguments),_defineProperty(this,"name","Mini (New G5)"),_defineProperty(this,"identifier","mini-g5"),_defineProperty(this,"altName","Mini (New G5)"),_defineProperty(this,"imageUrl","/marketing/img/common/stb/mini-g5.png"),_defineProperty(this,"imageClass","stb mini")}}class i{constructor(t,e,n,r){this.title=t,this.identifier=e,this.image=n,this.url=r}}class o{constructor(t,e,n,r,i){this.title=t,this.image=e,this.identifier=n,this.products=r,this.specialOffer=i}}class a{constructor(t,e){this.name=t,this.vendors=e}}"".concat(e.baseUrlPath,"/marketing/img/common/special-offer-badge.png");var s=[new a("From direct store",[new o("Fetch","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-fetch.png"),"fetch",[new r("https://store.fetchtv.com.au/products/fetch-mini-g5?variant=41776775757902"),new n("https://store.fetchtv.com.au/products/fetch-mighty-g4?variant=39906148909134")])]),new a("Via Fetch Affiliate partners",[new i("Optus","optus","".concat(e.baseUrlPath,"/marketing/img/common/logos/isp/isp_optus.png"),"https://www.optus.com.au/accessories/entertainment"),new i("Occom","occom","".concat(e.baseUrlPath,"/marketing/img/common/logos/isp/isp_occom.png"),"https://store.fetchtv.com.au/pages/occom")]),new a("From a retailer",[new o("JB Hi-Fi","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-jbhifi.png"),"jb-hifi",[new r("https://www.jbhifi.com.au/products/fetch-mini-4k-g5"),new n("https://www.jbhifi.com.au/products/fetch-mighty-tuner-pvr")],void 0),new o("Harvey Norman","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-harveynorman.png"),"harvey-norman",[new r("https://www.harveynorman.com.au/fetch-mini-5-4k-uhd.html"),new n("https://www.harveynorman.com.au/fetch-mighty-4-1tb-4k-uhd-pvr.html")]),new o("The Good Guys","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-thegoodguys.png"),"the-good-guys",[new r("https://www.thegoodguys.com.au/fetch-tv-fetch-mini-g5-2024-hy4424"),new n("https://www.thegoodguys.com.au/fetch-tv-fetch-mighty-tuner-pvr-m681t")],void 0),new o("Domayne","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-domayne.png"),"domayne",[new r("https://www.domayne.com.au/fetch-mini-5-4k-uhd.html"),new n("https://www.domayne.com.au/fetch-mighty-4-1tb-4k-uhd-pvr.html")]),new o("Joyce Mayne","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-joycemayne.png"),"joyce-mayne",[new r("https://www.joycemayne.com.au/fetch-mini-5-4k-uhd.html"),new n("https://www.joycemayne.com.au/fetch-mighty-4-1tb-4k-uhd-pvr.html")]),new o("Kogan","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-kogan.png"),"kogan",[new r("https://www.kogan.com/au/buy/superoffice-fetch-tv-gen-5-mini-4k-uhd-with-remote-control-hy4424/"),new n("https://www.kogan.com/au/buy/superoffice-fetch-tv-mighty-4-4k-uhd-pvr-video-recorder-1tb-m681t/")]),new o("Betta","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-betta.png"),"betta",[new r("https://www.betta.com.au/products/fetch-tv-gen-5-mini-media-streaming-device-837233"),new n("https://www.betta.com.au/products/fetch-tv-gen-4-mighty-media-streaming-device-837234")]),new o("Retravision","".concat(e.baseUrlPath,"/marketing/img/common/logos/retail/ret-retravision.png"),"retravision",[new r("https://www.retravision.com.au/fetch-fetch-mini-5-tv-streaming-set-top-box-hy4424"),new n("https://www.retravision.com.au/fetch-fetch-mighty-4-pvr-tv-streaming-set-top-box-m681t")])]),new a("Internet Service Provider Partner",[new i("Telstra","telstra","".concat(e.baseUrlPath,"/marketing/img/common/logos/isp/isp_telstra.png"),"https://www.telstra.com.au/entertainment/tv-movies/fetch")])];e.vendorGroups=s}]),!function(r){const i=/[^.]*$/,o=new Set(["jpg","jpeg","png"]),a={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",webp:"image/webp"};r.module("fetch-web-shared").directive("pictureSet",[function(){return{restrict:"A",scope:{src:"&",staticSrc:"@",alt:"@",loading:"@",imageClass:"@",imageWidth:"@",imageHeight:"@",mobileSrc:"&",mobileImageWidth:"@",mobileImageHeight:"@",mobileBreakpoint:"@"},template:'\n            <source\n              data-ng-if="mobileSrc()"\n              data-ng-repeat="format in alternateImageFormats"\n              srcset="{{ getImageSrc(format, mobileSrc()) }}"\n              type="{{ getImageMime(format) }}"\n              data-ng-attr-width="{{ ::mobileImageWidth }}"\n              data-ng-attr-height="{{ ::mobileImageHeight }}"\n              media="(max-width: {{ ::mobileBreakpoint }}px)"\n              >\n            <source\n              data-ng-if="includeAlternateSources()"\n              data-ng-repeat="format in alternateImageFormats"\n              srcset="{{ getImageSrc(format) }}"\n              data-ng-attr-width="{{ ::imageWidth }}"\n              data-ng-attr-height="{{ ::imageHeight }}"\n              type="{{ getImageMime(format) }}"\n              >\n            <img\n              class="{{ imageClass }}"\n              data-ng-src="{{ getImageSrc() }}"\n              alt="{{ alt }}"\n              loading="{{ ::loading }}"\n              data-ng-attr-width="{{ ::imageWidth }}"\n              data-ng-attr-height="{{ ::imageHeight }}">\n            ',controller:["$scope",function(e){function n(){return e.src()||e.staticSrc}e.alternateImageFormats=["webp"],e.includeAlternateSources=()=>{var t=i.exec(n());return null!==t&&o.has(t[0])},e.getImageSrc=(t,e)=>{e=e||n();return r.isUndefined(t)?e:r.isUndefined(e)?void 0:e.replace(i,t)},e.getImageMime=t=>{var t=e.getImageSrc(t);if(!r.isUndefined(t))return[t]=i.exec(t),a[t]}}]}}])}(angular),!function(){var Qn,kr="3.4.0",Jn=1,Zn=2,tr=4,Ar=8,er=16,nr=32,rr=64,ir=128,or=256,Dr=30,Or="...",Rr=150,Lr=16,Ir=0,Mr=2,Pr=3,ar="Expected a function",sr="__lodash_placeholder__",ur="[object Arguments]",lr="[object Array]",cr="[object Boolean]",pr="[object Date]",dr="[object Error]",hr="[object Function]",t="[object Map]",fr="[object Number]",gr="[object Object]",mr="[object RegExp]",e="[object Set]",vr="[object String]",n="[object WeakMap]",Nr="[object ArrayBuffer]",Fr="[object Float32Array]",Ur="[object Float64Array
1]",jr="[object Int8Array]",Br="[object Int16Array]",Vr="[object Int32Array]",qr="[object Uint8Array]",Hr="[object Uint8ClampedArray]",Wr="[object Uint16Array]",Gr="[object Uint32Array]",zr=/\b__p \+= '';/g,Kr=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xr=/&(?:amp|lt|gt|quot|#39|#96);/g,Qr=/[&<>"'`]/g,Jr=RegExp(Xr.source),Zr=RegExp(Qr.source),ti=/<%-([\s\S]+?)%>/g,ei=/<%([\s\S]+?)%>/g,ni=/<%=([\s\S]+?)%>/g,ri=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ii=/\w*$/,oi=/^\s*function[ \n\r\t]+\w/,ai=/^0[xX]/,si=/^\[object .+?Constructor\]$/,ui=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,yr=/($^)/,li=/[.*+?^${}()|[\]\/\\]/g,ci=RegExp(li.source),pi=/\bthis\b/,di=/['\n\r\u2028\u2029\\]/g,hi=(i="[A-Z\\xc0-\\xd6\\xd8-\\xde]",r="[a-z\\xdf-\\xf6\\xf8-\\xff]+",RegExp(i+"+(?="+i+r+")|"+i+"?"+r+"|"+i+"+|[0-9]+","g")),fi=" \t\v\f \ufeff\n\r\u2028\u2029 ᠎              ",gi=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","document","isFinite","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","window","WinRTError"],mi=-1,br={},wr=(br[Fr]=br[Ur]=br[jr]=br[Br]=br[Vr]=br[qr]=br[Hr]=br[Wr]=br[Gr]=!0,br[ur]=br[lr]=br[Nr]=br[cr]=br[pr]=br[dr]=br[hr]=br[t]=br[fr]=br[gr]=br[mr]=br[e]=br[vr]=br[n]=!1,{}),$r=(wr[ur]=wr[lr]=wr[Nr]=wr[cr]=wr[pr]=wr[Fr]=wr[Ur]=wr[jr]=wr[Br]=wr[Vr]=wr[fr]=wr[gr]=wr[mr]=wr[vr]=wr[qr]=wr[Hr]=wr[Wr]=wr[Gr]=!0,{leading:wr[dr]=wr[hr]=wr[t]=wr[e]=wr[n]=!1,maxWait:0,trailing:!1}),o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},s={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},r={function:!0,object:!0},u={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},i=r[typeof exports]&&exports&&!exports.nodeType&&exports,t=r[typeof module]&&module&&!module.nodeType&&module,e=i&&t&&"object"==typeof global&&global,n=r[typeof window]&&window,r=t&&t.exports===i&&i,Er=e||n!==(this&&this.window)&&n||this;function vi(t,e){if(t!==e){var n=t==t,r=e==e;if(e<t||!n||void 0===t&&r)return 1;if(t<e||!r||void 0===e&&n)return-1}return 0}function xr(t,e,n){if(e!=e)return _i(t,n);for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function yi(t){return"function"==typeof t||!1}function Sr(t){return"string"==typeof t?t:null==t?"":t+""}function bi(t){return t.charCodeAt(0)}function wi(t,e){for(var n=-1,r=t.length;++n<r&&-1<e.indexOf(t.charAt(n)););return n}function $i(t,e){for(var n=t.length;n--&&-1<e.indexOf(t.charAt(n)););return n}function Ei(t,e){return vi(t.criteria,e.criteria)||t.index-e.index}function xi(t){return o[t]}function Si(t){return a[t]}function Ti(t){return"\\"+u[t]}function _i(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i<r;){var o=t[i];if(o!=o)return i}return-1}function Tr(t){return t&&"object"==typeof t||!1}function l(t){return t<=160&&9<=t&&t<=13||32==t||160==t||5760==t||6158==t||8192<=t&&(t<=8202||8232==t||8233==t||8239==t||8287==t||12288==t||65279==t)}function _r(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;)t[n]===e&&(t[n]=sr,o[++i]=n);return o}function Ci(t){for(var e=-1,n=t.length;++e<n&&l(t.charCodeAt(e)););return e}function ki(t){for(var e=t.length;e--&&l(t.charCodeAt(e)););return e}function Ai(t){return s[t]}var Cr=function r(n){var T=(n=n?Cr.defaults(Er.Object(),n,Cr.pick(Er,gi)):Er).Array,N=n.Date,F=n.Error,U=n.Function,t=n.Math,j=n.Number,m=n.Object,B=n.RegExp,V=n.String,x=n.TypeError,q=T.prototype,e=m.prototype,H=(H=n.window)&&H.document,W=U.prototype.toString,G=ie("length"),v=e.hasOwnProperty,z=0,y=e.toString,K=n._,Y=B("^"+In(y).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),o=i(o=n.ArrayBuffer)&&o,X=i(X=o&&new o(0).slice)&&X,Q=t.ceil,b=n.clearTimeout,J=t.floor,Z=i(Z=m.getPrototypeOf)&&Z,tt=q.push,et=e.propertyIsEnumerable,nt=i(nt=n.Set)&&nt,rt=n.setTimeout,it=q.splice,a=i(a=n.Uint8Array)&&a,e=i(e=n.WeakMap)&&e,ot=function(){try{var t=i(t=n.Float64Array)&&t,e=new t(new o(10),0,1)&&t}catch(t){}return e}(),at=i(at=T.isArray)&&at,st=i(st=m.create)&&st,ut=n.isFinite,lt=i(lt=m.keys)&&lt,_=t.max,C=t.min,ct=i(ct=N.now)&&ct,pt=i(pt=j.isFinite)&&pt,dt=n.parseInt,ht=t.random,ft=j.NEGATIVE_INFINITY,gt=j.POSITIVE_INFINITY,mt=t.pow(2,32)-1,vt=mt-1,yt=mt>>>1,bt=ot?ot.BYTES_PER_ELEMENT:0,wt=t.pow(2,53)-1,$t=e&&new e;function p(t){if(Tr(t)&&!R(t)&&!(t instanceof h)){if(t instanceof d)return t;if(v.call(t,"__chain__")&&v.call(t,"__wrapped__"))return qe(t)}
1return new d(t)}function Et(){}function d(t,e,n){this.__wrapped__=t,this.__actions__=n||[],this.__chain__=!!e}var u=p.support={};function h(t){this.__wrapped__=t,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=gt,this.__views__=null}function xt(){this.__data__={}}function St(t){var e=t?t.length:0;for(this.data={hash:st(null),set:new nt};e--;)this.push(t[e])}function Tt(t,e){return t=t.data,("string"==typeof e||L(e)?t.set.has(e):t.hash[e])?0:-1}function k(t,e){var n=-1,r=t.length;for(e=e||T(r);++n<r;)e[n]=t[n];return e}function w(t,e){for(var n=-1,r=t.length;++n<r&&!1!==e(t[n],n,t););return t}function _t(t,e){for(var n=-1,r=t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ct(t,e){for(var n=-1,r=t.length,i=-1,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[++i]=a)}return o}function kt(t,e){for(var n=-1,r=t.length,i=T(r);++n<r;)i[n]=e(t[n],n,t);return i}function At(t){for(var e=-1,n=t.length,r=ft;++e<n;){var i=t[e];r<i&&(r=i)}return r}function Dt(t,e,n,r){var i=-1,o=t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function Ot(t,e,n,r){var i=t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Rt(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Lt(t,e){return void 0===t?e:t}function It(t,e,n,r){return void 0!==t&&v.call(r,n)?t:e}function Mt(t,e,n){var r=I(e);if(!n)return Nt(e,t,r);for(var i=-1,o=r.length;++i<o;){var a=r[i],s=t[a],u=n(s,e[a],a,t,e);(u==u?u===s:s!=s)&&(void 0!==s||a in t)||(t[a]=u)}return t}function Pt(t,e){for(var n=-1,r=t.length,i=A(r),o=e.length,a=T(o);++n<o;){var s=e[n];i?(s=parseFloat(s),a[n]=Le(s,r)?t[s]:Qn):a[n]=t[s]}return a}function Nt(t,e,n){n||(n=e,e={});for(var r=-1,i=n.length;++r<i;){var o=n[r];e[o]=t[o]}return e}function Ft(t,e,n){var r=typeof t;return"function"==r?void 0!==e&&function(t){var e,n=p.support,r=!(n.funcNames?t.name:n.funcDecomp);return r||(e=W.call(t),r=n.funcNames?r:!oi.test(e))||(r=pi.test(e)||i(t),se(t,r)),r}(t)?c(t,e,n):t:null==t?P:"object"==r?ne(t):void 0===e?ie(t+""):re(t+"",e)}function Ut(n,r,i,t,e,o,a){var s;if(void 0===(s=i?e?i(n,t,e):i(n):s)){if(!L(n))return n;if(t=R(n)){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&v.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(n),!r)return k(n,s)}else{var u=y.call(n),l=u==hr;if(u!=gr&&u!=ur&&(!l||e)){if(wr[u]){var c=n,p=r,d=c.constructor;switch(u){case Nr:return me(c);case cr:case pr:return new d(+c);case Fr:case Ur:case jr:case Br:case Vr:case qr:case Hr:case Wr:case Gr:var h=c.buffer;return new d(p?me(h):h,c.byteOffset,c.length);case fr:case vr:return new d(c);case mr:var f=new d(c.source,ii.exec(c));f.lastIndex=c.lastIndex}return f}return e?n:{}}if(s=function(t){return new(t="function"==typeof(t=t.constructor)&&t instanceof t?t:m)}(l?{}:n),!r)return Nt(n,s,I(n))}a=a||[];for(var g=(o=o||[]).length;g--;)if(o[g]==n)return a[g];o.push(n),a.push(s),(t?w:$)(n,function(t,e){s[e]=Ut(t,r,i,e,n,o,a)})}return s}!function(t){u.funcDecomp=!i(n.WinRTError)&&pi.test(r),u.funcNames="string"==typeof U.name;try{u.dom=11===H.createDocumentFragment().nodeType}catch(t){u.dom=!1}try{u.nonEnumArgs=!et.call(arguments,1)}catch(t){u.nonEnumArgs=!0}}(0,0),p.templateSettings={escape:ti,evaluate:ei,interpolate:ni,variable:"",imports:{_:p}};var jt=function(t){var e;return L(t)&&(Bt.prototype=t,e=new Bt,Bt.prototype=null),e||n.Object()};function Bt(){}function Vt(t,e,n,r){if("function"!=typeof t)throw new x(ar);return rt(function(){t.apply(Qn,l(n,r))},e)}function qt(t,e){var n=t?t.length:0,r=[];if(n){var i=-1,o=Re(),a=o==xr,s=a&&200<=e.length?$e(e):null,u=e.length;s&&(o=Tt,a=!1,e=s);t:for(;++i<n;){var l=t[i];if(a&&l==l){for(var c=u;c--;)if(e[c]===l)continue t;r.push(l)}else o(e,l,0)<0&&r.push(l)}}return r}function f(t,e){var n=t?t.length:0;if(!A(n))return $(t,e);for(var r=-1,i=Ve(t);++r<n&&!1!==e(i[r],r,i););return t}function Ht(t,e){var n=t?t.length:0;if(!A(n))return Qt(t,e);for(var r=Ve(t);n--&&!1!==e(r[n],n,r););return t}function Wt(t,r){var i=!0;return f(t,function(t,e,n){return i=!!r(t,e,n)}),i}function Gt(t,r){var i=[];return f(t,function(t,e,n){r(t,e,n)&&i.push(t)}),i}function zt(t,r,e,i){var o;return e(t,function(t,e,n){if(r(t,e,n))return o=i?e:t,!1}),o}function g(t,e,n,r){for(var i=r-1,o=t.length,a=-1,s=[];++i<o;){var u=t[i];if(Tr(u)&&A(u.length)&&(R(u)||O(u))){var l=-1,c=(u=e?g(u,e,n,0):u).length;for(s.length+=c;++l<c;)s[++a]=u[l]}else n||(s[++a]=u)}return s}function Kt(t,e,n){for(var r=-1,i=Ve(t),o=n(t),a=o.length;++r<a;){var s=o[r];if(!1===e(i[s],s,i))break}return t}function Yt(t,e,n){for(var r=Ve(t),i=n(t),o=i.length;o--;){var a=i[o];if(!1===e(r[a],a,r))break}return t}function Xt(t,e){Kt(t,e,M)}function $(t,e){return Kt(t,e,I)}function Qt(t,e){return Yt(t,e,I)}function Jt(t,e){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var a=e[n];
1En(t[a])&&(o[++i]=a)}return o}function Zt(t,e,n,r,i,o){if(t===e)return 0!==t||1/t==1/e;var a=typeof e;if("function"!=(l=typeof t)&&"object"!=l&&"function"!=a&&"object"!=a||null==t||null==e)return t!=t&&e!=e;var s=t,u=e,l=Zt,a=n,t=r,c=i,p=o,e=R(s),n=R(u),r=lr,i=lr,n=(e||((r=y.call(s))==ur?r=gr:r!=gr&&(e=Cn(s))),n||((i=y.call(u))==ur?i=gr:i!=gr&&(n=Cn(u))),r==gr),o=i==gr;if(!(i=r==i)||e||n){if(r=n&&v.call(s,"__wrapped__"),n=o&&v.call(u,"__wrapped__"),r||n)return l(r?s.value():s,n?u.value():u,a,t,c,p);if(!i)return!1;p=p||[];for(var d=(c=c||[]).length;d--;)if(c[d]==s)return p[d]==u;return c.push(s),p.push(u),o=(e?Ae:De)(s,u,l,a,t,c,p),c.pop(),p.pop(),o}var h=s,f=u;switch(r){case cr:case pr:return+h==+f;case dr:return h.name==f.name&&h.message==f.message;case fr:return h!=+h?f!=+f:0==h?1/h==1/f:h==+f;case mr:case vr:return h==f+""}return!1}function te(t,e,n,r,i){var o=e.length;if(null==t)return!o;for(var a=-1,s=!i;++a<o;)if(s&&r[a]?n[a]!==t[e[a]]:!v.call(t,e[a]))return!1;for(a=-1;++a<o;){var u,l,c,p=e[a];if(s&&r[a]?c=v.call(t,p):(u=t[p],l=n[a],void 0===(c=i?i(u,l,p):Qn)&&(c=Zt(l,u,i,!0))),!c)return!1}return!0}function ee(t,r){var i=[];return f(t,function(t,e,n){i.push(r(t,e,n))}),i}function ne(t){var e=I(t),n=e.length;if(1==n){var r=e[0],i=t[r];if(D(i))return function(t){return null!=t&&t[r]===i&&v.call(t,r)}}for(var o=T(n),a=T(n);n--;)i=t[e[n]],o[n]=i,a[n]=D(i);return function(t){return te(t,e,o,a)}}function re(e,n){return D(n)?function(t){return null!=t&&t[e]===n}:function(t){return null!=t&&Zt(n,t[e],null,!0)}}function ie(e){return function(t){return null==t?Qn:t[e]}}function oe(t,e){return t+J(ht()*(e-t+1))}function ae(t,r,i,o,e){return e(t,function(t,e,n){i=o?(o=!1,t):r(i,t,e,n)}),i}var se=$t?function(t,e){return $t.set(t,e),t}:P;function l(t,e,n){for(var r=-1,i=t.length,o=((n=void 0===n||i<n?i:+n||0)<0&&(n+=i),i=n<(e=(e=null!=e&&+e||0)<0?i<-e?0:i+e:e)?0:n-e>>>0,e>>>=0,T(i));++r<i;)o[r]=t[r+e];return o}function ue(t,r){var i;return f(t,function(t,e,n){return!(i=r(t,e,n))}),!!i}function le(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}function ce(t,r,l){var i=-1,e=t.length,o=A(e)?T(e):[];return f(t,function(t){for(var e=r.length,n=T(e);e--;)n[e]=null==t?Qn:t[r[e]];o[++i]={criteria:n,index:i,value:t}}),le(o,function(t,e){for(var n=l,r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;++r<a;){var u=vi(i[r],o[r]);if(u)return s<=r||n[r]?u:-1*u}return t.index-e.index})}function pe(t,e){var n=-1,r=Re(),i=t.length,o=r==xr,a=o&&200<=i,s=a?$e():null,u=[];s?(r=Tt,o=!1):(a=!1,s=e?[]:u);t:for(;++n<i;){var l=t[n],c=e?e(l,n,t):l;if(o&&l==l){for(var p=s.length;p--;)if(s[p]===c)continue t;e&&s.push(c),u.push(l)}else r(s,c,0)<0&&((e||a)&&s.push(c),u.push(l))}return u}function de(t,e){for(var n=-1,r=e.length,i=T(r);++n<r;)i[n]=t[e[n]];return i}function he(t,e){for(var n=t,r=(n instanceof h&&(n=n.value()),-1),i=e.length;++r<i;){var o=[n],a=e[r];tt.apply(o,a.args),n=a.func.apply(a.thisArg,o)}return n}function fe(t,e,n){var r=0,i=t?t.length:r;if("number"==typeof e&&e==e&&i<=yt){for(;r<i;){var o=r+i>>>1,a=t[o];(n?a<=e:a<e)?r=1+o:i=o}return i}return ge(t,e,P,n)}function ge(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,a=e!=e,s=void 0===e;i<o;){var u=J((i+o)/2),l=n(t[u]),c=l==l;(c=a?c||r:s?c&&(r||void 0!==l):r?l<=e:l<e)?i=u+1:o=u}return C(o,vt)}function c(o,a,t){if("function"!=typeof o)return P;if(void 0===a)return o;switch(t){case 1:return function(t){return o.call(a,t)};case 3:return function(t,e,n){return o.call(a,t,e,n)};case 4:return function(t,e,n,r){return o.call(a,t,e,n,r)};case 5:return function(t,e,n,r,i){return o.call(a,t,e,n,r,i)}}return function(){return o.apply(a,arguments)}}function me(t){return X.call(t,0)}function ve(t,e,n){for(var r=n.length,i=-1,o=_(t.length-r,0),a=-1,s=e.length,u=T(o+s);++a<s;)u[a]=e[a];for(;++i<r;)u[n[i]]=t[i];for(;o--;)u[a++]=t[i++];return u}function ye(t,e,n){for(var r=-1,i=n.length,o=-1,a=_(t.length-i,0),s=-1,u=e.length,l=T(a+u);++o<a;)l[o]=t[o];for(var c=o;++s<u;)l[c+s]=e[s];for(;++r<i;)l[c+n[r]]=t[o++];return l}function be(s,u){return function(t,r,e){var i=u?u():{};if(r=E(r,e,3),R(t))for(var n=-1,o=t.length;++n<o;){var a=t[n];s(i,a,r(a,n,t),t)}else f(t,function(t,e,n){s(i,t,r(t,e,n),n)});return i}}function we(u){return function(){var t=arguments,e=t.length,n=t[0];if(!(e<2||null==n))for(var r=t[e-2],i=t[e-1],o=t[3],a=(3<e&&"function"==typeof r?(r=c(r,i,5),e-=2):e-=(r=2<e&&"function"==typeof i?i:null)?1:0,o&&S(t[1],t[2],o)&&(r=3==e?null:r,e=2),0);++a<e;){var s=t[a];s&&u(n,s,r)}return n}}X||(me=o&&a?function(t){var e=t.byteLength,n=ot?J(e/bt):0,r=n*bt,i=new o(e);return n&&new ot(i,0,n).set(new ot(t,0,n)),e!=r&&new a(i,r).set(new a(t,r)),i}:Hn(null));var $e=st&&nt?function(t){return new St(t)}:Hn(null);function Ee(o){return function(){var n=arguments.length,t=n,r=o?n-1:0;if(!n)return function(){return arguments[0]};for(var i=T(n);t--;)if(i[t]=arguments[t],"function"!=typeof i[t])throw new x(ar);return function(){for(var t=r,e=i[t].apply(this,arguments);o?t--:++t<n;)e=i[t].call(this,e);return e}}}function xe(o){return function(t){for(var e=-1,n=Bn(Ln(t)),r=n.length,i="";++e<r;)i=o(i,n[e],e);return i}}function Se(n){return function(){var t=jt(n.prototype),e=n.apply(t,arguments);return L(e)?e:t}}function Te(c,p){return function(t,e,n){n&&S(t,e,n)&&(e=null);var r,i,o,a,s,u=E(),l=null==e;if(u===Ft&&l||(l=!1,e=u(e,n,3)),l){if((u=R(t))||!_n(t))return c(u?t:Be(t));e=bi}return r=e,s=a=o=(i=p)?gt:ft,f(t,function(t,e,n){e=r(t,e,n),((i?e<a:a<e)||e===o&&e===s)&&(a=e,s=t)}),s}}function _e(s,u,l,c,p,d,h,f,g,m){var v=u&or,y=u&Jn,b=u&Zn,w=u&Ar,$=u&tr,E=u&er,x=!b&&Se(s),S=s;return function t(){for(var e=arguments.length,n=e,r=T(e);n--;)r[n]=arguments[n];if(c&&(r=ve(r,c,p)),d&&(r=ye(r,d,h)),w||E){var i=t.placeholder,o=_r(r,i);if((e-=o.length)<m)return a=f?k(f):null,e=_(m-e,0),u=(u|(w?nr:rr))&~(w?rr:nr),$||(u&=~(Jn|Zn)),(o=_e(s,u,l,w?r:null,w?o:null,w?null:r,w?null:o,a,g,e)).placeholder=i,o}var a=y?l:this;return b&&(s=a[S]),f&&(r=function(t,e){for(var n=t.length,r=C(e.length,n),i=k(t);r--;){var o=e[r];t[r]=Le(o,n)?i[o]:Qn}return t}(r,f)),v&&g<r.length&&(r.length=g),(this instanceof t?x||Se(s):s).apply(a,r)}}
1function Ce(t,e,n){return t=t.length,(e=+e)<=t||!ut(e)?"":Nn(n=null==n?" ":n+"",Q((e-=t)/n.length)).slice(0,e)}function ke(a,t,s,u){var l=t&Jn,c=Se(a);return function t(){for(var e=-1,n=arguments.length,r=-1,i=u.length,o=T(n+i);++r<i;)o[r]=u[r];for(;n--;)o[r++]=arguments[++e];return(this instanceof t?c:a).apply(l?s:this,o)}}function s(t,e,n,r,i,o,a,s){var u,l,c,p,d,h,f,g,m,v,y,b,w,$,E=e&Zn;if(E||"function"==typeof t)return(u=r?r.length:0)||(e&=~(nr|rr),r=i=null),u-=i?i.length:0,e&rr&&(p=r,d=i,r=i=null),l=!E&&Oe(t),n=[t,e,n,r,i,p,d,o,a,s],l&&!0!==l&&(r=l,p=(i=n)[1],d=r[1],o=p|d,f=(a=or|ir)|(h=Jn|Zn)|tr|er,g=p&or&&!(d&or),m=((y=p&ir&&!(d&ir))?i:r)[7],v=(g?i:r)[8],h=!(ir<=p&&h<d||h<p&&ir<=d),a=a<=o&&o<=f&&(p<ir||(y||g)&&m.length<=v),(h||a)&&(d&Jn&&(i[2]=r[2],o|=p&Jn?0:tr),(f=r[3])&&(c=i[3],i[3]=c?ve(c,f,r[4]):k(f),i[4]=c?_r(i[3],sr):k(r[4])),(f=r[5])&&(c=i[5],i[5]=c?ye(c,f,r[6]):k(f),i[6]=c?_r(i[5],sr):k(r[6])),(f=r[7])&&(i[7]=k(f)),d&or&&(i[8]=null==i[8]?r[8]:C(i[8],r[8])),null==i[9]&&(i[9]=r[9]),i[0]=r[0],i[1]=o),e=n[1],s=n[9]),n[9]=null==s?E?0:t.length:_(s-u,0)||0,y=e==Jn?(b=n[0],w=n[2],$=Se(b),function t(){return(this instanceof t?$:b).apply(w,arguments)}):(e!=nr&&e!=(Jn|nr)||n[4].length?_e:ke).apply(Qn,n),(l?se:Fe)(y,n);throw new x(ar)}function Ae(t,e,n,r,i,o,a){var s=-1,u=t.length,l=e.length,c=!0;if(u!=l&&!(i&&u<l))return!1;for(;c&&++s<u;){var p=t[s],d=e[s],c=Qn;if(void 0===(c=r?i?r(d,p,s):r(p,d,s):c))if(i)for(var h=l;h--&&(d=e[h],!(c=p&&p===d||n(p,d,r,i,o,a))););else c=p&&p===d||n(p,d,r,i,o,a)}return!!c}function De(t,e,n,r,i,o,a){var s=I(t),u=s.length;if(u!=I(e).length&&!i)return!1;for(var l,c=-1;++c<u;){var p,d,h=s[c],f=v.call(e,h);if(!(f=f&&(p=t[h],d=e[h],f=Qn,void 0===(f=r?i?r(d,p,h):r(p,d,h):f))?p&&p===d||n(p,d,r,i,o,a):f))return!1;l=l||"constructor"==h}if(!l){var g=t.constructor,m=e.constructor;if(g!=m&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof m&&m instanceof m))return!1}return!0}function E(t,e,n){var r=(r=p.callback||qn)===qn?Ft:r;return n?r(t,e,n):r}var Oe=$t?function(t){return $t.get(t)}:zn;function Re(t,e,n){var r=(r=p.indexOf||Ke)===Ke?xr:r;return t?r(t,e,n):r}function Le(t,e){return e=null==e?wt:e,-1<(t=+t)&&t%1==0&&t<e}function S(t,e,n){var r,i;return L(n)&&("number"==(r=typeof e)?A(i=n.length)&&Le(e,i):"string"==r&&e in n)?(i=n[e],t==t?t===i:i!=i):void 0}function A(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=wt}function D(t){return t==t&&(0===t?0<1/t:!L(t))}function Ie(t,e){t=Ve(t);for(var n=-1,r=e.length,i={};++n<r;){var o=e[n];o in t&&(i[o]=t[o])}return i}function Me(t,r){var i={};return Xt(t,function(t,e,n){r(t,e,n)&&(i[e]=t)}),i}var Pe,Ne,Fe=function(t,e){var n=gn(),r=Lr-(n-Ne);if(Ne=n,0<r){if(++Pe>=Rr)return t}else Pe=0;return se(t,e)};function Ue(t){var e,n;return!(!Tr(t)||y.call(t)!=gr||!(v.call(t,"constructor")||"function"!=typeof(e=t.constructor)||e instanceof e))&&(Xt(t,function(t,e){n=e}),void 0===n||v.call(t,n))}function je(t){for(var e=M(t),n=e.length,r=n&&t.length,i=p.support,o=r&&A(r)&&(R(t)||i.nonEnumArgs&&O(t)),a=-1,s=[];++a<n;){var u=e[a];(o&&Le(u,r)||v.call(t,u))&&s.push(u)}return s}function Be(t){return null==t?[]:A(t.length)?L(t)?t:m(t):On(t)}function Ve(t){return L(t)?t:m(t)}function qe(t){return t instanceof h?t.clone():new d(t.__wrapped__,t.__chain__,k(t.__actions__))}function He(t,e,n){return t&&t.length?l(t,(e=(n?S(t,e,n):null==e)?1:e)<0?0:e):[]}function We(t,e,n){var r=t?t.length:0;return r?l(t,0,(e=r-(+(e=(n?S(t,e,n):null==e)?1:e)||0))<0?0:e):[]}function Ge(t,e,n){var r=-1,i=t?t.length:0;for(e=E(e,n,3);++r<i;)if(e(t[r],r,t))return r;return-1}function ze(t){return t?t[0]:Qn}function Ke(t,e,n){var r,i=t?t.length:0;if(!i)return-1;if("number"==typeof n)n=n<0?_(i+n,0):n;else if(n)return r=t[i=fe(t,e)],(e==e?e===r:r!=r)?i:-1;return xr(t,e,n||0)}function Ye(t){return He(t,1)}function Xe(t,e,n,r){if(!t||!t.length)return[];null!=e&&"boolean"!=typeof e&&(n=S(t,e,r=n)?null:e,e=!1);var i=E();return i===Ft&&null==n||(n=i(n,r,3)),(e&&Re()==xr?function(t,e){for(var n,r=-1,i=t.length,o=-1,a=[];++r<i;){var s=t[r],u=e?e(s,r,t):s;r&&n===u||(n=u,a[++o]=s)}return a}:pe)(t,n)}function Qe(t){for(var e=-1,n=(t&&t.length&&At(kt(t,G)))>>>0,r=T(n);++e<n;)r[e]=kt(t,ie(e));return r}function Je(t,e){var n=-1,r=t?t.length:0,i={};for(!r||e||R(t[0])||(e=[]);++n<r;){var o=t[n];e?i[o]=e[n]:o&&(i[o[0]]=o[1])}return i}function Ze(t){return(t=p(t)).__chain__=!0,t}function tn(t,e,n){return e.call(n,t)}j=be(function(t,e,n){v.call(t,n)?++t[n]:t[n]=1});function en(t,e,n){return(R(t)?_t:Wt)(t,e="function"==typeof e&&void 0===n?e:E(e,n,3))}function nn(t,e,n){return(R(t)?Ct:Gt)(t,e=E(e,n,3))}function rn(t,e,n){var r;return R(t)?-1<(r=Ge(t,e,n))?t[r]:Qn:zt(t,e=E(e,n,3),f)}function on(t,e,n){return"function"==typeof e&&void 0===n&&R(t)?w(t,e):f(t,c(e,n,3))}function an(t,e,n){if("function"==typeof e&&void 0===n&&R(t)){for(var r=t,i=e,o=r.length;o--&&!1!==i(r[o],o,r););return r}return Ht(t,c(e,n,3))}t=be(function(t,e,n){v.call(t,n)?t[n].push(e):t[n]=[e]});function sn(t,e,n){var r=t?t.length:0;return!!(r=A(r)?r:(t=On(t)).length)&&(n="number"==typeof n?n<0?_(r+n,0):n||0:0,"string"==typeof t||!R(t)&&_n(t)?n<r&&-1<t.indexOf(e,n):-1<Re(t,e,n))}e=be(function(t,e,n){t[n]=e});function un(t,e,n){return(R(t)?kt:ee)(t,e=E(e,n,3))}var ln=be(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});function cn(t,e,n,r){return(R(t)?Dt:ae)(t,E(e,r,4),n,arguments.length<3,f)}function pn(t,e,n,r){return(R(t)?Ot:ae)(t,E(e,r,4),n,arguments.length<3,Ht)}function dn(t,e,n){return(n?S(t,e,n):null==e)?0<(n=(t=Be(t)).length)?t[oe(0,n-1)]:Qn:((n=hn(t)).length=C(!(e<0)&&+e||0,n.length),n)}function hn(t){for(var e=-1,n=(t=Be(t)).length,r=T(n);++e<n;){var i=oe(0,e);e!=i&&(r[e]=r[i]),r[i]=t[e]}return r}function fn(t,e,n){return(R(t)?Rt:ue)(t,e="function"==typeof e&&void 0===n?e:E(e,n,3))}var gn=ct||function(){return(new N).getTime()};function mn(t,e){var n;if("function"!=typeof e){if("function"!=typeof t)throw new x(ar);var r=t;t=e,e=r}return function(){return 0<--t?n=e.apply(this,arguments):e=null,n}}function vn(r,i,t){var o,a,s,u,l,c,p,d,h=0,f=!1,g=!0;if("function"!=typeof r)throw new x(ar);function m(){var t,e=i-(gn()-u);e<=0||i<e?(a&&b(a),t=p,a=c=p=Qn,t&&(h=gn(),s=r.apply(l,o),c||a||(o=l=null))):c=rt(m,e)}function v(){c&&b(c),a=c=p=Qn,!g&&f===i||(h=gn(),s=r.apply(l,o),c)||a||(o=l=null)}function e(){var t,e,n;return o=arguments,u=gn(),l=this,p=g&&(c||!d),!1===f?t=d&&!c:(n=(e=f-(u-(h=a||d?h:u)))<=0||f<e)?(a=a&&b(a),h=u,s=r.apply(l,o)):a=a||rt(v,e),n&&c?c=b(c):c||i===f||(c=rt(m,i)),t&&(n=!0,s=r.apply(l,o)),!n||c||a||(o=l=null),s}return i=!(i<0)&&+i||0,!0===t?g=!(d=!0):L(t)&&(d=t.leading,f="maxWait"in t&&_(+t.maxWait||0,i),g="trailing"in t?t.trailing:g),e.cancel=function(){c&&b(c),a&&b(a),a=c=p=Qn},e}var ct=Ee(),yn=Ee(!(Ne=Pe=0));function bn(r,i){if("function"!=typeof r||i&&"function"!=typeof i)throw new x(ar);function o(){var t=arguments,e=o.cache,n=i?i.apply(this,t):t[0];return e.has(n)?e.get(n):(t=r.apply(this,t),e.set(n,t),t)}return o.cache=new bn.Cache,o}function O(t){return A(Tr(t)?t.length:Qn)&&y.call(t)==ur||!1}var R=at||function(t){return Tr(t)&&A(t.length)&&y.call(t)==lr||!1};function wn(t){return t&&1===t.nodeType&&Tr(t)&&-1<y.call(t).indexOf("Element")||!1}function $n(t){return Tr(t)&&"string"==typeof t.message&&y.call(t)==dr||!1}u.dom||(wn=function(t){return t&&1===t.nodeType&&Tr(t)&&!Sn(t)||!1});var at=pt||function(t){return"number"==typeof t&&ut(t)}
1,En=yi(/x/)||a&&!yi(a)?function(t){return y.call(t)==hr}:yi;function L(t){var e=typeof t;return"function"==e||t&&"object"==e||!1}function i(t){return null!=t&&(y.call(t)==hr?Y.test(W.call(t)):Tr(t)&&si.test(t)||!1)}function xn(t){return"number"==typeof t||Tr(t)&&y.call(t)==fr||!1}var Sn=Z?function(t){var e,n;return!(!t||y.call(t)!=gr)&&((n=i(e=t.valueOf)&&(n=Z(e))&&Z(n))?t==n||Z(t)==n:Ue(t))}:Ue;function Tn(t){return Tr(t)&&y.call(t)==mr||!1}function _n(t){return"string"==typeof t||Tr(t)&&y.call(t)==vr||!1}function Cn(t){return Tr(t)&&A(t.length)&&br[y.call(t)]||!1}function kn(t){return Nt(t,M(t))}var An=we(Mt);function Dn(t){return Jt(t,M(t))}var I=lt?function(t){var e,n;return t&&(e=t.constructor,n=t.length),"function"==typeof e&&e.prototype===t||"function"!=typeof t&&n&&A(n)?je(t):L(t)?lt(t):[]}:je;function M(t){if(null==t)return[];for(var e,n=(n=(t=L(t)?t:m(t)).length)&&A(n)&&(R(t)||u.nonEnumArgs&&O(t))&&n||0,r=t.constructor,i=-1,o="function"==typeof r&&r.prototype===t,a=T(n),s=0<n;++i<n;)a[i]=i+"";for(e in t)s&&Le(e,n)||"constructor"==e&&(o||!v.call(t,e))||a.push(e);return a}pt=we(function f(g,t,m,v,y){var b;return L(g)&&((b=A(t.length)&&(R(t)||Cn(t)))?w:$)(t,function(t,e,n){if(Tr(t)){for(var r=g,i=n,o=e,a=f,s=m,u=v=v||[],l=y=y||[],c=u.length,p=i[o];c--;)if(u[c]==p)return void(r[o]=l[c]);var d=r[o],h=void 0===(i=s?s(d,p,o,r,i):Qn);h&&(A((i=p).length)&&(R(p)||Cn(p))?i=R(d)?d:d?k(d):[]:Sn(p)||O(p)?i=O(d)?kn(d):Sn(d)?d:{}:h=!1),u.push(p),l.push(i),h?r[o]=a(i,p,s,u,l):(i==i?i!==d:d==d)&&(r[o]=i)}else h=g[e],a=m?m(h,t,e,g,n):Qn,(s=void 0===a)&&(a=t),!b&&void 0===a||!s&&(a==a?a===h:h!=h)||(g[e]=a)}),g});function On(t){return de(t,I(t))}var Rn=xe(function(t,e,n){return e=e.toLowerCase(),t+(n?e.charAt(0).toUpperCase()+e.slice(1):e)});function Ln(t){return(t=Sr(t))&&t.replace(ui,xi)}function In(t){return(t=Sr(t))&&ci.test(t)?t.replace(li,"\\$&"):t}var Mn=xe(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()});function Pn(t,e,n){return n&&S(t,e,n)&&(e=0),dt(t,e)}function Nn(t,e){var n="";if(t=Sr(t),!((e=+e)<1)&&t&&ut(e))for(;e%2&&(n+=t),t+=t,e=J(e/2););return n}8!=dt(fi+"08")&&(Pn=function(t,e,n){return e=(n?S(t,e,n):null==e)?0:e&&+e,t=jn(t),dt(t,e||(ai.test(t)?16:10))});var Fn=xe(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}),Un=xe(function(t,e,n){return t+(n?" ":"")+(e.charAt(0).toUpperCase()+e.slice(1))});function jn(t,e,n){var r=t;return(t=Sr(t))&&((n?S(r,e,n):null==e)?t.slice(Ci(t),ki(t)+1):t.slice(wi(t,e+=""),$i(t,e)+1))}function Bn(t,e,n){return n&&S(t,e,n)&&(e=null),(t=Sr(t)).match(e||hi)||[]}function Vn(){for(var t=arguments[0],e=arguments.length,n=T(e?e-1:0);0<--e;)n[e-1]=arguments[e];try{return t.apply(Qn,n)}catch(t){return $n(t)?t:new F(t)}}function qn(t,e,n){return n&&S(t,e,n)&&(e=null),Tr(t)?Wn(t):Ft(t,e)}function Hn(t){return function(){return t}}function P(t){return t}function Wn(t){return ne(Ut(t,!0))}function Gn(r,t,e){null!=e||((o=(i=(n=L(t))&&I(t))&&i.length&&Jt(t,i))?o.length:n)||(o=!1,e=t,t=r,r=this),o=o||Jt(t,I(t));var n,i,o,a=!0,s=-1,u=En(r),l=o.length;!1===e?a=!1:L(e)&&"chain"in e&&(a=e.chain);for(;++s<l;){var c=o[s],p=t[c];r[c]=p,u&&(r.prototype[c]=function(n){return function(){var t,e=this.__chain__;return a||e?(((t=r(this.__wrapped__)).__actions__=k(this.__actions__)).push({func:n,args:arguments,thisArg:r}),t.__chain__=e,t):(e=[this.value()],tt.apply(e,arguments),n.apply(r,e))}}(p))}return r}function zn(){}var Kn,Yn=Te(At),Xn=Te(function(t){for(var e=-1,n=t.length,r=gt;++e<n;){var i=t[e];i<r&&(r=i)}return r},!0);return p.prototype=Et.prototype,(d.prototype=jt(Et.prototype)).constructor=d,(h.prototype=jt(Et.prototype)).constructor=h,xt.prototype.delete=function(t){return this.has(t)&&delete this.__data__[t]},xt.prototype.get=function(t){return"__proto__"==t?Qn:this.__data__[t]},xt.prototype.has=function(t){return"__proto__"!=t&&v.call(this.__data__,t)},xt.prototype.set=function(t,e){return"__proto__"!=t&&(this.__data__[t]=e),this},St.prototype.push=function(t){var e=this.data;"string"==typeof t||L(t)?e.set.add(t):e.hash[t]=!0},bn.Cache=xt,p.after=function(t,e){if("function"!=typeof e){if("function"!=typeof t)throw new x(ar);var n=t;t=e,e=n}return t=ut(t=+t)?t:0,function(){if(--t<1)return e.apply(this,arguments)}},p.ary=function(t,e,n){return n&&S(t,e,n)&&(e=null),e=t&&null==e?t.length:_(+e||0,0),s(t,or,null,null,null,null,e)},p.assign=An,p.at=function(t){return Pt(t=A(t?t.length:0)?Be(t):t,g(arguments,!1,!1,1))},p.before=mn,p.bind=function t(e,n){var r,i,o=Jn;return 2<arguments.length&&(i=_r(r=l(arguments,2),t.placeholder),o|=nr),s(e,o,n,r,i)},p.bindAll=function(t){for(var e=t,n=1<arguments.length?g(arguments,!1,!1,1):Dn(t),r=-1,i=n.length;++r<i;){var o=n[r];e[o]=s(e[o],Jn,e)}return e},p.bindKey=function t(e,n){var r,i,o=Jn|Zn;return 2<arguments.length&&(i=_r(r=l(arguments,2),t.placeholder),o|=nr),s(n,o,e,r,i)},p.callback=qn,p.chain=Ze,p.chunk=function(t,e,n){e=(n?S(t,e,n):null==e)?1:_(+e||1,1);for(var r=0,i=t?t.length:0,o=-1,a=T(Q(i/e));r<i;)a[++o]=l(t,r,r+=e);return a},p.compact=function(t){for(var e=-1,n=t?t.length:0,r=-1,i=[];++e<n;){var o=t[e];o&&(i[++r]=o)}return i},p.constant=Hn,p.countBy=j,p.create=function(t,e,n){var r=jt(t);return(e=n&&S(t,e,n)?null:e)?Nt(e,r,I(e)):r},p.curry=function t(e,n,r){return r&&S(e,n,r)&&(n=null),(r=s(e,Ar,null,null,null,null,null,n)).placeholder=t.placeholder,r},p.curryRight=function t(e,n,r){return r&&S(e,n,r)&&(n=null),(r=s(e,er,null,null,null,null,null,n)).placeholder=t.placeholder,r},p.debounce=vn,p.defaults=function(t){var e;return null==t?t:((e=k(arguments)).push(Lt),An.apply(Qn,e))}
1,p.defer=function(t){return Vt(t,1,arguments,1)},p.delay=function(t,e){return Vt(t,e,arguments,2)},p.difference=function(){for(var t=arguments,e=-1,n=t.length;++e<n;){var r=t[e];if(R(r)||O(r))break}return qt(r,g(t,!1,!0,++e))},p.drop=He,p.dropRight=We,p.dropRightWhile=function(t,e,n){var r=t?t.length:0;if(!r)return[];for(e=E(e,n,3);r--&&e(t[r],r,t););return l(t,0,r+1)},p.dropWhile=function(t,e,n){var r=t?t.length:0;if(!r)return[];var i=-1;for(e=E(e,n,3);++i<r&&e(t[i],i,t););return l(t,i)},p.fill=function(t,e,n,r){if(!(s=t?t.length:0))return[];n&&"number"!=typeof n&&S(t,e,n)&&(n=0,r=s);var i=t,o=e,a=n,s=r,u=i.length;for((s=void 0===s||u<s?u:+s||0)<0&&(s+=u),u=s<(a=(a=null!=a&&+a||0)<0?u<-a?0:u+a:a)?0:s>>>0,a>>>=0;a<u;)i[a++]=o;return i},p.filter=nn,p.flatten=function(t,e,n){var r=t?t.length:0;return n&&S(t,e,n)&&(e=!1),r?g(t,e,!1,0):[]},p.flattenDeep=function(t){return t&&t.length?g(t,!0,!1,0):[]},p.flow=ct,p.flowRight=yn,p.forEach=on,p.forEachRight=an,p.forIn=function(t,e,n){return Kt(t,e="function"==typeof e&&void 0===n?e:c(e,n,3),M)},p.forInRight=function(t,e,n){return Yt(t,e=c(e,n,3),M)},p.forOwn=function(t,e,n){return $(t,e="function"==typeof e&&void 0===n?e:c(e,n,3))},p.forOwnRight=function(t,e,n){return Yt(t,e=c(e,n,3),I)},p.functions=Dn,p.groupBy=t,p.indexBy=e,p.initial=function(t){return We(t,1)},p.intersection=function(){for(var t=[],e=-1,n=arguments.length,r=[],i=Re(),o=i==xr;++e<n;){var a=arguments[e];(R(a)||O(a))&&(t.push(a),r.push(o&&120<=a.length?$e(e&&a):null))}var n=t.length,s=t[0],u=-1,l=s?s.length:0,c=[],p=r[0];t:for(;++u<l;)if(a=s[u],(p?Tt(p,a):i(c,a,0))<0){for(e=n;--e;){var d=r[e];if((d?Tt(d,a):i(t[e],a,0))<0)continue t}p&&p.push(a),c.push(a)}return c},p.invert=function(t,e,n){n&&S(t,e,n)&&(e=null);for(var r=-1,i=I(t),o=i.length,a={};++r<o;){var s=i[r],u=t[s];e?v.call(a,u)?a[u].push(s):a[u]=[s]:a[u]=s}return a},p.invoke=function(t,e){return n=t,r=e,i=l(arguments,2),o=-1,a="function"==typeof r,s=n?n.length:0,u=A(s)?T(s):[],f(n,function(t){var e=a?r:null!=t&&t[r];u[++o]=e?e.apply(t,i):Qn}),u;var n,r,i,o,a,s,u},p.keys=I,p.keysIn=M,p.map=un,p.mapValues=function(t,r,e){var i={};return r=E(r,e,3),$(t,function(t,e,n){i[e]=r(t,e,n)}),i},p.matches=Wn,p.matchesProperty=function(t,e){return re(t+"",Ut(e,!0))},p.memoize=bn,p.merge=pt,p.mixin=Gn,p.negate=function(t){if("function"!=typeof t)throw new x(ar);return function(){return!t.apply(this,arguments)}},p.omit=function(t,r,e){var n;return null==t?{}:"function"!=typeof r?(n=kt(g(arguments,!1,!1,1),V),Ie(t,qt(M(t),n))):(r=c(r,e,3),Me(t,function(t,e,n){return!r(t,e,n)}))},p.once=function(t){return mn(t,2)},p.pairs=function(t){for(var e=-1,n=I(t),r=n.length,i=T(r);++e<r;){var o=n[e];i[e]=[o,t[o]]}return i},p.partial=function t(e){var n=l(arguments,1),r=_r(n,t.placeholder);return s(e,nr,null,n,r)},p.partialRight=function t(e){var n=l(arguments,1),r=_r(n,t.placeholder);return s(e,rr,null,n,r)},p.partition=ln,p.pick=function(t,e,n){return null==t?{}:"function"==typeof e?Me(t,c(e,n,3)):Ie(t,g(arguments,!1,!1,1))},p.pluck=function(t,e){return un(t,ie(e))},p.property=function(t){return ie(t+"")},p.propertyOf=function(e){return function(t){return null==e?Qn:e[t]}},p.pull=function(){var t=arguments,e=t[0];if(e&&e.length)for(var n=0,r=Re(),i=t.length;++n<i;)for(var o=0,a=t[n];-1<(o=r(e,a,o));)it.call(e,o,1);return e},p.pullAt=function(t){var e=t||[],n=g(arguments,!1,!1,1),r=n.length,i=Pt(e,n);for(n.sort(vi);r--;){var o,a=parseFloat(n[r]);a!=o&&Le(a)&&it.call(e,o=a,1)}return i},p.range=function(t,e,n){n&&S(t,e,n)&&(e=n=null),t=+t||0,null==e?(e=t,t=0):e=+e||0;for(var r=-1,i=_(Q((e-t)/((n=null==n?1:+n||0)||1)),0),o=T(i);++r<i;)o[r]=t,t+=n;return o},p.rearg=function(t){var e=g(arguments,!1,!1,1);return s(t,ir,null,null,null,e)},p.reject=function(t,r,e){var n=R(t)?Ct:Gt;return r=E(r,e,3),n(t,function(t,e,n){return!r(t,e,n)})},p.remove=function(t,e,n){var r=-1,i=t?t.length:0,o=[];for(e=E(e,n,3);++r<i;){var a=t[r];e(a,r,t)&&(o.push(a),it.call(t,r--,1),i--)}return o},p.rest=Ye,p.shuffle=hn,p.slice=function(t,e,n){var r=t?t.length:0;return r?(n&&"number"!=typeof n&&S(t,e,n)&&(e=0,n=r),l(t,e,n)):[]},p.sortBy=function(t,r,e){var i,n,o;return null==t?[]:(i=-1,n=t.length,o=A(n)?T(n):[],r=E(r=e&&S(t,r,e)?null:r,e,3),f(t,function(t,e,n){o[++i]={criteria:r(t,e,n),index:i,value:t}}),le(o,Ei))},p.sortByAll=function(t){var e,n;return null==t?[]:ce(t,g(e=(n=(e=arguments)[3])&&S(e[1],e[2],n)?[t,e[1]]:e,!1,!1,1),[])},p.sortByOrder=function(t,e,n,r){return null==t?[]:(r&&S(e,n,r)&&(n=null),ce(t,e=R(e)?e:null==e?[]:[e],n=R(n)?n:null==n?[]:[n]))},p.spread=function(e){if("function"!=typeof e)throw new x(ar);return function(t){return e.apply(this,t)}},p.take=function(t,e,n){return t&&t.length?l(t,0,(e=(n?S(t,e,n):null==e)?1:e)<0?0:e):[]},p.takeRight=function(t,e,n){var r=t?t.length:0;return r?l(t,(e=r-(+(e=(n?S(t,e,n):null==e)?1:e)||0))<0?0:e):[]},p.takeRightWhile=function(t,e,n){var r=t?t.length:0;if(!r)return[];for(e=E(e,n,3);r--&&e(t[r],r,t););return l(t,r+1)},p.takeWhile=function(t,e,n){var r=t?t.length:0;if(!r)return[];var i=-1;for(e=E(e,n,3);++i<r&&e(t[i],i,t););return l(t,0,i)},p.tap=function(t,e,n){return e.call(n,t),t},p.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new x(ar);return!1===n?r=!1:L(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),$r.leading=r,$r.maxWait=+e,$r.trailing=i,vn(t,e,$r)},p.thru=tn,p.times=function(t,e,n){if((t=+t)<1||!ut(t))return[];var r=-1,i=T(C(t,mt));for(e=c(e,n,1);++r<t;)r<mt?i[r]=e(r):e(r);return i},p.toArray=function(t){var e=t?t.length:0;return A(e)?e?k(t):[]:On(t)},p.toPlainObject=kn,p.transform=function(t,r,i,e){var n=R(t)||Cn(t);return r=E(r,e,4),null==i&&(i=n||L(t)?(e=t.constructor,n?R(t)?new e:[]:jt(En(e)&&e.prototype)):{}),(n?w:$)(t,function(t,e,n){return r(i,t,e,n)}),i},p.union=function(){return pe(g(arguments,!1,!0,0))},p.uniq=Xe,p.unzip=Qe,p.values=On,p.valuesIn=function(t){return de(t,M(t))},p.where=function(t,e){return nn(t,ne(e))}
1,p.without=function(t){return qt(t,l(arguments,1))},p.wrap=function(t,e){return s(e=null==e?P:e,nr,null,[t],[])},p.xor=function(){for(var t=-1,e=arguments.length;++t<e;){var n,r=arguments[t];(R(r)||O(r))&&(n=n?qt(n,r).concat(qt(r,n)):r)}return n?pe(n):[]},p.zip=function(){for(var t=arguments.length,e=T(t);t--;)e[t]=arguments[t];return Qe(e)},p.zipObject=Je,p.backflow=yn,p.collect=un,p.compose=yn,p.each=on,p.eachRight=an,p.extend=An,p.iteratee=qn,p.methods=Dn,p.object=Je,p.select=nn,p.tail=Ye,p.unique=Xe,Gn(p,p),p.add=function(t,e){return t+e},p.attempt=Vn,p.camelCase=Rn,p.capitalize=function(t){return(t=Sr(t))&&t.charAt(0).toUpperCase()+t.slice(1)},p.clone=function(t,e,n,r){return e&&"boolean"!=typeof e&&S(t,e,n)?e=!1:"function"==typeof e&&(r=n,n=e,e=!1),Ut(t,e,n="function"==typeof n&&c(n,r,1))},p.cloneDeep=function(t,e,n){return Ut(t,!0,e="function"==typeof e&&c(e,n,1))},p.deburr=Ln,p.endsWith=function(t,e,n){e+="";var r=(t=Sr(t)).length;return 0<=(n=(void 0===n?r:C(!(n<0)&&+n||0,r))-e.length)&&t.indexOf(e,n)==n},p.escape=function(t){return(t=Sr(t))&&Zr.test(t)?t.replace(Qr,Si):t},p.escapeRegExp=In,p.every=en,p.find=rn,p.findIndex=Ge,p.findKey=function(t,e,n){return zt(t,e=E(e,n,3),$,!0)},p.findLast=function(t,e,n){return zt(t,e=E(e,n,3),Ht)},p.findLastIndex=function(t,e,n){var r=t?t.length:0;for(e=E(e,n,3);r--;)if(e(t[r],r,t))return r;return-1},p.findLastKey=function(t,e,n){return zt(t,e=E(e,n,3),Qt,!0)},p.findWhere=function(t,e){return rn(t,ne(e))},p.first=ze,p.has=function(t,e){return!!t&&v.call(t,e)},p.identity=P,p.includes=sn,p.indexOf=Ke,p.inRange=function(t,e,n){return e=+e||0,void 0===n?(n=e,e=0):n=+n||0,e<=t&&t<n},p.isArguments=O,p.isArray=R,p.isBoolean=function(t){return!0===t||!1===t||Tr(t)&&y.call(t)==cr||!1},p.isDate=function(t){return Tr(t)&&y.call(t)==pr||!1},p.isElement=wn,p.isEmpty=function(t){var e;return null==t||(A(e=t.length)&&(R(t)||_n(t)||O(t)||Tr(t)&&En(t.splice))?!e:!I(t).length)},p.isEqual=function(t,e,n,r){return!(n="function"==typeof n&&c(n,r,3))&&D(t)&&D(e)?t===e:void 0===(r=n?n(t,e):Qn)?Zt(t,e,n):!!r},p.isError=$n,p.isFinite=at,p.isFunction=En,p.isMatch=function(t,e,n,r){var i=I(e),o=i.length;if(!(n="function"==typeof n&&c(n,r,3))&&1==o){var r=i[0],a=e[r];if(D(a))return null!=t&&a===t[r]&&v.call(t,r)}for(var s=T(o),u=T(o);o--;)a=s[o]=e[i[o]],u[o]=D(a);return te(t,i,s,u,n)},p.isNaN=function(t){return xn(t)&&t!=+t},p.isNative=i,p.isNull=function(t){return null===t},p.isNumber=xn,p.isObject=L,p.isPlainObject=Sn,p.isRegExp=Tn,p.isString=_n,p.isTypedArray=Cn,p.isUndefined=function(t){return void 0===t},p.kebabCase=Mn,p.last=function(t){var e=t?t.length:0;return e?t[e-1]:Qn},p.lastIndexOf=function(t,e,n){var r=t?t.length:0;if(r){var i=r;if("number"==typeof n)i=(n<0?_(r+n,0):C(n||0,r-1))+1;else if(n)return r=t[i=fe(t,e,!0)-1],(e==e?e===r:r!=r)?i:-1;if(e!=e)return _i(t,i,!0);for(;i--;)if(t[i]===e)return i}return-1},p.max=Yn,p.min=Xn,p.noConflict=function(){return n._=K,this},p.noop=zn,p.now=gn,p.pad=function(t,e,n){var r=(t=Sr(t)).length;return(e=+e)<=r||!ut(e)?t:(r=J(e=(e-r)/2),(n=Ce("",Q(e),n)).slice(0,r)+t+n)},p.padLeft=function(t,e,n){return(t=Sr(t))&&Ce(t,e,n)+t},p.padRight=function(t,e,n){return(t=Sr(t))&&t+Ce(t,e,n)},p.parseInt=Pn,p.random=function(t,e,n){var r=null==t,i=null==(e=n&&S(t,e,n)?n=null:e);return null==n&&(i&&"boolean"==typeof t?(n=t,t=1):"boolean"==typeof e&&(n=e,i=!0)),t=+t||0,(i=r?i&&!(e=1):i)?(e=t,t=0):e=+e||0,n||t%1||e%1?(r=ht(),C(t+r*(e-t+parseFloat("1e-"+((r+"").length-1))),e)):oe(t,e)},p.reduce=cn,p.reduceRight=pn,p.repeat=Nn,p.result=function(t,e,n){return e=null==t?Qn:t[e],En(e=void 0===e?n:e)?e.call(t):e},p.runInContext=r,p.size=function(t){var e=t?t.length:0;return A(e)?e:I(t).length},p.snakeCase=Fn,p.some=fn,p.sortedIndex=function(t,e,n,r){var i=E(n);return i===Ft&&null==n?fe(t,e):ge(t,e,i(n,r,1))},p.sortedLastIndex=function(t,e,n,r){var i=E(n);return i===Ft&&null==n?fe(t,e,!0):ge(t,e,i(n,r,1),!0)},p.startCase=Un,p.startsWith=function(t,e,n){return t=Sr(t),n=null==n?0:C(!(n<0)&&+n||0,t.length),t.lastIndexOf(e,n)==n},p.sum=function(t){for(var e=(t=R(t)?t:Be(t)).length,n=0;e--;)n+=+t[e]||0;return n},p.template=function(a,t,e){var s,u,n=p.templateSettings,e=(e&&S(a,t,e)&&(t=e=null),a=Sr(a),t=Mt(Mt({},e||t),n,It),Mt(Mt({},t.imports),n.imports,It)),r=I(e),i=de(e,r),l=0,n=t.interpolate||yr,c="__p += '",e=B((t.escape||yr).source+"|"+n.source+"|"+(n===ni?ri:yr).source+"|"+(t.evaluate||yr).source+"|$","g"),o="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++mi+"]")+"\n";if(a.replace(e,function(t,e,n,r,i,o){return n=n||r,c+=a.slice(l,o).replace(di,Ti),e&&(s=!0,c+="' +\n__e("+e+") +\n'"),i&&(u=!0,c+="';\n"+i+";\n__p += '"),n&&(c+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),l=o+t.length,t}),c+="';\n",(n=t.variable)||(c="with (obj) {\n"+c+"\n}\n"),c=(u?c.replace(zr,""):c).replace(Kr,"$1").replace(Yr,"$1;"),c="function("+(n||"obj")+") {\n"+(n?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
1\n")+c+"return __p\n}",(e=Vn(function(){return U(r,o+"return "+c).apply(Qn,i)})).source=c,$n(e))throw e;return e},p.trim=jn,p.trimLeft=function(t,e,n){var r=t;return(t=Sr(t))&&((n?S(r,e,n):null==e)?t.slice(Ci(t)):t.slice(wi(t,e+"")))},p.trimRight=function(t,e,n){var r=t;return(t=Sr(t))&&((n?S(r,e,n):null==e)?t.slice(0,ki(t)+1):t.slice(0,$i(t,e+"")+1))},p.trunc=function(t,e,n){n&&S(t,e,n)&&(e=null);var r,n=Dr,i=Or;if(null!=e&&(L(e)?(r="separator"in e?e.separator:r,n="length"in e?+e.length||0:n,i="omission"in e?Sr(e.omission):i):n=+e||0),n>=(t=Sr(t)).length)return t;if((e=n-i.length)<1)return i;if(n=t.slice(0,e),null!=r)if(Tn(r)){if(t.slice(e).search(r)){var o,a,s=t.slice(0,e);for((r=r.global?r:B(r.source,(ii.exec(r)||"")+"g")).lastIndex=0;o=r.exec(s);)a=o.index;n=n.slice(0,null==a?e:a)}}else t.indexOf(r,e)!=e&&-1<(t=n.lastIndexOf(r))&&(n=n.slice(0,t));return n+i},p.unescape=function(t){return(t=Sr(t))&&Jr.test(t)?t.replace(Xr,Ai):t},p.uniqueId=function(t){var e=++z;return Sr(t)+e},p.words=Bn,p.all=en,p.any=fn,p.contains=sn,p.detect=rn,p.foldl=cn,p.foldr=pn,p.head=ze,p.include=sn,p.inject=cn,Gn(p,(Kn={},$(p,function(t,e){p.prototype[e]||(Kn[e]=t)}),Kn),!1),p.sample=dn,p.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return dn(t,e)}):dn(this.value())},p.VERSION=kr,w(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){p[t].placeholder=p}),w(["dropWhile","filter","map","takeWhile"],function(t,o){var a=o!=Mr,s=o==Ir;h.prototype[t]=function(t,e){var n=this.__filtered__,r=n&&s?new h(this):this.clone(),i=r.__iteratees__||(r.__iteratees__=[]);return r.__filtered__=n||a,i.push({done:!1,index:0,iteratee:E(t,e,1),type:o}),r}}),w(["drop","take"],function(r,i){var o="__"+r+"Count__",n=r+"While";h.prototype[r]=function(t){t=null==t?1:_(J(t)||0,0);var e,n=this.clone();return n.__filtered__?(e=n[o],n[o]=i?C(e,t):e+t):(n.__views__||(n.__views__=[])).push({size:t,type:r+(n.__dir__<0?"Right":"")}),n},h.prototype[r+"Right"]=function(t){return this.reverse()[r](t).reverse()},h.prototype[r+"RightWhile"]=function(t,e){return this.reverse()[n](t,e).reverse()}}),w(["first","last"],function(t,e){var n="take"+(e?"Right":"");h.prototype[t]=function(){return this[n](1).value()[0]}}),w(["initial","rest"],function(t,e){var n="drop"+(e?"":"Right");h.prototype[t]=function(){return this[n](1)}}),w(["pluck","where"],function(t,e){var n=e?"filter":"map",r=e?ne:ie;h.prototype[t]=function(t){return this[n](r(t))}}),h.prototype.compact=function(){return this.filter(P)},h.prototype.reject=function(e,t){return e=E(e,t,1),this.filter(function(t){return!e(t)})},h.prototype.slice=function(t,e){var n=(t=null!=t&&+t||0)<0?this.takeRight(-t):this.drop(t);return n=void 0!==e?(e=+e||0)<0?n.dropRight(-e):n.take(e-t):n},h.prototype.toArray=function(){return this.drop(0)},$(h.prototype,function(s,t){var u=p[t],l=/^(?:filter|map|reject)|While$/.test(t),c=/^(?:first|last)$/.test(t);p.prototype[t]=function(){var e=arguments,t=(e.length,this.__chain__),n=this.__wrapped__,r=!!this.__actions__.length,i=n instanceof h,o=e[0],a=i||R(n),o=(i=a&&l&&"function"==typeof o&&1!=o.length?a=!1:i)&&!r;return c&&!t?o?s.call(n):u.call(p,this.value()):(i=function(t){return t=[t],tt.apply(t,e),u.apply(p,t)},a?(a=o?n:new h(this),o=s.apply(a,e),c||!r&&!o.__actions__||(o.__actions__||(o.__actions__=[])).push({func:tn,args:[i],thisArg:p}),new d(o,t)):this.thru(i))}}),w(["concat","join","pop","push","shift","sort","splice","unshift"],function(t){var n=q[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:join|pop|shift)$/.test(t);p.prototype[t]=function(){var e=arguments;return i&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),h.prototype.clone=function(){var t=this.__actions__,e=this.__iteratees__,n=this.__views__,r=new h(this.__wrapped__);return r.__actions__=t?k(t):null,r.__dir__=this.__dir__,r.__dropCount__=this.__dropCount__,r.__filtered__=this.__filtered__,r.__iteratees__=e?k(e):null,r.__takeCount__=this.__takeCount__,r.__views__=n?k(n):null,r},h.prototype.reverse=function(){var t;return this.__filtered__?((t=new h(this)).__dir__=-1,t.__filtered__=!0):(t=this.clone()).__dir__*=-1,t},h.prototype.value=function(){var t=this.__wrapped__.value();if(!R(t))return he(t,this.__actions__);var e=this.__dir__,n=e<0,r=function(t,e,n){for(var r=-1,i=n?n.length:0;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=C(e,t+a);break;case"takeRight":t=_(t,e-a)}}return{start:t,end:e}}(0,t.length,this.__views__),i=r.start,o=(r=r.end)-i,a=this.__dropCount__,s=C(o,this.__takeCount__),u=n?r:i-1,l=this.__iteratees__,c=l?l.length:0,p=0,d=[];t:for(;o--&&p<s;){for(var h=-1,f=t[u+=e];++h<c;
1){var g=(v=l[h]).iteratee,m=v.type,v=m!=Ir?g(f):(v.done=v.done&&(n?u<v.index:u>v.index),v.index=u,v.done||(v.done=!g(f)));if(m==Mr)f=v;else if(!v){if(m==Pr)break t;continue t}}a?a--:d[p++]=f}return d},p.prototype.chain=function(){return Ze(this)},p.prototype.commit=function(){return new d(this.value(),this.__chain__)},p.prototype.plant=function(t){for(var e,n=this;n instanceof Et;)var r=qe(n),i=(e?i.__wrapped__=r:e=r,r),n=n.__wrapped__;return i.__wrapped__=t,e},p.prototype.reverse=function(){var t=this.__wrapped__;return t instanceof h?new d((t=this.__actions__.length?new h(this):t).reverse(),this.__chain__):this.thru(function(t){return t.reverse()})},p.prototype.toString=function(){return this.value()+""},p.prototype.run=p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=function(){return he(this.__wrapped__,this.__actions__)},p.prototype.collect=p.prototype.map,p.prototype.head=p.prototype.first,p.prototype.select=p.prototype.filter,p.prototype.tail=p.prototype.rest,p}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Er._=Cr,define(function(){return Cr})):i&&t?r?(t.exports=Cr)._=Cr:i._=Cr:Er._=Cr}.call(this),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||2<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(),!function(r){"use strict";r.fn.emulateTransitionEnd=function(t){var e=!1,n=this;r(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||r(n).trigger(r.support.transition.end)},t),this},r(function(){r.support.transition=function(){var t,e=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in n)if(void 0!==e.style[t])return{end:n[t]};return!1}(),r.support.transition&&(r.event.special.bsTransitionEnd={bindType:r.support.transition.end,delegateType:r.support.transition.end,handle:function(t){if(r(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),!function(o){"use strict";function a(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.VERSION="3.3.6",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=o(this),n=(n=e.attr("data-target"))||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""),r=o(n);function i(){r.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),(r=r.length?r:e.closest(".alert")).trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(r.removeClass("in"),o.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(a.TRANSITION_DURATION):i())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=a,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),!function(o){"use strict";function r(t,e){this.$element=o(t),this.options=o.extend({},r.DEFAULTS,e),this.isLoading=!1}function n(n){return this.each(function(){var t=o(this),e=t.data("bs.button");e||t.data("bs.button",e=new r(this,"object"==typeof n&&n)),"toggle"==n?e.toggle():n&&e.setState(n)})}r.VERSION="3.3.6",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(t){var e="disabled",n=this.$element,r=n.is("input")?"val":"html",i=n.data();t+="Text",null==i.resetText&&n.data("resetText",n[r]()),setTimeout(o.proxy(function(){n[r]((null==i[t]?this.options:i)[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e))},this),0)},r.prototype.toggle=function(){var t,e=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=o.fn.button;o.fn.button=n,o.fn.button.Constructor=r,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),n.call(e,"toggle"),o(t.target).is('input[type="radio"]')||o(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),!function(l){"use strict";function c(t,e){this.$element=l(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("key
1down.bs.carousel",l.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",l.proxy(this.pause,this)).on("mouseleave.bs.carousel",l.proxy(this.cycle,this))}function i(i){return this.each(function(){var t=l(this),e=t.data("bs.carousel"),n=l.extend({},c.DEFAULTS,t.data(),"object"==typeof i&&i),r="string"==typeof i?i:n.slide;e||t.data("bs.carousel",e=new c(this,n)),"number"==typeof i?e.to(i):r?e[r]():n.interval&&e.pause().cycle()})}c.VERSION="3.3.6",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},c.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(l.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},c.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);return("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap?e:(e=(n+("prev"==t?-1:1))%this.$items.length,this.$items.eq(e))},c.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},c.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&l.support.transition&&(this.$element.trigger(l.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(t,e){var n,r,i,o=this.$element.find(".item.active"),a=e||this.getItemForDirection(t,o),e=this.interval,s="next"==t?"left":"right",u=this;return a.hasClass("active")?this.sliding=!1:(n=a[0],r=l.Event("slide.bs.carousel",{relatedTarget:n,direction:s}),this.$element.trigger(r),r.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),r=l(this.$indicators.children()[this.getItemIndex(a)]))&&r.addClass("active"),i=l.Event("slid.bs.carousel",{relatedTarget:n,direction:s}),l.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),a[0].offsetWidth,o.addClass(s),a.addClass(s),o.one("bsTransitionEnd",function(){a.removeClass([t,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(i)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(o.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(i)),e&&this.cycle(),this))};function t(t){var e,n=l(this),r=l(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""));r.hasClass("carousel")&&(e=l.extend({},r.data(),n.data()),(n=n.attr("data-slide-to"))&&(e.interval=!1),i.call(r,e),n&&r.data("bs.carousel").to(n),t.preventDefault())}var e=l.fn.carousel;l.fn.carousel=i,l.fn.carousel.Constructor=c,l.fn.carousel.noConflict=function(){return l.fn.carousel=e,this};l(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),l(window).on("load",function(){l('[data-ride="carousel"]').each(function(){var t=l(this);i.call(t,t.data())})})}(jQuery),!function(i){"use strict";function o(t,e){this.$element=i(t),this.options=i.extend({},o.DEFAULTS,e),this.$trigger=i('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function n(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return i(t)}function a(r){return this.each(function(){var t=i(this),e=t.data("bs.collapse"),n=i.extend({},o.DEFAULTS,t.data(),"object"==typeof r&&r);!e&&n.toggle&&/show|hide/.test(r)&&(n.toggle=!1),e||t.data("bs.collapse",e=new o(this,n)),"string"==typeof r&&e[r]()})}o.VERSION="3.3.6",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(r=t.data("bs.collapse"))&&r.transitioning)){var e=i.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),r||t.data("bs.collapse",null));var n=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!i.support.transition)return e.call(this);var r=i.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",i.proxy(e,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[n](this.$element[0][r])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=i.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var t=this.dimension(),e=(this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!i.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",i.proxy(e,this)).emulateTransitionEnd(o.TRANSITION_DURATION)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return i(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(i.proxy(function(t,e){e=i(e);this.addAriaAndCollapsedClass(n(e),e)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=i.fn.collapse;i.fn.collapse=a,i.fn.collapse.Constructor=o,i.fn.collapse.noConflict=function(){return i.fn.collapse=t,this},i(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=i(this),t=(e.attr("data-target")||t.preventDefault(),n(e)),e=t.data("bs.collapse")?"toggle":e.data();a.call(t,e)})}(jQuery),!function(i){"use strict";function r(t){i(t).on("click.bs.dropdown",this.toggle)}var o='[data-toggle="dropdown"]';function a(t){var e=t.attr("data-target"),e=(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))&&i(e);return e&&e.length?e:t.parent()}function s(r){r&&3===r.which||(i(".dropdown-backdrop").remove(),i(o).each(function(){var t=i(this),e=a(t),n={relatedTarget:this};!e.hasClass("open")||r&&"click"==r.type&&/input|textarea/i.test(r.target.tagName)&&i.contains(e[0],r.target)||(e.trigger(r=i.Event("hide.bs.dropdown",n)),r.isDefaultPrevented())||(t.attr("aria-expanded","fal
1se"),e.removeClass("open").trigger(i.Event("hidden.bs.dropdown",n)))}))}r.VERSION="3.3.6",r.prototype.toggle=function(t){var e=i(this);if(!e.is(".disabled, :disabled")){var n=a(e),r=n.hasClass("open");if(s(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&i(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(i(this)).on("click",s);r={relatedTarget:this};if(n.trigger(t=i.Event("show.bs.dropdown",r)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(i.Event("shown.bs.dropdown",r))}return!1}},r.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=i(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=a(e),r=n.hasClass("open");if(!r&&27!=t.which||r&&27==t.which)return 27==t.which&&n.find(o).trigger("focus"),e.trigger("click");r=n.find(".dropdown-menu li:not(.disabled):visible a");r.length&&(e=r.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<r.length-1&&e++,r.eq(e=~e?e:0).trigger("focus"))}}};var t=i.fn.dropdown;i.fn.dropdown=function(n){return this.each(function(){var t=i(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new r(this)),"string"==typeof n&&e[n].call(t)})},i.fn.dropdown.Constructor=r,i.fn.dropdown.noConflict=function(){return i.fn.dropdown=t,this},i(document).on("click.bs.dropdown.data-api",s).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),!function(o){"use strict";function a(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function i(r,i){return this.each(function(){var t=o(this),e=t.data("bs.modal"),n=o.extend({},a.DEFAULTS,t.data(),"object"==typeof r&&r);e||t.data("bs.modal",e=new a(this,n)),"string"==typeof r?e[r](i):n.show&&e.show(i)})}a.VERSION="3.3.6",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(n){var r=this,t=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&r.$element.hasClass("fade"),e=(r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),t&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus(),o.Event("shown.bs.modal",{relatedTarget:n}));t?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):r.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
1down.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e,n=this,r=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=o.support.transition&&r,this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),r=function(){n.removeBackdrop(),t&&t()},o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):r()):t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",this.$body.append(t),t.offsetWidth-t.clientWidth);return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=i,o.fn.modal.Constructor=a,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),r=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),n=r.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},r.data(),e.data());e.is("a")&&t.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),i.call(r,n,this)})}(jQuery),!function(u){"use strict";function l(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}l.VERSION="3.3.6",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},l.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=u(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&u(u.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),i=r.length;i--;){var o,a=r[i];"click"==a?this.$element.on("click."+this.type,this.options.selector,u.proxy(this.toggle,this)):"manual"!=a&&(o="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,u.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,u.proxy(this.leave,this)))}this.options.selector?this._options=u.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(t){return(t=u.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},l.prototype.getDelegateOptions=function(){var n={},r=this.getDefaults();return this._options&&u.each(this._options,function(t,e){r[t]!=e&&(n[t]=e)}),n},l.prototype.enter=function(t){var e=t instanceof this.constructor?t:u(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t instanceof u.Event&&(e.inState["focusin"==t.type?"focu
1s":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(t){var e=t instanceof this.constructor?t:u(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t instanceof u.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},l.prototype.show=function(){var e,t,n,r,i,o,a,s=u.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(s),i=u.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!s.isDefaultPrevented())&&i&&(s=(e=this).tip(),i=this.getUID(this.type),this.setContent(),s.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&s.addClass("fade"),i="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(i))&&(i=i.replace(t,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),n=s[0].offsetWidth,r=s[0].offsetHeight,a&&(a=i,o=this.getPosition(this.$viewport),i="bottom"==i&&t.bottom+r>o.bottom?"top":"top"==i&&t.top-r<o.top?"bottom":"right"==i&&t.right+n>o.width?"left":"left"==i&&t.left-n<o.left?"right":i,s.removeClass(a).addClass(i)),o=this.getCalculatedOffset(i,t,n,r),this.applyPlacement(o,i),a=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},u.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",a).emulateTransitionEnd(l.TRANSITION_DURATION):a())},l.prototype.applyPlacement=function(t,e){var n=this.tip(),r=n[0].offsetWidth,i=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10),o=(isNaN(o)&&(o=0),isNaN(a)&&(a=0),t.top+=o,t.left+=a,u.offset.setOffset(n[0],u.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in"),n[0].offsetWidth),a=n[0].offsetHeight,s=("top"==e&&a!=i&&(t.top=t.top+i-a),this.getViewportAdjustedDelta(e,t,o,a)),e=(s.left?t.left+=s.left:t.top+=s.top,/top|bottom/.test(e)),r=e?2*s.left-r+o:2*s.top-i+a,o=e?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(r,n[0][o],e)},l.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var e=this,n=u(this.$tip),r=u.Event("hide.bs."+this.type);function i(){"in"!=e.hoverState&&n.detach(),e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(r),!r.isDefaultPrevented())return n.removeClass("in"),u.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(l.TRANSITION_DURATION):i(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,e=e.getBoundingClientRect(),r=(null==e.width&&(e=u.extend({},e,{width:e.right-e.left,height:e.bottom-e.top})),n?{top:0,left:0}:t.offset()),t={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},n=n?{width:u(window).width(),height:u(window).height()}:null;return u.extend({},e,t,n,r)},l.prototype.getCalculatedOffset=function(t,e,n,r){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-r,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-r/2,left:e.left-n}:{top:e.top+e.height/2-r/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,n,r){var i,o,a={top:0,left:0};return this.$viewport&&(i=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport),/right|left/.test(t)?(t=e.top-i-o.scroll,r=e.top+i-o.scroll+r,t<o.top?a.top=o.top-t:r>o.top+o.height&&(a.top=o.top+o.height-r)):(t=e.left-i,r=e.left+i+n,t<o.left?a.left
vendor: 7,857 bytes, line 1
1=o.left-t:r>o.right&&(a.left=o.left+o.width-r))),a},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},l.prototype.tip=function(){if(this.$tip||(this.$tip=u(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var e=this;t&&!(e=u(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),u(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var t=u.fn.tooltip;u.fn.tooltip=function(r){return this.each(function(){var t=u(this),e=t.data("bs.tooltip"),n="object"==typeof r&&r;!e&&/destroy|hide/.test(r)||(e||t.data("bs.tooltip",e=new l(this,n)),"string"==typeof r&&e[r]())})},u.fn.tooltip.Constructor=l,u.fn.tooltip.noConflict=function(){return u.fn.tooltip=t,this}}(jQuery),!function(i){"use strict";function o(t,e){this.init("popover",t,e)}if(!i.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.6",o.DEFAULTS=i.extend({},i.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=i.extend({},i.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=i.fn.popover;i.fn.popover=function(r){return this.each(function(){var t=i(this),e=t.data("bs.popover"),n="object"==typeof r&&r;!e&&/destroy|hide/.test(r)||(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof r&&e[r]())})},i.fn.popover.Constructor=o,i.fn.popover.noConflict=function(){return i.fn.popover=t,this}}(jQuery),!function(i){"use strict";function r(t,e){this.$body=i(document.body),this.$scrollElement=i(t).is(document.body)?i(window):i(t),this.options=i.extend({},r.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",i.proxy(this.process,this)),this.refresh(),this.process()}function e(n){return this.each(function(){var t=i(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new r(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}r.VERSION="3.3.6",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),i.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=i(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&i(t);return e&&e.length&&e.is(":visible")?[[e[n]().top+r,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},r.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),i=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),r<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<i[0])return this.activeTarget=null,this.clear();for(t=i.length;t--;)a!=o[t]&&e>=i[t]&&(void 0===i[t+1]||e<i[t+1])&&this.activate(o[t])},r.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=i(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},r.prototype.clear=function(){i(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=i.fn.scrollspy;i.fn.scrollspy=e,i.fn.scrollspy.Constructor=r,i.fn.scrollspy.noConflict=function(){return i.fn.scrollspy=t,this},i(window).on("load.bs.scrollspy.data-api",function(){i('[data-spy="scroll"]').each(function(){var t=i(this);e.call(t,t.data())})})}(jQuery),!function(a){"use strict";function s(t){this.element=a(t)}function e(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new s(this)),"string"==typeof n&&e[n]()})}s.VERSION="3.3.6",s.TRANSITION_DURATION=150,s.prototype.show=function(){var t,e,n,r=this.element,i=r.closest("ul:not(.dropdown-menu)"),o=(o=r.data("target"))||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"");r.parent("li").hasClass("active")||(t=i.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:r[0]}),n=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),r.trigger(n),n.isDefaultPrevented())||e.isDefaultPrevented()||(n=a(o),this.activate(r.closest("li"),i),this.activate(n,n.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:r[0]}),r.trigger({type:"shown.bs.tab",relatedTarget:t[0]})}))},s.prototype.activate=function(t,e,n){var r=e.find("> .active"),i=n&&a.support.transition&&(r.length&&r.hasClass("fade")||!!e.find("> .fade").length);function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),i?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}r.length&&i?r.one("bsTransitionEnd",o).emulateTransitionEnd(s.TRANSITION_DURATION):o(),r.removeClass("in")};function t(t){t.preventDefault(),e.call(a(this),"show")}var n=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=n,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),!function(a){"use strict";function s(t,e){this.options=a.extend({},s.DEFAULTS,e),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function n(n){return this.each(function(){var t=a(this),e=t.data("bs.affix");
1e||t.data("bs.affix",e=new s(this,"object"==typeof n&&n)),"string"==typeof n&&e[n]()})}s.VERSION="3.3.6",s.RESET="affix affix-top affix-bottom",s.DEFAULTS={offset:0,target:window},s.prototype.getState=function(t,e,n,r){var i,o=this.$target.scrollTop(),a=this.$element.offset(),s=this.$target.height();return null!=n&&"top"==this.affixed?o<n&&"top":"bottom"==this.affixed?null!=n?!(o+this.unpin<=a.top)&&"bottom":!(o+s<=t-r)&&"bottom":(a=(i=null==this.affixed)?o:a.top,null!=n&&o<=n?"top":null!=r&&t-r<=a+(i?s:e)&&"bottom")},s.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(s.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},s.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},s.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,r=e.bottom,i=Math.max(a(document).height(),a(document.body).height()),e=("object"!=typeof e&&(r=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof r&&(r=e.bottom(this.$element)),this.get
1State(i,t,n,r));if(this.affixed!=e){null!=this.unpin&&this.$element.css("top","");var n="affix"+(e?"-"+e:""),o=a.Event(n+".bs.affix");if(this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=e,this.unpin="bottom"==e?this.getPinnedOffset():null,this.$element.removeClass(s.RESET).addClass(n).trigger(n.replace("affix","affixed")+".bs.affix")}"bottom"==e&&this.$element.offset({top:i-t-r})}};var t=a.fn.affix;a.fn.affix=n,a.fn.affix.Constructor=s,a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.tabindex","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(h,f,g,t){var m=t.has("$animateCss")?t.get("$animateCss"):null;return{link:function(e,n,t){var r=g(t.expanding),i=g(t.expanded),o=g(t.collapsing),a=g(t.collapsed),s=!1,u={},l={};function c(t){return s?{width:t.scrollWidth+"px"}:{height:t.scrollHeight+"px"}}function p(){n.removeClass("collapsing").addClass("collapse").css(u),i(e)}function d(){n.css(l),n.removeClass("collapsing").addClass("collapse"),a(e)}l=(s=!!("horizontal"in t))?(u={width:""},{width:"0"}):(u={height:""},{height:"0"}),e.$eval(t.uibCollapse)||n.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css(u),e.$watch(t.uibCollapse,function(t){t?n.hasClass("collapse")||n.hasClass("in")?f.resolve(o(e)).then(function(){n.css(c(n[0])).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),m?m(n,{removeClass:"in",to:l}).start().finally(d):h.removeClass(n,"in",{to:l}).then(d)}):d():n.hasClass("collapse")&&n.hasClass("in")||f.resolve(r(e)).then(function(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),m?m(n,{addClass:"in",easing:"ease",css:{overflow:"hidden"},to:c(n[0])}).start().finally(p):h.addClass(n,"in",{css:{overflow:"hidden"},to:c(n[0])}).then(p)})})}}}]),angular.module("ui.bootstrap.tabindex",[]).directive("uibTabindexToggle",function(){return{restrict:"A",link:function(t,e,n){n.$observe("disabled",function(t){n.$set("tabindex",t?-1:null)})}}}),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse","ui.bootstrap.tabindex"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(t,n,r){this.groups=[],this.closeOthers=function(e){(angular.isDefined(n.closeOthers)?t.$eval(n.closeOthers):r.closeOthers)&&angular.forEach(this.groups,function(t){t!==e&&(t.isOpen=!1)})},this.addGroup=function(e){var n=this;this.groups.push(e),e.$on("$destroy",function(t){n.removeGroup(e)})},this.removeGroup=function(t){t=this.groups.indexOf(t);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion.html"}}}).directive("uibAccordionGroup",function(){return{require:"^uibAccordion",transclude:!0,restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(e,n,t,r){n.addClass("panel"),r.addGroup(e),e.openClass=t.openClass||"panel-open",e.panelClass=t.panelClass||"panel-default",e.$watch("isOpen",function(t){n.toggleClass(e.openClass,!!t),t&&r.closeOthers(e)}),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};t="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());
1e.headingId=t+"-tab",e.panelId=t+"-panel"}}}).directive("uibAccordionHeading",function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(t,e,n,r,i){r.setHeading(i(t,angular.noop))}}}).directive("uibAccordionTransclude",function(){return{require:"^uibAccordionGroup",link:function(t,n,e,r){t.$watch(function(){return r[e.uibAccordionTransclude]},function(t){var e;t&&((e=angular.element(n[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"))).html(""),e.append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$element","$attrs","$interpolate","$timeout",function(t,e,n,r,i){t.closeable=!!n.close,e.addClass("alert"),n.$set("role","alert"),t.closeable&&e.addClass("alert-dismissible");e=angular.isDefined(n.dismissOnTimeout)?r(n.dismissOnTimeout)(t.$parent):null;e&&i(function(){t.close()},parseInt(e,10))}]).directive("uibAlert",function(){return{controller:"UibAlertController",controllerAs:"alert",restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/alert/alert.html"},transclude:!0,scope:{close:"&"}}}),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(a){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(e,n,r,t){var i=t[0],o=t[1],t=a(r.uibUncheckable);n.find("input").css({display:"none"}),o.$render=function(){n.toggleClass(i.activeClass,angular.equals(o.$modelValue,e.$eval(r.uibBtnRadio)))},n.on(i.toggleEvent,function(){var t;r.disabled||(t=n.hasClass(i.activeClass))&&!angular.isDefined(r.uncheckable)||e.$apply(function(){o.$setViewValue(t?null:e.$eval(r.uibBtnRadio)),o.$render()})}),r.uibUncheckable&&e.$watch(t,function(t){r.$set("uncheckable",t?"":void 0)})}}}]).directive("uibBtnCheckbox",function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(n,t,e,r){var i=r[0],o=r[1];function a(){return s(e.btnCheckboxTrue,!0)}function s(t,e){return angular.isDefined(t)?n.$eval(t):e}t.find("input").css({display:"none"}),o.$render=function(){t.toggleClass(i.activeClass,angular.equals(o.$modelValue,a()))},t.on(i.toggleEvent,function(){e.disabled||n.$apply(function(){o.$setViewValue(t.hasClass(i.activeClass)?s(e.btnCheckboxFalse,!1):a()),o.$render()})})}}}),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(i,o,e,t,a){var n,r,s=this,u=s.slides=i.slides=[],l="uib-slideDirection",c=i.active,p=[],d=!1;function h(){for(;p.length;)p.shift()}function f(t){for(var e=0;e<u.length;e++)u[e].slide.active=e===t}function g(t){for(var e=0;e<u.length;e++)if(u[e].slide===t)return e}function m(){n&&(e.cancel(n),n=null)}function v(){m();var t=+i.interval;!isNaN(t)&&0<t&&(n=e(y,t))}function y(){var t=+i.interval;r&&!isNaN(t)&&0<t&&u.length?i.next():i.pause()}o.addClass("carousel"),s.addSlide=function(t,e){u.push({slide:t,element:e}),u.sort(function(t,e){return+t.slide.index-+e.slide.index}),t.index!==i.active&&(1!==u.length||angular.isNumber(i.active))||(i.$currentTransition&&(i.$currentTransition=null),c=t.index,i.active=t.index,f(c),s.select(u[g(t)]),1!==u.length)||i.play()},s.getCurrentIndex=function(){for(var t=0;t<u.length;t++)if(u[t].slide.index===c)return t},s.next=i.next=function(){var t=(s.getCurrentIndex()+1)%u.length;if(0!=t||!i.noWrap())return s.select(u[t],"next");i.pause()},s.prev=i.prev=function(){var t=s.getCurrentIndex()-1<0?u.length-1:s.getCurrentIndex()-1;if(!i.noWrap()||t!=u.length-1)return s.select(u[t],"prev");i.pause()},s.removeSlide=function(t){var t=g(t),e=p.indexOf(u[t]);-1!==e&&p.splice(e,1),u.splice(t,1),0<u.length&&c===t?t>=u.length?(c=u.length-1,f(i.active=c),s.select(u[u.length-1])):(c=t,f(i.active=c),s.select(u[t])):t<c&&(c--,i.active=c),0===u.length&&(c=null,i.active=null,h())},s.select=i.select=function(t,e){var n=g(t.slide);void 0===e&&(e=n>s.getCurrentIndex()?"next":"prev"),t.slide.index===c||i.$currentTransition?t&&t.slide.index!==c&&i.$currentTransition&&p.push(u[n]):function r(t,e,n){if(d)return;angular.extend(t,{direction:n});angular.extend(u[c].slide||{},{direction:n});a.enabled(o)&&!i.$currentTransition&&u[e].element&&1<s.slides.length&&(u[e].element.data(l,t.direction),n=s.getCurrentIndex(),angular.isNumber(n)&&u[n].element&&u[n].element.data(l,t.direction),i.$currentTransition=!0,a.on("addClass",u[e].element,function(t,e){var n;"close"===e&&(i.$currentTransition=null,a.off("addClass",t),p.length)&&(e=p.pop().slide,t=e.index,n=t>s.getCurrentIndex()?"next":"prev",h(),r(e,t,n))}));i.active=t.index;c=t.index;f(e);v()}(t.slide,n,e)},i.indexOfSlide=function(t){return+t.slide.index},i.isActive=function(t){return i.active===t.slide.index},i.isPrevDisabled=function(){return 0===i.active&&i.noWrap()},i.isNextDisabled=function(){return i.active===u.length-1&&i.noWrap()},i.pause=function(){i.noPause||(r=!1,m())},i.play=function(){r||(r=!0,v())},o.on("mouseenter",i.pause),o.on("mouseleave",i.play),i.$on("$destroy",function(){d=!0,m()}),i.$watch("noTransition",function(t){a.enabled(o,!t)}
1),i.$watch("interval",v),i.$watchCollection("slides",function(t){t.length||(i.$currentTransition=null,h())}),i.$watch("active",function(t){if(angular.isNumber(t)&&c!==t){for(var e=0;e<u.length;e++)if(u[e].slide.index===t){t=e;break}u[t]&&(f(t),s.select(u[t]),c=t)}})}]).directive("uibCarousel",function(){return{transclude:!0,controller:"UibCarouselController",controllerAs:"carousel",restrict:"A",templateUrl:function(t,e){return e.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}}).directive("uibSlide",["$animate",function(i){return{require:"^uibCarousel",restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(t,e,n,r){e.addClass("item"),r.addSlide(t,e),t.$on("$destroy",function(){r.removeSlide(t)}),t.$watch("active",function(t){i[t?"addClass":"removeClass"](e,"active")})}}}]).animation(".item",["$animateCss",function(o){var a="uib-slideDirection";function s(t,e,n){t.removeClass(e),n&&n()}return{beforeAddClass:function(t,e,n){var r,i;if("active"===e)return e=t.data(a),i=s.bind(this,t,(r="next"===e?"left":"right")+" "+e,n),t.addClass(e),o(t,{addClass:r}).start().done(i),function(){};n()},beforeRemoveClass:function(t,e,n){var r;if("active"===e)return e="next"===t.data(a)?"left":"right",r=s.bind(this,t,e,n),o(t,{addClass:e}).start().done(r),function(){};n()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(d,h,n,f){var g,m,v=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function e(t){for(var e,n,r=[],i=0;i<t.length;)if(angular.isNumber(n)){if("'"===t.charAt(i))(i+1>=t.length||"'"!==t.charAt(i+1))&&(r.push(function(t,e,n){return function(){return t.substr(e+1,n-e-1)}}(t,n,i)),n=null);else if(i===t.length)for(;n<t.length;)e=o(t,n),r.push(e),n=e.endIdx;i++}else"'"===t.charAt(i)?(n=i,i++):(e=o(t,i),r.push(e.parser),i=e.endIdx);return r}function o(t,e){for(var n,r=t.substr(e),i=0;i<m.length;i++)if(new RegExp("^"+m[i].key).test(r))return{endIdx:e+(n=m[i]).key.length,parser:n.formatter};return{endIdx:e+1,parser:function(){return r.charAt(0)}}}function r(t){return parseInt(t,10)}function i(t,e){t=t.replace(/:/g,"");t=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(t)?e:t}function a(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function s(t,e,n){n=n?-1:1;var r=t.getTimezoneOffset();return a(t,n*(i(e,r)-r))}this.init=function(){g=h.id,this.parsers={},this.formatters={},m=[{key:"yyyy",regex:"\\d{4}",apply:function(t){this.year=+t},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(t){this.year=(t=+t)<69?t+2e3:t+1900},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(t){this.year=+t},formatter:function(t){var e=new Date;return e.setFullYear(Math.abs(t.getFullYear())),n(e,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){var e=t.getMonth();return/^[0-9]$/.test(e)?n(t,"MM"):n(t,"M")}},{key:"MMMM",regex:h.DATETIME_FORMATS.MONTH.join("|"),apply:function(t){this.month=h.DATETIME_FORMATS.MONTH.indexOf(t)},formatter:function(t){return n(t,"MMMM")}},{key:"MMM",regex:h.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(t){this.month=h.DATETIME_FORMATS.SHORTMONTH.indexOf(t)},formatter:function(t){return n(t,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){return n(t,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1},formatter:function(t){return n(t,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){var e=t.getDate();return/^[1-9]$/.test(e)?n(t,"dd"):n(t,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){return n(t,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t},formatter:function(t){return n(t,"d")}},{key:"EEEE",regex:h.DATETIME_FORMATS.DAY.join("|"),formatter:function(t){return n(t,"EEEE")}},{key:"EEE",regex:h.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(t){return n(t,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(t){this.hours=+t},formatter:function(t){return n(t,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(t){this.minutes=+t},formatter:function(t){return n(t,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(t){this.minutes=+t},formatter:function(t){return n(t,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(t){this.milliseconds=+t},formatter:function(t){return n(t,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(t){this.seconds=+t},formatter:function(t){return n(t,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(t){this.seconds=+t},formatter:function(t){return n(t,"s")}},{key:"a",regex:h.DATETIME_FORMATS.AMPMS.join("|"),apply:function(t){12===this.hours&&(this.hours=0),"PM"===t&&(this.hours+=12)},formatter:function(t){return n(t,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(t){var t=t.match(/([+-])(\d{2})(\d{2})/),e=t[1],n=t[2],t=t[3];this.hours+=r(e+n),this.minutes+=r(e+t)},formatter:function(t){return n(t,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(t){return n(t,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(t){return n(t,"w")}},{key:"GGGG",regex:h.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(t){return n(t,"GGGG")}},{key:"GGG",regex:h.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"GGG")}},{key:"GG",regex:h.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"GG")}},{key:"G",regex:h.DATETIME_FORMATS.ERAS.join("|"),formatter:function(t){return n(t,"G")}}]},this.init(),this.filter=function(n,t){return angular.isDate(n)&&!isNaN(n)&&t?(t=h.DATETIME_FORMATS[t]||t,h.id!==g&&this.init(),this.formatters[t]||(this.formatters[t]=e(t)),this.formatters[t].reduce(function(t,e){return t+e(n)},"")):""},this.parse=function(t,e,n){if(!angular.isString(t)||!e)return t;e=(e=h.DATETIME_FORMATS[e]||e).replace(v,"\\$&"),h.id!==g&&this.init(),this.parsers[e]||(this.parsers[e]=function(i){var o=[],a=i.split(""),t=i.indexOf("'");if(-1<t){var e=!1;i=i.split("");for(var n=t;n<i.length;n++)e?("'"===i[n]&&(n+1<i.length&&"'"===i[n+1]?(i[n+1]="$",a[n+1]=""):(a[n]="",e=!1)),i[n]="$"):"'"===i[n]&&(i[n]="$",e=!(a[n]=""));i=i.join("")}return angular.forEach(m,function(t){var e=i.indexOf(t.key);if(-1<e){i=i.split(""),a[e]="("+t.regex+")",i[e]="$";for(var n=e+1,r=e+t.key.length;n<r;n++)a[n]="",i[n]="$";i=i.join(""),o.push({index:e,key:t.key,apply:t.apply,matcher:t.regex})}}),{regex:new RegExp("^"+a.join("")+"$"),map:f(o,"index")}}(e));var e=this.parsers[e],r=e.regex,i=e.map,o=t.match(r),a=!1;if(o&&o.length){for(var s,u=angular.isDate(n)&&!isNaN(n.getTime())?{year:n.getFullYear(),month:n.getMonth(),date:n.getDate(),hours:n.getHours(),minutes:n.getMinutes(),seconds:n.get
1Seconds(),milliseconds:n.getMilliseconds()}:(n&&d.warn("dateparser:","baseDate is not a valid date"),{year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0}),l=1,c=o.length;l<c;l++){var p=i[l-1];"Z"===p.matcher&&(a=!0),p.apply&&p.apply.call(u,o[l])}e=a?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,t=a?Date.prototype.setUTCHours:Date.prototype.setHours;return function(t,e,n){if(n<1)return;if(1===e&&28<n)return 29===n&&(t%4==0&&t%100!=0||t%400==0);return 3!==e&&5!==e&&8!==e&&10!==e||n<31}(u.year,u.month,u.date)&&(!angular.isDate(n)||isNaN(n.getTime())||a?(s=new Date(0),e.call(s,u.year,u.month,u.date),t.call(s,u.hours||0,u.minutes||0,u.seconds||0,u.milliseconds||0)):(s=new Date(n),e.call(s,u.year,u.month,u.date),t.call(s,u.hours,u.minutes,u.seconds,u.milliseconds))),s}},this.toTimezone=function(t,e){return t&&e?s(t,e):t},this.fromTimezone=function(t,e){return t&&e?s(t,e,!0):t},this.timezoneToOffset=i,this.addDateMinutes=a,this.convertTimezoneToLocal=s}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(p){var o=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,d=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(t,e){var r=[],u=[],l={},e=e.uibIsClass.match(o),c=e[2],n=e[1].split(",");return function(s,t,e){r.push(s),u.push({scope:s,element:t}
1),n.forEach(function(t,e){var n,r=s,i=t.match(d),o=r.$eval(i[1]),i=i[2],a=l[t];a||(n=function(e){var n=null;u.some(function(t){if(t.scope.$eval(c)===e)return n=t,!0}),a.lastActivated!==n&&(a.lastActivated&&p.removeClass(a.lastActivated.element,o),n&&p.addClass(n.element,o),a.lastActivated=n)},l[t]=a={lastActivated:null,scope:r,watchFn:n,compareWithExp:i,watcher:r.$watch(i,n)}),a.watchFn(r.$eval(i))}),s.$on("$destroy",i)};function i(t){var e,n=t.targetScope,t=r.indexOf(n);r.splice(t,1),u.splice(t,1),r.length?(e=r[0],angular.forEach(l,function(t){t.scope===n&&(t.watcher=e.$watch(t.compareWithExp,t.watchFn),t.scope=e)})):l={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",monthColumns:3,ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$element","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(i,t,e,n,r,o,a,s,u,l,c,p){var d=this,h={$setViewValue:angular.noop},f={},g=[];t.addClass("uib-datepicker"),e.$set("role","application"),i.datepickerOptions||(i.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","monthColumns","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach(function(e){switch(e){case"customClass":case"dateDisabled":i[e]=i.datepickerOptions[e]||angular.noop;break;case"datepickerMode":i.datepickerMode=(angular.isDefined(i.datepickerOptions.datepickerMode)?i.datepickerOptions:u).datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":d[e]=angular.isDefined(i.datepickerOptions[e])?r(i.datepickerOptions[e])(i.$parent):u[e];break;case"monthColumns":case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":d[e]=(angular.isDefined(i.datepickerOptions[e])?i.datepickerOptions:u)[e];break;case"startingDay":angular.isDefined(i.datepickerOptions.startingDay)?d.startingDay=i.datepickerOptions.startingDay:angular.isNumber(u.startingDay)?d.startingDay=u.startingDay:d.startingDay=(o.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":i.$watch("datepickerOptions."+e,function(t){t?angular.isDate(t)?d[e]=p.fromTimezone(new Date(t),f.timezone):(l&&a.warn("Literal date support has been deprecated, please switch to date object usage"),d[e]=new Date(s(t,"medium"))):d[e]=u[e]?p.fromTimezone(new Date(u[e]),f.timezone):null,d.refreshView()});break;case"maxMode":case"minMode":i.datepickerOptions[e]?i.$watch(function(){return i.datepickerOptions[e]},function(t){d[e]=i[e]=angular.isDefined(t)?t:i.datepickerOptions[e],("minMode"===e&&d.modes.indexOf(i.datepickerOptions.datepickerMode)<d.modes.indexOf(d[e])||"maxMode"===e&&d.modes.indexOf(i.datepickerOptions.datepickerMode)>d.modes.indexOf(d[e]))&&(i.datepickerMode=d[e],i.datepickerOptions.datepickerMode=d[e])}):d[e]=i[e]=u[e]||null}}),i.uniqueId="datepicker-"+i.$id+"-"+Math.floor(1e4*Math.random()),i.disabled=angular.isDefined(e.disabled)||!1,angular.isDefined(e.ngDisabled)&&g.push(i.$parent.$watch(e.ngDisabled,function(t){i.disabled=t,d.refreshView()})),i.isActive=function(t){return 0===d.compare(t.date,d.activeDate)&&(i.activeDateId=t.uid,!0)},this.init=function(t){f=(h=t).$options||i.datepickerOptions.ngModelOptions||u.ngModelOptions,i.datepickerOptions.initDate?(d.activeDate=p.fromTimezone(i.datepickerOptions.initDate,f.timezone)||new Date,i.$watch("datepickerOptions.initDate",function(t){t&&(h.$isEmpty(h.$modelValue)||h.$invalid)&&
1(d.activeDate=p.fromTimezone(t,f.timezone),d.refreshView())})):d.activeDate=new Date;t=h.$modelValue?new Date(h.$modelValue):new Date;this.activeDate=isNaN(t)?p.fromTimezone(new Date,f.timezone):p.fromTimezone(t,f.timezone),h.$render=function(){d.render()}},this.render=function(){var t;h.$viewValue&&(t=new Date(h.$viewValue),!isNaN(t)?this.activeDate=p.fromTimezone(t,f.timezone):c||a.error('Datepicker directive: "ng-model" value must be a Date object')),this.refreshView()},this.refreshView=function(){var t;this.element&&(i.selectedDt=null,this._refreshView(),i.activeDt&&(i.activeDateId=i.activeDt.uid),t=h.$viewValue?new Date(h.$viewValue):null,t=p.fromTimezone(t,f.timezone),h.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t)))},this.createDateObject=function(t,e){var n=h.$viewValue?new Date(h.$viewValue):null,n=p.fromTimezone(n,f.timezone),r=new Date,r=p.fromTimezone(r,f.timezone),r=this.compare(t,r),e={date:t,label:p.filter(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),past:r<0,current:0===r,future:0<r,customClass:this.customClass(t)||null};return n&&0===this.compare(t,n)&&(i.selectedDt=e),d.activeDate&&0===this.compare(e.date,d.activeDate)&&(i.activeDt=e),e},this.isDisabled=function(t){return i.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&0<this.compare(t,this.maxDate)||i.dateDisabled&&i.dateDisabled({date:t,mode:i.datepickerMode})},this.customClass=function(t){return i.customClass({date:t,mode:i.datepickerMode})},this.split=function(t,e){for(var n=[];0<t.length;)n.push(t.splice(0,e));return n},i.select=function(t){var e;i.datepickerMode===d.minMode?((e=h.$viewValue?p.fromTimezone(new Date(h.$viewValue),f.timezone):new Date(0,0,0,0,0,0,0)).setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e=p.toTimezone(e,f.timezone),h.$setViewValue(e),h.$render()):(d.activeDate=t,m(d.modes[d.modes.indexOf(i.datepickerMode)-1]),i.$emit("uib:datepicker.mode")),i.$broadcast("uib:datepicker.focus")},i.move=function(t){var e=d.activeDate.getFullYear()+t*(d.step.years||0),t=d.activeDate.getMonth()+t*(d.step.months||0);d.activeDate.setFullYear(e,t,1),d.refreshView()},i.toggleMode=function(t){t=t||1,i.datepickerMode===d.maxMode&&1===t||i.datepickerMode===d.minMode&&-1===t||(m(d.modes[d.modes.indexOf(i.datepickerMode)+t]),i.$emit("uib:datepicker.mode"))},i.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function m(t){i.datepickerMode=t,i.datepickerOptions.datepickerMode=t}i.$on("uib:datepicker.focus",function(){d.element[0].focus()}),i.keydown=function(t){var e=i.keys[t.which];!e||t.shiftKey||t.altKey||i.disabled||(t.preventDefault(),d.shortcutPropagation||t.stopPropagation(),"enter"===e||"space"===e?d.isDisabled(d.activeDate)||i.select(d.activeDate):!t.ctrlKey||"up"!==e&&"down"!==e?(d.handleKeyDown(e,t),d.refreshView()):i.toggleMode("up"===e?1:-1))},t.on("keydown",function(t){i.$apply(function(){i.keydown(t)})}),i.$on("$destroy",function(){for(;g.length;)g.shift()()})}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(p,t,d){var n=[31,28,31,30,31,30,31,31,30,31,30,31];function i(t,e){return 1!==e||t%4!=0||t%100==0&&t%400!=0?n[e]:29}this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),p.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(t,e){for(var n,r=new Array(e),i=new Date(t),o=0;o<e;)n=new Date(i),r[o++]=n,i.setDate(i.getDate()+1);return r},this._refreshView=function(){for(var t=this.activeDate.getFullYear(),e=this.activeDate.getMonth(),n=new Date(this.activeDate),t=(n.setFullYear(t,e,1),this.startingDay-n.getDay()),t=0<t?7-t:-t,n=new Date(n),r=(0<t&&n.setDate(1-t),this.getDates(n,42)),i=0;i<42;i++)r[i]=angular.extend(this.createDateObject(r[i],this.formatDay),{secondary:r[i].getMonth()!==e,uid:p.uniqueId+"-"+i});p.labels=new Array(7);for(var o,a,s=0;s<7;s++)p.labels[s]={abbr:d(r[s].date,this.formatDayHeader),full:d(r[s].date,"EEEE")};if(p.title=d(this.activeDate,this.formatDayTitle),p.rows=this.split(r,7),p.showWeeks){p.weekNumbers=[];for(var u=(11-this.startingDay)%7,l=p.rows.length,c=0;c<l;c++)p.weekNumbers.push((o=p.rows[c][u].date,a=void 0,(o=new Date(o)).setDate(o.getDate()+4-(o.getDay()||7)),a=o.getTime(),o.setMonth(0),o.setDate(1),Math.floor(Math.round((a-o)/864e5)/7)+1))}},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(e.getFullYear(),e.getMonth(),e.getDate());return n.setFullYear(t.getFullYear()),r.setFullYear(e.getFullYear()),n-r},this.handleKeyDown=function(t,e){var n,r=this.activeDate.getDate();"left"===t?r-=1:"up"===t?r-=7:"right"===t?r+=1:"down"===t?r+=7:"pageup"===t||"pagedown"===t?(n=this.activeDate.getMonth()+("pageup"===t?-1:1),this.activeDate.setMonth(n,1),r=Math.min(i(this.activeDate.getFullYear(),this.activeDate.getMonth()),r)):"home"===t?r=1:"end"===t&&(r=i(this.activeDate.getFullYear(),this.activeDate.getMonth())),this.activeDate.setDate(r)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(i,t,o){this.step={years:1},this.element=t,this.init=function(t){angular.extend(t,this),t.refreshView()},this._refreshView=function(){for(var t,e=new Array(12),n=this.activeDate.getFullYear(),r=0;r<12;r++)(t=new Date(this.activeDate)).setFullYear(n,r,1),e[r]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:i.uniqueId+"-"+r});i.title=o(this.activeDate,this.formatMonthTitle),i.rows=this.split(e,this.monthColumns),i.yearHeaderColspan=3<this.monthColumns?this.monthColumns-2:1},this.compare=function(t,e){var n=new Date(t.getFullYear(),t.getMonth()),r=new Date(e.getFullYear(),e.getMonth());return n.setFullYear(t.getFullYear()),r.setFullYear(e.getFullYear()),n-r},this.handleKeyDown=function(t,e){var n,r=this.activeDate.getMonth();"left"===t?r-=1:"up"===t?r-=this.monthColumns:"right"===t?r+=1:"down"===t?r+=this.monthColumns:"pageup"===t||"pagedown"===t?(n=this.activeDate.getFullYear()+("pageup"===t?-1:1),this.activeDate.setFullYear(n)):"home"===t?r=0:"end"===t&&(r=11),this.activeDate.setMonth(r)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(i,t,e){var o,a;function s(t){return parseInt((t-1)/a,10)*a+1}this.element=t,this.yearpickerInit=function(){o=this.yearColumns,a=this.yearRows*o,this.step={years:a}},this._refreshView=function(){for(var t,e=new Array(a),n=0,r=s(this.activeDate.getFullYear());n<a;n++)(t=new Date(this.activeDate)).setFullYear(r+n,0,1),e[n]=angular.extend(this.createDateObject(t,this.formatYear),{uid:i.uniqueId+"-"+n});i.title=[e[0].label,e[a-1].label].join(" - "),i.rows=this.split(e,o),i.columns=o},this.compare=function(t,e){return t.getFullYear()-e.getFullYear()},this.handleKeyDown=function(t,e){var n=this.activeDate.getFullYear();"left"===t?n-=1:"up"===t?n-=o:"right"===t?n+=1:"down"===t?n+=o:"pageup"===t||"pagedown"===t?n+=("pageup"===t?-1:1)*a:"home"===t?n=s(this.activeDate.getFullYear()):"end"===t&&(n=s(this.activeDate.getFullYear())+a-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],restrict:"A",controller:"UibDatepickerController",controllerAs:"datepicker",link:function(t,e,n,r){var i=r[0],r=r[1];i.init(r)}}}).directive("uibDaypicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],restrict:"A",controller:"UibDaypickerController",link:function(t,e,n,r){var i=r[0];r[1].init(i)}}}).directive("uibMonthpicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],restrict:"A",controller:"UibMonthpickerController",link:function(t,e,n,r){var i=r[0];r[1].init(i)}}}).directive("uibYearpicker",function(){return{templateUrl:function(t,e){return e.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],restrict:"A",controller:"UibYearpickerController",link:function(t,e,n,r){var i=r[0];angular.extend(i,r[1]),i.yearpickerInit(),i.refreshView()}}}),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(u,l){var e,n,c={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},p={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},i=/(HTML|BODY)/;return{getRawNode:function(t){return!t.nodeName&&t[0]||t},parseStyle:function(t){return t=parseFloat(t),isFinite(t)?t:0},offsetParent:function(t){var e,n=(t=this.getRawNode(t)).offsetParent||u[0].documentElement;for(;n&&n!==u[0].documentElement&&(e=n,"static"===(l.getComputedStyle(e).position||"static"));)n=n.offsetParent;return n||u[0].documentElement},scrollbarWidth:function(t){return t?(angular.isUndefined(n)&&((t=u.find("body")).addClass("uib-position-body-scrollbar-measure"),n=l.innerWidth-t[0].clientWidth,n=isFinite(n)?n:0,t.removeClass("uib-position-body-scrollbar-measure")),n):(angular.isUndefined(e)&&(t=angular.element('<div class="uib-position-scrollbar-measure"></div>'),u.find("body").append(t),e=t[0].offsetWidth-t[0].clientWidth,e=isFinite(e)?e:0,t.remove()),e)},scrollbarPadding:function(t){t=this.getRawNode(t);var e=l.getComputedStyle(t),n=this.parseStyle(e.paddingRight),e=this.parseStyle(e.paddingBottom),t=this.scrollParent(t,!1,!0),r=this.scrollbarWidth(t,i.test(t.tagName));return{scrollbarWidth:r,widthOverflow:t.scrollWidth>t.clientWidth,right:n+r,originalRight:n,heightOverflow:t.scrollHeight>t.clientHeight,bottom:e+r,originalBottom:e}},isScrollable:function(t,e){t=this.getRawNode(t);e=e?c.hidden:c.normal,t=l.getComputedStyle(t);return e.test(t.overflow+t.overflowY+t.overflowX)},scrollParent:function(t,e,n){t=this.getRawNode(t);var r=e?c.hidden:c.normal,i=u[0].documentElement,e=l.getComputedStyle(t);if(n&&r.test(e.overflow+e.overflowY+e.overflowX))return t;var o="absolute"===e.position,a=t.parentElement||i;if(a===i||"fixed"===e.position)return i;for(;a.parentElement&&a!==i;){var s=l.getComputedStyle(a);if(!(o=o&&"static"!==s.position?!1:o)&&r.test(s.overflow+s.overflowY+s.overflowX))break;a=a.parentElement}return a},position:function(t,e){t=this.getRawNode(t);var n=this.offset(t),e=(e&&(e=l.getComputedStyle(t),n.top-=this.parseStyle(e.marginTop),n.left-=this.parseStyle(e.marginLeft)),this.offsetParent(t)),r={top:0,left:0};return e!==u[0].documentElement&&((r=this.offset(e)).top+=e.clientTop-e.scrollTop,r.left+=e.clientLeft-e.scrollLeft),{width:Math.round(angular.isNumber(n.width)?n.width:t.offsetWidth),height:Math.round(angular.isNumber(n.height)?n.height:t.offsetHeight),top:Math.round(n.top-r.top),left
1:Math.round(n.left-r.left)}},offset:function(t){var e=(t=this.getRawNode(t)).getBoundingClientRect();return{width:Math.round(angular.isNumber(e.width)?e.width:t.offsetWidth),height:Math.round(angular.isNumber(e.height)?e.height:t.offsetHeight),top:Math.round(e.top+(l.pageYOffset||u[0].documentElement.scrollTop)),left:Math.round(e.left+(l.pageXOffset||u[0].documentElement.scrollLeft))}},viewportOffset:function(t,e,n){n=!1!==n;var r=(t=this.getRawNode(t)).getBoundingClientRect(),i={top:0,left:0,bottom:0,right:0},e=e?u[0].documentElement:this.scrollParent(t),t=e.getBoundingClientRect();return i.top=t.top+e.clientTop,i.left=t.left+e.clientLeft,e===u[0].documentElement&&(i.top+=l.pageYOffset,i.left+=l.pageXOffset),i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,n&&(t=l.getComputedStyle(e),i.top+=this.parseStyle(t.paddingTop),i.bottom-=this.parseStyle(t.paddingBottom),i.left+=this.parseStyle(t.paddingLeft),i.right-=this.parseStyle(t.paddingRight)),{top:Math.round(r.top-i.top),bottom:Math.round(i.bottom-r.bottom),left:Math.round(r.left-i.left),right:Math.round(i.right-r.right)}},parsePlacement:function(t){var e=p.auto.test(t);return(t=(t=e?t.replace(p.auto,""):t).split("-"))[0]=t[0]||"top",p.primary.test(t[0])||(t[0]="top"),t[1]=t[1]||"center",p.secondary.test(t[1])||(t[1]="center"),t[2]=!!e,t},positionElements:function(t,e,n,r){t=this.getRawNode(t),e=this.getRawNode(e);var i,o=angular.isDefined(e.offsetWidth)?e.offsetWidth:e.prop("offsetWidth"),a=angular.isDefined(e.offsetHeight)?e.offsetHeight:e.prop("offsetHeight"),s=(n=this.parsePlacement(n),r?this.offset(t):this.position(t)),u={top:0,left:0,placement:""};switch(n[2]&&(t=this.viewportOffset(t,r),r=l.getComputedStyle(e),e=o+Math.round(Math.abs(this.parseStyle(r.marginLeft)+this.parseStyle(r.marginRight))),r=a+Math.round(Math.abs(this.parseStyle(r.marginTop)+this.parseStyle(r.marginBottom))),n[0]="top"===n[0]&&r>t.top&&r<=t.bottom?"bottom":"bottom"===n[0]&&r>t.bottom&&r<=t.top?"top":"left"===n[0]&&e>t.left&&e<=t.right?"right":"right"===n[0]&&e>
1t.right&&e<=t.left?"left":n[0],n[1]="top"===n[1]&&r-s.height>t.bottom&&r-s.height<=t.top?"bottom":"bottom"===n[1]&&r-s.height>t.top&&r-s.height<=t.bottom?"top":"left"===n[1]&&e-s.width>t.right&&e-s.width<=t.left?"right":"right"===n[1]&&e-s.width>t.left&&e-s.width<=t.right?"left":n[1],"center"===n[1])&&(p.vertical.test(n[0])?(i=s.width/2-o/2,t.left+i<0&&e-s.width<=t.right?n[1]="left":t.right+i<0&&e-s.width<=t.left&&(n[1]="right")):(i=s.height/2-r/2,t.top+i<0&&r-s.height<=t.bottom?n[1]="top":t.bottom+i<0&&r-s.height<=t.top&&(n[1]="bottom"))),n[0]){case"top":u.top=s.top-a;break;case"bottom":u.top=s.top+s.height;break;case"left":u.left=s.left-o;break;case"right":u.left=s.left+s.width}switch(n[1]){case"top":u.top=s.top;break;case"bottom":u.top=s.top+s.height-a;break;case"left":u.left=s.left;break;case"right":u.left=s.left+s.width-o;break;case"center":p.vertical.test(n[0])?u.left=s.left+s.width/2-o/2:u.top=s.top+s.height/2-a/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===n[1]?n[0]:n[0]+"-"+n[1],u},adjustTop:function(t,e,n,r){if(-1!==t.indexOf("top")&&n!==r)return{top:e.top-r+"px"}},positionArrow:function(t,e){var n=(t=this.getRawNode(t)).querySelector(".tooltip-inner, .popover-inner");if(n){var r=angular.element(n).hasClass("tooltip-inner"),i=r?t.querySelector(".tooltip-arrow"):t.querySelector(".arrow");if(i){var o={top:"",bottom:"",left:"",right:""};if("center"!==(e=this.parsePlacement(e))[1]){var a="border-"+e[0]+"-width",s=l.getComputedStyle(i)[a],a="border-",n=(p.vertical.test(e[0])?a+=e[0]+"-"+e[1]:a+=e[1]+"-"+e[0],a+="-radius",l.getComputedStyle(r?n:t)[a]);switch(e[0]){case"top":o.bottom=r?"0":"-"+s;break;case"bottom":o.top=r?"0":"-"+s;break;case"left":o.right=r?"0":"-"+s;break;case"right":o.left=r?"0":"-"+s}o[e[1]]=n}angular.element(i).css(o)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(r,i,n,e,o,t,a,s,u,l,c,p,d,h,M,f){var g,m,v,y,b,w,$,E,x,S,T,_,C=!1,k=[];function A(t){var e=p.parse(t,g,r.date);if(isNaN(e))for(var n=0;n<_.length;n++)if(e=p.parse(t,_[n],r.date),!isNaN(e))return e;return e}function D(t){if(!(t=angular.isNumber(t)?new Date(t):t))return null;if(angular.isDate(t)&&!isNaN(t))return t;if(angular.isString(t)){var e=A(t);if(!isNaN(e))return p.fromTimezone(e,S.timezone)}return x.$options&&x.$options.allowInvalid?t:void 0}function O(t,e){t=t||e;return!n.ngRequired&&!t||!(t=angular.isNumber(t)?new Date(t):t)||!(!angular.isDate(t)||isNaN(t))||!!angular.isString(t)&&!isNaN(A(t))}function R(t){var e,n;!r.isOpen&&r.disabled||(n=T[0],e=i[0].contains(t.target),n=void 0!==n.contains&&n.contains(t.target),!r.isOpen)||e||n||r.$apply(function(){r.isOpen=!1})}function L(t){27===t.which&&r.isOpen?(t.preventDefault(),t.stopPropagation(),r.$apply(function(){r.isOpen=!1}),i[0].focus()):40!==t.which||r.isOpen||(t.preventDefault(),t.stopPropagation(),r.$apply(function(){r.isOpen=!0}))}function I(){var t,e;r.isOpen&&(t=angular.element(T[0].querySelector(".uib-datepicker-popup")),e=n.popupPlacement||d.placement,e=l.positionElements(i,t,e,v),t.css({top:e.top+"px",left:e.left+"px"}),t.hasClass("uib-position-measure"))&&t.removeClass("uib-position-measure")}this.init=function(t){if(x=t,S=angular.isObject(t.$options)?t.$options:{timezone:null},m=angular.isDefined(n.closeOnDateSelection)?r.$parent.$eval(n.closeOnDateSelection):d.closeOnDateSelection,v=angular.isDefined(n.datepickerAppendToBody)?r.$parent.$eval(n.datepickerAppendToBody):d.appendToBody,y=angular.isDefined(n.onOpenFocus)?r.$parent.$eval(n.onOpenFocus):d.onOpenFocus,$=(angular.isDefined(n.datepickerPopupTemplateUrl)?n:d).datepickerPopupTemplateUrl,b=(angular.isDefined(n.datepickerTemplateUrl)?n:d).datepickerTemplateUrl,_=angular.isDefined(n.altInputFormats)?r.$parent.$eval(n.altInputFormats):d.altInputFormats,r.showButtonBar=angular.isDefined(n.showButtonBar)?r.$parent.$eval(n.showButtonBar):d.showButtonBar,d.html5Types[n.type]?(g=d.html5Types[n.type],C=!0):(g=n.uibDatepickerPopup||d.datepickerPopup,n.$observe("uibDatepickerPopup",function(t,e){t=t||d.datepickerPopup;if(t!==g&&(g=t,x.$modelValue=null,!g))throw new Error("uibDatepickerPopup must have a date format specified.")})),!g)throw new Error("uibDatepickerPopup must have a date format specified.");if(C&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");(w=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>")).attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":$}),($=angular.element(w.children()[0])).attr("template-url",b),r.datepickerOptions||(r.datepickerOptions={}),C&&"month"===n.type&&(r.datepickerOptions.datepickerMode="month",r.datepickerOptions.minMode="month"),$.attr("datepicker-options","datepickerOptions"),C?x.$formatters.push(function(t){return r.date=p.fromTimezone(t,S.timezone),t}):(x.$$parserName="date",x.$validators.date=O,x.$parsers.unshift(D),x.$formatters.push(function(t){return x.$isEmpty(t)?r.date=t:(angular.isNumber(t)&&(t=new Date(t)),r.date=p.fromTimezone(t,S.timezone),p.filter(r.date,g))})),x.$viewChangeListeners.push(function(){r.date=A(x.$viewValue)}),i.on("keydown",L),T=e(w)(r),w.remove(),v?s.find("body").append(T):i.after(T),r.$on("$destroy",function(){for(!0!==r.isOpen||u.$$phase||r.$apply(function(){r.isOpen=!1}),T.remove(),i.off("keydown",L),s.off("click",R),E&&E.off("scroll",I),angular.element(a).off("resize",I);k.length;)k.shift()()})},r.getText=function(t){return r[t+"Text"]||d[t+"Text"]},r.isDisabled=function(t){"today"===t&&(t=p.fromTimezone(new Date,S.timezone));var e={};return angular.forEach(["minDate","maxDate"],function(t){r.datepickerOptions[t]?angular.isDate(r.datepickerOptions[t])?e[t]=new Date(r.datepickerOptions[t]):(f&&o.warn("Literal date support has been deprecated, please switch to date object usage"),e[t]=new Date(c(r.datepickerOptions[t],"medium"))):e[t]=null}),r.datepickerOptions&&e.minDate&&r.compare(t,e.minDate)<0||e.maxDate&&0<r.compare(t,e.maxDate)},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},r.dateSelection=function(t){r.date=t;t=r.date?p.filter(r.date,g):null;i.val(t),x.$setViewValue(t),m&&(r.isOpen=!1,i[0].focus())},r.keydown=function(t){27===t.which&&(t.stopPropagation(),r.isOpen=!1,i[0].focus())},r.select=function(t,e){e.stopPropagation(),"today"===t&&(e=new Date,angular.isDate(r.date)?(t=new Date(r.date)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate()):(t=p.fromTimezone(e,S.timezone)).setHours(0,0,0,0)),r.dateSelection(t)},r.close=function(t){t.stopPropagation(),r.isOpen=!1,i[0].focus()},r.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&k.push(r.$parent.$watch(t(n.ngDisabled),function(t){r.disabled=t}
1)),r.$watch("isOpen",function(t){t?r.disabled?r.isOpen=!1:h(function(){I(),y&&r.$broadcast("uib:datepicker.focus"),s.on("click",R);var t=n.popupPlacement||d.placement;v||l.parsePlacement(t)[2]?(E=E||angular.element(l.scrollParent(i)))&&E.on("scroll",I):E=null,angular.element(a).on("resize",I)},0,!1):(s.off("click",R),E&&E.off("scroll",I),angular.element(a).off("resize",I))}),r.$on("uib:datepicker.mode",function(){h(I,0,!1)})}]).directive("uibDatepickerPopup",function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(t,e,n,r){var i=r[0];r[1].init(i)}}}).directive("uibDatepickerPopupWrap",function(){return{restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/datepickerPopup/popup.html"}}}),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(o){return function(n,r){var i;return function(){var t=this,e=Array.prototype.slice.call(arguments);i&&o.cancel(i),i=o(function(){n.apply(t,e)},r)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(n,r){var i=null,o=(this.open=function(t,e){i||n.on("click",o),i&&i!==t&&(i.isOpen=!1),i=t},this.close=function(t,e){i===t&&(i=null,n.off("click",o),n.off("keydown",this.keybindFilter))},function(t){var e;!i||t&&"disabled"===i.getAutoClose()||t&&3===t.which||(e=i.getToggleElement(),t&&e&&e[0].contains(t.target))||(e=i.getDropdownElement(),t&&"outsideClick"===i.getAutoClose()&&e&&e[0].contains(t.target))||(i.isOpen=!1,i.focusToggleElement(),r.$$phase)||i.$apply()});this.keybindFilter=function(t){var e=i.getDropdownElement(),n=i.getToggleElement(),e=e&&e[0].contains(t.target),n=n&&n[0].contains(t.target);27===t.which?(t.stopPropagation(),i.focusToggleElement(),o()):i.isKeynavEnabled()&&-1!==[38,40].indexOf(t.which)&&i.isOpen&&(e||n)&&(t.preventDefault(),t.stopPropagation(),i.focusDropdownEntry(t.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(s,u,e,n,t,l,c,p,d,h,f){var g,r,m=this,v=s.$new(),y=t.appendToOpenClass,b=t.openClass,w=angular.noop,$=e.onToggle?n(e.onToggle):angular.noop,E=!1,x=null,i=!1,o=d.find("body");u.addClass("dropdown"),this.init=function(){var t;e.isOpen&&(r=n(e.isOpen),w=r.assign,s.$watch(r,function(t){v.isOpen=!!t})),angular.isDefined(e.dropdownAppendTo)&&(t=n(e.dropdownAppendTo)(v))&&(x=angular.element(t)),E=angular.isDefined(e.dropdownAppendToBody),i=angular.isDefined(e.keyboardNav),(x=E&&!x?o:x)&&m.dropdownMenu&&(x.append(m.dropdownMenu),u.on("$destroy",function(){m.dropdownMenu.remove()}))},this.toggle=function(t){return v.isOpen=arguments.length?!!t:!v.isOpen,angular.isFunction(w)&&w(v,v.isOpen),v.isOpen},this.isOpen=function(){return v.isOpen},v.getToggleElement=function(){return m.toggleElement},v.getAutoClose=function(){return e.autoClose||"always"},v.getElement=function(){return u},v.isKeynavEnabled=function(){return i},v.focusDropdownEntry=function(t){var e=(m.dropdownMenu?angular.element(m.dropdownMenu):u.find("ul").eq(0)).find("a");switch(t){case 40:angular.isNumber(m.selectedOption)?m.selectedOption=m.selectedOption===e.length-1?m.selectedOption:m.selectedOption+1:m.selectedOption=0;break;case 38:angular.isNumber(m.selectedOption)?m.selectedOption=0===m.selectedOption?0:m.selectedOption-1:m.selectedOption=e.length-1}e[m.selectedOption].focus()},v.getDropdownElement=function(){return m.dropdownMenu},v.focusToggleElement=function(){m.toggleElement&&m.toggleElement[0].focus()},v.$watch("isOpen",function(t,e){x&&m.dropdownMenu&&(i={top:(n=p.positionElements(u,m.dropdownMenu,"bottom-left",!(a=0))).top+"px",display:t?"block":"none"},(o=m.dropdownMenu.hasClass("dropdown-menu-right"))?(i.left="auto",(r=p.scrollbarPadding(x)).heightOverflow&&r.scrollbarWidth&&(a=r.scrollbarWidth),i.right=window.innerWidth-a-(n.left+u.prop("offsetWidth"))+"px"):(i.left=n.left+"px",i.right="auto"),E||(r=p.offset(x),i.top=n.top-r.top+"px",o?i.right=window.innerWidth-(n.left-r.left+u.prop("offsetWidth"))+"px":i.left=n.left-r.left+"px"),m.dropdownMenu.css(i));var n,r,i,o,a=x||u;a.hasClass(x?y:b)===!t&&c[t?"addClass":"removeClass"](a,x?y:b).then(function(){angular.isDefined(t)&&t!==e&&$(s,{open:!!t})}),t?(m.dropdownMenuTemplateUrl?f(m.dropdownMenuTemplateUrl).then(function(t){g=v.$new(),h(t.trim())(g,function(t){m.dropdownMenu.replaceWith(t),m.dropdownMenu=t,d.on("keydown",l.keybindFilter)})}):d.on("keydown",l.keybindFilter),v.focusToggleElement(),l.open(v,u)):(l.close(v,u),m.dropdownMenuTemplateUrl&&(g&&g.$destroy(),o=angular.element('<ul class="dropdown-menu"></ul>'),m.dropdownMenu.replaceWith(o),m.dropdownMenu=o),m.selectedOption=null),angular.isFunction(w)&&w(s,t)})}]).directive("uibDropdown",function(){return{controller:"UibDropdownController",link:function(t,e,n,r){r.init()}}}).directive("uibDropdownMenu",function(){return{restrict:"A",require:"?^uibDropdown",link:function(t,e,n,r){!r||angular.isDefined(n.dropdownNested)||(e.addClass("dropdown-menu"),(n=n.templateUrl)&&(r.dropdownMenuTemplateUrl=n),r.dropdownMenu)||(r.dropdownMenu=e)}}}).directive("uibDropdownToggle",function(){return{require:"?^uibDropdown",link:function(e,n,r,i){var t;i&&(n.addClass("dropdown-toggle"),(i.toggleElement=n).bind("click",t=function(t){t.preventDefault(),n.hasClass("disabled")||r.disabled||e.$apply(function(){i.toggle()})}),n.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(i.isOpen,function(t){n.attr("aria-expanded",!!t)}),e.$on("$destroy",function(){n.unbind("click",t)}))}}}),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",function(){return{createNew:function(){var r=[];return{add:function(t,e){r.push({key:t,value:e})},get:function(t){for(var e=0;e<r.length;e++)if(t===r[e].key)return r[e]},keys:function(){for(var t=[],e=0;e<r.length;e++)t.push(r[e].key);return t},top:function(){return r[r.length-1]},remove:function(t){for(var e=-1,n=0;n<r.length;n++)if(t===r[n].key){e=n;break}return r.splice(e,1)[0]},removeTop:function(){return r.pop()},length:function(){return r.length}}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",function(){return{createNew:function(){var r={};return{entries:function(){return Object.keys(r).map(function(t){return{key:t,value:r[t]}})},get:function(t){return r[t]},hasKey:function(t){return!!r[t]},keys:function(){return Object.keys(r)},put:function(t,e){r[t]||(r[t]=[]),r[t].push(e)},remove:function(t,e){var n=r[t];n&&(-1!==(e=n.indexOf(e))&&n.splice(e,1),n.length||delete r[t])}}}}}).provider("$uibResolve",function(){var t=this;this.resolver=null,this.setResolver=function(t){this.resolver=t},this.$get=["$injector","$q",function(o,a){var s=t.resolver?o.get(t.resolver):null;return{resolve:function(t,e,n,r){var i;return s?s.resolve(t,e,n,r):(i=[],angular.forEach(t,function(t){angular.isFunction(t)||angular.isArray(t)?i.push(a.resolve(o.invoke(t))):angular.isString(t)?i.push(a.resolve(o.get(t))):i.push(a.resolve(t))}),a.all(i).then(function(n){var r={},i=0;return angular.forEach(t,function(t,e){r[e]=n[i++]}),r}))}}}]}).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(o,t,e){return{restrict:"A",compile:function(t,e){return t.addClass(e.backdropClass),n}};function n(n,r,i){i.modalInClass&&(o.addClass(r,i.modalInClass),n.$on(e.NOW_CLOSING_EVENT,function(t,e){e=e();n.modalOptions.animation?o.removeClass(r,i.modalInClass).then(e):e()}))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(i,o,a,s){return{scope:{index:"@"},restrict:"A",transclude:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/modal/window.html"},link:function(e,n,r){n.addClass(r.windowTopClass||""),e.size=r.size,e.close=function(t){var e=i.getTop();e&&e.value.backdrop&&"static"!==e.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),i.dismiss(e.key,"backdrop click"))},n.on("click",e.close),e.$isRendered=!0;var t=o.defer();e.$$postDigest(function(){t.resolve()}),t.promise.then(function(){var t=null;r.modalInClass&&(t=a(n,{addClass:r.modalInClass}).start(),e.$on(i.NOW_CLOSING_EVENT,function(t,e){e=e();a(n,{removeClass:r.modalInClass}).start().then(e)})),o.when(t).then(function(){var t=i.getTop();t&&i.modalRendered(t.key),s[0].activeElement&&n[0].contains(s[0].activeElement)||(n[0].querySelector("[autofocus]")||n[0]).focus()})})}}}]).directive("uibModalAnimationClass",function(){return{compile:function(t,e){e.modalAnimation&&t.addClass(e.uibModalAnimationClass)}}}).directive("uibModalTransclude",["$animate",function(o){return{link:function(t,e,n,r,i){i(t.$parent,function(t){e.empty(),o.enter(t,e)})}}}]).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(s,t,a,u,l,c,e,n,p){var d,h,f,g="modal-open",m=n.createNew(),v=e.createNew(),y={NOW_CLOSING_EVENT:"modal.stack.now-closing"},b=0,w=null,$=/[A-Z]/g;function E(){for(var t=-1,e=m.keys(),n=0;n<e.length;n++)m.get(e[n]).value.backdrop&&(t=n);return t=-1<t&&t<b?b:t}function r(n,t){var r=m.get(n).value,i=r.appendTo;m.remove(n),(w=m.top())&&(b=parseInt(w.value.modalDomEl.attr("index"),10)),o(r.modalDomEl,r.modalScope,function(){var t=r.openedClass||g,e=(v.remove(t,n),v.hasKey(t));i.toggleClass(t,e),!e&&f&&f.heightOverflow&&f.scrollbarWidth&&(f.originalRight?i.css({paddingRight:f.originalRight+"px"}):i.css({paddingRight:""}),f=null),x(!0)},r.closedDeferred),d&&-1===E()&&(o(d,h,function(){0}),h=d=void 0),t&&t.focus?t.focus():i.focus&&i.focus()}function x(t){var e;0<m.length()&&(e=m.top().value).modalDomEl.toggleClass(e.windowTopClass||"",t)}function o(t,e,n,r){var i,o=null;function a(){a.done||(a.done=!0,s.leave(t).then(function(){n&&n(),t.remove(),r&&r.resolve()}),e.$destroy())}
1e.$broadcast(y.NOW_CLOSING_EVENT,function(){return i||(i=c.defer(),o=i.promise),function(){i.resolve()}}),c.when(o).then(a)}function i(t){if(t.isDefaultPrevented())return t;var e=m.top();if(e)switch(t.which){case 27:e.value.keyboard&&(t.preventDefault(),l.$apply(function(){y.dismiss(e.key,"escape key press")}));break;case 9:var n=y.loadFocusElementList(e),r=!1;t.shiftKey?(y.isFocusInFirstItem(t,n)||y.isModalFocused(t,e))&&(r=y.focusLastFocusableElement(n)):y.isFocusInLastItem(t,n)&&(r=y.focusFirstFocusableElement(n)),r&&(t.preventDefault(),t.stopPropagation())}}function S(t,e,n){return!t.value.modalScope.$broadcast("modal.closing",e,n).defaultPrevented}return l.$watch(E,function(t){h&&(h.index=t)}),a.on("keydown",i),l.$on("$destroy",function(){a.off("keydown",i)}),y.open=function(t,e){var n,r=a[0].activeElement,i=e.openedClass||g,t=(x(!1),w=m.top(),m.add(t,{deferred:e.deferred,renderDeferred:e.renderDeferred,closedDeferred:e.closedDeferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard,openedClass:e.openedClass,windowTopClass:e.windowTopClass,animation:e.animation,appendTo:e.appendTo}),v.put(i,t),e.appendTo),o=E();if(!t.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");0<=o&&!d&&((h=l.$new(!0)).modalOptions=e,h.index=o,(d=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr({class:"modal-backdrop","ng-style":"{'z-index': 1040 + (index && 1 || 0) + index*10}","uib-modal-animation-class":"fade","modal-in-class":"in"}),e.backdropClass&&d.addClass(e.backdropClass),e.animation&&d.attr("modal-animation","true"),u(d)(h),s.enter(d,t),p.isScrollable(t))&&(f=p.scrollbarPadding(t)).heightOverflow&&f.scrollbarWidth&&t.css({paddingRight:f.right+"px"}),e.component?(n=document.createElement(e.component.name.replace($,function(t,e){return(e?"-":"")+t.toLowerCase()})),(n=angular.element(n)).attr({resolve:"$resolve","modal-instance":"$uibModalInstance",close:"$close($value)",dismiss:"$dismiss($value)"})):n=e.content,b=w?parseInt(w.value.modalDomEl.attr("index"),10)+1:0;o=angular.element('<div uib-modal-window="modal-window"></div>');o.attr({class:"modal","template-url":e.windowTemplateUrl,"window-top-class":e.windowTopClass,role:"dialog","aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,size:e.size,index:b,animate:"animate","ng-style":"{'z-index': 1050 + $$topModalIndex*10, display: 'block'}",tabindex:-1,"uib-modal-animation-class":"fade","modal-in-class":"in"}).append(n),e.windowClass&&o.addClass(e.windowClass),e.animation&&o.attr("modal-animation","true"),t.addClass(i),e.scope&&(e.scope.$$topModalIndex=b),s.enter(u(o)(e.scope),t),m.top().value.modalDomEl=o,m.top().value.modalOpener=r},y.close=function(t,e){var n=m.get(t);return n&&S(n,e,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(e),r(t,n.value.modalOpener),!0):!n},y.dismiss=function(t,e){var n=m.get(t);return n&&S(n,e,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(e),r(t,n.value.modalOpener),!0):!n},y.dismissAll=function(t){for(var e=this.getTop();e&&this.dismiss(e.key,t);)e=this.getTop()},y.getTop=function(){return m.top()},y.modalRendered=function(t){t=m.get(t);t&&t.value.renderDeferred.resolve()},y.focusFirstFocusableElement=function(t){return 0<t.length&&(t[0].focus(),!0)},y.focusLastFocusableElement=function(t){return 0<t.length&&(t[t.length-1].focus(),!0)},y.isModalFocused=function(t,e){if(t&&e){e=e.value.modalDomEl;if(e&&e.length)return(t.target||t.srcElement)===e[0]}return!1},y.isFocusInFirstItem=function(t,e){return 0<e.length&&(t.target||t.srcElement)===e[0]},y.isFocusInLastItem=function(t,e){return 0<e.length&&(t.target||t.srcElement)===e[e.length-1]},y.loadFocusElementList=function(t){if(t){var t=t.value.modalDomEl;if(t&&t.length)return(t=t[0].querySelectorAll("a[href], area[href], input:not([disabled]):not([tabindex='-1']), button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']), textarea:not([disabled]):not([tabindex='-1']), iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]"))&&Array.prototype.filter.call(t,function(t){return!!((t=t).offsetWidth||t.offsetHeight||t.getClientRects().length)})}},y}]).provider("$uibModal",function(){var y={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(f,i,o,a,g,s,m){var t={};var v=null;return t.getPromiseChain=function(){return v},t.open=function(u){var t,e,n,l=i.defer(),c=i.defer(),p=i.defer(),d=i.defer(),h={result:l.promise,opened:c.promise,closed:
1p.promise,rendered:d.promise,close:function(t){return m.close(h,t)},dismiss:function(t){return m.dismiss(h,t)}};if((u=angular.extend({},y.options,u)).resolve=u.resolve||{},u.appendTo=u.appendTo||o.find("body").eq(0),u.component||u.template||u.templateUrl)return t=u.component?i.when(s.resolve(u.resolve,{},null,null)):i.all([(e=u).template?i.when(e.template):a(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl),s.resolve(u.resolve,{},null,null)]),n=v=i.all([v]).then(r,r).then(function(i){var t,e=u.scope||f,o=e.$new(),n=(o.$close=h.close,o.$dismiss=h.dismiss,o.$on("$destroy",function(){o.$$uibDestructionScheduled||o.$dismiss("$uibUnscheduledDestruction")}),{scope:o,deferred:l,renderDeferred:d,closedDeferred:p,animation:u.animation,backdrop:u.backdrop,keyboard:u.keyboard,backdropClass:u.backdropClass,windowTopClass:u.windowTopClass,windowClass:u.windowClass,windowTemplateUrl:u.windowTemplateUrl,ariaLabelledBy:u.ariaLabelledBy,ariaDescribedBy:u.ariaDescribedBy,size:u.size,openedClass:u.openedClass,appendTo:u.appendTo}),r={},a={};function s(n,t,e,r){n.$scope=o,n.$scope.$resolve={},e?n.$scope.$uibModalInstance=h:n.$uibModalInstance=h;e=t?i[1]:i;angular.forEach(e,function(t,e){r&&(n[e]=t),n.$scope.$resolve[e]=t})}u.component?(s(r,!1,!0,!1),r.name=u.component,n.component=r):u.controller&&(s(a,!0,!1,!0),r=g(u.controller,a,!0,u.controllerAs),u.controllerAs&&u.bindToController&&((t=r.instance).$close=o.$close,t.$dismiss=o.$dismiss,angular.extend(t,{$resolve:a.$scope.$resolve},e)),t=r(),angular.isFunction(t.$onInit))&&t.$onInit(),u.component||(n.content=i[0]),m.open(h,n),c.resolve(!0)},function(t){c.reject(t),l.reject(t)}).finally(function(){v===n&&(v=null)}),h;throw new Error("One of component or template or templateUrl options is required.");function r(){return t}},t}]};return y}),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(t){return{create:function(n,r,i){n.setNumPages=i.numPages?t(i.numPages).assign:angular.noop,n.ngModelCtrl={$setViewValue:angular.noop},n._watchers=[],n.init=function(t,e){n.ngModelCtrl=t,n.config=e,t.$render=function(){n.render()},i.itemsPerPage?n._watchers.push(r.$parent.$watch(i.itemsPerPage,function(t){n.itemsPerPage=parseInt(t,10),r.totalPages=n.calculateTotalPages(),n.updatePage()})):n.itemsPerPage=e.itemsPerPage,r.$watch("totalItems",function(t,e){!angular.isDefined(t)&&t===e||(r.totalPages=n.calculateTotalPages(),n.updatePage())})},n.calculateTotalPages=function(){var t=n.itemsPerPage<1?1:Math.ceil(r.totalItems/n.itemsPerPage);return Math.max(t||0,1)},n.render=function(){r.page=parseInt(n.ngModelCtrl.$viewValue,10)||1},r.selectPage=function(t,e){e&&e.preventDefault(),(!r.ngDisabled||!e)&&r.page!==t&&0<t&&t<=r.totalPages&&(e&&e.target&&e.target.blur(),n.ngModelCtrl.$setViewValue(t),n.ngModelCtrl.$render())},r.getText=function(t){return r[t+"Text"]||n.config[t+"Text"]},r.noPrevious=function(){return 1===r.page},r.noNext=function(){return r.page===r.totalPages},n.updatePage=function(){n.setNumPages(r.$parent,r.totalPages),r.page>r.totalPages?r.selectPage(r.totalPages):n.ngModelCtrl.$render()},r.$on("$destroy",function(){for(;n._watchers.length;)n._watchers.shift()()})}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(t,e,n,r){t.align=angular.isDefined(e.align)?t.$parent.$eval(e.align):r.align,n.create(this,t,e)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(i){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],restrict:"A",controller:"UibPagerController",controllerAs:"pager",templateUrl:function(t,e){return e.templateUrl||"uib/template/pager/pager.html"},link:function(t,e,n,r){e.addClass("pager");e=r[0],r=r[1];r&&e.init(r,i)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging","ui.bootstrap.tabindex"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,n,t,r,i){var o=this,u=angular.isDefined(n.maxSize)?e.$parent.$eval(n.maxSize):i.maxSize,l=angular.isDefined(n.rotate)?e.$parent.$eval(n.rotate):i.rotate,c=angular.isDefined(n.forceEllipses)?e.$parent.$eval(n.forceEllipses):i.forceEllipses,p=angular.isDefined(n.boundaryLinkNumbers)?e.$parent.$eval(n.boundaryLinkNumbers):i.boundaryLinkNumbers,d=angular.isDefined(n.pageLabel)?function(t){return e.$parent.$eval(n.pageLabel,{$page:t})}:angular.identity;function h(t,e,n){return{number:t,text:e,active:n}}e.boundaryLinks=angular.isDefined(n.boundaryLinks)?e.$parent.$eval(n.boundaryLinks):i.boundaryLinks,e.directionLinks=angular.isDefined(n.directionLinks)?e.$parent.$eval(n.directionLinks):i.directionLinks,r.create(this,e,n),n.maxSize&&o._watchers.push(e.$parent.$watch(t(n.maxSize),function(t){u=parseInt(t,10),o.render()}));var a=this.render;this.render=function(){a(),0<e.page&&e.page<=e.totalPages&&(e.pages=function(t,e){var n=[],r=1,i=e,o=angular.isDefined(u)&&u<e;o&&(l?e<(i=(r=Math.max(t-Math.floor(u/2),1))+u-1)&&(r=(i=e)-u+1):(r=(Math.ceil(t/u)-1)*u+1,i=Math.min(r+u-1,e)));for(var a=r;a<=i;a++){var s=h(a,d(a),a===t);n.push(s)}
1return o&&0<u&&(!l||c||p)&&(1<r&&((!p||3<r)&&(o=h(r-1,"...",!1),n.unshift(o)),p)&&(3===r&&(o=h(2,"2",!1),n.unshift(o)),r=h(1,"1",!1),n.unshift(r)),i<e)&&((!p||i<e-2)&&(o=h(i+1,"...",!1),n.push(o)),p)&&(i===e-2&&(r=h(e-1,e-1,!1),n.push(r)),o=h(e,e,!1),n.push(o)),n}(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(t,i){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],restrict:"A",controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(t,e){return e.templateUrl||"uib/template/pagination/pagination.html"},link:function(t,e,n,r){e.addClass("pagination");e=r[0],r=r[1];r&&e.init(r,i)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",function(){var s={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},u={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},l={};this.options=function(t){angular.extend(l,t)},this.setTriggers=function(t){angular.extend(u,t)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(t,o,j,B,V,a,e,q,n){var H=n.createNew();function r(t){27===t.which&&(t=H.top())&&t.value.close()}return B.on("keyup",r),e.$on("$destroy",function(){B.off("keyup",r)}),function(P,N,n,F){function U(t){var t=(t||F.trigger||n).split(" "),e=t.map(function(t){return u[t]||t});return{show:t,hide:e}}F=angular.extend({},s,l,F);var t=P.replace(/[A-Z]/g,function(t,e){return(e?"-":"")+t.toLowerCase()}),e=a.startSymbol(),r=a.endSymbol(),i="<div "+t+'-popup uib-title="'+e+"title"+r+'" '+(F.useContentExp?'content-exp="contentExp()" ':'content="'+e+"content"+r+'" ')+'origin-scope="origScope" class="uib-position-measure '+N+'" tooltip-animation-class="fade"uib-tooltip-classes ng-class="{ in: isOpen }" ></div>';return{compile:function(t,e){var M=o(i);return function(n,i,r,t){function e(){o&&o.html()&&(c=c||j(function(){var t=V.positionElements(i,o,g.placement,d),e=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight"),n=d?V.offset(i):V.position(i),r=(o.css({top:t.top+"px",left:t.left+"px"}),t.placement.split("-"));o.hasClass(r[0])||(o.removeClass(p.split("-")[0]),o.addClass(r[0])),o.hasClass(F.placementClassPrefix+t.placement)||(o.removeClass(F.placementClassPrefix+p),o.addClass(F.placementClassPrefix+t.placement)),j(function(){var t=angular.isDefined(o.offsetHeight)?o.offsetHeight:o.prop("offsetHeight"),t=V.adjustTop(r,n,e,t);t&&o.css(t)},0,!1),o.hasClass("uib-position-measure")?(V.positionArrow(o,t.placement),o.removeClass("uib-position-measure")):p!==t.placement&&V.positionArrow(o,t.placement),p=t.placement,c=null},0,!1))}var o,a,s,u,l,c,p,d=!!angular.isDefined(F.appendToBody)&&F.appendToBody,h=U(void 0),f=angular.isDefined(r[N+"Enable"]),g=n.$new(!0),m=!1,v=!!angular.isDefined(r[N+"IsOpen"])&&q(r[N+"IsOpen"]),y=!!F.useContentExp&&q(r[P]),b=[];function w(){(g.isOpen?E:$)()}function $(){var t,e;f&&!n.$eval(r[N+"Enable"])||(_(),g.title=r[N+"Title"],g.content=y?y(n):r[P],g.popupClass=r[N+"Class"],g.placement=angular.isDefined(r[N+"Placement"])?r[N+"Placement"]:F.placement,t=V.parsePlacement(g.placement),p=t[1]?t[0]+"-"+t[1]:t[0],t=parseInt(r[N+"PopupDelay"],10),e=parseInt(r[N+"PopupCloseDelay"],10),g.popupDelay=isNaN(t)?F.popupDelay:t,g.popupCloseDelay=isNaN(e)?F.popupCloseDelay:e,g.popupDelay?u=u||j(x,g.popupDelay,!1):x())}function E(){S(),g.popupCloseDelay?l=l||j(T,g.popupCloseDelay,!1):T()}function x(){if(S(),_(),!g.content)return angular.noop;o||(a=g.$new(),o=M(a,function(t){d?B.find("body").append(t):i.after(t)}),H.add(g,{close:T}),b.length=0,y?(b.push(n.$watch(y,function(t){!(g.content=t)&&g.isOpen&&T()})),b.push(a.$watch(function(){m||(m=!0,a.$$postDigest(function(){m=!1,g&&g.isOpen&&e()}))}))):b.push(r.$observe(P,function(t){(!(g.content=t)&&g.isOpen?T:e)()}
1)),b.push(r.$observe(N+"Title",function(t){g.title=t,g.isOpen&&e()})),b.push(r.$observe(N+"Placement",function(t){g.placement=t||F.placement,g.isOpen&&e()}))),g.$evalAsync(function(){k(g.isOpen=!0),e()})}function S(){u&&(j.cancel(u),u=null),c&&(j.cancel(c),c=null)}function T(){g&&g.$evalAsync(function(){g&&(k(g.isOpen=!1),g.animation?s=s||j(C,150,!1):C())})}function _(){l&&(j.cancel(l),l=null),s&&(j.cancel(s),s=null)}function C(){S(),_(),b.length&&(angular.forEach(b,function(t){t()}),b.length=0),o&&(o.remove(),o=null),H.remove(g),a&&(a.$destroy(),a=null)}function k(t){v&&angular.isFunction(v.assign)&&v.assign(n,t)}function A(t){g&&g.isOpen&&o&&(i[0].contains(t.target)||o[0].contains(t.target)||E())}g.origScope=n,g.isOpen=!1,g.contentExp=function(){return g.content},r.$observe("disabled",function(t){t&&S(),t&&g.isOpen&&T()}),v&&n.$watch(v,function(t){g&&!t===g.isOpen&&w()});function D(){h.show.forEach(function(t){"outsideClick"===t?i.off("click",w):(i.off(t,$),i.off(t,w))}),h.hide.forEach(function(t){"outsideClick"===t?B.off("click",A):i.off(t,E)})}var O,R,L;O=[],R=[],L=n.$eval(r[N+"Trigger"]),D(),"none"!==(h=angular.isObject(L)?(Object.keys(L).forEach(function(t){O.push(t),R.push(L[t])}),{show:O,hide:R}):U(L)).show&&h.show.forEach(function(t,e){"outsideClick"===t?(i.on("click",w),B.on("click",A)):t===h.hide[e]?i.on(t,w):t&&(i.on(t,$),i.on(h.hide[e],E)),i.on("keypress",function(t){27===t.which&&E()})});var I=n.$eval(r[N+"Animation"]),I=(g.animation=angular.isDefined(I)?!!I:F.animation,N+"AppendToBody"),I=I in r&&void 0===r[I]||n.$eval(r[I]),d=angular.isDefined(I)?I:d;n.$on("$destroy",function(){D(),C(),g=null})}}}}}]}).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(c,r,p,d){return{link:function(t,i,e){function o(){n&&(n.remove(),n=null),a&&(a.$destroy(),a=null),s&&(c.leave(s).then(function(){n=null}),n=s,s=null)}var a,n,s,u=t.$eval(e.tooltipTemplateTranscludeScope),l=0;t.$watch(r.parseAsResourceUrl(e.uibTooltipTemplateTransclude),function(n){var r=++l;n?(d(n,!0).then(function(t){var e;r===l&&(e=u.$new(),t=p(t)(e,function(t){o(),c.enter(t,i)}),s=t,(a=e).$emit("$includeContentLoaded",n))},function(){r===l&&(o(),t.$emit("$includeContentError",n))}),t.$emit("$includeContentRequested",n)):o()}),t.$on("$destroy",o)}}}]).directive("uibTooltipClasses",["$uibPosition",function(i){return{restrict:"A",link:function(t,e,n){var r;t.placement&&(r=i.parsePlacement(t.placement),e.addClass(r[0])),t.popupClass&&e.addClass(t.popupClass),t.animation&&e.addClass(n.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",function(){return{restrict:"A",scope:{content:"@"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}}).directive("uibTooltip",["$uibTooltip",function(t){return t("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",function(){return{restrict:"A",scope:{contentExp:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}}).directive("uibTooltipTemplate",["$uibTooltip",function(t){return t("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}}).directive("uibTooltipHtml",["$uibTooltip",function(t){return t("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",function(){return{restrict:"A",scope:{uibTitle:"@",contentExp:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}}).directive("uibPopoverTemplate",["$uibTooltip",function(t){return t("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",function(){return{restrict:"A",scope:{contentExp:"&",uibTitle:"@"},templateUrl:"uib/template/popover/popover-html.html"}}).directive("uibPopoverHtml",["$uibTooltip",function(t){return t("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",function(){return{restrict:"A",scope:{uibTitle:"@",content:"@"},templateUrl:"uib/template/popover/popover.html"}}).directive("uibPopover",["$uibTooltip",function(t){return t("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(t,e,n){var r=this,i=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;function o(){return angular.isDefined(t.maxParam)?t.maxParam:n.max}this.bars=[],t.max=o(),this.addBar=function(e,t,n){i||t.css({transition:"none"}),this.bars.push(e),e.max=o(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",function(t){e.recalculatePercentage()}),e.recalculatePercentage=function(){var t=r.bars.reduce(function(t,e){return e.percent=+(100*e.value/e.max).toFixed(2),t+e.percent},0);100<t&&(e.percent-=t-100)},e.$on("$destroy",function(){t=null,r.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1),this.bars.forEac
1h(function(t){t.recalculatePercentage()})},t.$watch("maxParam",function(t){r.bars.forEach(function(t){t.max=o(),t.recalculatePercentage()})})}]).directive("uibProgress",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}}).directive("uibBar",function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(t,e,n,r){r.addBar(t,e,n)}}}).directive("uibProgressbar",function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(t,e,n,r){r.addBar(t,angular.element(e.children()[0]),{title:n.title})}}}),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,n,r){var i={$setViewValue:angular.noop},o=this;this.init=function(t){(i=t).$render=this.render,i.$formatters.push(function(t){return t=angular.isNumber(t)&&t<<0!==t?Math.round(t):t}),this.stateOn=angular.isDefined(n.stateOn)?e.$parent.$eval(n.stateOn):r.stateOn,this.stateOff=angular.isDefined(n.stateOff)?e.$parent.$eval(n.stateOff):r.stateOff,this.enableReset=angular.isDefined(n.enableReset)?e.$parent.$eval(n.enableReset):r.enableReset;t=angular.isDefined(n.titles)?e.$parent.$eval(n.titles):r.titles,this.titles=angular.isArray(t)&&0<t.length?t:r.titles,t=angular.isDefined(n.ratingStates)?e.$parent.$eval(n.ratingStates):new Array(angular.isDefined(n.max)?e.$parent.$eval(n.max):r.max);e.range=this.buildTemplateObjects(t)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;e<n;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(e)},t[e]);return t},this.getTitle=function(t){return t>=this.titles.length?t+1:this.titles[t]},e.rate=function(t){!e.readonly&&0<=t&&t<=e.range.length&&(t=o.enableReset&&i.$viewValue===t?0:t,i.$setViewValue(t),i.$render())},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=i.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=i.$viewValue,e.title=o.getTitle(e.value-1)}}]).directive("uibRating",function(){return{require:["uibRating","ngModel"],restrict:"A",scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",link:function(t,e,n,r){var i=r[0],r=r[1];i.init(r)}}}),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(t){var r,i,o=this;function a(t){for(var e=0;e<o.tabs.length;e++)if(o.tabs[e].index===t)return e}o.tabs=[],o.select=function(t,e){if(!i){var n=a(r),n=o.tabs[n];if(n){if(n.tab.onDeselect({$event:e,$selectedIndex:t}),e&&e.isDefaultPrevented())return;n.tab.active=!1}n=o.tabs[t];n?(n.tab.onSelect({$event:e}),n.tab.active=!0,o.active=n.index,r=n.index):!n&&angular.isDefined(r)&&(o.active=null,r=null)}},o.addTab=function(t){o.tabs.push({tab:t,index:t.index}),o.tabs.sort(function(t,e){return t.index>e.index?1:t.index<e.index?-1:0}),t.index!==o.active&&(angular.isDefined(o.active)||1!==o.tabs.length)||(t=a(t.index),o.select(t))},o.removeTab=function(t){for(var e,n,r=0;r<o.tabs.length;r++)if(o.tabs[r].tab===t){e=r;break}o.tabs[e].index===o.active&&(n=e===o.tabs.length-1?e-1:e+1%o.tabs.length,o.select(n)),o.tabs.splice(e,1)},t.$watch("tabset.active",function(t){angular.isDefined(t)&&t!==r&&o.select(a(t))}),t.$on("$destroy",function(){i=!0})}]).directive("uibTabset",function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(t,e){return e.templateUrl||"uib/template/tabs/tabset.html"},link:function(t,e,n){t.vertical=!!angular.isDefined(n.vertical)&&t.$parent.$eval(n.vertical),t.justified=!!angular.isDefined(n.justified)&&t.$parent.$eval(n.justified)}}}).directive("uibTab",["$parse",function(o){return{require:"^uibTabset",replace:!0,templateUrl:function(t,e){return e.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(r,t,e,i,n){r.disabled=!1,e.disable&&r.$parent.$watch(o(e.disable),function(t){r.disabled=!!t}),angular.isUndefined(e.index)&&(i.tabs&&i.tabs.length?r.index=Math.max.apply(null,i.tabs.map(function(t){return t.index}
1))+1:r.index=0),angular.isUndefined(e.classes)&&(r.classes=""),r.select=function(t){if(!r.disabled){for(var e,n=0;n<i.tabs.length;n++)if(i.tabs[n].tab===r){e=n;break}i.select(e,t)}},i.addTab(r),r.$on("$destroy",function(){i.removeTab(r)}),r.$transcludeFn=n}}}]).directive("uibTabHeadingTransclude",function(){return{restrict:"A",require:"^uibTab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}).directive("uibTabContentTransclude",function(){return{restrict:"A",require:"^uibTabset",link:function(t,n,e){var r=t.$eval(e.uibTabContentTransclude).tab;r.$transcludeFn(r.$parent,function(t){angular.forEach(t,function(t){var e;(e=t).tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase()||"uib:tab-heading"===e.tagName.toLowerCase())?r.headingElement=t:n.append(t)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(i,t,r,e,n,o,a){var s,u,l=new Date,c=[],p={$setViewValue:angular.noop},d=angular.isDefined(r.meridians)?i.$parent.$eval(r.meridians):a.meridians||o.DATETIME_FORMATS.AMPMS,h=!angular.isDefined(r.padHours)||i.$parent.$eval(r.padHours),f=(i.tabindex=angular.isDefined(r.tabindex)?r.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,e){(p=t).$render=this.render,p.$formatters.unshift(function(t){return t?new Date(t):null});var t=e.eq(0),n=e.eq(1),e=e.eq(2);(angular.isDefined(r.mousewheel)?i.$parent.$eval(r.mousewheel):a.mousewheel)&&this.setupMousewheelEvents(t,n,e),(angular.isDefined(r.arrowkeys)?i.$parent.$eval(r.arrowkeys):a.arrowkeys)&&this.setupArrowkeyEvents(t,n,e),i.readonlyInput=angular.isDefined(r.readonlyInput)?i.$parent.$eval(r.readonlyInput):a.readonlyInput,this.setupInputEvents(t,n,e)},a.hourStep),g=(r.hourStep&&c.push(i.$parent.$watch(e(r.hourStep),function(t){f=+t})),a.minuteStep),m=(r.minuteStep&&c.push(i.$parent.$watch(e(r.minuteStep),function(t){g=+t})),c.push(i.$parent.$watch(e(r.min),function(t){t=new Date(t);s=isNaN(t)?void 0:t})),c.push(i.$parent.$watch(e(r.max),function(t){t=new Date(t);u=isNaN(t)?void 0:t})),!1),v=(r.ngDisabled&&c.push(i.$parent.$watch(e(r.ngDisabled),function(t){m=t})),i.noIncrementHours=function(){var t=T(l,60*f);return m||u<t||t<l&&t<s},i.noDecrementHours=function(){var t=T(l,60*-f);return m||t<s||l<t&&u<t},i.noIncrementMinutes=function(){var t=T(l,g);return m||u<t||t<l&&t<s},i.noDecrementMinutes=function(){var t=T(l,-g);return m||t<s||l<t&&u<t},i.noIncrementSeconds=function(){var t=_(l,v);return m||u<t||t<l&&t<s},i.noDecrementSeconds=function(){var t=_(l,-v);return m||t<s||l<t&&u<t},i.noToggleMeridian=function(){return l.getHours()<12?m||T(l,720)>u:m||T(l,-720)<s},a.secondStep);function y(){var t=+i.hours;if((i.showMeridian?0<t&&t<13:0<=t&&t<24)&&""!==i.hours)return i.showMeridian&&(12===t&&(t=0),i.meridian===d[1])&&(t+=12),t}function b(){var t=+i.minutes;if(0<=t&&t<60&&""!==i.minutes)return t}function w(t,e){return null===t?"":angular.isDefined(t)&&t.toString().length<2&&!e?"0"+t:t.toString()}function $(t){E(),p.$setViewValue(new Date(l)),x(t)}function E(){p.$setValidity("time",!0),i.invalidHours=!1,i.invalidMinutes=!1,i.invalidSeconds=!1}function x(t){var e,n,r;p.$modelValue?(e=l.getHours(),n=l.getMinutes(),r=l.getSeconds(),i.showMeridian&&(e=0===e||12===e?12:e%12),i.hours="h"===t?e:w(e,!h),"m"!==t&&(i.minutes=w(n)),i.meridian=l.getHours()<12?d[0]:d[1],"s"!==t&&(i.seconds=w(r)),i.meridian=l.getHours()<12?d[0]:d[1]):(i.hours=null,i.minutes=null,i.seconds=null,i.meridian=d[0])}function S(t){l=_(l,t),$()}function T(t,e){return _(t,60*e)}function _(t,e){e=new Date(t.getTime()+1e3*e),t=new Date(t);return t.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),t}function C(){return(null===i.hours||""===i.hours)&&(null===i.minutes||""===i.minutes)&&(!i.showSeconds||i.showSeconds&&(null===i.seconds||""===i.seconds))}r.secondStep&&c.push(i.$parent.$watch(e(r.secondStep),function(t){v=+t}
1)),i.showSeconds=a.showSeconds,r.showSeconds&&c.push(i.$parent.$watch(e(r.showSeconds),function(t){i.showSeconds=!!t})),i.showMeridian=a.showMeridian,r.showMeridian&&c.push(i.$parent.$watch(e(r.showMeridian),function(t){var e;i.showMeridian=!!t,p.$error.time?(t=y(),e=b(),angular.isDefined(t)&&angular.isDefined(e)&&(l.setHours(t),$())):x()})),this.setupMousewheelEvents=function(t,e,n){function r(t){var e=(t=t.originalEvent?t.originalEvent:t).wheelDelta||-t.deltaY;return t.detail||0<e}t.bind("mousewheel wheel",function(t){m||i.$apply(r(t)?i.incrementHours():i.decrementHours()),t.preventDefault()}),e.bind("mousewheel wheel",function(t){m||i.$apply(r(t)?i.incrementMinutes():i.decrementMinutes()),t.preventDefault()}),n.bind("mousewheel wheel",function(t){m||i.$apply(r(t)?i.incrementSeconds():i.decrementSeconds()),t.preventDefault()})},this.setupArrowkeyEvents=function(t,e,n){t.bind("keydown",function(t){m||(38===t.which?(t.preventDefault(),i.incrementHours(),i.$apply()):40===t.which&&(t.preventDefault(),i.decrementHours(),i.$apply()))}),e.bind("keydown",function(t){m||(38===t.which?(t.preventDefault(),i.incrementMinutes(),i.$apply()):40===t.which&&(t.preventDefault(),i.decrementMinutes(),i.$apply()))}),n.bind("keydown",function(t){m||(38===t.which?(t.preventDefault(),i.incrementSeconds(),i.$apply()):40===t.which&&(t.preventDefault(),i.decrementSeconds(),i.$apply()))})},this.setupInputEvents=function(t,e,n){var r;i.readonlyInput?(i.updateHours=angular.noop,i.updateMinutes=angular.noop,i.updateSeconds=angular.noop):(r=function(t,e,n){p.$setViewValue(null),p.$setValidity("time",!1),angular.isDefined(t)&&(i.invalidHours=t),angular.isDefined(e)&&(i.invalidMinutes=e),angular.isDefined(n)&&(i.invalidSeconds=n)},i.updateHours=function(){var t=y(),e=b();p.$setDirty(),!angular.isDefined(t)||!angular.isDefined(e)||(l.setHours(t),l.setMinutes(e),l<s)||u<l?r(!0):$("h")},t.bind("blur",function(t){p.$setTouched(),C()?E():null===i.hours||""===i.hours?r(!0):!i.invalidHours&&i.hours<10&&i.$apply(function(){i.hours=w(i.hours,!h)})}),i.updateMinutes=function(){var t=b(),e=y();p.$setDirty(),!angular.isDefined(t)||!angular.isDefined(e)||(l.setHours(e),l.setMinutes(t),l<s)||u<l?r(void 0,!0):$("m")},e.bind("blur",function(t){p.$setTouched(),C()?E():null===i.minutes?r(void 0,!0):!i.invalidMinutes&&i.minutes<10&&i.$apply(function(){i.minutes=w(i.minutes)})}),i.updateSeconds=function(){var t=0<=(t=+i.seconds)&&t<60?t:void 0;p.$setDirty(),angular.isDefined(t)?(l.setSeconds(t),$("s")):r(void 0,void 0,!0)},n.bind("blur",function(t){C()?E():!i.invalidSeconds&&i.seconds<10&&i.$apply(function(){i.seconds=w(i.seconds)})}))},this.render=function(){var t=p.$viewValue;isNaN(t)?(p.$setValidity("time",!1),n.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):((l=t?t:l)<s||u<l?(p.$setValidity("time",!1),i.invalidHours=!0,i.invalidMinutes=!0):E(),x())},i.showSpinners=angular.isDefined(r.showSpinners)?i.$parent.$eval(r.showSpinners):a.showSpinners,i.incrementHours=function(){i.noIncrementHours()||S(60*f*60)},i.decrementHours=function(){i.noDecrementHours()||S(60*-f*60)},i.incrementMinutes=function(){i.noIncrementMinutes()||S(60*g)},i.decrementMinutes=function(){i.noDecrementMinutes()||S(60*-g)},i.incrementSeconds=function(){i.noIncrementSeconds()||S(v)},i.decrementSeconds=function(){i.noDecrementSeconds()||S(-v)},i.toggleMeridian=function(){var t=b(),e=y();i.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(e)?S(720*(l.getHours()<12?60:-60)):i.meridian=i.meridian===d[0]?d[1]:d[0])},i.blur=function(){p.$setTouched()},i.$on("$destroy",function(){for(;c.length;)c.shift()()})}]).directive("uibTimepicker",["uibTimepickerConfig",function(n){return{require:["uibTimepicker","?^ngModel"],restrict:"A",controller:"UibTimepickerController",controllerAs:"timepicker",scope:{},templateUrl:function(t,e){return e.templateUrl||n.templateUrl},link:function(t,e,n,r){var i=r[0],r=r[1];r&&i.init(r,e.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(n){var r=
1/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(t){var e=t.match(r);if(e)return{itemName:e[3],source:n(e[4]),viewMapper:n(e[2]||e[1]),modelMapper:n(e[1])};throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+t+'".')}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(s,u,a,P,n,N,l,t,e,F,c,r,i){var p,d,h,f,o,g,m,U=[9,13,27,38,40],v=s.$eval(a.typeaheadMinLength),y=(v||0===v||(v=1),s.$watch(a.typeaheadMinLength,function(t){v=t||0===t?t:1}),s.$eval(a.typeaheadWaitMs)||0),b=!1!==s.$eval(a.typeaheadEditable),w=(s.$watch(a.typeaheadEditable,function(t){b=!1!==t}),n(a.typeaheadLoading).assign||angular.noop),j=a.typeaheadShouldSelect?n(a.typeaheadShouldSelect):function(t,e){e=e.$event;return 13===e.which||9===e.which},B=n(a.typeaheadOnSelect),V=!!angular.isDefined(a.typeaheadSelectOnBlur)&&s.$eval(a.typeaheadSelectOnBlur),$=n(a.typeaheadNoResults).assign||angular.noop,E=a.typeaheadInputFormatter?n(a.typeaheadInputFormatter):void 0,x=!!a.typeaheadAppendToBody&&s.$eval(a.typeaheadAppendToBody),S=a.typeaheadAppendTo?s.$eval(a.typeaheadAppendTo):null,q=!1!==s.$eval(a.typeaheadFocusFirst),H=!!a.typeaheadSelectOnExact&&s.$eval(a.typeaheadSelectOnExact),W=n(a.typeaheadIsOpen).assign||angular.noop,T=s.$eval(a.typeaheadShowHint)||!1,_=n(a.ngModel),G=n(a.ngModel+"($$$p)"),C=i.parse(a.uibTypeahead),k=s.$new(),i=s.$on("$destroy",function(){k.$destroy()}),A=(k.$on("$destroy",i),"typeahead-"+k.$id+"-"+Math.floor(1e4*Math.random())),D=(u.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":A}),T&&((o=angular.element("<div></div>")).css("position","relative"),u.after(o),(g=u.clone()).attr("placeholder",""),g.attr("tabindex","-1"),g.val(""),g.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),u.css({position:"relative","vertical-align":"top","background-color":"transparent"}),g.attr("id")&&g.removeAttr("id"),o.append(g),g.after(u)),angular.element("<div uib-typeahead-popup></div>")),z=(D.attr({id:A,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(a.typeaheadTemplateUrl)&&D.attr("template-url",a.typeaheadTemplateUrl),angular.isDefined(a.typeaheadPopupTemplateUrl)&&D.attr("popup-template-url",a.typeaheadPopupTemplateUrl),function(){T&&g.val("")}),O=function(){k.matches=[],k.activeIdx=-1,u.attr("aria-expanded",!1),z()},R=function(t){return A+"-option-"+t},K=(k.$watch("activeIdx",function(t){t<0?u.removeAttr("aria-activedescendant"):u.attr("aria-activedescendant",R(t))}),function(t,e){return!!(k.matches.length>e&&t)&&t.toUpperCase()===k.matches[e].label.toUpperCase()}),L=function(i,o){var a={$viewValue:i};w(s,!0),$(s,!1),N.when(C.source(s,a)).then(function(t){var e=i===p.$viewValue;if(e&&h)if(t&&0<t.length){k.activeIdx=q?0:-1,$(s,!1);for(var n,r=k.matches.length=0;r<t.length;r++)a[C.itemName]=t[r],k.matches.push({id:R(r),label:C.viewMapper(k,a),model:t[r]});k.query=i,X(),u.attr("aria-expanded",!0),H&&1===k.matches.length&&K(i,0)&&(angular.isNumber(k.debounceUpdate)||angular.isObject(k.debounceUpdate)?c(function(){k.select(0,o)},angular.isNumber(k.debounceUpdate)?k.debounceUpdate:k.debounceUpdate.default):k.select(0,o)),T&&(n=k.matches[0].label,angular.isString(i)&&0<i.length&&n.slice(0,i.length).toUpperCase()===i.toUpperCase()?g.val(i+n.slice(i.length)):g.val(""))}else O(),$(s,!0);e&&w(s,!1)},function(){O(),w(s,!1),$(s,!0)})},Y=(x&&(angular.element(e).on("resize",I),t.find("body").on("scroll",I)),c(function(){k.matches.length&&X(),k.moveInProgress=!1},200));function I(){k.moveInProgress||(k.moveInProgress=!0,k.$digest()),Y()}function X(){k.position=x?r.offset(u):r.position(u),k.position.top+=u.prop("offsetHeight")}k.moveInProgress=!1,k.query=void 0;function Q(){m&&l.cancel(m)}function J(t){u[0]!==t.target&&3!==t.which&&0!==k.matches.length&&(O(),F.$$phase||s.$digest())}O(),k.assignIsOpen=function(t){W(s,t)},k.select=function(t,e){var n,r,i,o={};f=!0,o[C.itemName]=t=k.matches[t].model,n=C.modelMapper(s,o),r=s,i=n,angular.isFunction(_(s))&&d&&d.$options&&d.$options.getterSetter?G(r,{$$$p:i}):_.assign(r,i),p.$setValidity("editable",!0),p.$setValidity("parse",!0),B(s,{$item:t,$model:n,$label:C.viewMapper(s,o),$event:e}),O(),!1!==k.$eval(a.typeaheadFocusOnSelect)&&l(function(){u[0].focus()},0,!1)}
1,u.on("keydown",function(t){if(0!==k.matches.length&&-1!==U.indexOf(t.which)){var e,n=j(s,{$event:t});if(-1===k.activeIdx&&n||9===t.which&&t.shiftKey)O(),k.$digest();else switch(t.preventDefault(),t.which){case 27:t.stopPropagation(),O(),s.$digest();break;case 38:k.activeIdx=(0<k.activeIdx?k.activeIdx:k.matches.length)-1,k.$digest(),(e=D[0].querySelectorAll(".uib-typeahead-match")[k.activeIdx]).parentNode.scrollTop=e.offsetTop;break;case 40:k.activeIdx=(k.activeIdx+1)%k.matches.length,k.$digest(),(e=D[0].querySelectorAll(".uib-typeahead-match")[k.activeIdx]).parentNode.scrollTop=e.offsetTop;break;default:n&&k.$apply(function(){angular.isNumber(k.debounceUpdate)||angular.isObject(k.debounceUpdate)?c(function(){k.select(k.activeIdx,t)},angular.isNumber(k.debounceUpdate)?k.debounceUpdate:k.debounceUpdate.default):k.select(k.activeIdx,t)})}}}),u.bind("focus",function(t){h=!0,0!==v||p.$viewValue||l(function(){L(p.$viewValue,t)},0)}),u.bind("blur",function(t){V&&k.matches.length&&-1!==k.activeIdx&&!f&&(f=!0,k.$apply(function(){angular.isObject(k.debounceUpdate)&&angular.isNumber(k.debounceUpdate.blur)?c(function(){k.select(k.activeIdx,t)},k.debounceUpdate.blur):k.select(k.activeIdx,t)}
1)),!b&&p.$error.editable&&(p.$setViewValue(),k.$apply(function(){p.$setValidity("editable",!0),p.$setValidity("parse",!0)}),u.val("")),f=h=!1});t.on("click",J),s.$on("$destroy",function(){t.off("click",J),(x||S)&&M.remove(),x&&(angular.element(e).off("resize",I),t.find("body").off("scroll",I)),D.remove(),T&&o.remove()});var M=P(D)(k);x?t.find("body").append(M):S?angular.element(S).eq(0).append(M):u.after(M),this.init=function(t,e){p=t,d=e,k.debounceUpdate=p.$options&&n(p.$options.debounce)(s),p.$parsers.unshift(function(t){var e;return h=!0,0===v||t&&t.length>=v?0<y?(Q(),e=t,m=l(function(){L(e)},y)):L(t):(w(s,!1),Q(),O()),b?t:t?void p.$setValidity("editable",!1):(p.$setValidity("editable",!0),null)}),p.$formatters.push(function(t){var e,n={};return b||p.$setValidity("editable",!0),E?(n.$model=t,E(s,n)):(n[C.itemName]=t,e=C.viewMapper(s,n),n[C.itemName]=void 0,e!==C.viewMapper(s,n)?e:t)})}}]).directive("uibTypeahead",function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(t,e,n,r){r[2].init(r[0],r[1])}}}).directive("uibTypeaheadPopup",["$$debounce",function(i){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(t,e){return e.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(r,t,e){r.templateUrl=e.templateUrl,r.isOpen=function(){var t=0<r.matches.length;return r.assignIsOpen({isOpen:t}),t},r.isActive=function(t){return r.active===t},r.selectActive=function(t){r.active=t},r.selectMatch=function(t,e){var n=r.debounce();angular.isNumber(n)||angular.isObject(n)?i(function(){r.select({activeIdx:t,evt:e})},angular.isNumber(n)?n:n.default):r.select({activeIdx:t,evt:e})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(r,i,o){return{scope:{index:"=",match:"=",query:"="},link:function(e,n,t){t=o(t.templateUrl)(e.$parent)||"uib/template/typeahead/typeahead-match.html";r(t).then(function(t){t=angular.element(t.trim());n.replaceWith(t),i(t)(e)})}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(n,t,r){var i;return i=t.has("$sanitize"),function(t,e){return!i&&/<.*>/g.test(t)&&r.warn("Unsafe use of typeahead please use ngSanitize"),t=e?(""+t).replace(new RegExp(e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,t=i?t:n.trustAsHtml(t)}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion-group.html",'<div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n  <h4 class="panel-title">\n    <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading" ng-disabled="isDisabled" uib-tabindex-toggle><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n  </h4>\n</div>\n<div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n  <div class="panel-body" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("uib/template/alert/alert.html",'<button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n  <span aria-hidden="true">&times;</span>\n  <span class="sr-only">Close</span>\n</button>\n<div ng-transclude></div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/carousel.html",'<div class="carousel-inner" ng-transclude></div>\n<a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n  <span class="sr-only">previous</span>\n</a>\n<a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n  <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n  <span class="sr-only">next</span>\n</a>\n<ol class="carousel-indicators" ng-show="slides.length > 1">\n  <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n    <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n  </li>\n</ol>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("uib/template/carousel/slide.html",'<div class="text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/datepicker.html",'<div ng-switch="datepickerMode">\n  <div uib-daypicker ng-switch-when="day" tabindex="0" class="uib-daypicker"></div>\n  <div uib-monthpicker ng-switch-when="month" tabindex="0" class="uib-monthpicker"></div>\n  <div uib-yearpicker ng-switch-when="year" tabindex="0" class="uib-yearpicker"></div>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/day.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === max
1Mode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n    <tr>\n      <th ng-if="showWeeks" class="text-center"></th>\n      <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-weeks" ng-repeat="row in rows track by $index" role="row">\n      <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n      <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default btn-sm"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\
1n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/month.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::yearHeaderColspan}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-months" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepicker/year.html",'<table role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n  <thead>\n    <tr>\n      <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n      <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n      <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr class="uib-years" ng-repeat="row in rows track by $index" role="row">\n      <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n        id="{{::dt.uid}}"\n        ng-class="::dt.customClass">\n        <button type="button" class="btn btn-default"\n          uib-is-class="\n            \'btn-info\' for selectedDt,\n            \'active\' for activeDt\n            on dt"\n          ng-click="select(dt.date)"\n          ng-disabled="::dt.disabled"\n          tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n      </td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/datepickerPopup/popup.html",'<ul class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n  <li ng-transclude></li>\n  <li ng-if="showButtonBar" class="uib-button-bar">\n    <span class="btn-group pull-left">\n      <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n      <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n    </span>\n    <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n  </li>\n</ul>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(t){t.put("uib/template/modal/window.html","<div class=\"modal-dialog {{size ? 'modal-' + size : ''}}\"><div class=\"modal-content\" uib-modal-transclude></div></div>\n")}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(t){t.put("uib/template/pager/pager.html",'<li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("uib/template/pagination/pagination.html",'<li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'first\')}}</a></li>\n<li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)" ng-disabled="noPrevious()||ngDisabled" uib-tabindex-toggle>{{::getText(\'previous\')}}</a></li>\n<li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)" ng-disabled="ngDisabled&&!page.active" uib-tabindex-toggle>{{page.text}}</a></li>\n<li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'next\')}}</a></li>\n<li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)" ng-disabled="noNext()||ngDisabled" uib-tabindex-toggle>{{::getText(\'last\')}}</a></li>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner" ng-bind="content"></div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip-arrow"></div>\n<div class="tooltip-inner"\n  uib-tooltip-template-transclude="contentExp()"\n  tooltip-template-transclude-scope="originScope()"></div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-html.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover-template.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content"\n      uib-tooltip-template-transclude="contentExp()"\n      tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("uib/template/popover/popover.html",'<div class="arrow"></div>\n\n<div class="popover-inner">\n    <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n    <div class="popover-content" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n  <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n    <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n    <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n  <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("uib/template/tabs/tabset.html",'<div>\n  <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n  <div class="tab-content">\n    <div class="tab-pane"\n         ng-repeat="tab in tabset.tabs"\n         ng-class="{active: tabset.active === tab.index}"\n         uib-tab-content-transclude="tab">\n    </div>\n  </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n  <tbody>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n    <tr>\n      <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n        <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n      </td>\n      <td class="uib-separator">:</td>\n      <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n        <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n      </td>\n      <td ng-show="showSeconds" class="uib-separator">:</td>\n      <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n        <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n      </td>\n      <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n    </tr>\n    <tr class="text-center" ng-show="::showSpinners">\n      <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td>&nbsp;</td>\n      <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showSeconds">&nbsp;</td>\n      <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="-1"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n      <td ng-show="showMeridian"></td>\n    </tr>\n  </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-match.html",'<a href\n   tabindex="-1"\n   ng-bind-html="match.label | uibTypeaheadHighlight:query"\n   ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n    <li class="uib-typeahead-match" ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n        <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n    </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run(function(){angular.$$csp().noInlineStyle||angular.$$uibC
1arouselCss||angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0}),angular.module("ui.bootstrap.datepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0}),angular.module("ui.bootstrap.position").run(function(){angular.$$csp().noInlineStyle||angular.$$uibPositionCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0}),angular.module("ui.bootstrap.datepickerPopup").run(function(){angular.$$csp().noInlineStyle||angular.$$uibDatepickerpopupCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0}),angular.module("ui.bootstrap.tooltip").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTooltipCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0}),angular.module("ui.bootstrap.timepicker").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTimepickerCss||angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0}),angular.module("ui.bootstrap.typeahead").run(function(){angular.$$csp().noInlineStyle||angular.$$uibTypeaheadCss||angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0});var swfobject=function(){var o,a,s,u,l,c,v="undefined",y="object",p="Shockwave Flash",m="application/x-shockwave-flash",d="SWFObjectExprInst",t="onreadystatechange",h=window,f=document,g=navigator,b=!1,r=[function(){(b?function(){var e=f.getElementsByTagName("body")[0],n=L(y),r=(n.setAttribute("type",m),e.appendChild(n));{var i;(r?(i=0,function(){if(typeof r.GetVariable!=v){var t=r.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),S.pv=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)])}else if(i<10)return i++,setTimeout(arguments.callee,10);e.removeChild(n),r=null,_()}):_)()}}:_)()}],w=[],$=[],E=[],i=!1,x=!1,n=!0,S=function(){var t=typeof f.getElementById!=v&&typeof f.getElementsByTagName!=v&&typeof f.createElement!=v,e=g.userAgent.toLowerCase(),n=g.platform.toLowerCase(),r=/win/.test(n||e),n=/mac/.test(n||e),e=!!/webkit/.test(e)&&parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),i=!1,o=[0,0,0],a=null;if(typeof g.plugins!=v&&typeof g.plugins[p]==y)!(a=g.plugins[p].description)||typeof g.mimeTypes!=v&&g.mimeTypes[m]&&!g.mimeTypes[m].enabledPlugin||(i=!(b=!0),a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),o[0]=parseInt(a.replace(/^(.*)\..*$/,"$1"),10),o[1]=parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10),o[2]=/[a-zA-Z]/.test(a)?parseInt(a.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof h.ActiveXObject!=v)try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");s&&(a=s.GetVariable("$version"))&&(i=!0,a=a.split(" ")[1].split(","),o=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)])}catch(t){}return{w3:t,pv:o,wk:e,ie:i,win:r,mac:n}}();S.w3&&((typeof f.readyState!=v&&"complete"==f.readyState||typeof f.readyState==v&&(f.getElementsByTagName("body")[0]||f.body))&&e(),i||(typeof f.addEventListener!=v&&f.addEventListener("DOMContentLoaded",e,!1),S.ie&&S.win&&(f.attachEvent(t,function(){"complete"==f.readyState&&(f.detachEvent(t,arguments.callee),e())}),h==top)&&function(){if(!i){try{f.documentElement.doScroll("left")}catch(t){return setTimeout(arguments.callee,0)}e()}}(),S.wk&&function(){i||(/loaded|complete/.test(f.readyState)?e():setTimeout(arguments.callee,0))}(),P(e)));function e(){if(!i){try{var t=f.getElementsByTagName("body")[0].appendChild(L("span"));t.parentNode.removeChild(t)}catch(t){return}i=!0;for(var e=r.length,n=0;n<e;n++)r[n]()}}function T(t){i?t():r[r.length]=t}function P(t){var e,n,r,i;typeof h.addEventListener!=v?h.addEventListener("load",t,!1):typeof f.addEventListener!=v?f.addEventListener("load",t,!1):typeof h.attachEvent!=v?(r="onload",i=t,(n=h).attachEvent(r,i),E[E.length]=[n,r,i]):"function"==typeof h.onload?(e=h.onload,h.onload=function(){e(),t()}):h.onload=t}function _(){var t=w.length;if(0<t)for(var e=0;e<t;e++){var n=w[e].id,r=w[e].callbackFn,i={success:!1,id:n};if(0<S.pv[0]){var o=R(n);if(o)if(!I(w[e].swfVersion)||S.wk&&S.wk<312)if(w[e].expressInstall&&k()){for(var a={},s=(a.data=w[e].expressInstall,a.width=o.getAttribute("width")||"0",a.height=o.getAttribute("height")||"0",o.getAttribute("class")&&(a.styleclass=o.getAttribute("class")),o.getAttribute("align")&&(a.align=o.getAttribute("align")),{}),u=o.getElementsByTagName("param"),l=u.length,c=0;c<l;c++)"movie"!=u[c].getAttribute("name").toLowerCase()&&(s[u[c].getAttribute("name")]=u[c].getAttribute("value"));A(a,s,n,r)}else{a=p=void 0;var p=o;S.ie&&S.win&&4!=p.readyState?(a=L("div"),p.parentNode.insertBefore(a,p),a.parentNode.replaceChild(D(p),a),p.style.display="none",function(){4==p.readyState?p.parentNode.removeChild(p):setTimeout(arguments.callee,10)}()):p.parentNode.replaceChild(D(p),p),r&&r(i)}else M(n,!0),r&&(i.success=!0,i.ref=C(n),r(i))}else M(n,!0),r&&((o=C(n))&&typeof o.SetVariable!=v&&(i.success=!0,i.ref=o),r(i))}}
1function C(t){var e=null,t=R(t);return t&&"OBJECT"==t.nodeName&&(typeof t.SetVariable!=v?e=t:(t=t.getElementsByTagName(y)[0])&&(e=t)),e}function k(){return!x&&I("6.0.65")&&(S.win||S.mac)&&!(S.wk&&S.wk<312)}function A(t,e,n,r){s=r||null,u={success:!(x=!0),id:n};var i=R(n);i&&(a="OBJECT"==i.nodeName?(o=D(i),null):(o=i,n),t.id=d,(typeof t.width==v||!/%$/.test(t.width)&&parseInt(t.width,10)<310)&&(t.width="310"),(typeof t.height==v||!/%$/.test(t.height)&&parseInt(t.height,10)<137)&&(t.height="137"),f.title=f.title.slice(0,47)+" - Flash Player Installation",r=S.ie&&S.win?"ActiveX":"PlugIn",r="MMredirectURL="+h.location.toString().replace(/&/g,"%26")+"&MMplayerType="+r+"&MMdoctitle="+f.title,typeof e.flashvars!=v?e.flashvars+="&"+r:e.flashvars=r,S.ie&&S.win&&4!=i.readyState&&((r=L("div")).setAttribute("id",n+="SWFObjectNew"),i.parentNode.insertBefore(r,i),i.style.display="none",function(){4==i.readyState?i.parentNode.removeChild(i):setTimeout(arguments.callee,10)}()),O(t,e,n))}function D(t){var e=L("div");if(S.win&&S.ie)e.innerHTML=t.innerHTML;else{t=t.getElementsByTagName(y)[0];if(t){var n=t.childNodes;if(n)for(var r=n.length,i=0;i<r;i++)1==n[i].nodeType&&"PARAM"==n[i].nodeName||8==n[i].nodeType||e.appendChild(n[i].cloneNode(!0))}}return e}function O(t,e,n){var r,i,o,a,s,u=R(n);if(!(S.wk&&S.wk<312)&&u)if(typeof t.id==v&&(t.id=n),S.ie&&S.win){var l,c="";for(l in t)t[l]!=Object.prototype[l]&&("data"==l.toLowerCase()?e.movie=t[l]:"styleclass"==l.toLowerCase()?c+=' class="'+t[l]+'"':"classid"!=l.toLowerCase()&&(c+=" "+l+'="'+t[l]+'"'));var p,d="";for(p in e)e[p]!=Object.prototype[p]&&(d+='<param name="'+p+'" value="'+e[p]+'" />');u.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+c+">"+d+"</object>",$[$.length]=t.id,r=R(t.id)}else{var h,f,g=L(y);for(h in g.setAttribute("type",m),t)t[h]!=Object.prototype[h]&&("styleclass"==h.toLowerCase()?g.setAttribute("class",t[h]):"classid"!=h.toLowerCase()&&g.setAttribute(h,t[h]));for(f in e)e[f]!=Object.prototype[f]&&"movie"!=f.toLowerCase()&&(i=g,a=e[o=f],s=void 0,(s=L("param")).setAttribute("name",o),s.setAttribute("value",a),i.appendChild(s));u.parentNode.replaceChild(g,u),r=g}return r}function N(r){var i=R(r);i&&"OBJECT"==i.nodeName&&(S.ie&&S.win?(i.style.display="none",function(){if(4==i.readyState){var t=r,e=R(t);if(e){for(var n in e)"function"==typeof e[n]&&(e[n]=null);e.parentNode.removeChild(e)}}else setTimeout(arguments.callee,10)}()):i.parentNode.removeChild(i))}function R(t){var e=null;try{e=f.getElementById(t)}catch(t){}return e}function L(t){return f.createElement(t)}function I(t){var e=S.pv,t=t.split(".");return t[0]=parseInt(t[0],10),t[1]=parseInt(t[1],10)||0,t[2]=parseInt(t[2],10)||0,e[0]>t[0]||e[0]==t[0]&&e[1]>t[1]||e[0]==t[0]&&e[1]==t[1]&&e[2]>=t[2]}function F(t,e,n,r){var i;S.ie&&S.mac||(i=f.getElementsByTagName("head")[0])&&(n=n&&"string"==typeof n?n:"screen",r&&(c=l=null),l&&c==n||((r=L("style")).setAttribute("type","text/css"),r.setAttribute("media",n),l=i.appendChild(r),S.ie&&S.win&&typeof f.styleSheets!=v&&0<f.styleSheets.length&&(l=f.styleSheets[f.styleSheets.length-1]),c=n),S.ie&&S.win?l&&typeof l.addRule==y&&l.addRule(t,e):l&&typeof f.createTextNode!=v&&l.appendChild(f.createTextNode(t+" {"+e+"}")))}function M(t,e){n&&(e=e?"visible":"hidden",i&&R(t)?R(t).style.visibility=e:F("#"+t,"visibility:"+e))}function U(t){return null!=/[\\\"<>\.;]/.exec(t)&&typeof encodeURIComponent!=v?encodeURIComponent(t):t}S.ie&&S.win&&window.attachEvent("onunload",function(){for(var t=E.length,e=0;e<t;e++)E[e][0].detachEvent(E[e][1],E[e][2]);for(var n,r,i=$.length,o=0;o<i;o++)N($[o]);for(n in S)S[n]=null;for(r in S=null,swfobject)swfobject[r]=null;swfobject=null});return{registerObject:function(t,e,n,r){var i;S.w3&&t&&e?((i={}).id=t,i.swfVersion=e,i.expressInstall=n,i.callbackFn=r,w[w.length]=i,M(t,!1)):r&&r({success:!1,id:t})},getObjectById:function(t){if(S.w3)return C(t)},embedSWF:function(a,s,u,l,c,p,d,h,f,g){var m={success:!1,id:s};S.w3&&!(S.wk&&S.wk<312)&&a&&s&&u&&l&&c?(M(s,!1),T(function(){u+="",l+="";var t={};if(f&&typeof f===y)for(var e in f)t[e]=f[e];t.data=a,t.width=u,t.height=l;var n={};if(h&&typeof h===y)for(var r in h)n[r]=h[r];if(d&&typeof d===y)for(var i in d)typeof n.flashvars!=v?n.flashvars+="&"+i+"="+d[i]:n.flashvars=i+"="+d[i];if(I(c)){var o=O(t,n,s);t.id==s&&M(s,!0),m.success=!0,m.ref=o}else{if(p&&k())return t.data=p,void A(t,n,s,g);M(s,!0)}g&&g(m)})):g&&g(m)},switchOffAutoHideShow:function(){n=!1},ua:S,getFlashPlayerVersion:function(){return{major:S.pv[0],minor:S.pv[1],release:S.pv[2]}
1},hasFlashPlayerVersion:I,createSWF:function(t,e,n){if(S.w3)return O(t,e,n)},showExpressInstall:function(t,e,n,r){S.w3&&k()&&A(t,e,n,r)},removeSWF:function(t){S.w3&&N(t)},createCSS:function(t,e,n,r){S.w3&&F(t,e,n,r)},addDomLoadEvent:T,addLoadEvent:P,getQueryParamValue:function(t){var e=f.location.search||f.location.hash;if(e){if(/\?/.test(e)&&(e=e.split("?")[1]),null==t)return U(e);for(var n=e.split("&"),r=0;r<n.length;r++)if(n[r].substring(0,n[r].indexOf("="))==t)return U(n[r].substring(n[r].indexOf("=")+1))}return""},expressInstallCallback:function(){var t;x&&((t=R(d))&&o&&(t.parentNode.replaceChild(o,t),a&&(M(a,!0),S.ie)&&S.win&&(o.style.display="block"),s)&&s(u),x=!1)}}}();!function(){if(!window.WEB_SOCKET_FORCE_FLASH){if(window.WebSocket)return;if(window.MozWebSocket)return window.WebSocket=MozWebSocket}var n=window.WEB_SOCKET_LOGGER?WEB_SOCKET_LOGGER:window.console&&window.console.log&&window.console.error?window.console:{log:function(){},error:function(){}};swfobject.getFlashPlayerVersion().major<10?n.error("Flash Player >= 10.0.0 is required."):("file:"==location.protocol&&n.error("WARNING: web-socket-js doesn't work in file:///... URL unless you set Flash Security Settings properly. Open the page via Web server i.e. http://..."),window.WebSocket=function(t,e,n,r,i){var o=this;o.__id=WebSocket.__nextId++,(WebSocket.__instances[o.__id]=o).readyState=WebSocket.CONNECTING,o.bufferedAmount=0,o.__events={},e?"string"==typeof e&&(e=[e]):e=[],o.__createTask=setTimeout(function(){WebSocket.__addTask(function(){o.__createTask=null,WebSocket.__flash.create(o.__id,t,e,n||null,r||0,i||null)})},0)},WebSocket.prototype.send=function(t){if(this.readyState==WebSocket.CONNECTING)throw"INVALID_STATE_ERR: Web Socket connection has not been established";t=WebSocket.__flash.send(this.__id,encodeURIComponent(t));return t<0||(this.bufferedAmount+=t,!1)},WebSocket.prototype.close=function(){this.__createTask?(clearTimeout(this.__createTask),this.__createTask=null,this.readyState=WebSocket.CLOSED):this.readyState!=WebSocket.CLOSED&&this.readyState!=WebSocket.CLOSING&&(this.readyState=WebSocket.CLOSING,WebSocket.__flash.close(this.__id))},WebSocket.prototype.addEventListener=function(t,e,n){t in this.__events||(this.__events[t]=[]),this.__events[t].push(e)},WebSocket.prototype.removeEventListener=function(t,e,n){if(t in this.__events)for(var r=this.__events[t],i=r.length-1;0<=i;--i)if(r[i]===e){r.splice(i,1);break}},WebSocket.prototype.dispatchEvent=function(t){for(var e=this.__events[t.type]||[],n=0;n<e.length;++n)e[n](t);var r=this["on"+t.type];r&&r.apply(this,[t])},WebSocket.prototype.__handleEvent=function(t){if("readyState"in t&&(this.readyState=t.readyState),"protocol"in t&&(this.protocol=t.protocol),"open"==t.type||"error"==t.type)e=this.__createSimpleEvent(t.type);else if("close"==t.type)(e=this.__createSimpleEvent("close")).wasClean=!!t.wasClean,e.code=t.code,e.reason=t.reason;else{if("message"!=t.type)throw"unknown event type: "+t.type;var t=decodeURIComponent(t.message),e=this.__createMessageEvent("message",t)}this.dispatchEvent(e)},WebSocket.prototype.__createSimpleEvent=function(t){var e;return document.createEvent&&window.Event?((e=document.createEvent("Event")).initEvent(t,!1,!1),e):{type:t,bubbles:!1,cancelable:!1}},WebSocket.prototype.__createMessageEvent=function(t,e){var n;return window.MessageEvent&&"function"==typeof MessageEvent&&!window.opera?new MessageEvent("message",{view:window,bubbles:!1,cancelable:!1,data:e}):document.createEvent&&window.MessageEvent&&!window.opera?((n=document.createEvent("MessageEvent")).initMessageEvent("message",!1,!1,e,null,null,window,null),n):{type:t,data:e,bubbles:!1,cancelable:!1}},WebSocket.CONNECTING=0,WebSocket.OPEN=1,WebSocket.CLOSING=2,WebSocket.CLOSED=3,WebSocket.__isFlashImplementation=!0,WebSocket.__initialized=!1,WebSocket.__flash=null,WebSocket.__instances={},WebSocket.__tasks=[],WebSocket.__nextId=0,WebSocket.loadFlashPolicyFile=function(t){WebSocket.__addTask(function(){WebSocket.__flash.loadManualPolicyFile(t)})},WebSocket.__initialize=function(){var t,e;WebSocket.__initialized||(WebSocket.__initialized=!0,WebSocket.__swfLocation&&(window.WEB_SOCKET_SWF_LOCATION=WebSocket.__swfLocation),window.WEB_SOCKET_SWF_LOCATION?(window.WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR||WEB_SOCKET_SWF_LOCATION.match(/(^|\/)WebSocketMainInsecure\.swf(\?.*)?$/)||!WEB_SOCKET_SWF_LOCATION.match(/^\w+:\/\/([^\/]+)/)||(t=RegExp.$1,location.host!=t&&n.error("[WebSocket] You must host HTML and WebSocketMain.swf in the same host ('"+location.host+"' != '"+t+"'). See also 'How to host HTML file and SWF file in different domains' section in README.md. If you use WebSocketMainInsecure.swf, you can suppress this message by WEB_SOCKET_SUPPRESS_CROSS_DOMAIN_SWF_ERROR = true;")),(t=document.createElement("div")).id="webSocketContainer",t.style.position="absolute",WebSocket.__isFlashLite()?(t.style.left="0px",t.style.top="0px"):(t.style.left="-100px",t.style.top="-100px"),(e=document.createElement("div")).id="webSocketFlash",t.appendChild(e),document.body.appendChild(t),swfobject.embedSWF(WEB_SOCKET_SWF_LOCATION,"webSocketFlash","1","1","10.0.0",null,null,{hasPriority:!0,swliveconnect:!0,allowScriptAccess:"always"},null,function(t){t.success||n.error("[WebSocket] swfobject.embedSWF failed")})):n.error("[WebSocket] set WEB_SOCKET_SWF_LOCATION to location of WebSocketMain.swf"))},WebSocket.__onFlashInitialized=function(){setTimeout(function(){WebSocket.__flash=document.getElementById("webSocketFlash"),WebSocket.__flash.setCallerUrl(location.href),WebSocket.__flash.setDebug(!!window.WEB_SOCKET_DEBUG);for(var t=0;t<WebSocket.__tasks.length;++t)WebSocket.__tasks[t]();WebSocket.__tasks=[]},0)},WebSocket.__onFlashEvent=function(){return setTimeout(function(){try{for(var t=WebSocket.__flash.receiveEvents(),e=0;e<t.length;++e)WebSocket.__instances[t[e].webSocketId].__handleEvent(t[e])}catch(t){n.error(t)}},0),!0},WebSocket.__log=function(t){n.log(decodeURIComponent(t))},WebSocket.__error=function(t){n.error(decodeURIComponent(t))},WebSocket.__addTask=function(t){WebSocket.__flash?t():WebSocket.__tasks.push(t)},WebSocket.__isFlashLite=function(){var t;return!!(window.navigator&&window.navigator.mimeTypes&&(t=window.navigator.mimeTypes["application/x-shockwave-flash"])&&t.enabledPlugin&&t.enabledPlugin.filename&&t.enabledPlugin.filename.match(/flashlite/i))},window.WEB_SOCKET_DISABLE_AUTO_INITIALIZATION||swfobject.addDomLoadEvent(function(){WebSocket.__initialize()}))}(),!function(g){var t={function:!0,object:!0};function P(t){return t&&t.Object===Object?t:null}var N=t[typeof exports]&&exports&&!exports.nodeType?exports:null,F=t[typeof module]&&module&&!module.nodeType?module:null,e=P(N&&F&&"object"==typeof global&&global),n=P(t[typeof self]&&self),r=P(t[typeof window]&&window),U=F&&F.exports===N?N:null,t=P(t[typeof this]&&this),u=e||r!==(t&&t.window)&&r||n||t||Function("return this")(),o={internals:{},config:{Promise:u.Promise},helpers:{}},a=o.helpers.noop=function(){},c=o.helpers.identity=function(t){return t},r=o.helpers.defaultNow=Date.now,j=o.helpers.defaultComparer=function(t,e){return Dt(t,e)},B=o.helpers.defaultSubComparer=function(t,e){return e<t?1:t<e?-1:0}
1,V=(o.helpers.defaultKeySerializer=function(t){return t.toString()},o.helpers.defaultError=function(t){throw t}),f=o.helpers.isPromise=function(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then},m=o.helpers.isFunction=n=(n=function(t){return"function"==typeof t||!1})(/x/)?function(t){return"function"==typeof t&&"[object Function]"==toString.call(t)}:n;function s(t){for(var e=t.length,n=new Array(e),r=0;r<e;r++)n[r]=t[r];return n}var v={e:{}};var y=o.internals.tryCatch=function(t){if(m(t))return e=t,function(){try{return e.apply(this,arguments)}catch(t){return v.e=t,v}};throw new TypeError("fn must be a function");var e};function l(t){throw t}var q,H=o.config.longStackSupport=!1,t=y(function(){throw new Error})(),H=!!t.e&&!!t.e.stack,W=K(),G="From previous event:";function z(t,e){if(H&&e.stack&&"object"==typeof t&&null!==t&&t.stack&&-1===t.stack.indexOf(G)){for(var n=[],r=e;r;r=r.source)r.stack&&n.unshift(r.stack);n.unshift(t.stack);e=n.join("\n"+G+"\n");t.stack=function(t){for(var e=t.split("\n"),n=[],r=0,i=e.length;r<i;r++){var o=e[r];!function(t){var e,t=Y(t);return t&&(e=t[0],t=t[1],e===q)&&W<=t&&t<=su}(o)&&!function(t){return-1!==t.indexOf("(module.js:")||-1!==t.indexOf("(node.js:")}(o)&&o&&n.push(o)}return n.join("\n")}(e)}}function K(){if(H)try{throw new Error}catch(t){var e=t.stack.split("\n"),e=Y(0<e[0].indexOf("@")?e[1]:e[2]);if(e)return q=e[0],e[1]}}function Y(t){var e=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(t);return(e=e||/at ([^ ]+):(\d+):(?:\d+)$/.exec(t))?[e[1],Number(e[2])]:(e=/.*@(.+):(\d+)$/.exec(t))?[e[1],Number(e[2])]:void 0}var X,Q,J,Z,n=o.EmptyError=function(){this.message="Sequence contains no elements.",Error.call(this)},tt=((n.prototype=Object.create(Error.prototype)).name="EmptyError",o.ObjectDisposedError=function(){this.message="Object has been disposed",Error.call(this)}),et=((tt.prototype=Object.create(Error.prototype)).name="ObjectDisposedError",o.ArgumentOutOfRangeError=function(){this.message="Argument out of range",Error.call(this)}),nt=((et.prototype=Object.create(Error.prototype)).name="ArgumentOutOfRangeError",o.NotSupportedError=function(t){this.message=t||"This operation is not supported",Error.call(this)}),rt=((nt.prototype=Object.create(Error.prototype)).name="NotSupportedError",o.NotImplementedError=function(t){this.message=t||"This operation is not implemented",Error.call(this)}),t=((rt.prototype=Object.create(Error.prototype)).name="NotImplementedError",o.helpers.notImplemented=function(){throw new rt}),p=(o.helpers.notSupported=function(){throw new nt},"function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_"),it=(u.Set&&"function"==typeof(new u.Set)["@@iterator"]&&(p="@@iterator"),o.doneEnumerator={done:!0,value:g}),ot=o.helpers.isIterable=function(t){return t&&t[p]!==g},at=o.helpers.isArrayLike=function(t){return t&&t.length!==g},st=(o.helpers.iterator=p,o.internals.bindCallback=function(r,i,t){if(void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}),ut="[object Arguments]",lt="[object Array]",ct="[object Boolean]",pt="[object Date]",dt="[object Error]",ht="[object Number]",ft="[object Object]",gt="[object RegExp]",mt="[object String]",b={},n=(b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b[ut]=b[lt]=b["[object ArrayBuffer]"]=b[ct]=b[pt]=b[dt]=b["[object Function]"]=b["[object Map]"]=b[ht]=b[ft]=b[gt]=b["[object Set]"]=b[mt]=b["[object WeakMap]"]=!1,Object.prototype),vt=n.hasOwnProperty,yt=n.toString,bt=Math.pow(2,53)-1,wt=Object.keys||(X=Object.prototype.hasOwnProperty,Q=!{toString:null}.propertyIsEnumerable("toString"),Z=(J=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("object"!=typeof t&&("function"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var e,n,r=[];for(e in t)X.call(t,e)&&r.push(e);if(Q)for(n=0;n<Z;n++)X.call(t,J[n])&&r.push(J[n]);return r});function $t(t,e,n,r,i,o){var a=wt(t),s=a.length;if(s!==wt(e).length&&!r)return!1;for(var u=s;u--;)if(c=a[u],!(r?c in e:vt.call(e,c)))return!1;for(var l=r;++u<s;){var c,p=t[c=a[u]],d=e[c];if(void 0!==g||!n(p,d,r,i,o))return!1;l=l||"constructor"===c}if(!l){var h=t.constructor,f=e.constructor;if(h!==f&&"constructor"in t&&"constructor"in e&&!("function"==typeof h&&h instanceof h&&"function"==typeof f&&f instanceof f))return!1}return!0}var Et=o.internals.isObject=function(t){var e=typeof t;return!!t&&("object"==e||"function"==e)};function xt(t){return!!t&&"object"==typeof t}function St(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=bt}var Tt=function(){try{Object({toString:0}+"")}catch(t){return function(){return!1}}return function(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}}();var _t=Array.isArray||function(t){return xt(t)&&St(t.length)&&yt.call(t)===lt};function Ct(t,e,n,r,i,o){var a=-1,s=t.length,u=e.length;if(s!==u&&!(r&&s<u))return!1;for(;++a<s;){var l=t[a],c=e[a];if(void 0!==g)return!1;if(r){if(!function(t,e){for(var n=-1,r=t.length;++n<r;)if(e(t[n],n,t))return 1}(e,function(t){return l===t||n(l,t,r,i,o)}))return!1}else if(l!==c&&!n(l,c,r,i,o))return!1}return!0}function kt(t,e,n,r,i,o){var a=_t(t),s=_t(e),u=lt,l=lt,c=(a||((u=yt.call(t))===ut?u=ft:u!==ft&&(a=xt(c=t)&&St(c.length)&&!!b[yt.call(c)])),s||(l=yt.call(e))===ut&&(l=ft),u===ft&&!Tt(t)),s=l===ft&&!Tt(e),l=u===l;if(l&&!a&&!c){var p=t,d=e;switch(u){case ct:case pt:return+p==+d;case dt:return p.name===d.name&&p.message===d.message;case ht:return p!==+p?d!==+d:p===+d;case gt:case mt:return p===d+""}return!1}if(!r){u=c&&vt.call(t,"__wrapped__"),s=s&&vt.call(e,"__wrapped__");
1if(u||s)return n(u?t.value():t,s?e.value():e,r,i,o)}if(!l)return!1;o=o||[];for(var h=(i=i||[]).length;h--;)if(i[h]===t)return o[h]===e;i.push(t),o.push(e);u=(a?Ct:$t)(t,e,n,r,i,o);return i.pop(),o.pop(),u}function At(t,e,n,r,i){return t===e||(null==t||null==e||!Et(t)&&!xt(e)?t!=t&&e!=e:kt(t,e,At,n,r,i))}var Dt=o.internals.isEqual=function(t,e){return At(t,e)},n=(Array.prototype.slice,o.internals.inherits=function(t,e){function n(){this.constructor=t}n.prototype=e.prototype,t.prototype=new n}),Ot=o.internals.addProperties=function(t){for(var e=[],n=1,r=arguments.length;n<r;n++)e.push(arguments[n]);for(var i=0,o=e.length;i<o;i++){var a,s=e[i];for(a in s)t[a]=s[a]}};o.internals.addRef=function(e,n){return new I(function(t){return new E(n.getDisposable(),e.subscribe(t))})};function Rt(t,e){for(var n=new Array(t),r=0;r<t;r++)n[r]=e();return n}var Lt=o.CompositeDisposable=function(){var t,e,n=[];if(Array.isArray(arguments[0]))n=arguments[0];else for(e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];this.disposables=n,this.isDisposed=!1,this.length=n.length},i=Lt.prototype,It=(i.add=function(t){this.isDisposed?t.dispose():(this.disposables.push(t),this.length++)},i.remove=function(t){var e,n=!1;return this.isDisposed||-1!==(e=this.disposables.indexOf(t))&&(n=!0,this.disposables.splice(e,1),this.length--,t.dispose()),n},i.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=this.disposables.length,e=new Array(t),n=0;n<t;n++)e[n]=this.disposables[n];for(this.disposables=[],n=this.length=0;n<t;n++)e[n].dispose()}},o.Disposable=function(t){this.isDisposed=!1,this.action=t||a}),Mt=(It.prototype.dispose=function(){this.isDisposed||(this.action(),this.isDisposed=!0)},It.create=function(t){return new It(t)}),d=It.empty={dispose:a},Pt=It.isDisposable=function(t){return t&&m(t.dispose)},h=It.checkDisposed=function(t){if(t.isDisposed)throw new tt},Nt=It._fixup=function(t){return Pt(t)?t:d},w=o.SingleAssignmentDisposable=function(){this.isDisposed=!1,this.current=null},$=(w.prototype.getDisposable=function(){return this.current},w.prototype.setDisposable=function(t){if(this.current)throw new Error("Disposable has already been assigned");var e=this.isDisposed;e||(this.current=t),e&&t&&t.dispose()},w.prototype.dispose=function(){var t;this.isDisposed||(this.isDisposed=!0,t=this.current,this.current=null,t&&t.dispose())},o.SerialDisposable=function(){this.isDisposed=!1,this.current=null}),E=($.prototype.getDisposable=function(){return this.current},$.prototype.setDisposable=function(t){var e,n=this.isDisposed;n||(e=this.current,this.current=t),e&&e.dispose(),n&&t&&t.dispose()},$.prototype.dispose=function(){var t;this.isDisposed||(this.isDisposed=!0,t=this.current,this.current=null),t&&t.dispose()},o.BinaryDisposable=function(t,e){this._first=t,this._second=e,this.isDisposed=!1}),x=(E.prototype.dispose=function(){var t;this.isDisposed||(this.isDisposed=!0,t=this._first,this._first=null,t&&t.dispose(),t=this._second,this._second=null,t&&t.dispose())},o.NAryDisposable=function(t){this._disposables=t,this.isDisposed=!1});x.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;for(var t=0,e=this._disposables.length;t<e;t++)this._disposables[t].dispose();this._disposables.length=0}},o.RefCountDisposable=(Ft.prototype.dispose=function(){this.disposable.isDisposed||this.isInnerDisposed||(this.isInnerDisposed=!0,this.disposable.count--,0===this.disposable.count&&this.disposable.isPrimaryDisposed&&(this.disposable.isDisposed=!0,this.disposable.underlyingDisposable.dispose()))},Ut.prototype.dispose=function(){this.isDisposed||this.isPrimaryDisposed||(this.isPrimaryDisposed=!0,0===this.count&&(this.isDisposed=!0,this.underlyingDisposable.dispose()))},Ut.prototype.getDisposable=function(){return this.isDisposed?d:new Ft(this)},Ut);function Ft(t){this.disposable=t,this.disposable.count++,this.isInnerDisposed=!1}function Ut(t){this.underlyingDisposable=t,this.isDisposed=!1,this.isPrimaryDisposed=!1,this.count=0}var jt=o.internals.ScheduledItem=function(t,e,n,r,i){this.scheduler=t,this.state=e,this.action=n,this.dueTime=r,this.comparer=i||B,this.disposable=new w},i=(jt.prototype.invoke=function(){this.disposable.setDisposable(this.invokeCore())},jt.prototype.compareTo=function(t){return this.comparer(this.dueTime,t.dueTime)},jt.prototype.isCancelled=function(){return this.disposable.isDisposed},jt.prototype.invokeCore=function(){return Nt(this.action(this.scheduler,this.state))}
1,o.Scheduler=(Bt.isScheduler=function(t){return t instanceof Bt},(i=Bt.prototype).schedule=function(t,e){throw new rt},i.scheduleFuture=function(t,e,n){return e instanceof Date&&(e-=this.now()),0===(e=Bt.normalize(e))?this.schedule(t,n):this._scheduleFuture(t,e,n)},i._scheduleFuture=function(t,e,n){throw new rt},Bt.now=r,Bt.prototype.now=r,Bt.normalize=function(t){return t=t<0?0:t},Bt));function Bt(){}var Vt=i.normalize,S=i.isScheduler;function qt(a,t){var e=t[0],s=t[1],u=new Lt;return s(e,function n(t){var r=!1,i=!1;var o=a.schedule(t,e);i||(u.add(o),r=!0);function e(t,e){return r?u.remove(o):i=!0,s(e,n),d}}),u}function Ht(s,t){var e=t[0],u=t[1],l=new Lt;return u(e,function n(t,e){var r=!1,i=!1;var o=s.scheduleFuture(t,e,a);i||(l.add(o),r=!0);function a(t,e){return r?l.remove(o):i=!0,u(e,n),d}}),l}(r=i.prototype).scheduleRecursive=function(t,e){return this.schedule([t,e],qt)},r.scheduleRecursiveFuture=function(t,e,n){return this.scheduleFuture([t,n],e,Ht)},i.prototype.schedulePeriodic=function(t,e,n){if(void 0===u.setInterval)throw new nt;e=Vt(e);var r=t,i=u.setInterval(function(){r=n(r)},e);return Mt(function(){u.clearInterval(i)})};n(Gt,Wt=i),Gt.prototype.schedule=function(t,e){return Nt(e(this,t))};var Wt,r=Gt;function Gt(){Wt.call(this)}var zt,Kt,T=i.immediate=new r,r=(n(Xt,zt=i),Xt.prototype.schedule=function(t,e){t=new jt(this,t,e,this.now());return Kt?Kt.enqueue(t):((Kt=new fe(4)).enqueue(t),e=y(Yt)(),Kt=null,e===v&&l(e.e)),t.disposable},Xt.prototype.scheduleRequired=function(){return!Kt},Xt);function Yt(){for(;0<Kt.length;){var t=Kt.dequeue();t.isCancelled()||t.invoke()}}function Xt(){zt.call(this)}var Qt,Jt,_=i.currentThread=new r;o.internals.SchedulePeriodicRecursive=(Zt.prototype.start=function(){var n,t=new w;return(this._cancel=t).setDisposable(this._scheduler.scheduleRecursiveFuture(0,this._period,(n=this,function(t,e){e(0,n._period);e=y(n._action)(n._state);e===v&&(n._cancel.dispose(),l(e.e)),n._state=e}))),t},Zt);function Zt(t,e,n,r){this._scheduler=t,this._state=e,this._period=n,this._action=r}var te,C,ee,ne,re,ie,r=function(){var t,e=a;if(u.setTimeout)t=u.setTimeout,e=u.clearTimeout;else{if(!u.WScript)throw new nt;t=function(t,e){u.WScript.Sleep(e),t()}}return{setTimeout:t,clearTimeout:e}}(),oe=r.setTimeout,ae=r.clearTimeout;function se(t){var e;ee?oe(function(){se(t)},0):(e=C[t])&&(ee=!0,e=y(e)(),Jt(t),ee=!1,e===v)&&l(e.e)}te=1,ee=!(C={}),Jt=function(t){delete C[t]},r=new RegExp("^"+String(toString).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ie="function"==typeof(ie=e&&U&&e.setImmediate)&&!r.test(ie)&&ie,Qt=m(ie)?function(t){var e=te++;return C[e]=t,ie(function(){se(e)}),e}:"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)?function(t){var e=te++;return C[e]=t,process.nextTick(function(){se(e)}),e}:function(){var t,e;if(u.postMessage&&!u.importScripts)return t=!1,e=u.onmessage,u.onmessage=function(){t=!0},u.postMessage("","*"),u.onmessage=e,t}()?(ne="ms.rx.schedule"+Math.random(),u.addEventListener("message",function(t){"string"==typeof t.data&&t.data.substring(0,ne.length)===ne&&se(t.data.substring(ne.length))},!1),function(t){var e=te++;return C[e]=t,u.postMessage(ne+e,"*"),e}):u.MessageChannel?((re=new u.MessageChannel).port1.onmessage=function(t){se(t.data)},function(t){var e=te++;return C[e]=t,re.port2.postMessage(e),e}):"document"in u&&"onreadystatechange"in u.document.createElement("script")?function(t){var e=u.document.createElement("script"),n=te++;return C[n]=t,e.onreadystatechange=function(){se(n),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},u.document.documentElement.appendChild(e),n}:function(t){var e=te++;return C[e]=t,oe(function(){se(e)},0),e};n(le,ue=i),pe.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,Jt(this._id))},de.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,ae(this._id))},le.prototype.schedule=function(t,e){var n=new w,e=Qt(ce(n,e,this,t));return new E(n,new pe(e))},le.prototype._scheduleFuture=function(t,e,n){var r;return 0===e?this.schedule(t,n):(r=new w,n=oe(ce(r,n,this,t),e),new E(r,new de(n)))},le.prototype.scheduleLongRunning=function(t,e){var n,r,i,o=Mt(a);return Qt((n=t,r=e,i=o,function(){r(n,i)})),o};var ue,e=le;function le(){ue.call(this)}function ce(t,e,n,r){return function(){t.setDisposable(It._fixup(e(n,r)))}}function pe(t){this._id=t,this.isDisposed=!1}function de(t){this._id=t,this.isDisposed=!1}var k=i.default=i.async=new e;function he(t,e){this.id=t,this.value=e}he.prototype.compareTo=function(t){var e=this.value.compareTo(t.value);return e=0===e?this.id-t.id:e};var fe=o.internals.PriorityQueue=function(t){this.items=new Array(t),this.length=0},r=fe.prototype,A=(r.isHigherPriority=function(t,e){return this.items[t].compareTo(this.items[e])<0},r.percolate=function(t){var e,n;t>=this.length||t<0||(e=t-1>>1)<0||e===t||this.isHigherPriority(t,e)&&(n=this.items[t],this.items[t]=this.items[e],this.items[e]=n,this.percolate(e))},r.heapify=function(t){var e,n,r;(t=+t?t:0)>
1=this.length||t<0||(e=2*t+2,(r=2*(n=t)+1)<this.length&&this.isHigherPriority(r,n)&&(n=r),(n=e<this.length&&this.isHigherPriority(e,n)?e:n)!==t&&(r=this.items[t],this.items[t]=this.items[n],this.items[n]=r,this.heapify(n)))},r.peek=function(){return this.items[0].value},r.removeAt=function(t){this.items[t]=this.items[--this.length],this.items[this.length]=g,this.heapify()},r.dequeue=function(){var t=this.peek();return this.removeAt(0),t},r.enqueue=function(t){var e=this.length++;this.items[e]=new he(fe.count++,t),this.percolate(e)},r.remove=function(t){for(var e=0;e<this.length;e++)if(this.items[e].value===t)return this.removeAt(e),!0;return!1},fe.count=0,o.Notification=(ge.prototype._accept=function(t,e,n){throw new rt},ge.prototype._acceptObserver=function(t,e,n){throw new rt},ge.prototype.accept=function(t,e,n){return t&&"object"==typeof t?this._acceptObserver(t):this._accept(t,e,n)},ge.prototype.toObservable=function(t){var e=this;return S(t)||(t=T),new I(function(n){return t.schedule(e,function(t,e){e._acceptObserver(n),"N"===e.kind&&n.onCompleted()})})},ge));function ge(){}n(ve,A),ve.prototype._accept=function(t){return t(this.value)},ve.prototype._acceptObserver=function(t){return t.onNext(this.value)},ve.prototype.toString=function(){return"OnNext("+this.value+")"};var me=ve;function ve(t){this.value=t,this.kind="N"}n(be,A),be.prototype._accept=function(t,e){return e(this.error)},be.prototype._acceptObserver=function(t){return t.onError(this.error)},be.prototype.toString=function(){return"OnError("+this.error+")"};var ye=be;function be(t){this.error=t,this.kind="E"}n($e,A),$e.prototype._accept=function(t,e,n){return n()},$e.prototype._acceptObserver=function(t){return t.onCompleted()},$e.prototype.toString=function(){return"OnCompleted()"};var we=$e;function $e(){this.kind="C"}var Ee=A.createOnNext=function(t){return new me(t)},xe=A.createOnError=function(t){return new ye(t)},Se=A.createOnCompleted=function(){return new we},i=o.Observer=function(){},Te=i.create=function(t,e,n){return new Ce(t=t||a,e=e||V,n=n||a)},D=o.internals.AbstractObserver=(n(O,i),O.prototype.next=t,O.prototype.error=t,O.prototype.completed=t,O.prototype.onNext=function(t){this.isStopped||this.next(t)},O.prototype.onError=function(t){this.isStopped||(this.isStopped=!0,this.error(t))},O.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.completed())},O.prototype.dispose=function(){this.isStopped=!0},O.prototype.fail=function(t){return!this.isStopped&&(this.isStopped=!0,this.error(t),!0)},O);function O(){this.isStopped=!1}var _e,Ce=o.AnonymousObserver=(n(ke,_e=D),ke.prototype.next=function(t){this._onNext(t)},ke.prototype.error=function(t){this._onError(t)},ke.prototype.completed=function(){this._onCompleted()},ke);function ke(t,e,n){_e.call(this),this._onNext=t,this._onError=e,this._onCompleted=n}var R=o.Observable=(e=Ae.prototype,Ae.isObservable=function(t){return t&&m(t.subscribe)},e.subscribe=e.forEach=function(t,e,n){return this._subscribe("object"==typeof t?t:Te(t,e,n))},e.subscribeOnNext=function(e,n){return this._subscribe(Te(void 0!==n?function(t){e.call(n,t)}:e))},e.subscribeOnError=function(e,n){return this._subscribe(Te(null,void 0!==n?function(t){e.call(n,t)}:e))},e.subscribeOnCompleted=function(t,e){return this._subscribe(Te(null,null,void 0!==e?function(){t.call(e)}:t))},Ae);function Ae(){var t,e,r,i;o.config.longStackSupport&&H&&(t=this._subscribe,e=y(l)(new Error).e,this.stack=e.stack.substring(e.stack.indexOf("\n")+1),this._subscribe=(r=this,i=t,function(e){var n=e.onError;return e.onError=function(t){z(t,r),n.call(e,t)},i.call(r,e)}))}var De,Oe=o.internals.ScheduledObserver=(n(Re,De=D),Re.prototype.next=function(t){var e,n;this.queue.push((e=this.observer,n=t,function(){e.onNext(n)}))},Re.prototype.error=function(t){var e,n;this.queue.push((e=this.observer,n=t,function(){e.onError(n)}))},Re.prototype.completed=function(){var t;this.queue.push((t=this.observer,function(){t.onCompleted()}))},Re.prototype.ensureActive=function(){var t=!1;!this.hasFaulted&&0<this.queue.length&&(t=!this.isAcquired,this.isAcquired=!0),t&&this.disposable.setDisposable(this.scheduler.scheduleRecursive(this,Le))},Re.prototype.dispose=function(){De.prototype.dispose.call(this),this.disposable.dispose()},Re);
1function Re(t,e){De.call(this),this.scheduler=t,this.observer=e,this.isAcquired=!1,this.hasFaulted=!1,this.queue=[],this.disposable=new $}function Le(t,e){if(0<t.queue.length){var n=t.queue.shift(),n=y(n)();if(n===v)return t.queue=[],t.hasFaulted=!0,l(n.e);e(t)}else t.isAcquired=!1}var Ie,r=o.ObservableBase=(n(Pe,Ie=R),Pe.prototype._subscribe=function(t){var t=new Bs(t),e=[t,this];return _.scheduleRequired()?_.schedule(e,Me):Me(0,e),t},Pe.prototype.subscribeCore=t,Pe);function Me(t,e){var n=e[0],e=e[1],e=y(e.subscribeCore).call(e,n);e!==v||n.fail(v.e)||l(v.e),n.setDisposable((n=e)&&m(n.dispose)?n:m(n)?Mt(n):d)}function Pe(){Ie.call(this)}var Ne,Fe=o.FlatMapObservable=(n(Ue,Ne=r),Ue.prototype.subscribeCore=function(t){return this.source.subscribe(new je(t,this.selector,this.resultSelector,this))},n(je,D),je.prototype._wrapResult=function(t,n,r){return this.resultSelector?t.map(function(t,e){return this.resultSelector(n,t,r,e)},this):t},je.prototype.next=function(t){var e=this.i++,n=y(this.selector)(t,e,this.source);if(n===v)return this.o.onError(n.e);f(n)&&(n=L(n)),(at(n)||ot(n))&&(n=R.from(n)),this.o.onNext(this._wrapResult(n,t,e))},je.prototype.error=function(t){this.o.onError(t)},je.prototype.completed=function(){this.o.onCompleted()},Ue);function Ue(t,e,n,r){this.resultSelector=m(n)?n:null,this.selector=st(m(e)?e:function(){return e},r,3),this.source=t,Ne.call(this)}function je(t,e,n,r){this.i=0,this.selector=e,this.resultSelector=n,this.source=r,this.o=t,D.call(this)}t=o.internals.Enumerable=function(){};function Be(t){this._s=t,this.isDisposed=!1}Be.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.isDisposed=!0)};n(He,Ve=r),He.prototype.subscribeCore=function(t){var e=new $,t={isDisposed:!1,o:t,subscription:e,e:this.sources[p]()},n=_.scheduleRecursive(t,We);return new x([e,n,new Be(t)])},n(Ge,D),Ge.prototype.next=function(t){this._state.o.onNext(t)},Ge.prototype.error=function(t){this._state.o.onError(t)},Ge.prototype.completed=function(){this._recurse(this._state)};var Ve,qe=He;function He(t){this.sources=t,Ve.call(this)}function We(t,e){var n,r;if(!t.isDisposed)return(n=y(t.e.next).call(t.e))===v?t.o.onError(n.e):n.done?t.o.onCompleted():(n=n.value,f(n)&&(n=L(n)),r=new w,t.subscription.setDisposable(r),void r.setDisposable(n.subscribe(new Ge(t,e))))}function Ge(t,e){this._state=t,this._recurse=e,D.call(this)}t.prototype.concat=function(){return new qe(this)};n(Ye,ze=r),Ye.prototype.subscribeCore=function(t){var e=new $,t={isDisposed:!1,e:this.sources[p](),subscription:e,lastError:null,o:t},n=_.scheduleRecursive(t,Xe);return new x([e,n,new Be(t)])},n(Qe,D),Qe.prototype.next=function(t){this._state.o.onNext(t)},Qe.prototype.error=function(t){this._state.lastError=t,this._recurse(this._state)},Qe.prototype.completed=function(){this._state.o.onCompleted()};var ze,Ke=Ye;function Ye(t){this.sources=t,ze.call(this)}function Xe(t,e){var n,r;if(!t.isDisposed)return(n=y(t.e.next).call(t.e))===v?t.o.onError(n.e):n.done?null!==t.lastError?t.o.onError(t.lastError):t.o.onCompleted():(n=n.value,f(n)&&(n=L(n)),r=new w,t.subscription.setDisposable(r),void r.setDisposable(n.subscribe(new Qe(t,e))))}function Qe(t,e){this._state=t,this._recurse=e,D.call(this)}t.prototype.catchError=function(){return new Ke(this)};n(Ze,t),Ze.prototype[p]=function(){return new tn(this)},tn.prototype.next=function(){return 0===this.l?it:(0<this.l&&this.l--,{done:!1,value:this.v})};var Je=Ze;function Ze(t,e){this.v=t,this.c=null==e?-1:e}function tn(t){this.v=t.v,this.l=t.c}var en=t.repeat=function(t,e){return new Je(t,e)},nn=(n(rn,t),rn.prototype[p]=function(){return new on(this)},on.prototype.next=function(){return++this.i<this.l?{done:!1,value:this.fn?this.fn(this.s[this.i],this.i,this.s):this.s[this.i]}:it},rn);function rn(t,e,n){this.s=t,this.fn=e?st(e,n,3):null}function on(t){this.i=-1,this.s=t.s,this.l=this.s.length,this.fn=t.fn}var an,sn=t.of=function(t,e,n){return new nn(t,e,n)},un=(n(ln,an=r),ln.prototype.subscribeCore=function(t){return this.source.subscribe(new cn(t))},n(cn,D),cn.prototype.next=function(t){this.a.push(t)},cn.prototype.error=function(t){this.o.onError(t)},cn.prototype.completed=function(){this.o.onNext(this.a),this.o.onCompleted()},ln);function ln(t){this.source=t,an.call(this)}function cn(t){this.o=t,this.a=[],D.call(this)}e.toArray=function(){return new un(this)},R.create=function(t,e){return new I(t,e)};n(hn,pn=r),hn.prototype.subscribeCore=function(t){var e=y(this._f)();return(e===v?or(e.e):e=f(e)?L(e):e).subscribe(t)};var pn,dn=hn;function hn(t){this._f=t,pn.call(this)}var fn,gn=R.defer=function(t){return new dn(t)},mn=(n(vn,fn=r),vn.prototype.subscribeCore=function(t){return new yn(t,this.scheduler).run()},yn.prototype.run=function(){var t=this.observer;
1return this.scheduler===T?bn(0,t):this.scheduler.schedule(t,bn)},vn);function vn(t){this.scheduler=t,fn.call(this)}function yn(t,e){this.observer=t,this.scheduler=e}function bn(t,e){return e.onCompleted(),d}var wn,$n=new mn(T),En=R.empty=function(t){return(t=S(t)?t:T)===T?$n:new mn(t)},xn=(n(Sn,wn=r),Sn.prototype.subscribeCore=function(t){var r,i,o,e=function(t){var e=t[p];if(!e&&"string"==typeof t)return new _n(t)[p]();if(!e&&t.length!==g)return new kn(t)[p]();if(e)return t[p]();throw new TypeError("Object is not iterable")}(Object(this._iterable));return this._scheduler.scheduleRecursive(0,(r=t,i=e,o=this._fn,function(t,e){var n=y(i.next).call(i);return n===v?r.onError(n.e):n.done?r.onCompleted():(n=n.value,m(o)&&(n=y(o)(n,t))===v?r.onError(n.e):(r.onNext(n),void e(t+1)))}))},Sn);function Sn(t,e,n){this._iterable=t,this._fn=e,this._scheduler=n,wn.call(this)}var Tn=Math.pow(2,53)-1;function _n(t){this._s=t}function Cn(t){this._s=t,this._l=t.length,this._i=0}function kn(t){this._a=t}function An(t){this._a=t,this._l=function(t){t=+t.length;if(isNaN(t))return 0;if(0!=t&&function(t){return"number"==typeof t&&u.isFinite(t)}(t)){if((t=function(t){t=+t;if(0==t)return t;if(isNaN(t))return t;return t<0?-1:1}(t)*Math.floor(Math.abs(t)))<=0)return 0;if(Tn<t)return Tn}return t}(t),this._i=0}_n.prototype[p]=function(){return new Cn(this._s)},Cn.prototype[p]=function(){return this},Cn.prototype.next=function(){return this._i<this._l?{done:!1,value:this._s.charAt(this._i++)}:it},kn.prototype[p]=function(){return new An(this._a)},An.prototype[p]=function(){return this},An.prototype.next=function(){return this._i<this._l?{done:!1,value:this._a[this._i++]}:it};var Dn,On=R.from=function(t,e,n,r){if(null==t)throw new Error("iterable cannot be null.");if(e&&!m(e))throw new Error("mapFn when provided must be a function");var i;return e&&(i=st(e,n,2)),S(r)||(r=_),new xn(t,i,r)},Rn=(n(Ln,Dn=r),Ln.prototype.subscribeCore=function(t){return this._scheduler.scheduleRecursive(0,(n=t,r=this._args,i=r.length,function(t,e){t<i?(n.onNext(r[t]),e(t+1)):n.onCompleted()}));var n,r,i},Ln);function Ln(t,e){this._args=t,this._scheduler=e,Dn.call(this)}var In,Mn=R.fromArray=function(t,e){return S(e)||(e=_),new Rn(t,e)};function Pn(){In.call(this)}n(Pn,In=r),Pn.prototype.subscribeCore=function(t){return d};var Nn=new Pn,Fn=R.never=function(){return Nn};function Un(t,e){return S(t)||(t=_),new Rn(e,t)}R.of=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new Rn(e,_)},R.ofWithScheduler=function(t){for(var e=arguments.length,n=new Array(e-1),r=1;r<e;r++)n[r-1]=arguments[r];return new Rn(n,t)};n(Vn,jn=r),Vn.prototype.subscribeCore=function(t){return this._scheduler.scheduleRecursive(0,(r=t,i=this._o,o=this._keys,function(t,e){var n;t<o.length?(n=o[t],r.onNext([n,i[n]]),e(t+1)):r.onCompleted()}));var r,i,o};var jn,Bn=Vn;function Vn(t,e){this._o=t,this._keys=Object.keys(t),this._scheduler=e,jn.call(this)}R.pairs=function(t,e){return new Bn(t,e=e||_)};n(Wn,qn=r),Wn.prototype.subscribeCore=function(t){return this.scheduler.scheduleRecursive(0,(n=this.start,r=this.rangeCount,i=t,function(t,e){t<r?(i.onNext(n+t),e(t+1)):i.onCompleted()}));var n,r,i};var qn,Hn=Wn;function Wn(t,e,n){this.start=t,this.rangeCount=e,this.scheduler=n,qn.call(this)}R.range=function(t,e,n){return S(n)||(n=_),new Hn(t,e,n)};n(Kn,Gn=r),Kn.prototype.subscribeCore=function(t){return new Yn(t,this).run()};var Gn,zn=Kn;function Kn(t,e,n){this.value=t,this.repeatCount=null==e?-1:e,this.scheduler=n,Gn.call(this)}function Yn(t,e){this.observer=t,this.parent=e}Yn.prototype.run=function(){var n=this.observer,r=this.parent.value;return this.parent.scheduler.scheduleRecursive(this.parent.repeatCount,function(t,e){if((-1===t||0<t)&&(n.onNext(r),0<t)&&t--,0===t)return n.onCompleted();e(t)})},R.repeat=function(t,e,n){return S(n)||(n=_),new zn(t,e,n)};n(Jn,Xn=r),Jn.prototype.subscribeCore=function(t){t=[this._value,t];return this._scheduler===T?Zn(0,t):this._scheduler.schedule(t,Zn)};var Xn,Qn=Jn;function Jn(t,e){this._value=t,this._scheduler=e,Xn.call(this)}function Zn(t,e){var n=e[0],e=e[1];return e.onNext(n),e.onCompleted(),d}R.return=R.just=function(t,e){return S(e)||(e=T),new Qn(t,e)};n(nr,tr=r),nr.prototype.subscribeCore=function(t){t=[this._error,t];
1return this._scheduler===T?rr(0,t):this._scheduler.schedule(t,rr)};var tr,er=nr;function nr(t,e){this._error=t,this._scheduler=e,tr.call(this)}function rr(t,e){var n=e[0];return e[1].onError(n),d}var ir,or=R.throw=function(t,e){return S(e)||(e=T),new er(t,e)},ar=(n(sr,ir=r),sr.prototype.subscribeCore=function(t){var e=new w,n=new $;return n.setDisposable(e),e.setDisposable(this.source.subscribe(new lr(t,n,this._fn))),n},sr);function sr(t,e){this.source=t,this._fn=e,ir.call(this)}n(cr,ur=D),cr.prototype.next=function(t){this._o.onNext(t)},cr.prototype.completed=function(){return this._o.onCompleted()},cr.prototype.error=function(t){t=y(this._fn)(t);if(t===v)return this._o.onError(t.e);f(t)&&(t=L(t));var e=new w;this._s.setDisposable(e),e.setDisposable(t.subscribe(this._o))};var ur,lr=cr;function cr(t,e,n){this._o=t,this._s=e,this._fn=n,ur.call(this)}e.catch=function(t){return m(t)?new ar(this,t):pr([this,t])};var pr=R.catch=function(){if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return sn(e).catchError()};function dr(){return!1}function hr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.combineLatest=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(Array.isArray(e[0])?e[0]:e).unshift(this),$r.apply(this,e)};n(mr,fr=r),mr.prototype.subscribeCore=function(t){for(var e=this._params.length,n=new Array(e),r={hasValue:Rt(e,dr),hasValueAll:!1,isDone:Rt(e,dr),values:new Array(e)},i=0;i<e;i++){var o=this._params[i],a=new w;n[i]=a,f(o)&&(o=L(o)),a.setDisposable(o.subscribe(new yr(t,i,this._cb,r)))}return new x(n)};var fr,gr=mr;function mr(t,e){this._params=t,this._cb=e,fr.call(this)}n(br,vr=D),br.prototype.next=function(t){if(this._state.values[this._i]=t,this._state.hasValue[this._i]=!0,this._state.hasValueAll||(this._state.hasValueAll=this._state.hasValue.every(c))){t=y(this._cb).apply(null,this._state.values);if(t===v)return this._o.onError(t.e);this._o.onNext(t)}else this._state.isDone.filter((n=this._i,function(t,e){return e!==n})).every(c)&&this._o.onCompleted();var n},br.prototype.error=function(t){this._o.onError(t)},br.prototype.completed=function(){this._state.isDone[this._i]=!0,this._state.isDone.every(c)&&this._o.onCompleted()};var vr,yr=br;function br(t,e,n,r){this._o=t,this._i=e,this._cb=n,this._state=r,vr.call(this)}var wr,$r=R.combineLatest=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=m(e[t-1])?e.pop():hr;return Array.isArray(e[0])&&(e=e[0]),new gr(e,r)},Er=(e.concat=function(){for(var t=[],e=0,n=arguments.length;e<n;e++)t.push(arguments[e]);return t.unshift(this),Ar.apply(null,t)},n(xr,wr=D),xr.prototype.next=function(t){this._s.o.onNext(t)},xr.prototype.error=function(t){this._s.o.onError(t)},xr.prototype.completed=function(){this._s.i++,this._fn(this._s)},xr);function xr(t,e){this._s=t,this._fn=e,wr.call(this)}n(_r,Sr=r),_r.prototype.subscribeCore=function(t){var e=new $,n=Mt(a),t={o:t,i:0,subscription:e,disposable:n,sources:this._sources},t=T.scheduleRecursive(t,Cr);return new x([e,n,t])};var Sr,Tr=_r;function _r(t){this._sources=t,Sr.call(this)}function Cr(t,e){if(!t.disposable.isDisposed){if(t.i===t.sources.length)return t.o.onCompleted();var n=t.sources[t.i],r=(f(n)&&(n=L(n)),new w);t.subscription.setDisposable(r),r.setDisposable(n.subscribe(new Er(t,e)))}}
1var kr,Ar=R.concat=function(){if(Array.isArray(arguments[0]))t=arguments[0];else for(var t=new Array(arguments.length),e=0,n=arguments.length;e<n;e++)t[e]=arguments[e];return new Tr(t)},Dr=(e.concatAll=function(){return this.merge(1)},n(Or,kr=r),Or.prototype.subscribeCore=function(t){var e=new Lt;return e.add(this.source.subscribe(new Lr(t,this.maxConcurrent,e))),e},Or);function Or(t,e){this.source=t,this.maxConcurrent=e,kr.call(this)}n(Ir,Rr=D),Ir.prototype.handleSubscribe=function(t){var e=new w;this.g.add(e),f(t)&&(t=L(t)),e.setDisposable(t.subscribe(new Mr(this,e)))},Ir.prototype.next=function(t){this.activeCount<this.max?(this.activeCount++,this.handleSubscribe(t)):this.q.push(t)},Ir.prototype.error=function(t){this.o.onError(t)},Ir.prototype.completed=function(){this.done=!0,0===this.activeCount&&this.o.onCompleted()},n(Mr,Rr),Mr.prototype.next=function(t){this.parent.o.onNext(t)},Mr.prototype.error=function(t){this.parent.o.onError(t)},Mr.prototype.completed=function(){this.parent.g.remove(this.sad),0<this.parent.q.length?this.parent.handleSubscribe(this.parent.q.shift()):(this.parent.activeCount--,this.parent.done&&0===this.parent.activeCount&&this.parent.o.onCompleted())};var Rr,Lr=Ir;function Ir(t,e,n){this.o=t,this.max=e,this.g=n,this.done=!1,this.q=[],this.activeCount=0,Rr.call(this)}function Mr(t,e){this.parent=t,this.sad=e,Rr.call(this)}e.merge=function(t){return"number"!=typeof t?Nr(this,t):new Dr(this,t)};var Pr,Nr=R.merge=function(){var t,e,n=[],r=arguments.length;if(arguments[0])if(S(arguments[0]))for(t=arguments[0],e=1;e<r;e++)n.push(arguments[e]);else for(t=T,e=0;e<r;e++)n.push(arguments[e]);else for(t=T,e=1;e<r;e++)n.push(arguments[e]);return Un(t,n=Array.isArray(n[0])?n[0]:n).mergeAll()},Fr=o.CompositeError=function(t){this.innerErrors=t,this.message="This contains multiple errors. Check the innerErrors",Error.call(this)},Ur=((Fr.prototype=Object.create(Error.prototype)).name="CompositeError",n(jr,Pr=r),jr.prototype.subscribeCore=function(t){var e=new Lt,n=new w,t={isStopped:!1,errors:[],o:t};return e.add(n),n.setDisposable(this.source.subscribe(new Vr(e,t))),e},jr);function jr(t){this.source=t,Pr.call(this)}n(qr,Br=D),qr.prototype.next=function(t){var e=new w;this._group.add(e),f(t)&&(t=L(t)),e.setDisposable(t.subscribe(new Wr(e,this._group,this._state)))},qr.prototype.error=function(t){this._state.errors.push(t),this._state.isStopped=!0,1===this._group.length&&Hr(this._state.o,this._state.errors)},qr.prototype.completed=function(){this._state.isStopped=!0,1===this._group.length&&Hr(this._state.o,this._state.errors)},n(Wr,Br),Wr.prototype.next=function(t){this._state.o.onNext(t)},Wr.prototype.error=function(t){this._state.errors.push(t),this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&Hr(this._state.o,this._state.errors)},Wr.prototype.completed=function(){this._group.remove(this._inner),this._state.isStopped&&1===this._group.length&&Hr(this._state.o,this._state.errors)};var Br,Vr=qr;function qr(t,e){this._group=t,this._state=e,Br.call(this)}function Hr(t,e){0===e.length?t.onCompleted():1===e.length?t.onError(e[0]):t.onError(new Fr(e))}function Wr(t,e,n){this._inner=t,this._group=e,this._state=n,Br.call(this)}R.mergeDelayError=function(){if(Array.isArray(arguments[0]))e=arguments[0];else for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Un(null,e);return new Ur(r)};n(Kr,Gr=r),Kr.prototype.subscribeCore=function(t){var e=new Lt,n=new w;return e.add(n),n.setDisposable(this.source.subscribe(new Xr(t,e))),e};var Gr,zr=Kr;function Kr(t){this.source=t,Gr.call(this)}n(Qr,Yr=D),Qr.prototype.next=function(t){var e=new w;this.g.add(e),f(t)&&(t=L(t)),e.setDisposable(t.subscribe(new Jr(this,e)))},Qr.prototype.error=function(t){this.o.onError(t)},Qr.prototype.completed=function(){this.done=!0,1===this.g.length&&this.o.onCompleted()},n(Jr,Yr),Jr.prototype.next=function(t){this.parent.o.onNext(t)},Jr.prototype.error=function(t){this.parent.o.onError(t)},Jr.prototype.completed=function(){this.parent.g.remove(this.sad),this.parent.done&&1===this.parent.g.length&&this.parent.o.onCompleted()};var Yr,Xr=Qr;function Qr(t,e){this.o=t,this.g=e,this.done=!1,Yr.call(this)}function Jr(t,e){this.parent=t,this.sad=e,Yr.call(this)}e.mergeAll=function(){return new zr(this)};n(ei,Zr=r),ei.prototype.subscribeCore=function(t){var e=new w,n=(e.setDisposable(this._s.subscribe(new ri(t,this))),f(this._o)&&(this._o=L(this._o)),new w);return n.setDisposable(this._o.subscribe(new ai(t,this,n))),new E(e,n)};var Zr,ti=ei;function ei(t,e){this._s=t,this._o=f(e)?L(e):e,this._open=!1,Zr.call(this)}n(ii,ni=D),ii.prototype.next=function(t){this._p._open&&this._o.onNext(t)},ii.prototype.error=function(t){this._o.onError(t)},ii.prototype.onCompleted=function(){this._p._open&&this._o.onCompleted()};var ni,ri=ii;function ii(t,e){this._o=t,this._p=e,ni.call(this)}n(si,oi=D),si.prototype.next=function(){this._p._open=!0,this._r.dispose()},si.prototype.error=function(t){this._o.onError(t)},si.prototype.onCompleted=function(){this._r.dispose()};var oi,ai=si;function si(t,e,n){this._o=t,this._p=e,this._r=n,oi.call(this)}e.skipUntil=function(t){return new ti(this,t)};n(ci,ui=r),ci.prototype.subscribeCore=function(t){var e=new $,t=this.source.subscribe(new pi(t,e));return new E(t,e)},n(pi,D),pi.prototype.next=function(t){var e=new w,n=++this.latest;this.hasLatest=!0,this.inner.setDisposable(e),f(t)&&(t=L(t)),e.setDisposable(t.subscribe(new di(this,n)))},pi.prototype.error=function(t){this.o.onError(t)},pi.prototype.completed=function(){this.stopped=!0,this.hasLatest||this.o.onCompleted()},n(di,D),di.prototype.next=function(t){this.parent.latest===this.id&&this.parent.o.onNext(t)},di.prototype.error=function(t){this.parent.latest===this.id&&this.parent.o.onError(t)},di.prototype.completed=function(){this.parent.latest===this.id&&(this.parent.hasLatest=!1,this.parent.stopped)&&this.parent.o.onCompleted()};var ui,li=ci;function ci(t){this.source=t,ui.call(this)}function pi(t,e){this.o=t,this.inner=e,this.stopped=!1,this.latest=0,this.hasLatest=!1,D.call(this)}function di(t,e){this.parent=t,this.id=e,D.call(this)}e.switch=e.switchLatest=function(){return new li(this)};n(gi,hi=r),gi.prototype.subscribeCore=function(t){return new E(this.source.subscribe(t),this.other.subscribe(new vi(t)))};var hi,fi=gi;function gi(t,e){this.source=t,this.other=f(e)?L(e):e,hi.call(this)}n(yi,mi=D),yi.prototype.next=function(){this._o.onCompleted()},yi.prototype.error=function(t){this._o.onError(t)},yi.prototype.onCompleted=a;var mi,vi=yi;function yi(t){this._o=t,mi.call(this)}function dr(){return!1}function hr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.takeUntil=function(t){return new fi(this,t)};n($i,bi=r),$i.prototype.subscribeCore=function(t){for(var e=this._ss.length,n={hasValue:Rt(e,dr),hasValueAll:!1,values:new Array(e)},r=this._ss.length,i=new Array(r+1),o=0;o<r;o++){var a=this._ss[o],s=new w;f(a)&&(a=L(a)),s.setDisposable(a.subscribe(new xi(t,o,n))),i[o]=s}e=new w;return e.setDisposable(this._s.subscribe(new _i(t,this._cb,n))),i[r]=e,new x(i)};var bi,wi=$i;function $i(t,e,n){this._s=t,this._ss=e,this._cb=n,bi.call(this)}n(Si,Ei=D),Si.prototype.next=function(t){this._state.values[this._i]=t,this._state.hasValue[this._i]=!0,this._state.hasValueAll=this._state.hasValue.every(c)},Si.prototype.error=function(t){this._o.onError(t)},Si.prototype.completed=a;var Ei,xi=Si;function Si(t,e,n){this._o=t,this._i=e,this._state=n,Ei.call(this)}n(Ci,Ti=D),Ci.prototype.next=function(t){var t=[t].concat(this._state.values);if(this._state.hasValueAll)return(t=y(this._cb).apply(null,t))===v?this._o.onError(t.e):void this._o.onNext(t)},Ci.prototype.error=function(t){this._o.onError(t)},Ci.prototype.completed=function(){this._o.onCompleted()};var Ti,_i=Ci;function Ci(t,e,n){this._o=t,this._cb=e,this._state=n,Ti.call(this)}function dr(){return!1}function ki(){return[]}e.withLatestFrom=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=m(e[t-1])?e.pop():hr;return Array.isArray(e[0])&&(e=e[0]),new wi(this,e,r)};n(Oi,Ai=r),Oi.prototype.subscribeCore=function(t){for(var e=this._s.length,n=new Array(e),r=Rt(e,dr),i=Rt(e,ki),o=0;o<e;o++){var a=this._s[o],s=new w;n[o]=s,f(a)&&(a=L(a)),s.setDisposable(a.subscribe(new Li(t,o,this,i,r)))}return new x(n)};var Ai,Di=Oi;function Oi(t,e){this._s=t,this._cb=e,Ai.call(this)}n(Ii,Ri=D),Ii.prototype.next=function(t){if(this._q[this._i].push(t),this._q.every(Mi)){t=this._q.map(Pi),t=y(this._p._cb).apply(null,t);if(t===v)return this._o.onError(t.e);this._o.onNext(t)}else this._d.filter((n=this._i,function(t,e){return e!==n})).every(c)&&this._o.onCompleted();var n},Ii.prototype.error=function(t){this._o.onError(t)},Ii.prototype.completed=function(){this._d[this._i]=!0,this._d.every(c)&&this._o.onCompleted()};var Ri,Li=Ii;function Ii(t,e,n,r,i){this._o=t,this._i=e,this._p=n,this._q=r,this._d=i,Ri.call(this)}function Mi(t){return 0<t.length}function Pi(t){return t.shift()}function dr(){return!1}function ki(){return[]}function hr(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e}e.zip=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=m(e[t-1])?e.pop():hr;return(e=Array.isArray(e[0])?e[0]:e).unshift(this),new Di(e,r)},R.zip=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=(e=Array.isArray(e[0])?m(e[1])?e[0].concat(e[1]):e[0]:e).shift();return r.zip.apply(r,e)};n(Ui,Ni=r),Ui.prototype.subscribeCore=function(t){for(var e,n,r,i=this.sources,o=i.length,a=new Array(o),s={q:Rt(o,ki),done:Rt(o,dr),cb:this._cb,o:t},u=0;u<o;u++)r=n=void 0,n=i[e=u],r=new w,(at(n)||ot(n))&&(n=On(n)),(a[e]=r).setDisposable(n.subscribe(new Bi(s,e)));return new x(a)};var Ni,Fi=Ui;function Ui(t,e){this.sources=t,this._cb=e,Ni.call(this)}n(Vi,ji=D),Vi.prototype.next=function(t){if(this._s.q[this._i].push(t),this._s.q.every(qi)){t=this._s.q.map(Hi),t=y(this._s.cb).apply(null,t);if(t===v)return this._s.o.onError(t.e);this._s.o.onNext(t)}else this._s.done.filter((n=this._i,function(t,e){return e!==n})).every(c)&&this._s.o.onCompleted();var n},Vi.prototype.error=function(t){this._s.o.onError(t)},Vi.prototype.completed=function(){this._s.done[this._i]=!0,this._s.done.every(c)&&this._s.o.onCompleted()};var ji,Bi=Vi;function Vi(t,e){this._s=t,this._i=e,ji.call(this)}function qi(t){return 0<t.length}function Hi(t){return t.shift()}e.zipIterable=function(){if(0===arguments.length)throw new Error("invalid arguments");for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=m(e[t-1])?e.pop():hr;return e.unshift(this),new Fi(e,r)},e.asObservable=function(){return new I(function(t){return e.subscribe(t)},e=this);var e};n(zi,Wi=r),zi.prototype.subscribeCore=function(t){return this.source.subscribe(new Yi(t))};var Wi,Gi=zi;function zi(t){this.source=t,Wi.call(this)}n(Xi,Ki=D),Xi.prototype.next=function(t){t.accept(this._o)},Xi.prototype.error=function(t){this._o.onError(t)},Xi.prototype.completed=function(){this._o.onCompleted()};var Ki,Yi=Xi;function Xi(t){this._o=t,Ki.call(this)}e.dematerialize=function(){return new Gi(this)};n(Zi,Qi=r),Zi.prototype.subscribeCore=function(t){return this.source.subscribe(new eo(t,this.keyFn,this.comparer))};var Qi,Ji=Zi;function Zi(t,e,n){this.source=t,this.keyFn=e,this.comparer=n,Qi.call(this)}n(no,to=D),no.prototype.next=function(t){var e,n=t;return m(this.keyFn)&&(n=y(this.keyFn)(t))===v?this.o.onError(n.e):this.hasCurrentKey&&(e=y(this.comparer)(this.currentKey,n))===v?this.o.onError(e.e):void(this.hasCurrentKey&&e||(this.hasCurrentKey=!0,this.currentKey=n,this.o.onNext(t)))},no.prototype.error=function(t){this.o.onError(t)},no.prototype.completed=function(){this.o.onCompleted()};var to,eo=no;function no(t,e,n){this.o=t,this.keyFn=e,this.comparer=n,this.hasCurrentKey=!1,this.currentKey=null,to.call(this)}e.distinctUntilChanged=function(t,e){return new Ji(this,t,e=e||j)};n(oo,ro=r),oo.prototype.subscribeCore=function(t){return this.source.subscribe(new ao(t,this))},n(ao,D),ao.prototype.next=function(t){var e=y(this.t.onNext).call(this.t,t);e===v&&this.o.onError(e.e),this.o.onNext(t)},ao.prototype.error=function(t){var e=y(this.t.onError).call(this.t,t);if(e===v)return this.o.onError(e.e);this.o.onError(t)},ao.prototype.completed=function(){var t=y(this.t.onCompleted).call(this.t);if(t===v)return this.o.onError(t.e);this.o.onCompleted()};var ro,io=oo;function oo(t,e,n,r){this.source=t,this._oN=e,this._oE=n,this._oC=r,ro.call(this)}function ao(t,e){this.o=t,this.t=!e._oN||m(e._oN)?Te(e._oN||a,e._oE||a,e._oC||a):e._oN,this.isStopped=!1,D.call(this)}e.do=e.tap=e.doAction=function(t,e,n){return new io(this,t,e,n)},e.doOnNext=e.tapOnNext=function(e,n){return this.tap(void 0!==n?function(t){e.call(n,t)}:e)},e.doOnError=e.tapOnError=function(e,n){return this.tap(a,void 0!==n?function(t){e.call(n,t)}:e)},e.doOnCompleted=e.tapOnCompleted=function(t,e){return this.tap(a,null,void 0!==e?function(){t.call(e)}:t)};n(lo,so=r),lo.prototype.subscribeCore=function(t){t=y(this.source.subscribe).call(this.source,t);return t===v&&(this._fn(),l(t.e)),new co(t,this._fn)},co.prototype.dispose=function(){var t;this.isDisposed||(t=y(this._s.dispose).call(this._s),this._fn(),t===v&&l(t.e))};var so,uo=lo;function lo(t,e,n){this.source=t,this._fn=st(e,n,0),so.call(this)}function co(t,e){this.isDisposed=!1,this._s=t,this._fn=e}e.finally=function(t,e){return new uo(this,t,e)};n(fo,po=r),fo.prototype.subscribeCore=function(t){return this.source.subscribe(new go(t))},go.prototype.onNext=a,go.prototype.onError=function(t){this.isStopped||(this.isStopped=!0,this.o.onError(t))},go.prototype.onCompleted=function(){this.isStopped||(this.isStopped=!0,this.o.onCompleted())},go.prototype.dispose=function(){this.isStopped=!0},go.prototype.fail=function(t){return!this.isStopped&&(this.isStopped=!0,this.observer.onError(t),!0)};var po,ho=fo;function fo(t){this.source=t,po.call(this)}function go(t){this.o=t,this.isStopped=!1}e.ignoreElements=function(){return new ho(this)};n(yo,mo=r),yo.prototype.subscribeCore=function(t){return this.source.subscribe(new wo(t))};var mo,vo=yo;function yo(t,e){this.source=t,mo.call(this)}n($o,bo=D),$o.prototype.next=function(t){this._o.onNext(Ee(t))},$o.prototype.error=function(t){this._o.onNext(xe(t)),this._o.onCompleted()},$o.prototype.completed=function(){this._o.onNext(Se()),this._o.onCompleted()};var bo,wo=$o;function $o(t){this._o=t,bo.call(this)}function Eo(t){return{"@@iterator":function(){return{next:function(){return{done:!1,value:t}}}}}}e.materialize=function(){return new vo(this)}
1,e.repeat=function(t){return en(this,t).concat()},e.retry=function(t){return en(this,t).catchError()};n(To,xo=r),To.prototype.subscribeCore=function(o){var t,a=new M,s=new M,e=this._notifier(a).subscribe(s),u=this.source["@@iterator"](),l={isDisposed:!1},c=new $,n=_.scheduleRecursive(null,function(t,e){var n,r,i;l.isDisposed||((n=u.next()).done?o.onCompleted():(n=n.value,f(n)&&(n=L(n)),r=new w,i=new w,c.setDisposable(new E(i,r)),r.setDisposable(n.subscribe(function(t){o.onNext(t)},function(t){i.setDisposable(s.subscribe(e,function(t){o.onError(t)},function(){o.onCompleted()})),a.onNext(t),r.dispose()},function(){o.onCompleted()}))))});return new x([e,c,n,(t=l,{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,t.isDisposed=!0)}})])};var xo,So=To;function To(t,e){this.source=t,this._notifier=e,xo.call(this)}function Eo(t){return{"@@iterator":function(){return{next:function(){return{done:!1,value:t}}}}}}e.retryWhen=function(t){return new So(Eo(this),t)};n(ko,_o=r),ko.prototype.subscribeCore=function(o){var t,a=new M,s=new M,e=this._notifier(a).subscribe(s),u=this.source["@@iterator"](),l={isDisposed:!1},c=new $,n=_.scheduleRecursive(null,function(t,e){var n,r,i;l.isDisposed||((n=u.next()).done?o.onCompleted():(n=n.value,f(n)&&(n=L(n)),r=new w,i=new w,c.setDisposable(new E(i,r)),r.setDisposable(n.subscribe(function(t){o.onNext(t)},function(t){o.onError(t)},function(){i.setDisposable(s.subscribe(e,function(t){o.onError(t)},function(){o.onCompleted()})),a.onNext(null),r.dispose()}))))});return new x([e,c,n,(t=l,{isDisposed:!1,dispose:function(){this.isDisposed||(this.isDisposed=!0,t.isDisposed=!0)}})])};var _o,Co=ko;function ko(t,e){this.source=t,this._notifier=e,_o.call(this)}e.repeatWhen=function(t){return new Co(Eo(this),t)};n(Oo,Ao=r),Oo.prototype.subscribeCore=function(t){return this.source.subscribe(new Lo(t,this))};var Ao,Do=Oo;function Oo(t,e,n,r){this.source=t,this.accumulator=e,this.hasSeed=n,this.seed=r,Ao.call(this)}n(Io,Ro=D),Io.prototype.next=function(t){if(this._hv||(this._hv=!0),this._ha?this._a=y(this._fn)(this._a,t,this._i,this._p):(this._a=this._hs?y(this._fn)(this._s,t,this._i,this._p):t,this._ha=!0),this._a===v)return this._o.onError(this._a.e);this._o.onNext(this._a),this._i++},Io.prototype.error=function(t){this._o.onError(t)},Io.prototype.completed=function(){!this._hv&&this._hs&&this._o.onNext(this._s),this._o.onCompleted()};var Ro,Lo=Io;function Io(t,e){this._o=t,this._p=e,this._fn=e.accumulator,this._hs=e.hasSeed,this._s=e.seed,this._ha=!1,this._a=null,this._hv=!1,this._i=0,Ro.call(this)}e.scan=function(){var t,e=!1,n=arguments[0];return 2===arguments.length&&(e=!0,t=arguments[1]),new Do(this,n,e,t)};n(No,Mo=r),No.prototype.subscribeCore=function(t){return this.source.subscribe(new Uo(t,this._c))};var Mo,Po=No;function No(t,e){this.source=t,this._c=e,Mo.call(this)}n(jo,Fo=D),jo.prototype.next=function(t){this._q.push(t),this._q.length>this._c&&this._o.onNext(this._q.shift())},jo.prototype.error=function(t){this._o.onError(t)},jo.prototype.completed=function(){this._o.onCompleted()};var Fo,Uo=jo;function jo(t,e){this._o=t,this._c=e,this._q=[],Fo.call(this)}e.skipLast=function(t){if(t<0)throw new et;return new Po(this,t)},e.startWith=function(){var t,e=0;arguments.length&&S(arguments[0])?(t=arguments[0],e=1):t=T;for(var n=[],r=e,i=arguments.length;r<i;r++)n.push(arguments[r]);return Ar.apply(null,[Mn(n,t),this])};n(qo,Bo=D),qo.prototype.next=function(t){this._q.push(t),this._q.length>this._c&&this._q.shift()},qo.prototype.error=function(t){this._o.onError(t)},qo.prototype.completed=function(){for(;0<this._q.length;)this._o.onNext(this._q.shift());this._o.onCompleted()};var Bo,Vo=qo;function qo(t,e){this._o=t,this._c=e,this._q=[],Bo.call(this)}e.takeLast=function(e){if(e<0)throw new et;var n=this;return new I(function(t){return n.subscribe(new Vo(t,e))},n)},e.flatMapConcat=e.concatMap=function(t,e,n){return new Fe(this,t,e,n).merge(1)};n(Go,Ho=r),Go.prototype.internalMap=function(t,e){return new Go(this.source,(r=t,i=this,function(t,e,n){return r.call(this,i.selector(t,e,n),e,n)}),e);var r,i},Go.prototype.subscribeCore=function(t){return this.source.subscribe(new zo(t,this.selector,this))},n(zo,D),zo.prototype.next=function(t){t=y(this.selector)(t,this.i++,this.source);if(t===v)return this.o.onError(t.e);this.o.onNext(t)},zo.prototype.error=function(t){this.o.onError(t)},zo.prototype.completed=function(){this.o.onCompleted()};var Ho,Wo=Go;function Go(t,e,n){this.source=t,this.selector=st(e,n,3),Ho.call(this)}function zo(t,e,n){this.o=t,this.selector=e,this.source=n,this.i=0,D.call(this)}e.map=e.select=function(t,e){var n="function"==typeof t?t:function(){return t};return this instanceof Wo?this.internalMap(n,e):new Wo(this,n,e)},e.pluck=function(){var t=arguments.length,e=new Array(t);if(0===t)throw new Error("List of properties cannot be empty.");for(var i,o,n=0;n<t;n++)e[n]=arguments[n];return this.map((i=e,o=t,function(t){for(var e=t,n=0;n<o;n++){var r=e[i[n]];if(void 0===r)return g;e=r}return e}))},e.flatMap=e.selectMany=e.mergeMap=function(t,e,n){return new Fe(this,t,e,n).mergeAll()},e.flatMapLatest=e.switchMap=function(t,e,n){return new Fe(this,t,e,n).switchLatest()};n(Xo,Ko=r),Xo.prototype.subscribeCore=function(t){return this.source.subscribe(new Qo(t,this._count))},n(Qo,D),Qo.prototype.next=function(t){this._r<=0?this._o.onNext(t):this._r--},Qo.prototype.error=function(t){this._o.onError(t)},Qo.prototype.completed=function(){this._o.onCompleted()};var Ko,Yo=Xo;function Xo(t,e){this.source=t,this._count=e,Ko.call(this)}function Qo(t,e){this._o=t,this._r=e,D.call(this)}e.skip=function(t){if(t<0)throw new et;return new Yo(this,t)};n(ta,Jo=r),ta.prototype.subscribeCore=function(t){return this.source.subscribe(new na(t,this))};var Jo,Zo=ta;function ta(t,e){this.source=t,this._fn=e,Jo.call(this)}n(ra,ea=D),ra.prototype.next=function(t){if(!this._r){var e=y(this._p._fn)(t,this._i++,this._p);if(e===v)return this._o.onError(e.e);this._r=!e}this._r&&this._o.onNext(t)},ra.prototype.error=function(t){this._o.onError(t)},ra.prototype.completed=function(){this._o.onCompleted()};var ea,na=ra;function ra(t,e){this._o=t,this._p=e,this._i=0,this._r=!1,ea.call(this)}e.skipWhile=function(t,e){t=st(t,e,3);return new Zo(this,t)};n(aa,ia=r),aa.prototype.subscribeCore=function(t){return this.source.subscribe(new sa(t,this._count))},n(sa,D),sa.prototype.next=function(t){0<this._r--&&(this._o.onNext(t),this._r<=0)&&this._o.onCompleted()},sa.prototype.error=function(t){this._o.onError(t)},sa.prototype.completed=function(){this._o.onCompleted()};var ia,oa=aa;function aa(t,e){this.source=t,this._count=e,ia.call(this)}function sa(t,e){this._o=t,this._c=e,this._r=e,D.call(this)}e.take=function(t,e){if(t<0)throw new et;return 0===t?En(e):new oa(this,t)};n(ca,ua=r),ca.prototype.subscribeCore=function(t){return this.source.subscribe(new da(t,this))};var ua,la=ca;function ca(t,e){this.source=t,this._fn=e,ua.call(this)}n(ha,pa=D),ha.prototype.next=function(t){if(this._r&&(this._r=y(this._p._fn)(t,this._i++,this._p),this._r===v))return this._o.onError(this._r.e);this._r?this._o.onNext(t):this._o.onCompleted()},ha.prototype.error=function(t){this._o.onError(t)},ha.prototype.completed=function(){this._o.onCompleted()};var pa,da=ha;function ha(t,e){this._o=t,this._p=e,this._i=0,this._r=!0,pa.call(this)}e.takeWhile=function(t,e){t=st(t,e,3);return new la(this,t)};n(ma,fa=r),ma.prototype.subscribeCore=function(t){return this.source.subscribe(new va(t,this.predicate,this))},ma.prototype.internalFilter=function(t,e){return new ma(this.source,(r=t,i=this,function(t,e,n){return i.predicate(t,e,n)&&r.call(this,t,e,n)}),e);var r,i},n(va,D),va.prototype.next=function(t){var e=y(this.predicate)(t,this.i++,this.source);if(e===v)return this.o.onError(e.e);e&&this.o.onNext(t)},va.prototype.error=function(t){this.o.onError(t)},va.prototype.completed=function(){this.o.onCompleted()};var fa,ga=ma;function ma(t,e,n){this.source=t,this.predicate=st(e,n,3),fa.call(this)}function va(t,e,n){this.o=t,this.predicate=e,this.source=n,this.i=0,D.call(this)}function ya(t,e,n,r){var i,o,a,s=new zs;return r.push((i=s,o=e,a=n,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];
1if(m(a)){if((e=y(a).apply(o,e))===v)return i.onError(e.e);i.onNext(e)}else e.length<=1?i.onNext(e[0]):i.onNext(e);i.onCompleted()})),t.apply(e,r),s.asObservable()}function ba(t,e,n,r){var i,o,a,s=new zs;return r.push((i=s,o=e,a=n,function(){var t=arguments[0];if(t)return i.onError(t);for(var e=arguments.length,n=[],r=1;r<e;r++)n[r-1]=arguments[r];if(m(a)){if((n=y(a).apply(o,n))===v)return i.onError(n.e);i.onNext(n)}else n.length<=1?i.onNext(n[0]):i.onNext(n);i.onCompleted()})),t.apply(e,r),s.asObservable()}function wa(t,e,n){this._e=t,this._n=e,this._fn=n,this._e.addEventListener(this._n,this._fn,!1),this.isDisposed=!1}function $a(t,e,n){var r,i=new Lt,o=Object.prototype.toString.call(t);if(r=t,(u.StaticNodeList?r instanceof u.StaticNodeList||r instanceof u.NodeList:"[object NodeList]"===Object.prototype.toString.call(r))||"[object HTMLCollection]"===o)for(var a=0,s=t.length;a<s;a++)i.add($a(t.item(a),e,n));else t&&i.add(new wa(t,e,n));return i}e.filter=e.where=function(t,e){return this instanceof ga?this.internalFilter(t,e):new ga(this,t,e)},R.fromCallback=function(r,i,o){return function(){void 0===i&&(i=this);for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ya(r,i,o,e)}},R.fromNodeCallback=function(r,i,o){return function(){void 0===i&&(i=this);for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return ba(r,i,o,e)}},o.config.useNativeEvents=!(wa.prototype.dispose=function(){this.isDisposed||(this._e.removeEventListener(this._n,this._fn,!1),this.isDisposed=!0)});n(Sa,Ea=r),Sa.prototype.subscribeCore=function(t){return $a(this._el,this._n,(e=t,n=this._fn,function(){var t=arguments[0];if(m(n)&&(t=y(n).apply(null,arguments))===v)return e.onError(t.e);e.onNext(t)}));var e,n};var Ea,xa=Sa;function Sa(t,e,n){this._el=t,this._n=e,this._fn=n,Ea.call(this)}R.fromEvent=function(e,n,t){return e.addListener?Da(function(t){e.addListener(n,t)},function(t){e.removeListener(n,t)},t):o.config.useNativeEvents||"function"!=typeof e.on||"function"!=typeof e.off?new xa(e,n,t).publish().refCount():Da(function(t){e.on(n,t)},function(t){e.off(n,t)},t)};n(Ca,Ta=r),Ca.prototype.subscribeCore=function(t){function e(){var t=arguments[0];if(m(r)&&(t=y(r).apply(null,arguments))===v)return n.onError(t.e);n.onNext(t)}n=t,r=this._fn;var n,r,t=this._add(e);return new ka(this._del,e,t)},ka.prototype.dispose=function(){this.isDisposed||(m(this._del)&&this._del(this._fn,this._ret),this.isDisposed=!0)};var Ta,_a=Ca;function Ca(t,e,n){this._add=t,this._del=e,this._fn=n,Ta.call(this)}function ka(t,e,n){this._del=t,this._fn=e,this._ret=n,this.isDisposed=!1}var Aa,Da=R.fromEventPattern=function(t,e,n){return new _a(t,e,n).publish().refCount()},Oa=(n(Ra,Aa=r),Ra.prototype.subscribeCore=function(e){var n=new w,r=this,t=this._p;return m(t)&&(t=y(t)())===v?e.onError(t.e):t.then(function(t){n.setDisposable(r._s.schedule([e,t],La))},function(t){n.setDisposable(r._s.schedule([e,t],Ia))}),n},Ra);function Ra(t,e){this._p=t,this._s=e,Aa.call(this)}function La(t,e){var n=e[0],e=e[1];n.onNext(e),n.onCompleted()}function Ia(t,e){var n=e[0],e=e[1];n.onError(e)}var Ma,L=R.fromPromise=function(t,e){return new Oa(t,e=e||k)},Pa=(e.toPromise=function(t){var r;if(t=t||o.config.Promise)return r=this,new t(function(t,e){var n;r.subscribe(function(t){n=t},e,function(){t(n)})});throw new nt("Promise type not provided nor in Rx.config.Promise")},R.startAsync=function(t){t=y(t)();return t===v?or(t.e):L(t)},n(Na,Ma=r),Na.prototype.subscribeCore=function(t){var e=this.source.multicast(this._fn1());return new E(this._fn2(e).subscribe(t),e.connect())},Na);function Na(t,e,n){this.source=t,this._fn1=e,this._fn2=n,Ma.call(this)}e.multicast=function(t,e){return m(t)?new Pa(this,t,e):new qa(this,t)},e.publish=function(t){return t&&m(t)?this.multicast(function(){return new M},t):this.multicast(new M)},e.share=function(){return this.publish().refCount()},e.publishLast=function(t){return t&&m(t)?this.multicast(function(){return new zs},t):this.multicast(new zs)},e.publishValue=function(t,e){return 2===arguments.length?this.multicast(function(){return new Zs(e)},t):this.multicast(new Zs(t))},e.shareValue=function(t){return this.publishValue(t).refCount()},e.replay=function(t,e,n,r){return t&&m(t)?this.multicast(function(){return new iu(e,n,r)},t):this.multicast(new iu(e,n,r))},e.shareReplay=function(t,e,n){return this.replay(null,t,e,n).refCount()};n(ja,Fa=r),ja.prototype.subscribeCore=function(t){t=this.source.subscribe(t);return 1==++this._count&&(this._connectableSubscription=this.source.connect()),new Ba(this,t)},Ba.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._s.dispose(),0==--this._p._count&&this._p._connectableSubscription.dispose())};var Fa,Ua=ja;function ja(t){this.source=t,this._count=0,this._connectableSubscription=null,Fa.call(this)}function Ba(t,e){this._p=t,this._s=e,this.isDisposed=!1}var Va,qa=o.ConnectableObservable=(n(Ha,Va=R),Wa.prototype.dispose=function(){this._s&&(this._s.dispose(),this._s=null,this._p._connection=null)},Ha.prototype.connect=function(){if(!this._connection){if(this._subject.isStopped)return d;var t=this._source.subscribe(this._subject);this._connection=new Wa(this,t)}return this._connection},Ha.prototype._subscribe=function(t){return this._subject.subscribe(t)},Ha.prototype.refCount=function(){return new Ua(this)},Ha);function Ha(t,e){this.source=t,this._connection=null,this._source=t.asObservable(),this._subject=e,Va.call(this)}function Wa(t,e){this._p=t,this._s=e}n(Ka,Ga=r),Ka.prototype.subscribeCore=function(t){return this._s.scheduleFuture(t,this._dt,Ya)};var Ga,za=Ka;function Ka(t,e){this._dt=t,this._s=e,Ga.call(this)}function Ya(t,e){e.onNext(0),e.onCompleted()}function Xa(t,e,a){return new I(function(r){var i=t,o=Vt(e);return a.scheduleRecursiveFuture(0,i,function(t,e){var n;0<o&&(n=a.now(),(i=new Date(i.getTime()+o)).getTime()<=n)&&(i=new Date(n+o)),r.onNext(t),e(t+1,new Date(i))})})}
1function Qa(t,n,r){return t===n?new I(function(e){return r.schedulePeriodic(0,n,function(t){return e.onNext(t),t+1})}):gn(function(){return Xa(new Date(r.now()+t),n,r)})}var Ja=R.interval=function(t,e){return Qa(t,t,S(e)?e:k)};R.timer=function(t,e,n){var r;return S(n)||(n=k),null!=e&&"number"==typeof e?r=e:S(e)&&(n=e),(t instanceof Date||"number"==typeof t)&&r===g?new za(t,n):t instanceof Date&&r!==g?Xa(t,e,n):Qa(t,r,n)};function Za(e,r,p){return new I(function(a){var s=!1,n=new $,u=null,l=[],c=!1,t=e.materialize().timestamp(p).subscribe(function(t){var e;"E"===t.value.kind?((l=[]).push(t),u=t.value.error,e=!c):(l.push({value:t.value,timestamp:t.timestamp+r}),e=!s,s=!0),e&&(null!==u?a.onError(u):(t=new w,n.setDisposable(t),t.setDisposable(p.scheduleRecursiveFuture(null,r,function(t,e){var n,r,i,o;if(null===u){for(c=!0;(i=null)!==(i=0<l.length&&l[0].timestamp-p.now()<=0?l.shift().value:i)&&i.accept(a),null!==i;);o=!1,(r=0)<l.length?(o=!0,r=Math.max(0,l[0].timestamp-p.now())):s=!1,c=!1,null!==(n=u)?a.onError(n):o&&e(null,r)}}))))});return new E(t,n)},e)}e.delay=function(){var a,t,e,s,u,n,r,i,o=arguments[0];if("number"==typeof o||o instanceof Date)return t=o,S(e=arguments[1])||(e=k),t instanceof Date?(n=this,r=t,i=e,gn(function(){return Za(n,r-i.now(),i)})):Za(this,t,e);if(R.isObservable(o)||m(o))return a=this,t=o,e=arguments[1],u=m(t)?t:(s=t,e),new I(function(r){var i=new Lt,t=!1,e=new $;function n(){e.setDisposable(a.subscribe(function(t){var e=y(u)(t);if(e===v)return r.onError(e.e);var n=new w;i.add(n),n.setDisposable(e.subscribe(function(){r.onNext(t),i.remove(n),o()},function(t){r.onError(t)},function(){r.onNext(t),i.remove(n),o()}))},function(t){r.onError(t)},function(){t=!0,e.dispose(),o()}))}function o(){t&&0===i.length&&r.onCompleted()}return s?e.setDisposable(s.subscribe(n,function(t){r.onError(t)},n)):n(),new E(e,i)},a);throw new Error("Invalid arguments")};n(ns,ts=r),ns.prototype.subscribeCore=function(t){var e=new $;return new E(this.source.subscribe(new is(t,this._dt,this._s,e)),e)};var ts,es=ns;function ns(t,e,n){S(n)||(n=k),this.source=t,this._dt=e,this._s=n,ts.call(this)}n(os,rs=D),os.prototype.next=function(n){this._hv=!0,this._v=n;var r=++this._id,t=new w;this._c.setDisposable(t),t.setDisposable(this._scheduler.scheduleFuture(this,this._d,function(t,e){e._hv&&e._id===r&&e._o.onNext(n),e._hv=!1}))},os.prototype.error=function(t){this._c.dispose(),this._o.onError(t),this._hv=!1,this._id++},os.prototype.completed=function(){this._c.dispose(),this._hv&&this._o.onNext(this._v),this._o.onCompleted(),this._hv=!1,this._id++};var rs,is=os;function os(t,e,n,r){this._o=t,this._d=e,this._scheduler=n,this._c=r,this._v=null,this._hv=!1,this._id=0,rs.call(this)}e.debounce=function(){if(m(arguments[0]))return e=this,l=arguments[0],new I(function(i){var o,a=!1,s=new $,u=0,t=e.subscribe(function(t){var e=y(l)(t);if(e===v)return i.onError(e.e);f(e)&&(e=L(e)),a=!0,o=t;var n=++u,r=new w;s.setDisposable(r),r.setDisposable(e.subscribe(function(){a&&u===n&&i.onNext(o),a=!1,r.dispose()},function(t){i.onError(t)},function(){a&&u===n&&i.onNext(o),a=!1,r.dispose()}))},function(t){s.dispose(),i.onError(t),a=!1,u++},function(){s.dispose(),a&&i.onNext(o),i.onCompleted(),a=!1,u++});return new E(t,s)},e);if("number"==typeof arguments[0])return new es(this,arguments[0],arguments[1]);throw new Error("Invalid arguments");var e,l};n(us,as=r),us.prototype.subscribeCore=function(t){return this.source.subscribe(new cs(t,this._s))};var as,ss=us;function us(t,e){this.source=t,this._s=e,as.call(this)}n(ps,ls=D),ps.prototype.next=function(t){this._o.onNext({value:t,timestamp:this._s.now()})},ps.prototype.error=function(t){this._o.onError(t)},ps.prototype.completed=function(){this._o.onCompleted()};var ls,cs=ps;function ps(t,e){this._o=t,this._s=e,ls.call(this)}e.timestamp=function(t){return S(t)||(t=k),new ss(this,t)};n(fs,ds=r),fs.prototype.subscribeCore=function(t){t={o:t,atEnd:!1,value:null,hasValue:!1,sourceSubscription:new w};return t.sourceSubscription.setDisposable(this.source.subscribe(new bs(t))),new E(t.sourceSubscription,this._sampler.subscribe(new ms(t)))};var ds,hs=fs;function fs(t,e){this.source=t,this._sampler=e,ds.call(this)}n(vs,gs=D),vs.prototype._handleMessage=function(){this._s.hasValue&&(this._s.hasValue=!1,this._s.o.onNext(this._s.value)),this._s.atEnd&&this._s.o.onCompleted()},vs.prototype.next=function(){this._handleMessage()},vs.prototype.error=function(t){this._s.onError(t)},vs.prototype.completed=function(){this._handleMessage()};var gs,ms=vs;function vs(t){this._s=t,gs.call(this)}n(ws,ys=D),ws.prototype.next=function(t){this._s.hasValue=!0,this._s.value=t},ws.prototype.error=function(t){this._s.o.onError(t)},ws.prototype.completed=function(){this._s.atEnd=!0,this._s.sourceSubscription.dispose()};var ys,bs=ws;function ws(t){this._s=t,ys.call(this)}e.sample=function(t,e){return S(e)||(e=k),new hs(this,"number"==typeof t?Ja(t,e):t)};var $s=o.TimeoutError=function(t){this.message=t||"Timeout has occurred",this.name="TimeoutError",Error.call(this)};$s.prototype=Object.create(Error.prototype),e.timeout=function(){var r,l,c,p,s,u,d,h,t=arguments[0];if(t instanceof Date||"number"==typeof t)return s=this,u=t,d=arguments[1],h=arguments[2],S(d)&&(h=d,d=or(new $s)),d 
1instanceof Error&&(d=or(d)),S(h)||(h=k),R.isObservable(d)||(d=or(new $s)),new I(function(e){var n=0,t=new w,r=new $,i=!1,o=new $;function a(){var t=n;o.setDisposable(h.scheduleFuture(null,u,function(){(i=n===t)&&(f(d)&&(d=L(d)),r.setDisposable(d.subscribe(e)))}))}return r.setDisposable(t),a(),t.setDisposable(s.subscribe(function(t){i||(n++,e.onNext(t),a())},function(t){i||(n++,e.onError(t))},function(){i||(n++,e.onCompleted())})),new E(r,o)},s);if(R.isObservable(t)||m(t))return r=this,l=t,c=arguments[1],p=arguments[2],m(l)&&(p=c,c=l,l=Fn()),R.isObservable(p)||(p=or(new $s)),new I(function(i){var o=new $,a=new $,t=new w,s=(o.setDisposable(t),0),u=!1;function e(t){var e=s,n=new w;function r(){return u=e===s}a.setDisposable(n),n.setDisposable(t.subscribe(function(){r()&&o.setDisposable(p.subscribe(i)),n.dispose()},function(t){r()&&i.onError(t)},function(){r()&&o.setDisposable(p.subscribe(i))}))}function n(){var t=!u;return t&&s++,t}return e(l),t.setDisposable(r.subscribe(function(t){if(n()){i.onNext(t);t=y(c)(t);if(t===v)return i.onError(t.e);e(f(t)?L(t):t)}},function(t){n()&&i.onError(t)},function(){n()&&i.onCompleted()})),new E(o,a)},r);throw new Error("Invalid arguments")},e.throttle=function(t,i){S(i)||(i=k);var o=+t||0;if(o<=0)throw new RangeError("windowDuration cannot be less or equal zero.");var e=this;return new I(function(n){var r=0;return e.subscribe(function(t){var e=i.now();(0===r||o<=e-r)&&(r=e,n.onNext(t))},function(t){n.onError(t)},function(){n.onCompleted()})},e)};n(Ss,Es=R),Ss.prototype._subscribe=function(t){var e=this.source.publish(),t=e.subscribe(t),n=d,r=this.pauser.startWith(!this.paused).distinctUntilChanged().subscribe(function(t){n=t?e.connect():(n.dispose(),d)});return new x([t,n,r])},Ss.prototype.pause=function(){this.paused=!0,this.controller.onNext(!1)},Ss.prototype.resume=function(){this.paused=!1,this.controller.onNext(!0)};var Es,xs=Ss;function Ss(t,e){this.source=t,this.controller=new M,this.paused=!0,e&&e.subscribe?this.pauser=this.controller.merge(e):this.pauser=this.controller,Es.call(this)}e.pausable=function(t){return new xs(this,t)};n(Cs,Ts=R),Cs.prototype._subscribe=function(e){var n,t,u,l,r=[];function i(){for(;0<r.length;)e.onNext(r.shift())}return t=this.source,u=this.pauser.startWith(!this.paused).distinctUntilChanged(),l=function(t,e){return{data:t,shouldFire:e}},new I(function(n){var r,i=[!1,!1],o=!1,a=!1,s=new Array(2);function e(t,e){if(s[e]=t,i[e]=!0,o=o||i.every(c)){if(r)return n.onError(r);t=y(l).apply(null,s);if(t===v)return n.onError(t.e);n.onNext(t)}a&&s[1]&&n.onCompleted()}return new E(t.subscribe(function(t){e(t,0)},function(t){s[1]?n.onError(t):r=t},function(){a=!0,s[1]&&n.onCompleted()}),u.subscribe(function(t){e(t,1)},function(t){n.onError(t)},function(){e(a=!0,1)}))},t).subscribe(function(t){n!==g&&t.shouldFire!==n?(n=t.shouldFire,t.shouldFire&&i()):(n=t.shouldFire,t.shouldFire?e.onNext(t.data):r.push(t.data))},function(t){i(),e.onError(t)},function(){i(),e.onCompleted()})},Cs.prototype.pause=function(){this.paused=!0,this.controller.onNext(!1)},Cs.prototype.resume=function(){this.paused=!1,this.controller.onNext(!0)};var Ts,_s=Cs;function Cs(t,e){this.source=t,this.controller=new M,this.paused=!0,e&&e.subscribe?this.pauser=this.controller.merge(e):this.pauser=this.controller,Ts.call(this)}e.pausableBuffered=function(t){return new _s(this,t)};n(Ds,ks=R),Ds.prototype._subscribe=function(t){return this.source.subscribe(t)},Ds.prototype.request=function(t){return this.subject.request(null==t?-1:t)};var ks,As=Ds;function Ds(t,e,n){ks.call(this),this.subject=new Rs(e,n),this.source=t.multicast(this.subject).refCount()}n(Ls,Os=R),Ot(Ls.prototype,i,{_subscribe:function(t){return this.subject.subscribe(t)},onCompleted:function(){this.hasCompleted=!0,this.enableQueue&&0!==this.queue.length?this.queue.push(A.createOnCompleted()):(this.subject.onCompleted(),this.disposeCurrentRequest())},onError:function(t){this.hasFailed=!0,this.error=t,this.enableQueue&&0!==this.queue.length?this.queue.push(A.createOnError(t)):(this.subject.onError(t),this.disposeCurrentRequest())},onNext:function(t){this.requestedCount<=0?this.enableQueue&&this.queue.push(A.createOnNext(t)):(0==this.requestedCount--&&this.disposeCurrentRequest(),this.subject.onNext(t))},_processRequest:function(t){if(this.enableQueue)for(;0<this.queue.length&&(0<t||"N"!==this.queue[0].kind);){var e=this.queue.shift();e.accept(this.subject),"N"===e.kind?t--:(this.disposeCurrentRequest(),this.queue=[])}return t},request:function(t){this.disposeCurrentRequest();var n=this;return this.requestedDisposable=this.scheduler.schedule(t,function(t,e){e=n._processRequest(e);
1if(!(n.hasCompleted||n.hasFailed)&&0<e)return n.requestedCount=e,Mt(function(){n.requestedCount=0})}),this.requestedDisposable},disposeCurrentRequest:function(){this.requestedDisposable&&(this.requestedDisposable.dispose(),this.requestedDisposable=null)}});var Os,Rs=Ls;function Ls(t,e){null==t&&(t=!0),Os.call(this),this.subject=new M,this.enableQueue=t,this.queue=t?[]:null,this.requestedCount=0,this.requestedDisposable=null,this.error=null,this.hasFailed=!1,this.hasCompleted=!1,this.scheduler=e||_}e.controlled=function(t,e){return t&&S(t)&&(e=t,t=!0),new As(this,t=null==t?!0:t,e)},e.pipe=function(e){var n=this.pausableBuffered();function t(){n.resume()}return e.addListener("drain",t),n.subscribe(function(t){e.write(t)||n.pause()},function(t){e.emit("error",t)},function(){e._isStdio||e.end(),e.removeListener("drain",t)}),n.resume(),e};n(Ps,Is=D),Ps.prototype.next=function(t){t=y(this._xform["@@transducer/step"]).call(this._xform,this._o,t);t===v&&this._o.onError(t.e)},Ps.prototype.error=function(t){this._o.onError(t)},Ps.prototype.completed=function(){this._xform["@@transducer/result"](this._o)};var Is,Ms=Ps;function Ps(t,e){this._o=t,this._xform=e,Is.call(this)}e.transduce=function(r){var i=this;return new I(function(t){var e,n=r((e=t,{"@@transducer/init":function(){return e},"@@transducer/step":function(t,e){return t.onNext(e)},"@@transducer/result":function(t){return t.onCompleted()}}));return i.subscribe(new Ms(t,n))},i)};var Ns,I=o.AnonymousObservable=(n(Us,Ns=R),Us.prototype._subscribe=function(t){var t=new Bs(t),e=[t,this];return _.scheduleRequired()?_.schedule(e,Fs):Fs(0,e),t},Us);function Fs(t,e){var n=e[0],e=e[1],e=y(e.__subscribe).call(e,n);e!==v||n.fail(v.e)||l(v.e),n.setDisposable((n=e)&&m(n.dispose)?n:m(n)?Mt(n):d)}function Us(t,e){this.source=e,this.__subscribe=t,Ns.call(this)}n(Vs,js=D),(t=Vs.prototype).next=function(t){t=y(this.observer.onNext).call(this.observer,t);t===v&&(this.dispose(),l(t.e))},t.error=function(t){t=y(this.observer.onError).call(this.observer,t);this.dispose(),t===v&&l(t.e)},t.completed=function(){var t=y(this.observer.onCompleted).call(this.observer);this.dispose(),t===v&&l(t.e)},t.setDisposable=function(t){this.m.setDisposable(t)},t.getDisposable=function(){return this.m.getDisposable()},t.dispose=function(){js.prototype.dispose.call(this),this.m.dispose()};var js,Bs=Vs;function Vs(t){js.call(this),this.observer=t,this.m=new w}function qs(t,e){this._s=t,this._o=e}qs.prototype.dispose=function(){var t;this._s.isDisposed||null===this._o||(t=this._s.observers.indexOf(this._o),this._s.observers.splice(t,1),this._o=null)};var Hs,M=o.Subject=(n(Ws,Hs=R),Ot(Ws.prototype,i.prototype,{_subscribe:function(t){return h(this),this.isStopped?(this.hasError?t.onError(this.error):t.onCompleted(),d):(this.observers.push(t),new qs(this,t))},hasObservers:function(){return h(this),0<this.observers.length},onCompleted:function(){if(h(this),!this.isStopped){this.isStopped=!0;for(var t=0,e=s(this.observers),n=e.length;t<n;t++)e[t].onCompleted();this.observers.length=0}},onError:function(t){if(h(this),!this.isStopped){this.isStopped=!0,this.error=t,this.hasError=!0;for(var e=0,n=s(this.observers),r=n.length;e<r;e++)n[e].onError(t);this.observers.length=0}},onNext:function(t){if(h(this),!this.isStopped)for(var e=0,n=s(this.observers),r=n.length;e<r;e++)n[e].onNext(t)},dispose:function(){this.isDisposed=!0,this.observers=null}}),Ws.create=function(t,e){return new Xs(t,e)},Ws);function Ws(){Hs.call(this),this.isDisposed=!1,this.isStopped=!1,this.observers=[],this.hasError=!1}var Gs,zs=o.AsyncSubject=(n(Ks,Gs=R),Ot(Ks.prototype,i.prototype,{_subscribe:function(t){return h(this),this.isStopped?(this.hasError?t.onError(this.error):(this.hasValue&&t.onNext(this.value),t.onCompleted()),d):(this.observers.push(t),new qs(this,t))},hasObservers:function(){return h(this),0<this.observers.length},onCompleted:function(){var t;if(h(this),!this.isStopped){this.isStopped=!0;var e=s(this.observers),n=e.length;if(this.hasValue)for(t=0;t<n;t++){var r=e[t];r.onNext(this.value),r.onCompleted()}else for(t=0;t<n;t++)e[t].onCompleted();this.observers.length=0}},onError:function(t){if(h(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=t;for(var e=0,n=s(this.observers),r=n.length;e<r;e++)n[e].onError(t);this.observers.length=0}},onNext:function(t){h(this),this.isStopped||(this.value=t,this.hasValue=!0)},dispose:function(){this.isDisposed=!0,this.observers=null,this.error=null,this.value=null}}),Ks);function Ks(){Gs.call(this),this.isDisposed=!1,this.isStopped=!1,this.hasValue=!1,this.observers=[],this.hasError=!1}var Ys,Xs=o.AnonymousSubject=(n(Qs,Ys=R),Ot(Qs.prototype,i.prototype,{_subscribe:function(t){return this.observable.subscribe(t)},onCompleted:function(){this.observer.onCompleted()},onError:function(t){this.observer.onError(t)},onNext:function(t){this.observer.onNext(t)}}),Qs);function Qs(t,e){this.observer=t,this.observable=e,Ys.call(this)}var Js,Zs=o.BehaviorSubject=(n(tu,Js=R),Ot(tu.prototype,i.prototype,{_subscribe:function(t){return h(this),this.isStopped?(this.hasError?t.onError(this.error):t.onCompleted(),d):(this.observers.push(t),t.onNext(this.value),new qs(this,t))},getValue:function(){return h(this),this.hasError&&l(this.error),this.value},hasObservers:function(){return h(this),0<this.observers.length},onCompleted:function(){if(h(this),!this.isStopped){this.isStopped=!0;for(var t=0,e=s(this.observers),n=e.length;t<n;t++)e[t].onCompleted();this.observers.length=0}},onError:function(t){if(h(this),!this.isStopped){this.isStopped=!0,this.hasError=!0,this.error=t;for(var e=0,n=s(this.observers),r=n.length;e<r;e++)n[e].onError(t);this.observers.length=0}},onNext:function(t){if(h(this),!this.isStopped){this.value=t;for(var e=0,n=s(this.observers),r=n.length;e<r;e++)n[e].onNext(t)}},dispose:function(){this.isDisposed=!0,this.observers=null,this.value=null,this.error=null}}),tu);function tu(t){Js.call(this),this.value=t,this.observers=[],this.isDisposed=!1,this.isStopped=!1,this.hasError=!1}var eu,nu,ru,iu=o.ReplaySubject=(eu=R,nu=Math.pow(2,53)-1,n(ou,eu),Ot(ou.prototype,i.prototype,{_subscribe:function(t){h(this);var e,n,r=new Oe(this.scheduler,t),t=(e=this,n=r,Mt(function(){n.dispose(),e.isDisposed||e.observers.splice(e.observers.indexOf(n),1)}));this._trim(this.scheduler.now()),this.observers.push(r);for(var i=0,o=this.q.length;i<o;i++)r.onNext(this.q[i].value);return this.hasError?r.onError(this.error):this.isStopped&&r.onCompleted(),r.ensureActive(),t},hasObservers:function(){return h(this),0<this.observers.length},_trim:function(t){for(;this.q.length>this.bufferSize;
1)this.q.shift();for(;0<this.q.length&&t-this.q[0].interval>this.windowSize;)this.q.shift()},onNext:function(t){if(h(this),!this.isStopped){var e=this.scheduler.now();this.q.push({interval:e,value:t}),this._trim(e);for(var n=0,r=s(this.observers),i=r.length;n<i;n++){var o=r[n];o.onNext(t),o.ensureActive()}}},onError:function(t){if(h(this),!this.isStopped){this.isStopped=!0,this.error=t,this.hasError=!0;var e=this.scheduler.now();this._trim(e);for(var n=0,r=s(this.observers),i=r.length;n<i;n++){var o=r[n];o.onError(t),o.ensureActive()}this.observers.length=0}},onCompleted:function(){if(h(this),!this.isStopped){this.isStopped=!0;var t=this.scheduler.now();this._trim(t);for(var e=0,n=s(this.observers),r=n.length;e<r;e++){var i=n[e];i.onCompleted(),i.ensureActive()}this.observers.length=0}},dispose:function(){this.isDisposed=!0,this.observers=null}}),ou);function ou(t,e,n){this.bufferSize=null==t?nu:t,this.windowSize=null==e?nu:e,this.scheduler=n||_,this.q=[],this.observers=[],this.isStopped=!1,this.isDisposed=!1,this.hasError=!1,this.error=null,eu.call(this)}function au(){ru.call(this)}o.Pauser=(n(au,ru=M),au.prototype.pause=function(){this.onNext(!1)},au.prototype.resume=function(){this.onNext(!0)},au),"function"==typeof define&&"object"==typeof define.amd&&define.amd?(u.Rx=o,define(function(){return o})):N&&F?U?(F.exports=o).Rx=o:N.Rx=o:u.Rx=o;var su=K()}.call(this),!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Hls=e():t.Hls=e()}(this,function(){return n=[function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return c});var e=n(3),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function i(){}var o={trace:i,debug:i,log:i,warn:i,info:i,error:i},a=o;var s=Object(e.a)();function u(o){var a=s.console[o];return a?function(){for(var t,e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];r[0]&&(r[0]=(t=o,e=r[0],e="["+t+"] > "+e)),a.apply(s.console,r)}:i}var l=function(t){if(!0===t||"object"===(void 0===t?"undefined":r(t))){!function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach(function(t){a[t]=e[t]?e[t].bind(e):u(t)})}(t,"debug","log","info","warn","error");
1try{a.log()}catch(t){a=o}}else a=o},c=a},function(t,e,n){"use strict";e.a={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hl
1sFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition"}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i});var r={NETWORK_ERROR:"networkError",MEDIA_ERROR:"mediaError",KEY_SYSTEM_ERROR:"keySystemError",MUX_ERROR:"muxError",OTHER_ERROR:"otherError"},i={KEY_SYSTEM_NO_KEYS:"keySystemNoKeys",KEY_SYSTEM_NO_ACCESS:"keySystemNoAccess",KEY_SYSTEM_NO_SESSION:"keySystemNoSession",KEY_SYSTEM_LICENSE_REQUEST_FAILED:"keySystemLicenseRequestFailed",MANIFEST_LOAD_ERROR:"manifestLoadError",MANIFEST_LOAD_TIMEOUT:"manifestLoadTimeOut",MANIFEST_PARSING_ERROR:"manifestParsingError",MANIFEST_INCOMPATIBLE_CODECS_ERROR:"manifestIncompatibleCodecsError",LEVEL_LOAD_ERROR:"levelLoadError",LEVEL_LOAD_TIMEOUT:"levelLoadTimeOut",LEVEL_SWITCH_ERROR:"levelSwitchError",AUDIO_TRACK_LOAD_ERROR:"audioTrackLoadError",AUDIO_TRACK_LOAD_TIMEOUT:"audioTrackLoadTimeOut",FRAG_LOAD_ERROR:"fragLoadError",FRAG_LOAD_TIMEOUT:"fragLoadTimeOut",FRAG_DECRYPT_ERROR:"fragDecryptError",FRAG_PARSING_ERROR:"fragParsingError",REMUX_ALLOC_ERROR:"remuxAllocError",KEY_LOAD_ERROR:"keyLoadError",KEY_LOAD_TIMEOUT:"keyLoadTimeOut",BUFFER_ADD_CODEC_ERROR:"bufferAddCodecError",BUFFER_APPEND_ERROR:"bufferAppendError",BUFFER_APPENDING_ERROR:"bufferAppendingError",BUFFER_STALLED_ERROR:"bufferStalledError",BUFFER_FULL_ERROR:"bufferFullError",BUFFER_SEEK_OVER_HOLE:"bufferSeekOverHole",BUFFER_NUDGE_ON_STALL:"bufferNudgeOnStall",INTERNAL_EXCEPTION:"internalException"}},function(t,e,n){"use strict";e.a=function(){return"undefined"==typeof window?self:window}},function(t,e,n){var r,o,i,a,s;r=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/\;?#]*)?(.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,o=/^([^\/;?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,s={buildAbsoluteURL:function(t,e,n){if(n=n||{},t=t.trim(),!(e=e.trim())){if(!n.alwaysNormalize)return t;var r=this.parseURL(t);if(i)return r.path=s.normalizePath(r.path),s.buildURLFromParts(r);throw new Error("Error trying to parse base URL.")}r=this.parseURL(e);if(!r)throw new Error("Error trying to parse relative URL.");if(r.scheme)return n.alwaysNormalize?(r.path=s.normalizePath(r.path),s.buildURLFromParts(r)):e;var i=this.parseURL(t);if(!i)throw new Error("Error trying to parse base URL.");!i.netLoc&&i.path&&"/"!==i.path[0]&&(e=o.exec(i.path),i.netLoc=e[1],i.path=e[2]),i.netLoc&&!i.path&&(i.path="/");t={scheme:i.scheme,netLoc:r.netLoc,path:null,params:r.params,query:r.query,fragment:r.fragment};return r.netLoc||(t.netLoc=i.netLoc,"/"!==r.path[0]&&(r.path?(e=(e=i.path).substring(0,e.lastIndexOf("/")+1)+r.path,t.path=s.normalizePath(e)):(t.path=i.path,r.params||(t.params=i.params,r.query)||(t.query=i.query)))),null===t.path&&(t.path=n.alwaysNormalize?s.normalizePath(r.path):r.path),s.buildURLFromParts(t)},parseURL:function(t){t=r.exec(t);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(i,"");t.length!==(t=t.replace(a,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=s},function(t,e,n){"use strict";function s(){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function")}n.d(e,"b",function(){return r}),s.isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},s.isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},s.getID3Data=function(t,e){for(var n=e,r=0;s.isHeader(t,e);){r=(r+=10)+s._readSize(t,e+6);s.isFooter(t,e+10)&&(r+=10),e+=r}if(0<r)return t.subarray(n,n+r)},s._readSize=function(t,e){var n=(127&t[e])<<21;return(n|=(127&t[e+1])<<14)|(127&t[e+2])<<7|127&t[e+3]},s.getTimeStamp=function(t){for(var e=s.getID3Frames(t),n=0;n<e.length;n++){var r=e[n];if(s.isTimeStampFrame(r))return s._readTimeStamp(r)}},s.isTimeStampFrame=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},s._getFrameData=function(t){var e=String.fromCharCode(t[0],t[1],t[2],t[3]),n=s._readSize(t,4);return{type:e,size:n,data:t.subarray(10,10+n)}},s.getID3Frames=function(t){for(var e=0,n=[];s.isHeader(t,e);){for(var r=s._readSize(t,e+6),i=(e+=10)+r;e+8<i;){var o=s._getFrameData(t.subarray(e)),a=s._decodeFrame(o);a&&n.push(a),e+=o.size+10}s.isFooter(t,e)&&(e+=10)}return n},s._decodeFrame=function(t){return"PRIV"===t.type?s._decodePrivFrame(t):"T"===t.type[0]?s._decodeTextFrame(t):"W"===t.type[0]?s._decodeURLFrame(t):void 0},s._readTimeStamp=function(t){var e;if(8===t.data.byteLength)return e=1&(t=new Uint8Array(t.data))[3],t=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7],t/=45,e&&(t+=47721858.84),Math.round(t)},s._decodePrivFrame=function(t){var e,n;if(!(t.size<2))return e=s._utf8ArrayToStr(t.data,!0),n=new Uint8Array(t.data.subarray(e.length+1)),{key:t.type,info:e,data:n.buffer}},s._decodeTextFrame=function(t){var e,n;if(!(t.size<2))return"TXXX"===t.type?(e=1,e+=(n=s._utf8ArrayToStr(t.data.subarray(1))).length+1,e=s._utf8ArrayToStr(t.data.subarray(e)),{key:t.type,info:n,data:e}):(n=s._utf8ArrayToStr(t.data.subarray(1)),{key:t.type,data:n})},s._decodeURLFrame=function(t){var e,n;return"WXXX"!==t.type?(n=s._utf8ArrayToStr(t.data),{key:t.type,data:n}):t.size<2?void 0:(n=1,n+=(e=s._utf8ArrayToStr(t.data.subarray(1))).length+1,n=s._utf8ArrayToStr(t.data.subarray(n)),{key:t.type,info:e,data:n})};var r=s._utf8ArrayToStr=function(t){for(var e,n,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=t.length,o=void 0,a="",s=0;s<i;){if(0===(e=t[s++])&&r)return a;
vendor: 6,967 bytes, line 1
1if(0!==e&&3!==e)switch(e>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:a+=String.fromCharCode(e);break;case 12:case 13:o=t[s++],a+=String.fromCharCode((31&e)<<6|63&o);break;case 14:o=t[s++],n=t[s++],a+=String.fromCharCode((15&e)<<12|(63&o)<<6|(63&n)<<0)}}return a};e.a=s},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(t){return"function"==typeof t}function l(t){return"object"==typeof t&&null!==t}function c(t){return void 0===t}((t.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,r,i,o,a,s;if((this._events||(this._events={}),"error"===t)&&(!this._events.error||l(this._events.error)&&!this._events.error.length))throw(s=arguments[1])instanceof Error?s:((a=new Error('Uncaught, unspecified "error" event. ('+s+")")).context=s,a);if(c(e=this._events[t]))return!1;if(u(e))switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:r=Array.prototype.slice.call(arguments,1),e.apply(this,r)}else if(l(e))for(r=Array.prototype.slice.call(arguments,1),n=(o=e.slice()).length,i=0;i<n;i++)o[i].apply(this,r);return!0},n.prototype.on=n.prototype.addListener=function(t,e){if(u(e))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,u(e.listener)?e.listener:e),this._events[t]?l(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,l(this._events[t])&&!this._events[t].warned&&(e=c(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&0<e&&this._events[t].length>e&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},n.prototype.once=function(t,e){var n;if(u(e))return n=!1,r.listener=e,this.on(t,r),this;throw TypeError("listener must be a function");function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}},n.prototype.removeListener=function(t,e){var n,r,i,o;if(!u(e))throw TypeError("listener must be a function");if(this._events&&this._events[t])if(i=(n=this._events[t]).length,r=-1,n===e||u(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(l(n)){for(o=i;0<o--;)if(n[o]===e||n[o].listener&&n[o].listener===e){r=o;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);this.removeAllListeners("removeListener"),this._events={}}else{if(u(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);delete this._events[t]}else 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t];return this},n.prototype.listeners=function(t){t=this._events&&this._events[t]?u(this._events[t])?[this._events[t]]:this._events[t].slice():[];return t},n.prototype.listenerCount=function(t){if(this._events){t=this._events[t];if(u(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){"use strict";function r(t,e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.subtle=t,this.aesIV=e}r.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)};var s=r;function i(t,e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.subtle=t,this.key=e}i.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])};var u=i;function o(){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}o.prototype.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),n=new Uint32Array(4),r=0;r<4;r++)n[r]=e.getUint32(4*r);return n},o.prototype.initTable=function(){for(var t=this.sBox,e=this.invSBox,n=this.subMix,r=n[0],i=n[1],o=n[2],a=n[3],n=this.invSubMix,s=n[0],u=n[1],l=n[2],c=n[3],p=new Uint32Array(256),d=0,h=0,f=0,f=0;f<256;f++)p[f]=f<128?f<<1:f<<1^283;for(f=0;f<256;f++){var g=h^h<<1^h<<2^h<<3^h<<4,m=(t[d]=g=g>>>8^255&g^99,p[e[g]=d]),v=p[m],y=p[v],b=257*p[g]^16843008*g;r[d]=b<<24|b>>>8,i[d]=b<<16|b>>>16,o[d]=b<<8|b>>>24,a[d]=b,s[g]=(b=16843009*y^65537*v^257*m^16843008*d)<<24|b>>>8,u[g]=b<<16|b>>>16,l[g]=b<<8|b>>>24,c[g]=b,d?(d=m^p[p[p[y^m]]],h^=p[p[h]]):d=h=1}},o.prototype.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),n=!0,r=0;r<e.length&&n;)n=e[r]===this.key[r],r++;if(!n){this.key=e;var i=this.keySize=e.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);for(var o=this.ksRows=4*(i+6+1),a=void 0,s=void 0,u=this.keySchedule=new Uint32Array(o),l=this.invKeySchedule=new Uint32Array(o),c=this.sBox,p=this.rcon,t=this.invSubMix,d=t[0],h=t[1],f=t[2],g=t[3],m=void 0,v=void 0,a=0;a<o;a++)a<i?m=u[a]=e[a]:(v=m,a%i==0?(v=c[(v=v<<8|v>>>24)>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[255&v],v^=p[a/i|0]<<24):6<i&&a%i==4&&(v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[255&v]),u[a]=m=(u[a-i]^v)>>>0);for(s=0;s<o;s++)a=o-s,v=3&s?u[a]:u[a-4],l[s]=s<4||a<=4?v:d[c[v>>>24]]^h[c[v>>>16&255]]^f[c[v>>>8&255]]^g[c[255&v]],l[s]=l[s]>>>0}},o.prototype.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},o.prototype.decrypt=function(t,e,n,r){for(var i,o,a,s,u=this.keySize+6,l=this.invKeySchedule,c=this.invSBox,p=this.invSubMix,d=p[0],h=p[1],f=p[2],g=p[3],p=this.uint8ArrayToUint32Array_(n),m=p[0],v=p[1],y=p[2],b=p[3],w=new Int32Array(t),$=new Int32Array(w.length),E=void 0,x=void 0,S=void 0,T=void 0,_=void 0,C=void 0,k=void 0,A=void 0,D=void 0,O=void 0,R=this.networkToHostOrderSwap;e<w.length;){for(i=R(w[e]),o=R(w[e+1]),a=R(w[e+2]),s=R(w[e+3]),_=i^l[0],C=s^l[1],k=a^l[2],A=o^l[3],D=4,O=1;O<u;O++)E=d[_>>>24]^h[C>>16&255]^f[k>>8&255]^g[255&A]^l[D],x=d[C>>>24]^h[k>>16&255]^f[A>>8&255]^g[255&_]^l[D+1],S=d[k>>>24]^h[A>>16&255]^f[_>>8&255]^g[255&C]^l[D+2],T=d[A>>>24]^h[_>>16&255]^f[C>>
18&255]^g[255&k]^l[D+3],_=E,C=x,k=S,A=T,D+=4;E=c[_>>>24]<<24^c[C>>16&255]<<16^c[k>>8&255]<<8^c[255&A]^l[D],x=c[C>>>24]<<24^c[k>>16&255]<<16^c[A>>8&255]<<8^c[255&_]^l[D+1],S=c[k>>>24]<<24^c[A>>16&255]<<16^c[_>>8&255]<<8^c[255&C]^l[D+2],T=c[A>>>24]<<24^c[_>>16&255]<<16^c[C>>8&255]<<8^c[255&k]^l[D+3],D+=3,$[e]=R(E^m),$[e+1]=R(T^v),$[e+2]=R(S^y),$[e+3]=R(x^b),m=i,v=o,y=a,b=s,e+=4}return r?(n=$.buffer,p=n.byteLength,(t=p&&new DataView(n).getUint8(p-1))?n.slice(0,p-t):n):$.buffer},o.prototype.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0};var l=o,a=n(2),c=n(0),p=n(1),n=n(3);var d=Object(n.a)();function h(t,e){var n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).removePKCS7Padding,n=void 0===n||n,r=this,i=h;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");if(this.logEnabled=!0,this.observer=t,this.config=e,this.removePKCS7Padding=n)try{var o=d.crypto;o&&(this.subtle=o.subtle||o.webkitSubtle)}catch(t){}this.disableWebCrypto=!this.subtle}h.prototype.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},h.prototype.decrypt=function(e,n,r,i){var t,o,a=this;this.disableWebCrypto&&this.config.enableSoftwareAES?(this.logEnabled&&(c.b.log("JS AES decrypt"),this.logEnabled=!1),(t=this.decryptor)||(this.decryptor=t=new l),t.expandKey(n),i(t.decrypt(e,0,r,this.removePKCS7Padding))):(this.logEnabled&&(c.b.log("WebCrypto AES decrypt"),this.logEnabled=!1),o=this.subtle,this.key!==n&&(this.key=n,this.fastAesKey=new u(o,n)),this.fastAesKey.expandKey().then(function(t){new s(o,r).decrypt(e,t).catch(function(t){a.onWebCryptoError(t,e,n,r,i)}).then(function(t){i(t)})}).catch(function(t){a.onWebCryptoError(t,e,n,r,i)}))},h.prototype.onWebCryptoError=function(t,e,n,r,i){this.config.enableSoftwareAES?(c.b.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,n,r,i)):(c.b.error("decrypting error : "+t.message),this.observer.trigger(p.a.ERROR,{type:a.b.MEDIA_ERROR,details:a.a.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},h.prototype.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)};e.a=h},function(t,e,n){"use strict";var o=n(0),s=n(1);var a=Math.pow(2,32)-1;function d(t,e){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.observer=t,this.remuxer=e}d.prototype.resetTimeStamp=function(t){this.initPTS=t},d.prototype.resetInitSegment=function(t,e,n,r){var i,o;t&&t.byteLength?(null==e&&(e="mp4a.40.5"),null==n&&(n="avc1.42e01e"),o={},(i=this.initData=d.parseInitSegment(t)).audio&&i.video?o.audiovideo={container:"video/mp4",codec:e+","+n,initSegment:r?t:null}:(i.audio&&(o.audio={container:"audio/mp4",codec:e,initSegment:r?t:null}),i.video&&(o.video={container:"video/mp4",codec:n,initSegment:r?t:null})),this.observer.trigger(s.a.FRAG_PARSING_INIT_SEGMENT,{tracks:o})):(e&&(this.audioCodec=e),n&&(this.videoCodec=n))},d.probe=function(t){return 0<d.findBox({data:t,start:0,end:Math.min(t.length,16384)},["moof"]).length},d.bin2str=function(t){return String.fromCharCode.apply(null,t)},d.readUint16=function(t,e){t.data&&(e+=t.start,t=t.data);t=t[e]<<8|t[e+1];return t<0?65536+t:t},d.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);t=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return t<0?4294967296+t:t},d.writeUint32=function(t,e,n){t.data&&(e+=t.start,t=t.data),t[e]=n>>24,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n},d.findBox=function(t,e){var n,r,i=[],o=void 0,a=void 0,s=void 0;if(t.data?(s=t.start,a=t.end,t=t.data):(s=0,a=t.byteLength),!e.length)return null;for(o=s;o<a;)r=1<(r=d.readUint32(t,o))?o+r:a,d.bin2str(t.subarray(o+4,o+8))===e[0]&&(1===e.length?i.push({data:t,start:o+8,end:r}):(n=d.findBox({data:t,start:o+8,end:r},e.slice(1))).length&&(i=i.concat(n))),o=r;return i},d.parseSegmentIndex=function(t){var e=d.findBox(t,["moov"])[0],e=e?e.end:null,n=0,r=d.findBox(t,["sidx"]),i=void 0;if(!r||!r[0])return null;var i=[],t=(r=r[0]).data[0],n=0===t?8:16,o=d.readUint32(r,n),a=r.end+0,s=d.readUint16(r,n=(n+=4)+(0===t?8:16)+2);n+=2;for(var u=0;u<s;u++){var l=n,c=d.readUint32(r,l),p=(l+=4,2147483647&c);if(1==(2147483648&c)>>>31)return void console.warn("SIDX has hierarchical references (not supported)");c=d.readUint32(r,l);l+=4,i.push({referenceSize:p,subsegmentDuration:c,info:{duration:c/o,start:a,end:a+p-1}}),a+=p,n=l+=4}return{earliestPresentationTime:0,timescale:o,version:t,referencesCount:s,references:i,moovEndOffset:e}},d.parseInitSegment=function(t){var i=[];
1return d.findBox(t,["moov","trak"]).forEach(function(t){var e,n,r=d.findBox(t,["tkhd"])[0];r&&(n=r.data[r.start],r=d.readUint32(r,0===n?12:20),e=d.findBox(t,["mdia","mdhd"])[0])&&(n=e.data[e.start],e=d.readUint32(e,0===n?12:20),n=d.findBox(t,["mdia","hdlr"])[0])&&(n={soun:"audio",vide:"video"}[d.bin2str(n.data.subarray(n.start+8,n.start+12))])&&((t=d.findBox(t,["mdia","minf","stbl","stsd"])).length&&(t=t[0],t=d.bin2str(t.data.subarray(t.start+12,t.start+16)),o.b.log("MP4Demuxer:"+n+":"+t+" found")),i[r]={timescale:e,type:n},i[n]={timescale:e,id:r})}),i},d.getStartDTS=function(n,t){var e=void 0,e=d.findBox(t,["moof","traf"]),t=[].concat.apply([],e.map(function(e){return d.findBox(e,["tfhd"]).map(function(t){t=d.readUint32(t,4),t=n[t].timescale||9e4;return d.findBox(e,["tfdt"]).map(function(t){var e=void 0,n=t.data[t.start],e=d.readUint32(t,4);return e=1===n?(e*=Math.pow(2,32))+d.readUint32(t,8):e})[0]/t})})),e=Math.min.apply(null,t);return isFinite(e)?e:0},d.offsetStartDTS=function(n,t,i){d.findBox(t,["moof","traf"]).map(function(e){return d.findBox(e,["tfhd"]).map(function(t){var t=d.readUint32(t,4),r=n[t].timescale||9e4;d.findBox(e,["tfdt"]).map(function(t){var e=t.data[t.start],n=d.readUint32(t,4);0===e?d.writeUint32(t,4,n-i*r):(n=(n=(n*=Math.pow(2,32))+d.readUint32(t,8))-i*r,n=Math.max(n,0),e=Math.floor(n/(1+a)),n=Math.floor(n%(1+a)),d.writeUint32(t,4,e),d.writeUint32(t,8,n))})})})},d.prototype.append=function(t,e,n,r){var i,o=this.initData,a=(o||(this.resetInitSegment(t,this.audioCodec,this.videoCodec,!1),o=this.initData),this.initPTS);void 0===a&&(i=d.getStartDTS(o,t),this.initPTS=a=i-e,this.observer.trigger(s.a.INIT_PTS_FOUND,{initPTS:a})),d.offsetStartDTS(o,t,a),i=d.getStartDTS(o,t),this.remuxer.remux(o.audio,o.video,null,null,i,n,r,t)},d.prototype.destroy=function(){},e.a=d},function(D,t,e){"use strict";var j=e(1),B=e(2),g=e(7),V=e(0),n=e(3);function r(t,e){return 255===t[e]&&240==(246&t[e+1])}function s(t,e){return 1&t[e+1]?7:9}function u(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function f(t,e){return!!(e+1<t.length&&r(t,e))}function m(t,e,n,r,i){t.samplerate||(e=function(t,e,n,r){var i,o=void 0,a=void 0,s=void 0,u=navigator.userAgent.toLowerCase(),l=r,c=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],o=1+((192&e[n+2])>>>6),p=(60&e[n+2])>>>2;if(!(c.length-1<p))return i=(1&e[n+2])<<2,i|=(192&e[n+3])>>>6,V.b.log("manifest codec:"+r+",ADTS data:type:"+o+",sampleingIndex:"+p+"["+c[p]+"Hz],channelConfig:"+i),a=/firefox/i.test(u)?6<=p?(o=5,s=new Array(4),p-3):(o=2,s=new Array(2),p):-1!==u.indexOf("android")?(o=2,s=new Array(2),p):(o=5,s=new Array(4),r&&(-1!==r.indexOf("mp4a.40.29")||-1!==r.indexOf("mp4a.40.5"))||!r&&6<=p?p-3:((r&&-1!==r.indexOf("mp4a.40.2")&&(6<=p&&1==i||/vivaldi/i.test(u))||!r&&1==i)&&(o=2,s=new Array(2)),p)),s[0]=o<<3,s[0]|=(14&p)>>1,s[1]|=(1&p)<<7,s[1]|=i<<3,5===o&&(s[1]|=(14&a)>>1,s[2]=(1&a)<<7,s[2]|=8,s[3]=0),{config:s,samplerate:c[p],channelCount:i,codec:"mp4a.40."+o,manifestCodec:l};t.trigger(j.a.ERROR,{type:B.b.MEDIA_ERROR,details:B.a.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+p})}(e,n,r,i),t.config=e.config,t.samplerate=e.samplerate,t.channelCount=e.channelCount,t.codec=e.codec,t.manifestCodec=e.manifestCodec,V.b.log("parsed codec:"+t.codec+",rate:"+e.samplerate+",nb channel:"+e.channelCount))}function d(t){return 9216e4/t}function v(t,e,n,r,i){var o,r=function(t,e,n,r,i){var o=t.length,a=s(t,e),t=u(t,e);if(0<(t-=a)&&e+a+t<=o)return{headerLength:a,frameLength:t,stamp:n+r*i}}(e,n,r,i,d(t.samplerate));if(r)return i=r.stamp,o=r.headerLength,r=r.frameLength,e={unit:e.subarray(n+o,n+o+r),pts:i,dts:i},t.samples.push(e),t.len+=r,{sample:e,length:r+o}}var y=e(5);function i(t,e,n){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");this.observer=t,this.config=n,this.remuxer=e}i.prototype.resetInitSegment=function(t,e,n,r){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:r,inputTimeScale:9e4}},i.prototype.resetTimeStamp=function(){},i.probe=function(t){if(t)for(var e=(y.a.getID3Data(t,0)||[]).length,n=t.length;e<n;e++)if(function(t,e){if(e+1<t.length&&r(t,e)){var n=s(t,e),e=e+(n=e+5<t.length?u(t,e):n);if(e===t.length||e+1<t.length&&r(t,e))return 1}}(t,e))return V.b.log("ADTS sync word found !"),!0;return!1},i.prototype.append=function(t,e,n,r){for(var i=this._audioTrack,o=y.a.getID3Data(t,0)||[],a=y.a.getTimeStamp(o),s=a?90*
vendor: 12,281 bytes, line 1
1a:9e4*e,u=0,l=s,c=t.length,p=o.length,d=[{pts:l,dts:l,data:o}];p<c-1;)if(f(t,p)&&p+5<c){m(i,this.observer,t,p,i.manifestCodec);var h=v(i,t,p,s,u);if(!h){V.b.log("Unable to parse AAC frame");break}p+=h.length,l=h.sample.pts,u++}else y.a.isHeader(t,p)?(o=y.a.getID3Data(t,p),d.push({pts:l,dts:l,data:o}),p+=o.length):p++;this.remuxer.remux(i,{samples:[]},{samples:d,inputTimeScale:9e4},{samples:[]},e,n,r)},i.prototype.destroy=function(){};var x=i,S=e(8),l={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(t,e,n,r,i){var o;return!(n+24>e.length)&&(o=this.parseHeader(e,n))&&n+o.frameLength<=e.length?(r=r+i*(9e4*o.samplesPerFrame/o.sampleRate),i={unit:e.subarray(n,n+o.frameLength),pts:r,dts:r},t.config=[],t.channelCount=o.channelCount,t.samplerate=o.sampleRate,t.samples.push(i),t.len+=o.frameLength,{sample:i,length:o.frameLength}):void 0},parseHeader:function(t,e){var n=t[e+1]>>3&3,r=t[e+1]>>1&3,i=t[e+2]>>4&15,o=t[e+2]>>2&3,a=t[e+2]>>1&1;if(1!=n&&0!=i&&15!=i&&3!=o)return i=1e3*l.BitratesMap[14*(3==n?3-r:3==r?3:4)+i-1],o=l.SamplingRateMap[3*(3==n?0:2==n?1:2)+o],t=t[e+3]>>6==3?1:2,r=8*(e=l.SamplesCoefficients[n][r])*(n=l.BytesInSlot[r]),{sampleRate:o,channelCount:t,frameLength:parseInt(e*i/o+a,10)*n,samplesPerFrame:r}},isHeaderPattern:function(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])},isHeader:function(t,e){return!!(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e){if(e+1<t.length&&this.isHeaderPattern(t,e)){var n=this.parseHeader(t,e),r=4,e=e+(r=n&&n.frameLength?n.frameLength:r);if(e===t.length||e+1<t.length&&this.isHeaderPattern(t,e))return!0}return!1}},b=l;function o(t){if(!(this instanceof o))throw new TypeError("Cannot call a class as a function");this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}o.prototype.loadWord=function(){var t=this.data,e=this.bytesAvailable,n=t.byteLength-e,r=new Uint8Array(4),e=Math.min(4,e);if(0===e)throw new Error("no bytes available");r.set(t.subarray(n,n+e)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*e,this.bytesAvailable-=e},o.prototype.skipBits=function(t){var e;this.bitsAvailable>t||(t=(t-=this.bitsAvailable)-((e=t>>3)>>3),this.bytesAvailable-=e,this.loadWord()),this.word<<=t,this.bitsAvailable-=t},o.prototype.readBits=function(t){var e=Math.min(this.bitsAvailable,t),n=this.word>>>32-e;return 32<t&&V.b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,0<this.bitsAvailable?this.word<<=e:0<this.bytesAvailable&&this.loadWord(),0<(e=t-e)&&this.bitsAvailable?n<<e|this.readBits(e):n},o.prototype.skipLZ=function(){for(var t=void 0,t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},o.prototype.skipUEG=function(){this.skipBits(1+this.skipLZ())},o.prototype.skipEG=function(){this.skipBits(1+this.skipLZ())},o.prototype.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},o.prototype.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},o.prototype.readBoolean=function(){return 1===this.readBits(1)},o.prototype.readUByte=function(){return this.readBits(8)},o.prototype.readUShort=function(){return this.readBits(16)},o.prototype.readUInt=function(){return this.readBits(32)},o.prototype.skipScalingList=function(t){for(var e=8,n=8,r=void 0,r=0;r<t;r++)e=0===(n=0!==n?(e+this.readEG()+256)%256:n)?e:n},o.prototype.readSPS=function(){var t,e,n=0,r=0,i=0,o=0,a=void 0,s=this.readUByte.bind(this),u=this.readBits.bind(this),l=this.readUEG.bind(this),c=this.readBoolean.bind(this),p=this.skipBits.bind(this),d=this.skipEG.bind(this),h=this.skipUEG.bind(this),f=this.skipScalingList.bind(this);if(s(),g=s(),u(5),p(3),s(),h(),100===g||110===g||122===g||244===g||44===g||83===g||86===g||118===g||128===g){var g=l();if(3===g&&p(1),h(),h(),p(1),c())for(e=3!==g?8:12,a=0;a<e;a++)c()&&f(a<6?16:64)}h();var g=l();if(0===g)l();else if(1===g)for(p(1),d(),d(),t=l(),a=0;a<t;a++)d();h(),p(1),g=l(),h=l(),0===(u=u(1))&&p(1),p(1),c()&&(n=l(),r=l(),i=l(),o=l());var m=[1,1];if(c()&&c())switch(s()){case 1:m=[1,1];break;case 2:m=[12,11];break;case 3:m=[10,11];break;case 4:m=[16,11];break;case 5:m=[40,33];break;case 6:m=[24,11];break;case 7:m=[20,11];break;case 8:m=[32,11];break;case 9:m=[80,33];break;case 10:m=[18,11];break;case 11:m=[15,11];break;case 12:m=[64,33];break;case 13:m=[160,99];break;case 14:m=[4,3];break;case 15:m=[3,2];break;case 16:m=[2,1];break;case 255:m=[s()<<8|s(),s()<<8|s()]}return{width:Math.ceil(16*(g+1)-2*n-2*r),height:(2-u)*(h+1)*16-(u?2:4)*(i+o),pixelRatio:m}},o.prototype.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()};var E=o;function a(t,e,n,r){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.decryptdata=n,this.discardEPB=r,this.decrypter=new g.a(t,e,{removePKCS7Padding:!1})}a.prototype.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)},a.prototype.decryptAacSample=function(e,n,r,i){var o=e[n].unit,t=o.subarray(16,o.length-o.length%16),t=t.buffer.slice(t.byteOffset,t.byteOffset+t.length),a=this;this.decryptBuffer(t,function(t){t=new Uint8Array(t),o.set(t,16),i||a.decryptAacSamples(e,n+1,r)})},a.prototype.decryptAacSamples=function(t,e,n){for(;;e++){if(e>=t.length)return void n();if(!(t[e].unit.length<32)){var r=this.decrypter.isSync();if(this.decryptAacSample(t,e,n,r),!r)return}}},a.prototype.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,n=new Int8Array(e),r=0,i=32;i<=t.length-16;i+=160,r+=16)n.set(t.subarray(i,i+16),r);return n},a.prototype.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var n=0,r=32;r<=t.length-16;r+=160,n+=16)t.set(e.subarray(n,n+16),r);return t},a.prototype.decryptAvcSample=function(e,n,r,i,o,a){var s=this.discardEPB(o.data),t=this.getAvcEncryptedData(s),u=this;this.decryptBuffer(t.buffer,function(t){o.data=u.getAvcDecryptedUnit(s,t),a||u.decryptAvcSamples(e,n,r+1,i)})},a.prototype.decryptAvcSamples=function(t,e,n,r){for(;;e++,n=0){if(e>=t.length)return void r();for(var i=t[e].units;!(n>=i.length);n++){var o=i[n];if(!(o.length<=48||1!==o.type&&5!==o.type)){var a=this.decrypter.isSync();if(this.decryptAvcSample(t,e,n,r,o,a),!a)return}}}};var c=a;var R={video:1,audio:2,id3:3,text:4};function O(t,e,n,r){if(!(this instanceof O))throw new TypeError("Cannot call a class as a function");this.observer=t,this.config=n,this.typeSupported=r,this.remuxer=e,this.sampleAes=null}O.prototype.setDecryptData=function(t){null!=t&&null!=t.key&&"SAMPLE-AES"===t.method?this.sampleAes=new c(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},O.probe=function(t){t=O._syncOffset(t);return!(t<0||(t&&V.b.warn("MPEG2-TS detected but first sync word found @ offset "+t+", junk ahead ?"),0))},O._syncOffset=function(t){for(var e=Math.min(1e3,t.length-564),n=0;n<e;){if(71===t[n]&&71===t[n+188]&&71===t[n+376])return n;n++}return-1},O.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:R[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0,dropped:"video"===t?0:void 0,isAAC:"audio"===t||void 0,duration:"audio"===t?e:void 0}},O.prototype.resetInitSegment=function(t,e,n,r){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=O.createTrack("video",r),this._audioTrack=O.createTrack("audio",r),this._id3Track=O.createTrack("id3",r),this._txtTrack=O.createTrack("text",r),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=e,this.videoCodec=n,this._duration=r},O.prototype.resetTimeStamp=function(){},O.prototype.append=function(t,e,n,r){var i,o,a=void 0,s=t.length,u=void 0,l=void 0,c=!1,p=(this.contiguous=n,this.pmtParsed),d=this._avcTrack,h=this._audioTrack,f=this._id3Track,g=d.pid,m=h.pid,v=f.pid,y=this._pmtId,b=d.pesData,w=h.pesData,$=f.pesData,E=this._parsePAT,x=this._parsePMT,S=this._parsePES,T=this._parseAVCPES.bind(this),_=this._parseAACPES.bind(this),C=this._parseMPEGPES.bind(this),k=this._parseID3PES.bind(this),A=O._syncOffset(t);for(s-=(s+A)%188,a=A;a<s;a+=188)if(71===t[a]){if(i=!!(64&t[a+1]),o=((31&t[a+1])<<8)+t[a+2],1<(48&t[a+3])>>4){if((u=a+5+t[a+4])===a+188)continue}else u=a+4;switch(o){case g:i&&(b&&(l=S(b))&&void 0!==l.pts&&T(l,!1),b={data:[],size:0}),b&&(b.data.push(t.subarray(u,a+188)),b.size+=a+188-u);break;case m:i&&(w&&(l=S(w))&&void 0!==l.pts&&(h.isAAC?_:C)(l),w={data:[],size:0}),w&&(w.data.push(t.subarray(u,a+188)),w.size+=a+188-u);break;case v:i&&($&&(l=S($))&&void 0!==l.pts&&k(l),$={data:[],size:0}),$&&($.data.push(t.subarray(u,a+188)),$.size+=a+188-u);break;case 0:i&&(u+=t[u]+1),y=this._pmtId=E(t,u);break;case y:i&&(u+=t[u]+1);var D=x(t,u,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);0<(g=D.avc)&&(d.pid=g),0<(m=D.audio)&&(h.pid=m,h.isAAC=D.isAAC),0<(v=D.id3)&&(f.pid=v),c&&!p&&(V.b.log("reparse from beginning"),c=!1,a=A-188),p=this.pmtParsed=!0;break;case 17:case 8191:break;default:c=!0}}else this.observer.trigger(j.a.ERROR,{type:B.b.MEDIA_ERROR,details:B.a.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});b&&(l=S(b))&&void 0!==l.pts?(T(l,!0),d.pesData=null):d.pesData=b,w&&(l=S(w))&&void 0!==l.pts?((h.isAAC?_:C)(l),h.pesData=null):(w&&w.size&&V.b.log("last AAC PES packet truncated,might overlap between fragments"),h.pesData=w),$&&(l=S($))&&void 0!==l.pts?(k(l),f.pesData=null):f.pesData=$,null==this.sampleAes?this.remuxer.remux(h,d,f,this._txtTrack,e,n,r):this.decryptAndRemux(h,d,f,this._txtTrack,e,n,r)},O.prototype.decryptAndRemux=function(t,e,n,r,i,o,a){var s;t.samples&&t.isAAC?(s=this).sampleAes.decryptAacSamples(t.samples,0,function(){s.decryptAndRemuxAvc(t,e,n,r,i,o,a)}):this.decryptAndRemuxAvc(t,e,n,r,i,o,a)},O.prototype.decryptAndRemuxAvc=function(t,e,n,r,i,o,a){var s;e.samples?(s=this).sampleAes.decryptAvcSamples(e.samples,0,0,function(){s.remuxer.remux(t,e,n,r,i,o,a)}):this.remuxer.remux(t,e,n,r,i,o,a)},O.prototype.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},O.prototype._parsePAT=function(t,e){return(31&t[e+10])<<8|t[e+11]},O.prototype._parsePMT=function(t,e,n,r){var i,o={audio:-1,avc:-1,id3:-1,isAAC:!0},a=e+3+((15&t[e+1])<<8|t[e+2])-4;for(e+=12+((15&t[e+10])<<8|t[e+11]);e<a;){switch(i=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!r){V.b.log("unkown stream type:"+t[e]);break}case 15:-1===o.audio&&(o.audio=i);break;case 21:-1===o.id3&&(o.id3=i);break;case 219:if(!r){V.b.log("unkown stream type:"+t[e]);break}case 27:-1===o.avc&&(o.avc=i);break;case 3:case 4:n?-1===o.audio&&(o.audio=i,o.isAAC=!1):V.b.log("MPEG audio found, not supported in this browser for now");break;case 36:V.b.warn("HEVC stream type found, not supported for now");break;default:V.b.log("unkown stream type:"+t[e])}e+=5+((15&t[e+3])<<8|t[e+4])}return o},O.prototype._parsePES=function(t){var e,n=0,r=void 0,i=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=t.data;if(!t||0===t.size)return null;for(;l[0].length<19&&1<l.length;){var c=new Uint8Array(l[0].length+l[1].length);c.set(l[0]),c.set(l[1],l[0].length),l[0]=c,l.splice(1,1)}if(1!==((r=l[0])[0]<<16)+(r[1]<<8)+r[2])return null;if((i=(r[4]<<8)+r[5])&&i>t.size-6)return null;192&(e=r[7])&&(4294967295<(a=536870912*(14&r[9])+4194304*(255&r[10])+16384*(254&r[11])+128*(255&r[12])+(254&r[13])/2)&&(a-=8589934592),64&e?(4294967295<(s=536870912*(14&r[14])+4194304*(255&r[15])+16384*(254&r[16])+128*(255&r[17])+(254&r[18])/2)&&(s-=8589934592),54e5<a-s&&(V.b.warn(Math.round((a-s)/9e4)+"s delta between PTS and DTS, align them"),a=s)):s=a),e=r[8],t.size-=u=e+9;for(var o=new Uint8Array(t.size),p=0,d=l.length;p<d;p++){var h=(r=l[p]).byteLength;if(u){if(h<u){u-=h;continue}r=r.subarray(u),h-=u,u=0}o.set(r,n),n+=h}return i&&(i-=e+3),{data:o,pts:a,dts:s,len:i}},O.prototype.pushAccesUnit=function(t,e){var n,r;t.units.length&&t.frame&&(r=(n=e.samples).length,!this.config.forceKeyFrameOnDiscontinuity||
1!0===t.key||e.sps&&(r||this.contiguous)?(t.id=r,n.push(t)):e.dropped++),t.debug.length&&V.b.log(t.pts+"/"+t.dts+":"+t.debug)},O.prototype._parseAVCPES=function(d,t){function h(t,e,n,r){return{key:t,pts:e,dts:n,units:[],debug:r}}var f=this,g=this._avcTrack,e=this._parseAVCNALu(d.data),m=void 0,v=this.avcSample,y=void 0,b=!1,w=void 0,$=this.pushAccesUnit.bind(this);d.data=null,v&&e.length&&!g.audFound&&($(v,g),v=this.avcSample=h(!1,d.pts,d.dts,"")),e.forEach(function(t){switch(t.type){case 1:y=!0,(v=v||(f.avcSample=h(!0,d.pts,d.dts,""))).frame=!0;var e=t.data;b&&4<e.length&&(2!==(e=new E(e).readSliceType())&&4!==e&&7!==e&&9!==e||(v.key=!0));break;case 5:y=!0,(v=v||(f.avcSample=h(!0,d.pts,d.dts,""))).key=!0,v.frame=!0;break;case 6:y=!0,(m=new E(f.discardEPB(t.data))).readUByte();for(var n=0,r=0,i=!1,o=0;!i&&1<m.bytesAvailable;){for(n=0;n+=o=m.readUByte(),255===o;);for(r=0;r+=o=m.readUByte(),255===o;);if(4===n&&0!==m.bytesAvailable){var i=!0,a=m.readUByte();if(181===a)if(49===m.readUShort()){a=m.readUInt();if(1195456820===a)if(3===m.readUByte()){var a=m.readUByte(),s=31&a,u=[a,m.readUByte()];for(w=0;w<s;w++)u.push(m.readUByte()),u.push(m.readUByte()),u.push(m.readUByte());f._insertSampleInOrder(f._txtTrack.samples,{type:3,pts:d.pts,bytes:u})}}}else if(r<m.bytesAvailable)for(w=0;w<r;w++)m.readUByte()}break;case 7:if(b=y=!0,!g.sps){var e=(m=new E(t.data)).readSPS(),l=(g.width=e.width,g.height=e.height,g.pixelRatio=e.pixelRatio,g.sps=[t.data],g.duration=f._duration,t.data.subarray(1,4)),c="avc1.";for(w=0;w<3;w++){var p=l[w].toString(16);c+=p=p.length<2?"0"+p:p}g.codec=c}break;case 8:y=!0,g.pps||(g.pps=[t.data]);break;case 9:y=!1,g.audFound=!0,v&&$(v,g),v=f.avcSample=h(!1,d.pts,d.dts,"");break;case 12:y=!1;break;default:y=!1,v&&(v.debug+="unknown NAL "+t.type+" ")}v&&y&&v.units.push(t)}),t&&v&&($(v,g),this.avcSample=null)},O.prototype._insertSampleInOrder=function(t,e){var n=t.length;if(0<n){if(e.pts>=t[n-1].pts)t.push(e);else for(var r=n-1;0<=r;r--)if(e.pts<t[r].pts){t.splice(r,0,e);break}}else t.push(e)},O.prototype._getLastNalUnit=function(){var t,e=this.avcSample,n=void 0;return n=(e=e&&0!==e.units.length?e:(t=this._avcTrack.samples)[t.length-1])?(t=e.units)[t.length-1]:n},O.prototype._parseAVCNALu=function(t){var e,n,r,i=0,o=t.byteLength,a=this._avcTrack,s=f=a.naluState||0,u=[],l=void 0,c=-1,p=void 0;for(-1===f&&(p=31&t[c=0],f=0,i=1);i<o;){var d,h,f,g=t[i++];f?f=1===f?g?0:2:g?1===g?(0<=c?(l={data:t.subarray(c,i-f-1),type:p},u.push(l)):(d=this._getLastNalUnit())&&(s&&i<=4-s&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-s)),0<(e=i-f-1))&&((h=new Uint8Array(d.data.byteLength+e)).set(d.data,0),h.set(t.subarray(0,e),d.data.byteLength),d.data=h),i<o?(p=31&t[c=i],0):-1):0:3:f=g?0:1}return 0<=c&&0<=f&&(l={data:t.subarray(c,o),type:p,state:f},u.push(l)),0===u.length&&(n=this._getLastNalUnit())&&((r=new Uint8Array(n.data.byteLength+t.byteLength)).set(n.data,0),r.set(t,n.data.byteLength),n.data=r),a.naluState=f,u},O.prototype.discardEPB=function(t){for(var e=t.byteLength,n=[],r=1,i=void 0;r<e-2;)0===t[r]&&0===t[r+1]&&3===t[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return t;for(var o=e-n.length,i=new Uint8Array(o),a=0,r=0;r<o;a++,r++)a===n[0]&&(a++,n.shift()),i[r]=t[a];return i},O.prototype._parseAACPES=function(t){var e,n=this._audioTrack,r=t.data,i=t.pts,t=this.aacOverFlow,o=this.aacLastPTS,a=void 0,s=void 0,u=void 0;for(t&&((l=new Uint8Array(t.byteLength+r.byteLength)).set(t,0),l.set(r,t.byteLength),r=l),s=0,e=r.length;s<e-1&&!f(r,s);s++);if(s){var l=void 0,c=void 0,c=s<e-1?(l="AAC PES did not start with ADTS header,offset:"+s,!1):(l="no ADTS header found in AAC PES",!0);if(V.b.warn("parsing error:"+l),this.observer.trigger(j.a.ERROR,{type:B.b.MEDIA_ERROR,details:B.a.FRAG_PARSING_ERROR,fatal:c,reason:l}),c)return}for(m(n,this.observer,r,s,this.audioCodec),a=0,l=d(n.samplerate),t&&o&&(c=o+l,1<Math.abs(c-i))&&(V.b.log("AAC: align PTS for overlapping frames by "+Math.round((c-i)/90)),i=c);s<e;)if(f(r,s)&&s+5<e){var p=v(n,r,s,i,a);if(!p)break;s+=p.length,u=p.sample.pts,a++}else s++;t=s<e?r.subarray(s,e):null,this.aacOverFlow=t,this.aacLastPTS=u},O.prototype._parseMPEGPES=function(t){for(var e=t.data,n=e.length,r=0,i=0,o=t.pts;i<n;)if(b.isHeader(e,i)){var a=b.appendFrame(this._audioTrack,e,i,o,r);if(!a)break;i+=a.length,r++}else i++},O.prototype._parseID3PES=function(t){this._id3Track.samples.push(t)};var L=O;function p(t,e,n){if(!(this instanceof p))throw new TypeError("Cannot call a class as a function");this.observer=t,this.config=n,this.remuxer=e}p.prototype.resetInitSegment=function(t,e,n,r){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:r,inputTimeScale:9e4}},p.prototype.resetTimeStamp=function(){},p.probe=function(t){var e,n=void 0,r=y.a.getID3Data(t,0);if(r&&void 0!==y.a.getTimeStamp(r))for(n=r.length,e=Math.min(t.length-1,n+100);n<e;n++)if(b.probe(t,n))return V.b.log("MPEG Audio sync word found !"),!0;return!1},p.prototype.append=function(t,e,n,r){for(var i=y.a.getID3Data(t,0),o=y.a.getTimeStamp(i),a=o?90*o:9e4*e,s=i.length,u=t.length,l=0,c=0,p=this._audioTrack,d=[{pts:a,dts:a,data:i}];s<u;)if(b.isHeader(t,s)){var h=b.appendFrame(p,t,s,a,l);
vendor: 8,375 bytes, line 1
1if(!h)break;s+=h.length,c=h.sample.pts,l++}else y.a.isHeader(t,s)?(i=y.a.getID3Data(t,s),d.push({pts:c,dts:c,data:i}),s+=i.length):s++;this.remuxer.remux(p,{samples:[]},{samples:d,inputTimeScale:9e4},{samples:[]},e,n,r)},p.prototype.destroy=function(){};var I=p;function h(){if(!(this instanceof h))throw new TypeError("Cannot call a class as a function")}h.getSilentFrame=function(t,e){if("mp4a.40.2"===t){if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};var N=h;var w=Math.pow(2,32)-1;function $(){if(!(this instanceof $))throw new TypeError("Cannot call a class as a function")}$.init=function(){var t=void 0;for(t in $.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]})$.types.hasOwnProperty(t)&&($.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var 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]),n=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]),e=($.HDLR_TYPES={video:e,audio:n},new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1])),n=new Uint8Array([0,0,0,0,0,0,0,0]),n=($.STTS=$.STSC=$.STCO=n,$.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),$.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),$.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),$.STSD=new Uint8Array([0,0,0,0,0,0,0,1]),new Uint8Array([105,115,111,109])),r=new Uint8Array([97,118,99,49]),i=new Uint8Array([0,0,0,1]);$.FTYP=$.box($.types.ftyp,n,i,n,r),$.DINF=$.box($.types.dinf,$.box($.types.dref,e))},$.box=function(t){for(var e=Array.prototype.slice.call(arguments,1),n=8,r=e.length,i=r,o=void 0;r--;)n+=e[r].byteLength;for((o=new Uint8Array(n))[0]=n>>24&255,o[1]=n>>16&255,o[2]=n>>8&255,o[3]=255&n,o.set(t,4),r=0,n=8;r<i;r++)o.set(e[r],n),n+=e[r].byteLength;return o},$.hdlr=function(t){return $.box($.types.hdlr,$.HDLR_TYPES[t])},$.mdat=function(t){return $.box($.types.mdat,t)},$.mdhd=function(t,e){e*=t;var n=Math.floor(e/(1+w)),e=Math.floor(e%(1+w));return $.box($.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,e>>24,e>>16&255,e>>8&255,255&e,85,196,0,0]))},$.mdia=function(t){return $.box($.types.mdia,$.mdhd(t.timescale,t.duration),$.hdlr(t.type),$.minf(t))},$.mfhd=function(t){return $.box($.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))},$.minf=function(t){return"audio"===t.type?$.box($.types.minf,$.box($.types.smhd,$.SMHD),$.DINF,$.stbl(t)):$.box($.types.minf,$.box($.types.vmhd,$.VMHD),$.DINF,$.stbl(t))},$.moof=function(t,e,n){return $.box($.types.moof,$.mfhd(t),$.traf(n,e))},$.moov=function(t){for(var e=t.length,n=[];e--;)n[e]=$.trak(t[e]);return $.box.apply(null,[$.types.moov,$.mvhd(t[0].timescale,t[0].duration)].concat(n).concat($.mvex(t)))},$.mvex=function(t){for(var e=t.length,n=[];e--;)n[e]=$.trex(t[e]);return $.box.apply(null,[$.types.mvex].concat(n))},$.mvhd=function(t,e){e*=t;var n=Math.floor(e/(1+w)),e=Math.floor(e%(1+w)),t=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24,n>>16&255,n>>8&255,255&n,e>>24,e>>16&255,e>>8&255,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 $.box($.types.mvhd,t)},$.sdtp=function(t){for(var e,n=t.samples||[],r=new Uint8Array(4+n.length),i=void 0,i=0;i<n.length;i++)e=n[i].flags,r[i+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return $.box($.types.sdtp,r)},$.stbl=function(t){return $.box($.types.stbl,$.stsd(t),$.box($.types.stts,$.STTS),$.box($.types.stsc,$.STSC),$.box($.types.stsz,$.STSZ),$.box($.types.stco,$.STCO))},$.avc1=function(t){for(var e=[],n=[],r=void 0,i=void 0,o=void 0,r=0;r<t.sps.length;r++)o=(i=t.sps[r]).byteLength,e.push(o>>>8&255),e.push(255&o),e=e.concat(Array.prototype.slice.call(i));for(r=0;r<t.pps.length;r++)o=(i=t.pps[r]).byteLength,n.push(o>>>8&255),n.push(255&o),n=n.concat(Array.prototype.slice.call(i));var a=$.box($.types.avcC,new Uint8Array([1,e[3],e[4],e[5],255,224|t.sps.length].concat(e).concat([t.pps.length]).concat(n))),s=t.width,u=t.height,l=t.pixelRatio[0],c=t.pixelRatio[1];return $.box($.types.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,s>>8&255,255&s,u>>8&255,255&u,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a,$.box($.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),$.box($.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,c>>24,c>>16&255,c>>8&255,255&c])))},$.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},$.mp4a=function(t){var e=t.samplerate;return $.box($.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0]),$.box($.types.esds,$.esds(t)))},$.mp3=function(t){var e=t.samplerate;return $.box($.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount,0,16,0,0,0,0,e>>8&255,255&e,0,0]))},$.stsd=function(t){return"audio"===t.type?t.isAAC||"mp3"!==t.codec?$.box($.types.stsd,$.STSD,$.mp4a(t)):$.box($.types.stsd,$.STSD,$.mp3(t)):$.box($.types.stsd,$.STSD,$.avc1(t))},$.tkhd=function(t){var e=t.id,n=t.duration*t.timescale,r=t.width,t=t.height,i=Math.floor(n/(1+w)),n=Math.floor(n%(1+w));return $.box($.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,n>>24,n>>16&255,n>>8&255,255&n,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,t>>8&255,255&t,0,0]))},$.traf=function(t,e){var n=$.sdtp(t),r=t.id,i=Math.floor(e/(1+w)),e=Math.floor(e%(1+w));return $.box($.types.traf,$.box($.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r])),$.box($.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,e>>24,e>>16&255,e>>8&255,255&e])),$.trun(t,n.length+16+20+8+16+8+8),n)},$.trak=function(t){return t.duration=t.duration||4294967295,$.box($.types.trak,$.tkhd(t),$.mdia(t))},$.trex=function(t){t=t.id;return $.box($.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},$.trun=function(t,e){var n,r,i,o,a=t.samples||[],s=a.length,t=12+16*s,u=new Uint8Array(t),l=void 0;for(u.set([0,0,15,1,s>>>24&255,s>>>16&255,s>>>8&255,255&s,(e+=8+t)>>>24&255,e>>>16&255,e>>>8&255,255&e],0),l=0;l<s;l++)n=(o=a[l]).duration,r=o.size,i=o.flags,o=o.cts,u.set([n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i.isLeading<<2|i.dependsOn,i.isDependedOn<<6|i.hasRedundancy<<4|i.paddingValue<<1|i.isNonSync,61440&i.degradPrio,15&i.degradPrio,o>>>24&255,o>>>16&255,o>>>8&255,255&o],12+16*l);return $.box($.types.trun,u)},$.initSegment=function(t){$.types||$.init();var t=$.moov(t),e=void 0;
1return(e=new Uint8Array($.FTYP.byteLength+t.byteLength)).set($.FTYP),e.set(t,$.FTYP.byteLength),e};var q=$;function T(t,e,n,r){if(!(this instanceof T))throw new TypeError("Cannot call a class as a function");this.observer=t,this.config=e,this.typeSupported=n;t=navigator.userAgent;this.isSafari=r&&-1<r.indexOf("Apple")&&t&&!t.match("CriOS"),this.ISGenerated=!1}T.prototype.destroy=function(){},T.prototype.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},T.prototype.resetInitSegment=function(){this.ISGenerated=!1},T.prototype.remux=function(t,e,n,r,i,o,a){var s,u,l,c,p;this.ISGenerated||this.generateIS(t,e,i),this.ISGenerated&&(c=t.samples.length,s=e.samples.length,l=u=i,c&&s&&(p=(t.samples[0].dts-e.samples[0].dts)/e.inputTimeScale,u+=Math.max(0,p),l+=Math.max(0,-p)),c?(t.timescale||(V.b.warn("regenerate InitSegment as audio detected"),this.generateIS(t,e,i)),p=this.remuxAudio(t,u,o,a),s&&(c=void 0,p&&(c=p.endPTS-p.startPTS),e.timescale||(V.b.warn("regenerate InitSegment as video detected"),this.generateIS(t,e,i)),this.remuxVideo(e,l,o,c,a))):s&&(p=this.remuxVideo(e,l,o,0,a))&&t.codec&&this.remuxEmptyAudio(t,u,o,p)),n.samples.length&&this.remuxID3(n,i),r.samples.length&&this.remuxText(r,i),this.observer.trigger(j.a.FRAG_PARSED)},T.prototype.generateIS=function(t,e,n){var r=this.observer,i=t.samples,o=e.samples,a=this.typeSupported,s="audio/mp4",u={},l={tracks:u},c=void 0===this._initPTS,p=void 0,d=void 0;c&&(p=d=1/0),t.config&&i.length&&(t.timescale=t.samplerate,V.b.log("audio sampling rate : "+t.samplerate),t.isAAC||(a.mpeg?(s="audio/mpeg",t.codec=""):a.mp3&&(t.codec="mp3")),u.audio={container:s,codec:t.codec,initSegment:!t.isAAC&&a.mpeg?new Uint8Array:q.initSegment([t]),metadata:{channelCount:t.channelCount}},c)&&(p=d=i[0].pts-t.inputTimeScale*n),e.sps&&e.pps&&o.length&&(s=e.inputTimeScale,e.timescale=s,u.video={container:"video/mp4",codec:e.codec,initSegment:q.initSegment([e]),metadata:{width:e.width,height:e.height}},c)&&(p=Math.min(p,o[0].pts-s*n),d=Math.min(d,o[0].dts-s*n),this.observer.trigger(j.a.INIT_PTS_FOUND,{initPTS:p})),Object.keys(u).length?(r.trigger(j.a.FRAG_PARSING_INIT_SEGMENT,l),this.ISGenerated=!0,c&&(this._initPTS=p,this._initDTS=d)):r.trigger(j.a.ERROR,{type:B.b.MEDIA_ERROR,details:B.a.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},T.prototype.remuxVideo=function(t,e,n,r,i){var o=8,a=t.timescale,s=void 0,u=void 0,l=void 0,c=void 0,p=t.samples,d=[],h=p.length,f=this._PTSNormalize,g=this._initDTS,m=this.nextAvcDts,v=this.isSafari;if(0!==h){v&&(n|=p.length&&m&&(i&&Math.abs(e-m/a)<.1||Math.abs(p[0].pts-m-g)<a/5)),n||(m=e*a),p.forEach(function(t){t.pts=f(t.pts-g,m),t.dts=f(t.dts-g,m)}),p.sort(function(t,e){var n=t.dts-e.dts,r=t.pts-e.pts;return n||r||t.id-e.id});var y=p.reduce(function(t,e){return Math.max(Math.min(t,e.pts-e.dts),-18e3)},0);if(y<0){V.b.warn("PTS < DTS detected in video samples, shifting DTS by "+Math.round(y/90)+" ms to overcome this issue");for(var b=0;b<p.length;b++)p[b].dts+=y}for(var i=p[0],c=Math.max(i.dts,0),l=Math.max(i.pts,0),e=Math.round((c-m)/90),w=(n&&e&&(1<e?V.b.log("AVC:"+e+" ms hole between fragments detected,filling it"):e<-1&&V.b.log("AVC:"+-e+" ms overlapping between fragments detected"),c=m,p[0].dts=c,l=Math.max(l-e,m),p[0].pts=l,V.b.log("Video/PTS/DTS adjusted: "+Math.round(l/90)+"/"+Math.round(c/90)+",delta:"+e+" ms")),i=p[p.length-1],n=Math.max(i.dts,0),e=Math.max(i.pts,0,n),v&&(s=Math.round((n-c)/(p.length-1))),0),$=0,E=0;E<h;E++){for(var x=p[E],S=x.units,T=S.length,_=0,C=0;C<T;C++)_+=S[C].data.length;$+=_,w+=T,x.length=_,x.dts=v?c+E*s:Math.max(x.dts,c),x.pts=Math.max(x.pts,x.dts)}i=$+4*w+8;try{u=new Uint8Array(i)}catch(t){return void this.observer.trigger(j.a.ERROR,{type:B.b.MUX_ERROR,details:B.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:i,reason:"fail allocating video mdat "+i})}var k=new DataView(u.buffer);k.setUint32(0,i),u.set(q.types.mdat,4);for(var A=0;A<h;A++){for(var D,O,R=p[A],L=R.units,P=0,N=void 0,I=0,F=L.length;I<F;I++){var M=L[I],U=M.data,M=M.data.byteLength;k.setUint32(o,M),o+=4,u.set(U,o),o+=M,P+=4+M}N=v?Math.max(0,s*Math.round((R.pts-R.dts)/s)):(A<h-1?s=p[A+1].dts-R.dts:(O=this.config,D=R.dts-p[0<A?A-1:A].dts,O.stretchShortVideoTrack&&(O=O.maxBufferHole,Math.floor(O*a)<(O=(r?l+r*a:this.nextAudioPts)-R.pts))?((s=O-D)<0&&(s=D),V.b.log("It is approximately "+O/90+" ms to the next segment; using duration "+s/90+" ms for the last video frame.")):s=D),Math.round(R.pts-R.dts)),d.push({size:P,duration:s,cts:N,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:R.key?2:1,isNonSync:R.key?0:1}})}this.nextAvcDts=n+s;i=t.dropped,t=(t.len=0,t.nbNalu=0,t.dropped=0,d.length&&-1<navigator.userAgent.toLowerCase().indexOf("chrome")&&((n=d[0].flags).dependsOn=2,n.isNonSync=0),t.samples=d,n=q.moof(t.sequenceNumber++,c,t),t.samples=[],{data1:n,data2:u,startPTS:l/a,endPTS:(e+s)/a,startDTS:c/a,endDTS:this.nextAvcDts/a,type:"video",hasAudio:!1,hasVideo:!0,nb:d.length,dropped:i});return this.observer.trigger(j.a.FRAG_PARSING_DATA,t),t}},T.prototype.remuxAudio=function(t,e,n,r){var i=t.inputTimeScale,o=t.timescale,a=i/o,s=(t.isAAC?1024:1152)*a,u=this._PTSNormalize,l=this._initDTS,c=!t.
1isAAC&&this.typeSupported.mpeg,p=void 0,d=void 0,h=void 0,f=void 0,o=void 0,g=void 0,m=void 0,v=t.samples,y=[],b=this.nextAudioPts;if(n|=v.length&&b&&(r&&Math.abs(e-b/i)<.1||Math.abs(v[0].pts-b-l)<20*s),v.forEach(function(t){t.pts=t.dts=u(t.pts-l,e*i)}),0!==(v=v.filter(function(t){return 0<=t.pts})).length){if(n||(b=r?e*i:v[0].pts),t.isAAC)for(var w=this.config.maxAudioFramesDrift,$=0,E=b;$<v.length;){var x=v[$],S=x.pts-E,T=Math.abs(1e3*S/i);if(S<=-w*s)V.b.warn("Dropping 1 audio frame @ "+(E/i).toFixed(3)+"s due to "+Math.round(T)+" ms overlap."),v.splice($,1),t.len-=x.unit.length;else{if(w*s<=S&&T<1e4&&E){var _=Math.round(S/s);V.b.warn("Injecting "+_+" audio frame @ "+(E/i).toFixed(3)+"s due to "+Math.round(1e3*S/i)+" ms gap.");for(var C=0;C<_;C++){var k=Math.max(E,0);(h=N.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(V.b.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),h=x.unit.subarray()),v.splice($,0,{unit:h,pts:k,dts:k}),t.len+=h.length,E+=s,$++}}else Math.abs(S);x.pts=x.dts=E,E+=s,$++}}for(var A=0,P=v.length;A<P;A++){var D=v[A],O=D.unit,D=D.pts;if(void 0!==m)d.duration=Math.round((D-m)/a);else{var R=Math.round(1e3*(D-b)/i),L=0;if(n&&t.isAAC&&R){if(0<R&&R<1e4)L=Math.round((D-b)/s),V.b.log(R+" ms hole between AAC samples detected,filling it"),0<L&&(h=(h=N.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||O.subarray(),t.len+=L*h.length);else if(R<-12){V.b.log("drop overlapping AAC sample, expected/parsed/delta:"+(b/i).toFixed(3)+"s/"+(D/i).toFixed(3)+"s/"+-R+"ms"),t.len-=O.byteLength;continue}D=b}if(g=D,!(0<t.len))return;R=c?t.len:t.len+8,p=c?0:8;try{f=new Uint8Array(R)}catch(t){return void this.observer.trigger(j.a.ERROR,{type:B.b.MUX_ERROR,details:B.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:R,reason:"fail allocating audio mdat "+R})}c||(new DataView(f.buffer).setUint32(0,R),f.set(q.types.mdat,4));for(var I=0;I<L;I++)(h=N.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(V.b.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),h=O.subarray()),f.set(h,p),p+=h.byteLength,d={size:h.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},y.push(d)}f.set(O,p);R=O.byteLength;p+=R,y.push(d={size:R,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}}),m=D}var r=0,M=y.length;return 2<=M&&(r=y[M-2].duration,d.duration=r),M?(this.nextAudioPts=b=m+a*r,t.len=0,t.samples=y,o=c?new Uint8Array:q.moof(t.sequenceNumber++,g/a,t),t.samples=[],this.observer.trigger(j.a.FRAG_PARSING_DATA,r={data1:o,data2:f,startPTS:r=g/i,endPTS:o=b/i,startDTS:r,endDTS:o,type:"audio",hasAudio:!0,hasVideo:!1,nb:M}),r):null}},T.prototype.remuxEmptyAudio=function(t,e,n,r){var i=t.inputTimeScale,o=t.samplerate||i,a=this.nextAudioPts,s=(void 0!==a?a:r.startDTS*i)+this._initDTS,a=r.endDTS*i+this._initDTS,u=1024*(i/o),l=Math.ceil((a-s)/u),c=N.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(V.b.warn("remux empty Audio"),c){for(var p=[],d=0;d<l;d++){var h=s+d*u;p.push({unit:c,pts:h,dts:h}),t.len+=c.length}t.samples=p,this.remuxAudio(t,e,n)}else V.b.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")},T.prototype.remuxID3=function(t,e){var n=t.samples.length,r=void 0,i=t.inputTimeScale,o=this._initPTS,a=this._initDTS;if(n){for(var s=0;s<n;s++)(r=t.samples[s]).pts=(r.pts-o)/i,r.dts=(r.dts-a)/i;this.observer.trigger(j.a.FRAG_PARSING_METADATA,{samples:t.samples})}t.samples=[]},T.prototype.remuxText=function(t,e){t.samples.sort(function(t,e){return t.pts-e.pts});var n=t.samples.length,r=void 0,i=t.inputTimeScale,o=this._initPTS;if(n){for(var a=0;a<n;a++)(r=t.samples[a]).pts=(r.pts-o)/i;this.observer.trigger(j.a.FRAG_PARSING_USERDATA,{samples:t.samples})}t.samples=[]},T.prototype._PTSNormalize=function(t,e){var n=void 0;if(void 0!==e)for(n=e<t?-8589934592:8589934592;4294967296<Math.abs(t-e);)t+=n;return t};var _=T;function C(t){if(!(this instanceof C))throw new TypeError("Cannot call a class as a function");this.observer=t}C.prototype.destroy=function(){},C.prototype.resetTimeStamp=function(){},C.prototype.resetInitSegment=function(){},C.prototype.remux=function(t,e,n,r,i,o,a,s){var u=this.observer,l="";t&&(l+="audio"),e&&(l+="video"),u.trigger(j.a.FRAG_PARSING_DATA,{data1:s,startPTS:i,startDTS:i,type:l,hasAudio:!!t,hasVideo:!!e,nb:1,dropped:0}),u.trigger(j.a.FRAG_PARSED)};var M=C;var k=Object(n.a)();function A(t,e,n,r){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function");
1this.observer=t,this.typeSupported=e,this.config=n,this.vendor=r}A.prototype.destroy=function(){var t=this.demuxer;t&&t.destroy()},A.prototype.push=function(t,n,r,i,o,a,s,u,l,c,p,d){if(0<t.byteLength&&null!=n&&null!=n.key&&"AES-128"===n.method){var e=this.decrypter,h=(null==e&&(e=this.decrypter=new g.a(this.observer,this.config)),this),f=void 0;try{f=k.now()}catch(t){f=Date.now()}e.decrypt(t,n.key.buffer,n.iv.buffer,function(t){var e=void 0;try{e=k.now()}catch(t){e=Date.now()}h.observer.trigger(j.a.FRAG_DECRYPTED,{stats:{tstart:f,tdecrypt:e}}),h.pushDecrypted(new Uint8Array(t),n,new Uint8Array(r),i,o,a,s,u,l,c,p,d)})}else this.pushDecrypted(new Uint8Array(t),n,new Uint8Array(r),i,o,a,s,u,l,c,p,d)},A.prototype.pushDecrypted=function(t,e,n,r,i,o,a,s,u,l,c,p){if(!($=this.demuxer)||(a||s)&&!this.probe(t)){for(var d=this.observer,h=this.typeSupported,f=this.config,g=[{demux:L,remux:_},{demux:S.a,remux:M},{demux:x,remux:_},{demux:I,remux:_}],m=0,v=g.length;m<v;m++){var y=g[m],b=y.demux.probe;if(b(t)){var w=this.remuxer=new y.remux(d,f,h,this.vendor),$=new y.demux(d,w,f,h);this.probe=b;break}}if(!$)return void d.trigger(j.a.ERROR,{type:B.b.MEDIA_ERROR,details:B.a.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});this.demuxer=$}var E=this.remuxer;(a||s)&&($.resetInitSegment(n,r,i,l),E.resetInitSegment()),a&&($.resetTimeStamp(p),E.resetTimeStamp(p)),"function"==typeof $.setDecryptData&&$.setDecryptData(e),$.append(t,o,u,c)};t.a=A},function(P,N,t){"use strict";Object.defineProperty(N,"__esModule",{value:!0});var F={},e=(t.d(F,"newCue",function(){return Ye}),t(4)),U=t.n(e),c=t(2),b=t(1),$=t(0),j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var B=new Set(["hlsEventGeneric","hlsHandlerDestroying","hlsHandlerDestroyed"]);function a(t){var e=this,n=a;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");this.hls=t,this.onEvent=this.onEvent.bind(this);for(var r=arguments.length,i=Array(1<r?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];this.handledEvents=i,this.useGenericHandler=!0,this.registerListeners()}a.prototype.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},a.prototype.onHandlerDestroying=function(){},a.prototype.onHandlerDestroyed=function(){},a.prototype.isEventHandler=function(){return"object"===j(this.handledEvents)&&this.handledEvents.length&&"function"==typeof this.onEvent},a.prototype.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(t){if(B.has(t))throw new Error("Forbidden event-name: "+t);this.hls.on(t,this.onEvent)},this)},a.prototype.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(t){this.hls.off(t,this.onEvent)},this)},a.prototype.onEvent=function(t,e){this.onEventGeneric(t,e)},a.prototype.onEventGeneric=function(e,t){try{!function(t,e){var n="on"+t.replace("hls","");if("function"!=typeof this[n])throw new Error("Event "+t+" has no generic handler in this "+this.constructor.name+" class (tried "+n+")");return this[n].bind(this,e)}.call(this,e,t).call()}catch(t){$.b.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),this.hls.trigger(b.a.ERROR,{type:c.b.OTHER_ERROR,details:c.a.INTERNAL_EXCEPTION,fatal:!1,event:e,err:t})}};var o=a,V=t(8);function q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H(){if(!(this instanceof H))throw new TypeError("Cannot call a class as a function");this.method=null,this.key=null,this.iv=null,this._uri=null}(function(t,e,n){e&&q(t.prototype,e),n&&q(t,n)})(H,[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=U.a.buildAbsoluteURL(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}]);var W=H,e=function(t,e,n){return e&&G(t.prototype,e),n&&G(t,n),t};function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function n(){var t;if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[],this._elementaryStreams=((t={})[n.ElementaryStreamTypes.AUDIO]=!1,t[n.ElementaryStreamTypes.VIDEO]=!1,t)}n.prototype.addElementaryStream=function(t){this._elementaryStreams[t]=!0},n.prototype.hasElementaryStream=function(t){return!0===this._elementaryStreams[t]},n.prototype.createInitializationVector=function(t){for(var e=new Uint8Array(16),n=12;n<16;n++)e[n]=t>>8*(15-n)&255;return e}
1,n.prototype.fragmentDecryptdataFromLevelkey=function(t,e){var n=t;return t&&t.method&&t.uri&&!t.iv&&((n=new W).method=t.method,n.baseuri=t.baseuri,n.reluri=t.reluri,n.iv=this.createInitializationVector(e)),n},e(n,[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=U.a.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:"programDateTime",get:function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime}},{key:"byteRange",get:function(){var t,e,n;return this._byteRange||this.rawByteRange?this._byteRange||(t=[],this.rawByteRange&&(1===(e=this.rawByteRange.split("@",2)).length?(n=this.lastByteRangeEndOffset,t[0]=n||0):t[0]=parseInt(e[1]),t[1]=parseInt(e[0])+t[0],this._byteRange=t),t):[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}],[{key:"ElementaryStreamTypes",get:function(){return{AUDIO:"audio",VIDEO:"video"}}}]);var E=n;var z=/^(\d+)x(\d+)$/,K=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g;function r(t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");for(var e in t="string"==typeof t?r.parseAttrList(t):t)t.hasOwnProperty(e)&&(this[e]=t[e])}r.prototype.decimalInteger=function(t){t=parseInt(this[t],10);return t>Number.MAX_SAFE_INTEGER?1/0:t},r.prototype.hexadecimalInteger=function(t){if(this[t]){for(var e=(1&(e=(this[t]||"0x").slice(2)).length?"0":"")+e,n=new Uint8Array(e.length/2),r=0;r<e.length/2;r++)n[r]=parseInt(e.slice(2*r,2*r+2),16);return n}return null},r.prototype.hexadecimalIntegerAsNumber=function(t){t=parseInt(this[t],16);return t>Number.MAX_SAFE_INTEGER?1/0:t},r.prototype.decimalFloatingPoint=function(t){return parseFloat(this[t])},r.prototype.enumeratedString=function(t){return this[t]},r.prototype.decimalResolution=function(t){t=z.exec(this[t]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}},r.parseAttrList=function(t){var e,n={};for(K.lastIndex=0;null!==(e=K.exec(t));){var r=e[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),n[e[1]]=r}return n};var x=r,Y={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};function X(t,e){return window.MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}var Q=/#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)/g,J=/#EXT-X-MEDIA:(.*)/g,Z=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)(\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),tt=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,et=/\.(mp4|m4s|m4v|m4a)$/i;function u(){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function")}u.findGroup=function(t,e){if(!t)return null;for(var n=null,r=0;r<t.length;r++){var i=t[r];i.id===e&&(n=i)}return n},u.convertAVC1ToAVCOTI=function(t){var e=void 0,n=t.split(".");return e=2<n.length?(e=n.shift()+".",(e+=parseInt(n.shift()).toString(16))+("000"+parseInt(n.shift()).toString(16)).substr(-4)):t},u.resolve=function(t,e){return U.a.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},u.parseMasterPlaylist=function(t,e){var n=[];function r(r,i){["video","audio"].forEach(function(n){var t,e=r.filter(function(t){return t=t,!!(e=Y[e=n])&&!0===e[t.slice(0,4)];var e});e.length&&(t=e.filter(function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}),i[n+"Codec"]=(0<t.length?t:e)[0],r=r.filter(function(t){return-1===e.indexOf(t)}))}),i.unknownCodecs=r}for(Q.lastIndex=0;null!=(a=Q.exec(t));){var i={},o=i.attrs=new x(a[1]),a=(i.url=u.resolve(a[2],e),o.decimalResolution("RESOLUTION"));a&&(i.width=a.width,i.height=a.height),i.bitrate=o.decimalInteger("AVERAGE-BANDWIDTH")||o.decimalInteger("BANDWIDTH"),i.name=o.NAME,r([].concat((o.CODECS||"").split(/[ ,]+/)),i),i.videoCodec&&-1!==i.videoCodec.indexOf("avc1")&&(i.videoCodec=u.convertAVC1ToAVCOTI(i.videoCodec)),n.push(i)}return n},u.parseMasterPlaylistMedia=function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[],i=[],o=0;for(J.lastIndex=0;null!==(s=J.exec(t));){var a={},s=new x(s[1]);s.TYPE===n&&(a.groupId=s["GROUP-ID"],a.name=s.NAME,a.type=n,a.default="YES"===s.DEFAULT,a.autoselect="YES"===s.AUTOSELECT,a.forced="YES"===s.FORCED,s.URI&&(a.url=u.resolve(s.URI,e)),a.lang=s.LANGUAGE,a.name||(a.name=a.lang),r.length&&(s=u.findGroup(r,a.groupId),a.audioCodec=(s||r[0]).codec),a.id=o++,i.push(a))}return i},u.parseLevelPlaylist=function(t,e,n,r,i){var o=0,a=0,s={type:null,version:null,url:e,fragments:[],live:!0,startSN:0},u=new W,l=0,c=null,p=new E,d=void 0,h=void 0;for(Z.lastIndex=0;null!==(d=Z.exec(t));){var f=d[1];if(f){p.duration=parseFloat(f);var g=(" "+d[2]).slice(1);p.title=g||null,p.tagList.push(g?["INF",f,g]:["INF",f])}else if(d[3])isNaN(p.duration)||(g=o++,p.type=r,p.start=a,p.levelkey=u,p.sn=g,p.level=n,p.cc=l,p.urlId=i,p.baseurl=e,p.relurl=(" "+d[3]).slice(1),s.programDateTime&&(c?p.rawProgramDateTime?p.pdt=Date.parse(p.rawProgramDateTime):p.pdt=c.pdt+1e3*c.duration:p.pdt=Date.parse(s.programDateTime),p.endPdt=p.pdt+1e3*p.duration),s.fragments.push(p),a+=(c=p).duration,p=new E);else if(d[4])p.rawByteRange=(" "+d[4]).slice(1),c&&(f=c.byteRangeEndOffset)&&(p.lastByteRangeEndOffset=f);else if(d[5])p.rawProgramDateTime=(" "+d[5]).slice(1),p.tagList.push(["PROGRAM-DATE-TIME",p.rawProgramDateTime]),void 0===s.programDateTime&&(s.programDateTime=new Date(new Date(Date.parse(d[5]))-1e3*a));else{for(d=d[0].match(tt),h=1;h<d.length&&void 0===d[h];h++);var m=(" "+d[h+1]).slice(1),v=(" "+d[h+2]).slice(1);switch(d[h]){case"#":p.tagList.push(v?[m,v]:[m]);break;case"PLAYLIST-TYPE":s.type=m.toUpperCase();break;case"MEDIA-SEQUENCE":o=s.startSN=parseInt(m);break;case"TARGETDURATION":s.targetduration=parseFloat(m);break;case"VERSION":s.version=parseInt(m);break;case"EXTM3U":break;case"ENDLIST":s.live=!1;break;case"DIS":l++,p.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":l=parseInt(m);break;case"KEY":var y=new x(m),b=y.enumeratedString("METHOD"),w=y.URI,y=y.hexadecimalInteger("IV");b&&(u=new W,w)&&0<=["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(b)&&(u.method=b,u.baseuri=e,u.reluri=w,u.key=null,u.iv=y);break;case"START":b=new x(m).decimalFloatingPoint("TIME-OFFSET");isNaN(b)||(s.startTimeOffset=b);break;case"MAP":w=new x(m);p.relurl=w.URI,p.rawByteRange=w.BYTERANGE,p.baseurl=e,p.level=n,p.type=r,p.sn="initSegment",s.initSegment=p,p=new E;break;default:$.b.warn("line parsed but not handled: "+d)}}}return(p=c)&&!p.relurl&&(s.fragments.pop(),a-=p.duration),s.totalduration=a,s.averagetargetduration=a/s.fragments.length,s.endSN=o-1,s.startCC=s.fragments[0]?s.fragments[0].cc:0,s.endCC=l,!s.initSegment&&s.fragments.length&&s.fragments.every(function(t){return et.test(t.relurl)})&&($.b.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(p=new E).relurl=s.fragments[0].relurl,p.baseurl=e,p.level=n,p.type=r,p.sn="initSegment",s.initSegment=p,s.needSidxRanges=!0),s};var nt=u,rt=function(t,e,n){return e&&it(t.prototype,e),n&&it(t,n),t};function it(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ot=window.performance,h={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},at={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"},st=function(e){var t=d,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function d(t){if(this instanceof d)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.MANIFEST_LOADING,b.a.LEVEL_LOADING,b.a.AUDIO_TRACK_LOADING,b.a.SUBTITLE_TRACK_LOADING))).loaders={},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),d.canHaveQualityLevels=function(t){return t!==h.AUDIO_TRACK&&t!==h.SUBTITLE_TRACK},d.mapContextToLevelType=function(t){switch(t.type){case h.AUDIO_TRACK:return at.AUDIO;case h.SUBTITLE_TRACK:return at.SUBTITLE;default:return at.MAIN}},d.getResponseUrl=function(t,e){t=t.url;return t=void 0!==t&&0!==t.indexOf("data:")?t:e.url},d.prototype.createInternalLoader=function(t){var e=this.hls.config,n=e.pLoader,r=e.loader,n=new(n||r)(e);return t.loader=n,this.loaders[t.type]=n},d.prototype.getInternalLoader=function(t){return this.loaders[t.type]},d.prototype.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},d.prototype.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},d.prototype.destroy=function(){this.destroyInternalLoaders(),e.prototype.destroy.call(this)},d.prototype.onManifestLoading=function(t){this.load(t.url,{type:h.MANIFEST,level:0,id:null})},d.prototype.onLevelLoading=function(t){this.load(t.url,{type:h.LEVEL,level:t.level,id:t.id})},d.prototype.onAudioTrackLoading=function(t){this.load(t.url,{type:h.AUDIO_TRACK,level:0,id:t.id})},d.prototype.onSubtitleTrackLoading=function(t){this.load(t.url,{type:h.SUBTITLE_TRACK,level:0,id:t.id})},d.prototype.load=function(t,e){var n=this.hls.config,r=($.b.debug("Loading playlist of type "+e.type+", level: "+e.level+", id: "+e.id),this.getInternalLoader(e));if(r){var i=r.context;if(i&&i.url===t)return $.b.trace("playlist request ongoing"),!1;$.b.warn("aborting previous loader for type: "+e.type),r.abort()}var o=void 0,a=void 0,s=void 0,u=void 0;switch(e.type){case h.MANIFEST:o=n.manifestLoadingMaxRetry,a=n.manifestLoadingTimeOut,s=n.manifestLoadingRetryDelay,u=n.manifestLoadingMaxRetryTimeout;break;case h.LEVEL:o=0,a=n.levelLoadingTimeOut;break;default:o=n.levelLoadingMaxRetry,a=n.levelLoadingTimeOut,s=n.levelLoadingRetryDelay,u=n.levelLoadingMaxRetryTimeout}r=this.createInternalLoader(e),e.url=t,e.responseType=e.responseType||"";var i={timeout:a,maxRetry:o,retryDelay:s,maxRetryDelay:u},l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return $.b.debug("Calling internal loader delegate for URL: "+t),r.load(e,i,l),!0},d.prototype.loadsuccess=function(t,e,n){var r,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;
1n.isSidxRequest?(this._handleSidxRequest(t,n),this._handlePlaylistLoaded(t,e,n,i)):(this.resetInternalLoader(n.type),r=t.data,e.tload=ot.now(),0!==r.indexOf("#EXTM3U")?this._handleManifestParsingError(t,n,"no EXTM3U delimiter",i):0<r.indexOf("#EXTINF:")||0<r.indexOf("#EXT-X-TARGETDURATION:")?this._handleTrackOrLevelPlaylist(t,e,n,i):this._handleMasterPlaylist(t,e,n,i))},d.prototype.loaderror=function(t,e){this._handleNetworkError(e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},d.prototype.loadtimeout=function(t,e){this._handleNetworkError(e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,!0)},d.prototype._handleMasterPlaylist=function(t,e,n,r){var i,o,a=this.hls,s=t.data,u=d.getResponseUrl(t,n),l=nt.parseMasterPlaylist(s,u);l.length?(i=l.map(function(t){return{id:t.attrs.AUDIO,codec:t.audioCodec}}),i=nt.parseMasterPlaylistMedia(s,u,"AUDIO",i),s=nt.parseMasterPlaylistMedia(s,u,"SUBTITLES"),i.length&&(o=!1,i.forEach(function(t){t.url||(o=!0)}),!1===o)&&l[0].audioCodec&&!l[0].attrs.AUDIO&&($.b.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),i.unshift({type:"main",name:"main"})),a.trigger(b.a.MANIFEST_LOADED,{levels:l,audioTracks:i,subtitles:s,url:u,stats:e,networkDetails:r})):this._handleManifestParsingError(t,n,"no level found in manifest",r)},d.prototype._handleTrackOrLevelPlaylist=function(t,e,n,r){var i=this.hls,o=n.id,a=n.level,s=n.type,u=d.getResponseUrl(t,n),l=isNaN(o)?0:o,c=isNaN(a)?l:a,p=d.mapContextToLevelType(n),c=nt.parseLevelPlaylist(t.data,u,c,p,l);c.tload=e.tload,s===h.MANIFEST&&i.trigger(b.a.MANIFEST_LOADED,{levels:[{url:u,details:c}],audioTracks:[],url:u,stats:e,networkDetails:r}),e.tparsed=ot.now(),c.needSidxRanges?(p=c.initSegment.url,this.load(p,{isSidxRequest:!0,type:s,level:a,levelDetails:c,id:o,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"})):(n.levelDetails=c,this._handlePlaylistLoaded(t,e,n,r))},d.prototype._handleSidxRequest=function(t,n){t=V.a.parseSegmentIndex(new Uint8Array(t.data));t.references.forEach(function(t,e){t=t.info,e=n.levelDetails.fragments[e];0===e.byteRange.length&&(e.rawByteRange=String(1+t.end-t.start)+"@"+String(t.start))}),n.levelDetails.initSegment.rawByteRange=String(t.moovEndOffset)+"@0"},d.prototype._handleManifestParsingError=function(t,e,n,r){this.hls.trigger(b.a.ERROR,{type:c.b.NETWORK_ERROR,details:c.a.MANIFEST_PARSING_ERROR,fatal:!0,url:t.url,reason:n,networkDetails:r})},d.prototype._handleNetworkError=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=($.b.info("A network error occured while loading a "+t.type+"-type playlist"),void 0),i=void 0,o=this.getInternalLoader(t);switch(t.type){case h.MANIFEST:r=n?c.a.MANIFEST_LOAD_TIMEOUT:c.a.MANIFEST_LOAD_ERROR,i=!0;break;case h.LEVEL:r=n?c.a.LEVEL_LOAD_TIMEOUT:c.a.LEVEL_LOAD_ERROR,i=!1;break;case h.AUDIO_TRACK:r=n?c.a.AUDIO_TRACK_LOAD_TIMEOUT:c.a.AUDIO_TRACK_LOAD_ERROR,i=!1;break;default:i=!1}o&&(o.abort(),this.resetInternalLoader(t.type)),this.hls.trigger(b.a.ERROR,{type:c.b.NETWORK_ERROR,details:r,fatal:i,url:o.url,loader:
1o,context:t,networkDetails:e})},d.prototype._handlePlaylistLoaded=function(t,e,n,r){var i=n.type,o=n.level,a=n.id,s=n.levelDetails;if(s.targetduration)if(d.canHaveQualityLevels(n.type))this.hls.trigger(b.a.LEVEL_LOADED,{details:s,level:o||0,id:a||0,stats:e,networkDetails:r});else switch(i){case h.AUDIO_TRACK:this.hls.trigger(b.a.AUDIO_TRACK_LOADED,{details:s,id:a,stats:e,networkDetails:r});break;case h.SUBTITLE_TRACK:this.hls.trigger(b.a.SUBTITLE_TRACK_LOADED,{details:s,id:a,stats:e,networkDetails:r})}else this._handleManifestParsingError(t,n,"invalid target duration",r)},rt(d,null,[{key:"ContextType",get:function(){return h}},{key:"LevelType",get:function(){return at}}]),d}(o);var ut=function(r){var t=n,e=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function n(t){if(this instanceof n)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,r.call(this,t,b.a.FRAG_LOADING))).loaders={},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),n.prototype.destroy=function(){var t,e=this.loaders;for(t in e){var n=e[t];n&&n.destroy()}this.loaders={},r.prototype.destroy.call(this)},n.prototype.onFragLoading=function(t){var t=t.frag,e=t.type,n=this.loaders,r=this.hls.config,i=r.fLoader,o=r.loader,a=(t.loaded=0,n[e]),n=(a&&($.b.warn("abort previous fragment loader for type: "+e),a.abort()),a=n[e]=t.loader=new(r.fLoader?i:o)(r),void 0),n={url:t.url,frag:t,responseType:"arraybuffer",progressData:!1},e=t.byteRangeStartOffset,i=t.byteRangeEndOffset;isNaN(e)||isNaN(i)||(n.rangeStart=e,n.rangeEnd=i),o={timeout:r.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:r.fragLoadingMaxRetryTimeout},t={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},a.load(n,o,t)},n.prototype.loadsuccess=function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,t=t.data,n=n.frag;n.loader=void 0,this.loaders[n.type]=void 0,this.hls.trigger(b.a.FRAG_LOADED,{payload:t,frag:n,stats:e,networkDetails:r})},n.prototype.loaderror=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.loader;r&&r.abort(),this.loaders[e.type]=void 0,this.hls.trigger(b.a.ERROR,{type:c.b.NETWORK_ERROR,details:c.a.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:n})},n.prototype.loadtimeout=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=e.loader;r&&r.abort(),this.loaders[e.type]=void 0,this.hls.trigger(b.a.ERROR,{type:c.b.NETWORK_ERROR,details:c.a.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:n})},n.prototype.loadprogress=function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,e=e.frag;e.loaded=t.loaded,this.hls.trigger(b.a.FRAG_LOAD_PROGRESS,{frag:e,stats:t,networkDetails:r})},n}(o);var lt=function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function r(t){if(this instanceof r)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.KEY_LOADING))).loaders={},t.decryptkey=null,t.decrypturl=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),r.prototype.destroy=function(){for(var t in this.loaders){t=this.loaders[t];t&&t.destroy()}this.loaders={},o.prototype.destroy.call(this)},r.prototype.onKeyLoading=function(t){var e,n,t=t.frag,r=t.type,i=this.loaders[r],o=t.decryptdata,a=o.uri;a!==this.decrypturl||null===this.decryptkey?(e=this.hls.config,i&&($.b.warn("abort previous key loader for type:"+r),i.abort()),t.loader=this.loaders[r]=new e.loader(e),this.decrypturl=a,i=void(this.decryptkey=null),n=r=void 0,i={url:a,frag:t,responseType:"arraybuffer"},r={timeout:e.fragLoadingTimeOut,maxRetry:e.fragLoadingMaxRetry,retryDelay:e.fragLoadingRetryDelay,maxRetryDelay:e.fragLoadingMaxRetryTimeout},n={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)}
1,t.loader.load(i,r,n)):this.decryptkey&&(o.key=this.decryptkey,this.hls.trigger(b.a.KEY_LOADED,{frag:t}))},r.prototype.loadsuccess=function(t,e,n){n=n.frag;this.decryptkey=n.decryptdata.key=new Uint8Array(t.data),n.loader=void 0,this.loaders[n.type]=void 0,this.hls.trigger(b.a.KEY_LOADED,{frag:n})},r.prototype.loaderror=function(t,e){var n=e.frag,r=n.loader;r&&r.abort(),this.loaders[e.type]=void 0,this.hls.trigger(b.a.ERROR,{type:c.b.NETWORK_ERROR,details:c.a.KEY_LOAD_ERROR,fatal:!1,frag:n,response:t})},r.prototype.loadtimeout=function(t,e){var n=e.frag,r=n.loader;r&&r.abort(),this.loaders[e.type]=void 0,this.hls.trigger(b.a.ERROR,{type:c.b.NETWORK_ERROR,details:c.a.KEY_LOAD_TIMEOUT,fatal:!1,frag:n})},r}(o);var ct="NOT_LOADED",pt="APPENDING",dt="PARTIAL",ht="OK",ft=function(n){var t=r,e=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(t){var e;if(this instanceof r)return(e=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,n.call(this,t,b.a.BUFFER_APPENDED,b.a.FRAG_BUFFERED,b.a.FRAG_LOADED))).bufferPadding=.2,e.fragments=Object.create(null),e.timeRanges=Object.create(null),e.config=t.config,e;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r.prototype.destroy=function(){this.fragments=null,this.timeRanges=null,this.config=null,o.prototype.destroy.call(this),n.prototype.destroy.call(this)},r.prototype.getBufferedFrag=function(e,n){var r=this.fragments,t=Object.keys(r).filter(function(t){var t=r[t];return t.body.type===n&&!!t.buffered&&(t=t.body).startPTS<=e&&e<=t.endPTS});return 0===t.length?null:(t=t.pop(),r[t].body)},r.prototype.detectEvictedFragments=function(r,i){var o,a=this,s=void 0;Object.keys(this.fragments).forEach(function(t){var e=a.fragments[t];if(!0===e.buffered){t=e.range[r];if(t){o=t.time;for(var n=0;n<o.length;n++)if(s=o[n],!1===a.isTimeBuffered(s.startPTS,s.endPTS,i)){a.removeFragment(e.body);break}}}})},r.prototype.detectPartialFragments=function(n){var r=this,t=this.getFragmentKey(n),i=this.fragments[t];i&&(i.buffered=!0,Object.keys(this.timeRanges).forEach(function(t){var e;!0===n.hasElementaryStream(t)&&(e=r.timeRanges[t],i.range[t]=r.getBufferedTimes(n.startPTS,n.endPTS,e))}))},r.prototype.getBufferedTimes=function(t,e,n){for(var r,i,o=[],a=!1,s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,r<=t&&e<=i){o.push({startPTS:Math.max(t,n.start(s)),endPTS:Math.min(e,n.end(s))});break}if(t<i&&r<e)o.push({startPTS:Math.max(t,n.start(s)),endPTS:Math.min(e,n.end(s))}),a=!0;else if(e<=r)break}return{time:o,partial:a}},r.prototype.getFragmentKey=function(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn},r.prototype.getPartialFragment=function(e){var n,r,i=this,o=null,a=0;return Object.keys(this.fragments).forEach(function(t){t=i.fragments[t];i.isPartial(t)&&(n=t.body.startPTS-i.bufferPadding,r=t.body.endPTS+i.bufferPadding,n<=e)&&e<=r&&(n=Math.min(e-n,r-e),a<=n)&&(o=t.body,a=n)}),o},r.prototype.getState=function(t){var t=this.getFragmentKey(t),t=this.fragments[t],e=ct;return e=void 0!==t?t.buffered?!0===this.isPartial(t)?dt:ht:pt:e},r.prototype.isPartial=function(t){return!0===t.buffered&&(void 0!==t.range.video&&!0===t.range.video.partial||void 0!==t.range.audio&&!0===t.range.audio.partial)},r.prototype.isTimeBuffered=function(t,e,n){for(var r,i,o=0;o<n.length;o++){if(r=n.start(o)-this.bufferPadding,i=n.end(o)+this.bufferPadding,r<=t&&e<=i)return!0;if(e<=r)return!1}return!1},r.prototype.onFragLoaded=function(t){var e,t=t.frag;isNaN(t.sn)||t.bitrateTest||(e=this.getFragmentKey(t),t={body:t,range:Object.create(null),buffered:!1},this.fragments[e]=t)},r.prototype.onBufferAppended=function(t){var n=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach(function(t){var e=n.timeRanges[t];n.detectEvictedFragments(t,e)})},r.prototype.onFragBuffered=function(t){this.detectPartialFragments(t.frag)}
1,r.prototype.hasFragment=function(t){t=this.getFragmentKey(t);return void 0!==this.fragments[t]},r.prototype.removeFragment=function(t){t=this.getFragmentKey(t);delete this.fragments[t]},r.prototype.removeAllFragments=function(){this.fragments=Object.create(null)},r}(o),gt={search:function(t,e){for(var n=0,r=t.length-1;n<=r;){var i,o,a=e(o=t[i=(n+r)/2|0]);if(0<a)n=1+i;else{if(!(a<0))return o;r=i-1}}return null}};i.isBuffered=function(t,e){try{if(t)for(var n=t.buffered,r=0;r<n.length;r++)if(e>=n.start(r)&&e<=n.end(r))return!0}catch(t){}return!1},i.bufferInfo=function(t,e,n){try{if(t){for(var r=t.buffered,i=[],o=void 0,o=0;o<r.length;o++)i.push({start:r.start(o),end:r.end(o)});return this.bufferedInfo(i,e,n)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}},i.bufferedInfo=function(t,e,n){var r=[],i=void 0,o=void 0,a=void 0,s=void 0,u=void 0;for(t.sort(function(t,e){var n=t.start-e.start;return n||e.end-t.end}),u=0;u<t.length;u++){var l,c=r.length;c&&(l=r[c-1].end,t[u].start-l<n)?t[u].end>l&&(r[c-1].end=t[u].end):r.push(t[u])}for(i=u=0,o=a=e;u<r.length;u++){var p=r[u].start,d=r[u].end;if(p<=e+n&&e<d)o=p,i=(a=d)-e;else if(e+n<p){s=p;break}}return{len:i,start:o,end:a,nextStart:s}};var w=i;function i(){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function")}var e=t(6),mt=t.n(e),e=t(11),vt=t.n(e),yt=t(9);function bt(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}e=t(3);var wt=Object(e.a)(),$t=bt();function s(n,t){if(!(this instanceof s))throw new TypeError("Cannot call a class as a function");this.hls=n,this.id=t;var i=this.observer=new mt.a,e=n.config,r=(i.trigger=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i.emit.apply(i,[t,t].concat(n))},i.off=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];i.removeListener.apply(i,[t].concat(n))},function(t,e){(e=e||{}).frag=this.frag,e.id=this.id,n.trigger(t,e)}.bind(this)),r=(i.on(b.a.FRAG_DECRYPTED,r),i.on(b.a.FRAG_PARSING_INIT_SEGMENT,r),i.on(b.a.FRAG_PARSING_DATA,r),i.on(b.a.FRAG_PARSED,r),i.on(b.a.ERROR,r),i.on(b.a.FRAG_PARSING_METADATA,r),i.on(b.a.FRAG_PARSING_USERDATA,r),i.on(b.a.INIT_PTS_FOUND,r),{mp4:$t.isTypeSupported("video/mp4"),mpeg:$t.isTypeSupported("audio/mpeg"),mp3:$t.isTypeSupported('audio/mp4; codecs="mp3"')}),o=navigator.vendor;if(e.enableWorker&&"undefined"!=typeof Worker){$.b.log("demuxing in webworker");var a=void 0;try{a=this.w=vt()(12),this.onwmsg=this.onWorkerMessage.bind(this),a.addEventListener("message",this.onwmsg),a.onerror=function(t){n.trigger(b.a.ERROR,{type:c.b.OTHER_ERROR,details:c.a.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:t.message+" ("+t.filename+":"+t.lineno+")"}})},a.postMessage({cmd:"init",typeSupported:r,vendor:o,id:t,config:JSON.stringify(e)})}catch(t){$.b.error("error while initializing DemuxerWorker, fallback on DemuxerInline"),a&&wt.URL.revokeObjectURL(a.objectURL),this.demuxer=new yt.a(i,r,e,o),this.w=void 0}}else this.demuxer=new yt.a(i,r,e,o)}s.prototype.destroy=function(){var t=this.w,t=(t?(t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=null):(t=this.demuxer)&&(t.destroy(),this.demuxer=null),this.observer);t&&(t.removeAllListeners(),this.observer=null)},s.prototype.push=function(t,e,n,r,i,o,a,s){var u=this.w,l=isNaN(i.startDTS)?i.start:i.startDTS,c=i.decryptdata,p=this.frag,d=!(p&&i.cc===p.cc),h=!(p&&i.level===p.level),p=p&&i.sn===p.sn+1,p=!h&&p;d&&$.b.log(this.id+":discontinuity detected"),h&&$.b.log(this.id+":switch detected"),this.frag=i,u?u.postMessage({cmd:"demux",data:t,decryptdata:c,initSegment:e,audioCodec:n,videoCodec:r,timeOffset:l,discontinuity:d,trackSwitch:h,contiguous:p,duration:o,accurateTimeOffset:a,defaultInitPTS:s},t instanceof ArrayBuffer?[t]:[]):(i=this.demuxer)&&i.push(t,c,e,n,r,l,d,h,p,o,a,s)},s.prototype.onWorkerMessage=function(t){var e=t.data,n=this.hls;switch(e.event){case"init":wt.URL.revokeObjectURL(this.w.objectURL);break;case b.a.FRAG_PARSING_DATA:e.data.data1=new Uint8Array(e.data1),e.data2&&(e.data.data2=new Uint8Array(e.data2));default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,n.trigger(e.event,e.data)}};var Et=s;function xt(t,e,n){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(n);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(n)}}function St(t,e,n){var r=t[e],t=t[n],i=t.startPTS;isNaN(i)?t.start=e<n?r.start+r.duration:Math.max(r.start-t.duration,0):e<n?(r.duration=i-r.start,r.duration<0&&$.b.w
1arn("negative duration computed for frag "+r.sn+",level "+r.level+", there should be some duration drift between playlist and fragment!")):(t.duration=r.start-i,t.duration<0&&$.b.warn("negative duration computed for frag "+t.sn+",level "+t.level+", there should be some duration drift between playlist and fragment!"))}function Tt(t,e,n,r,i,o){var a=n,s=(isNaN(e.startPTS)||(s=Math.abs(e.startPTS-n),isNaN(e.deltaPTS)?e.deltaPTS=s:e.deltaPTS=Math.max(s,e.deltaPTS),a=Math.max(n,e.startPTS),n=Math.min(n,e.startPTS),r=Math.max(r,e.endPTS),i=Math.min(i,e.startDTS),o=Math.max(o,e.endDTS)),n-e.start),a=(e.start=e.startPTS=n,e.maxStartPTS=a,e.endPTS=r,e.startDTS=i,e.endDTS=o,e.duration=r-n,e.sn);if(!t||a<t.startSN||a>t.endSN)return 0;var u=void 0,l=void 0,i=a-t.startSN;for((u=t.fragments)[i]=e,l=i;0<l;l--)St(u,l,l-1);for(l=i;l<u.length-1;l++)St(u,l,l+1);return t.PTSKnown=!0,s}function _t(t,e){var n=Math.max(t.startSN,e.startSN)-e.startSN,r=Math.min(t.endSN,e.endSN)-e.startSN,i=e.startSN-t.startSN,o=t.fragments,a=e.fragments,s=0,u=void 0;if(e.initSegment&&t.initSegment&&(e.initSegment=t.initSegment),r<n)e.PTSKnown=!1;else{for(var l=n;l<=r;l++){var c=o[i+l],p=a[l];p&&c&&(s=c.cc-p.cc,isNaN(c.startPTS)||(p.start=p.startPTS=c.startPTS,p.endPTS=c.endPTS,p.duration=c.duration,p.backtracked=c.backtracked,p.dropped=c.dropped,u=p))}if(s)for($.b.log("discontinuity sliding from playlist, take drift into account"),l=0;l<a.length;l++)a[l].cc+=s;if(u)Tt(e,u,u.startPTS,u.endPTS,u.startDTS,u.endDTS);else if(0<=i&&i<o.length)for(var d=o[i].start,l=0;l<a.length;l++)a[l].start+=d;e.PTSKnown=t.PTSKnown}}var Ct={toString:function(t){for(var e="",n=t.length,r=0;r<n;r++)e+="["+t.start(r).toFixed(3)+","+t.end(r).toFixed(3)+"]";return e}};function kt(t,e){t=t.fragments,e=e.fragments;if(e.length&&t.length){t=function(t,e){for(var n=null,r=0;r<t.length;r+=1){var i=t[r];if(i&&i.cc===e){n=i;break}}return n}(t,e[0].cc);if(t&&t.startPTS)return t;$.b.log("No frag in previous level to align on")}else $.b.log("No fragments to align")}function At(n,t){t.fragments.forEach(function(t){var e;t&&(e=t.start+n,t.start=t.startPTS=e,t.endPTS=e+t.duration)}),t.PTSKnown=!0}function Dt(t,e,n){var r,i,o;t=t,o=n,i=!1,(i=!!((r=e)&&r.details&&o&&(o.endCC>o.startCC||t&&t.cc<o.startCC))||i)&&(r=kt(e.details,n))&&($.b.log("Adjusting PTS using last level due to CC increase within current level"),At(r.start,n)),!1===n.PTSKnown&&e&&e.details&&e.details.fragments&&e.details.fragments.length&&(t=e.details.programDateTime,o=(n.programDateTime-t)/1e3+e.details.fragments[0].start,isNaN(o)||($.b.log("adjusting PTS using programDateTime delta, sliding:"+o.toFixed(3)),At(o,n)))}e=function(a){var e,t,n=s,r=a;if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);function s(t){var e=this,n=s;if(!(e instanceof n))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=Array(1<r?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];e=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,a.call.apply(a,[this,t].concat(i)));return e._tickInterval=null,e._tickTimer=null,e._tickCallCount=0,e._boundTick=e.tick.bind(e),e}function i(t){return e.apply(this,arguments)}function o(){return t.apply(this,arguments)}return n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r),s.prototype.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},s.prototype.hasInterval=function(){return!!this._tickInterval},s.prototype.hasNextTick=function(){return!!this._tickTimer},s.prototype.setInterval=(e=function(t){return!this._tickInterval&&(this._tickInterval=setInterval(this._boundTick,t),!0)},i.toString=function(){return e.toString()},i),s.prototype.clearInterval=(t=function(){return!(!this._tickInterval||(clearInterval(this._tickInterval),this._tickInterval=null))},o.toString=function(){return t.toString()},o),s.prototype.clearNextTick=function(){return!(!this._tickTimer||(clearTimeout(this._tickTimer),this._tickTimer=null))},s.prototype.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),1<this._tickCallCount&&(this.clearNextTick(),this._tickTimer=setTimeout(this._boundTick,0)),this._tickCallCount=0)},s.prototype.doTick=function(){},s}(o);function Ot(t,e){var n=1<arguments.length&&void 0!==e?e:null;if(Array.isArray(t)&&t.length&&null!==n){e=t[0];if(!(n<e.pdt)){e=t[t.length-1];if(!(n>=e.endPdt))for(var r=0;r<t.length;++r){var i=t[r];
1if(n<i.endPdt)return i}}}return null}function Rt(t,e,n,r,i){var n=2<arguments.length&&void 0!==n?n:0,r=3<arguments.length&&void 0!==r?r:0,i=4<arguments.length&&void 0!==i?i:0,o=void 0,t=t?e[t.sn-e[0].sn+1]:null;return n<r&&(r-i<n&&(i=0),o=t&&!Lt(n,i,t)?t:gt.search(e,Lt.bind(null,n,i))),o}function Lt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2],e=Math.min(e,n.duration+(n.deltaPTS||0));return n.start+n.duration-e<=t?1:n.start-e>t&&n.start?-1:0}var It=function(t,e,n){return e&&Mt(t.prototype,e),n&&Mt(t,n),t};function Mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Pt="STOPPED",l="IDLE",Nt="KEY_LOADING",Ft="FRAG_LOADING",Ut="FRAG_LOADING_WAITING_RETRY",jt="WAITING_LEVEL",p="PARSING",Bt="PARSED",Vt="BUFFER_FLUSHING",qt="ENDED",Ht="ERROR",Wt=function(r){var t=i,e=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(t,e){var n;if(this instanceof i)return(n=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,r.call(this,t,b.a.MEDIA_ATTACHED,b.a.MEDIA_DETACHING,b.a.MANIFEST_LOADING,b.a.MANIFEST_PARSED,b.a.LEVEL_LOADED,b.a.KEY_LOADED,b.a.FRAG_LOADED,b.a.FRAG_LOAD_EMERGENCY_ABORTED,b.a.FRAG_PARSING_INIT_SEGMENT,b.a.FRAG_PARSING_DATA,b.a.FRAG_PARSED,b.a.ERROR,b.a.AUDIO_TRACK_SWITCHING,b.a.AUDIO_TRACK_SWITCHED,b.a.BUFFER_CREATED,b.a.BUFFER_APPENDED,b.a.BUFFER_FLUSHED))).fragmentTracker=e,n.config=t.config,n.audioCodecSwap=!1,n._state=Pt,n.stallReported=!1,n;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i.prototype.onHandlerDestroying=function(){this.stopLoad(),r.prototype.onHandlerDestroying.call(this)},i.prototype.onHandlerDestroyed=function(){this.state=Pt,this.fragmentTracker=null,r.prototype.onHandlerDestroyed.call(this)},i.prototype.startLoad=function(t){var e,n,r;this.levels?(e=this.lastCurrentTime,n=this.hls,this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,this.startFragRequested||(-1===(r=n.startLevel)&&(this.bitrateTest=!(r=0)),this.level=n.nextLoadLevel=r,this.loadedmetadata=!1),0<e&&-1===t&&($.b.log("override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=l,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()):(this.forceStartLoad=!0,this.state=Pt)},i.prototype.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t),this.fragCurrent=null),this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.clearInterval(),this.state=Pt,this.forceStartLoad=!1},i.prototype.doTick=function(){switch(this.state){case Vt:this.fragLoadError=0;break;case l:this._doTickIdle();break;case jt:var t=this.levels[this.level];t&&t.details&&(this.state=l);break;case Ut:var t=window.performance.now(),e=this.retryDate;(!e||e<=t||this.media&&this.media.seeking)&&($.b.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=l)}this._checkBuffer(),this._checkFragmentChanged()},i.prototype._doTickIdle=function(){var t=this.hls,e=t.config,n=this.media;if(void 0!==this.levelLastLoaded&&(n||!this.startFragRequested&&e.startFragPrefetch)){var r=void 0,r=this.loadedmetadata?n.currentTime:this.nextLoadPosition,i=t.nextLoadLevel,o=this.levels[i];if(o){var a=o.bitrate,s=void 0,s=a?Math.max(8*e.maxBufferSize/a,e.maxBufferLength):e.maxBufferLength,a=(s=Math.min(s,e.maxMaxBufferLength),w.bufferInfo(this.mediaBuffer||n,r,e.maxBufferHole)),e=a.len;if(!(s<=e)){$.b.trace("buffer length of "+e.toFixed(3)+" is below max of "+s.toFixed(3)+". checking for more payload ..."),this.level=t.nextLoadLevel=i;e=o.details;if(!e||e.live&&this.levelLastLoaded!==i)this.state=jt;else{s=this.fragPrevious;if(!e.live&&s&&!s.backtracked&&s.sn===e.endSN&&!a.nextStart)if(Math.min(n.duration,s.start+s.duration)-Math.max(a.end,s.start)<=Math.max(.2,s.duration))return t={},this.altAudio&&(t.type="video"),this.hls.trigger(b.a.BUFFER_EOS,t),void(this.state=qt);this._fetchPayloadOrEos(r,a,e)}}}}},i.prototype._fetchPayloadOrEos=function(t,e,n){var r=this.fragPrevious,i=this.level,o=n.fragments,a=o.length;if(0!==a){var s=o[0].start,u=o[a-1].start+o[a-1].duration,e=e.end,l=void 0;if(n.initSegment&&!n.initSegment.data)l=n.initSegment;else if(n.live){var c=this.config.initialLiveManifestSize;if(a<c)return void $.b.warn("Can not start playback of a level, reason: not enough fragments "+a+" < "+c);if(null===(l=this._ensureFragmentAtLivePoint(n,e,s,u,r,o,a)))return}else e<s&&(l=o[0]);(l=l||this._findFragment(s,r,a,o,e,u,n))&&(l.encrypted?($.b.log("Loading key for "+l.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+i),this._loadKey(l)):($.b.log("Loading "+l.sn+" of ["+n.startSN+" ,"+n.endSN+"],level "+i+", currentTime:"+t.toFixed(3)+",bufferEnd:"+e.toFixed(3)),this._loadFragment(l)))}},i.prototype._ensureFragmentAtLivePoint=function(t,e,n,r,i,o,a){var s=this.hls.config,u=this.media,l=void 0,c=void 0!==s.liveMaxLatencyDuration?s.liveMaxLatencyDuration:s.liveMaxLatencyDurationCount*t.targetduration;return e<Math.max(n-s.maxFragLookUpTolerance,r-c)&&(s=this.liveSyncPosition=this.computeLivePosition(n,t),$.b.log("buffer end: "+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+s.toFixed(3)),e=s,u&&u.readyState&&u.duration>s&&(u.currentTime=s),this.nextLoadPosition=s),t.PTSKnown&&r<e&&u&&u.readyState?null:(this.startFragRequested&&!t.PTSKnown&&(i&&(t.programDateTime?l=Ot(o,i.endPdt+1):((c=i.sn+1)>=t.startSN&&c<=t.endSN&&(n=o[c-t.startSN],i.cc===n.cc)&&$.b.log("live playlist, switching playlist, load frag with next SN: "+(l=n).sn),l||(l=gt.search(o,function(t){return i.cc-t.cc}))&&$.b.log("live playlist, switching playlist, load frag with same CC: "+l.sn))),l||(l=o[Math.min(a-1,Math.round(a/2))],$.b.log("live playlist, switching playlist, unknown, load middle frag : "+l.sn))),l)},i.prototype._findFragment=function(t,e,n,r,i,o,a){var s=this.hls.config,u=void 0,l=void 0;return i<o?a.programDateTime?(l=Ot(r,function(t,e,n){var t=0<arguments.length&&void 0!==t?t:0,e=1<arguments.length&&void 0!==e?e:0,r=0;return n.programDateTime&&(n=Date.parse(n.programDateTime),isNaN(n)||(r=1e3*e+n-1e3*t)),r}(t,i,a)))&&!Lt(i,s.maxFragLookUpTolerance,l)||($.b.warn("Frag found by PDT search did not fit within tolerance; falling back to finding by SN"),l=Rt(e,r,i,o,s.maxFragLookUpTolerance)):l=Rt(e,r,i,o,s.maxFragLookUpTolerance):l=r[n-1],l&&(t=(u=l).sn-a.startSN,i=e&&u.level===e.level,o=r[t-1],n=r[1+t],e)&&u.sn===e.sn&&(i&&!u.backtracked?u.sn<a.endSN?(l=e.deltaPTS)&&l>s.maxBufferHole&&e.dropped&&t?(u=o,$.b.warn("SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this")):$.b.log("SN just loaded, load next one: "+(u=n).sn):u=null:u.backtracked&&(n&&n.backtracked?($.b.warn("Already backtracked from fragment "+n.sn+", will not backtrack to fragment "+u.sn+". Loading fragment "+n.sn),u=n):($.b.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),u.dropped=0,o?(u=o).backtracked=!0:t&&(u=null)))),u},i.prototype._loadKey=function(t){this.state=Nt,this.hls.trigger(b.a.KEY_LOADING,{frag:t})},i.prototype._loadFragment=function(t){var e=this.fragmentTracker.getState(t);this.fragCurrent=t,this.startFragRequested=!0,isNaN(t.sn)||t.bitrateTest||(this.nextLoadPosition=t.start+t.duration),t.backtracked||e===ct||e===dt?(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,this.hls.trigger(b.a.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new Et(this.hls,"main")),this.state=Ft):e===pt&&this._reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t)},i.prototype.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,st.LevelType.MAIN)},i.prototype.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},i.prototype._checkFragmentChanged=function(){var t,e=void 0,n=this.media;n&&n.readyState&&!1===n.seeking&&((t=n.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=t),w.isBuffered(n,t)?e=this.getBufferedFrag(t):w.isBuffered(n,t+.1)&&(e=this.getBufferedFrag(t+.1)),e)&&(n=e)!==this.fragPlaying&&(this.hls.trigger(b.a.FRAG_CHANGED,{frag:n}),t=n.level,this.fragPlaying&&this.fragPlaying.level===t||this.hls.trigger(b.a.LEVEL_SWITCHED,{level:t}),this.fragPlaying=n)},i.prototype.immediateLevelSwitch=function(){$.b.log("immediateLevelSwitch"),this.immediateSwitch||(this.immediateSwitch=!0,t=void 0,(e=this.media)?(t=e.paused,e.pause()):t=!0,this.previouslyPaused=t);var t,e=this.fragCurrent;e&&e.loader&&e.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},i.prototype.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,w.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},i.prototype.nextLevelSwitch=function(){var t,e,n,r,i=this.media;i&&i.readyState&&(n=r=e=void 0,(r=this.getBufferedFrag(i.currentTime))&&1<r.startPTS&&this.flushMainBuffer(0,r.startPTS-1),e=!i.paused&&(r=this.hls.nextLoadLevel,r=this.levels[r],t=this.fragLastKbps)&&this.fragCurrent?this.fragCurrent.duration*r.bitrate/(1e3*t)+1:0,n=(n=this.getBufferedFrag(i.currentTime+e))&&this.followingBufferedFrag(n))&&((r=this.fragCurrent)&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(n.maxStartPTS,Number.POSITIVE_INFINITY))},i.prototype.flushMainBuffer=function(t,e){this.state=Vt;t={startOffset:t,endOffset:e};this.altAudio&&(t.type="video"),this.hls.trigger(b.a.BUFFER_FLUSHING,t)},i.prototype.onMediaAttached=function(t){t=this.media=this.mediaBuffer=t.media,this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("seeked",this.onvseeked),t.addEventListener("ended",this.onvended),t=this.config;this.levels&&t.autoStartLoad&&this.hls.startLoad(t.startPosition)},i.prototype.onMediaDetaching=function(){var t=this.media,e=(t&&t.ended&&($.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),this.levels);
1e&&e.forEach(function(t){t.details&&t.details.fragments.forEach(function(t){t.backtracked=void 0})}),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("seeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},i.prototype.onMediaSeeking=function(){var t,e,n=this.media,r=n?n.currentTime:void 0,i=this.config,o=(isNaN(r)||$.b.log("media seeking to "+r.toFixed(3)),this.mediaBuffer||n),o=w.bufferInfo(o,r,this.config.maxBufferHole);this.state===Ft?(t=this.fragCurrent,0===o.len&&t&&(i=i.maxFragLookUpTolerance,e=t.start-i,i=t.start+t.duration+i,r<e||i<r?(t.loader&&($.b.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=l):$.b.log("seeking outside of buffer but within currently loaded fragment range"))):this.state===qt&&(0===o.len&&(this.fragPrevious=0),this.state=l),n&&(this.lastCurrentTime=r),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=r),this.tick()},i.prototype.onMediaSeeked=function(){var t=this.media,t=t?t.currentTime:void 0;isNaN(t)||$.b.log("media seeked to "+t.toFixed(3)),this.tick()},i.prototype.onMediaEnded=function(){$.b.log("media ended"),this.startPosition=this.lastCurrentTime=0},i.prototype.onManifestLoading=function(){$.b.log("trigger BUFFER_RESET"),this.hls.trigger(b.a.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},i.prototype.onManifestParsed=function(t){var e=!1,n=!1,r=void 0,t=(t.levels.forEach(function(t){(r=t.audioCodec)&&(-1!==r.indexOf("mp4a.40.2")&&(e=!0),-1!==r.indexOf("mp4a.40.5"))&&(n=!0)}),this.audioCodecSwitch=e&&n,this.audioCodecSwitch&&$.b.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1,this.config);(t.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(t.startPosition)},i.prototype.onLevelLoaded=function(t){var e,n=t.details,t=t.level,r=this.levels[this.levelLastLoaded],i=this.levels[t],o=n.totalduration,a=0;$.b.log("level "+t+" loaded ["+n.startSN+","+n.endSN+"],duration:"+o),n.live?(e=i.details)&&0<n.fragments.length?(_t(e,n),a=n.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(a,e),n.PTSKnown&&!isNaN(a)?$.b.log("live playlist sliding:"+a.toFixed(3)):($.b.log("live playlist - outdated PTS, unknown sliding"),Dt(this.fragPrevious,r,n))):($.b.log("live playlist - first load, unknown sliding"),n.PTSKnown=!1,Dt(this.fragPrevious,r,n)):n.PTSKnown=!1,i.details=n,this.levelLastLoaded=t,this.hls.trigger(b.a.LEVEL_UPDATED,{details:n,level:t}),!1===this.startFragRequested&&(-1!==this.startPosition&&-1!==this.lastCurrentTime||(e=n.startTimeOffset,isNaN(e)?n.live?(this.startPosition=this.computeLivePosition(a,n),$.b.log("configure startPosition to "+this.startPosition)):this.startPosition=0:(e<0&&($.b.log("negative start time offset "+e+", count from end of last fragment"),e=a+o+e),$.b.log("start time offset found in playlist, adjust startPosition to "+e),this.startPosition=e),this.lastCurrentTime=this.startPosition),this.nextLoadPosition=this.startPosition),this.state===jt&&(this.state=l),this.tick()},i.prototype.onKeyLoaded=function(){this.state===Nt&&(this.state=l,this.tick())},i.prototype.onFragLoaded=function(t){var e,n,r,i,o,a=this.fragCurrent,s=t.frag;this.state===Ft&&a&&"main"===s.type&&s.level===a.level&&s.sn===a.sn&&(i=t.stats,o=(e=this.levels[a.level]).details,$.b.log("Loaded  "+a.sn+" of ["+o.startSN+" ,"+o.endSN+"],level "+a.level),this.bitrateTest=!1,this.stats=i,!0===s.bitrateTest&&this.hls.nextLoadLevel?(this.state=l,this.startFragRequested=!1,i.tparsed=i.tbuffered=window.performance.now(),this.hls.trigger(b.a.FRAG_BUFFERED,{stats:i,frag:a,id:"main"}),this.tick()):"initSegment"===s.sn?(this.state=l,i.tparsed=i.tbuffered=window.performance.now(),o.initSegment.data=t.payload,this.hls.trigger(b.a.FRAG_BUFFERED,{stats:i,frag:a,id:"main"}
1),this.tick()):(this.state=p,s=o.totalduration,i=a.level,r=a.sn,n=this.config.defaultAudioCodec||e.audioCodec,this.audioCodecSwap&&($.b.log("swapping playlist audio codec"),n=(n=void 0===n?this.lastAudioCodec:n)&&(-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),this.pendingBuffering=!0,this.appended=!1,$.b.log("Parsing "+r+" of ["+o.startSN+" ,"+o.endSN+"],level "+i+", cc "+a.cc),r=(r=this.demuxer)||(this.demuxer=new Et(this.hls,"main")),i=!((i=this.media)&&i.seeking)&&(o.PTSKnown||!o.live),o=o.initSegment?o.initSegment.data:[],r.push(t.payload,o,n,e.videoCodec,a,s,i,void 0))),this.fragLoadError=0},i.prototype.onFragParsingInitSegment=function(t){var e=this.fragCurrent,n=t.frag;if(e&&"main"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===p){var r=t.tracks,i=void 0,o=void 0;for(i in r.audio&&this.altAudio&&delete r.audio,(o=r.audio)&&(n=this.levels[this.level].audioCodec,e=navigator.userAgent.toLowerCase(),n&&this.audioCodecSwap&&($.b.log("swapping playlist audio codec"),n=-1!==n.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==o.metadata.channelCount&&-1===e.indexOf("firefox")&&(n="mp4a.40.5"),-1!==e.indexOf("android")&&"audio/mpeg"!==o.container&&$.b.log("Android: force audio codec to "+(n="mp4a.40.2")),o.levelCodec=n,o.id=t.id),(o=r.video)&&(o.levelCodec=this.levels[this.level].videoCodec,o.id=t.id),this.hls.trigger(b.a.BUFFER_CODECS,r),r){o=r[i],$.b.log("main track:"+i+",container:"+o.container+",codecs[level/parsed]=["+o.levelCodec+"/"+o.codec+"]");var a=o.initSegment;a&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(b.a.BUFFER_APPENDING,{type:i,data:a,parent:"main",content:"initSegment"}))}this.tick()}},i.prototype.onFragParsingData=function(e){var n=this,t=this.fragCurrent,r=e.frag;if(t&&"main"===e.id&&r.sn===t.sn&&r.level===t.level&&("audio"!==e.type||!this.altAudio)&&this.state===p){var r=this.levels[this.level],i=t;if(isNaN(e.endPTS)&&(e.endPTS=e.startPTS+t.duration,e.endDTS=e.startDTS+t.duration),!0===e.hasAudio&&i.addElementaryStream(E.ElementaryStreamTypes.AUDIO),!0===e.hasVideo&&i.addElementaryStream(E.ElementaryStreamTypes.VIDEO),$.b.log("Parsed "+e.type+",PTS:["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb+",dropped:"+(e.dropped||0)),"video"===e.type)if(i.dropped=e.dropped,i.dropped)if(i.backtracked)$.b.warn("Already backtracked on this fragment, appending with the gap",i.sn);else{t=r.details;if(!t||i.sn!==t.startSN)return $.b.warn("missing video frame(s), backtracking fragment",i.sn),this.fragmentTracker.removeFragment(i),i.backtracked=!0,this.nextLoadPosition=e.startPTS,this.state=l,this.fragPrevious=i,void this.tick();$.b.warn("missing video frame(s) on first frag, appending with gap",i.sn)}else i.backtracked=!1;var t=Tt(r.details,i,e.startPTS,e.endPTS,e.startDTS,e.endDTS),o=this.hls;o.trigger(b.a.LEVEL_PTS_UPDATED,{details:r.details,level:this.level,drift:t,type:e.type,start:e.startPTS,end:e.endPTS}),[e.data1,e.data2].forEach(function(t){t&&t.length&&n.state===p&&(n.appended=!0,n.pendingBuffering=!0,o.trigger(b.a.BUFFER_APPENDING,{type:e.type,data:t,parent:"main",content:"data"}))}),this.tick()}},i.prototype.onFragParsed=function(t){var e=this.fragCurrent,n=t.frag;e&&"main"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===p&&(this.stats.tparsed=window.performance.now(),this.state=Bt,this._checkAppendedParsed())},i.prototype.onAudioTrackSwitching=function(t){var e=!!t.url,t=t.id;e||(this.mediaBuffer!==this.media&&($.b.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media,(e=this.fragCurrent).loader&&($.b.log("switching to main audio track, cancel main fragment load"),e.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=l),(e=this.hls).trigger(b.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),e.trigger(b.a.AUDIO_TRACK_SWITCHED,{id:t}),this.altAudio=!1)},i.prototype.onAudioTrackSwitched=function(t){var e,t=t.id,t=!!this.hls.audioTracks[t].url;t&&(e=this.videoBuffer)&&this.mediaBuffer!==e&&($.b.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=e),this.altAudio=t,this.tick()},i.prototype.onBufferCreated=function(t){var e,n=t.tracks,r=void 0,i=void 0,o=!1;for(e in n){var a=n[e];"main"===a.id?(r=a,"video"===(i=e)&&(this.videoBuffer=n[e].buffer)):o=!0}o&&r?($.b.log("alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},i.prototype.onBufferAppended=function(t){var e;"main"!==t.parent||(e=this.state)!==p&&e!==Bt||(this.pendingBuffering=0<t.pending,this._checkAppendedParsed())},i.prototype._checkAppendedParsed=function(){var t,e;this.state!==Bt||this.appended&&this.pendingBuffering||((t=this.fragCurrent)&&(e=this.mediaBuffer||this.media,$.b.log("main buffered : "+Ct.toString(e.buffered)),this.fragPrevious=t,(e=this.stats).tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*e.total/(e.tbuffered-e.tfirst)),this.hls.trigger(b.a.FRAG_BUFFERED,{stats:e,frag:t,id:"main"}),this.state=l),this.tick())},i.prototype.onError=function(t){var e=t.frag||this.fragCurrent;if(!e||"main"===e.type){var n,r=!!this.media&&w.isBuffered(this.media,this.media.currentTime)&&w.isBuffered(this.media,this.media.currentTime+.5);switch(t.details){case c.a.FRAG_LOAD_ERROR:case c.a.FRAG_LOAD_TIMEOUT:case c.a.KEY_LOAD_ERROR:case c.a.KEY_LOAD_TIMEOUT:t.fatal||(this.fragLoadError+1<=this.config.fragLoadingMaxRetry?(n=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout),$.b.warn("mediaController: frag loading failed, retry in "+n+" ms"),this.retryDate=window.performance.now()+n,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=Ut):($.b.error("mediaController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Ht));break;case c.a.LEVEL_LOAD_ERROR:case c.a.LEVEL_LOAD_TIMEOUT:this.state!==Ht&&(t.fatal?(this.state=Ht,$.b.warn("streamController: "+t.details+",switch to "+this.state+" state ...")):t.levelRetry||this.state!==jt||(this.state=l));break;case c.a.BUFFER_FULL_ERROR:"main"!==t.parent||this.state!==p&&this.state!==Bt||(r?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=l):($.b.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},i.prototype._reduceMaxBufferLength=function(t){var e=this.config;return e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,$.b.warn("main:reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},i.prototype._checkBuffer=function(){var t,e,n,r=this.config,i=this.media;i&&0!==i.readyState&&(t=i.currentTime,n=(this.mediaBuffer||i).buffered,!this.loadedmetadata&&n.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():(n=!(i.paused&&1<i.readyState||i.ended||0===i.buffered.length),e=window.performance.now(),t!==this.lastCurrentTime?(this.stallReported&&($.b.warn("playback not stuck anymore @"+t+", after "+Math.round(e-this.stalled)+"ms"),this.stallReported=!1),this.stalled=null,this.nudgeRetry=0):n&&(n=e-this.stalled,i=w.bufferInfo(i,t,r.max
1BufferHole),this.stalled?(1e3<=n&&this._reportStall(i.len),this._tryFixBufferStall(i,n)):this.stalled=e)))},i.prototype.onFragLoadEmergencyAborted=function(){this.state=l,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},i.prototype.onBufferFlushed=function(){var t=this.mediaBuffer||this.media;t&&this.fragmentTracker.detectEvictedFragments(E.ElementaryStreamTypes.VIDEO,t.buffered),this.state=l,this.fragPrevious=null},i.prototype.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},i.prototype.computeLivePosition=function(t,e){var n=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;return t+Math.max(0,e.totalduration-n)},i.prototype._tryFixBufferStall=function(t,e){var n=this.config,r=this.media.currentTime,r=this.fragmentTracker.getPartialFragment(r);r&&this._trySkipBufferHole(r),.5<t.len&&e>1e3*n.highBufferWatchdogPeriod&&(this.stalled=null,this._tryNudgeBuffer())},i.prototype._reportStall=function(t){var e=this.hls,n=this.media;this.stallReported||(this.stallReported=!0,$.b.warn("Playback stalling at @"+n.currentTime+" due to low buffer"),e.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},i.prototype._trySkipBufferHole=function(t){for(var e=this.hls,n=this.media,r=n.currentTime,i=0,o=0;o<n.buffered.length;o++){var a=n.buffered.start(o);if(i<=r&&r<a)return n.currentTime=Math.max(a,n.currentTime+.1),$.b.warn("skipping hole, adjusting currentTime from "+r+" to "+n.currentTime),this.stalled=null,void e.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+r+" to "+n.currentTime,frag:t});i=n.buffered.end(o)}},i.prototype._tryNudgeBuffer=function(){var t=this.config,e=this.hls,n=this.media,r=n.currentTime,i=(this.nudgeRetry||0)+1;(this.nudgeRetry=i)<t.nudgeMaxRetry?(i=r+i*t.nudgeOffset,$.b.log("adjust currentTime from "+r+" to "+i),n.currentTime=i,e.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_NUDGE_ON_STALL,fatal:!1})):($.b.error("still stuck in high buffer @"+r+" after "+t.nudgeMaxRetry+", raise fatal error"),e.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_STALLED_ERROR,fatal:!0}))},i.prototype._seekToStartPos=function(){var t=this.media,e=t.currentTime,n=t.seeking?e:this.startPosition;e!==n&&($.b.log("target start position not buffered, seek to buffered.start(0) "+n+" from current time "+e+" "),t.currentTime=n)},It(i,[{key:"state",set:function(t){var e;this.state!==t&&(e=this.state,this._state=t,$.b.log("main stream:"+e+"->"+t),this.hls.trigger(b.a.STREAM_STATE_TRANSITION,{previousState:e,nextState:t}))},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media;if(t){t=this.getBufferedFrag(t.currentTime);if(t)return t.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}]),i}(e),Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zt=function(t,e,n){return e&&Kt(t.prototype,e),n&&Kt(t,n),t};function Kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Yt=window.performance,Xt=function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function r(t){if(this instanceof r)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.MANIFEST_LOADED,b.a.LEVEL_LOADED,b.a.AUDIO_TRACK_SWITCHED,b.a.FRAG_LOADED,b.a.ERROR))).canload=!1,t.currentLevelIndex=null,t.manualLevelIndex=-1,t.timer=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),r.prototype.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},r.prototype.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},r.prototype.startLoad=function(){var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach(function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)}),null!==this.timer&&this.loadLevel()},r.prototype.stopLoad=function(){this.canload=!1},r.prototype.onManifestLoaded=function(t){var e,n=[],r={},i=null,o=!1,a=!1,s=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=[];
1if(t.levels.forEach(function(t){t.loadError=0,t.fragmentError=!1,o=o||!!t.videoCodec,a=a||!!t.audioCodec||!(!t.attrs||!t.attrs.AUDIO),s&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0),(i=r[t.bitrate])?i.url.push(t.url):(t.url=[t.url],t.urlId=0,r[t.bitrate]=t,n.push(t)),t.attrs&&t.attrs.AUDIO&&xt(i||t,"audio",t.attrs.AUDIO),t.attrs&&t.attrs.SUBTITLES&&xt(i||t,"text",t.attrs.SUBTITLES)}),n=(n=o&&a?n.filter(function(t){return!!t.videoCodec}):n).filter(function(t){var e=t.audioCodec,t=t.videoCodec;return(!e||X(e))&&(!t||X(t))}),t.audioTracks&&(u=t.audioTracks.filter(function(t){return!t.audioCodec||X(t.audioCodec,"audio")})),0<n.length){e=n[0].bitrate,n.sort(function(t,e){return t.bitrate-e.bitrate}),this._levels=n;for(var l=0;l<n.length;l++)if(n[l].bitrate===e){this._firstLevel=l,$.b.log("manifest loaded,"+n.length+" level(s) found, first bitrate:"+e);break}this.hls.trigger(b.a.MANIFEST_PARSED,{levels:n,audioTracks:u,firstLevel:this._firstLevel,stats:t.stats,audio:a,video:o,altAudio:0<u.length&&o})}else this.hls.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},r.prototype.setLevelInternal=function(t){var e,n=this._levels,r=this.hls;0<=t&&t<n.length?(this.clearTimer(),this.currentLevelIndex!==t&&($.b.log("switching to level "+t),(e=n[this.currentLevelIndex=t]).level=t,r.trigger(b.a.LEVEL_SWITCHING,e)),(n=(e=n[t]).details)&&!n.live||(n=e.urlId,r.trigger(b.a.LEVEL_LOADING,{url:e.url[n],level:t,id:n}))):r.trigger(b.a.ERROR,{type:c.b.OTHER_ERROR,details:c.a.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:"invalid level idx"})},r.prototype.onError=function(t){if(t.fatal)t.type===c.b.NETWORK_ERROR&&this.clearTimer();else{var e=!1,n=!1,r=void 0;switch(t.details){case c.a.FRAG_LOAD_ERROR:case c.a.FRAG_LOAD_TIMEOUT:case c.a.KEY_LOAD_ERROR:case c.a.KEY_LOAD_TIMEOUT:r=t.frag.level,n=!0;break;case c.a.LEVEL_LOAD_ERROR:case c.a.LEVEL_LOAD_TIMEOUT:r=t.context.level,e=!0;break;case c.a.REMUX_ALLOC_ERROR:r=t.level,e=!0}void 0!==r&&this.recoverLevel(t,r,e,n)}},r.prototype.recoverLevel=function(t,e,n,r){var i=this,o=this.hls.config,a=t.details,s=this._levels[e];if(s.loadError++,s.fragmentError=r,n){if(!(this.levelRetryCount+1<=o.levelLoadingMaxRetry))return $.b.error("level controller, cannot recover from "+a+" error"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!0);o=Math.min(Math.pow(2,this.levelRetryCount)*o.levelLoadingRetryDelay,o.levelLoadingMaxRetryTimeout),this.timer=setTimeout(function(){return i.loadLevel()},o),t.levelRetry=!0,this.levelRetryCount++,$.b.warn("level controller, "+a+", retry in "+o+" ms, current retry count is "+this.levelRetryCount)}(n||r)&&(1<(t=s.url.length)&&s.loadError<t?(s.urlId=(s.urlId+1)%t,s.details=void 0,$.b.warn("level controller, "+a+" for level "+e+": switching to redundant URL-id "+s.urlId)):-1===this.manualLevelIndex?(o=0===e?this._levels.length-1:e-1,$.b.warn("level controller, "+a+": switch to "+o),this.hls.nextAutoLevel=this.currentLevelIndex=o):r&&($.b.warn("level controller, "+a+": reload a fragment"),this.currentLevelIndex=null))},r.prototype.onFragLoaded=function(t){var t=t.frag;void 0!==t&&"main"===t.type&&void 0!==(t=this._levels[t.level])&&(t.fragmentError=!1,t.loadError=0,this.levelRetryCount=0)},r.prototype.onLevelLoaded=function(t){var e,n,r,i=this,o=t.level;o===this.currentLevelIndex&&((o=this._levels[o]).fragmentError||(o.loadError=0,this.levelRetryCount=0),(e=t.details).live?(r=n=1e3*(e.averagetargetduration||e.targetduration),(o=o.details)&&e.endSN===o.endSN&&(r/=2,$.b.log("same live playlist, reload twice faster")),r-=Yt.now()-t.stats.trequest,r=Math.max(n/2,Math.round(r)),$.b.log("live playlist, reload in "+Math.round(r)+" ms"),this.timer=setTimeout(function(){return i.loadLevel()},r)):this.clearTimer())},r.prototype.onAudioTrackSwitched=function(t){var e,n=this.hls.audioTracks[t.id].groupId,t=this.hls.levels[this.currentLevelIndex];t&&t.audioGroupIds&&(e=t.audioGroupIds.findIndex(function(t){return t===n}))!==t.urlId&&(t.urlId=e,this.startLoad())},r.prototype.loadLevel=function(){var t,e,n;$.b.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload&&"object"===(void 0===(n=this._levels[this.currentLevelIndex])?"undefined":Gt(n))&&0<n.url.length&&(t=this.currentLevelIndex,e=n.urlId,n=n.url[e],$.b.log("Attempt loading level index "+t+" with URL-id "+e),this.hls.trigger(b.a.LEVEL_LOADING,{url:n,level:t,id:e}))},zt(r,[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;e&&(t=Math.min(t,e.length-1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){var t;return void 0===this._startLevel?void 0!==(t=this.hls.config.startLevel)?t:this._firstLevel:this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}]),r}(o),Qt=t(5);function Jt(t,e){var n=null;try{n=new window.Event("addtrack")}catch(t){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=t,e.dispatchEvent(n)}function Zt(t){if(t&&t.cues)for(;0<t.cues.length;)t.removeCue(t.cues[0])}var te=function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function r(t){if(this instanceof r)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}
1(this,e.call(this,t,b.a.MEDIA_ATTACHED,b.a.MEDIA_DETACHING,b.a.FRAG_PARSING_METADATA))).id3Track=void 0,t.media=void 0,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),r.prototype.destroy=function(){o.prototype.destroy.call(this)},r.prototype.onMediaAttached=function(t){this.media=t.media,this.media},r.prototype.onMediaDetaching=function(){Zt(this.id3Track),this.id3Track=void 0,this.media=void 0},r.prototype.getID3Track=function(t){for(var e=0;e<t.length;e++){var n=t[e];if("metadata"===n.kind&&"id3"===n.label)return Jt(n,this.media),n}return this.media.addTextTrack("metadata","id3")},r.prototype.onFragParsingMetadata=function(t){for(var e=t.frag,n=t.samples,r=(this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden"),window.WebKitDataCue||window.VTTCue||window.TextTrackCue),i=0;i<n.length;i++){var o=Qt.a.getID3Frames(n[i].data);if(o){var a=n[i].pts,s=i<n.length-1?n[i+1].pts:e.endPTS;a===s&&(s+=1e-4);for(var u=0;u<o.length;u++){var l,c=o[u];Qt.a.isTimeStampFrame(c)||((l=new r(a,s,"")).value=c,this.id3Track.addCue(l))}}}},r}(o);function d(t){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function");this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}d.prototype.sample=function(t,e){var n=Math.pow(this.alpha_,t);this.estimate_=e*(1-n)+n*this.estimate_,this.totalWeight_+=t},d.prototype.getTotalWeight=function(){return this.totalWeight_},d.prototype.getEstimate=function(){var t;return this.alpha_?(t=1-Math.pow(this.alpha_,this.totalWeight_),this.estimate_/t):this.estimate_};var ee=d;function f(t,e,n,r){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");this.hls=t,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_
1=new ee(e),this.fast_=new ee(n)}f.prototype.sample=function(t,e){e=8e3*e/(t=Math.max(t,this.minDelayMs_)),t/=1e3;this.fast_.sample(t,e),this.slow_.sample(t,e)},f.prototype.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},f.prototype.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},f.prototype.destroy=function(){};var ne=f,re=function(t,e,n){return e&&ie(t.prototype,e),n&&ie(t,n),t};function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var oe=window.performance,ae=function(n){var t=r,e=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(t){var e;if(this instanceof r)return(e=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,n.call(this,t,b.a.FRAG_LOADING,b.a.FRAG_LOADED,b.a.FRAG_BUFFERED,b.a.ERROR))).lastLoadedFragLevel=0,e._nextAutoLevel=-1,e.hls=t,e.timer=null,e._bwEstimator=null,e.onCheck=e._abandonRulesCheck.bind(e),e;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r.prototype.destroy=function(){this.clearTimer(),o.prototype.destroy.call(this)},r.prototype.onFragLoading=function(t){var e,n,r,i,t=t.frag;"main"===t.type&&(this.timer||(this.fragCurrent=t,this.timer=setInterval(this.onCheck,100)),this._bwEstimator||(n=(e=this.hls).config,t=t.level,i=r=void 0,i=e.levels[t].details.live?(r=n.abrEwmaFastLive,n.abrEwmaSlowLive):(r=n.abrEwmaFastVoD,n.abrEwmaSlowVoD),this._bwEstimator=new ne(e,i,r,n.abrEwmaDefaultEstimate)))},r.prototype._abandonRulesCheck=function(){var t=this.hls,e=t.media,n=this.fragCurrent;if(n){var r=n.loader,i=t.minAutoLevel;if(!r||r.stats&&r.stats.aborted)$.b.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;else{var o=r.stats;if(e&&o&&(!e.paused&&0!==e.playbackRate||!e.readyState)&&n.autoLevel&&n.level){var a=oe.now()-o.trequest,s=Math.abs(e.playbackRate);if(a>500*n.duration/s){var u=t.levels,l=Math.max(1,o.bw?o.bw/8:1e3*o.loaded/a),c=u[n.level],c=c.realBitrate?Math.max(c.realBitrate,c.bitrate):c.bitrate,c=o.total||Math.max(o.loaded,Math.round(n.duration*c/8)),p=e.currentTime,c=(c-o.loaded)/l,d=(w.bufferInfo(e,p,t.config.maxBufferHole).end-p)/s;if(d<2*n.duration/s&&d<c){for(var h=void 0,f=void 0,f=n.level-1;i<f;f--){var g=u[f].realBitrate?Math.max(u[f].realBitrate,u[f].bitrate):u[f].bitrate;if((h=n.duration*g/(6.4*l))<d)break}h<c&&($.b.warn("loading too slow, abort fragment loading and switch to level "+f+":fragLoadedDelay["+f+"]<fragLoadedDelay["+(n.level-1)+"];bufferStarvationDelay:"+h.toFixed(1)+"<"+c.toFixed(1)+":"+d.toFixed(1)),t.nextLoadLevel=f,this._bwEstimator.sample(a,o.loaded),r.abort(),this.clearTimer(),t.trigger(b.a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,stats:o}))}}}}}},r.prototype.onFragLoaded=function(t){var e,n,r=t.frag;"main"!==r.type||isNaN(r.sn)||(this.clearTimer(),this.lastLoadedFragLevel=r.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate&&(e=((r=this.hls.levels[r.level]).loaded?r.loaded.bytes:0)+t.stats.loaded,n=(r.loaded?r.loaded.duration:0)+t.frag.duration,r.loaded={bytes:e,duration:n},r.realBitrate=Math.round(8*e/n)),t.frag.bitrateTest&&((r=t.stats).tparsed=r.tbuffered=r.tload,this.onFragBuffered(t)))},r.prototype.onFragBuffered=function(t){var e,n=t.stats,t=t.frag;!0===n.aborted||"main"!==t.type||isNaN(t.sn)||t.bitrateTest&&n.tload!==n.tbuffered||(e=n.tparsed-n.trequest,$.b.log("latency/loading/parsing/append/kbps:"+Math.round(n.tfirst-n.trequest)+"/"+Math.round(n.tload-n.tfirst)+"/"+Math.round(n.tparsed-n.tload)+"/"+Math.round(n.tbuffered-n.tparsed)+"/"+Math.round(8*n.loaded/(n.tbuffered-n.trequest))),this._bwEstimator.sample(e,n.loaded),n.bwEstimate=this._bwEstimator.getEstimate(),t.bitrateTest?this.bitrateTestDelay=e/1e3:this.bitrateTestDelay=0)},r.prototype.onError=function(t){switch(t.details){case c.a.FRAG_LOAD_ERROR:case c.a.FRAG_LOAD_TIMEOUT:this.clearTimer()}},r.prototype.clearTimer=function(){clearInterval(this.timer),this.timer=null},r.prototype._findBestLevel=function(t,e,n,r,i,o,a,s,u){for(var l=i;r<=l;l--){var c=u[l].details,p=c?c.totalduration/c.fragments.length:e,c=!!c&&c.live,d=void 0,d=l<=t?a*n:s*n,h=u[l].realBitrate?Math.max(u[l].realBitrate,u[l].bitrate):u[l].bitrate,f
1=h*p/d;if($.b.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+l+"/"+Math.round(d)+"/"+h+"/"+p+"/"+o+"/"+f),h<d&&(!f||c&&!this.bitrateTestDelay||f<o))return l}return-1},re(r,[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;return-1===t||e&&e.canEstimate()?(e=this._nextABRAutoLevel,-1!==t?Math.min(t,e):e):t},set:function(t){this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var t,e,n,r=this.hls,i=r.maxAutoLevel,o=r.levels,a=r.config,s=r.minAutoLevel,r=r.media,u=this.lastLoadedFragLevel,l=this.fragCurrent?this.fragCurrent.duration:0,c=r?r.currentTime:0,p=r&&0!==r.playbackRate?Math.abs(r.playbackRate):1,d=this._bwEstimator?this._bwEstimator.getEstimate():a.abrEwmaDefaultEstimate,r=(w.bufferInfo(r,c,a.maxBufferHole).end-c)/p,c=this._findBestLevel(u,l,d,s,i,r,a.abrBandWidthFactor,a.abrBandWidthUpFactor,o);return 0<=c?c:($.b.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering"),p=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay,t=a.abrBandWidthFactor,e=a.abrBandWidthUpFactor,0==r&&(n=this.bitrateTestDelay)&&(p=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-n,$.b.trace("bitrate test took "+Math.round(1e3*n)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*p)+" ms"),t=e=1),c=this._findBestLevel(u,l,d,s,i,r+p,t,e,o),Math.max(c,0))}}]),r}(o);var se=bt(),ue=function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function r(t){if(this instanceof r)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.MEDIA_ATTACHING,b.a.MEDIA_DETACHING,b.a.MANIFEST_PARSED,b.a.BUFFER_RESET,b.a.BUFFER_APPENDING,b.a.BUFFER_CODECS,b.a.BUFFER_EOS,b.a.BUFFER_FLUSHING,b.a.LEVEL_PTS_UPDATED,b.a.LEVEL_UPDATED)))._msDuration=null,t._levelDuration=null,t._live=null,t._objectUrl=null,t.onsbue=t.onSBUpdateEnd.bind(t),t.onsbe=t.onSBUpdateError.bind(t),t.pendingTracks={},t.tracks={},t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),r.prototype.destroy=function(){o.prototype.destroy.call(this)},r.prototype.onLevelPtsUpdated=function(t){var e=t.type,n=this.tracks.audio;if("audio"===e&&n&&"audio/mpeg"===n.container){e=this.sourceBuffer.audio;if(.1<Math.abs(e.timestampOffset-t.start)){n=e.updating;try{e.abort()}catch(t){n=!0,$.b.warn("can not abort audio buffer: "+t)}n?this.audioTimestampOffset=t.start:($.b.warn("change mpeg audio timestamp offset from "+e.timestampOffset+" to "+t.start),e.timestampOffset=t.start)}}},r.prototype.onManifestParsed=function(t){var e=t.audio,n=t.video||t.levels.length&&t.altAudio,r=0;t.altAudio&&(e||n)&&$.b.log((r=(e?1:0)+(n?1:0))+" sourceBuffer(s) expected"),this.sourceBufferNb=r},r.prototype.onMediaAttaching=function(t){var e,t=this.media=t.media;t&&(e=this.mediaSource=new se,this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),e.addEventListener("sourceopen",this.onmso),e.addEventListener("sourceended",this.onmse),e.addEventListener("sourceclose",this.onmsc),t.src=window.URL.createObjectURL(e),this._objectUrl=t.src)},r.prototype.onMediaDetaching=function(){$.b.log("media source detaching");var t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(t){$.b.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}t.removeEventListener("sourceopen",this.onmso),t.removeEventListener("sourceended",this.onmse),t.removeEventListener("sourceclose",this.onmsc),this.media&&(window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):$.b.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.onmso=this.onmse=this.onmsc=null,this.hls.trigger(b.a.MEDIA_DETACHED)},r.prototype.onMediaSourceOpen=function(){$.b.log("media source opened"),this.hls.trigger(b.a.MEDIA_ATTA
vendor: 6,502 bytes, line 1
1CHED,{media:this.media});var t=this.mediaSource;t&&t.removeEventListener("sourceopen",this.onmso),this.checkPendingTracks()},r.prototype.checkPendingTracks=function(){var t=this.pendingTracks,e=Object.keys(t).length;e&&(this.sourceBufferNb<=e||0===this.sourceBufferNb)&&(this.createSourceBuffers(t),this.pendingTracks={},this.doAppending())},r.prototype.onMediaSourceClose=function(){$.b.log("media source closed")},r.prototype.onMediaSourceEnded=function(){$.b.log("media source ended")},r.prototype.onSBUpdateEnd=function(){this.audioTimestampOffset&&(e=this.sourceBuffer.audio,$.b.warn("change mpeg audio timestamp offset from "+e.timestampOffset+" to "+this.audioTimestampOffset),e.timestampOffset=this.audioTimestampOffset,delete this.audioTimestampOffset),this._needsFlush&&this.doFlush(),this._needsEos&&this.checkEos(),this.appending=!1;var t,n=this.parent,e=this.segments.reduce(function(t,e){return e.parent===n?t+1:t},0),r={},i=this.sourceBuffer;for(t in i)r[t]=i[t].buffered;this.hls.trigger(b.a.BUFFER_APPENDED,{parent:n,pending:e,timeRanges:r}),this._needsFlush||this.doAppending(),this.updateMediaElementDuration()},r.prototype.onSBUpdateError=function(t){$.b.error("sourceBuffer error:",t),this.hls.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_APPENDING_ERROR,fatal:!1})},r.prototype.onBufferReset=function(){var t,e=this.sourceBuffer;for(t in e){var n=e[t];try{this.mediaSource.removeSourceBuffer(n),n.removeEventListener("updateend",this.onsbue),n.removeEventListener("error",this.onsbe)}catch(t){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},r.prototype.onBufferCodecs=function(t){if(0===Object.keys(this.sourceBuffer).length){for(var e in t)this.pendingTracks[e]=t[e];var n=this.mediaSource;n&&"open"===n.readyState&&this.checkPendingTracks()}},r.prototype.createSourceBuffers=function(t){var e,n=this.sourceBuffer,r=this.mediaSource;for(e in t)if(!n[e]){var i=t[e],o=i.levelCodec||i.codec,a=i.container+";codecs="+o;$.b.log("creating sourceBuffer("+a+")");try{var s=n[e]=r.addSourceBuffer(a);s.addEventListener("updateend",this.onsbue),s.addEventListener("error",this.onsbe),this.tracks[e]={codec:o,container:i.container},i.buffer=s}catch(t){$.b.error("error while trying to add sourceBuffer:"+t.message),this.hls.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:t,mimeType:a})}}this.hls.trigger(b.a.BUFFER_CREATED,{tracks:t})},r.prototype.onBufferAppending=function(t){this._needsFlush||(this.segments?this.segments.push(t):this.segments=[t],this.doAppending())},r.prototype.onBufferAppendFail=function(t){$.b.error("sourceBuffer error:",t.event),this.hls.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.BUFFER_APPENDING_ERROR,fatal:!1})},r.prototype.onBufferEos=function(t){var e,n=this.sourceBuffer,r=t.type;for(e in n)r&&e!==r||n[e].ended||(n[e].ended=!0,$.b.log(e+" sourceBuffer now EOS"));this.checkEos()},r.prototype.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(e&&"open"===e.readyState){for(var n in t){n=t[n];if(!n.ended)return;if(n.updating)return void(this._needsEos=!0)}$.b.log("all media data available, signal endOfStream() to MediaSource and stop loading fragment");try{e.endOfStream()}catch(t){$.b.warn("exception while calling mediaSource.endOfStream()")}}this._needsEos=!1},r.prototype.onBufferFlushing=function(t){this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}),this.flushBufferCounter=0,this.doFlush()},r.prototype.onLevelUpdated=function(t){t=t.details;0<t.fragments.length&&(this._levelDuration=t.totalduration+t.fragments[0].start,this._live=t.live,this.updateMediaElementDuration())},r.prototype.updateMediaElementDuration=function(){var t,e=this.hls.config;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var n in this.sourceBuffer)if(!0===this.sourceBuffer[n].updating)return;t=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?($.b.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>t||t===1/0||isNaN(t))&&($.b.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},r.prototype.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,n=this.sourceBuffer;try{for(var r in n)e+=n[r].buffered.length}catch(t){$.b.error("error while accessing sourceBuffer.buffered")}this.appended=e,this.hls.trigger(b.a.BUFFER_FLUSHED)}},r.prototype.doAppending=function(){var e=this.hls,n=this.sourceBuffer,r=this.segments;if(Object.keys(n).length)if(this.media.error)this.segments=[],$.b.error("trying to append although a media error occured, flush segment and abort");else if(!this.appending&&r&&r.length){var i=r.shift();try{var t=n[i.type];t?t.updating?r.unshift(i):(t.ended=!1,this.parent=i.parent,t.appendBuffer(i.data),this.appendError=0,this.appended++,this.appending=!0):this.onSBUpdateEnd()}catch(t){$.b.error("error while trying to append buffer:"+t.message),r.unshift(i);n={type:c.b.MEDIA_ERROR,parent:i.parent};22!==t.code?(this.appendError?this.appendError++:this.appendError=1,n.details=c.a.BUFFER_APPEND_ERROR,this.appendError>e.config.appendErrorMaxRetry?($.b.log("fail "+e.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),r=[],n.fatal=!0):n.fatal=!1):(this.segments=[],n.details=c.a.BUFFER_FULL_ERROR,n.fatal=!1),e.trigger(b.a.ERROR,n)}}},r.prototype.flushBuffer=function(t,e,n){var r,i,o=void 0,a=void 0,s=void 0,u=void 0,l=this.sourceBuffer;if(Object.keys(l).length){if($.b.log("flushBuffer,pos/start/end: "+this.media.currentTime.toFixed(3)+"/"+t+"/"+e),this.flushBufferCounter<this.appended){for(var c in l)if(!n||c===n){if((o=l[c]).ended=!1,o.updating)return $.b.warn("cannot flush, sb updating in progress"),!1;try{for(a=0;a<o.buffered.length;a++)if(r=o.buffered.start(a),i=o.buffered.end(a),u=-1!==navigator.userAgent.toLowerCase().indexOf("firefox")&&e===Number.POSITIVE_INFINITY?(s=t,e):(s=Math.max(r,t),Math.min(i,e)),.5<Math.min(u,i)-s)return this.flushBufferCounter++,$.b.log("flush "+c+" ["+s+","+u+"], of ["+r
1+","+i+"], pos:"+this.media.currentTime),o.remove(s,u),!1}catch(t){$.b.warn("exception while accessing sourcebuffer, it might have been removed from MediaSource")}}}else $.b.warn("abort flushing too many retries");$.b.log("buffer flushed")}return!0},r}(o),le=function(t,e,n){return e&&ce(t.prototype,e),n&&ce(t,n),t};function ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var pe=function(e){var t=i,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function i(t){if(this instanceof i)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.FPS_DROP_LEVEL_CAPPING,b.a.MEDIA_ATTACHING,b.a.MANIFEST_PARSED,b.a.BUFFER_CODECS))).autoLevelCapping=Number.POSITIVE_INFINITY,t.firstLevel=null,t.levels=[],t.media=null,t.restrictedLevels=[],t.timer=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),i.prototype.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this._stopCapping())},i.prototype.onFpsDropLevelCapping=function(t){i.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},i.prototype.onMediaAttaching=function(t){this.media=t.media instanceof window.HTMLVideoElement?t.media:null},i.prototype.onManifestParsed=function(t){var e=this.hls;this.restrictedLevels=[],this.levels=t.levels,this.firstLevel=t.firstLevel,e.config.capLevelToPlayerSize&&(t.video||t.levels.length&&t.altAudio)&&this._startCapping()},i.prototype.onBufferCodecs=function(t){this.hls.config.capLevelToPlayerSize&&t.video&&this._startCapping()},i.prototype.onLevelsUpdated=function(t){this.levels=t.levels},i.prototype.detectPlayerSize=function(){var t,e;this.media&&(t=this.levels?this.levels.length:0)&&((e=this.hls).autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping)},i.prototype.getMaxLevel=function(n){var t,r=this;return this.levels?(t=this.levels.filter(function(t,e){return i.isLevelAllowed(e,r.restrictedLevels)&&e<=n}),i.getMaxLevelByMediaSize(t,this.mediaWidth,this.mediaHeight)):-1},i.prototype._startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},i.prototype._stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},i.isLevelAllowed=function(t){return-1===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]).indexOf(t)},i.getMaxLevelByMediaSize=function(t,e,n){if(!t||!t.length)return-1;for(var r,i=t.length-1,o=0;o<t.length;o+=1){var a=t[o];if((a.width>=e||a.height>=n)&&(a=a,!(r=t[o+1])||a.width!==r.width||a.height!==r.height)){i=o;break}}return i},le(i,[{key:"mediaWidth",get:function(){var t=void 0,e=this.media;return e&&(t=e.width||e.clientWidth||e.offsetWidth,t*=i.contentScaleFactor),t}},{key:"mediaHeight",get:function(){var t=void 0,e=this.media;return e&&(t=e.height||e.clientHeight||e.offsetHeight,t*=i.contentScaleFactor),t}}],[{key:"contentScaleFactor",get:function(){var t=1;try{t=window.devicePixelRatio}catch(t){}return t}}]),i}(o);var de=window.performance,he=function(n){var t=r,e=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(t){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");var e=this,t=n.call(this,t,b.a.MEDIA_ATTACHING);if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r.prototype.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},r.prototype.onMediaAttaching=function(t){var e=this.hls.config;e.capLevelOnFPSDrop&&("function"==typeof(this.video=t.media instanceof window.HTMLVideoElement?t.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod))},r.prototype.checkFPS=function(t,e,n){var r,i,o,a,s=de.now();e&&(this.lastTime&&(a=s-this.lastTime,r=n-this.lastDroppedFrames,i=e-this.lastDecodedFrames,a=1e3*r/a,(o=this.hls).trigger(b.a.FPS_DROP,{currentDropped:r,currentDecoded:i,totalDroppedFrames:n}),0<a)&&r>o.config.fpsDroppedMonitoringThreshold*i&&(a=o.currentLevel,$.b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+a),0<a)&&(-1===o.autoLevelCapping||o.autoLevelCapping>=a)&&(o.trigger(b.a.FPS_DROP_LEVEL_CAPPING,{level:a-=1,droppedLevel:o.currentLevel}),o.autoLevelCapping=a,o.streamController.nextLevelSwitch()),this.lastTime=s,this.lastDroppedFrames=n,this.lastDecodedFrames=e)},r.prototype.checkFPSInterval=function(){var t,e=this.video;e&&(this.isVideoPlaybackQualityAvailable?(t=e.getVideoPlaybackQuality(),this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)):this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount))},r}(o);var g=window,fe=g.performance,ge=g.XMLHttpRequest;function m(t){if(!(this instanceof m))throw new TypeError("Cannot call a class as a function");t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}m.prototype.destroy=function(){this.abort(),this.loader=null},m.prototype.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},m.prototype.load=function(t,e,n){this.context=t,this.config=e,this.callbacks=n,this.stats={trequest:fe.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},m.prototype.loadInternal=function(){var e=void 0,n=this.context,e=this.loader=new ge,r=this.stats,r=(r.tfirst=0,r.loaded=0,this.xhrSetup);try{if(r)try{r(e,n.url)}catch(t){e.open("GET",n.url,!0),r(e,n.url)}e.readyState||e.open("GET",n.url,!0)}catch(t){return void this.callbacks.onError({code:e.status,text:t.message},n,e)}n.rangeEnd&&e.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.on
1progress=this.loadprogress.bind(this),e.responseType=n.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),e.send()},m.prototype.readystatechange=function(t){var e,n,t=t.currentTarget,r=t.readyState,i=this.stats,o=this.context,a=this.config;i.aborted||2<=r&&(window.clearTimeout(this.requestTimeout),0===i.tfirst&&(i.tfirst=Math.max(fe.now(),i.trequest)),4===r?200<=(r=t.status)&&r<300?(i.tload=Math.max(i.tfirst,fe.now()),n=e=void 0,n="arraybuffer"===o.responseType?(e=t.response).byteLength:(e=t.responseText).length,i.loaded=i.total=n,n={url:t.responseURL,data:e},this.callbacks.onSuccess(n,i,o,t)):i.retry>=a.maxRetry||400<=r&&r<499?($.b.error(r+" while loading "+o.url),this.callbacks.onError({code:r,text:t.statusText},o,t)):($.b.warn(r+" while loading "+o.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),i.retry++):this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),a.timeout))},m.prototype.loadtimeout=function(){$.b.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},m.prototype.loadprogress=function(t){var e=t.currentTarget,n=this.stats,t=(n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total),this.callbacks.onProgress);t&&t(n,this.context,null,e)};var g=m,me=function(t,e,n){return e&&ve(t.prototype,e),n&&ve(t,n),t};function ve(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ye=function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function r(t){if(this instanceof r)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.MANIFEST_LOADING,b.a.MANIFEST_PARSED,b.a.AUDIO_TRACK_LOADED,b.a.AUDIO_TRACK_SWITCHED,b.a.LEVEL_LOADED,b.a.ERROR))).trackId=-1,t.tracks=[],t.trackIdBlacklist=Object.create(null),t.audioGroupId=null,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),r.prototype.onManifestLoading=function(){this.tracks=[],this.trackId=-1},r.prototype.onManifestParsed=function(t){t=this.tracks=t.audioTracks||[];this.hls.trigger(b.a.AUDIO_TRACKS_UPDATED,{audioTracks:t})},r.prototype.onAudioTrackLoaded=function(t){var e;t.id>=this.tracks.length?$.b.warn("Invalid audio track id:",t.id):($.b.log("audioTrack "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.hasInterval()&&(e=1e3*t.details.targetduration,this.setInterval(e)),!t.details.live&&this.hasInterval()&&this.clearInterval())},r.prototype.onAudioTrackSwitched=function(t){t=this.tracks[t.id].groupId;t&&this.audioGroupId!==t&&(this.audioGroupId=t)},r.prototype.onLevelLoaded=function(t){var t=this.hls.levels[t.level];t.audioGroupIds&&(t=t.audioGroupIds[t.urlId],this.audioGroupId!==t)&&(this.audioGroupId=t,this._selectInitialAudioTrack())},r.prototype.onError=function(t){t.type===c.b.NETWORK_ERROR&&(t.fatal&&this.clearInterval(),t.details===c.a.AUDIO_TRACK_LOAD_ERROR)&&($.b.warn("Network failure on audio-track id:",t.context.id),this._handleLoadError())},r.prototype.doTick=function(){this._updateTrack(this.trackId)},r.prototype._selectInitialAudioTrack=function(){var e,n,t,r=this,i=this.tracks;i.length&&(t=this.tracks[this.trackId],e=null,t&&(e=t.name),(t=i.filter(function(t){return t.default})).length?i=t:$.b.warn("No default audio tracks defined"),n=!1,(t=function(){i.forEach(function(t){n||r.audioGroupId&&t.groupId!==r.audioGroupId||e&&e!==t.name||(r.audioTrack=t.id,n=!0)})})(),n||(e=null,t()),n||($.b.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:c.a.AUDIO_TRACK_LOAD_ERROR,fatal:!0})))},r.prototype._needsTrackLoading=function(t){t=t.details;return!t||!!t.live||void 0}
1,r.prototype._loadTrackDetailsIfNeeded=function(t){var e;this._needsTrackLoading(t)&&(e=t.url,t=t.id,$.b.log("loading audio-track playlist for id: "+t),this.hls.trigger(b.a.AUDIO_TRACK_LOADING,{url:e,id:t}))},r.prototype._updateTrack=function(t){t<0||t>=this.tracks.length||(this.clearInterval(),this.trackId=t,$.b.log("trying to update audio-track "+t),t=this.tracks[t],this._loadTrackDetailsIfNeeded(t))},r.prototype._handleLoadError=function(){this.trackIdBlacklist[this.trackId]=!0;for(var t=this.trackId,e=this.tracks[t],n=e.name,r=e.language,e=e.groupId,i=($.b.warn("Loading failed on audio track id: "+t+", group-id: "+e+', name/language: "'+n+'" / "'+r+'"'),t),o=0;o<this.tracks.length;o++)if(!this.trackIdBlacklist[o]&&this.tracks[o].name===n){i=o;break}i===t?$.b.warn('No fallback audio-track found for name/language: "'+n+'" / "'+r+'"'):($.b.log("Attempting audio-track fallback id:",i,"group-id:",this.tracks[i].groupId),this.audioTrack=i)},me(r,[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this.trackId},set:function(t){var e,n,r;this.trackId===t&&this.tracks[this.trackId].details?$.b.debug("Same id as current audio-track passed, and track details available -> no-op"):t<0||t>=this.tracks.length?$.b.warn("Invalid id passed to audio-track controller"):(e=this.tracks[t],$.b.log("Now switching to audio-track index "+t),this.clearInterval(),this.trackId=t,t=e.url,n=e.type,r=e.id,this.hls.trigger(b.a.AUDIO_TRACK_SWITCHING,{id:r,type:n,url:t}),this._loadTrackDetailsIfNeeded(e))}}]),r}(e),be=function(t,e,n){return e&&we(t.prototype,e),n&&we(t,n),t};function we(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var $e,Ee,xe=window.performance,Se="STOPPED",Te="STARTING",S="IDLE",_e="PAUSED",Ce="KEY_LOADING",ke="FRAG_LOADING",Ae="FRAG_LOADING_WAITING_RETRY",De="WAITING_TRACK",v="PARSING",Oe="PARSED",Re="BUFFER_FLUSHING",Le="ENDED",Ie="ERROR",Me="WAITING_INIT_PTS",Pe=function(r){var t=i,e=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(t,e){var n;if(this instanceof i)return(n=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,r.call(this,t,b.a.MEDIA_ATTACHED,b.a.MEDIA_DETACHING,b.a.AUDIO_TRACKS_UPDATED,b.a.AUDIO_TRACK_SWITCHING,b.a.AUDIO_TRACK_LOADED,b.a.KEY_LOADED,b.a.FRAG_LOADED,b.a.FRAG_PARSING_INIT_SEGMENT,b.a.FRAG_PARSING_DATA,b.a.FRAG_PARSED,b.a.ERROR,b.a.BUFFER_RESET,b.a.BUFFER_CREATED,b.a.BUFFER_APPENDED,b.a.BUFFER_FLUSHED,b.a.INIT_PTS_FOUND))).fragmentTracker=e,n.config=t.config,n.audioCodecSwap=!1,n._state=Se,n.initPTS=[],n.waitingFragment=null,n.videoTrackCC=null,n;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i.prototype.onHandlerDestroying=function(){this.stopLoad(),r.prototype.onHandlerDestroying.call(this)},i.prototype.onHandlerDestroyed=function(){this.state=Se,this.fragmentTracker=null,r.prototype.onHandlerDestroyed.call(this)},i.prototype.onInitPtsFound=function(t){var e=t.id,n=t.frag.cc,t=t.initPTS;"main"===e&&(this.initPTS[n]=t,this.videoTrackCC=n,$.b.log("InitPTS for cc: "+n+" found from video track: "+t),this.state===Me)&&this.tick()},i.prototype.startLoad=function(t){var e;this.tracks?(e=this.lastCurrentTime,this.stopLoad(),this.setInterval(100),(this.fragLoadError=0)<e&&-1===t?($.b.log("audio:override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=S):(this.lastCurrentTime=this.startPosition||t,this.state=Te),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()):(this.startPosition=t,this.state=Se)},i.prototype.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t),this.fragCurrent=null),this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=Se},i.prototype.doTick=function(){var e,t=void 0,n=void 0,r=this.hls,i=r.config;switch(this.state){case Ie:case _e:case Re:break;case Te:this.state=De,this.loadedmetadata=!1;break;case S:var o=this.tracks;
1if(o&&(this.media||!this.startFragRequested&&i.startFragPrefetch)){if(this.loadedmetadata)t=this.media.currentTime;else if(void 0===(t=this.nextLoadPosition))break;var a=this.mediaBuffer||this.media,s=this.videoBuffer||this.media,u=w.bufferInfo(a,t,i.maxBufferHole),s=w.bufferInfo(s,t,i.maxBufferHole),l=u.len,c=u.end,p=this.fragPrevious,d=Math.min(i.maxBufferLength,i.maxMaxBufferLength),d=Math.max(d,s.len),s=this.audioSwitch,h=this.trackId;if((l<d||s)&&h<o.length){if(void 0===(l=o[h].details)){this.state=De;break}if(!s&&!l.live&&p&&p.sn===l.endSN&&!u.nextStart&&(!this.media.seeking||this.media.duration-c<p.duration/2)){this.hls.trigger(b.a.BUFFER_EOS,{type:"audio"}),this.state=Le;break}var d=l.fragments,o=d.length,f=d[0].start,g=d[o-1].start+d[o-1].duration,m=void 0;if(s)if(l.live&&!l.PTSKnown)$.b.log("switching audiotrack, live stream, unknown PTS,load first fragment"),c=0;else if(c=t,l.PTSKnown&&t<f){if(!(u.end>f||u.nextStart))return;$.b.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=f+.05}if(l.initSegment&&!l.initSegment.data)m=l.initSegment;else if(c<=f){m=d[0];if(null!==this.videoTrackCC&&m.cc!==this.videoTrackCC&&(e=this.videoTrackCC,m=gt.search(d,function(t){return t.cc<e?1:t.cc>e?-1:0})),l.live&&m.loadIdx&&m.loadIdx===this.fragLoadIdx)return u=u.nextStart||f,$.b.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(u+.05)),void(this.media.currentTime=u+.05)}else{var f=void 0,v=i.maxFragLookUpTolerance,u=p?d[p.sn-d[0].sn+1]:void 0,y=function(t){var e=Math.min(v,t.duration);return t.start+t.duration-e<=c?1:t.start-e>c&&t.start?-1:0};(f=c<g?(g-v<c&&(v=0),u&&!y(u)?u:gt.search(d,y)):d[o-1])&&((m=f).start,p)&&m.level===p.level&&m.sn===p.sn&&(m.sn<l.endSN?(m=d[m.sn+1-l.startSN],$.b.log("SN just loaded, load next one: "+m.sn)):m
1=null)}m&&(m.encrypted?($.b.log("Loading key for "+m.sn+" of ["+l.startSN+" ,"+l.endSN+"],track "+h),this.state=Ce,r.trigger(b.a.KEY_LOADING,{frag:m})):($.b.log("Loading "+m.sn+", cc: "+m.cc+" of ["+l.startSN+" ,"+l.endSN+"],track "+h+", currentTime:"+t+",bufferEnd:"+c.toFixed(3)),!s&&this.fragmentTracker.getState(m)!==ct||(this.fragCurrent=m,this.startFragRequested=!0,isNaN(m.sn)||(this.nextLoadPosition=m.start+m.duration),r.trigger(b.a.FRAG_LOADING,{frag:m}),this.state=ke)))}}break;case De:(n=this.tracks[this.trackId])&&n.details&&(this.state=S);break;case Ae:g=xe.now(),u=this.retryDate,y=(a=this.media)&&a.seeking;(!u||u<=g||y)&&($.b.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=S);break;case Me:o=this.videoTrackCC;void 0!==this.initPTS[o]&&((f=this.waitingFragment)?o!==(p=f.frag.cc)?(n=this.tracks[this.trackId]).details&&n.details.live&&($.b.warn("Waiting fragment CC ("+p+") does not match video track CC ("+o+")"),this.waitingFragment=null,this.state=S):(this.state=ke,this.onFragLoaded(this.waitingFragment),this.waitingFragment=null):this.state=S)}},i.prototype.onMediaAttached=function(t){t=this.media=this.mediaBuffer=t.media,this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),t.addEventListener("seeking",this.onvseeking),t.addEventListener("ended",this.onvended),t=this.config;this.tracks&&t.autoStartLoad&&this.startLoad(t.startPosition)},i.prototype.onMediaDetaching=function(){var t=this.media;t&&t.ended&&($.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.stopLoad()},i.prototype.onMediaSeeking=function(){this.state===Le&&(this.state=S),this.media&&(this.lastCurrentTime=this.media.currentTime),this.tick()},i.prototype.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},i.prototype.onAudioTracksUpdated=function(t){$.b.log("audio tracks updated"),this.tracks=t.audioTracks},i.prototype.onAudioTrackSwitching=function(t){var e=!!t.url;this.trackId=t.id,this.fragCurrent=null,this.state=_e,this.waitingFragment=null,e?this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),e&&(this.audioSwitch=!0,this.state=S),this.tick()},i.prototype.onAudioTrackLoaded=function(t){var e=t.details,t=t.id,n=this.tracks[t],r=e.totalduration,i=0;$.b.log("track "+t+" loaded ["+e.startSN+","+e.endSN+"],duration:"+r),e.live?(t=n.details)&&0<e.fragments.length?(_t(t,e),i=e.fragments[0].start,e.PTSKnown?$.b.log("live audio playlist sliding:"+i.toFixed(3)):$.b.log("live audio playlist - outdated PTS, unknown sliding")):(e.PTSKnown=!1,$.b.log("live audio playlist - first load, unknown sliding")):e.PTSKnown=!1,n.details=e,this.startFragRequested||(-1===this.startPosition&&(r=e.startTimeOffset,isNaN(r)?this.startPosition=0:($.b.log("start time offset found in playlist, adjust startPosition to "+r),this.startPosition=r)),this.nextLoadPosition=this.startPosition),this.state===De&&(this.state=S),this.tick()},i.prototype.onKeyLoaded=function(){this.state===Ce&&(this.state=S,this.tick())},i.prototype.onFragLoaded=function(t){var e,n,r,i,o,a,s,u=this.fragCurrent,l=t.frag;this.state===ke&&u&&"audio"===l.type&&l.level===u.level&&l.sn===u.sn&&(n=(e=(l=this.tracks[this.trackId]).details).totalduration,r=u.level,i=u.sn,o=u.cc,l=this.config.defaultAudioCodec||l.audioCodec||"mp4a.40.2",a=this.stats=t.stats,"initSegment"===i?(this.state=S,a.tparsed=a.tbuffered=xe.now(),e.initSegment.data=t.payload,this.hls.trigger(b.a.FRAG_BUFFERED,{stats:a,frag:u,id:"audio"}),this.tick()):(this.state=v,this.appended=!1,this.demuxer||(this.demuxer=new Et(this.hls,"audio")),a=this.initPTS[o],s=e.initSegment?e.initSegment.data:[],e.initSegment||void 0!==a?(this.pendingBuffering=!0,$.b.log("Demuxing "+i+" of ["+e.startSN+" ,"+e.endSN+"],track "+r),this.demuxer.push(t.payload,s,l,null,u,n,!1,a)):($.b.log("unknown video PTS for continuity counter "+o+", waiting for video PTS before demuxing audio frag "+i+" of ["+e.startSN+" ,"+e.endSN+"],track "+r),this.waitingFragment=t,this.state=Me))),this.fragLoadError=0},i.prototype.onFragParsingInitSegment=function(t){var e=this.fragCurrent,n=t.frag;e&&"audio"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===v&&(n=void 0,(e=t.tracks).video&&delete e.video,n=e.audio)&&(n.levelCodec=n.codec,n.id=t.id,this.hls.trigger(b.a.BUFFER_CODECS,e),$.b.log("audio track:audio,container:"+n.container+",codecs[level/parsed]=["+n.levelCodec+"/"+n.codec+"]"),(t=n.initSegment)&&(e={type:"audio",data:t,parent:"audio",content:"initSegment"},this.audioSwitch?this.pendingData=[e]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(b.a.BUFFER_APPENDING,e))),this.tick())},i.prototype.onFragParsingData=function(e){var t,n,r,i,o=this,a=this.fragCurrent,s=e.frag;a&&"audio"===e.id&&"audio"===e.type&&s.sn===a.sn&&s.level===a.level&&this.state===v&&(s=this.trackId,r=this.tracks[s],t=this.hls,isNaN(e.endPTS)&&(e.endPTS=e.startPTS+a.duration,e.endDTS=e.startDTS+a.duration),a.addElementaryStream(E.ElementaryStreamTypes.AUDIO),$.b.log("parsed "+e.type+",PTS:["+e.startPTS.toFixed(3)+","+e.endPTS.toFixed(3)+"],DTS:["+e.startDTS.toFixed(3)+"/"+e.endDTS.toFixed(3)+"],nb:"+e.nb),Tt(r.details,a,e.startPTS,e.endPTS),r=this.audioSwitch,a=this.media,n=!1,r&&a&&(a.readyState?(r=a.currentTime,$.b.log("switching audio track : currentTime:"+r),r>=e.startPTS&&($.b.log("switching audio track : flushing all audio"),this.state=Re,t.trigger(b.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),this.audioSwitch=!(n=!0),t.trigger(b.a.AUDIO_TRACK_SWITCHED,{id:s}))):(this.audioSwitch=!1,t.trigger(b.a.AUDIO_TRACK_SWITCHED,{id:s}))),(i=this.pendingData)?(this.audioSwitch||([e.data1,e.data2].forEach(function(t){t&&t.length&&i.push({type:e.type,data:t,parent:"audio",content:"data"})}),!n&&i.length&&(i.forEach(function(t){o.state===v&&(o.pendingBuffering=!0,o.hls.trigger(b.a.BUFFER_APPENDING,t))}),this.pendingData=[],this.appended=!0)),this.tick()):($.b.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),t.trigger(b.a.ERROR,{type:c.b.MEDIA_ERROR,details:null,fatal:!0})))},i.prototype.onFragParsed=function(t){var e=this.fragCurrent,n=t.frag;e&&"audio"===t.id&&n.sn===e.sn&&n.level===e.level&&this.state===v&&(this.stats.tparsed=xe.now(),this.state=Oe,this._checkAppendedParsed())},i.prototype.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},i.prototype.onBufferCreated=function(t){var e=t.tracks.audio;e&&(this.mediaBuffer=e.buffer,this.loadedmetadata=!0),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer)},i.prototype.onBufferAppended=function(t){var e;"audio"!==t.parent||(e=this.state)!==v&&e!==Oe||(this.pendingBuffering=0<t.pending,this._checkAppendedParsed())},i.prototype._checkAppendedParsed=function(){var t,e,n;this.state!==Oe||this.appended&&this.pendingBuffering||(t=this.fragCurrent,n=this.stats,e=this.hls,t&&(this.fragPrevious=t,n.tbuffered=xe.now(),e.trigger(b.a.FRAG_BUFFERED,{stats:n,frag:t,id:"audio"}),n=this.mediaBuffer||this.media,$.b.log("audio buffered : "+Ct.toString(n.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,e.trigger(b.a.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=S),this.tick())},i.prototype.onError=function(t){var e=t.frag;if(!e||"audio"===e.type)switch(t.details){case c.a.FRAG_LOAD_ERROR:case c.a.FRAG_LOAD_TIMEOUT:var n,r=t.frag;r&&"audio"!==r.type||t.fatal||((r=this.fragLoadError)?r++:r=1,r<=(n=this.config).fragLoadingMaxRetry?(this.fragLoadError=r,r=Math.min(Math.pow(2,r-1)*n.fragLoadingRetryDelay,n.fragLoadingMaxRetryTimeout),$.b.warn("AudioStreamController: frag loading failed, retry in "+r+" ms"),this.retryDate=xe.now()+r,this.state=Ae):($.b.error("AudioStreamController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Ie));break;case c.a.AUDIO_TRACK_LOAD_ERROR:case c.a.AUDIO_TRACK_LOAD_TIMEOUT:case c.a.KEY_LOAD_ERROR:case c.a.KEY_LOAD_TIMEOUT:this.state!==Ie&&(this.state=t.fatal?Ie:S,$.b.w
1arn("AudioStreamController: "+t.details+" while loading frag, now switching to "+this.state+" state ..."));break;case c.a.BUFFER_FULL_ERROR:"audio"!==t.parent||this.state!==v&&this.state!==Oe||(n=this.mediaBuffer,r=this.media.currentTime,n&&w.isBuffered(n,r)&&w.isBuffered(n,r+.5)?((n=this.config).maxMaxBufferLength>=n.maxBufferLength&&(n.maxMaxBufferLength/=2,$.b.warn("AudioStreamController: reduce max buffer length to "+n.maxMaxBufferLength+"s")),this.state=S):($.b.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=Re,this.hls.trigger(b.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})))}},i.prototype.onBufferFlushed=function(){var e=this,t=this.pendingData;t&&t.length?($.b.log("AudioStreamController: appending pending audio data after buffer flushed"),t.forEach(function(t){e.hls.trigger(b.a.BUFFER_APPENDING,t)}),this.appended=!0,this.pendingData=[],this.state=Oe):(this.state=S,this.fragPrevious=null,this.tick())},be(i,[{key:"state",set:function(t){var e;this.state!==t&&(e=this.state,this._state=t,$.b.log("audio stream:"+e+"->"+t))},get:function(){return this._state}}]),i}(e),Ne="undefined"!=typeof window&&window.VTTCue?window.VTTCue:($e={"":!0,lr:!0,rl:!0},Ee={start:!0,middle:!0,end:!0,left:!0,right:!0},Ue.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},Ue);function Fe(t){return"string"==typeof t&&!!Ee[t.toLowerCase()]&&t.toLowerCase()}function T(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)t[n]=r[n]}return t}function Ue(t,e,n){var r=this,i=function(){if("undefined"!=typeof navigator)return/MSIE\s8\.0/.test(navigator.userAgent)}(),o={},a=(i?r=document.createElement("custom"):o.enumerable=!0,r.hasBeenReset=!1,""),s=!1,u=t,l=e,c=n,p=null,d="",h=!0,f="auto",g="start",m=50,v="middle",y=50,b="middle";if(Object.defineProperty(r,"id",T({},o,{get:function(){return a}
vendor: 16,324 bytes, line 1
1,set:function(t){a=""+t}})),Object.defineProperty(r,"pauseOnExit",T({},o,{get:function(){return s},set:function(t){s=!!t}})),Object.defineProperty(r,"startTime",T({},o,{get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");u=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"endTime",T({},o,{get:function(){return l},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");l=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"text",T({},o,{get:function(){return c},set:function(t){c=""+t,this.hasBeenReset=!0}})),Object.defineProperty(r,"region",T({},o,{get:function(){return p},set:function(t){p=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"vertical",T({},o,{get:function(){return d},set:function(t){t="string"==typeof(t=t)&&!!$e[t.toLowerCase()]&&t.toLowerCase();if(!1===t)throw new SyntaxError("An invalid or illegal string was specified.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"snapToLines",T({},o,{get:function(){return h},set:function(t){h=!!t,this.hasBeenReset=!0}})),Object.defineProperty(r,"line",T({},o,{get:function(){return f},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");f=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"lineAlign",T({},o,{get:function(){return g},set:function(t){t=Fe(t);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"position",T({},o,{get:function(){return m},set:function(t){if(t<0||100<t)throw new Error("Position must be between 0 and 100.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",T({},o,{get:function(){return v},set:function(t){t=Fe(t);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",T({},o,{get:function(){return y},set:function(t){if(t<0||100<t)throw new Error("Size must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",T({},o,{get:function(){return b},set:function(t){t=Fe(t);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");b=t,this.hasBeenReset=!0}})),r.displayState=void 0,i)return r}function je(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}}function Be(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new je,this.regionList=[]}function Ve(){this.values=Object.create(null)}function qe(t,e,n,r){var i,o,a=r?t.split(r):[t];for(i in a)"string"==typeof a[i]&&2===(o=a[i].split(n)).length&&e(o[0],o[1])}Ve.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,n){return n?this.has(t)?this.values[t]:e[n]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,n){for(var r=0;r<n.length;++r)if(e===n[r]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(e=parseFloat(e))&&e<=100)&&(this.set(t,e),!0)}};var He=new Ne(0,0,0),We="middle"===He.align?"middle":"center";function Ge(n,t,o){var e,a,r=n;function i(){var t=(t=(t=n).match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/))?t[3]?e(t[1],t[2],t[3].replace(":",""),t[4]):59<t[1]?e(t[1],t[2],0,t[4]):e(0,t[1],t[2],t[4]):null;function e(t,e,n,r){return 3600*(0|t)+60*(0|e)+(0|n)+(0|r)/1e3}if(null===t)throw new Error("Malformed timestamp: "+r);return n=n.replace(/^[^\sa-zA-Z-]+/,""),t}function s(){n=n.replace(/^\s+/,"")}if(s(),t.startTime=i(),s(),"--\x3e"!==n.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);n=n.substr(3),s(),t.endTime=i(),s(),e=n,t=t,a=new Ve,qe(e,function(t,e){switch(t){case"region":for(var n=o.length-1;0<=n;n--)if(o[n].id===e){a.set(t,o[n].region);break}break;case"vertical":a.alt(t,e,["rl","lr"]);break;case"line":var r=e.split(","),i=r[0];a.integer(t,i),a.percent(t,i)&&a.set("snapToLines",!1),a.alt(t,i,["auto"]),2===r.length&&a.alt("lineAlign",r[1],["start",We,"end"]);break;case"position":r=e.split(","),a.percent(t,r[0]),2===r.length&&a.alt("positionAlign",r[1],["start",We,"end","line-left","line-right","auto"]);break;case"size":a.percent(t,e);break;case"align":a.alt(t,e,["start",We,"end","left","right"])}},/:/,/\s/),t.region=a.get("region",null),t.vertical=a.get("vertical",""),"auto"===(e=a.get("line","auto"))&&-1===He.line&&(e=-1),t.line=e,t.lineAlign=a.get("lineAlign","start"),t.snapToLines=a.get("snapToLines",!0),t.size=a.get("size",100),t.align=a.get("align",We),"auto"===(e=a.get("position","auto"))&&50===He.position&&(e="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=e}function ze(t){return t.replace(/<br(?: \/)?>/gi,"\n")}Be.prototype={parse:function(t){var r=this;function e(){for(var t=0,e=ze(e=r.buffer);t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var n=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,r.buffer=e.substr(t),n}t&&(r.buffer+=r.decoder.decode(t,{stream:!0}));try{var n=void 0;if("INITIAL"===r.state){if(!/\r\n|\n/.test(r.buffer))return this;var i=(n=e()).match(/^()?WEBVTT([ \t].*)?$/);if(!i||!i[0])throw new Error("Malformed WebVTT signature.");r.state="HEADER"}for(var o=!1;r.buffer;){if(!/\r\n|\n/.test(r.buffer))return this;switch(o?o=!1:n=e(),r.state){case"HEADER":/:/.test(n)?qe(n,function(t,e){t},/:/):n||(r.state="ID");continue;case"NOTE":n||(r.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){r.state="NOTE";break}if(!n)continue;if(r.cue=new Ne(0,0,""),r.state="CUE",-1===n.indexOf("--\x3e")){r.cue.id=n;continue}case"CUE":try{Ge(n,r.cue,r.regionList)}catch(t){r.cue=null,r.state="BADCUE";continue}r.state="CUETEXT";continue;case"CUETEXT":var a=-1!==n.indexOf("--\x3e");if(!n||a&&(o=!0)){r.oncue&&r.oncue(r.cue),r.cue=null,r.state="ID";continue}r.cue.text&&(r.cue.text+="\n"),r.cue.text+=n;continue;case"BADCUE":n||(r.state="ID");continue}}}catch(t){"CUETEXT"===r.state&&r.cue&&r.oncue&&r.oncue(r.cue),r.cue=null,r.state="INITIAL"===r.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 Error("Malformed WebVTT signature.")}catch(t){throw t}return this.onflush&&this.onflush(),this}};var Ke=Be;function Ye(t,e,n,r){for(var i=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=window.VTTCue||window.TextTrackCue,c=0;c<r.rows.length;c++)if(a=!0,s=0,u="",!(i=r.rows[c]).isEmpty()){for(var p=0;p<i.chars.length;p++)i.chars[p].uchar.match(/\s/)&&a?s++:(u+=i.chars[p].uchar,a=!1);(i.cueStartTime=e)===n&&(n+=1e-4),o=new l(e,n,ze(u.trim())),16<=s?s--:s++,navigator.userAgent.match(/Firefox\//)?o.line=c+1:o.line=7<c?c-2:c+1,o.align="left",o.position=Math.max(0,Math.min(100,s/32*100+(navigator.userAgent.match(/Firefox\//)?50:0))),t.addCue(o)}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Xe(t){var e=t;return Qe.hasOwnProperty(t)&&(e=Qe[t]),String.fromCharCode(e)}function _(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].toString(16));return e}var Qe={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Je={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ze={17:2,18:4,21:6,22:8,23:10,19:13,20:15},tn={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},en={25:2,26:4,29:6,30:8,31:10,27:13,28:15},nn=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],C={verboseFilter:{DATA:3,DEBUG:3,INFO:2,WARNING:2,TEXT:1,ERROR:0},time:null,verboseLevel:0,setTime:function(t){this.time=t},log:function(t,e){this.verboseFilter[t];this.verboseLevel}},rn=(k.prototype.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},k.prototype.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],n=0;n<e.length;n++){var r=e[n];t.hasOwnProperty(r)&&(this[r]=t[r])}},k.prototype.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},k.prototype.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},k.prototype.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},k.prototype.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},k);function k(t,e,n,r,i){y(this,k),this.foreground=t||"white",this.underline=e||!1,this.italics=n||!1,this.background=r||"black",this.flash=i||!1}A.prototype.reset=function(){this.uchar=" ",this.penState.reset()},A.prototype.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},A.prototype.setPenState=function(t){this.penState.copy(t)},A.prototype.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},A.prototype.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},A.prototype.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()};var on=A;function A(t,e,n,r,i,o){y(this,A),this.uchar=t||" ",this.penState=new rn(e,n,r,i,o)}D.prototype.equals=function(t){for(var e=!0,n=0;n<100;n++)if(!this.chars[n].equals(t.chars[n])){e=!1;break}return e},D.prototype.copy=function(t){for(var e=0;e<100;e++)this.chars[e].copy(t.chars[e])},D.prototype.isEmpty=function(){for(var t=!0,e=0;e<100;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},D.prototype.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(C.log("ERROR","Negative cursor position "+this.pos),this.pos=0):100<this.pos&&(C.log("ERROR","Too large cursor position "+this.pos),this.pos=100)},D.prototype.moveCursor=function(t){var e=this.pos+t;if(1<t)for(var n=this.pos+1;n<e+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(e)},D.prototype.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},D.prototype.insertChar=function(t){144<=t&&this.backSpace();var e=Xe(t);100<=this.pos?C.log("ERROR","Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},D.prototype.clearFromPos=function(t){for(var e=void 0,e=t;e<100;e++)this.chars[e].reset()},D.prototype.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},D.prototype.clearToEndOfRow=function(){this.clearFromPos(this.pos)},D.prototype.getTextString=function(){for(var t=[],e=!0,n=0;n<100;n++){var r=this.chars[n].uchar;" "!==r&&(e=!1),t.push(r)}return e?"":t.join("")},D.prototype.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)};var an=D;function D(){y(this,D),this.chars=[];for(var t=0;t<100;t++)this.chars.push(new on);this.pos=0,this.currPenState=new rn}O.prototype.reset=function(){for(var t=0;t<15;t++)this.rows[t].clear();this.currRow=14},O.prototype.equals=function(t){for(var e=!0,n=0;n<15;n++)if(!this.rows[n].equals(t.rows[n])){e=!1;break}return e},O.prototype.copy=function(t){for(var e=0;e<15;e++)this.rows[e].copy(t.rows[e])},O.prototype.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},O.prototype.backSpace=function(){this.rows[this.currRow].backSpace()},O.prototype.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},O.prototype.insertChar=function(t){this.rows[this.currRow].insertChar(t)},O.prototype.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},O.prototype.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},O.prototype.setCursor=function(t){C.log("INFO","setCursor: "+t),this.rows[this.currRow].setCursor(t)},O.prototype.setPAC=function(t){C.log("INFO","pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var n=0;n<15;n++)this.rows[n].clear();var r=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var o=i.rows[r].cueStartTime;if(o&&o<C.time)for(var a=0;a<this.nrRollUpRows;a++)this.rows[e-this.nrRollUpRows+a+1].copy(i.rows[r+a])}}this.currRow=e;var s,o=this.rows[this.currRow],o=(null!==t.indent&&(s=t.indent,s=Math.max(s-1,0),o.setCursor(t.indent),t.color=o.chars[s].penState.foreground),{foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1});this.setPen(o)},O.prototype.setBkgData=function(t){C.log("INFO","bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},O.prototype.setRollUpRows=function(t){this.nrRollUpRows=t},O.prototype.rollUp=function(){var t;null===this.nrRollUpRows?C.log("DEBUG","roll_up but nrRollUpRows not set yet"):(C.log("TEXT",this.getDisplayText()),t=this.currRow+1-this.nrRollUpRows,(t=this.rows.splice(t,1)[0]).clear(),this.rows.splice(this.currRow,0,t),C.log("INFO","Rolling up"))},O.prototype.getDisplayText=function(t){t=t||!1;for(var e=[],n="",r=0;r<15;r++){var i=this.rows[r].getTextString();i&&e.push(t?"Row "+(r+1)+": '"+i+"'":i.trim())}return n=0<e.length?t?"["+e.join(" | ")+"]":e.join("\n"):n},O.prototype.getTextAndFormat=function(){return this.rows};var sn=O;function O(){y(this,O),this.rows=[];for(var t=0;t<15;t++)this.rows.push(new an);this.currRow=14,this.nrRollUpRows=null,this.reset()}R.prototype.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.lastCueEndTime=null},R.prototype.getHandler=function(){return this.outputFilter},R.prototype.setHandler=function(t){this.outputFilter=t},R.prototype.setPAC=function(t){this.writeScreen.setPAC(t)},R.prototype.setBkgData=function(t){this.writeScreen.setBkgData(t)},R.prototype.setMode=function(t){t!==this.mode&&(this.mode=t,C.log("INFO","MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},R.prototype.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);var n=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";C.log("INFO",n+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(C.log("TEXT","DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},R.prototype.ccRCL=function(){C.log("INFO","RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},R.prototype.ccBS=function(){C.log("INFO","BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory)&&this.outputDataUpdate()},R.prototype.ccAOF=function(){},R.prototype.ccAON=function(){},R.prototype.ccDER=function(){C.log("INFO","DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},R.prototype.ccRU=function(t){C.log("INFO","RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},R.prototype.ccFON=function(){C.log("INFO","FON - Flash On"),this.writeScreen.setPen({flash:!0})},R.prototype.ccRDC=function(){C.log("INFO","RDC - Resume Direct 
1Captioning"),this.setMode("MODE_PAINT-ON")},R.prototype.ccTR=function(){C.log("INFO","TR"),this.setMode("MODE_TEXT")},R.prototype.ccRTD=function(){C.log("INFO","RTD"),this.setMode("MODE_TEXT")},R.prototype.ccEDM=function(){C.log("INFO","EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},R.prototype.ccCR=function(){C.log("CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},R.prototype.ccENM=function(){C.log("INFO","ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},R.prototype.ccEOC=function(){var t;C.log("INFO","EOC - End Of Caption"),"MODE_POP-ON"===this.mode&&(t=this.displayedMemory,this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,C.log("TEXT","DISP: "+this.displayedMemory.getDisplayText())),this.outputDataUpdate(!0)},R.prototype.ccTO=function(t){C.log("INFO","TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},R.prototype.ccMIDROW=function(t){var e={flash:!1};e.underline=t%2==1,e.italics=46<=t,e.italics?e.foreground="white":(t=Math.floor(t/2)-16,e.foreground=["white","green","blue","cyan","red","yellow","magenta"][t]),C.log("INFO","MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},R.prototype.outputDataUpdate=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=C.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue&&(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),!0===t)&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},R.prototype.cueSplitAtTime=function(t){!this.outputFilter||this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t)};var un=R;function R(t,e){y(this,R),this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new sn,this.nonDisplayedMemory=new sn,this.lastOutputScreen=new sn,this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}function L(t,e,n){y(this,L),this.field=t||1,this.outputs=[e,n],this.channels=[new un(1,e),new un(2,n)],this.currChNr=-1,this.lastCmdA=null,this.lastCmdB=null,this.bufferedData=[],this.startTime=null,this.lastTime=null,this.dataCounters={padding:0,char:0,cmd:0,other:0}}L.prototype.getHandler=function(t){return this.channels[t].getHandler()},L.prototype.setHandler=function(t,e){this.channels[t].setHandler(e)},L.prototype.addData=function(t,e){var n=void 0,r=!1;this.lastTime=t,C.setTime(t);for(var i=0;i<e.length;i+=2){var o=127&e[i],a=127&e[i+1];0==o&&0==a?this.dataCounters.padding+=2:(C.log("DATA","["+_([e[i],e[i+1]])+"] -> ("+_([o,a])+")"),(n=(n=(n=(n=this.parseCmd(o,a))||this.parseMidrow(o,a))||this.parsePAC(o,a))||this.parseBackgroundAttributes(o,a))||(r=this.parseChars(o,a))&&(this.currChNr&&0<=this.currChNr?this.channels[this.currChNr-1].insertChars(r):C.log("WARNING","No channel found yet. TEXT-MODE?")),n?this.dataCounters.cmd+=2:r?this.dataCounters.char+=2:(this.dataCounters.other+=2,C.log("WARNING","Couldn't parse cleaned data "+_([o,a])+" orig: "+_([e[i],e[i+1]]))))}},L.prototype.parseCmd=function(t,e){var n,r=null;return((20===t||28===t)&&32<=e&&e<=47||(23===t||31===t)&&33<=e&&e<=35)&&(t===this.lastCmdA&&e===this.lastCmdB?(this.lastCmdA=null,this.lastCmdB=null,C.log("DEBUG","Repeated command ("+_([t,e])+") is dropped")):(n=this.channels[(r=20===t||23===t?1:2)-1],20===t||28===t?32===e?n.ccRCL():33===e?n.ccBS():34===e?n.ccAOF():35===e?n.ccAON():36===e?n.ccDER():37===e?n.ccRU(2):38===e?n.ccRU(3):39===e?n.ccRU(4):40===e?n.ccFON():41===e?n.ccRDC():42===e?n.ccTR():43===e?n.ccRTD():44===e?n.ccEDM():45===e?n.ccCR():46===e?n.ccENM():47===e&&n.ccEOC():n.ccTO(e-32),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=r),!0)},L.prototype.parseMidrow=function(t,e){var n=null;return(17===t||25===t)&&32<=e&&e<=47&&((n=17===t?1:2)!==this.currChNr?(C.log("ERROR","Mismatch channel in midrow parsing"),!1):(this.channels[n-1].ccMIDROW(e),C.log("DEBUG","MIDROW ("+_([t,e])+")"),!0))},L.prototype.parsePAC=function(t,e){var n,r=null;return((17<=t&&t<=23||25<=t&&t<=31)&&64<=e&&e<=127||(16===t||24===t)&&64<=e&&e<=95)&&(t===this.lastCmdA&&e===this.lastCmdB?(this.lastCmdA=null,!(this.lastCmdB=null)):(r=t<=23?1:2,n=this.interpretPAC((64<=e&&e<=95?1==r?Je:tn:1==r?Ze:en)[t],e),this.channels[r-1].setPAC(n),this.lastCmdA=t,this.lastCmdB=e,this.currChNr=r,!0))},L.prototype.interpretPAC=function(t,e){var n=e,t={color:null,italics:!1,indent:null,underline:!1,row:t},n=95<e?e-96:e-64;return t.underline=1==(1&n),n<=13?t.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(t.italics=!0,t.color="white"):t.indent=4*Math.floor((n-16)/2),t},L.prototype.parseChars=function(t,e){var n,r=null,i=null,o=null;return 17<=(o=25<=t?(r=2,t-8):(r=1,t))&&o<=19?(n=e,C.log("INFO","Special char '"+Xe(n=17===o?e+80:18===o?e+112:e+144)+"' in channel "+r),i=[n]):32<=t&&t<=127&&(i=0===e?[t]:[t,e]),i&&(o=_(i),C.log("DEBUG","Char codes =  "+o.join(",")),this.lastCmdA=null,this.lastCmdB=null),i}
1,L.prototype.parseBackgroundAttributes=function(t,e){var n,r=void 0;return((16===t||24===t)&&32<=e&&e<=47||(23===t||31===t)&&45<=e&&e<=47)&&(r={},16===t||24===t?(n=Math.floor((e-32)/2),r.background=nn[n],e%2==1&&(r.background=r.background+"_semi")):45===e?r.background="transparent":(r.foreground="black",47===e&&(r.underline=!0)),this.channels[(t<24?1:2)-1].setBkgData(r),this.lastCmdA=null,!(this.lastCmdB=null))},L.prototype.reset=function(){for(var t=0;t<this.channels.length;t++)this.channels[t]&&this.channels[t].reset();this.lastCmdA=null,this.lastCmdB=null},L.prototype.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++)this.channels[e]&&this.channels[e].cueSplitAtTime(t)};var ln=L;function cn(t,e){if(!(this instanceof cn))throw new TypeError("Cannot call a class as a function");this.timelineController=t,this.trackName=e,this.startTime=null,this.endTime=null,this.screen=null}cn.prototype.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen),this.startTime=null)},cn.prototype.newCue=function(t,e,n){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)};function pn(t,e,n){return t.substr(n||0,e.length)===e}function dn(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return(e>>>0).toString()}var hn=cn,fn={parse:function(t,o,a,s,e,n){var t=Object(Qt.b)(new Uint8Array(t)).trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),u="00:00.000",l=0,c=0,p=0,d=[],h=void 0,f=!0,g=new Ke;g.oncue=function(t){var e=a[s],n=a.ccOffset;if(e&&e.new)if(void 0!==c)n=a.ccOffset=e.start;else{var r=a,e=p,i=r[s],o=r[i.prevCC];if(!o||!o.new&&i.new)r.ccOffset=r.presentationOffset=i.start,i.new=!1;else{for(;o&&o.new;)r.ccOffset+=i.start-o.start,i.new=!1,o=r[(i=o).prevCC];r.presentationOffset=e}}p&&(n=p+a.ccOffset-a.presentationOffset),t.startTime+=n-c,t.endTime+=n-c,t.id=dn(t.startTime.toString())+dn(t.endTime.toString())+dn(t.text),t.text=decodeURIComponent(encodeURIComponent(t.text)),0<t.endTime&&d.push(t)},g.onparsingerror=function(t){h=t},g.onflush=function(){h&&n?n(h):e(d)},t.forEach(function(e){if(f){if(pn(e,"X-TIMESTAMP-MAP=")){f=!1,e.substr(16).split(",").forEach(function(t){pn(t,"LOCAL:")?u=t.substr(6):pn(t,"MPEGTS:")&&(l=parseInt(t.substr(7)))});try{l-=o=o<0?o+8589934592:o,t=u,n=parseInt(t.substr(-3)),r=parseInt(t.substr(-6,2)),i=parseInt(t.substr(-9,2)),t=9<t.length?parseInt(t.substr(0,t.indexOf(":"))):0,c=(isNaN(n)||isNaN(r)||isNaN(i)||isNaN(t)?-1:(n+=1e3*r)+6e4*i+36e5*t)/1e3,p=l/9e4,-1===c&&(h=new Error("Malformed X-TIMESTAMP-MAP: "+e))}catch(t){h=new Error("Malformed X-TIMESTAMP-MAP: "+e)}return}""===e&&(f=!1)}var t,n,r,i;g.parse(e+"\n")}),g.flush()}};var gn=function(r){var t=i,e=r;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function i(t){var e,n;if(this instanceof i)return(e=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,r.call(this,t,b.a.MEDIA_ATTACHING,b.a.MEDIA_DETACHING,b.a.FRAG_PARSING_USERDATA,b.a.FRAG_DECRYPTED,b.a.MANIFEST_LOADING,b.a.MANIFEST_LOADED,b.a.FRAG_LOADED,b.a.LEVEL_SWITCHING,b.a.INIT_PTS_FOUND))).hls=t,e.config=t.config,e.enabled=!0,e.Cues=t.config.cueHandler,e.textTracks=[],e.tracks=[],e.unparsedVttFrags=[],e.initPTS=void 0,e.cueRanges=[],e.captionsTracks={},e.captionsProperties={textTrack1:{label:e.config.captionsTextTrack1Label,languageCode:e.config.captionsTextTrack1LanguageCode},textTrack2:{label:e.config.captionsTextTrack2Label,languageCode:e.config.captionsTextTrack2LanguageCode}},e.config.enableCEA708Captions&&(t=new hn(e,"textTrack1"),n=new hn(e,"textTrack2"),e.cea608Parser=new ln(0,t,n)),e;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),i.prototype.addCues=function(t,e,n,r){for(var i,o,a=this.cueRanges,s=!1,u=a.length;u--;){var l=a[u],c=(i=l[0],c=l[1],o=e,Math.min(c,n)-Math.max(i,o));if(0<=c&&(l[0]=Math.min(l[0],e),l[1]=Math.max(l[1],n),s=!0,.5<c/(n-e)))return}s||a.push([e,n]),this.Cues.newCue(this.captionsTracks[t],e,n,r)},i.prototype.onInitPtsFound=function(t){var e=this;void 0===this.initPTS&&(this.initPTS=t.initPTS),this.unparsedVttFrags.length&&(this.unparsedVttFrags.forEac
1h(function(t){e.onFragLoaded(t)}),this.unparsedVttFrags=[])},i.prototype.getExistingTrack=function(t){var e=this.media;if(e)for(var n=0;n<e.textTracks.length;n++){var r=e.textTracks[n];if(r[t])return r}return null},i.prototype.createCaptionsTrack=function(t){var e,n=this.captionsProperties[t],r=n.label,n=n.languageCode,i=this.captionsTracks;i[t]||((e=this.getExistingTrack(t))?(i[t]=e,Zt(i[t]),Jt(i[t],this.media)):(e=this.createTextTrack("captions",r,n))&&(e[t]=!0,i[t]=e))},i.prototype.createTextTrack=function(t,e,n){var r=this.media;if(r)return r.addTextTrack(t,e,n)},i.prototype.destroy=function(){o.prototype.destroy.call(this)},i.prototype.onMediaAttaching=function(t){this.media=t.media,this._cleanTracks()},i.prototype.onMediaDetaching=function(){var e=this.captionsTracks;Object.keys(e).forEach(function(t){Zt(e[t]),delete e[t]})},i.prototype.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0},this._cleanTracks()},i.prototype._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var n=0;n<e.length;n++)Zt(e[n])}},i.prototype.onManifestLoaded=function(t){var o,a=this;this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=void 0,this.cueRanges=[],this.config.enableWebVTT&&(this.tracks=t.subtitles||[],o=this.media?this.media.textTracks:[],this.tracks.forEach(function(t,e){var n,r,i=void 0;e<o.length&&(e=o[e],r=t,!(n=e)||n.label!==r.name||n.textTrack1||n.textTrack2||(i=e)),i=i||a.createTextTrack("subtitles",t.name,t.lang),t.default?i.mode=a.hls.subtitleDisplay?"showing":"hidden":i.mode="disabled",a.textTracks.push(i)}))},i.prototype.onLevelSwitching=function(){this.enabled="NONE"!==this.hls.currentLevel.closedCaptions},i.prototype.onFragLoaded=function(t){var e,n,r=t.frag,i=t.payload;"main"===r.type?((e=r.sn)!==this.lastSn+1&&(n=this.cea608Parser)&&n.reset(),this.lastSn=e):"subtitle"===r.type&&(i.byteLength?void 0===this.initPTS?this.unparsedVttFrags.push(t):null!=(n=r.decryptdata)&&null!=n.key&&"AES-128"===n.method||this._parseVTTs(r,i):this.hls.trigger(b.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r}))},i.prototype._parseVTTs=function(e,t){var n=this.vttCCs,i=(n[e.cc]||(n[e.cc]={start:e.start,prevCC:this.prevCC,new:!0},this.prevCC=e.cc),this.textTracks),o=this.hls;fn.parse(t,this.initPTS,n,e.cc,function(t){var r=i[e.trackId];"disabled"===r.mode?o.trigger(b.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e}):(t.forEach(function(e){if(!r.cues.getCueById(e.id))try{r.addCue(e)}catch(t){var n=new window.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,r.addCue(n)}}),o.trigger(b.a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e}))},function(t){$.b.log("Failed to parse VTT cue: "+t),o.trigger(b.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})})},i.prototype.onFragDecrypted=function(t){var e=t.payload,n=t.frag;"subtitle"===n.type&&(void 0===this.initPTS?this.unparsedVttFrags.push(t):this._parseVTTs(n,e))},i.prototype.onFragParsingUserdata=function(t){if(this.enabled&&this.config.enableCEA708Captions)for(var e=0;e<t.samples.length;e++){var n=this.extractCea608Data(t.samples[e].bytes);this.cea608Parser.addData(t.samples[e].pts,n)}},i.prototype.extractCea608Data=function(t){for(var e,n,r,i=31&t[0],o=2,a=[],s=0;s<i;s++)e=t[o++],n=127&t[o++],r=127&t[o++],0==n&&0==r||0!=(4&e)&&0==(3&e)&&(a.push(n),a.push(r));return a},i}(o),mn=function(t,e,n){return e&&vn(t.prototype,e),n&&vn(t,n),t};function vn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yn(t){for(var e=[],n=0;n<t.length;n++)"subtitles"===t[n].kind&&e.push(t[n]);return e}var bn=function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);function r(t){if(this instanceof r)return(t=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,e.call(this,t,b.a.MEDIA_ATTACHED,b.a.MEDIA_DETACHING,b.a.MANIFEST_LOADING,b.a.MANIFEST_LOADED,b.a.SUBTITLE_TRACK_LOADED))).tracks=[],t.trackId=-1,t.media=null,t.subt
1itleDisplay=!0,t;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(t,n):t.__proto__=n),r.prototype._onTextTracksChanged=function(){if(this.media){for(var t=-1,e=yn(this.media.textTracks),n=0;n<e.length;n++)if("hidden"===e[n].mode)t=n;else if("showing"===e[n].mode){t=n;break}this.subtitleTrack=t}},r.prototype.destroy=function(){o.prototype.destroy.call(this)},r.prototype.onMediaAttached=function(t){var e=this;this.media=t.media,this.media&&(this.queuedDefaultTrack&&(this.subtitleTrack=this.queuedDefaultTrack,delete this.queuedDefaultTrack),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval(function(){e.trackChangeListener()},500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},r.prototype.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),this.media=null)},r.prototype.onManifestLoading=function(){this.tracks=[],this.trackId=-1},r.prototype.onManifestLoaded=function(t){var e=this,t=t.subtitles||[];this.tracks=t,this.trackId=-1,this.hls.trigger(b.a.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:t}),t.forEach(function(t){t.default&&(e.media?e.subtitleTrack=t.id:e.queuedDefaultTrack=t.id)})},r.prototype.onTick=function(){var t,e=this.trackId,n=this.tracks[e];!n||(t=n.details)&&!t.live||($.b.log("(re)loading playlist for subtitle track "+e),this.hls.trigger(b.a.SUBTITLE_TRACK_LOADING,{url:n.url,id:e}))},r.prototype.onSubtitleTrackLoaded=function(t){var e=this;t.id<this.tracks.length&&($.b.log("subtitle track "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.timer&&(this.timer=setInterval(function(){e.onTick()},1e3*t.details.targetduration,this)),!t.details.live)&&this.timer&&this._stopTimer()},r.prototype.setSubtitleTrackInternal=function(t){var e,n=this.hls,r=this.tracks;"number"!=typeof t||t<-1||t>=r.length||(this._stopTimer(),this.trackId=t,$.b.log("switching to subtitle track "+t),n.trigger(b.a.SUBTITLE_TRACK_SWITCH,{id:t}),-1===t)||(e=(r=r[t]).details)&&!e.live||($.b.log("(re)loading playlist for subtitle track "+t),n.trigger(b.a.SUBTITLE_TRACK_LOADING,{url:r.url,id:t}))},r.prototype._stopTimer=function(){this.timer&&(clearInterval(this.timer),this.timer=null)},r.prototype._toggleTrackModes=function(t){var e=this.media,n=this.subtitleDisplay,r=this.trackId;e&&(e=yn(e.textTracks),-1===t?[].slice.call(e).forEach(function(t){t.mode="disabled"}):(r=e[r])&&(r.mode="disabled"),r=e[t])&&(r.mode=n?"showing":"hidden")},mn(r,[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.trackId!==t&&(this._toggleTrackModes(t),this.setSubtitleTrackInternal(t))}}]),r}(o),wn=t(7);var $n=window.performance,En="STOPPED",xn="IDLE",Sn="KEY_LOADING",Tn="FRAG_LOADING",e=function(n){var t=r,e=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(t){var e;if(this instanceof r)return(e=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,n.call(this,t,b.a.MEDIA_ATTACHED,b.a.ERROR,b.a.KEY_LOADED,b.a.FRAG_LOADED,b.a.SUBTITLE_TRACKS_UPDATED,b.a.SUBTITLE_TRACK_SWITCH,b.a.SUBTITLE_TRACK_LOADED,b.a.SUBTITLE_FRAG_PROCESSED))).config=t.config,e.vttFragSNsProcessed={},e.vttFragQueues=void 0,e.currentlyProcessing=null,e.state=En,e.currentTrackId=-1,e.decrypter=new wn.a(t.observer,t.config),e;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r.prototype.onHandlerDestroyed=function(){this.state=En},r.prototype.clearVttFragQueues=function(){var e=this;this.vttFragQueues={},this.tracks.forEach(function(t){e.vttFragQueues[t.id]=[]})},r.prototype.nextFrag=function(){var t;null===this.currentlyProcessing&&-1<this.currentTrackId&&this.vttFragQueues[this.currentTrackId].length&&(t=this.currentlyProcessing=this.vttFragQueues[this.currentTrackId].shift(),this.fragCurrent=t,this.hls.trigger(b.a.FRAG_LOADING,{frag:t}),this.state=Tn)},r.prototype.onSubtitleFragProcessed=function(t){t.success&&this.vttFragSNsProcessed[t.frag.trackId].push(t.frag.sn),this.currentlyProcessing=null,this.state=xn,this.nextFrag()},r.prototype.onMediaAttached=function(){this.state=xn},r.prototype.onError=function(t){t=t.frag;t&&"subtitle"!==t.type||this.currentlyProcessing&&(this.currentlyProcessing=null,this.nextFrag())},r.prototype.doTick=function(){var t,n,r,i,o,e,a=this;this.state===xn&&(t=this.tracks,n=this.currentTrackId,r=this.vttFragSNsProcessed[n],i=this.vttFragQueues[n],o=this.currentlyProcessing?this.currentlyProcessing.sn:-1,t)&&void 0!==(e=n<t.length?t[n].details:e)&&e.fragments.forEac
1h(function(t){var e;-1<r.indexOf(t.sn)||t.sn===o||(e=t,i.some(function(t){return t.sn===e.sn}))||(t.encrypted?($.b.log("Loading key for "+t.sn),a.state=Sn,a.hls.trigger(b.a.KEY_LOADING,{frag:t})):(t.trackId=n,i.push(t),a.nextFrag()))})},r.prototype.onSubtitleTracksUpdated=function(t){var e=this;$.b.log("subtitle tracks updated"),this.tracks=t.subtitleTracks,this.clearVttFragQueues(),this.vttFragSNsProcessed={},this.tracks.forEach(function(t){e.vttFragSNsProcessed[t.id]=[]})},r.prototype.onSubtitleTrackSwitch=function(t){this.currentTrackId=t.id,this.tracks&&-1!==this.currentTrackId&&(t=this.tracks[this.currentTrackId])&&t.details&&this.tick()},r.prototype.onSubtitleTrackLoaded=function(){this.tick()},r.prototype.onKeyLoaded=function(){this.state===Sn&&(this.state=xn,this.tick())},r.prototype.onFragLoaded=function(t){var e=this.fragCurrent,n=t.frag.decryptdata,r=t.frag,i=this.hls;if(this.state===Tn&&e&&"subtitle"===t.frag.type&&e.sn===t.frag.sn&&0<t.payload.byteLength&&null!=n&&null!=n.key&&"AES-128"===n.method){var o=void 0;try{o=$n.now()}catch(t){o=Date.now()}this.decrypter.decrypt(t.payload,n.key.buffer,n.iv.buffer,function(t){var e=void 0;try{e=$n.now()}catch(t){e=Date.now()}i.trigger(b.a.FRAG_DECRYPTED,{frag:r,payload:t,stats:{tstart:o,tdecrypt:e}})})}},r}(e),_n=function(t,e,n){return e&&Cn(t.prototype,e),n&&Cn(t,n),t};function Cn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var kn=window.XMLHttpRequest,An="com.widevine.alpha",Dn="com.microsoft.playready",On=function(n){var t=r,e=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);function r(t){var e;if(this instanceof r)return(e=function(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,n.call(this,t,b.a.MEDIA_ATTACHED,b.a.MANIFEST_PARSED)))._widevineLicenseUrl=t.config.widevineLicenseUrl,e._licenseXhrSetup=t.config.licenseXhrSetup,e._emeEnabled=t.config.emeEnabled,e._requestMediaKeySystemAccess=t.config.requestMediaKeySystemAccessFunc,e._mediaKeysList=[],e._media=null,e._hasSetMediaKeys=!1,e._isMediaEncrypted=!1,e._requestLicenseFailureCount=0,e;throw new TypeError("Cannot call a class as a function")}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e),r.prototype.getLicenseServerUrl=function(t){var e=void 0;return(e=t===An?this._widevineLicenseUrl:null)||($.b.error('No license server URL configured for key-system "'+t+'"'),this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})),e},r.prototype._attemptKeySystemAccess=function(e,t,n){var r=this,n=function(t,e){if(t!==An)throw Error("Unknown key-system: "+t);return n={videoCapabilities:[]},e.forEach(function(t){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"'})}),[n];var n}(e,n);n?($.b.log("Requesting encrypted media key-system access"),this.requestMediaKeySystemAccess(e,n).then(function(t){r._onMediaKeySystemAccessObtained(e,t)}).catch(function(t){$.b.error('Failed to obtain key-system "'+e+'" access:',t)})):$.b.warn("Can not create config for key-system (maybe because platform is not supported):",e)},r.prototype._onMediaKeySystemAccessObtained=function(e,t){var n=this,r=($.b.log('Acce
1ss for key-system "'+e+'" obtained'),{mediaKeys:null,mediaKeysSession:null,mediaKeysSessionInitialized:!1,mediaKeySystemAccess:t,mediaKeySystemDomain:e});this._mediaKeysList.push(r),t.createMediaKeys().then(function(t){r.mediaKeys=t,$.b.log('Media-keys created for key-system "'+e+'"'),n._onMediaKeysCreated()}).catch(function(t){$.b.error("Failed to create media-keys:",t)})},r.prototype._onMediaKeysCreated=function(){var e=this;this._mediaKeysList.forEach(function(t){t.mediaKeysSession||(t.mediaKeysSession=t.mediaKeys.createSession(),e._onNewMediaKeySession(t.mediaKeysSession))})},r.prototype._onNewMediaKeySession=function(e){var n=this;$.b.log("New key-system session "+e.sessionId),e.addEventListener("message",function(t){n._onKeySessionMessage(e,t.message)},!1)},r.prototype._onKeySessionMessage=function(e,t){$.b.log("Got EME message event, creating license request"),this._requestLicense(t,function(t){$.b.log("Received license data, updating key-session"),e.update(t)})},r.prototype._onMediaEncrypted=function(t,e){$.b.log('Media is encrypted using "'+t+'" init data type'),this._isMediaEncrypted=!0,this._mediaEncryptionInitDataType=t,this._mediaEncryptionInitData=e,this._attemptSetMediaKeys(),this._generateRequestWithPreferredKeySession()},r.prototype._attemptSetMediaKeys=function(){var t;this._hasSetMediaKeys||((t=this._mediaKeysList[0])&&t.mediaKeys?($.b.log("Setting keys for encrypted media"),this._media.setMediaKeys(t.mediaKeys),this._hasSetMediaKeys=!0):($.b.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_NO_KEYS,fatal:!0})))},r.prototype._generateRequestWithPreferredKeySession=function(){var t,e,n,r=this,i=this._mediaKeysList[0];i?i.mediaKeysSessionInitialized?$.b.warn("Key-Session already initialized but requested again"):((t=i.mediaKeysSession)||($.b.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_NO_SESSION,fatal:!0})),e=this._mediaEncryptionInitDataType,n=this._mediaEncryptionInitData,$.b.log('Generating key-session request for "'+e+'" init data type'),i.mediaKeysSessionInitialized=!0,t.generateRequest(e,n).then(function(){$.b.debug("Key-session generation succeeded")}).catch(function(t){$.b.error("Error generating key-session request:",t),r.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_NO_SESSION,fatal:!1})})):($.b.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_NO_ACCESS,fatal:!0}))},r.prototype._createLicenseXhr=function(e,t,n){var r=new kn,i=this._licenseXhrSetup;try{if(i)try{i(r,e)}catch(t){r.open("POST",e,!0),i(r,e)}r.readyState||r.open("POST",e,!0)}catch(t){return $.b.error("Error setting up key-system license XHR",t),void this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}return r.responseType="arraybuffer",r.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,r,e,t,n),r},r.prototype._onLicenseRequestReadyStageChange=function(t,e,n,r){if(4===t.readyState)if(200===t.status)this._requestLicenseFailureCount=0,$.b.log("License request succeeded"),r(t.response);else{if($.b.error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount<=3)return e=3-this._requestLicenseFailureCount+1,$.b.warn("Retrying license request, "+e+" attempts left"),void this._requestLicense(n,r);this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},r.prototype._generateLicenseRequestChallenge=function(t,e){var n=void 0;return t.mediaKeySystemDomain===Dn?$.b.error("PlayReady is not supported (yet)"):t.mediaKeySystemDomain===An?n=e:$.b.error("Unsupported key-system:",t.mediaKeySystemDomain),n},r.prototype._requestLicense=function(t,e){$.b.log("Requesting content license for key-system");var n,r=this._mediaKeysList[0];r?(n=this.getLicenseServerUrl(r.mediaKeySystemDomain),e=this._createLicenseXhr(n,t,e),$.b.log("Sending license request to URL: "+n),e.send(this._generateLicenseRequestChallenge(r,t))):($.b.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(b.a.ERROR,{type:c.b.KEY_SYSTEM_ERROR,details:c.a.KEY_SYSTEM_NO_ACCESS,fatal:!0}))},r.prototype.onMediaAttached=function(t){var e=this;this._emeEnabled&&(t=t.media,(this._media=t).addEventListener("encrypted",function(t){e._onMediaEncrypted(t.initDataType,t.initData)}))},r.prototype.onManifestParsed=function(t){var e;this._emeEnabled&&(e=t.levels.map(function(t){return t.audioCodec}),t=t.levels.map(function(t){return t.videoCodec}),this._attemptKeySystemAccess(An,e,t))},_n(r,[{key:"requestMediaKeySystemAccess",get:function(){if(this._requestMediaKeySystemAccess)return this._requestMediaKeySystemAccess;throw new Error("No requestMediaKeySystemAccess function configured")}}]),r}(o),I={autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,maxMaxBufferLength:600,enableWorker:!0,enableSoftw
vendor: 6,250 bytes, line 1
1areAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:g,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:ae,bufferController:ue,capLevelController:pe,fpsController:he,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,requestMediaKeySystemAccessFunc:"undefined"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null},g=(I.subtitleStreamController=e,I.subtitleTrackController=bn,I.timelineController=gn,I.cueHandler=F,I.enableCEA708Captions=!0,I.enableWebVTT=!0,I.captionsTextTrack1Label="English",I.captionsTextTrack1LanguageCode="en",I.captionsTextTrack2Label="Spanish",I.captionsTextTrack2LanguageCode="es",I.audioStreamController=Pe,I.audioTrackController=ye,I.emeController=On,function(t,e,n){return e&&Rn(t.prototype,e),n&&Rn(t,n),t});function Rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t(13);M.isSupported=function(){return t=bt(),e=window.SourceBuffer||window.WebKitSourceBuffer,t=t&&"function"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),e=!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove,!!t&&!!e;var t,e},g(M,null,[{key:"version",get:function(){return"0.10.0"}},{key:"Events",get:function(){return b.a}},{key:"ErrorTypes",get:function(){return c.b}},{key:"ErrorDetails",get:function(){return c.a}},{key:"DefaultConfig",get:function(){return M.defaultConfig||I},set:function(t){M.defaultConfig=t}}]),M.prototype.destroy=function(){$.b.log("destroy"),this.trigger(b.a.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach(function(t){t.destroy()}),this.url=null,this.observer.removeAllListeners(),this._autoLevelCapping=-1},M.prototype.attachMedia=function(t){$.b.log("attachMedia"),this.media=t,this.trigger(b.a.MEDIA_ATTACHING,{media:t})},M.prototype.detachMedia=function(){$.b.log("detachMedia"),this.trigger(b.a.MEDIA_DETACHING),this.media=null},M.prototype.loadSource=function(t){t=U.a.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),$.b.log("loadSource:"+t),this.url=t,this.trigger(b.a.MANIFEST_LOADING,{url:t})},M.prototype.startLoad=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:-1;$.b.log("startLoad("+e+")"),this.networkControllers.forEach(function(t){t.startLoad(e)})},M.prototype.stopLoad=function(){$.b.log("stopLoad"),this.networkControllers.forEach(function(t){t.stopLoad()})},M.prototype.swapAudioCodec=function(){$.b.log("swapAudioCodec"),this.streamController.swapAudioCodec()},M.prototype.recoverMediaError=function(){$.b.log("recoverMediaError");var t=this.media;this.detachMedia(),this.attachMedia(t)},g(M,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){$.b.log("set currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){$.b.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){$.b.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){$.b.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){$.b.log("set startLevel:"+t);-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){$.b.log("set autoLevelCapping:"+t),this._autoLevelCapping=t}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var t=this.levels,e=this.config.minAutoBitrate,n=t?t.length:0,r=0;r<n;r++)if(e<(t[r].realBitrate?Math.max(t[r].realBitrate,t[r].bitrate):t[r].bitrate))return r;return 0}},{key:"maxAutoLevel",get:function(){var t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}
1,set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]);ae=M;function M(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,r=M;if(!(n instanceof r))throw new TypeError("Cannot call a class as a function");var i,o=M.DefaultConfig;if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");for(i in o)i in t||(t[i]=o[i]);if(void 0!==t.liveMaxLatencyDurationCount&&t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(t.liveMaxLatencyDuration<=t.liveSyncDuration||void 0===t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object($.a)(t.debug),this.config=t,this._autoLevelCapping=-1;var a=this.observer=new mt.a,n=(a.trigger=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];a.emit.apply(a,[t,t].concat(n))},a.off=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];a.removeListener.apply(a,[t].concat(n))},this.on=a.on.bind(a),this.off=a.off.bind(a),this.once=a.once.bind(a),this.trigger=a.trigger.bind(a),this.abrController=new t.abrController(this)),r=new t.bufferController(this),s=new t.capLevelController(this),u=new t.fpsController(this),l=new st(this),c=new ut(this),p=new lt(this),d=new te(this),h=this.levelController=new Xt(this),f=new ft(this),h=[h,this.streamController=new Wt(this,f)],g=t.audioStreamController,m=(g&&h.push(new g(this,f)),this.networkControllers=h,[l,c,p,n,r,s,u,d,f]);(g=t.audioTrackController)&&(h=new g(this),this.audioTrackController=h,m.push(h)),(g=t.subtitleTrackController)&&(l=new g(this),this.subtitleTrackController=l,m.push(l)),(g=t.emeController)&&(c=new g(this),this.emeController=c,m.push(c)),[t.subtitleStreamController,t.timelineController].forEach(function(t){t&&m.push(new t(e))}),this.coreComponents=m}N.default=ae},function(t,e,d){function o(n){var r={};function i(t){var e;return(r[t]||(e=r[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,i),e.l=!0,e)).exports}i.m=n,i.c=r,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i.oe=function(t){throw console.error(t),t};var t=i(i.s=ENTRY_MODULE);return t.default||t}var h="[\\.|\\-|\\+|\\w|/|@]+",f="\\((/\\*.*?\\*/)?s?.*?("+h+").*?\\)";function g(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(t,e){for(var n={main:[e]},r={main:[]},i={main:{}};function(n){return Object.keys(n).reduce(function(t,e){return t||0<n[e].length},!1)}(n);)for(var o=Object.keys(n),a=0;a<o.length;a++){var s=o[a],u=n[s].pop();if(i[s]=i[s]||{},!i[s][u]&&t[s][u]){i[s][u]=!0,r[s]=r[s]||[],r[s].push(u);for(var l=function(t,e,n){var r={},i=(r[n]=[],e.toString());if(e=i.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/)){for(var o,e=e[1],a=new RegExp("(\\\\n|\\W)"+g(e)+f,"g");o=a.exec(i);)"dll-reference"!==o[3]&&r[n].push(o[3]);for(a=new RegExp("\\("+g(e)+'\\("(dll-reference\\s('+h+'))"\\)\\)'+f,"g");o=a.exec(i);)t[o[2]]||(r[n].push(o[1]),t[o[2]]=d(o[1]).m),r[o[2]]=r[o[2]]||[],r[o[2]].push(o[4])}return r}(t,t[s][u],s),c=Object.keys(l),p=0;p<c.length;p++)n[c[p]]=n[c[p]]||[],n[c[p]]=n[c[p]].concat(l[c[p]])}}return r}t.exports=function(t,e){var n={main:d.m},r=(e=e||{}).all?{main:Object.keys(n)}:a(n,t),i="",t=(Object.keys(r).filter(function(t){return"main"!==t}).forEach(function(e){for(var t=0;r[e][t];)t++;r[e].push(t),n[e][t]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",i=i+"var "+e+" = ("+o.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+r[e].map(function(t){return JSON.stringify(t)+": "+n[e][t].toString()}).join(",")+"});\n"}),i=i+"("+o.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+r.main.map(function(t){return JSON.stringify(t)+": "+n.main[t].toString()}).join(",")+"})(self);",new window.Blob([i],{type:"text/javascript"}));return e.bare||(e=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(t),(t=new window.Worker(e)).objectURL=e),t}},function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var a=n(9),s=n(1),u=n(0),r=n(6),l=n.n(r);e.default=function(r){function i(t,e){r.postMessage({event:t,data:e})}var o=new l.a;o.trigger=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.emit.apply(o,[t,t].concat(n))},o.off=function(t){for(var e=arguments.length,n=Array(1<e?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];o.removeListener.apply(o,[t].concat(n))};r.addEventListener("message",function(t){var e=t.data;switch(e.cmd){case"init":var n=JSON.parse(e.config);r.demuxer=new a.a(o,e.typeSupported,n,e.vendor);try{Object(u.a)(!0===n.debug)}catch(t){console.warn("demuxerWorker: unable to enable logs")}i("init",null);break;case"demux":r.demuxer.push(e.data,e.decryptdata,e.initSegment,e.audioCodec,e.videoCodec,e.timeOffset,e.discontinuity,e.trackSwitch,e.contiguous,e.duration,e.accurateTimeOffset,e.defaultInitPTS)}}),o.on(s.a.FRAG_DECRYPTED,i),o.on(s.a.FRAG_PARSING_INIT_SEGMENT,i),o.on(s.a.FRAG_PARSED,i),o.on(s.a.ERROR,i),o.on(s.a.FRAG_PARSING_METADATA,i),o.on(s.a.FRAG_PARSING_USERDATA,i),o.on(s.a.INIT_PTS_FOUND,i),o.on(s.a.FRAG_PARSING_DATA,function(t,e){var n=[],t={event:t,data:e};e.data1&&(t.data1=e.data1.buffer,n.push(e.data1.buffer),delete e.data1),e.data2&&(t.data2=e.data2.buffer,n.push(e.data2.buffer),delete e.data2),r.postMessage(t,n)})}},function(t,e){String.prototype.endsWith||!function(){"use strict";function t(t){if(null==this)throw TypeError();var e=String(this);if(t&&"[object RegExp]"==u.call(t))throw TypeError();var n,r=e.length,i=String(t),o=i.length,t=r,a=(1<arguments.length&&void 0!==(n=arguments[1])&&(t=n?Number(n):0)!=t&&(t=0),Math.min(Math.max(t,0),r)-o);if(a<0)return!1;for(var s=-1;++s<o;)if(e.charCodeAt(a+s)!=i.charCodeAt(s))return!1;return!0}var e=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(t){}return n}(),u={}.toString;e?e(String.prototype,"endsWith",{value:t,configurable:!0,writable:!0}):String.prototype.endsWith=t}()}],i={},r.m=n,r.c=i,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=10).default;function r(t){var e;return(i[t]||(e=i[t]={i:t,l:!1,exports:{}},n[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}var n,i}),!function(){"use strict";angular.module("vcRecaptcha",[])}(),!function(m){"use strict";m.module("vcRecaptcha").provider("vcRecaptchaService",function(){var f=this,g={};f.onLoadFunctionName="vcRecaptchaApiLoaded",f.setDefaults=function(t){m.copy(t,g)},f.setSiteKey=function(t){g.key=t},f.setTheme=function(t){g.theme=t},f.setStoken=function(t){g.stoken=t},f.setSize=function(t){g.size=t},f.setType=function(t){g.type=t},f.setLang=function(t){g.lang=t},f.setBadge=function(t){g.badge=t},f.setOnLoadFunctionName=function(t){f.onLoadFunctionName=t},f.$get=["$rootScope","$window","$q","$document","$interval",function(e,t,r,n,i){function o(){a=t.grecaptcha,l.resolve(a)}var a,s,u,l=r.defer(),c=l.promise,p={};t.vcRecaptchaApiLoadedCallback=t.vcRecaptchaApiLoadedCallback||[];function d(){if(!a)throw new Error("reCaptcha has not been loaded yet.")}function h(){return m.isFunction((t.grecaptcha||{}).render)}return t.vcRecaptchaApiLoadedCallback.push(o),t[f.onLoadFunctionName]=function(){t.vcRecaptchaApiLoadedCallback.forEach(function(t){t()})},h()?o():t.document.querySelector('script[src^="https://www.google.com/recaptcha/api.js"]')?s=i(function(){h()&&(i.cancel(s),o())},25):((u=t.document.createElement("script")).async=!0,u.defer=!0,u.src="https://www.google.com/recaptcha/api.js?onload="+f.onLoadFunctionName+"&render=explicit",n.find("body")[0].appendChild(u)),{create:function(e,n){if(n.sitekey=n.key||g.key,n.theme=n.theme||g.theme,n.stoken=n.stoken||g.stoken,n.size=n.size||g.size,n.type=n.type||g.type,n.hl=n.lang||g.lang,n.badge=n.badge||g.badge,n.sitekey)return(a?r.when(a):c).then(function(t){t=t.render(e,n);return p[t]=e,t});throw new Error('You need to set the "key" attribute to your public reC
1aptcha key. If you don\'t have a key, please get one from https://www.google.com/recaptcha/admin/create')},reload:function(t){d(),a.reset(t),e.$broadcast("reCaptchaReset",t)},execute:function(t){d(),a.execute(t)},useLang:function(t,e){var n=p[t];if(!n)throw new Error("reCaptcha Widget ID not exists",t);t=n.querySelector("iframe");if(!e)return t&&t.src&&/[?&]hl=\w+/.test(t.src)?t.src.replace(/.+[?&]hl=(\w+)([^\w].+)?/,"$1"):null;t&&t.src&&(n=t.src,/[?&]hl=/.test(n)?n=n.replace(/([?&]hl=)\w+/,"$1"+e):n+=(-1===n.indexOf("?")?"?":"&")+"hl="+e,t.src=n)},getResponse:function(t){return d(),a.getResponse(t)},getInstance:function(t){return p[t]},destroy:function(t){delete p[t]}}}]})}(angular),!function(d){"use strict";d.module("vcRecaptcha").directive("vcRecaptcha",["$document","$timeout","vcRecaptchaService",function(l,c,p){return{restrict:"A",require:"?^^form",scope:{response:"=?ngModel",key:"=?",stoken:"=?",theme:"=?",size:"=?",type:"=?",lang:"=?",badge:"=?",tabindex:"=?",required:"=?",onCreate:"&",onSuccess:"&",onExpire:"&",onError:"&"},link:function(r,e,n,t){r.widgetId=null,t&&d.isDefined(n.required)&&r.$watch("required",u);var i=r.$watch("key",function(t){p.create(e[0],{callback:function(t){c(function(){r.response=t,u(),r.onSuccess({response:t,widgetId:r.widgetId})})},key:t,stoken:r.stoken||n.stoken||null,theme:r.theme||n.theme||null,type:r.type||n.type||null,lang:r.lang||n.lang||null,tabindex:r.tabindex||n.tabindex||null,size:r.size||n.size||null,badge:r.badge||n.badge||null,"expired-callback":a,"error-callback":n.onError?s:void 0}).then(function(n){u(),r.widgetId=n,r.onCreate({widgetId:n}),r.$on("$destroy",o),r.$on("reCaptchaReset",function(t,e){!d.isUndefined(e)&&n!==e||(r.response="",u())})}),i()});function o(){t&&t.$setValidity("recaptcha",null),p.destroy(r.widgetId),d.element(l[0].querySelectorAll(".pls-container")).parent().remove()}function a(){c(function(){r.response="",u(),r.onExpire({widgetId:r.widgetId})})}function s(){var t=arguments;c(function(){r.response="",u(),r.onError({widgetId:r.widgetId,arguments:t})})}function u(){t&&t.$setValidity("recaptcha",!1===r.required?null:Boolean(r.response))}}}}])}(angular);
2//# sourceMappingURL=../../maps/scripts/vendor-94dba05283.min.js.map

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.