/
cb79ca73cf9d378d7c3530fbe6765ae2.js
2 lines (2 loc) · 207 KB
/
cb79ca73cf9d378d7c3530fbe6765ae2.js
1
2
!function(t){"use strict";function e(t){if(!b(t))return Qn;y(t.objectMaxDepth)&&(Qn.objectMaxDepth=n(t.objectMaxDepth)?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&L(t.urlErrorParamsEnabled)&&(Qn.urlErrorParamsEnabled=t.urlErrorParamsEnabled)}function n(t){return x(t)&&0<t}function i(t,e){return e=e||Error,function(){var n,i=arguments[0];for(n="["+(t?t+":":"")+i+"] http://errors.angularjs.org/1.8.2/"+(t?t+"/":"")+i,i=1;i<arguments.length;i++){n=n+(1==i?"?":"&")+"p"+(i-1)+"=";var r,o=encodeURIComponent;n+=o(r="function"==typeof(r=arguments[i])?r.toString().replace(/ \{[\s\S]*$/,""):void 0===r?"undefined":"string"!=typeof r?JSON.stringify(r):r)}return new e(n)}}function r(t){if(null==t||O(t))return!1;if(S(t)||_(t)||Zn&&t instanceof Zn)return!0;var e="length"in Object(t)&&t.length;return x(e)&&(0<=e&&e-1 in t||"function"==typeof t.item)}function o(t,e,n){var i,a;if(t)if(A(t))for(i in t)"prototype"!==i&&"length"!==i&&"name"!==i&&t.hasOwnProperty(i)&&e.call(n,t[i],i,t);else if(S(t)||r(t)){var s="object"!=typeof t;for(i=0,a=t.length;i<a;i++)(s||i in t)&&e.call(n,t[i],i,t)}else if(t.forEach&&t.forEach!==o)t.forEach(e,n,t);else if(w(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)ei.call(t,i)&&e.call(n,t[i],i,t);return t}function a(t,e,n){for(var i=Object.keys(t).sort(),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r]);return i}function s(t){return function(e,n){t(n,e)}}function u(){return++di}function c(t,e,n){for(var i=t.$$hashKey,r=0,o=e.length;r<o;++r){var a=e[r];if(b(a)||A(a))for(var s=Object.keys(a),u=0,l=s.length;u<l;u++){var d=s[u],h=a[d];n&&b(h)?C(h)?t[d]=new Date(h.valueOf()):k(h)?t[d]=new RegExp(h):h.nodeName?t[d]=h.cloneNode(!0):T(h)?t[d]=h.clone():"__proto__"!==d&&(b(t[d])||(t[d]=S(h)?[]:{}),c(t[d],[h],!0)):t[d]=h}}return i?t.$$hashKey=i:delete t.$$hashKey,t}function l(t){return c(t,ri.call(arguments,1),!1)}function d(t){return c(t,ri.call(arguments,1),!0)}function h(t){return parseInt(t,10)}function f(t,e){return l(Object.create(t),e)}function p(){}function $(t){return t}function g(t){return function(){return t}}function m(t){return A(t.toString)&&t.toString!==si}function v(t){return void 0===t}function y(t){return void 0!==t}function b(t){return null!==t&&"object"==typeof t}function w(t){return null!==t&&"object"==typeof t&&!ui(t)}function _(t){return"string"==typeof t}function x(t){return"number"==typeof t}function C(t){return"[object Date]"===si.call(t)}function S(t){return Array.isArray(t)||t instanceof Array}function E(t){switch(si.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function A(t){return"function"==typeof t}function k(t){return"[object RegExp]"===si.call(t)}function O(t){return t&&t.window===t}function j(t){return t&&t.$evalAsync&&t.$watch}function L(t){return"boolean"==typeof t}function T(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function M(t){return ni(t.nodeName||t[0]&&t[0].nodeName)}function I(t,e){var n=t.indexOf(e);return 0<=n&&t.splice(n,1),n}function V(t,e,i){function r(t,e,n){if(0>--n)return"...";var i,r=e.$$hashKey;if(S(t)){i=0;for(var o=t.length;i<o;i++)e.push(a(t[i],n))}else if(w(t))for(i in t)e[i]=a(t[i],n);else if(t&&"function"==typeof t.hasOwnProperty)for(i in t)t.hasOwnProperty(i)&&(e[i]=a(t[i],n));else for(i in t)ei.call(t,i)&&(e[i]=a(t[i],n));return r?e.$$hashKey=r:delete e.$$hashKey,e}function a(t,e){if(!b(t))return t;if(-1!==(n=u.indexOf(t)))return c[n];if(O(t)||j(t))throw ci("cpws");var n=!1,i=s(t);return void 0===i&&(i=S(t)?[]:Object.create(ui(t)),n=!0),u.push(t),c.push(i),n?r(t,i,e):i}function s(t){switch(si.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(a(t.buffer),t.byteOffset,t.length);case"[object ArrayBuffer]":if(!t.slice){var e=new ArrayBuffer(t.byteLength);return new Uint8Array(e).set(new Uint8Array(t)),e}return t.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new t.constructor(t.valueOf());case"[object RegExp]":return(e=new RegExp(t.source,t.toString().match(/[^/]*$/)[0])).lastIndex=t.lastIndex,e;case"[object Blob]":return new t.constructor([t],{type:t.type})}if(A(t.cloneNode))return t.cloneNode(!0)}var u=[],c=[];if(i=n(i)?i:NaN,e){if(function(t){return t&&x(t.length)&&$i.test(si.call(t))}(e)||"[object ArrayBuffer]"===si.call(e))throw ci("cpta");if(t===e)throw ci("cpi");return S(e)?e.length=0:o(e,(function(t,n){"$$hashKey"!==n&&delete e[n]})),u.push(t),c.push(e),r(t,e,i)}return a(t,i)}function N(t,e){return t===e||t!=t&&e!=e}function D(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,i=typeof t;if(i===typeof e&&"object"===i){if(!S(t)){if(C(t))return!!C(e)&&N(t.getTime(),e.getTime());if(k(t))return!!k(e)&&t.toString()===e.toString();if(j(t)||j(e)||O(t)||O(e)||S(e)||C(e)||k(e))return!1;for(n in i=st(),t)if("$"!==n.charAt(0)&&!A(t[n])){if(!D(t[n],e[n]))return!1;i[n]=!0}for(n in e)if(!(n in i)&&"$"!==n.charAt(0)&&y(e[n])&&!A(e[n]))return!1;return!0}if(!S(e))return!1;if((i=t.length)===e.length){for(n=0;n<i;n++)if(!D(t[n],e[n]))return!1;return!0}}return!1}function P(t,e,n){return t.concat(ri.call(e,n))}function R(t,e){var n=2<arguments.length?ri.call(arguments,2):[];return!A(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,P(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function U(e,n){var i=n;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?i=void 0:O(n)?i="$WINDOW":n&&t.document===n?i="$DOCUMENT":j(n)&&(i="$SCOPE"),i}function F(t,e){if(!v(t))return x(e)||(e=e?2:null),JSON.stringify(t,U,e)}function H(t){return _(t)?JSON.parse(t):t}function W(t,e){t=t.replace(bi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return hi(n)?e:n}function q(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}function B(t,e,n){n=n?-1:1;var i=t.getTimezoneOffset();return q(t,n*((e=W(e,i))-i))}function z(t){t=Zn(t).clone().empty();var e=Zn("<div></div>").append(t).html();try{return t[0].nodeType===Si?ni(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+ni(e)}))}catch(t){return ni(e)}}function G(t){try{return decodeURIComponent(t)}catch(t){}}function J(t){var e={};return o((t||"").split("&"),(function(t){var n,i,r;t&&(i=t=t.replace(/\+/g,"%20"),-1!==(n=t.indexOf("="))&&(i=t.substring(0,n),r=t.substring(n+1)),y(i=G(i))&&(r=!y(r)||G(r),ei.call(e,i)?S(e[i])?e[i].push(r):e[i]=[e[i],r]:e[i]=r))})),e}function K(t){return Z(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(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":"+")}function Y(e,n){var i,r,a={};o(wi,(function(t){t+="app",!i&&e.hasAttribute&&e.hasAttribute(t)&&(i=e,r=e.getAttribute(t))})),o(wi,(function(t){var n;t+="app",!i&&(n=e.querySelector("["+t.replace(":","\\:")+"]"))&&(i=n,r=n.getAttribute(t))})),i&&(_i?(a.strictDi=null!==function(t,e){var n,i,r=wi.length;for(i=0;i<r;++i)if(n=wi[i]+e,_(n=t.getAttribute(n)))return n;return null}(i,"strict-di"),n(i,r?[r]:[],a)):t.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match."))}function X(e,n,i){b(i)||(i={}),i=l({strictDi:!1},i);var r=function(){if((e=Zn(e)).injector()){var r=e[0]===t.document?"document":z(e);throw ci("btstrpd",r.replace(/</,"<").replace(/>/,">"))}return(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng"),(r=Ut(n,i.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply((function(){e.data("$injector",i),n(e)(t)}))}]),r},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(t&&a.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(a,"")),t&&!s.test(t.name))return r();t.name=t.name.replace(s,""),li.resumeBootstrap=function(t){return o(t,(function(t){n.push(t)})),r()},A(li.resumeDeferredBootstrap)&&li.resumeDeferredBootstrap()}function Q(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function tt(t){if(!(t=li.element(t).injector()))throw ci("test");return t.get("$$testability")}function et(t,e){return e=e||"_",t.replace(xi,(function(t,n){return(n?e:"")+t.toLowerCase()}))}function nt(){$t.legacyXHTMLReplacement=!0}function it(t,e,n){if(!t)throw ci("areq",e||"?",n||"required");return t}function rt(t,e,n){return n&&S(t)&&(t=t[t.length-1]),it(A(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ot(t,e){if("hasOwnProperty"===t)throw ci("badname",e)}function at(t){for(var e,n=t[0],i=t[t.length-1],r=1;n!==i&&(n=n.nextSibling);r++)(e||t[r]!==n)&&(e||(e=Zn(ri.call(t,0,r))),e.push(n));return e||t}function st(){return Object.create(null)}function ut(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=!m(t)||S(t)||C(t)?F(t):t.toString()}return t}function ct(t,e){if(S(t)){e=e||[];for(var n=0,i=t.length;n<i;n++)e[n]=t[n]}else if(b(t))for(n in e=e||{},t)"$"===n.charAt(0)&&"$"===n.charAt(1)||(e[n]=t[n]);return e||t}function lt(t,e){var i=[];return n(e)&&(t=li.copy(t,null,e)),JSON.stringify(t,(function(t,e){if(b(e=U(t,e))){if(0<=i.indexOf(e))return"...";i.push(e)}return e}))}function dt(t,e){return e.toUpperCase()}function ht(t){return t.replace(Oi,dt)}function ft(t){return 1===(t=t.nodeType)||!t||9===t}function pt(e,n){var i,r,a,s,u=n.createDocumentFragment(),c=[];if(Ii.test(e)){if(i=u.appendChild(n.createElement("div")),r=(Vi.exec(e)||["",""])[1].toLowerCase(),a=$t.legacyXHTMLReplacement?e.replace(Ni,"<$1></$2>"):e,10>Kn)for(r=Ri[r]||Ri._default,i.innerHTML=r[1]+a+r[2],s=r[0];s--;)i=i.firstChild;else{for(s=(r=Di[r]||[]).length;-1<--s;)i.appendChild(t.document.createElement(r[s])),i=i.firstChild;i.innerHTML=a}c=P(c,i.childNodes),(i=u.firstChild).textContent=""}else c.push(n.createTextNode(e));return u.textContent="",u.innerHTML="",o(c,(function(t){u.appendChild(t)})),u}function $t(e){if(e instanceof $t)return e;var n,i;if(_(e)&&(e=gi(e),n=!0),!(this instanceof $t)){if(n&&"<"!==e.charAt(0))throw Ti("nosel");return new $t(e)}n?(n=t.document,At(this,e=(i=Mi.exec(e))?[n.createElement(i[1])]:(i=pt(e,n))?i.childNodes:[])):A(e)?Tt(e):At(this,e)}function gt(t){return t.cloneNode(!0)}function mt(t,e){!e&&ft(t)&&Zn.cleanData([t]),t.querySelectorAll&&Zn.cleanData(t.querySelectorAll("*"))}function vt(t){for(var e in t)return!1;return!0}function yt(t){var e,n=t.ng339,i=(e=n&&Ai[n])&&e.events;(e=e&&e.data)&&!vt(e)||i&&!vt(i)||(delete Ai[n],t.ng339=void 0)}function bt(t,e,n,i){if(y(i))throw Ti("offargs");var r=(i=_t(t))&&i.events,a=i&&i.handle;if(a){if(e){var s=function(e){var i=r[e];y(n)&&I(i||[],n),y(n)&&i&&0<i.length||(t.removeEventListener(e,a),delete r[e])};o(e.split(" "),(function(t){s(t),Li[t]&&s(Li[t])}))}else for(e in r)"$destroy"!==e&&t.removeEventListener(e,a),delete r[e];yt(t)}}function wt(t,e){var n=t.ng339;(n=n&&Ai[n])&&(e?delete n.data[e]:n.data={},yt(t))}function _t(t,e){var n=(n=t.ng339)&&Ai[n];return e&&!n&&(t.ng339=n=++ki,n=Ai[n]={events:{},data:{},handle:void 0}),n}function xt(t,e,n){if(ft(t)){var i,r=y(n),o=!r&&e&&!b(e),a=!e;if(t=(t=_t(t,!o))&&t.data,r)t[ht(e)]=n;else{if(a)return t;if(o)return t&&t[ht(e)];for(i in e)t[ht(i)]=e[i]}}}function Ct(t,e){return!!t.getAttribute&&-1<(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")}function St(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;o(e.split(" "),(function(t){t=gi(t),i=i.replace(" "+t+" "," ")})),i!==n&&t.setAttribute("class",gi(i))}}function Et(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;o(e.split(" "),(function(t){t=gi(t),-1===i.indexOf(" "+t+" ")&&(i+=t+" ")})),i!==n&&t.setAttribute("class",gi(i))}}function At(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 i=0;i<n;i++)t[t.length++]=e[i]}else t[t.length++]=e}}function kt(t,e){return Ot(t,"$"+(e||"ngController")+"Controller")}function Ot(t,e,n){for(9===t.nodeType&&(t=t.documentElement),e=S(e)?e:[e];t;){for(var i=0,r=e.length;i<r;i++)if(y(n=Zn.data(t,e[i])))return n;t=t.parentNode||11===t.nodeType&&t.host}}function jt(t){for(mt(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Lt(t,e){e||mt(t);var n=t.parentNode;n&&n.removeChild(t)}function Tt(e){function n(){t.document.removeEventListener("DOMContentLoaded",n),t.removeEventListener("load",n),e()}"complete"===t.document.readyState?t.setTimeout(e):(t.document.addEventListener("DOMContentLoaded",n),t.addEventListener("load",n))}function Mt(t,e){var n=qi[e.toLowerCase()];return n&&Bi[M(t)]&&n}function It(t,e,n){n.call(t,e)}function Vt(t,e,n){var i=e.relatedTarget;i&&(i===t||Hi.call(t,i))||n.call(t,e)}function Nt(){this.$get=function(){return l($t,{hasClass:function(t,e){return t.attr&&(t=t[0]),Ct(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),Et(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),St(t,e)}})}}function Dt(t,e){var n=t&&t.$$hashKey;return n?("function"==typeof n&&(n=t.$$hashKey()),n):"function"===(n=typeof t)||"object"===n&&null!==t?t.$$hashKey=n+":"+(e||u)():n+":"+t}function Pt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function Rt(t){return(t=Function.prototype.toString.call(t).replace(tr,"")).match(Zi)||t.match(Yi)}function Ut(t,e){function n(t){return function(e,n){if(!b(e))return t(e,n);o(e,s(t))}}function i(t,e){if(ot(t,"service"),(A(e)||S(e))&&(e=p.instantiate(e)),!e.$get)throw er("pget",t);return f[t+"Provider"]=e}function r(t,e){return function(){var n=y.invoke(e,this);if(v(n))throw er("undef",t);return n}}function a(t,e,n){return i(t,{$get:!1!==n?r(t,e):e})}function u(t){it(v(t)||S(t),"modulesToLoad","not an array");var e,n=[];return o(t,(function(t){function i(t){var e,n;for(e=0,n=t.length;e<n;e++){var i=t[e],r=p.get(i[0]);r[i[1]].apply(r,i[2])}}if(!h.get(t)){h.set(t,!0);try{_(t)?(e=Xn(t),y.modules[t]=e,n=n.concat(u(e.requires)).concat(e._runBlocks),i(e._invokeQueue),i(e._configBlocks)):A(t)||S(t)?n.push(p.invoke(t)):rt(t,"module")}catch(e){throw S(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),er("modulerr",t,e.stack||e.message||e)}}})),n}function c(t,n){function i(e,i){if(t.hasOwnProperty(e)){if(t[e]===l)throw er("cdep",e+" <- "+d.join(" <- "));return t[e]}try{return d.unshift(e),t[e]=l,t[e]=n(e,i),t[e]}catch(n){throw t[e]===l&&delete t[e],n}finally{d.shift()}}function r(t,n,r){for(var o=[],a=0,s=(t=Ut.$$annotate(t,e,r)).length;a<s;a++){var u=t[a];if("string"!=typeof u)throw er("itkn",u);o.push(n&&n.hasOwnProperty(u)?n[u]:i(u,r))}return o}return{invoke:function(t,e,n,i){if("string"==typeof n&&(i=n,n=null),n=r(t,n,i),S(t)&&(t=t[t.length-1]),i=t,Kn||"function"!=typeof i)i=!1;else{var o=i.$$ngIsClass;L(o)||(o=i.$$ngIsClass=/^class\b/.test(Function.prototype.toString.call(i))),i=o}return i?(n.unshift(null),new(Function.prototype.bind.apply(t,n))):t.apply(e,n)},instantiate:function(t,e,n){var i=S(t)?t[t.length-1]:t;return(t=r(t,e,n)).unshift(null),new(Function.prototype.bind.apply(i,t))},get:i,annotate:Ut.$$annotate,has:function(e){return f.hasOwnProperty(e+"Provider")||t.hasOwnProperty(e)}}}e=!0===e;var l={},d=[],h=new Ji,f={$provide:{provider:n(i),factory:n(a),service:n((function(t,e){return a(t,["$injector",function(t){return t.instantiate(e)}])})),value:n((function(t,e){return a(t,g(e),!1)})),constant:n((function(t,e){ot(t,"constant"),f[t]=e,$[t]=e})),decorator:function(t,e){var n=p.get(t+"Provider"),i=n.$get;n.$get=function(){var t=y.invoke(i,n);return y.invoke(e,null,{$delegate:t})}}}},p=f.$injector=c(f,(function(t,e){throw li.isString(e)&&d.push(e),er("unpr",d.join(" <- "))})),$={},m=c($,(function(t,e){var n=p.get(t+"Provider",e);return y.invoke(n.$get,n,void 0,t)})),y=m;f.$injectorProvider={$get:g(m)},y.modules=p.modules=st();var w=u(t);return(y=m.get("$injector")).strictDi=e,o(w,(function(t){t&&y.invoke(t)})),y.loadNewModules=function(t){o(u(t),(function(t){t&&y.invoke(t)}))},y}function Ft(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(n,i,r){function o(t){var e;t?(t.scrollIntoView(),A(e=a.yOffset)?e=e():T(e)?(e=e[0],e="fixed"!==n.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom):x(e)||(e=0),e&&(t=t.getBoundingClientRect().top,n.scrollBy(0,t-e))):n.scrollTo(0,0)}function a(t){var e;(t=_(t)?t:x(t)?t.toString():i.hash())?(e=s.getElementById(t))||(e=function(t){var e=null;return Array.prototype.some.call(t,(function(t){if("a"===M(t))return e=t,!0})),e}(s.getElementsByName(t)))?o(e):"top"===t&&o(null):o(null)}var s=n.document;return e&&r.$watch((function(){return i.hash()}),(function(e,n){e===n&&""===e||function(e,n){"complete"===(n=n||t).document.readyState?n.setTimeout(e):Zn(n).on("load",e)}((function(){r.$evalAsync(a)}))})),a}]}function Ht(t,e){return t||e?t?e?(S(t)&&(t=t.join(" ")),S(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function Wt(t){return b(t)?t:{}}function qt(t,e,n,i,r){function a(){_=null,u()}function s(){D(m=v(m=x())?null:m,E)&&(m=E),y=E=m}function u(){var t=y;s(),b===c.url()&&t===m||(b=c.url(),y=m,o(C,(function(t){t(c.url(),m)})))}var c=this,l=t.location,d=t.history,h=t.setTimeout,f=t.clearTimeout,$={},g=r(n);c.isMock=!1,c.$$completeOutstandingRequest=g.completeTask,c.$$incOutstandingRequestCount=g.incTaskCount,c.notifyWhenNoOutstandingRequests=g.notifyWhenNoPendingTasks;var m,y,b=l.href,w=e.find("base"),_=null,x=i.history?function(){try{return d.state}catch(t){}}:p;s(),c.url=function(e,n,r){if(v(r)&&(r=null),l!==t.location&&(l=t.location),d!==t.history&&(d=t.history),e){var o=y===r;if(e=nn(e).href,b===e&&(!i.history||o))return c;var a=b&&we(b)===we(e);return b=e,y=r,!i.history||a&&o?(a||(_=e),n?l.replace(e):a?(n=l,o=(r=e).indexOf("#"),r=-1===o?"":r.substr(o),n.hash=r):l.href=e,l.href!==e&&(_=e)):(d[n?"replaceState":"pushState"](r,"",e),s()),_&&(_=e),c}return(_||l.href).replace(/#$/,"")},c.state=function(){return m};var C=[],S=!1,E=null;c.onUrlChange=function(e){return S||(i.history&&Zn(t).on("popstate",a),Zn(t).on("hashchange",a),S=!0),C.push(e),e},c.$$applicationDestroyed=function(){Zn(t).off("hashchange popstate",a)},c.$$checkUrlChange=u,c.baseHref=function(){var t=w.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},c.defer=function(t,e,n){var i;return e=e||0,n=n||g.DEFAULT_TASK_TYPE,g.incTaskCount(n),i=h((function(){delete $[i],g.completeTask(t,n)}),e),$[i]=n,i},c.defer.cancel=function(t){if($.hasOwnProperty(t)){var e=$[t];return delete $[t],f(t),g.completeTask(p,e),!0}return!1}}function Bt(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(t,e,n,i,r){return new qt(t,i,e,n,r)}]}function zt(){this.$get=function(){function t(t,n){function r(t){t!==h&&(f?f===t&&(f=t.n):f=t,o(t.n,t.p),o(t,h),(h=t).n=null)}function o(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw i("$cacheFactory")("iid",t);var a=0,s=l({},n,{id:t}),u=st(),c=n&&n.capacity||Number.MAX_VALUE,d=st(),h=null,f=null;return e[t]={put:function(t,e){if(!v(e)){if(c<Number.MAX_VALUE)r(d[t]||(d[t]={key:t}));return t in u||a++,u[t]=e,a>c&&this.remove(f.key),e}},get:function(t){if(c<Number.MAX_VALUE){var e=d[t];if(!e)return;r(e)}return u[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=d[t];if(!e)return;e===h&&(h=e.p),e===f&&(f=e.n),o(e.n,e.p),delete d[t]}t in u&&(delete u[t],a--)},removeAll:function(){u=st(),a=0,d=st(),h=f=null},destroy:function(){d=s=u=null,delete e[t]},info:function(){return l({},s,{size:a})}}}var e={};return t.info=function(){var t={};return o(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function Gt(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Jt(e,n){function i(t,e,n){var i=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,r=st();return o(t,(function(t,o){if((t=t.trim())in w)r[o]=w[t];else{var a=t.match(i);if(!a)throw cr("iscp",e,o,t,n?"controller bindings definition":"isolate scope definition");r[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(w[t]=r[o])}})),r}function r(t){var e=t.require||t.controller&&t.name;return!S(e)&&b(e)&&o(e,(function(t,n){var i=t.match(h);t.substring(i[0].length)||(e[n]=i[0]+n)})),e}var a={},u=/^\s*directive:\s*([\w-]+)\s+(.*)$/,c=/(([\w-]+)(?::([^;]+))?;?)/,d=function(t){var e,n={};for(t=t.split(","),e=0;e<t.length;e++)n[t[e]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),h=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,m=/^(on[a-z]+|formaction)$/,w=st();this.directive=function t(n,i){return it(n,"name"),ot(n,"directive"),_(n)?(function(t){var e=t.charAt(0);if(!e||e!==ni(e))throw cr("baddir",t);if(t!==t.trim())throw cr("baddir",t)}(n),it(i,"directiveFactory"),a.hasOwnProperty(n)||(a[n]=[],e.factory(n+"Directive",["$injector","$exceptionHandler",function(t,e){var i=[];return o(a[n],(function(o,a){try{var s=t.invoke(o);A(s)?s={compile:g(s)}:!s.compile&&s.link&&(s.compile=g(s.link)),s.priority=s.priority||0,s.index=a,s.name=s.name||n,s.require=r(s);var u=s,c=s.restrict;if(c&&(!_(c)||!/[EACM]/.test(c)))throw cr("badrestrict",c,n);u.restrict=c||"EA",s.$$moduleName=o.$$moduleName,i.push(s)}catch(t){e(t)}})),i}])),a[n].push(i)):o(n,s(t)),this},this.component=function t(e,n){function i(t){function e(e){return A(e)||S(e)?function(n,i){return t.invoke(e,this,{$element:n,$attrs:i})}:e}var i=n.template||n.templateUrl?n.template:"",a={controller:r,controllerAs:Qt(n.controller)||n.controllerAs||"$ctrl",template:e(i),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return o(n,(function(t,e){"$"===e.charAt(0)&&(a[e]=t)})),a}if(!_(e))return o(e,s(R(this,t))),this;var r=n.controller||function(){};return o(n,(function(t,e){"$"===e.charAt(0)&&(i[e]=t,A(r)&&(r[e]=t))})),i.$inject=["$injector"],this.directive(e,i)},this.aHrefSanitizationTrustedUrlList=function(t){return y(t)?(n.aHrefSanitizationTrustedUrlList(t),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(t){this.aHrefSanitizationTrustedUrlList=t}}),this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(n.imgSrcSanitizationTrustedUrlList(t),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(t){this.imgSrcSanitizationTrustedUrlList=t}});var x=!0;this.debugInfoEnabled=function(t){return y(t)?(x=t,this):x};var C=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(C=t,this):C};var k=10;this.onChangesTtl=function(t){return arguments.length?(k=t,this):k};var O=!0;this.commentDirectivesEnabled=function(t){return arguments.length?(O=t,this):O};var T=!0;this.cssClassDirectivesEnabled=function(t){return arguments.length?(T=t,this):T};var V=st();this.addPropertySecurityContext=function(t,e,n){var i=t.toLowerCase()+"|"+e.toLowerCase();if(i in V&&V[i]!==n)throw cr("ctxoverride",t,e,V[i],n);return V[i]=n,this},function(){function t(t,e){o(e,(function(e){V[e.toLowerCase()]=t}))}t(Rr.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Rr.CSS,["*|style"]),t(Rr.URL,"area|href area|ping a|href a|ping blockquote|cite body|background del|cite input|src ins|cite q|cite".split(" ")),t(Rr.MEDIA_URL,"audio|src img|src img|srcset source|src source|srcset track|src video|src video|poster".split(" ")),t(Rr.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".split(" "))}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(e,n,r,s,g,y,w,P,U){function F(){try{if(!--jt)throw St=void 0,cr("infchng",k);w.$apply((function(){for(var t=0,e=St.length;t<e;++t)try{St[t]()}catch(t){r(t)}St=void 0}))}finally{jt++}}function H(t,e){if(!t)return t;if(!_(t))throw cr("srcset",e,t.toString());for(var n="",i=gi(t),r=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,o=(r=/\s/.test(i)?r:/(,)/,i=i.split(r),r=Math.floor(i.length/2),0);o<r;o++){var a=2*o;n=(n=n+P.getTrustedMediaUrl(gi(i[a])))+" "+gi(i[a+1])}return i=gi(i[2*o]).split(/\s/),n+=P.getTrustedMediaUrl(gi(i[0])),2===i.length&&(n+=" "+gi(i[1])),n}function W(t,e){if(e){var n,i,r,o=Object.keys(e);for(n=0,i=o.length;n<i;n++)this[r=o[n]]=e[r]}else this.$attr={};this.$$element=t}function q(t,e){try{t.addClass(e)}catch(t){}}function B(t,e,n,i,r){t instanceof Zn||(t=Zn(t));var o=G(t,e,t,n,i,r);B.$$addScopeClass(t);var a=null;return function(e,n,i){if(!t)throw cr("multilink");it(e,"scope"),r&&r.needsNewScope&&(e=e.$parent.$new());var s=(i=i||{}).parentBoundTranscludeFn,u=i.transcludeControllers;if(i=i.futureParentElement,s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=(i=i&&i[0])&&"foreignobject"!==M(i)&&si.call(i).match(/SVG/)?"svg":"html"),i="html"!==a?Zn($t(a,Zn("<div></div>").append(t).html())):n?Wi.clone.call(t):t,u)for(var c in u)i.data("$"+c+"Controller",u[c].instance);return B.$$addScopeInfo(i,e),n&&n(i,e),o&&o(e,i,i,s),n||(t=o=null),i}}function G(t,e,n,i,r,o){for(var a,s,u,c,l,d=[],h=S(t)||t instanceof Zn,f=0;f<t.length;f++)a=new W,11===Kn&&J(t,f,h),(o=(s=Z(t[f],[],a,0===f?i:void 0,r)).length?nt(s,t[f],a,e,n,null,[],[],o):null)&&o.scope&&B.$$addScopeClass(a.$$element),a=o&&o.terminal||!(u=t[f].childNodes)||!u.length?null:G(u,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:e),(o||a)&&(d.push(f,o,a),c=!0,l=l||o),o=null;return c?function(t,n,i,r){var o,a,s,u,c,h;if(l)for(h=Array(n.length),u=0;u<d.length;u+=3)h[o=d[u]]=n[o];else h=n;for(u=0,c=d.length;u<c;)a=h[d[u++]],n=d[u++],o=d[u++],n?(n.scope?(s=t.$new(),B.$$addScopeInfo(Zn(a),s)):s=t,n(o,s,a,i,n.transcludeOnThisElement?K(t,n.transclude,r):!n.templateOnThisElement&&r?r:!r&&e?K(t,e):null)):o&&o(t,a.childNodes,void 0,r)}:null}function J(t,e,n){var i,r=t[e],o=r.parentNode;if(r.nodeType===Si)for(;(i=o?r.nextSibling:t[e+1])&&i.nodeType===Si;)r.nodeValue+=i.nodeValue,i.parentNode&&i.parentNode.removeChild(i),n&&i===t[e+1]&&t.splice(e+1,1)}function K(t,e,n){function i(i,r,o,a,s){return i||((i=t.$new(!1,s)).$$transcluded=!0),e(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var r,o=i.$$slots=st();for(r in e.$$slots)o[r]=e.$$slots[r]?K(t,e.$$slots[r],n):null;return i}function Z(t,e,n,i,o){var a,s=n.$attr;switch(t.nodeType){case 1:ut(e,Zt(a=M(t)),"E",i,o);for(var u,l,d,h,f,p=t.attributes,$=0,m=p&&p.length;$<m;$++){var v,y=!1,x=!1,C=!1,S=!1,E=!1;l=(u=p[$]).name,h=u.value,(f=(d=Zt(l.toLowerCase())).match(Vt))?(C="Attr"===f[1],S="Prop"===f[1],E="On"===f[1],l=l.replace(dr,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,(function(t,e){return e.toUpperCase()}))):(v=d.match(Nt))&&ct(v[1])&&(y=l,x=l.substr(0,l.length-5)+"end",l=l.substr(0,l.length-6)),S||E?(n[d]=h,s[d]=u.name,S?vt(t,e,d,l):e.push(Hn(g,w,r,d,l,!1))):(s[d=Zt(l.toLowerCase())]=l,!C&&n.hasOwnProperty(d)||(n[d]=h,Mt(t,d)&&(n[d]=!0)),yt(t,e,h,d,C),ut(e,d,"A",i,o,y,x))}if("input"===a&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off"),!Ot)break;if(b(s=t.className)&&(s=s.animVal),_(s)&&""!==s)for(;t=c.exec(s);)ut(e,d=Zt(t[2]),"C",i,o)&&(n[d]=gi(t[3])),s=s.substr(t.index+t[0].length);break;case Si:pt(e,t.nodeValue);break;case 8:if(!kt)break;Y(t,e,n,i,o)}return e.sort(ht),e}function Y(t,e,n,i,r){try{var o=u.exec(t.nodeValue);if(o){var a=Zt(o[1]);ut(e,a,"M",i,r)&&(n[a]=gi(o[2]))}}catch(t){}}function X(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw cr("uterdir",e,n);1===t.nodeType&&(t.hasAttribute(e)&&r++,t.hasAttribute(n)&&r--),i.push(t),t=t.nextSibling}while(0<r);else i.push(t);return Zn(i)}function Q(t,e,n){return function(i,r,o,a,s){return r=X(r[0],e,n),t(i,r,o,a,s)}}function tt(t,e,n,i,r,o){var a;return t?B(e,n,i,r,o):function(){return a||(a=B(e,n,i,r,o),e=n=o=null),a.apply(this,arguments)}}function nt(e,n,i,a,s,u,c,d,h){function f(t,e,n,i){t&&(n&&(t=Q(t,n,i)),t.require=$.require,t.directiveName=g,(E===$||$.$$isolateScope)&&(t=wt(t,{isolateScope:!0})),c.push(t)),e&&(n&&(e=Q(e,n,i)),e.require=$.require,e.directiveName=g,(E===$||$.$$isolateScope)&&(e=wt(e,{isolateScope:!0})),d.push(e))}function p(t,e,a,s,u){var h,f,p,$,g,m,y,w;for(h in n===a?(s=i,w=i.$$element):s=new W(w=Zn(a),i),g=e,E?$=e.$new(!0):x&&(g=e.$parent),u&&((y=function(t,e,n,i){var r;if(j(t)||(i=n,n=e,e=t,t=void 0),I&&(r=m),n||(n=I?w.parent():w),!i)return u(t,e,r,n,O);var o=u.$$slots[i];if(o)return o(t,e,r,n,O);if(v(o))throw cr("noslot",i,z(w))}).$$boundTransclude=u,y.isSlotFilled=function(t){return!!u.$$slots[t]}),C&&(m=ot(w,s,y,C,$,e,E)),E&&(B.$$addScopeInfo(w,$,!0,!(k&&(k===E||k===E.$$originalDirective))),B.$$addScopeClass(w,!0),$.$$isolateBindings=E.$$isolateBindings,(f=Ct(e,s,$,$.$$isolateBindings,E)).removeWatches&&$.$on("$destroy",f.removeWatches)),m){f=C[h],p=m[h];var _=f.$$bindings.bindToController;p.instance=p(),w.data("$"+f.name+"Controller",p.instance),p.bindingInfo=Ct(g,s,p.instance,_,f)}for(o(C,(function(t,e){var n=t.require;t.bindToController&&!S(n)&&b(n)&&l(m[e].instance,rt(e,n,w,m))})),o(m,(function(t){var e=t.instance;if(A(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){r(t)}if(A(e.$onInit))try{e.$onInit()}catch(t){r(t)}A(e.$doCheck)&&(g.$watch((function(){e.$doCheck()})),e.$doCheck()),A(e.$onDestroy)&&g.$on("$destroy",(function(){e.$onDestroy()}))})),h=0,f=c.length;h<f;h++)_t(p=c[h],p.isolateScope?$:e,w,s,p.require&&rt(p.directiveName,p.require,w,m),y);var O=e;for(E&&(E.template||null===E.templateUrl)&&(O=$),t&&t(O,a.childNodes,void 0,u),h=d.length-1;0<=h;h--)_t(p=d[h],p.isolateScope?$:e,w,s,p.require&&rt(p.directiveName,p.require,w,m),y);o(m,(function(t){A((t=t.instance).$postLink)&&t.$postLink()}))}h=h||{};for(var $,g,m,y,w,_=-Number.MAX_VALUE,x=h.newScopeDirective,C=h.controllerDirectives,E=h.newIsolateScopeDirective,k=h.templateDirective,O=h.nonTlbTranscludeDirective,L=!1,T=!1,I=h.hasElementTranscludeDirective,V=i.$$element=Zn(n),N=a,D=!1,P=!1,U=0,F=e.length;U<F;U++){var H=($=e[U]).$$start,q=$.$$end;if(H&&(V=X(n,H,q)),m=void 0,_>$.priority)break;if((w=$.scope)&&($.templateUrl||(b(w)?(ft("new/isolated scope",E||x,$,V),E=$):ft("new/isolated scope",E,$,V)),x=x||$),g=$.name,!D&&($.replace&&($.templateUrl||$.template)||$.transclude&&!$.$$tlb)){for(w=U+1;D=e[w++];)if(D.transclude&&!D.$$tlb||D.replace&&(D.templateUrl||D.template)){P=!0;break}D=!0}if(!$.templateUrl&&$.controller&&(C=C||st(),ft("'"+g+"' controller",C[g],$,V),C[g]=$),w=$.transclude)if(L=!0,$.$$tlb||(ft("transclusion",O,$,V),O=$),"element"===w)I=!0,_=$.priority,m=V,V=i.$$element=Zn(B.$$createComment(g,i[g])),n=V[0],bt(s,ri.call(m,0),n),N=tt(P,m,a,_,u&&u.name,{nonTlbTranscludeDirective:O});else{var G=st();if(b(w)){m=t.document.createDocumentFragment();var J=st(),K=st();for(var Y in o(w,(function(t,e){var n="?"===t.charAt(0);t=n?t.substring(1):t,J[t]=e,G[e]=null,K[e]=n})),o(V.contents(),(function(e){var n=J[Zt(M(e))];n?(K[n]=!0,G[n]=G[n]||t.document.createDocumentFragment(),G[n].appendChild(e)):m.appendChild(e)})),o(K,(function(t,e){if(!t)throw cr("reqslot",e)})),G)G[Y]&&(N=Zn(G[Y].childNodes),G[Y]=tt(P,N,a));m=Zn(m.childNodes)}else m=Zn(gt(n)).contents();V.empty(),(N=tt(P,m,a,void 0,void 0,{needsNewScope:$.$$isolateScope||$.$$newScope})).$$slots=G}if($.template)if(T=!0,ft("template",k,$,V),k=$,w=A($.template)?$.template(V,i):$.template,w=It(w),$.replace){if(u=$,m=Ii.test(w)?Xt($t($.templateNamespace,gi(w))):[],n=m[0],1!==m.length||1!==n.nodeType)throw cr("tplrt",g,"");bt(s,V,n),w=Z(n,[],F={$attr:{}});var et=e.splice(U+1,e.length-(U+1));(E||x)&&at(w,E,x),e=e.concat(w).concat(et),lt(i,F),F=e.length}else V.html(w);if($.templateUrl)T=!0,ft("template",k,$,V),k=$,$.replace&&(u=$),p=dt(e.splice(U,e.length-U),V,i,s,L&&N,c,d,{controllerDirectives:C,newScopeDirective:x!==$&&x,newIsolateScopeDirective:E,templateDirective:k,nonTlbTranscludeDirective:O}),F=e.length;else if($.compile)try{y=$.compile(V,i,N);var nt=$.$$originalDirective||$;A(y)?f(null,R(nt,y),H,q):y&&f(R(nt,y.pre),R(nt,y.post),H,q)}catch(t){r(t,z(V))}$.terminal&&(p.terminal=!0,_=Math.max(_,$.priority))}return p.scope=x&&!0===x.scope,p.transcludeOnThisElement=L,p.templateOnThisElement=T,p.transclude=N,h.hasElementTranscludeDirective=I,p}function rt(t,e,n,i){var r;if(_(e)){var a=e.match(h);e=e.substring(a[0].length);var s=a[1]||a[3];a="?"===a[2];if("^^"===s?n=n.parent():r=(r=i&&i[e])&&r.instance,!r){var u="$"+e+"Controller";r="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(u):n.data(u)}if(!r&&!a)throw cr("ctreq",e,t)}else if(S(e))for(r=[],s=0,a=e.length;s<a;s++)r[s]=rt(t,e[s],n,i);else b(e)&&(r={},o(e,(function(e,o){r[o]=rt(t,e,n,i)})));return r||null}function ot(t,e,n,i,r,o,a){var s,u=st();for(s in i){var c=i[s],l={$scope:c===a||c.$$isolateScope?r:o,$element:t,$attrs:e,$transclude:n},d=c.controller;"@"===d&&(d=e[c.name]),l=y(d,l,!0,c.controllerAs),u[c.name]=l,t.data("$"+c.name+"Controller",l.instance)}return u}function at(t,e,n){for(var i=0,r=t.length;i<r;i++)t[i]=f(t[i],{$$isolateScope:e,$$newScope:n})}function ut(t,n,r,o,s,u,c){if(n===s)return null;var l=null;if(a.hasOwnProperty(n))for(var d=0,h=(s=e.get(n+"Directive")).length;d<h;d++)if(n=s[d],(v(o)||o>n.priority)&&-1!==n.restrict.indexOf(r)){if(u&&(n=f(n,{$$start:u,$$end:c})),!n.$$bindings){var p=l=n,$=n.name,g={isolateScope:null,bindToController:null};if(b(p.scope)&&(!0===p.bindToController?(g.bindToController=i(p.scope,$,!0),g.isolateScope={}):g.isolateScope=i(p.scope,$,!1)),b(p.bindToController)&&(g.bindToController=i(p.bindToController,$,!0)),g.bindToController&&!p.controller)throw cr("noctrl",$);b((l=l.$$bindings=g).isolateScope)&&(n.$$isolateBindings=l.isolateScope)}t.push(n),l=n}return l}function ct(t){if(a.hasOwnProperty(t))for(var n=e.get(t+"Directive"),i=0,r=n.length;i<r;i++)if((t=n[i]).multiElement)return!0;return!1}function lt(t,e){var n=e.$attr,i=t.$attr;o(t,(function(i,r){"$"!==r.charAt(0)&&(e[r]&&e[r]!==i&&(i=i.length?i+("style"===r?";":" ")+e[r]:e[r]),t.$set(r,i,!0,n[r]))})),o(e,(function(e,r){t.hasOwnProperty(r)||"$"===r.charAt(0)||(t[r]=e,"class"!==r&&"style"!==r&&(i[r]=n[r]))}))}function dt(t,e,n,i,a,u,c,l){var d,h,p=[],$=e[0],g=t.shift(),m=f(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=A(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,y=g.templateNamespace;return e.empty(),s(v).then((function(r){var s,f;if(r=It(r),g.replace){if(r=Ii.test(r)?Xt($t(y,gi(r))):[],s=r[0],1!==r.length||1!==s.nodeType)throw cr("tplrt",g.name,v);r={$attr:{}},bt(i,e,s);var w=Z(s,[],r);b(g.scope)&&at(w,!0),t=w.concat(t),lt(n,r)}else s=$,e.html(r);for(t.unshift(m),d=nt(t,s,n,a,e,g,u,c,l),o(i,(function(t,n){t===s&&(i[n]=e[0])})),h=G(e[0].childNodes,a);p.length;){r=p.shift(),f=p.shift();var _=p.shift(),x=p.shift();w=e[0];if(!r.$$destroyed){if(f!==$){var C=f.className;l.hasElementTranscludeDirective&&g.replace||(w=gt(s)),bt(_,Zn(f),w),q(Zn(w),C)}f=d.transcludeOnThisElement?K(r,d.transclude,x):x,d(h,r,w,i,f)}}p=null})).catch((function(t){E(t)&&r(t)})),function(t,e,n,i,r){t=r,e.$$destroyed||(p?p.push(e,n,i,t):(d.transcludeOnThisElement&&(t=K(e,d.transclude,r)),d(h,e,n,i,t)))}}function ht(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 ft(t,e,n,i){function r(t){return t?" (module: "+t+")":""}if(e)throw cr("multidir",e.name,r(e.$$moduleName),n.name,r(n.$$moduleName),t,z(i))}function pt(t,e){var i=n(e,!0);i&&t.push({priority:0,compile:function(t){var e=!!(t=t.parent()).length;return e&&B.$$addBindingClass(t),function(t,n){var r=n.parent();e||B.$$addBindingClass(r),B.$$addBindingInfo(r,i.expressions),t.$watch(i,(function(t){n[0].nodeValue=t}))}}})}function $t(e,n){switch(e=ni(e||"html")){case"svg":case"math":var i=t.document.createElement("div");return i.innerHTML="<"+e+">"+n+"</"+e+">",i.childNodes[0].childNodes;default:return n}}function mt(t){return H(P.valueOf(t),"ng-prop-srcset")}function vt(t,e,n,i){if(m.test(i))throw cr("nodomevents");var r=function(t,e){var n=e.toLowerCase();return V[t+"|"+n]||V["*|"+n]}(t=M(t),i),o=$;"srcset"!==i||"img"!==t&&"source"!==t?r&&(o=P.getTrusted.bind(P,r)):o=mt,e.push({priority:100,compile:function(t,e){var r=g(e[n]),a=g(e[n],(function(t){return P.valueOf(t)}));return{pre:function(t,e){function n(){var n=r(t);e[0][i]=o(n)}n(),t.$watch(a,n)}}}})}function yt(t,e,i,r,o){var a=M(t),s=function(t,e){return"srcdoc"===e?P.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?P.RESOURCE_URL:P.MEDIA_URL:"xlinkHref"===e?"image"===t?P.MEDIA_URL:"a"===t?P.URL:P.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?P.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:P.URL}(a,r),u=d[r]||o,c=n(i,!o,s,u);if(c){if("multiple"===r&&"select"===a)throw cr("selmulti",z(t));if(m.test(r))throw cr("nodomevents");e.push({priority:100,compile:function(){return{pre:function(t,e,o){e=o.$$observers||(o.$$observers=st());var a=o[r];a!==i&&(c=a&&n(a,!0,s,u),i=a),c&&(o[r]=c(t),(e[r]||(e[r]=[])).$$inter=!0,(o.$$observers&&o.$$observers[r].$$scope||t).$watch(c,(function(t,e){"class"===r&&t!==e?o.$updateClass(t,e):o.$set(r,t)})))}}}})}}function bt(e,n,i){var r,o,a=n[0],s=n.length,u=a.parentNode;if(e)for(r=0,o=e.length;r<o;r++)if(e[r]===a){e[r++]=i,o=r+s-1;for(var c=e.length;r<c;r++,o++)o<c?e[r]=e[o]:delete e[r];e.length-=s-1,e.context===a&&(e.context=i);break}for(u&&u.replaceChild(i,a),e=t.document.createDocumentFragment(),r=0;r<s;r++)e.appendChild(n[r]);for(Zn.hasData(a)&&(Zn.data(i,Zn.data(a)),Zn(a).off("$destroy")),Zn.cleanData(e.querySelectorAll("*")),r=1;r<s;r++)delete n[r];n[0]=i,n.length=1}function wt(t,e){return l((function(){return t.apply(null,arguments)}),t,e)}function _t(t,e,n,i,o,a){try{t(e,n,i,o,a)}catch(t){r(t,z(n))}}function xt(t,e){if(C)throw cr("missingattr",t,e)}function Ct(t,e,i,r,a){function s(e,n,r){A(i.$onChanges)&&!N(n,r)&&(St||(t.$$postDigest(F),St=[]),c||(c={},St.push(u)),c[e]&&(r=c[e].previousValue),c[e]=new Kt(r,n))}function u(){i.$onChanges(c),c=void 0}var c,l=[],d={};return o(r,(function(r,o){var u,c,h,f,$=r.attrName,m=r.optional;switch(r.mode){case"@":m||ei.call(e,$)||(xt($,a.name),i[o]=e[$]=void 0),m=e.$observe($,(function(t){(_(t)||L(t))&&(s(o,t,i[o]),i[o]=t)})),e.$$observers[$].$$scope=t,_(u=e[$])?i[o]=n(u)(t):L(u)&&(i[o]=u),d[o]=new Kt(lr,i[o]),l.push(m);break;case"=":if(!ei.call(e,$)){if(m)break;xt($,a.name),e[$]=void 0}if(m&&!e[$])break;c=g(e[$]),f=c.literal?D:N,h=c.assign||function(){throw u=i[o]=c(t),cr("nonassign",e[$],$,a.name)},u=i[o]=c(t),(m=function(e){return f(e,i[o])||(f(e,u)?h(t,e=i[o]):i[o]=e),u=e}).$stateful=!0,m=r.collection?t.$watchCollection(e[$],m):t.$watch(g(e[$],m),null,c.literal),l.push(m);break;case"<":if(!ei.call(e,$)){if(m)break;xt($,a.name),e[$]=void 0}if(m&&!e[$])break;var v=(c=g(e[$])).literal,y=i[o]=c(t);d[o]=new Kt(lr,i[o]),m=t[r.collection?"$watchCollection":"$watch"](c,(function(t,e){if(e===t){if(e===y||v&&D(e,y))return;e=y}s(o,t,e),i[o]=t})),l.push(m);break;case"&":if(m||ei.call(e,$)||xt($,a.name),(c=e.hasOwnProperty($)?g(e[$]):p)===p&&m)break;i[o]=function(e){return c(t,e)}}})),{initialChanges:d,removeWatches:l.length&&function(){for(var t=0,e=l.length;t<e;++t)l[t]()}}}var St,Et=/^\w/,At=t.document.createElement("div"),kt=O,Ot=T,jt=k;W.prototype={$normalize:Zt,$addClass:function(t){t&&0<t.length&&U.addClass(this.$$element,t)},$removeClass:function(t){t&&0<t.length&&U.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Yt(t,e);n&&n.length&&U.addClass(this.$$element,n),(n=Yt(e,t))&&n.length&&U.removeClass(this.$$element,n)},$set:function(t,e,n,i){var a=Mt(this.$$element[0],t),s=zi[t],u=t;a?(this.$$element.prop(t,e),i=a):s&&(this[s]=e,u=s),this[t]=e,i?this.$attr[t]=i:(i=this.$attr[t])||(this.$attr[t]=i=et(t,"-")),"img"===M(this.$$element)&&"srcset"===t&&(this[t]=e=H(e,"$set('srcset', value)")),!1!==n&&(null===e||v(e)?this.$$element.removeAttr(i):Et.test(i)?a&&!1===e?this.$$element.removeAttr(i):this.$$element.attr(i,e):function(t,e,n){At.innerHTML="<span "+e+">";var i=(e=At.firstChild.attributes)[0];e.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],i,e)),(t=this.$$observers)&&o(t[u],(function(t){try{t(e)}catch(t){r(t)}}))},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers=st()),r=i[t]||(i[t]=[]);return r.push(e),w.$evalAsync((function(){r.$$inter||!n.hasOwnProperty(t)||v(n[t])||e(n[t])})),function(){I(r,e)}}};var Lt=n.startSymbol(),Tt=n.endSymbol(),It="{{"===Lt&&"}}"===Tt?$:function(t){return t.replace(/\{\{/g,Lt).replace(/}}/g,Tt)},Vt=/^ng(Attr|Prop|On)([A-Z].*)$/,Nt=/^(.+)Start$/;return B.$$addBindingInfo=x?function(t,e){var n=t.data("$binding")||[];S(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:p,B.$$addBindingClass=x?function(t){q(t,"ng-binding")}:p,B.$$addScopeInfo=x?function(t,e,n,i){t.data(n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope",e)}:p,B.$$addScopeClass=x?function(t,e){q(t,e?"ng-isolate-scope":"ng-scope")}:p,B.$$createComment=function(e,n){var i="";return x&&(i=" "+(e||"")+": ",n&&(i+=n+" ")),t.document.createComment(i)},B}]}function Kt(t,e){this.previousValue=t,this.currentValue=e}function Zt(t){return t.replace(dr,"").replace(hr,(function(t,e,n){return n?e.toUpperCase():e}))}function Yt(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/),o=0;t:for(;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a===r[s])continue t;n+=(0<n.length?" ":"")+a}return n}function Xt(t){var e=(t=Zn(t)).length;if(1>=e)return t;for(;e--;){var n=t[e];(8===n.nodeType||n.nodeType===Si&&""===n.nodeValue.trim())&&oi.call(t,e,1)}return t}function Qt(t,e){if(e&&_(e))return e;if(_(t)){var n=pr.exec(t);if(n)return n[3]}}function te(){var t={};this.has=function(e){return t.hasOwnProperty(e)},this.register=function(e,n){ot(e,"controller"),b(e)?l(t,e):t[e]=n},this.$get=["$injector",function(e){function n(t,e,n,r){if(!t||!b(t.$scope))throw i("$controller")("noscp",r,e);t.$scope[e]=n}return function(i,r,o,a){var s,u,c;if(o=!0===o,a&&_(a)&&(c=a),_(i)){if(!(a=i.match(pr)))throw fr("ctrlfmt",i);if(u=a[1],c=c||a[3],!(i=t.hasOwnProperty(u)?t[u]:function(t,e,n){if(!e)return t;for(var i,r=t,o=(e=e.split(".")).length,a=0;a<o;a++)i=e[a],t&&(t=(r=t)[i]);return!n&&A(t)?R(r,t):t}(r.$scope,u,!0)))throw fr("ctrlreg",u);rt(i,u,!0)}return o?(o=(S(i)?i[i.length-1]:i).prototype,s=Object.create(o||null),c&&n(r,c,s,u||i.name),l((function(){var t=e.invoke(i,s,r,u);return t!==s&&(b(t)||A(t))&&(s=t,c&&n(r,c,s,u||i.name)),s}),{instance:s,identifier:c})):(s=e.instantiate(i,r,u),c&&n(r,c,s,u||i.name),s)}}]}function ee(){this.$get=["$window",function(t){return Zn(t.document)}]}function ne(){this.$get=["$document","$rootScope",function(t,e){function n(){r=i.hidden}var i=t[0],r=i&&i.hidden;return t.on("visibilitychange",n),e.$on("$destroy",(function(){t.off("visibilitychange",n)})),function(){return r}}]}function ie(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function re(t){return b(t)?C(t)?t.toISOString():F(t):t}function oe(){this.$get=function(){return function(t){if(!t)return"";var e=[];return a(t,(function(t,n){null===t||v(t)||A(t)||(S(t)?o(t,(function(t){e.push(Z(n)+"="+Z(re(t)))})):e.push(Z(n)+"="+Z(re(t))))})),e.join("&")}}}function ae(){this.$get=function(){return function(t){if(!t)return"";var e=[];return function t(n,i,r){S(n)?o(n,(function(e,n){t(e,i+"["+(b(e)?n:"")+"]")})):b(n)&&!C(n)?a(n,(function(e,n){t(e,i+(r?"":"[")+n+(r?"":"]"))})):(A(n)&&(n=n()),e.push(Z(i)+"="+(null==n?"":Z(re(n)))))}(t,"",!0),e.join("&")}}}function se(t,e){if(_(t)){var n,i,r=t.replace(br,"").trim();if(r)if((i=n=(n=e("Content-Type"))&&0===n.indexOf(gr))||(i=(i=r.match(vr))&&yr[i[0]].test(r)),i)try{t=H(r)}catch(e){if(!n)return t;throw wr("baddata",t,e)}}return t}function ue(t){var e,n=st();return _(t)?o(t.split("\n"),(function(t){e=t.indexOf(":");var i=ni(gi(t.substr(0,e)));t=gi(t.substr(e+1)),i&&(n[i]=n[i]?n[i]+", "+t:t)})):b(t)&&o(t,(function(t,e){var i=ni(e),r=gi(t);i&&(n[i]=n[i]?n[i]+", "+r:r)})),n}function ce(t){var e;return function(n){return e||(e=ue(t)),n?(void 0===(n=e[ni(n)])&&(n=null),n):e}}function le(t,e,n,i){return A(i)?i(t,e,n):(o(i,(function(i){t=i(t,e,n)})),t)}function de(){var t=this.defaults={transformResponse:[se],transformRequest:[function(t){return b(t)&&"[object File]"!==si.call(t)&&"[object Blob]"!==si.call(t)&&"[object FormData]"!==si.call(t)?F(t):t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ct(mr),put:ct(mr),patch:ct(mr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},e=!1;this.useApplyAsync=function(t){return y(t)?(e=!!t,this):e};var n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,s,u,c,d,h,f,$){function g(e){function n(t,e){for(var n=0,i=e.length;n<i;){var r=e[n++],o=e[n++];t=t.then(r,o)}return e.length=0,t}function r(t){var e=l({},t);return e.data=le(t.data,t.headers,t.status,s.transformResponse),200<=(t=t.status)&&300>t?e:h.reject(e)}if(!b(e))throw i("$http")("badreq",e);if(!_($.valueOf(e.url)))throw i("$http")("badreq",e.url);var s=l({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer,jsonpCallbackParam:t.jsonpCallbackParam},e);s.headers=function(e){var n,i,r,a=t.headers,s=l({},e.headers);a=l({},a.common,a[ni(e.method)]);t:for(n in a){for(r in i=ni(n),s)if(ni(r)===i)continue t;s[n]=a[n]}return function(t,e){var n,i={};return o(t,(function(t,r){A(t)?null!=(n=t(e))&&(i[r]=n):i[r]=t})),i}(s,ct(e))}(e),s.method=ii(s.method),s.paramSerializer=_(s.paramSerializer)?f.get(s.paramSerializer):s.paramSerializer,a.$$incOutstandingRequestCount("$http");var u=[],c=[];return e=h.resolve(s),o(x,(function(t){(t.request||t.requestError)&&u.unshift(t.request,t.requestError),(t.response||t.responseError)&&c.push(t.response,t.responseError)})),e=(e=n(e,u)).then((function(e){var n=e.headers,i=le(e.data,ce(n),void 0,e.transformRequest);return v(i)&&o(n,(function(t,e){"content-type"===ni(e)&&delete n[e]})),v(e.withCredentials)&&!v(t.withCredentials)&&(e.withCredentials=t.withCredentials),m(e,i).then(r,r)})),(e=n(e,c)).finally((function(){a.$$completeOutstandingRequest(p,"$http")}))}function m(n,i){function r(t){if(t){var n={};return o(t,(function(t,i){n[i]=function(n){function i(){t(n)}e?d.$applyAsync(i):d.$$phase?i():d.$apply(i)}})),n}}function a(t,e,i,r,o){(200<=(e=-1<=e?e:0)&&300>e?m.resolve:m.reject)({data:t,status:e,headers:ce(i),config:n,statusText:r,xhrStatus:o})}function c(t){a(t.data,t.status,ct(t.headers()),t.statusText,t.xhrStatus)}function l(){var t=g.pendingRequests.indexOf(n);-1!==t&&g.pendingRequests.splice(t,1)}var f,p,m=h.defer(),x=m.promise,E=n.headers,k="jsonp"===ni(n.method),O=n.url;return k?O=$.getTrustedResourceUrl(O):_(O)||(O=$.valueOf(O)),O=function(t,e){return 0<e.length&&(t+=(-1===t.indexOf("?")?"?":"&")+e),t}(O,n.paramSerializer(n.params)),k&&(O=function(t,e){var n=t.split("?");if(2<n.length)throw wr("badjsonp",t);return o(n=J(n[1]),(function(n,i){if("JSON_CALLBACK"===n)throw wr("badjsonp",t);if(i===e)throw wr("badjsonp",e,t)})),t+=(-1===t.indexOf("?")?"?":"&")+e+"=JSON_CALLBACK"}(O,n.jsonpCallbackParam)),g.pendingRequests.push(n),x.then(l,l),!n.cache&&!t.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(f=b(n.cache)?n.cache:b(t.cache)?t.cache:w),f&&(y(p=f.get(O))?p&&A(p.then)?p.then(c,c):S(p)?a(p[1],p[0],ct(p[2]),p[3],p[4]):a(p,200,{},"OK","complete"):f.put(O,x)),v(p)&&((p=C(n.url)?u()[n.xsrfCookieName||t.xsrfCookieName]:void 0)&&(E[n.xsrfHeaderName||t.xsrfHeaderName]=p),s(n.method,O,i,(function(t,n,i,r,o){function s(){a(n,t,i,r,o)}f&&(200<=t&&300>t?f.put(O,[t,n,ue(i),r,o]):f.remove(O)),e?d.$applyAsync(s):(s(),d.$$phase||d.$apply())}),E,n.timeout,n.withCredentials,n.responseType,r(n.eventHandlers),r(n.uploadEventHandlers))),x}var w=c("$http");t.paramSerializer=_(t.paramSerializer)?f.get(t.paramSerializer):t.paramSerializer;var x=[];o(n,(function(t){x.unshift(_(t)?f.get(t):f.invoke(t))}));var C=function(t){var e=[qr].concat(t.map(nn));return function(t){return t=nn(t),e.some(rn.bind(null,t))}}(r);return g.pendingRequests=[],function(t){o(arguments,(function(t){g[t]=function(e,n){return g(l({},n||{},{method:t,url:e}))}}))}("get","delete","head","jsonp"),function(t){o(arguments,(function(t){g[t]=function(e,n,i){return g(l({},i||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),g.defaults=t,g}]}function he(){this.$get=function(){return function(){return new t.XMLHttpRequest}}}function fe(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(t,e,n,i){return function(t,e,n,i,r){function a(t,e,n){t=t.replace("JSON_CALLBACK",e);var o=r.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){o.removeEventListener("load",a),o.removeEventListener("error",a),r.body.removeChild(o),o=null;var s=-1,u="unknown";t&&("load"!==t.type||i.wasCalled(e)||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),r.body.appendChild(o),a}return function(r,s,u,c,l,d,h,f,p,$){function g(t){x="timeout"===t,w&&w(),_&&_.abort()}function m(t,e,i,r,o,a){y(C)&&n.cancel(C),w=_=null,t(e,i,r,o,a)}if(s=s||t.url(),"jsonp"===ni(r))var b=i.createCallback(s),w=a(s,b,(function(t,e){var n=200===t&&i.getResponse(b);m(c,t,n,"",e,"complete"),i.removeCallback(b)}));else{var _=e(r,s),x=!1;if(_.open(r,s,!0),o(l,(function(t,e){y(t)&&_.setRequestHeader(e,t)})),_.onload=function(){var t=_.statusText||"",e="response"in _?_.response:_.responseText,n=1223===_.status?204:_.status;0===n&&(n=e?200:"file"===nn(s).protocol?404:0),m(c,n,e,_.getAllResponseHeaders(),t,"complete")},_.onerror=function(){m(c,-1,null,null,"","error")},_.ontimeout=function(){m(c,-1,null,null,"","timeout")},_.onabort=function(){m(c,-1,null,null,"",x?"timeout":"abort")},o(p,(function(t,e){_.addEventListener(e,t)})),o($,(function(t,e){_.upload.addEventListener(e,t)})),h&&(_.withCredentials=!0),f)try{_.responseType=f}catch(t){if("json"!==f)throw t}_.send(v(u)?null:u)}if(0<d)var C=n((function(){g("timeout")}),d);else d&&A(d.then)&&d.then((function(){g(y(d.$$timeoutId)?"timeout":"abort")}))}}(t,i,t.defer,e,n[0])}]}function pe(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,r){function o(t){return"\\\\\\"+t}function a(n){return n.replace(h,t).replace(f,e)}function s(t,e,n,i){var r=t.$watch((function(t){return r(),i(t)}),e,n);return r}function u(o,u,h,f){var p=h===r.URL||h===r.MEDIA_URL;if(!o.length||-1===o.indexOf(t)){if(u)return;return u=a(o),p&&(u=r.getTrusted(h,u)),(u=g(u)).exp=o,u.expressions=[],u.$$watchDelegate=s,u}f=!!f;for(var $,m,b,w,_=0,x=[],C=o.length,S=[],E=[];_<C;){if(-1===($=o.indexOf(t,_))||-1===(m=o.indexOf(e,$+c))){_!==C&&S.push(a(o.substring(_)));break}_!==$&&S.push(a(o.substring(_,$))),_=o.substring($+c,m),x.push(_),_=m+d,E.push(S.length),S.push("")}w=1===S.length&&1===E.length;var A=p&&w?void 0:function(t){try{return t=h&&!p?r.getTrusted(h,t):r.valueOf(t),f&&!y(t)?t:ut(t)}catch(t){i(_r.interr(o,t))}};if(b=x.map((function(t){return n(t,A)})),!u||x.length){var k=function(t){for(var e=0,n=x.length;e<n;e++){if(f&&v(t[e]))return;S[E[e]]=t[e]}return p?r.getTrusted(h,w?S[0]:S.join("")):(h&&1<S.length&&_r.throwNoconcat(o),S.join(""))};return l((function(t){var e=0,n=x.length,r=Array(n);try{for(;e<n;e++)r[e]=b[e](t);return k(r)}catch(t){i(_r.interr(o,t))}}),{exp:o,expressions:x,$$watchDelegate:function(t,e){var n;return t.$watchGroup(b,(function(i,r){var o=k(i);e.call(this,o,i!==r?n:o,t),n=o}))}})}}var c=t.length,d=e.length,h=new RegExp(t.replace(/./g,o),"g"),f=new RegExp(e.replace(/./g,o),"g");return u.startSymbol=function(){return t},u.endSymbol=function(){return e},u}]}function $e(){this.$get=["$$intervalFactory","$window",function(t,e){var n={},i=function(t){e.clearInterval(t),delete n[t]},r=t((function(t,i,r){return t=e.setInterval(t,i),n[t]=r,t}),i);return r.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$intervalId"))throw xr("badprom");if(!n.hasOwnProperty(t.$$intervalId))return!1;t=t.$$intervalId;var e=n[t],r=e.promise;return r.$$state&&(r.$$state.pur=!0),e.reject("canceled"),i(t),!0},r}]}function ge(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,i){return function(r,o){return function(a,s,u,c){function l(){d?a.apply(null,h):a(f)}var d=4<arguments.length,h=d?ri.call(arguments,4):[],f=0,p=y(c)&&!c,$=(p?n:e).defer(),g=$.promise;return u=y(u)?u:0,g.$$intervalId=r((function(){p?t.defer(l):i.$evalAsync(l),$.notify(f++),0<u&&f>=u&&($.resolve(f),o(g.$$intervalId)),p||i.$apply()}),s,$,p),g}}}]}function me(t,e){var n=nn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=h(n.port)||Er[n.protocol]||null}function ve(t,e,n){if(kr.test(t))throw Ar("badpath",t);(i="/"!==t.charAt(0))&&(t="/"+t),t=nn(t);for(var i,r=(i=(i&&"/"===t.pathname.charAt(0)?t.pathname.substring(1):t.pathname).split("/")).length;r--;)i[r]=decodeURIComponent(i[r]),n&&(i[r]=i[r].replace(/\//g,"%2F"));n=i.join("/"),e.$$path=n,e.$$search=J(t.search),e.$$hash=decodeURIComponent(t.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function ye(t,e){return t.slice(0,e.length)===e}function be(t,e){if(ye(e,t))return e.substr(t.length)}function we(t){var e=t.indexOf("#");return-1===e?t:t.substr(0,e)}function _e(t,e,n){this.$$html5=!0,n=n||"",me(t,this),this.$$parse=function(t){var n=be(e,t);if(!_(n))throw Ar("ipthprfx",t,e);ve(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(t){return e+t.substr(1)},this.$$parseLinkUrl=function(i,r){return r&&"#"===r[0]?(this.hash(r.slice(1)),!0):(y(o=be(t,i))?(a=o,a=n&&y(o=be(n,o))?e+(be("/",o)||o):t+a):y(o=be(e,i))?a=e+o:e===i+"/"&&(a=e),a&&this.$$parse(a),!!a);var o,a}}function xe(t,e,n){me(t,this),this.$$parse=function(i){var r;v(o=be(t,i)||be(e,i))||"#"!==o.charAt(0)?this.$$html5?r=o:(r="",v(o)&&(t=i,this.replace())):v(r=be(n,o))&&(r=o),ve(r,this,!1),i=this.$$path;var o,a=/^\/[A-Z]:(\/.*)/;ye(r,o=t)&&(r=r.replace(o,"")),a.exec(r)||(i=(r=a.exec(i))?r[1]:i),this.$$path=i,this.$$compose()},this.$$normalizeUrl=function(e){return t+(e?n+e:"")},this.$$parseLinkUrl=function(e,n){return we(t)===we(e)&&(this.$$parse(e),!0)}}function Ce(t,e,n){this.$$html5=!0,xe.apply(this,arguments),this.$$parseLinkUrl=function(i,r){return r&&"#"===r[0]?(this.hash(r.slice(1)),!0):(t===we(i)?o=i:(a=be(e,i))?o=t+n+a:e===i+"/"&&(o=e),o&&this.$$parse(o),!!o);var o,a},this.$$normalizeUrl=function(e){return t+n+e}}function Se(t){return function(){return this[t]}}function Ee(t,e){return function(n){return v(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Ae(){var t="!",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return L(t)?(e.enabled=t,this):b(t)?(L(t.enabled)&&(e.enabled=t.enabled),L(t.requireBase)&&(e.requireBase=t.requireBase),(L(t.rewriteLinks)||_(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,o,a){function s(t,e,n){var r=c.url(),o=c.$$state;try{i.url(t,e,n),c.$$state=i.state()}catch(t){throw c.url(r),c.$$state=o,t}}function u(t,e){n.$broadcast("$locationChangeSuccess",c.absUrl(),t,c.$$state,e)}var c,l;l=i.baseHref();var d,h=i.url();if(e.enabled){if(!l&&e.requireBase)throw Ar("nobase");d=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(l||"/"),l=r.history?_e:Ce}else d=we(h),l=xe;var f=d.substr(0,we(d).lastIndexOf("/")+1);(c=new l(d,f,"#"+t)).$$parseLinkUrl(h,h),c.$$state=i.state();var p=/^\s*(javascript|mailto):/i;o.on("click",(function(t){if((a=e.rewriteLinks)&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!==t.which&&2!==t.button){for(var r=Zn(t.target);"a"!==M(r[0]);)if(r[0]===o[0]||!(r=r.parent())[0])return;if(!_(a)||!v(r.attr(a))){var a=r.prop("href"),s=r.attr("href")||r.attr("xlink:href");b(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=nn(a.animVal).href),p.test(a)||!a||r.attr("target")||t.isDefaultPrevented()||!c.$$parseLinkUrl(a,s)||(t.preventDefault(),c.absUrl()!==i.url()&&n.$apply())}}})),c.absUrl()!==h&&i.url(c.absUrl(),!0);var $=!0;return i.onUrlChange((function(t,e){ye(t,f)?(n.$evalAsync((function(){var i,r=c.absUrl(),o=c.$$state;c.$$parse(t),c.$$state=e,i=n.$broadcast("$locationChangeStart",t,r,e,o).defaultPrevented,c.absUrl()===t&&(i?(c.$$parse(r),c.$$state=o,s(r,!1,o)):($=!1,u(r,o)))})),n.$$phase||n.$digest()):a.location.href=t})),n.$watch((function(){if($||c.$$urlUpdatedByLocation){c.$$urlUpdatedByLocation=!1;var t=i.url(),e=c.absUrl(),o=i.state(),a=c.$$replace,l=!function(t,e){return t===e||nn(t).href===nn(e).href}(t,e)||c.$$html5&&r.history&&o!==c.$$state;($||l)&&($=!1,n.$evalAsync((function(){var e=c.absUrl(),i=n.$broadcast("$locationChangeStart",e,t,c.$$state,o).defaultPrevented;c.absUrl()===e&&(i?(c.$$parse(t),c.$$state=o):(l&&s(e,a,o===c.$$state?null:c.$$state),u(t,o)))})))}c.$$replace=!1})),c}]}function ke(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return E(t)&&(t.stack&&a?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 r(t){var e=n.console||{},r=e[t]||e.log||p;return function(){var t=[];return o(arguments,(function(e){t.push(i(e))})),Function.prototype.apply.call(r,e,t)}}var a=Kn||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Oe(t){return t+""}function je(t,e){return void 0!==t?t:e}function Le(t,e){return void 0===t?e:void 0===e?t:t+e}function Te(t,e,n){var i,r,a=t.isPure=function(t,e){switch(t.type){case Vr.MemberExpression:if(t.computed)return!1;break;case Vr.UnaryExpression:return 1;case Vr.BinaryExpression:return"+"!==t.operator&&1;case Vr.CallExpression:return!1}return void 0===e?Nr:e}(t,n);switch(t.type){case Vr.Program:i=!0,o(t.body,(function(t){Te(t.expression,e,a),i=i&&t.expression.constant})),t.constant=i;break;case Vr.Literal:t.constant=!0,t.toWatch=[];break;case Vr.UnaryExpression:Te(t.argument,e,a),t.constant=t.argument.constant,t.toWatch=t.argument.toWatch;break;case Vr.BinaryExpression:Te(t.left,e,a),Te(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.left.toWatch.concat(t.right.toWatch);break;case Vr.LogicalExpression:Te(t.left,e,a),Te(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=t.constant?[]:[t];break;case Vr.ConditionalExpression:Te(t.test,e,a),Te(t.alternate,e,a),Te(t.consequent,e,a),t.constant=t.test.constant&&t.alternate.constant&&t.consequent.constant,t.toWatch=t.constant?[]:[t];break;case Vr.Identifier:t.constant=!1,t.toWatch=[t];break;case Vr.MemberExpression:Te(t.object,e,a),t.computed&&Te(t.property,e,a),t.constant=t.object.constant&&(!t.computed||t.property.constant),t.toWatch=t.constant?[]:[t];break;case Vr.CallExpression:i=n=!!t.filter&&!e(t.callee.name).$stateful,r=[],o(t.arguments,(function(t){Te(t,e,a),i=i&&t.constant,r.push.apply(r,t.toWatch)})),t.constant=i,t.toWatch=n?r:[t];break;case Vr.AssignmentExpression:Te(t.left,e,a),Te(t.right,e,a),t.constant=t.left.constant&&t.right.constant,t.toWatch=[t];break;case Vr.ArrayExpression:i=!0,r=[],o(t.elements,(function(t){Te(t,e,a),i=i&&t.constant,r.push.apply(r,t.toWatch)})),t.constant=i,t.toWatch=r;break;case Vr.ObjectExpression:i=!0,r=[],o(t.properties,(function(t){Te(t.value,e,a),i=i&&t.value.constant,r.push.apply(r,t.value.toWatch),t.computed&&(Te(t.key,e,!1),i=i&&t.key.constant,r.push.apply(r,t.key.toWatch))})),t.constant=i,t.toWatch=r;break;case Vr.ThisExpression:t.constant=!1,t.toWatch=[];break;case Vr.LocalsExpression:t.constant=!1,t.toWatch=[]}}function Me(t){if(1===t.length){var e=(t=t[0].expression).toWatch;return 1!==e.length||e[0]!==t?e:void 0}}function Ie(t){return t.type===Vr.Identifier||t.type===Vr.MemberExpression}function Ve(t){if(1===t.body.length&&Ie(t.body[0].expression))return{type:Vr.AssignmentExpression,left:t.body[0].expression,right:{type:Vr.NGValueParameter},operator:"="}}function Ne(t){this.$filter=t}function De(t){this.$filter=t}function Pe(t,e,n){this.ast=new Vr(t,n),this.astCompiler=n.csp?new De(e):new Ne(e)}function Re(t){return A(t.valueOf)?t.valueOf():Lr.call(t)}function Ue(){var t,e,n=st(),i={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(t,e){i[t]=e},this.setIdentifierFns=function(n,i){return t=n,e=i,this},this.$get=["$filter",function(r){function a(t,e){var i,o;switch(typeof t){case"string":return o=t=t.trim(),(i=n[o])||(i=new Pe(i=new Ir(g),r,g).parse(t),n[o]=h(i)),f(i,e);case"function":return f(t,e);default:return f(p,e)}}function s(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&(t=Re(t),"object"==typeof t&&!n))&&(t===e||t!=t&&e!=e)}function u(t,e,n,i,r){var o;if(1===(u=i.inputs).length){var a=s,u=u[0];return t.$watch((function(t){var e=u(t);return s(e,a,u.isPure)||(o=i(t,void 0,void 0,[e]),a=e&&Re(e)),o}),e,n,r)}for(var c=[],l=[],d=0,h=u.length;d<h;d++)c[d]=s,l[d]=null;return t.$watch((function(t){for(var e=!1,n=0,r=u.length;n<r;n++){var a=u[n](t);(e||(e=!s(a,c[n],u[n].isPure)))&&(l[n]=a,c[n]=a&&Re(a))}return e&&(o=i(t,void 0,void 0,l)),o}),e,n,r)}function c(t,e,n,i,r){function o(){c(u)&&s()}function a(t,e,n,i){return u=p&&i?i[0]:d(t,e,n,i),c(u)&&t.$$postDigest(o),f(u)}var s,u,c=i.literal?l:y,d=i.$$intercepted||i,f=i.$$interceptor||$,p=i.inputs&&!d.inputs;return a.literal=i.literal,a.constant=i.constant,a.inputs=i.inputs,h(a),s=t.$watch(a,e,n,r)}function l(t){var e=!0;return o(t,(function(t){y(t)||(e=!1)})),e}function d(t,e,n,i){var r=t.$watch((function(t){return r(),i(t)}),e,n);return r}function h(t){return t.constant?t.$$watchDelegate=d:t.oneTime?t.$$watchDelegate=c:t.inputs&&(t.$$watchDelegate=u),t}function f(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,i=function(i,r,o,a){return i=n&&a?a[0]:t(i,r,o,a),e(i)};return i.$$intercepted=t,i.$$interceptor=e,i.literal=t.literal,i.oneTime=t.oneTime,i.constant=t.constant,e.$stateful||(n=!t.inputs,i.inputs=t.inputs?t.inputs:[t],e.$$pure||(i.inputs=i.inputs.map((function(t){return t.isPure===Nr?function(e){return t(e)}:t})))),h(i)}var g={csp:vi().noUnsafeEval,literals:V(i),isIdentifierStart:A(t)&&t,isIdentifierContinue:A(e)&&e};return a.$$getAst=function(t){return new Pe(new Ir(g),r,g).getAst(t).ast},a}]}function Fe(){var t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return We((function(t){e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function He(){var t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return We((function(t){e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function We(t,e,n){function r(){return new a}function a(){var t=this.promise=new s;this.resolve=function(e){d(t,e)},this.reject=function(e){h(t,e)},this.notify=function(e){p(t,e)}}function s(){this.$$state={status:0}}function u(){for(;!_&&x.length;){var t=x.shift();if(!t.pur){t.pur=!0;var n="Possibly unhandled rejection: "+("function"==typeof(n=t.value)?n.toString().replace(/ \{[\s\S]*$/,""):v(n)?"undefined":"string"!=typeof n?lt(n,void 0):n);E(t.value)?e(t.value,n):e(n)}}}function c(i){!n||i.pending||2!==i.status||i.pur||(0===_&&0===x.length&&t(u),x.push(i)),!i.processScheduled&&i.pending&&(i.processScheduled=!0,++_,t((function(){var r,o,a;a=i.pending,i.processScheduled=!1,i.pending=void 0;try{for(var s=0,c=a.length;s<c;++s){i.pur=!0,o=a[s][0],r=a[s][i.status];try{A(r)?d(o,r(i.value)):1===i.status?d(o,i.value):h(o,i.value)}catch(t){h(o,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--_,n&&0===_&&t(u)}})))}function d(t,e){t.$$state.status||(e===t?f(t,w("qcycle",e)):function t(e,n){function i(n){a||(a=!0,t(e,n))}function r(t){a||(a=!0,f(e,t))}var o,a=!1;try{(b(n)||A(n))&&(o=n.then),A(o)?(e.$$state.status=-1,o.call(n,i,r,(function(t){p(e,t)}))):(e.$$state.value=n,e.$$state.status=1,c(e.$$state))}catch(t){r(t)}}(t,e))}function h(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,c(t.$$state)}function p(n,i){var r=n.$$state.pending;0>=n.$$state.status&&r&&r.length&&t((function(){for(var t,n,o=0,a=r.length;o<a;o++){n=r[o][0],t=r[o][3];try{p(n,A(t)?t(i):i)}catch(t){e(t)}}}))}function $(t){var e=new s;return h(e,t),e}function g(t,e,n){var i=null;try{A(n)&&(i=n())}catch(t){return $(t)}return i&&A(i.then)?i.then((function(){return e(t)}),$):e(t)}function m(t,e,n,i){var r=new s;return d(r,t),r.then(e,n,i)}function y(t){if(!A(t))throw w("norslvr",t);var e=new s;return t((function(t){d(e,t)}),(function(t){h(e,t)})),e}var w=i("$q",TypeError),_=0,x=[];l(s.prototype,{then:function(t,e,n){if(v(t)&&v(e)&&v(n))return this;var i=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,t,e,n]),0<this.$$state.status&&c(this.$$state),i},catch:function(t){return this.then(null,t)},finally:function(t,e){return this.then((function(e){return g(e,C,t)}),(function(e){return g(e,$,t)}),e)}});var C=m;return y.prototype=s.prototype,y.defer=r,y.reject=$,y.when=m,y.resolve=C,y.all=function(t){var e=new s,n=0,i=S(t)?[]:{};return o(t,(function(t,r){n++,m(t).then((function(t){i[r]=t,--n||d(e,i)}),(function(t){h(e,t)}))})),0===n&&d(e,i),e},y.race=function(t){var e=r();return o(t,(function(t){m(t).then(e.resolve,e.reject)})),e.promise},y}function qe(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,r=!!n,o=r?function(t){var e=n(t);return function(){i(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=r,o}]}function Be(){var t=10,e=i("$rootScope"),n=null,a=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(i,s,u){function c(t){t.currentScope.$$destroyed=!0}function l(){this.$id=++di,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$suspended=this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function d(t){if(m.$$phase)throw e("inprog",m.$$phase);m.$$phase=t}function h(t,e){do{t.$$watchersCount+=e}while(t=t.$parent)}function f(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function $(){}function g(){for(;_.length;)try{_.shift()()}catch(t){i(t)}a=null}l.prototype={constructor:l,$new:function(t,e){var n;return e=e||this,t?(n=new l).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++di,this.$$ChildScope=null,this.$$suspended=!1}return e.prototype=t,e}(this)),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",c),n},$watch:function(t,e,i,r){var o=s(t);if(e=A(e)?e:p,o.$$watchDelegate)return o.$$watchDelegate(this,e,i,o,t);var a=this,u=a.$$watchers,c={fn:e,last:$,get:o,exp:r||t,eq:!!i};return n=null,u||((u=a.$$watchers=[]).$$digestWatchIndex=-1),u.unshift(c),u.$$digestWatchIndex++,h(this,1),function(){var t=I(u,c);0<=t&&(h(a,-1),t<u.$$digestWatchIndex&&u.$$digestWatchIndex--),n=null}},$watchGroup:function(t,e){function n(){u=!1;try{c?(c=!1,e(r,r,s)):e(r,i,s)}finally{for(var n=0;n<t.length;n++)i[n]=r[n]}}var i=Array(t.length),r=Array(t.length),a=[],s=this,u=!1,c=!0;if(!t.length){var l=!0;return s.$evalAsync((function(){l&&e(r,r,s)})),function(){l=!1}}return 1===t.length?this.$watch(t[0],(function(t,n,o){r[0]=t,i[0]=n,e(r,t===n?r:i,o)})):(o(t,(function(t,e){var i=s.$watch(t,(function(t){r[e]=t,u||(u=!0,s.$evalAsync(n))}));a.push(i)})),function(){for(;a.length;)a.shift()()})},$watchCollection:function(t,e){function n(t){var e,n,a;if(!v(i=t)){if(b(i))if(r(i))for(o!==h&&($=(o=h).length=0,l++),t=i.length,$!==t&&(l++,o.length=$=t),e=0;e<t;e++)a=o[e],n=i[e],a!=a&&n!=n||a===n||(l++,o[e]=n);else{for(e in o!==f&&(o=f={},$=0,l++),t=0,i)ei.call(i,e)&&(t++,n=i[e],a=o[e],e in o?a!=a&&n!=n||a===n||(l++,o[e]=n):($++,o[e]=n,l++));if($>t)for(e in l++,o)ei.call(i,e)||($--,delete o[e])}else o!==i&&(o=i,l++);return l}}n.$$pure=s(t).literal,n.$stateful=!n.$$pure;var i,o,a,u=this,c=1<e.length,l=0,d=s(t,n),h=[],f={},p=!0,$=0;return this.$watch(d,(function(){if(p?(p=!1,e(i,i,u)):e(i,a,u),c)if(b(i))if(r(i)){a=Array(i.length);for(var t=0;t<i.length;t++)a[t]=i[t]}else for(t in a={},i)ei.call(i,t)&&(a[t]=i[t]);else a=i}))},$digest:function(){var r,o,s,c,l,h,f,p,v=t,b=y.length?m:this,_=[];d("$digest"),u.$$checkUrlChange(),this===m&&null!==a&&(u.defer.cancel(a),g()),n=null;do{for(l=!1,h=b,c=0;c<y.length;c++){try{(0,(p=y[c]).fn)(p.scope,p.locals)}catch(t){i(t)}n=null}y.length=0;t:do{if(c=!h.$$suspended&&h.$$watchers)for(c.$$digestWatchIndex=c.length;c.$$digestWatchIndex--;)try{if(r=c[c.$$digestWatchIndex])if((o=(0,r.get)(h))===(s=r.last)||(r.eq?D(o,s):hi(o)&&hi(s))){if(r===n){l=!1;break t}}else l=!0,n=r,r.last=r.eq?V(o,null):o,(0,r.fn)(o,s===$?o:s,h),5>v&&(_[f=4-v]||(_[f]=[]),_[f].push({msg:A(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:o,oldVal:s}))}catch(t){i(t)}if(!(c=!h.$$suspended&&h.$$watchersCount&&h.$$childHead||h!==b&&h.$$nextSibling))for(;h!==b&&!(c=h.$$nextSibling);)h=h.$parent}while(h=c);if((l||y.length)&&!v--)throw m.$$phase=null,e("infdig",t,_)}while(l||y.length);for(m.$$phase=null;x<w.length;)try{w[x++]()}catch(t){i(t)}w.length=x=0,u.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;for(var e in this.$broadcast("$destroy"),this.$$destroyed=!0,this===m&&u.$$applicationDestroyed(),h(this,-this.$$watchersCount),this.$$listenerCount)f(this,this.$$listenerCount[e],e);t&&t.$$childHead===this&&(t.$$childHead=this.$$nextSibling),t&&t.$$childTail===this&&(t.$$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=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$$nextSibling=null,function t(e){9===Kn&&(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 s(t)(this,e)},$evalAsync:function(t,e){m.$$phase||y.length||u.defer((function(){y.length&&m.$digest()}),null,"$evalAsync"),y.push({scope:this,fn:s(t),locals:e})},$$postDigest:function(t){w.push(t)},$apply:function(t){try{d("$apply");try{return this.$eval(t)}finally{m.$$phase=null}}catch(t){i(t)}finally{try{m.$digest()}catch(t){throw i(t),t}}},$applyAsync:function(t){var e=this;t&&_.push((function(){e.$eval(t)})),t=s(t),null===a&&(a=u.defer((function(){m.$apply(g)}),null,"$applyAsync"))},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var i=this;do{i.$$listenerCount[t]||(i.$$listenerCount[t]=0),i.$$listenerCount[t]++}while(i=i.$parent);var r=this;return function(){var i=n.indexOf(e);-1!==i&&(delete n[i],f(r,1,t))}},$emit:function(t,e){var n,r,o,a=[],s=this,u=!1,c={name:t,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=P([c],arguments,1);do{for(n=s.$$listeners[t]||a,c.currentScope=s,r=0,o=n.length;r<o;r++)if(n[r])try{n[r].apply(null,l)}catch(t){i(t)}else n.splice(r,1),r--,o--;if(u)break;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(t,e){var n=this,r=this,o={name:t,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[t])return o;for(var a,s,u=P([o],arguments,1);n=r;){for(o.currentScope=n,a=0,s=(r=n.$$listeners[t]||[]).length;a<s;a++)if(r[a])try{r[a].apply(null,u)}catch(t){i(t)}else r.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}return o.currentScope=null,o}};var m=new l,y=m.$$asyncQueue=[],w=m.$$postDigestQueue=[],_=m.$$applyAsyncQueue=[],x=0;return m}]}function ze(){var t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,i){var r=i?e:t,o=nn(n&&n.trim()).href;return""===o||o.match(r)?n:"unsafe:"+o}}}function Ge(t){var e=[];return y(t)&&o(t,(function(t){e.push(function(t){if("self"===t)return t;if(_(t)){if(-1<t.indexOf("***"))throw Pr("iwcard",t);return t=mi(t).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+t+"$")}if(k(t))return new RegExp("^"+t.source+"$");throw Pr("imatcher")}(t))})),e}function Je(){this.SCE_CONTEXTS=Rr;var e=["self"],n=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=Ge(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(t){this.trustedResourceUrlList=t}}),this.bannedResourceUrlList=function(t){return arguments.length&&(n=Ge(t)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(t){this.bannedResourceUrlList=t}}),this.$get=["$injector","$$sanitizeUri",function(i,r){function o(e,n){var i;return"self"===e?(i=rn(n,qr))||(t.document.baseURI?i=t.document.baseURI:(Dr||((Dr=t.document.createElement("a")).href=".",Dr=Dr.cloneNode(!1)),i=Dr.href),i=rn(n,i)):i=!!e.exec(n.href),i}function a(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}var s=function(t){throw Pr("unsafe")};i.has("$sanitize")&&(s=i.get("$sanitize"));var u=a(),c={};return c[Rr.HTML]=a(u),c[Rr.CSS]=a(u),c[Rr.MEDIA_URL]=a(u),c[Rr.URL]=a(c[Rr.MEDIA_URL]),c[Rr.JS]=a(u),c[Rr.RESOURCE_URL]=a(c[Rr.URL]),{trustAs:function(t,e){var n=c.hasOwnProperty(t)?c[t]:null;if(!n)throw Pr("icontext",t,e);if(null===e||v(e)||""===e)return e;if("string"!=typeof e)throw Pr("itype",t);return new n(e)},getTrusted:function(t,i){if(null===i||v(i)||""===i)return i;if((l=c.hasOwnProperty(t)?c[t]:null)&&i instanceof l)return i.$$unwrapTrustedValue();if(A(i.$$unwrapTrustedValue)&&(i=i.$$unwrapTrustedValue()),t===Rr.MEDIA_URL||t===Rr.URL)return r(i.toString(),t===Rr.MEDIA_URL);if(t===Rr.RESOURCE_URL){var a,u,l=nn(i.toString()),d=!1;for(a=0,u=e.length;a<u;a++)if(o(e[a],l)){d=!0;break}if(d)for(a=0,u=n.length;a<u;a++)if(o(n[a],l)){d=!1;break}if(d)return i;throw Pr("insecurl",i.toString())}if(t===Rr.HTML)return s(i);throw Pr("unsafe")},valueOf:function(t){return t instanceof u?t.$$unwrapTrustedValue():t}}}]}function Ke(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>Kn)throw Pr("iequirks");var i=ct(Rr);i.isEnabled=function(){return t},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,t||(i.trustAs=i.getTrusted=function(t,e){return e},i.valueOf=$),i.parseAs=function(t,n){var r=e(n);return r.literal&&r.constant?r:e(n,(function(e){return i.getTrusted(t,e)}))};var r=i.parseAs,a=i.getTrusted,s=i.trustAs;return o(Rr,(function(t,e){var n=ni(e);i[("parse_as_"+n).replace(Ur,dt)]=function(e){return r(t,e)},i[("get_trusted_"+n).replace(Ur,dt)]=function(e){return a(t,e)},i[("trust_as_"+n).replace(Ur,dt)]=function(e){return s(t,e)}})),i}]}function Ze(){this.$get=["$window","$document",function(t,e){var n={},i=!((!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,r=h((/android (\d+)/.exec(ni((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),a=e[0]||{},s=a.body&&a.body.style,u=!1,c=!1;return s&&(u=!(!("transition"in s)&&!("webkitTransition"in s)),c=!(!("animation"in s)&&!("webkitAnimation"in s))),{history:!(!i||4>r||o),hasEvent:function(t){if("input"===t&&Kn)return!1;if(v(n[t])){var e=a.createElement("div");n[t]="on"+t in e}return n[t]},csp:vi(),transitions:u,animations:c,android:r}}]}function Ye(){this.$get=g((function(t){return new Xe(t)}))}function Xe(t){function e(){var t=r.pop();return t&&t.cb}function n(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}}var i={},r=[],o=this.ALL_TASKS_TYPE="$$all$$",a=this.DEFAULT_TASK_TYPE="$$default$$";this.completeTask=function(r,s){s=s||a;try{r()}finally{var u;i[u=s||a]&&(i[u]--,i[o]--),u=i[s];var c=i[o];if(!c||!u)for(u=c?n:e;c=u(s);)try{c()}catch(e){t.error(e)}}},this.incTaskCount=function(t){i[t=t||a]=(i[t]||0)+1,i[o]=(i[o]||0)+1},this.notifyWhenNoPendingTasks=function(t,e){i[e=e||o]?r.push({type:e,cb:t}):t()}}function Qe(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,i,r,o){function a(s,u){a.totalPendingRequests++,_(s)&&!v(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=i.defaults&&i.defaults.transformResponse;return S(c)?c=c.filter((function(t){return t!==se})):c===se&&(c=null),i.get(s,l({cache:n,transformResponse:c},t)).finally((function(){a.totalPendingRequests--})).then((function(t){return n.put(s,t.data)}),(function(t){return u||(t=Fr("tpload",s,t.status,t.statusText),e(t)),r.reject(t)}))}return a.totalPendingRequests=0,a}]}function tn(){this.$get=["$rootScope","$browser","$location",function(t,e,n){return{findBindings:function(t,e,n){t=t.getElementsByClassName("ng-binding");var i=[];return o(t,(function(t){var r=li.element(t).data("$binding");r&&o(r,(function(r){n?new RegExp("(^|\\s)"+mi(e)+"(\\s|\\||$)").test(r)&&i.push(t):-1!==r.indexOf(e)&&i.push(t)}))})),i},findModels:function(t,e,n){for(var i=["ng-","data-ng-","ng\\:"],r=0;r<i.length;++r){var o=t.querySelectorAll("["+i[r]+"model"+(n?"=":"*=")+'"'+e+'"]');if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(e){e!==n.url()&&(n.url(e),t.$digest())},whenStable:function(t){e.notifyWhenNoOutstandingRequests(t)}}}]}function en(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,i,r){function o(o,s,u){A(o)||(u=s,s=o,o=p);var c,l=ri.call(arguments,3),d=y(u)&&!u,h=(d?i:n).defer(),f=h.promise;return c=e.defer((function(){try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),r(t)}finally{delete a[f.$$timeoutId]}d||t.$apply()}),s,"$timeout"),f.$$timeoutId=c,a[c]=h,f}var a={};return o.cancel=function(t){if(!t)return!1;if(!t.hasOwnProperty("$$timeoutId"))throw Hr("badprom");if(!a.hasOwnProperty(t.$$timeoutId))return!1;t=t.$$timeoutId;var n=a[t],i=n.promise;return i.$$state&&(i.$$state.pur=!0),n.reject("canceled"),delete a[t],e.defer.cancel(t)},o}]}function nn(t){return _(t)?(Kn&&(Wr.setAttribute("href",t),t=Wr.href),Wr.setAttribute("href",t),t=Wr.hostname,!Br&&-1<t.indexOf(":")&&(t="["+t+"]"),{href:Wr.href,protocol:Wr.protocol?Wr.protocol.replace(/:$/,""):"",host:Wr.host,search:Wr.search?Wr.search.replace(/^\?/,""):"",hash:Wr.hash?Wr.hash.replace(/^#/,""):"",hostname:t,port:Wr.port,pathname:"/"===Wr.pathname.charAt(0)?Wr.pathname:"/"+Wr.pathname}):t}function rn(t,e){return t=nn(t),e=nn(e),t.protocol===e.protocol&&t.host===e.host}function on(){this.$get=g(t)}function an(t){function e(t){try{return decodeURIComponent(t)}catch(e){return t}}var n=t[0]||{},i={},r="";return function(){var t,o,a,s,u;try{t=n.cookie||""}catch(e){t=""}if(t!==r)for(t=(r=t).split("; "),i={},a=0;a<t.length;a++)0<(s=(o=t[a]).indexOf("="))&&(u=e(o.substring(0,s)),v(i[u])&&(i[u]=e(o.substring(s+1))));return i}}function sn(){this.$get=an}function un(t){function e(n,i){if(b(n)){var r={};return o(n,(function(t,n){r[n]=e(n,t)})),r}return t.factory(n+"Filter",i)}this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+"Filter")}}],e("currency",hn),e("date",wn),e("filter",cn),e("json",_n),e("limitTo",xn),e("lowercase",Xr),e("number",fn),e("orderBy",Sn),e("uppercase",Qr)}function cn(){return function(t,e,n,o){if(!r(t)){if(null==t)return t;throw i("filter")("notarray",t)}var a;switch(o=o||"$",dn(e)){case"function":break;case"boolean":case"null":case"number":case"string":a=!0;case"object":e=function(t,e,n,i){var r=b(t)&&n in t;return!0===e?e=D:A(e)||(e=function(t,e){return!v(t)&&(null===t||null===e?t===e:!(b(e)||b(t)&&!m(t))&&(t=ni(""+t),e=ni(""+e),-1!==t.indexOf(e)))}),function(o){return r&&!b(o)?ln(o,t[n],e,n,!1):ln(o,t,e,n,i)}}(e,n,o,a);break;default:return t}return Array.prototype.filter.call(t,e)}}function ln(t,e,n,i,r,o){var a=dn(t),s=dn(e);if("string"===s&&"!"===e.charAt(0))return!ln(t,e.substring(1),n,i,r);if(S(t))return t.some((function(t){return ln(t,e,n,i,r)}));switch(a){case"object":var u;if(r){for(u in t)if(u.charAt&&"$"!==u.charAt(0)&&ln(t[u],e,n,i,!0))return!0;return!o&&ln(t,e,n,i,!1)}if("object"===s){for(u in e)if(!A(o=e[u])&&!v(o)&&!ln((a=u===i)?t:t[u],o,n,i,a,a))return!1;return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function dn(t){return null===t?"null":typeof t}function hn(t){var e=t.NUMBER_FORMATS;return function(t,n,i){v(n)&&(n=e.CURRENCY_SYM),v(i)&&(i=e.PATTERNS[1].maxFrac);var r=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==t?t:pn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,i).replace(r,n)}}function fn(t){var e=t.NUMBER_FORMATS;return function(t,n){return null==t?t:pn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function pn(t,e,n,i,r){if(!_(t)&&!x(t)||isNaN(t))return"";var o=!isFinite(t),a=!1,s=Math.abs(t)+"",u="";if(o)u="∞";else{for(function(t,e,n,i){var r=t.d,o=r.length-t.i;if(i=r[n=(e=v(e)?Math.min(Math.max(n,o),i):+e)+t.i],0<n){r.splice(Math.max(t.i,n));for(var a=n;a<r.length;a++)r[a]=0}else for(o=Math.max(0,o),t.i=1,r.length=Math.max(1,n=e+1),r[0]=0,a=1;a<n;a++)r[a]=0;if(5<=i)if(0>n-1){for(i=0;i>n;i--)r.unshift(0),t.i++;r.unshift(1),t.i++}else r[n-1]++;for(;o<Math.max(0,e);o++)r.push(0);(e=r.reduceRight((function(t,e,n,i){return e+=t,i[n]=e%10,Math.floor(e/10)}),0))&&(r.unshift(e),t.i++)}(a=function(t){var e,n,i,r,o,a=0;for(-1<(n=t.indexOf(Gr))&&(t=t.replace(Gr,"")),0<(i=t.search(/e/i))?(0>n&&(n=i),n+=+t.slice(i+1),t=t.substring(0,i)):0>n&&(n=t.length),i=0;t.charAt(i)===Jr;i++);if(i===(o=t.length))e=[0],n=1;else{for(o--;t.charAt(o)===Jr;)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=+t.charAt(i)}return n>zr&&(e=e.splice(0,zr-1),a=n-1,n=1),{d:e,e:a,i:n}}(s),r,e.minFrac,e.maxFrac),u=a.d,s=a.i,r=a.e,o=[],a=u.reduce((function(t,e){return t&&!e}),!0);0>s;)u.unshift(0),s++;for(0<s?o=u.splice(s,u.length):(o=u,u=[0]),s=[],u.length>=e.lgSize&&s.unshift(u.splice(-e.lgSize,u.length).join(""));u.length>e.gSize;)s.unshift(u.splice(-e.gSize,u.length).join(""));u.length&&s.unshift(u.join("")),u=s.join(n),o.length&&(u+=i+o.join("")),r&&(u+="e+"+r)}return 0>t&&!a?e.negPre+u+e.negSuf:e.posPre+u+e.posSuf}function $n(t,e,n,i){var r="";for((0>t||i&&0>=t)&&(i?t=1-t:(t=-t,r="-")),t=""+t;t.length<e;)t=Jr+t;return n&&(t=t.substr(t.length-e)),r+t}function gn(t,e,n,i,r){return n=n||0,function(o){return o=o["get"+t](),(0<n||o>-n)&&(o+=n),0===o&&-12===n&&(o=12),$n(o,e,i,r)}}function mn(t,e,n){return function(i,r){var o=i["get"+t]();return r[ii((n?"STANDALONE":"")+(e?"SHORT":"")+t)][o]}}function vn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function yn(t){return function(e){var n=vn(e.getFullYear());return e=+new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))-+n,$n(e=1+Math.round(e/6048e5),t)}}function bn(t,e){return 0>=t.getFullYear()?e.ERAS[0]:e.ERAS[1]}function wn(t){function e(t){var e;if(e=t.match(n)){t=new Date(0);var i=0,r=0,o=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(i=h(e[9]+e[10]),r=h(e[9]+e[11])),o.call(t,h(e[1]),h(e[2])-1,h(e[3])),i=h(e[4]||0)-i,r=h(e[5]||0)-r,o=h(e[6]||0),e=Math.round(1e3*parseFloat("0."+(e[7]||0))),a.call(t,i,r,o,e)}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,r){var a,s,u="",c=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,_(n)&&(n=Yr.test(n)?h(n):e(n)),x(n)&&(n=new Date(n)),!C(n)||!isFinite(n.getTime()))return n;for(;i;)(s=Zr.exec(i))?i=(c=P(c,s,1)).pop():(c.push(i),i=null);var l=n.getTimezoneOffset();return r&&(l=W(r,l),n=B(n,r,!0)),o(c,(function(e){a=Kr[e],u+=a?a(n,t.DATETIME_FORMATS,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),u}}function _n(){return function(t,e){return v(e)&&(e=2),F(t,e)}}function xn(){return function(t,e,n){return e=1/0===Math.abs(Number(e))?Number(e):h(e),hi(e)?t:(x(t)&&(t=t.toString()),r(t)?(n=0>(n=!n||isNaN(n)?0:h(n))?Math.max(0,t.length+n):n,0<=e?Cn(t,n,n+e):0===n?Cn(t,e,t.length):Cn(t,Math.max(0,n+e),n)):t)}}function Cn(t,e,n){return _(t)?t.slice(e,n):ri.call(t,e,n)}function Sn(t){function e(e){return e.map((function(e){var n=1,i=$;if(A(e))i=e;else if(_(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e&&(i=t(e)).constant)){var r=i();i=function(t){return t[r]}}return{get:i,descending:n}}))}function n(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function o(t,e){var n=0,i=t.type;if(i===(r=e.type)){var r=t.value,o=e.value;"string"===i?(r=r.toLowerCase(),o=o.toLowerCase()):"object"===i&&(b(r)&&(r=t.index),b(o)&&(o=e.index)),r!==o&&(n=r<o?-1:1)}else n="undefined"===i?1:"undefined"===r?-1:"null"===i?1:"null"===r||i<r?-1:1;return n}return function(t,a,s,u){if(null==t)return t;if(!r(t))throw i("orderBy")("notarray",t);S(a)||(a=[a]),0===a.length&&(a=["+"]);var c=e(a),l=s?-1:1,d=A(u)?u:o;return(t=Array.prototype.map.call(t,(function(t,e){return{value:t,tieBreaker:{value:e,type:"number",index:e},predicateValues:c.map((function(i){var r=i.get(t);return i=typeof r,null===r?i="null":"object"===i&&(A(r.valueOf)&&n(r=r.valueOf())||m(r)&&n(r=r.toString())),{value:r,type:i,index:e}}))}}))).sort((function(t,e){for(var n=0,i=c.length;n<i;n++){var r=d(t.predicateValues[n],e.predicateValues[n]);if(r)return r*c[n].descending*l}return(d(t.tieBreaker,e.tieBreaker)||o(t.tieBreaker,e.tieBreaker))*l})),t.map((function(t){return t.value}))}}function En(t){return A(t)&&(t={link:t}),t.restrict=t.restrict||"AC",g(t)}function An(t,e,n,i,r){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=r(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$valid=this.$pristine=!0,this.$submitted=this.$invalid=!1,this.$$parentForm=no,this.$$element=t,this.$$animate=i,kn(this)}function kn(t){t.$$classCache={},t.$$classCache[Ro]=!(t.$$classCache[Po]=t.$$element.hasClass(Po))}function On(t){function e(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 n(t,n,i){n=n?"-"+et(n,"-"):"",e(t,Po+n,!0===i),e(t,Ro+n,!1===i)}var i=t.set,r=t.unset;t.clazz.prototype.$setValidity=function(t,o,a){v(o)?(this.$pending||(this.$pending={}),i(this.$pending,t,a)):(this.$pending&&r(this.$pending,t,a),jn(this.$pending)&&(this.$pending=void 0)),L(o)?o?(r(this.$error,t,a),i(this.$$success,t,a)):(i(this.$error,t,a),r(this.$$success,t,a)):(r(this.$error,t,a),r(this.$$success,t,a)),this.$pending?(e(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,n(this,"",null)):(e(this,"ng-pending",!1),this.$valid=jn(this.$error),this.$invalid=!this.$valid,n(this,"",this.$valid)),n(this,t,o=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null)),this.$$parentForm.$setValidity(t,o,this)}}function jn(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function Ln(t){t.$formatters.push((function(e){return t.$isEmpty(e)?e:e.toString()}))}function Tn(t,e,n,i,r,o){var a=ni(e[0].type);if(!r.android){var s=!1;e.on("compositionstart",(function(){s=!0})),e.on("compositionupdate",(function(t){(v(t.data)||""===t.data)&&(s=!1)})),e.on("compositionend",(function(){s=!1,c()}))}var u,c=function(t){if(u&&(o.defer.cancel(u),u=null),!s){var r=e.val();t=t&&t.type,"password"===a||n.ngTrim&&"false"===n.ngTrim||(r=gi(r)),(i.$viewValue!==r||""===r&&i.$$hasNativeValidators)&&i.$setViewValue(r,t)}};if(r.hasEvent("input"))e.on("input",c);else{var l=function(t,e,n){u||(u=o.defer((function(){u=null,e&&e.value===n||c(t)})))};e.on("keydown",(function(t){var e=t.keyCode;91===e||15<e&&19>e||37<=e&&40>=e||l(t,this,this.value)})),r.hasEvent("paste")&&e.on("paste cut drop",l)}e.on("change",c),go[a]&&i.$$hasNativeValidators&&a===n.type&&e.on("keydown wheel mousedown",(function(t){if(!u){var e=this.validity,n=e.badInput,i=e.typeMismatch;u=o.defer((function(){u=null,e.badInput===n&&e.typeMismatch===i||c(t)}))}})),i.$render=function(){var t=i.$isEmpty(i.$viewValue)?"":i.$viewValue;e.val()!==t&&e.val(t)}}function Mn(t,e){return function(n,i){var r,a;if(C(n))return n;if(_(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),ao.test(n))return new Date(n);if(t.lastIndex=0,r=t.exec(n))return r.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(r,(function(t,n){n<e.length&&(a[e[n]]=+t)})),r=new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0),100>a.yyyy&&r.setFullYear(a.yyyy),r}return NaN}}function In(t,e,n,i){return function(r,o,a,s,u,c,l,d){function h(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function f(t){return y(t)&&!C(t)?p(t)||void 0:t}function p(t,e){var i=s.$options.getOption("timezone");g&&g!==i&&(e=q(e,W(g)));var r=n(t,e);return!isNaN(r)&&i&&(r=B(r,i)),r}Vn(r,o,a,s,t),Tn(0,o,a,s,u,c);var $,g,m="time"===t||"datetimelocal"===t;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:e.test(n)?p(n,$):void(s.$$parserName=t)})),s.$formatters.push((function(t){if(t&&!C(t))throw Ho("datefmt",t);if(h(t)){$=t;var e=s.$options.getOption("timezone");e&&(g=e,$=B($,e,!0));var n=i;return m&&_(s.$options.getOption("timeSecondsFormat"))&&(n=i.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,"")),t=l("date")(t,n,e),m&&s.$options.getOption("timeStripZeroSeconds")&&(t=t.replace(/(?::00)?(?:\.000)?$/,"")),t}return g=$=null,""})),y(a.min)||a.ngMin){var b=a.min||d(a.ngMin)(r),w=f(b);s.$validators.min=function(t){return!h(t)||v(w)||n(t)>=w},a.$observe("min",(function(t){t!==b&&(w=f(t),b=t,s.$validate())}))}if(y(a.max)||a.ngMax){var x=a.max||d(a.ngMax)(r),S=f(x);s.$validators.max=function(t){return!h(t)||v(S)||n(t)<=S},a.$observe("max",(function(t){t!==x&&(S=f(t),x=t,s.$validate())}))}}}function Vn(t,e,n,i,r){(i.$$hasNativeValidators=b(e[0].validity))&&i.$parsers.push((function(t){var n=e.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return t;i.$$parserName=r}))}function Nn(t){t.$parsers.push((function(e){return t.$isEmpty(e)?null:co.test(e)?parseFloat(e):void(t.$$parserName="number")})),t.$formatters.push((function(e){if(!t.$isEmpty(e)){if(!x(e))throw Ho("numfmt",e);e=e.toString()}return e}))}function Dn(t){return y(t)&&!x(t)&&(t=parseFloat(t)),hi(t)?void 0:t}function Pn(t){var e=t.toString(),n=e.indexOf(".");return-1===n?-1<t&&1>t&&(t=/e-(\d+)$/.exec(e))?Number(t[1]):0:e.length-n-1}function Rn(t,e,n){var i=(0|(t=Number(t)))!==t,r=(0|e)!==e,o=(0|n)!==n;if(i||r||o){var a=i?Pn(t):0,s=r?Pn(e):0,u=o?Pn(n):0;a=Math.max(a,s,u);t*=a=Math.pow(10,a),e*=a,n*=a,i&&(t=Math.round(t)),r&&(e=Math.round(e)),o&&(n=Math.round(n))}return 0==(t-e)%n}function Un(t,e,n,i,r){if(y(i)){if(!(t=t(i)).constant)throw Ho("constexpr",n,i);return t(e)}return r}function Fn(t,e){function n(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;var n=[],i=0;t:for(;i<t.length;i++){for(var r=t[i],o=0;o<e.length;o++)if(r===e[o])continue t;n.push(r)}return n}function i(t){if(!t)return t;var e=t;return S(t)?e=t.map(i).join(" "):b(t)?e=Object.keys(t).filter((function(e){return t[e]})).join(" "):_(t)||(e=t+""),e}var r;return t="ngClass"+t,["$parse",function(a){return{restrict:"AC",link:function(s,u,c){function l(t,e){var n=[];return o(t,(function(t){(0<e||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(0<e)&&n.push(t))})),n.join(" ")}var d,h=u.data("$classCounts"),f=!0;h||(h=st(),u.data("$classCounts",h)),"ngClass"!==t&&(r||(r=a("$index",(function(t){return 1&t}))),s.$watch(r,(function(t){if(t===e){var n=l((n=d)&&n.split(" "),1);c.$addClass(n)}else n=l((n=d)&&n.split(" "),-1),c.$removeClass(n);f=t}))),s.$watch(a(c[t],i),(function(t){if(f===e){var i=d&&d.split(" "),r=t&&t.split(" "),o=n(i,r);i=n(r,i),o=l(o,-1),i=l(i,1);c.$addClass(i),c.$removeClass(o)}d=t}))}}}]}function Hn(t,e,n,i,r,o){return{restrict:"A",compile:function(a,s){var u=t(s[i]);return function(t,i){i.on(r,(function(i){var r=function(){u(t,{$event:i})};if(e.$$phase)if(o)t.$evalAsync(r);else try{r()}catch(t){n(t)}else t.$apply(r)}))}}}}function Wn(t,e,n,i,r,o,a,s,u){this.$modelValue=this.$viewValue=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=no,this.$options=Wo,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=r(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=i,this.$$animate=o,this.$$timeout=a,this.$$parse=r,this.$$q=s,this.$$exceptionHandler=e,kn(this),function(t){t.$$scope.$watch((function(e){return(e=t.$$ngModelGet(e))===t.$modelValue||t.$modelValue!=t.$modelValue&&e!=e||t.$$setModelValue(e),e}))}(this)}function qn(t){this.$$options=t}function Bn(t,e){o(e,(function(e,n){y(t[n])||(t[n]=e)}))}function zn(t,e){t.prop("selected",e),t.attr("selected",e)}function Gn(t,e,n){if(t){if(_(t)&&(t=new RegExp("^"+t+"$")),!t.test)throw i("ngPattern")("noregexp",e,t,z(n));return t}}function Jn(t){return t=h(t),hi(t)?-1:t}var Kn,Zn,Yn,Xn,Qn={objectMaxDepth:5,urlErrorParamsEnabled:!0},ti=/^\/(.+)\/([a-z]*)$/,ei=Object.prototype.hasOwnProperty,ni=function(t){return _(t)?t.toLowerCase():t},ii=function(t){return _(t)?t.toUpperCase():t},ri=[].slice,oi=[].splice,ai=[].push,si=Object.prototype.toString,ui=Object.getPrototypeOf,ci=i("ng"),li=t.angular||(t.angular={}),di=0;Kn=t.document.documentMode;var hi=Number.isNaN||function(t){return t!=t};p.$inject=[],$.$inject=[];var fi,pi,$i=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,gi=function(t){return _(t)?t.trim():t},mi=function(t){return t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},vi=function(){if(!y(vi.rules)){var e=t.document.querySelector("[ng-csp]")||t.document.querySelector("[data-ng-csp]");if(e){var n=e.getAttribute("ng-csp")||e.getAttribute("data-ng-csp");vi.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else{e=vi;try{new Function(""),n=!1}catch(t){n=!0}e.rules={noUnsafeEval:n,noInlineStyle:!1}}}return vi.rules},yi=function(){if(y(yi.name_))return yi.name_;var e,n,i,r,o=wi.length;for(n=0;n<o;++n)if(i=wi[n],e=t.document.querySelector("["+i.replace(":","\\:")+"jq]")){r=e.getAttribute(i+"jq");break}return yi.name_=r},bi=/:/g,wi=["ng-","data-ng-","ng:","x-ng-"],_i=(fi=t.document,!(pi=fi.currentScript)||(pi instanceof t.HTMLScriptElement||pi instanceof t.SVGScriptElement)&&[(pi=pi.attributes).getNamedItem("src"),pi.getNamedItem("href"),pi.getNamedItem("xlink:href")].every((function(t){if(!t)return!0;if(!t.value)return!1;var e=fi.createElement("a");if(e.href=t.value,fi.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}}))),xi=/[A-Z]/g,Ci=!1,Si=3,Ei={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};$t.expando="ng339";var Ai=$t.cache={},ki=1;$t._data=function(t){return this.cache[t[this.expando]]||{}};var Oi=/-([a-z])/g,ji=/^-ms-/,Li={mouseleave:"mouseout",mouseenter:"mouseover"},Ti=i("jqLite"),Mi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ii=/<|&#?\w+;/,Vi=/<([\w:-]+)/,Ni=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Di={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};Di.tbody=Di.tfoot=Di.colgroup=Di.caption=Di.thead,Di.th=Di.td;var Pi,Ri={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(Pi in Di){var Ui=Di[Pi],Fi=Ui.slice().reverse();Ri[Pi]=[Fi.length,"<"+Fi.join("><")+">","</"+Ui.join("></")+">"]}Ri.optgroup=Ri.option;var Hi=t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))},Wi=$t.prototype={ready:Tt,toString:function(){var t=[];return o(this,(function(e){t.push(""+e)})),"["+t.join(", ")+"]"},eq:function(t){return Zn(0<=t?this[t]:this[this.length+t])},length:0,push:ai,sort:[].sort,splice:[].splice},qi={};o("multiple selected checked disabled readOnly required open".split(" "),(function(t){qi[ni(t)]=t}));var Bi={};o("input select option textarea button form details".split(" "),(function(t){Bi[t]=!0}));var zi={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:xt,removeData:wt,hasData:function(t){for(var e in Ai[t.ng339])return!0;return!1},cleanData:function(t){for(var e=0,n=t.length;e<n;e++)wt(t[e]),bt(t[e])}},(function(t,e){$t[e]=t})),o({data:xt,inheritedData:Ot,scope:function(t){return Zn.data(t,"$scope")||Ot(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return Zn.data(t,"$isolateScope")||Zn.data(t,"$isolateScopeNoTemplate")},controller:kt,injector:function(t){return Ot(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Ct,css:function(t,e,n){if(e=ht(e.replace(ji,"ms-")),!y(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){if((i=t.nodeType)!==Si&&2!==i&&8!==i&&t.getAttribute){var i=ni(e),r=qi[i];if(!y(n))return t=t.getAttribute(e),r&&null!==t&&(t=i),null===t?void 0:t;null===n||!1===n&&r?t.removeAttribute(e):t.setAttribute(e,r?i:n)}},prop:function(t,e,n){if(!y(n))return t[e];t[e]=n},text:function(){function t(t,e){if(v(e)){var n=t.nodeType;return 1===n||n===Si?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(v(e)){if(t.multiple&&"select"===M(t)){var n=[];return o(t.options,(function(t){t.selected&&n.push(t.value||t.text)})),n}return t.value}t.value=e},html:function(t,e){if(v(e))return t.innerHTML;mt(t,!0),t.innerHTML=e},empty:jt},(function(t,e){$t.prototype[e]=function(e,n){var i,r,o=this.length;if(t!==jt&&v(2===t.length&&t!==Ct&&t!==kt?e:n)){if(b(e)){for(i=0;i<o;i++)if(t===xt)t(this[i],e);else for(r in e)t(this[i],r,e[r]);return this}for(o=v(i=t.$dv)?Math.min(o,1):o,r=0;r<o;r++){var a=t(this[r],e,n);i=i?i+a:a}return i}for(i=0;i<o;i++)t(this[i],e,n);return this}})),o({removeData:wt,on:function(t,e,n,i){if(y(i))throw Ti("onargs");if(ft(t)){var r=(i=_t(t,!0)).events,o=i.handle;o||(o=i.handle=function(t,e){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=e[i||n.type],o=r?r.length:0;if(o){if(v(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=r.specialHandlerWrapper||It;1<o&&(r=ct(r));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(t,n,r[u])}};return n.elem=t,n}(t,r));for(var a=(i=0<=e.indexOf(" ")?e.split(" "):[e]).length,s=function(e,i,a){var s=r[e];s||((s=r[e]=[]).specialHandlerWrapper=i,"$destroy"===e||a||t.addEventListener(e,o)),s.push(n)};a--;)e=i[a],Li[e]?(s(Li[e],Vt),s(e,void 0,!0)):s(e)}},off:bt,one:function(t,e,n){(t=Zn(t)).on(e,(function i(){t.off(e,n),t.off(e,i)})),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;mt(t),o(new $t(e),(function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e}))},children:function(t){var e=[];return o(t.childNodes,(function(t){1===t.nodeType&&e.push(t)})),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){if(1===(n=t.nodeType)||11===n)for(var n=0,i=(e=new $t(e)).length;n<i;n++)t.appendChild(e[n])},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;o(new $t(e),(function(e){t.insertBefore(e,n)}))}},wrap:function(t,e){var n=Zn(e).eq(0).clone()[0],i=t.parentNode;i&&i.replaceChild(n,t),n.appendChild(t)},remove:Lt,detach:function(t){Lt(t,!0)},after:function(t,e){var n=t,i=t.parentNode;if(i)for(var r=0,o=(e=new $t(e)).length;r<o;r++){var a=e[r];i.insertBefore(a,n.nextSibling),n=a}},addClass:Et,removeClass:St,toggleClass:function(t,e,n){e&&o(e.split(" "),(function(e){var i=n;v(i)&&(i=!Ct(t,e)),(i?Et:St)(t,e)}))},parent:function(t){return(t=t.parentNode)&&11!==t.nodeType?t:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:gt,triggerHandler:function(t,e,n){var i,r,a=e.type||e,s=_t(t);(s=(s=s&&s.events)&&s[a])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:p,type:a,target:t},e.type&&(i=l(i,e)),e=ct(s),r=n?[i].concat(n):[i],o(e,(function(e){i.isImmediatePropagationStopped()||e.apply(t,r)})))}},(function(t,e){$t.prototype[e]=function(e,n,i){for(var r,o=0,a=this.length;o<a;o++)v(r)?y(r=t(this[o],e,n,i))&&(r=Zn(r)):At(r,t(this[o],e,n,i));return y(r)?r:this}})),$t.prototype.bind=$t.prototype.on,$t.prototype.unbind=$t.prototype.off;var Gi=Object.create(null);Pt.prototype={_idx:function(t){return t!==this._lastKey&&(this._lastKey=t,this._lastIndex=this._keys.indexOf(t)),this._lastIndex},_transformKey:function(t){return hi(t)?Gi:t},get:function(t){if(t=this._transformKey(t),-1!==(t=this._idx(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){return t=this._transformKey(t),-1!==(t=this._idx(t))&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ji=Pt,Ki=[function(){this.$get=[function(){return Ji}]}],Zi=/^([^(]+?)=>/,Yi=/^[^(]*\(\s*([^)]*)\)/m,Xi=/,/,Qi=/^\s*(_?)(\S+?)\1\s*$/,tr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,er=i("$injector");Ut.$$annotate=function(t,e,n){var i;if("function"==typeof t){if(!(i=t.$inject)){if(i=[],t.length){if(e)throw _(n)&&n||(n=t.name||function(t){return(t=Rt(t))?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(t)),er("strictdi",n);o((e=Rt(t))[1].split(Xi),(function(t){t.replace(Qi,(function(t,e,n){i.push(n)}))}))}t.$inject=i}}else S(t)?(rt(t[e=t.length-1],"fn"),i=t.slice(0,e)):rt(t,"fn",!0);return i};var nr=i("$animate"),ir=function(){this.$get=p},rr=function(){var t=new Ji,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function r(t,e,n){var i=!1;return e&&o(e=_(e)?e.split(" "):S(e)?e:[],(function(e){e&&(i=!0,t[e]=n)})),i}function a(){o(e,(function(e){var n=t.get(e);if(n){var i=function(t){_(t)&&(t=t.split(" "));var e=st();return o(t,(function(t){t.length&&(e[t]=!0)})),e}(e.attr("class")),r="",a="";o(n,(function(t,e){t!==!!i[e]&&(t?r+=(r.length?" ":"")+e:a+=(a.length?" ":"")+e)})),o(e,(function(t){r&&Et(t,r),a&&St(t,a)})),t.delete(e)}})),e.length=0}return{enabled:p,on:p,off:p,pin:p,push:function(o,s,u,c){return c&&c(),(u=u||{}).from&&o.css(u.from),u.to&&o.css(u.to),(u.addClass||u.removeClass)&&(s=u.addClass,c=u.removeClass,s=r(u=t.get(o)||{},s,!0),c=r(u,c,!1),(s||c)&&(t.set(o,u),e.push(o),1===e.length&&i.$$postDigest(a))),(o=new n).complete(),o}}}]},or=["$provide",function(t){var e=this,n=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw nr("notcsel",n);var r=n+"-animation";e.$$registeredAnimations[n.substr(1)]=r,t.factory(r,i)},this.customFilter=function(t){return 1===arguments.length&&(i=A(t)?t:null),i},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null)&&/[(\s|\/)]ng-animate[(\s|\/)]/.test(n.toString()))throw n=null,nr("nongcls","ng-animate");return n},this.$get=["$$animateQueue",function(t){function e(t,e,n){if(n){var i;t:{for(i=0;i<n.length;i++){var r=n[i];if(1===r.nodeType){i=r;break t}}i=void 0}!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel:function(t){t.cancel&&t.cancel()},enter:function(n,i,r,o){return i=i&&Zn(i),r=r&&Zn(r),e(n,i=i||r.parent(),r),t.push(n,"enter",Wt(o))},move:function(n,i,r,o){return i=i&&Zn(i),r=r&&Zn(r),e(n,i=i||r.parent(),r),t.push(n,"move",Wt(o))},leave:function(e,n){return t.push(e,"leave",Wt(n),(function(){e.remove()}))},addClass:function(e,n,i){return(i=Wt(i)).addClass=Ht(i.addclass,n),t.push(e,"addClass",i)},removeClass:function(e,n,i){return(i=Wt(i)).removeClass=Ht(i.removeClass,n),t.push(e,"removeClass",i)},setClass:function(e,n,i,r){return(r=Wt(r)).addClass=Ht(r.addClass,n),r.removeClass=Ht(r.removeClass,i),t.push(e,"setClass",r)},animate:function(e,n,i,r,o){return(o=Wt(o)).from=o.from?l(o.from,n):n,o.to=o.to?l(o.to,i):i,o.tempClasses=Ht(o.tempClasses,r||"ng-inline-animate"),t.push(e,"animate",o)}}}]}],ar=function(){this.$get=["$$rAF",function(t){function e(e){n.push(e),1<n.length||t((function(){for(var t=0;t<n.length;t++)n[t]();n=[]}))}var n=[];return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]},sr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(t,e,n,i,r){function a(t){this.setHost(t);var e=n();this._doneCallbacks=[],this._tick=function(t){i()?r(t,0,!1):e(t)},this._state=0}return a.chain=function(t,e){var n=0;!function i(){n===t.length?e(!0):t[n]((function(t){!1===t?e(!1):(n++,i())}))}()},a.all=function(t,e){function n(n){r=r&&n,++i===t.length&&e(r)}var i=0,r=!0;o(t,(function(t){t.done(n)}))},a.prototype={setHost:function(t){this.host=t||{}},done:function(t){2===this._state?t():this._doneCallbacks.push(t)},progress:p,getPromise:function(){if(!this.promise){var e=this;this.promise=t((function(t,n){e.done((function(e){!1===e?n():t()}))}))}return 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(t){2!==this._state&&(o(this._doneCallbacks,(function(e){e(t)})),this._doneCallbacks.length=0,this._state=2)}},a}]},ur=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(t,e,n){return function(e,i){function r(){return t((function(){o.addClass&&(e.addClass(o.addClass),o.addClass=null),o.removeClass&&(e.removeClass(o.removeClass),o.removeClass=null),o.to&&(e.css(o.to),o.to=null),a||s.complete(),a=!0})),s}var o=i||{};o.$$prepared||(o=V(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(e.css(o.from),o.from=null);var a,s=new n;return{start:r,end:r}}}]},cr=i("$compile"),lr=new function(){};Jt.$inject=["$provide","$$sanitizeUriProvider"],Kt.prototype.isFirstChange=function(){return this.previousValue===lr};var dr=/^((?:x|data)[:\-_])/i,hr=/[:\-_]+(.)/g,fr=i("$controller"),pr=/^(\S+)(\s+as\s+([\w$]+))?$/,$r=function(){this.$get=["$document",function(t){return function(e){return e?!e.nodeType&&e instanceof Zn&&(e=e[0]):e=t[0].body,e.offsetWidth+1}}]},gr="application/json",mr={"Content-Type":gr+";charset=utf-8"},vr=/^\[|^\{(?!\{)/,yr={"[":/]$/,"{":/}$/},br=/^\)]\}',?\n/,wr=i("$http"),_r=li.$interpolateMinErr=i("$interpolate");_r.throwNoconcat=function(t){throw _r("noconcat",t)},_r.interr=function(t,e){return _r("interr",t,e.toString())};var xr=i("$interval"),Cr=function(){this.$get=function(){var t=li.callbacks,e={};return{createCallback:function(n){var i="angular.callbacks."+(n="_"+(t.$$counter++).toString(36)),r=function(t){var e=function(t){e.data=t,e.called=!0};return e.id=t,e}(n);return e[i]=t[n]=r,i},wasCalled:function(t){return e[t].called},getResponse:function(t){return e[t].data},removeCallback:function(n){delete t[e[n].id],delete e[n]}}}},Sr=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Er={http:80,https:443,ftp:21},Ar=i("$location"),kr=/^\s*[\\/]{2,}/,Or={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){for(var t=this.$$path,e=this.$$hash,n=function(t){var e=[];return o(t,(function(t,n){S(t)?o(t,(function(t){e.push(Z(n,!0)+(!0===t?"":"="+Z(t,!0)))})):e.push(Z(n,!0)+(!0===t?"":"="+Z(t,!0)))})),e.length?e.join("&"):""}(this.$$search),i=(e=e?"#"+K(e):"",(t=t.split("/")).length);i--;)t[i]=K(t[i].replace(/%2F/g,"/"));this.$$url=t.join("/")+(n?"?"+n:"")+e,this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:Se("$$absUrl"),url:function(t){if(v(t))return this.$$url;var e=Sr.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Se("$$protocol"),host:Se("$$host"),port:Se("$$port"),path:Ee("$$path",(function(t){return"/"===(t=null!==t?t.toString():"").charAt(0)?t:"/"+t})),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(_(t)||x(t))t=t.toString(),this.$$search=J(t);else{if(!b(t))throw Ar("isrcharg");o(t=V(t,{}),(function(e,n){null==e&&delete t[n]})),this.$$search=t}break;default:v(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:Ee("$$hash",(function(t){return null!==t?t.toString():""})),replace:function(){return this.$$replace=!0,this}};o([Ce,xe,_e],(function(t){t.prototype=Object.create(Or),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==_e||!this.$$html5)throw Ar("nostate");return this.$$state=v(e)?null:e,this.$$urlUpdatedByLocation=!0,this}}));var jr=i("$parse"),Lr={}.constructor.prototype.valueOf,Tr=st();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(t){Tr[t]=!0}));var Mr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Ir=function(t){this.options=t};Ir.prototype={constructor:Ir,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;)if('"'===(t=this.text.charAt(this.index))||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var e=t+this.peek(),n=e+this.peek(2),i=Tr[e],r=Tr[n];Tr[t]||i||r?(t=r?n:i?e:t,this.tokens.push({index:this.index,text:t,operator:!0}),this.index+=t.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){return t=t||1,this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(t){return"0"<=t&&"9">=t&&"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.codePointAt(t)):this.isValidIdentifierStart(t)},isValidIdentifierStart:function(t){return"a"<=t&&"z">=t||"A"<=t&&"Z">=t||"_"===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=this.text.charAt(this.index),e=this.peek();if(!e)return t;var n=t.charCodeAt(0),i=e.charCodeAt(0);return 55296<=n&&56319>=n&&56320<=i&&57343>=i?t+e:t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){throw n=n||this.index,e=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n,jr("lexerr",t,e,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=ni(this.text.charAt(this.index));if("."===n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"===n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"===t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"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){var e=this.index;this.index++;for(var n="",i=t,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);i=i+o;if(r)"u"===o?((r=this.text.substring(this.index+1,this.index+5)).match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+r+"]"),this.index+=4,n+=String.fromCharCode(parseInt(r,16))):n+=Mr[o]||o,r=!1;else if("\\"===o)r=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:i,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var Vr=function(t,e){this.lexer=t,this.options=e};Vr.Program="Program",Vr.ExpressionStatement="ExpressionStatement",Vr.AssignmentExpression="AssignmentExpression",Vr.ConditionalExpression="ConditionalExpression",Vr.LogicalExpression="LogicalExpression",Vr.BinaryExpression="BinaryExpression",Vr.UnaryExpression="UnaryExpression",Vr.CallExpression="CallExpression",Vr.MemberExpression="MemberExpression",Vr.Identifier="Identifier",Vr.Literal="Literal",Vr.ArrayExpression="ArrayExpression",Vr.Property="Property",Vr.ObjectExpression="ObjectExpression",Vr.ThisExpression="ThisExpression",Vr.LocalsExpression="LocalsExpression",Vr.NGValueParameter="NGValueParameter",Vr.prototype={ast:function(t){return this.text=t,this.tokens=this.lexer.lex(t),t=this.program(),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:Vr.Program,body:t}},expressionStatement:function(){return{type:Vr.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(!Ie(t))throw jr("lval");t={type:Vr.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:Vr.ConditionalExpression,test:n,alternate:t,consequent:e}):n},logicalOR:function(){for(var t=this.logicalAND();this.expect("||");)t={type:Vr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t},logicalAND:function(){for(var t=this.equality();this.expect("&&");)t={type:Vr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e={type:Vr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e={type:Vr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e={type:Vr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e={type:Vr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e},unary:function(){var t;return(t=this.expect("+","-","!"))?{type:Vr.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=V(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?t={type:Vr.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:Vr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Vr.MemberExpression,object:t,property:this.expression(),computed:!0},this.consume("]")):"."===e.text?t={type:Vr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t},filter:function(t){t=[t];for(var e={type:Vr.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return e},parseArguments:function(){var t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t},identifier:function(){var t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:Vr.Identifier,name:t.text}},constant:function(){return{type:Vr.Literal,value:this.consume().value}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:Vr.ArrayExpression,elements:t}},object:function(){var t,e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:Vr.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)}while(this.expect(","));return this.consume("}"),{type:Vr.ObjectExpression,properties:e}},throwError:function(t,e){throw jr("syntax",e.text,t,e.index+1,this.text,this.text.substring(e.index))},consume:function(t){if(0===this.tokens.length)throw jr("ueoe",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 jr("ueoe",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){var o=(t=this.tokens[t]).text;if(o===e||o===n||o===i||o===r||!(e||n||i||r))return t}return!1},expect:function(t,e,n,i){return!!(t=this.peek(t,e,n,i))&&(this.tokens.shift(),t)},selfReferential:{this:{type:Vr.ThisExpression},$locals:{type:Vr.LocalsExpression}}};var Nr=2;Ne.prototype={compile:function(t){var e=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Te(t,e.$filter);var n,i="";return this.stage="assign",(n=Ve(t))&&(this.state.computing="assign",i=this.nextId(),this.recurse(n,i),this.return_(i),i="fn.assign="+this.generateFunction("assign","s,v,l")),n=Me(t.body),e.stage="inputs",o(n,(function(t,n){var i="fn"+n;e.state[i]={vars:[],body:[],own:{}},e.state.computing=i;var r=e.nextId();e.recurse(t,r),e.return_(r),e.state.inputs.push({name:i,isPure:t.isPure}),t.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(t),t='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",t=new Function("$filter","getStringValue","ifDefined","plus",t)(this.$filter,Oe,je,Le),this.state=this.stage=void 0,t},USE:"use",STRICT:"strict",watchFns:function(){var t=[],e=this.state.inputs,n=this;return o(e,(function(e){t.push("var "+e.name+"="+n.generateFunction(e.name,"s")),e.isPure&&t.push(e.name,".isPure="+JSON.stringify(e.isPure)+";")})),e.length&&t.push("fn.inputs=["+e.map((function(t){return t.name})).join(",")+"];"),t.join("")},generateFunction:function(t,e){return"function("+e+"){"+this.varsPrefix(t)+this.body(t)+"};"},filterPrefix:function(){var t=[],e=this;return o(this.state.filters,(function(n,i){t.push(n+"=$filter("+e.escape(i)+")")})),t.length?"var "+t.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(t,e,n,i,r,a){var s,u,c,l,d,h=this;if(i=i||p,!a&&y(t.watchId))e=e||this.nextId(),this.if_("i",this.lazyAssign(e,this.computedMember("i",t.watchId)),this.lazyRecurse(t,e,n,i,r,!0));else switch(t.type){case Vr.Program:o(t.body,(function(e,n){h.recurse(e.expression,void 0,void 0,(function(t){u=t})),n!==t.body.length-1?h.current().body.push(u,";"):h.return_(u)}));break;case Vr.Literal:l=this.escape(t.value),this.assign(e,l),i(e||l);break;case Vr.UnaryExpression:this.recurse(t.argument,void 0,void 0,(function(t){u=t})),l=t.operator+"("+this.ifDefined(u,0)+")",this.assign(e,l),i(l);break;case Vr.BinaryExpression:this.recurse(t.left,void 0,void 0,(function(t){s=t})),this.recurse(t.right,void 0,void 0,(function(t){u=t})),l="+"===t.operator?this.plus(s,u):"-"===t.operator?this.ifDefined(s,0)+t.operator+this.ifDefined(u,0):"("+s+")"+t.operator+"("+u+")",this.assign(e,l),i(l);break;case Vr.LogicalExpression:e=e||this.nextId(),h.recurse(t.left,e),h.if_("&&"===t.operator?e:h.not(e),h.lazyRecurse(t.right,e)),i(e);break;case Vr.ConditionalExpression:e=e||this.nextId(),h.recurse(t.test,e),h.if_(e,h.lazyRecurse(t.alternate,e),h.lazyRecurse(t.consequent,e)),i(e);break;case Vr.Identifier:e=e||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",t.name)+"?l:s"),n.computed=!1,n.name=t.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",t.name)),(function(){h.if_("inputs"===h.stage||"s",(function(){r&&1!==r&&h.if_(h.isNull(h.nonComputedMember("s",t.name)),h.lazyAssign(h.nonComputedMember("s",t.name),"{}")),h.assign(e,h.nonComputedMember("s",t.name))}))}),e&&h.lazyAssign(e,h.nonComputedMember("l",t.name))),i(e);break;case Vr.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),e=e||this.nextId(),h.recurse(t.object,s,void 0,(function(){h.if_(h.notNull(s),(function(){t.computed?(u=h.nextId(),h.recurse(t.property,u),h.getStringValue(u),r&&1!==r&&h.if_(h.not(h.computedMember(s,u)),h.lazyAssign(h.computedMember(s,u),"{}")),l=h.computedMember(s,u),h.assign(e,l),n&&(n.computed=!0,n.name=u)):(r&&1!==r&&h.if_(h.isNull(h.nonComputedMember(s,t.property.name)),h.lazyAssign(h.nonComputedMember(s,t.property.name),"{}")),l=h.nonComputedMember(s,t.property.name),h.assign(e,l),n&&(n.computed=!1,n.name=t.property.name))}),(function(){h.assign(e,"undefined")})),i(e)}),!!r);break;case Vr.CallExpression:e=e||this.nextId(),t.filter?(u=h.filter(t.callee.name),c=[],o(t.arguments,(function(t){var e=h.nextId();h.recurse(t,e),c.push(e)})),l=u+"("+c.join(",")+")",h.assign(e,l),i(e)):(u=h.nextId(),s={},c=[],h.recurse(t.callee,u,s,(function(){h.if_(h.notNull(u),(function(){o(t.arguments,(function(e){h.recurse(e,t.constant?void 0:h.nextId(),void 0,(function(t){c.push(t)}))})),l=s.name?h.member(s.context,s.name,s.computed)+"("+c.join(",")+")":u+"("+c.join(",")+")",h.assign(e,l)}),(function(){h.assign(e,"undefined")})),i(e)})));break;case Vr.AssignmentExpression:u=this.nextId(),s={},this.recurse(t.left,void 0,s,(function(){h.if_(h.notNull(s.context),(function(){h.recurse(t.right,u),l=h.member(s.context,s.name,s.computed)+t.operator+u,h.assign(e,l),i(e||l)}))}),1);break;case Vr.ArrayExpression:c=[],o(t.elements,(function(e){h.recurse(e,t.constant?void 0:h.nextId(),void 0,(function(t){c.push(t)}))})),l="["+c.join(",")+"]",this.assign(e,l),i(e||l);break;case Vr.ObjectExpression:c=[],d=!1,o(t.properties,(function(t){t.computed&&(d=!0)})),d?(e=e||this.nextId(),this.assign(e,"{}"),o(t.properties,(function(t){t.computed?(s=h.nextId(),h.recurse(t.key,s)):s=t.key.type===Vr.Identifier?t.key.name:""+t.key.value,u=h.nextId(),h.recurse(t.value,u),h.assign(h.member(e,s,t.computed),u)}))):(o(t.properties,(function(e){h.recurse(e.value,t.constant?void 0:h.nextId(),void 0,(function(t){c.push(h.escape(e.key.type===Vr.Identifier?e.key.name:""+e.key.value)+":"+t)}))})),l="{"+c.join(",")+"}",this.assign(e,l)),i(e||l);break;case Vr.ThisExpression:this.assign(e,"s"),i(e||"s");break;case Vr.LocalsExpression:this.assign(e,"l"),i(e||"l");break;case Vr.NGValueParameter:this.assign(e,"v"),i(e||"v")}},getHasOwnProperty:function(t,e){var n=t+"."+e,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,t+"&&("+this.escape(e)+" in "+t+")")),i[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){if(!0===t)e();else{var i=this.current().body;i.push("if(",t,"){"),e(),i.push("}"),n&&(i.push("else{"),n(),i.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,i,r,o){var a=this;return function(){a.recurse(t,e,n,i,r,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))return"'"+t.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(x(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 jr("esc")},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]}},De.prototype={compile:function(t){var e,n,i,r=this;Te(t,r.$filter),(e=Ve(t))&&(n=this.recurse(e)),(e=Me(t.body))&&(i=[],o(e,(function(t,e){var n=r.recurse(t);n.isPure=t.isPure,t.input=n,i.push(n),t.watchId=e})));var a=[];return o(t.body,(function(t){a.push(r.recurse(t.expression))})),t=0===t.body.length?p:1===t.body.length?a[0]:function(t,e){var n;return o(a,(function(i){n=i(t,e)})),n},n&&(t.assign=function(t,e,i){return n(t,i,e)}),i&&(t.inputs=i),t},recurse:function(t,e,n){var i,r,a,s=this;if(t.input)return this.inputs(t.input,t.watchId);switch(t.type){case Vr.Literal:return this.value(t.value,e);case Vr.UnaryExpression:return r=this.recurse(t.argument),this["unary"+t.operator](r,e);case Vr.BinaryExpression:case Vr.LogicalExpression:return i=this.recurse(t.left),r=this.recurse(t.right),this["binary"+t.operator](i,r,e);case Vr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Vr.Identifier:return s.identifier(t.name,e,n);case Vr.MemberExpression:return i=this.recurse(t.object,!1,!!n),t.computed||(r=t.property.name),t.computed&&(r=this.recurse(t.property)),t.computed?this.computedMember(i,r,e,n):this.nonComputedMember(i,r,e,n);case Vr.CallExpression:return a=[],o(t.arguments,(function(t){a.push(s.recurse(t))})),t.filter&&(r=this.$filter(t.callee.name)),t.filter||(r=this.recurse(t.callee,!0)),t.filter?function(t,n,i,o){for(var s=[],u=0;u<a.length;++u)s.push(a[u](t,n,i,o));return t=r.apply(void 0,s,o),e?{context:void 0,name:void 0,value:t}:t}:function(t,n,i,o){var s,u=r(t,n,i,o);if(null!=u.value){s=[];for(var c=0;c<a.length;++c)s.push(a[c](t,n,i,o));s=u.value.apply(u.context,s)}return e?{value:s}:s};case Vr.AssignmentExpression:return i=this.recurse(t.left,!0,1),r=this.recurse(t.right),function(t,n,o,a){var s=i(t,n,o,a);return t=r(t,n,o,a),s.context[s.name]=t,e?{value:t}:t};case Vr.ArrayExpression:return a=[],o(t.elements,(function(t){a.push(s.recurse(t))})),function(t,n,i,r){for(var o=[],s=0;s<a.length;++s)o.push(a[s](t,n,i,r));return e?{value:o}:o};case Vr.ObjectExpression:return a=[],o(t.properties,(function(t){t.computed?a.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):a.push({key:t.key.type===Vr.Identifier?t.key.name:""+t.key.value,computed:!1,value:s.recurse(t.value)})})),function(t,n,i,r){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(t,n,i,r)]=a[s].value(t,n,i,r):o[a[s].key]=a[s].value(t,n,i,r);return e?{value:o}:o};case Vr.ThisExpression:return function(t){return e?{value:t}:t};case Vr.LocalsExpression:return function(t,n){return e?{value:n}:n};case Vr.NGValueParameter:return function(t,n,i){return e?{value:i}:i}}},"unary+":function(t,e){return function(n,i,r,o){return n=y(n=t(n,i,r,o))?+n:0,e?{value:n}:n}},"unary-":function(t,e){return function(n,i,r,o){return n=y(n=t(n,i,r,o))?-n:-0,e?{value:n}:n}},"unary!":function(t,e){return function(n,i,r,o){return n=!t(n,i,r,o),e?{value:n}:n}},"binary+":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a);return s=Le(s,i=e(i,r,o,a)),n?{value:s}:s}},"binary-":function(t,e,n){return function(i,r,o,a){var s=t(i,r,o,a);return i=e(i,r,o,a),s=(y(s)?s:0)-(y(i)?i:0),n?{value:s}:s}},"binary*":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)*e(i,r,o,a),n?{value:i}:i}},"binary/":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)/e(i,r,o,a),n?{value:i}:i}},"binary%":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)%e(i,r,o,a),n?{value:i}:i}},"binary===":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)===e(i,r,o,a),n?{value:i}:i}},"binary!==":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)!==e(i,r,o,a),n?{value:i}:i}},"binary==":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)==e(i,r,o,a),n?{value:i}:i}},"binary!=":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)!=e(i,r,o,a),n?{value:i}:i}},"binary<":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)<e(i,r,o,a),n?{value:i}:i}},"binary>":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)>e(i,r,o,a),n?{value:i}:i}},"binary<=":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)<=e(i,r,o,a),n?{value:i}:i}},"binary>=":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)>=e(i,r,o,a),n?{value:i}:i}},"binary&&":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)&&e(i,r,o,a),n?{value:i}:i}},"binary||":function(t,e,n){return function(i,r,o,a){return i=t(i,r,o,a)||e(i,r,o,a),n?{value:i}:i}},"ternary?:":function(t,e,n,i){return function(r,o,a,s){return r=t(r,o,a,s)?e(r,o,a,s):n(r,o,a,s),i?{value:r}:r}},value:function(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}},identifier:function(t,e,n){return function(i,r,o,a){return i=r&&t in r?r:i,n&&1!==n&&i&&null==i[t]&&(i[t]={}),r=i?i[t]:void 0,e?{context:i,name:t,value:r}:r}},computedMember:function(t,e,n,i){return function(r,o,a,s){var u,c,l=t(r,o,a,s);return null!=l&&(u=e(r,o,a,s),u+="",i&&1!==i&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(t,e,n,i){return function(r,o,a,s){return r=t(r,o,a,s),i&&1!==i&&r&&null==r[e]&&(r[e]={}),o=null!=r?r[e]:void 0,n?{context:r,name:e,value:o}:o}},inputs:function(t,e){return function(n,i,r,o){return o?o[e]:t(n,i,r)}}},Pe.prototype={constructor:Pe,parse:function(t){t=this.getAst(t);var e=this.astCompiler.compile(t.ast),n=t.ast;return e.literal=0===n.body.length||1===n.body.length&&(n.body[0].expression.type===Vr.Literal||n.body[0].expression.type===Vr.ArrayExpression||n.body[0].expression.type===Vr.ObjectExpression),e.constant=t.ast.constant,e.oneTime=t.oneTime,e},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 Dr,Pr=i("$sce"),Rr={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ur=/_([a-z])/g,Fr=i("$templateRequest"),Hr=i("$timeout"),Wr=t.document.createElement("a"),qr=nn(t.location.href);Wr.href="http://[::1]";var Br="[::1]"===Wr.hostname;an.$inject=["$document"],un.$inject=["$provide"];var zr=22,Gr=".",Jr="0";hn.$inject=["$locale"],fn.$inject=["$locale"];var Kr={yyyy:gn("FullYear",4,0,!1,!0),yy:gn("FullYear",2,0,!0,!0),y:gn("FullYear",1,0,!1,!0),MMMM:mn("Month"),MMM:mn("Month",!0),MM:gn("Month",2,1),M:gn("Month",1,1),LLLL:mn("Month",!1,!0),dd:gn("Date",2),d:gn("Date",1),HH:gn("Hours",2),H:gn("Hours",1),hh:gn("Hours",2,-12),h:gn("Hours",1,-12),mm:gn("Minutes",2),m:gn("Minutes",1),ss:gn("Seconds",2),s:gn("Seconds",1),sss:gn("Milliseconds",3),EEEE:mn("Day"),EEE:mn("Day",!0),a:function(t,e){return 12>t.getHours()?e.AMPMS[0]:e.AMPMS[1]},Z:function(t,e,n){return(0<=(t=-1*n)?"+":"")+($n(Math[0<t?"floor":"ceil"](t/60),2)+$n(Math.abs(t%60),2))},ww:yn(2),w:yn(1),G:bn,GG:bn,GGG:bn,GGGG:function(t,e){return 0>=t.getFullYear()?e.ERANAMES[0]:e.ERANAMES[1]}},Zr=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,Yr=/^-?\d+$/;wn.$inject=["$locale"];var Xr=g(ni),Qr=g(ii);Sn.$inject=["$parse"];var to=g({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref)return function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===si.call(e.prop("href"))?"xlink:href":"href";e.on("click",(function(t){e.attr(n)||t.preventDefault()}))}}}}),eo={};o(qi,(function(t,e){function n(t,n,r){t.$watch(r[i],(function(t){r.$set(e,!!t)}))}if("multiple"!==t){var i=Zt("ng-"+e),r=n;"checked"===t&&(r=function(t,e,r){r.ngModel!==r[i]&&n(t,0,r)}),eo[i]=function(){return{restrict:"A",priority:100,link:r}}}})),o(zi,(function(t,e){eo[e]=function(){return{priority:100,link:function(t,n,i){"ngPattern"===e&&"/"===i.ngPattern.charAt(0)&&(n=i.ngPattern.match(ti))?i.$set("ngPattern",new RegExp(n[1],n[2])):t.$watch(i[e],(function(t){i.$set(e,t)}))}}}})),o(["src","srcset","href"],(function(t){var e=Zt("ng-"+t);eo[e]=["$sce",function(n){return{priority:99,link:function(i,r,o){var a=t,s=t;"href"===t&&"[object SVGAnimatedString]"===si.call(r.prop("href"))&&(s="xlinkHref",o.$attr[s]="xlink:href",a=null),o.$set(e,n.getTrustedMediaUrl(o[e])),o.$observe(e,(function(e){e?(o.$set(s,e),Kn&&a&&r.prop(a,o[s])):"href"===t&&o.$set(s,null)}))}}}]}));var no={$addControl:p,$getControls:g([]),$$renameControl:function(t,e){t.$name=e},$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p,$$setSubmitted:p};An.$inject=["$element","$attrs","$scope","$animate","$interpolate"],An.prototype={$rollbackViewValue:function(){o(this.$$controls,(function(t){t.$rollbackViewValue()}))},$commitViewValue:function(){o(this.$$controls,(function(t){t.$commitViewValue()}))},$addControl:function(t){ot(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls:function(){return ct(this.$$controls)},$$renameControl:function(t,e){var n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl:function(t){t.$name&&this[t.$name]===t&&delete this[t.$name],o(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),o(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),o(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),I(this.$$controls,t),t.$$parentForm=no},$setDirty:function(){this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Fo),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Uo,Fo+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,(function(t){t.$setPristine()}))},$setUntouched:function(){o(this.$$controls,(function(t){t.$setUntouched()}))},$setSubmitted:function(){for(var t=this;t.$$parentForm&&t.$$parentForm!==no;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,o(this.$$controls,(function(t){t.$$setSubmitted&&t.$$setSubmitted()}))}},On({clazz:An,set:function(t,e,n){var i=t[e];i?-1===i.indexOf(n)&&i.push(n):t[e]=[n]},unset:function(t,e,n){var i=t[e];i&&(I(i,n),0===i.length&&delete t[e])}});var io=function(t){return["$timeout","$parse",function(e,n){function i(t){return""===t?n('this[""]').assign:n(t).assign||p}return{name:"form",restrict:t?"EAC":"E",require:["form","^^?form"],controller:An,compile:function(n,r){n.addClass(Uo).addClass(Po);var o=r.name?"name":!(!t||!r.ngForm)&&"ngForm";return{pre:function(t,n,r,a){var s=a[0];if(!("action"in r)){var u=function(e){t.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),e.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",(function(){e((function(){n[0].removeEventListener("submit",u)}),0,!1)}))}(a[1]||s.$$parentForm).$addControl(s);var c=o?i(s.$name):p;o&&(c(t,s),r.$observe(o,(function(e){s.$name!==e&&(c(t,void 0),s.$$parentForm.$$renameControl(s,e),(c=i(s.$name))(t,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),c(t,void 0),l(s,no)}))}}}}}]},ro=io(),oo=io(!0),ao=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,so=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,uo=/^(?=.{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*$/,lo=/^(\d{4,})-(\d{2})-(\d{2})$/,ho=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,fo=/^(\d{4,})-W(\d\d)$/,po=/^(\d{4,})-(\d\d)$/,$o=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,go=st();o(["date","datetime-local","month","time","week"],(function(t){go[t]=!0}));var mo={text:function(t,e,n,i,r,o){Tn(0,e,n,i,r,o),Ln(i)},date:In("date",lo,Mn(lo,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":In("datetimelocal",ho,Mn(ho,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:In("time",$o,Mn($o,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:In("week",fo,(function(t,e){if(C(t))return t;if(_(t)){fo.lastIndex=0;var n=fo.exec(t);if(n){var i=+n[1],r=+n[2],o=n=0,a=0,s=0,u=vn(i);r=7*(r-1);return e&&(n=e.getHours(),o=e.getMinutes(),a=e.getSeconds(),s=e.getMilliseconds()),new Date(i,0,u.getDate()+r,n,o,a,s)}}return NaN}),"yyyy-Www"),month:In("month",po,Mn(po,["yyyy","MM"]),"yyyy-MM"),number:function(t,e,n,i,r,o,a,s){var u;if(Vn(0,e,0,i,"number"),Nn(i),Tn(0,e,n,i,r,o),y(n.min)||n.ngMin){var c=n.min||s(n.ngMin)(t);u=Dn(c),i.$validators.min=function(t,e){return i.$isEmpty(e)||v(u)||e>=u},n.$observe("min",(function(t){t!==c&&(u=Dn(t),c=t,i.$validate())}))}if(y(n.max)||n.ngMax){var l=n.max||s(n.ngMax)(t),d=Dn(l);i.$validators.max=function(t,e){return i.$isEmpty(e)||v(d)||e<=d},n.$observe("max",(function(t){t!==l&&(d=Dn(t),l=t,i.$validate())}))}if(y(n.step)||n.ngStep){var h=n.step||s(n.ngStep)(t),f=Dn(h);i.$validators.step=function(t,e){return i.$isEmpty(e)||v(f)||Rn(e,u||0,f)},n.$observe("step",(function(t){t!==h&&(f=Dn(t),h=t,i.$validate())}))}},url:function(t,e,n,i,r,o){Tn(0,e,n,i,r,o),Ln(i),i.$validators.url=function(t,e){var n=t||e;return i.$isEmpty(n)||so.test(n)}},email:function(t,e,n,i,r,o){Tn(0,e,n,i,r,o),Ln(i),i.$validators.email=function(t,e){var n=t||e;return i.$isEmpty(n)||uo.test(n)}},radio:function(t,e,n,i){var r=!n.ngTrim||"false"!==gi(n.ngTrim);v(n.name)&&e.attr("name",++di),e.on("change",(function(t){var o;e[0].checked&&(o=n.value,r&&(o=gi(o)),i.$setViewValue(o,t&&t.type))})),i.$render=function(){var t=n.value;r&&(t=gi(t)),e[0].checked=t===i.$viewValue},n.$observe("value",i.$render)},range:function(t,e,n,i,r,o){function a(t,i){e.attr(t,n[t]);var r=n[t];n.$observe(t,(function(t){t!==r&&(r=t,i(t))}))}Vn(0,e,0,i,"range"),Nn(i),Tn(0,e,n,i,r,o);var s=i.$$hasNativeValidators&&"range"===e[0].type,u=s?0:void 0,c=s?100:void 0,l=s?1:void 0,d=e[0].validity;t=y(n.min),r=y(n.max),o=y(n.step);var h=i.$render;i.$render=s&&y(d.rangeUnderflow)&&y(d.rangeOverflow)?function(){h(),i.$setViewValue(e.val())}:h,t&&(u=Dn(n.min),i.$validators.min=s?function(){return!0}:function(t,e){return i.$isEmpty(e)||v(u)||e>=u},a("min",(function(t){u=Dn(t),hi(i.$modelValue)||(s?(t=e.val(),u>t&&(t=u,e.val(t)),i.$setViewValue(t)):i.$validate())}))),r&&(c=Dn(n.max),i.$validators.max=s?function(){return!0}:function(t,e){return i.$isEmpty(e)||v(c)||e<=c},a("max",(function(t){c=Dn(t),hi(i.$modelValue)||(s?(t=e.val(),c<t&&(e.val(c),t=c<u?u:c),i.$setViewValue(t)):i.$validate())}))),o&&(l=Dn(n.step),i.$validators.step=s?function(){return!d.stepMismatch}:function(t,e){return i.$isEmpty(e)||v(l)||Rn(e,u||0,l)},a("step",(function(t){l=Dn(t),hi(i.$modelValue)||(s?i.$viewValue!==e.val()&&i.$setViewValue(e.val()):i.$validate())})))},checkbox:function(t,e,n,i,r,o,a,s){var u=Un(s,t,"ngTrueValue",n.ngTrueValue,!0),c=Un(s,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){i.$setViewValue(e[0].checked,t&&t.type)})),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return!1===t},i.$formatters.push((function(t){return D(t,u)})),i.$parsers.push((function(t){return t?u:c}))},hidden:p,button:p,submit:p,reset:p,file:p},vo=["$browser","$sniffer","$filter","$parse",function(t,e,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,a,s){s[0]&&(mo[ni(a.type)]||mo.text)(r,o,a,s[0],e,t,n,i)}}}}],yo=function(){var t={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile:function(e,n){if("hidden"===ni(n.type))return{pre:function(e,n,i,r){(e=n[0]).parentNode&&e.parentNode.insertBefore(e,e.nextSibling),Object.defineProperty&&Object.defineProperty(e,"value",t)}}}}},bo=/^(true|false|\d+)$/,wo=function(){function t(t,e,n){var i=y(n)?n:9===Kn?"":null;t.prop("value",i),e.$set("value",n)}return{restrict:"A",priority:100,compile:function(e,n){return bo.test(n.ngValue)?function(e,n,i){t(n,i,e=e.$eval(i.ngValue))}:function(e,n,i){e.$watch(i.ngValue,(function(e){t(n,i,e)}))}}}},_o=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,n,i){t.$$addBindingInfo(n,i.ngBind),n=n[0],e.$watch(i.ngBind,(function(t){n.textContent=ut(t)}))}}}}],xo=["$interpolate","$compile",function(t,e){return{compile:function(n){return e.$$addBindingClass(n),function(n,i,r){n=t(i.attr(r.$attr.ngBindTemplate)),e.$$addBindingInfo(i,n.expressions),i=i[0],r.$observe("ngBindTemplate",(function(t){i.textContent=v(t)?"":t}))}}}}],Co=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(i,r){var o=e(r.ngBindHtml),a=e(r.ngBindHtml,(function(e){return t.valueOf(e)}));return n.$$addBindingClass(i),function(e,i,r){n.$$addBindingInfo(i,r.ngBindHtml),e.$watch(a,(function(){var n=o(e);i.html(t.getTrustedHtml(n)||"")}))}}}}],So=g({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push((function(){t.$eval(n.ngChange)}))}}),Eo=Fn("",!0),Ao=Fn("Odd",0),ko=Fn("Even",1),Oo=En({compile:function(t,e){e.$set("ngCloak",void 0),t.removeClass("ng-cloak")}}),jo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Lo={},To={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(t){var e=Zt("ng-"+t);Lo[e]=["$parse","$rootScope","$exceptionHandler",function(n,i,r){return Hn(n,i,r,e,t,To[t])}]}));var Mo=["$animate","$compile",function(t,e){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,a){var s,u,c;n.$watch(r.ngIf,(function(n){n?u||a((function(n,o){u=o,n[n.length++]=e.$$createComment("end ngIf",r.ngIf),s={clone:n},t.enter(n,i.parent(),i)})):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=at(s.clone),t.leave(c).done((function(t){!1!==t&&(c=null)})),s=null))}))}}}],Io=["$templateRequest","$anchorScroll","$animate",function(t,e,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:li.noop,compile:function(i,r){var o=r.ngInclude||r.src,a=r.onload||"",s=r.autoscroll;return function(i,r,u,c,l){var d,h,f,p=0,$=function(){h&&(h.remove(),h=null),d&&(d.$destroy(),d=null),f&&(n.leave(f).done((function(t){!1!==t&&(h=null)})),h=f,f=null)};i.$watch(o,(function(o){var u=function(t){!1===t||!y(s)||s&&!i.$eval(s)||e()},h=++p;o?(t(o,!0).then((function(t){if(!i.$$destroyed&&h===p){var e=i.$new();c.template=t,t=l(e,(function(t){$(),n.enter(t,null,r).done(u)})),f=t,(d=e).$emit("$includeContentLoaded",o),i.$eval(a)}}),(function(){i.$$destroyed||h!==p||($(),i.$emit("$includeContentError",o))})),i.$emit("$includeContentRequested",o)):($(),c.template=null)}))}}}}],Vo=["$compile",function(e){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,o){si.call(i[0]).match(/SVG/)?(i.empty(),e(pt(o.template,t.document).childNodes)(n,(function(t){i.append(t)}),{futureParentElement:i})):(i.html(o.template),e(i.contents())(n))}}}],No=En({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),Do=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,n,i){var r=n.ngList||", ",a="false"!==n.ngTrim,s=a?gi(r):r;i.$parsers.push((function(t){if(!v(t)){var e=[];return t&&o(t.split(s),(function(t){t&&e.push(a?gi(t):t)})),e}})),i.$formatters.push((function(t){if(S(t))return t.join(r)})),i.$isEmpty=function(t){return!t||!t.length}}}},Po="ng-valid",Ro="ng-invalid",Uo="ng-pristine",Fo="ng-dirty",Ho=i("ngModel");Wn.$inject="$scope $exceptionHandler $attrs $element $parse $animate $timeout $q $interpolate".split(" "),Wn.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var t=this.$$parse(this.$$attr.ngModel+"()"),e=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(e){var n=this.$$parsedNgModel(e);return A(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){A(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw Ho("nonassign",this.$$attr.ngModel,z(this.$$element))},$render:p,$isEmpty:function(t){return v(t)||""===t||null===t||t!=t},$$updateEmptyClasses:function(t){this.$isEmpty(t)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Fo),this.$$animate.addClass(this.$$element,Uo)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Uo),this.$$animate.addClass(this.$$element,Fo),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!hi(this.$modelValue)){var t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,i=this.$modelValue,r=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(e,t,(function(t){r||n===t||(o.$modelValue=t?e:void 0,o.$modelValue!==i&&o.$$writeModelToScope())}))}},$$runValidators:function(t,e,n){function i(t,e){a===s.$$currentValidationRunId&&s.$setValidity(t,e)}function r(t){a===s.$$currentValidationRunId&&n(t)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;!function(){var t=s.$$parserName;return v(s.$$parserValid)?(i(t,null),!0):(s.$$parserValid||(o(s.$validators,(function(t,e){i(e,null)})),o(s.$asyncValidators,(function(t,e){i(e,null)}))),i(t,s.$$parserValid),s.$$parserValid)}()?r(!1):function(){var n=!0;return o(s.$validators,(function(r,o){var a=Boolean(r(t,e));n=n&&a,i(o,a)})),!!n||(o(s.$asyncValidators,(function(t,e){i(e,null)})),!1)}()?function(){var n=[],a=!0;o(s.$asyncValidators,(function(r,o){var s=r(t,e);if(!s||!A(s.then))throw Ho("nopromise",s);i(o,void 0),n.push(s.then((function(){i(o,!0)}),(function(){a=!1,i(o,!1)})))})),n.length?s.$$q.all(n).then((function(){r(a)}),p):r(!0)}():r(!1)},$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 t=this.$$lastCommittedViewValue,e=this;if(this.$$parserValid=!v(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(v(t=this.$parsers[n](t))){this.$$parserValid=!1;break}hi(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,r=this.$options.getOption("allowInvalid");this.$$rawModelValue=t,r&&(this.$modelValue=t,e.$modelValue!==i&&e.$$writeModelToScope()),this.$$runValidators(t,this.$$lastCommittedViewValue,(function(n){r||(e.$modelValue=n?t:void 0,e.$modelValue!==i&&e.$$writeModelToScope())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(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");x(e[t])?e=e[t]:x(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:x(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=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,p))},$$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.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(t){this.$$debounceViewValueCommit(t&&t.type)}},On({clazz:Wn,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]}});var Wo,qo=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Wn,priority:1,compile:function(e){return e.addClass(Uo).addClass("ng-untouched").addClass(Po),{pre:function(t,e,n,i){var r=i[0];e=i[1]||r.$$parentForm,(i=i[2])&&(r.$options=i.$options),r.$$initGetterSetters(),e.$addControl(r),n.$observe("name",(function(t){r.$name!==t&&r.$$parentForm.$$renameControl(r,t)})),t.$on("$destroy",(function(){r.$$parentForm.$removeControl(r)}))},post:function(e,n,i,r){function o(){a.$setTouched()}var a=r[0];a.$$setUpdateOnEvents(),n.on("blur",(function(){a.$touched||(t.$$phase?e.$evalAsync(o):e.$apply(o))}))}}}}}],Bo=/(\s+|^)default(\s+|$)/;qn.prototype={getOption:function(t){return this.$$options[t]},createChild:function(t){var e=!1;return o(t=l({},t),(function(n,i){"$inherit"===n?"*"===i?e=!0:(t[i]=this.$$options[i],"updateOn"===i&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===i&&(t.updateOnDefault=!1,t[i]=gi(n.replace(Bo,(function(){return t.updateOnDefault=!0," "}))))}),this),e&&(delete t["*"],Bn(t,this.$$options)),Bn(t,Wo.$$options),new qn(t)}},Wo=new qn({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var zo=function(){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:Wo,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:t}},Go=En({terminal:!0,priority:1e3}),Jo=i("ngOptions"),Ko=/^\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]+?))?$/,Zo=["$compile","$document","$parse",function(e,n,i){function a(t,e,n){function o(t,e,n,i,r){this.selectValue=t,this.viewValue=e,this.label=n,this.group=i,this.disabled=r}function a(t){var e;if(!c&&r(t))e=t;else for(var n in e=[],t)t.hasOwnProperty(n)&&"$"!==n.charAt(0)&&e.push(n);return e}var s=t.match(Ko);if(!s)throw Jo("iexp",t,z(e));var u=s[5]||s[7],c=s[6];t=/ as /.test(s[0])&&s[1];var l=s[9];e=i(s[2]?s[1]:u);var d=t&&i(t)||e,h=l&&i(l),f=l?function(t,e){return h(n,e)}:function(t){return Dt(t)},p=function(t,e){return f(t,b(t,e))},$=i(s[2]||s[1]),g=i(s[3]||""),m=i(s[4]||""),v=i(s[8]),y={},b=c?function(t,e){return y[c]=e,y[u]=t,y}:function(t){return y[u]=t,y};return{trackBy:l,getTrackByValue:p,getWatchables:i(v,(function(t){for(var e=[],i=a(t=t||[]),r=i.length,o=0;o<r;o++){var u=t[c=t===i?o:i[o]],c=b(u,c);u=f(u,c);e.push(u),(s[2]||s[1])&&(u=$(n,c),e.push(u)),s[4]&&(c=m(n,c),e.push(c))}return e})),getOptions:function(){for(var t=[],e={},i=v(n)||[],r=a(i),s=r.length,u=0;u<s;u++){var c=i===r?u:r[u],h=b(i[c],c),y=d(n,h);y=new o(c=f(y,h),y,$(n,h),g(n,h),h=m(n,h));t.push(y),e[c]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:function(t){return e[p(t)]},getViewValueFromOption:function(t){return l?V(t.viewValue):t.viewValue}}}}}var s=t.document.createElement("option"),u=t.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,i){i[0].registerOption=p},post:function(t,i,r,c){function l(t){var e=(t=m.getOptionFromViewValue(t))&&t.element;return e&&!e.selected&&(e.selected=!0),t}function d(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label),e.value=t.selectValue}var h=c[0],f=c[1],p=r.multiple;c=0;for(var $=i.children(),g=$.length;c<g;c++)if(""===$[c].value){h.hasEmptyOption=!0,h.emptyOption=$.eq(c);break}i.empty(),c=!!h.emptyOption,Zn(s.cloneNode(!1)).val("?");var m,v=a(r.ngOptions,i,t),b=n[0].createDocumentFragment();h.generateUnknownOptionValue=function(t){return"?"},p?(h.writeValue=function(t){if(m){var e=t&&t.map(l)||[];m.items.forEach((function(t){t.element.selected&&-1===Array.prototype.indexOf.call(e,t)&&(t.element.selected=!1)}))}},h.readValue=function(){var t=i.val()||[],e=[];return o(t,(function(t){(t=m.selectValueMap[t])&&!t.disabled&&e.push(m.getViewValueFromOption(t))})),e},v.trackBy&&t.$watchCollection((function(){if(S(f.$viewValue))return f.$viewValue.map((function(t){return v.getTrackByValue(t)}))}),(function(){f.$render()}))):(h.writeValue=function(t){if(m){var e=i[0].options[i[0].selectedIndex],n=m.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(i[0].value!==n.selectValue&&(h.removeUnknownOption(),i[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):h.selectUnknownOrEmptyOption(t)}},h.readValue=function(){var t=m.selectValueMap[i.val()];return t&&!t.disabled?(h.unselectEmptyOption(),h.removeUnknownOption(),m.getViewValueFromOption(t)):null},v.trackBy&&t.$watch((function(){return v.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),c&&(e(h.emptyOption)(t),i.prepend(h.emptyOption),8===h.emptyOption[0].nodeType?(h.hasEmptyOption=!1,h.registerOption=function(t,e){""===e.val()&&(h.hasEmptyOption=!0,h.emptyOption=e,h.emptyOption.removeClass("ng-scope"),f.$render(),e.on("$destroy",(function(){var t=h.$isEmptyOptionSelected();h.hasEmptyOption=!1,h.emptyOption=void 0,t&&f.$render()})))}):h.emptyOption.removeClass("ng-scope")),t.$watchCollection(v.getWatchables,(function(){var t=m&&h.readValue();if(m)for(var e=m.items.length-1;0<=e;e--){var n=m.items[e];y(n.group)?Lt(n.element.parentNode):Lt(n.element)}m=v.getOptions();var r={};m.items.forEach((function(t){var e;if(y(t.group)){(e=r[t.group])||(e=u.cloneNode(!1),b.appendChild(e),e.label=null===t.group?"null":t.group,r[t.group]=e);var n=s.cloneNode(!1);e.appendChild(n),d(t,n)}else e=s.cloneNode(!1),b.appendChild(e),d(t,e)})),i[0].appendChild(b),f.$render(),f.$isEmpty(t)||(e=h.readValue(),(v.trackBy||p?D(t,e):t===e)||(f.$setViewValue(e),f.$render()))}))}}}}],Yo=["$locale","$interpolate","$log",function(t,e,n){var i=/{}/g,r=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function c(t){s.text(t||"")}var l,d=u.count,h=u.$attr.when&&s.attr(u.$attr.when),f=u.offset||0,$=a.$eval(h)||{},g={},m=e.startSymbol(),y=e.endSymbol(),b=m+d+"-"+f+y,w=li.noop;o(u,(function(t,e){var n=r.exec(e);n&&(n=(n[1]?"-":"")+ni(n[2]),$[n]=s.attr(u.$attr[e]))})),o($,(function(t,n){g[n]=e(t.replace(i,b))})),a.$watch(d,(function(e){var i=parseFloat(e),r=hi(i);r||i in $||(i=t.pluralCat(i-f)),i===l||r&&hi(l)||(w(),v(r=g[i])?(null!=e&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+h),w=p,c()):w=a.$watch(r,c),l=i)}))}}}],Xo=i("ngRef"),Qo=["$parse",function(t){return{priority:-1,restrict:"A",compile:function(e,n){var i=Zt(M(e)),r=t(n.ngRef),o=r.assign||function(){throw Xo("nonassign",n.ngRef)};return function(t,e,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=e;else if(!(s=e.data("$"+a.ngRefRead+"Controller")))throw Xo("noctrl",a.ngRefRead,n.ngRef)}else s=e.data("$"+i+"Controller");o(t,s=s||e),e.on("$destroy",(function(){r(t)===s&&o(t,null)}))}}}}],ta=["$parse","$animate","$compile",function(t,e,n){var a=i("ngRepeat"),s=function(t,e,n,i,r,o,a){t[n]=i,r&&(t[r]=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))},u=function(t,e,n){return Dt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(i,l){var d=l.ngRepeat,h=n.$$createComment("end ngRepeat",d);if(!(f=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw a("iexp",d);var f,p=f[1],$=f[2],g=f[3],m=f[4];if(!(f=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp",p);var v,y=f[3]||f[1],b=f[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw a("badident",g);if(m){var w={$id:Dt},_=t(m);v=function(t,e,n,i){return b&&(w[b]=e),w[y]=n,w.$index=i,_(t,w)}}return function(t,n,i,l,f){var p=st();t.$watchCollection($,(function(i){var l,$,m,_,x,C,S,E,A,k,O=n[0],j=st();if(g&&(t[g]=i),r(i))E=i,$=v||u;else for(k in $=v||c,E=[],i)ei.call(i,k)&&"$"!==k.charAt(0)&&E.push(k);for(_=E.length,k=Array(_),l=0;l<_;l++)if(x=i===E?l:E[l],C=i[x],S=$(t,x,C,l),p[S])A=p[S],delete p[S],j[S]=A,k[l]=A;else{if(j[S])throw o(k,(function(t){t&&t.scope&&(p[t.id]=t)})),a("dupes",d,S,C);k[l]={id:S,scope:void 0,clone:void 0},j[S]=!0}for(m in w&&(w[y]=void 0),p){if(S=at((A=p[m]).clone),e.leave(S),S[0].parentNode)for(l=0,$=S.length;l<$;l++)S[l].$$NG_REMOVED=!0;A.scope.$destroy()}for(l=0;l<_;l++)if(x=i===E?l:E[l],C=i[x],(A=k[l]).scope){m=O;do{m=m.nextSibling}while(m&&m.$$NG_REMOVED);A.clone[0]!==m&&e.move(at(A.clone),null,O),O=A.clone[A.clone.length-1],s(A.scope,l,y,C,b,x,_)}else f((function(t,n){A.scope=n;var i=h.cloneNode(!1);t[t.length++]=i,e.enter(t,null,O),O=i,A.clone=t,j[A.id]=A,s(A.scope,l,y,C,b,x,_)}));p=j}))}}}}],ea=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngShow,(function(e){t[e?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],na=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngHide,(function(e){t[e?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],ia=En((function(t,e,n){t.$watchCollection(n.ngStyle,(function(t,n){n&&t!==n&&o(n,(function(t,n){e.css(n,"")})),t&&e.css(t)}))})),ra=["$animate","$compile",function(t,e){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,r,a){var s=[],u=[],c=[],l=[],d=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};n.$watch(r.ngSwitch||r.on,(function(n){for(var i,r;c.length;)t.cancel(c.pop());for(i=0,r=l.length;i<r;++i){var h=at(u[i].clone);l[i].$destroy(),(c[i]=t.leave(h)).done(d(c,i))}u.length=0,l.length=0,(s=a.cases["!"+n]||a.cases["?"])&&o(s,(function(n){n.transclude((function(i,r){l.push(r);var o=n.element;i[i.length++]=e.$$createComment("end ngSwitchWhen"),u.push({clone:i}),t.enter(i,o.parent(),o)}))}))}))}}}],oa=En({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(t,e,n){return n[e-1]!==t})),(function(t){i.cases["!"+t]=i.cases["!"+t]||[],i.cases["!"+t].push({transclude:r,element:e})}))}}),aa=En({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),sa=i("ngTransclude"),ua=["$compile",function(t){return{restrict:"EAC",compile:function(e){var n=t(e.contents());return e.empty(),function(t,e,i,r,o){function a(){n(t,(function(t){e.append(t)}))}if(!o)throw sa("orphan",z(e));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude=""),o((function(t,n){var i;if(i=t.length)t:{i=0;for(var r=t.length;i<r;i++){var o=t[i];if(o.nodeType!==Si||o.nodeValue.trim()){i=!0;break t}}i=void 0}i?e.append(t):(a(),n.$destroy())}),null,i=i.ngTransclude||i.ngTranscludeSlot),i&&!o.isSlotFilled(i)&&a()}}}}],ca=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){"text/ng-template"===n.type&&t.put(n.id,e[0].text)}}}],la={$setViewValue:p,$render:p},da=["$element","$scope",function(e,n){function i(){s||(s=!0,n.$$postDigest((function(){s=!1,o.ngModelCtrl.$render()})))}function r(t){u||(u=!0,n.$$postDigest((function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),t&&o.ngModelCtrl.$render())})))}var o=this,a=new Ji;o.selectValueMap={},o.ngModelCtrl=la,o.multiple=!1,o.unknownOption=Zn(t.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(t){t=o.generateUnknownOptionValue(t),o.unknownOption.val(t),e.prepend(o.unknownOption),zn(o.unknownOption,!0),e.val(t)},o.updateUnknownOption=function(t){t=o.generateUnknownOptionValue(t),o.unknownOption.val(t),zn(o.unknownOption,!0),e.val(t)},o.generateUnknownOptionValue=function(t){return"? "+Dt(t)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(e.val(""),zn(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&zn(o.emptyOption,!1)},n.$on("$destroy",(function(){o.renderUnknownOption=p})),o.readValue=function(){var t=(t=e.val())in o.selectValueMap?o.selectValueMap[t]:t;return o.hasOption(t)?t:null},o.writeValue=function(t){var n=e[0].options[e[0].selectedIndex];n&&zn(Zn(n),!1),o.hasOption(t)?(o.removeUnknownOption(),n=Dt(t),e.val(n in o.selectValueMap?n:t),zn(Zn(e[0].options[e[0].selectedIndex]),!0)):o.selectUnknownOrEmptyOption(t)},o.addOption=function(t,e){if(8!==e[0].nodeType){ot(t,'"option value"'),""===t&&(o.hasEmptyOption=!0,o.emptyOption=e);var n=a.get(t)||0;a.set(t,n+1),i()}},o.removeOption=function(t){var e=a.get(t);e&&(1===e?(a.delete(t),""===t&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(t,e-1))},o.hasOption=function(t){return!!a.get(t)},o.$hasEmptyOption=function(){return o.hasEmptyOption},o.$isUnknownOptionSelected=function(){return e[0].options[0]===o.unknownOption[0]},o.$isEmptyOptionSelected=function(){return o.hasEmptyOption&&e[0].options[e[0].selectedIndex]===o.emptyOption[0]},o.selectUnknownOrEmptyOption=function(t){null==t&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(t):o.renderUnknownOption(t)};var s=!1,u=!1;o.registerOption=function(t,e,n,a,s){var u,c;n.$attr.ngValue?n.$observe("value",(function(t){var n,i=e.prop("selected");y(c)&&(o.removeOption(u),delete o.selectValueMap[c],n=!0),c=Dt(t),u=t,o.selectValueMap[c]=t,o.addOption(t,e),e.attr("value",c),n&&i&&r()})):a?n.$observe("value",(function(t){o.readValue();var n,i=e.prop("selected");y(u)&&(o.removeOption(u),n=!0),u=t,o.addOption(t,e),n&&i&&r()})):s?t.$watch(s,(function(t,i){n.$set("value",t);var a=e.prop("selected");i!==t&&o.removeOption(i),o.addOption(t,e),i&&a&&r()})):o.addOption(n.value,e);n.$observe("disabled",(function(t){("true"===t||t&&e.prop("selected"))&&(o.multiple?r(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))})),e.on("$destroy",(function(){var t=o.readValue(),e=n.value;o.removeOption(e),i(),(o.multiple&&t&&-1!==t.indexOf(e)||t===e)&&r(!0)}))}}],ha=function(){return{restrict:"E",require:["select","?ngModel"],controller:da,priority:1,link:{pre:function(t,e,n,i){var r=i[0],a=i[1];if(a){if(r.ngModelCtrl=a,e.on("change",(function(){r.removeUnknownOption(),t.$apply((function(){a.$setViewValue(r.readValue())}))})),n.multiple){r.multiple=!0,r.readValue=function(){var t=[];return o(e.find("option"),(function(e){e.selected&&!e.disabled&&(e=e.value,t.push(e in r.selectValueMap?r.selectValueMap[e]:e))})),t},r.writeValue=function(t){o(e.find("option"),(function(e){var n=!!t&&(-1!==Array.prototype.indexOf.call(t,e.value)||-1!==Array.prototype.indexOf.call(t,r.selectValueMap[e.value]));n!==e.selected&&zn(Zn(e),n)}))};var s,u=NaN;t.$watch((function(){u!==a.$viewValue||D(s,a.$viewValue)||(s=ct(a.$viewValue),a.$render()),u=a.$viewValue})),a.$isEmpty=function(t){return!t||0===t.length}}}else r.registerOption=p},post:function(t,e,n,i){var r=i[1];if(r){var o=i[0];r.$render=function(){o.writeValue(r.$viewValue)}}}}}},fa=["$interpolate",function(t){return{restrict:"E",priority:100,compile:function(e,n){var i,r;return y(n.ngValue)||(y(n.value)?i=t(n.value,!0):(r=t(e.text(),!0))||n.$set("value",e.text())),function(t,e,n){var o=e.parent();(o=o.data("$selectController")||o.parent().data("$selectController"))&&o.registerOption(t,e,n,i,r)}}}}],pa=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o=i.hasOwnProperty("required")||t(i.ngRequired)(e);i.ngRequired||(i.required=!0),r.$validators.required=function(t,e){return!o||!r.$isEmpty(e)},i.$observe("required",(function(t){o!==t&&(o=t,r.$validate())}))}}}}],$a=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var i,r;return n.ngPattern&&(i=n.ngPattern,r="/"===n.ngPattern.charAt(0)&&ti.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,o){if(o){var a=n.pattern;n.ngPattern?a=r(t):i=n.pattern;var s=Gn(a,i,e);n.$observe("pattern",(function(t){var n=s;s=Gn(t,i,e),(n&&n.toString())!==(s&&s.toString())&&o.$validate()})),o.$validators.pattern=function(t,e){return o.$isEmpty(e)||v(s)||s.test(e)}}}}}}],ga=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o=i.maxlength||t(i.ngMaxlength)(e),a=Jn(o);i.$observe("maxlength",(function(t){o!==t&&(a=Jn(t),o=t,r.$validate())})),r.$validators.maxlength=function(t,e){return 0>a||r.$isEmpty(e)||e.length<=a}}}}}],ma=["$parse",function(t){return{restrict:"A",require:"?ngModel",link:function(e,n,i,r){if(r){var o=i.minlength||t(i.ngMinlength)(e),a=Jn(o)||-1;i.$observe("minlength",(function(t){o!==t&&(a=Jn(t)||-1,o=t,r.$validate())})),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=a}}}}}];t.angular.bootstrap?t.console&&console.log("WARNING: Tried to load AngularJS more than once."):(function(){var e;if(!Ci){var n=yi();(Yn=v(n)?t.jQuery:n?t[n]:void 0)&&Yn.fn.on?(Zn=Yn,l(Yn.fn,{scope:Wi.scope,isolateScope:Wi.isolateScope,controller:Wi.controller,injector:Wi.injector,inheritedData:Wi.inheritedData})):Zn=$t,e=Zn.cleanData,Zn.cleanData=function(t){for(var n,i,r=0;null!=(i=t[r]);r++)(n=(Zn._data(i)||{}).events)&&n.$destroy&&Zn(i).triggerHandler("$destroy");e(t)},li.element=Zn,Ci=!0}}(),function(n){l(n,{errorHandlingConfig:e,bootstrap:X,copy:V,extend:l,merge:d,equals:D,element:Zn,forEach:o,injector:Ut,noop:p,bind:R,toJson:F,fromJson:H,identity:$,isUndefined:v,isDefined:y,isString:_,isFunction:A,isObject:b,isNumber:x,isElement:T,isArray:S,version:Ei,isDate:C,callbacks:{$$counter:0},getTestability:tt,reloadWithDebugInfo:Q,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:nt,$$minErr:i,$$csp:vi,$$encodeUriSegment:K,$$encodeUriQuery:Z,$$lowercase:ni,$$stringify:ut,$$uppercase:ii}),(Xn=function(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=i("$injector"),r=i("ng");return(t=e(t,"angular",Object)).$$minErr=t.$$minErr||i,e(t,"module",(function(){var t={};return function(i,o,a){var s={};if("hasOwnProperty"===i)throw r("badname","module");return o&&t.hasOwnProperty(i)&&(t[i]=null),e(t,i,(function(){function t(t,e,n,i){return i||(i=u),function(){return i[n||"push"]([t,e,arguments]),h}}function e(t,e,n){return n||(n=u),function(r,o){return o&&A(o)&&(o.$$moduleName=i),n.push([t,e,arguments]),h}}if(!o)throw n("nomod",i);var u=[],c=[],l=[],d=t("$injector","invoke","push",c),h={_invokeQueue:u,_configBlocks:c,_runBlocks:l,info:function(t){if(y(t)){if(!b(t))throw r("aobj","value");return s=t,this}return s},requires:o,name:i,provider:e("$provide","provider"),factory:e("$provide","factory"),service:e("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),decorator:e("$provide","decorator",c),animation:e("$animateProvider","register"),filter:e("$filterProvider","register"),controller:e("$controllerProvider","register"),directive:e("$compileProvider","directive"),component:e("$compileProvider","component"),config:d,run:function(t){return l.push(t),this}};return a&&d(a),h}))}}))}(t))("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:ze}),t.provider("$compile",Jt).directive({a:to,input:vo,textarea:vo,form:ro,script:ca,select:ha,option:fa,ngBind:_o,ngBindHtml:Co,ngBindTemplate:xo,ngClass:Eo,ngClassEven:ko,ngClassOdd:Ao,ngCloak:Oo,ngController:jo,ngForm:oo,ngHide:na,ngIf:Mo,ngInclude:Io,ngInit:No,ngNonBindable:Go,ngPluralize:Yo,ngRef:Qo,ngRepeat:ta,ngShow:ea,ngStyle:ia,ngSwitch:ra,ngSwitchWhen:oa,ngSwitchDefault:aa,ngOptions:Zo,ngTransclude:ua,ngModel:qo,ngList:Do,ngChange:So,pattern:$a,ngPattern:$a,required:pa,ngRequired:pa,minlength:ma,ngMinlength:ma,maxlength:ga,ngMaxlength:ga,ngValue:wo,ngModelOptions:zo}).directive({ngInclude:Vo,input:yo}).directive(eo).directive(Lo),t.provider({$anchorScroll:Ft,$animate:or,$animateCss:ur,$$animateJs:ir,$$animateQueue:rr,$$AnimateRunner:sr,$$animateAsyncRun:ar,$browser:Bt,$cacheFactory:zt,$controller:te,$document:ee,$$isDocumentHidden:ne,$exceptionHandler:ie,$filter:un,$$forceReflow:$r,$interpolate:pe,$interval:$e,$$intervalFactory:ge,$http:de,$httpParamSerializer:oe,$httpParamSerializerJQLike:ae,$httpBackend:fe,$xhrFactory:he,$jsonpCallbacks:Cr,$location:Ae,$log:ke,$parse:Ue,$rootScope:Be,$q:Fe,$$q:He,$sce:Ke,$sceDelegate:Je,$sniffer:Ze,$$taskTrackerFactory:Ye,$templateCache:Gt,$templateRequest:Qe,$$testability:tn,$timeout:en,$window:on,$$rAF:qe,$$jqLite:Nt,$$Map:Ki,$$cookieReader:sn})}]).info({angularVersion:"1.8.2"})}(li),li.module("ngLocale",[],["$provide",function(t){t.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),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=0|t,i=e;return void 0===i&&(i=Math.min(function(t){var e=(t+="").indexOf(".");return-1==e?0:t.length-e-1}(t),3)),Math.pow(10,i),1==n&&0==i?"one":"other"}})}]),Zn((function(){Y(t.document,X)})))}(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;}')),angular.module("checklist-model",[]).directive("checklistModel",["$parse","$compile",function(t,e){function n(t,e,n){if(angular.isArray(t))for(var i=t.length;i--;)if(n(t[i],e))return!0;return!1}function i(i,r,o){e(r)(i);var a=t(o.checklistModel),s=a.assign,u=t(o.checklistChange),c=t(o.checklistValue)(i.$parent),l=angular.equals;function d(t,e){i.checked=n(t,c,l)}o.hasOwnProperty("checklistComparator")&&(l=t(o.checklistComparator)(i.$parent)),i.$watch("checked",(function(t,e){if(t!==e){var r=a(i.$parent);s(i.$parent,!0===t?function(t,e,i){return n(t=angular.isArray(t)?t:[],e,i)||t.push(e),t}(r,c,l):function(t,e,n){if(angular.isArray(t))for(var i=t.length;i--;)if(n(t[i],e)){t.splice(i,1);break}return t}(r,c,l)),u&&u(i)}})),angular.isFunction(i.$parent.$watchCollection)?i.$parent.$watchCollection(o.checklistModel,d):i.$parent.$watch(o.checklistModel,d,!0)}return{restrict:"A",priority:1e3,terminal:!0,scope:!0,compile:function(t,e){if("INPUT"!==t[0].tagName||"checkbox"!==e.type)throw'checklist-model should be applied to `input[type="checkbox"]`.';if(!e.checklistValue)throw"You should provide `checklist-value`.";return t.removeAttr("checklist-model"),t.attr("ng-model","checked"),i}}}]);try{var phonecatApp=angular.module("lhcApp",["lhcAppServices","lhcAppControllers"]),services=angular.module("lhcAppServices",[]),lhcAppControllers=angular.module("lhcAppControllers",["checklist-model"]);lhcAppControllers.config(["$compileProvider",function(t){t.debugInfoEnabled(!1)}]),lhcAppControllers.run(["$http",function(t){t.defaults.headers.common["X-CSRFToken"]=confLH.csrf_token}]),angular.element(document).ready((function(){angular.element(document.querySelector("form")).triggerHandler("$destroy")})),services.factory("LiveHelperChatFactory",["$http","$q",function(t,e){return this.loadChatList=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"chat/syncadmininterface"+n).then((function(t){void 0!==t.error_url?document.location=t.error_url:i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.loadInitialData=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"chat/loadinitialdata"+n).then((function(t){void 0!==t.error_url?document.location=t.data.error_url:i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.loadActiveChats=function(){var n=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"chat/loadactivechats").then((function(t){void 0!==t.error_url?document.location=t.error_url:n.resolve(t.data)}),(function(t){n.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),n.promise},this.getNotificationsData=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"chat/getnotificationsdata/(id)/"+n).then((function(t){void 0!==t.error_url?document.location=t.data.error_url:i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.getChatData=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"chat/getchatdata/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.setInactive=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"user/setinactive/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.setOnlineMode=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"user/setoffline/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.setAlwaysOnlineMode=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"user/setalwaysonline/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.changeVisibility=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"user/setinvisible/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.getActiveOperatorChat=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"groupchat/startchatwithoperator/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.rejectGroupChat=function(n){var i=e.defer();return t.get(WWW_DIR_JAVASCRIPT+"groupchat/leave/"+n).then((function(t){i.resolve(t.data)}),(function(t){i.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),i.promise},this.setLocalSettings=function(n,i){var r=e.defer();return t.post(WWW_DIR_JAVASCRIPT+"front/settings",{attr:n,val:i}).then((function(t){r.resolve(t.data)}),(function(t){r.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),r.promise},this.newGroupChat=function(n,i){var r=e.defer();return t.post(WWW_DIR_JAVASCRIPT+"groupchat/newgroupajax/",{name:n,public:i}).then((function(t){r.resolve(t.data)}),(function(t){r.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),r.promise},this.searchProvider=function(n,i){var r=e.defer();return t.post(WWW_DIR_JAVASCRIPT+"chat/searchprovider/"+n+"/?exclude_disabled=1&q="+i).then((function(t){r.resolve(t.data)}),(function(t){r.reject(void 0!==t.status?"["+t.status+"]":"[0]")})),r.promise},this.truncate=function(t,e,n){return isNaN(e)&&(e=10),void 0===n&&(n="..."),t.length<=e||t.length-n.length<=e?t:String(t).substring(0,e-n.length)+n},this}]);var $_LHC_API={};lhcAppControllers.controller("LiveHelperChatCtrl",["$scope","$http","$location","$rootScope","$log","$interval","LiveHelperChatFactory",function(t,e,n,i,r,o,a){t.predicate="last_visit",t.pending_chats={},t.pending_chats_expanded=!0,t.active_chats={},t.active_chats_expanded=!0,t.my_active_chats_expanded=!0,t.closed_chats={},t.closed_chats_expanded=!0,t.unread_chats={},t.unread_chats_expanded=!0,t.transfer_dep_chats={},t.transfer_chats={},t.timeoutControl=null,t.setTimeoutEnabled=!0,t.lmtoggle=!1,t.lmtoggler=!1,t.custom_list_1_expanded=!0,t.custom_list_2_expanded=!0,t.custom_list_3_expanded=!0,t.custom_list_4_expanded=!0,t.current_user_id=confLH.user_id;var s=this;this.restoreSettingByString=function(t,e){if(1==e){var n=t.split("/"),i=new Array;return angular.forEach(n,(function(t){i.push(parseInt(t))})),i}return t},this.restoreLocalSetting=function(t,e,n){try{if(localStorage){var i=localStorage.getItem(t);if(null!==i){if(1==n){var r=i.split("/"),o=new Array;return angular.forEach(r,(function(t){o.push(parseInt(t))})),o}return i}return e}}catch(t){}return e},this.custom_extension_filter="",this.limitb="10",this.limita="10",this.limitu="10",this.limitp="10",this.limito=confLH.dlist.op_n,this.restoreLocalSetting("limito",confLH.dlist.op_n,!1),this.limitc="10",this.limitd="10",this.limitmc="10",this.limitgc="10",this.limits="10",this.activeu=[],this.pendingu=[],this.subjectu=[],t.lmtoggle="false"!=this.restoreLocalSetting("lmtoggle","false",!1),t.lmtoggler="false"!=this.restoreLocalSetting("lmtoggler","false",!1),this.lhcVersion=0,this.lhcVersionCounter=8,this.lhcPendingRefresh=!1,this.lhcConnectivityProblem=!1,this.lhcConnectivityProblemExplain="",this.lastd_activity=Math.round((new Date).getTime()/1e3),this.lastidEvent=0,this.userDepartments=[],this.userProductNames=[],this.userDepartmentsGroups=[],this.userGroups=[],this.userList=[],this.widgets=[],this.additionalColumns=[],this.excludeIcons=[],this.notifIcons=[],this.departmentd=[],this.departmentd_dpgroups=[],this.departmentdNames=[],this.operatord=[],this.operatord_dpgroups=[],this.operatordNames=[],this.actived=[],this.actived_products=[],this.actived_dpgroups=[],this.actived_ugroups=[],this.activedNames=[],this.mcd=[],this.mcd_products=[],this.mcd_dpgroups=[],this.mcdNames=[],this.unreadd=[],this.unreadd_products=[],this.unreadd_dpgroups=[],this.unreaddNames=[],this.pendingd=[],this.pendingd_products=[],this.pendingd_dpgroups=[],this.pendingd_ugroups=[],this.pendingdNames=[],this.botd=[],this.botd_products=[],this.botd_dpgroups=[],this.botd_ugroups=[],this.botdNames=[],this.subjectd=[],this.subjectd_products=[],this.subjectd_dpgroups=[],this.subjectd_ugroups=[],this.subjectdNames=[],this.closedd=[],this.closedd_products=[],this.closedd_dpgroups=[],this.closeddNames=[],this.statusNotifications=[],this.isListLoaded=!1,this.widgetsItems=new Array,this.widgetsItems.push("actived"),this.widgetsItems.push("departmentd"),this.widgetsItems.push("unreadd"),this.widgetsItems.push("pendingd"),this.widgetsItems.push("operatord"),this.widgetsItems.push("closedd"),this.widgetsItems.push("mcd"),this.widgetsItems.push("botd"),this.widgetsItems.push("subjectd"),s.departmentd_hide_dep="false"!=s.restoreLocalSetting("departmentd_hide_dep","false",!1),s.departmentd_hide_dgroup="false"!=s.restoreLocalSetting("departmentd_hide_dgroup","false",!1),this.timeoutActivity=null,this.timeoutActivityTime=300,this.blockSync=!1,this.hideOnline=!1,this.hideInvisible=!1,this.alwaysOnline=!1,this.inActive=!1,this.bot_st={},ee.addListener("angularSyncDisabled",(function(e){t.syncDisabled(e)})),ee.addListener("angularLoadChatList",(function(){t.loadChatList()})),ee.addListener("angularStartChatOperatorPublic",(function(e){t.startChatOperatorPublic(e)})),ee.addListener("angularStartChatbyId",(function(t){s.startChatByID(t)})),this.changeVisibility=function(t){t&&(t.stopPropagation(),t.preventDefault()),a.changeVisibility(1==!s.hideInvisible?"true":"false").then((function(t){!1===t.error?s.hideInvisible=!s.hideInvisible:void 0!==t.msg?alert(t.msg):alert(t)}),(function(t){alert("We could not change your status!")}))},this.changeAlwaysOnline=function(t){t&&(t.stopPropagation(),t.preventDefault()),a.setAlwaysOnlineMode(1==!s.alwaysOnline?"true":"false").then((function(t){!1===t.error?s.alwaysOnline=!s.alwaysOnline:void 0!==t.msg?alert(t.msg):alert(t)}),(function(t){alert("We could not change your status! "+t)}))},this.changeOnline=function(t){t&&(t.stopPropagation(),t.preventDefault()),a.setOnlineMode(1==!s.hideOnline?"true":"false").then((function(t){!1===t.error?s.hideOnline=!s.hideOnline:void 0!==t.msg?alert(t.msg):alert(t)}),(function(t){alert("We could not change your status! "+t)}))},angular.forEach(this.widgetsItems,(function(t){s[t+"_all_departments"]="false"!=s.restoreLocalSetting(t+"_all_departments","false",!1),s[t+"_hide_hidden"]="false"!=s.restoreLocalSetting(t+"_hide_hidden","false",!1),s[t+"_hide_disabled"]="false"!=s.restoreLocalSetting(t+"_hide_disabled","false",!1),s[t+"_only_online"]="false"!=s.restoreLocalSetting(t+"_only_online","false",!1),s[t+"_only_explicit_online"]="false"!=s.restoreLocalSetting(t+"_only_explicit_online","false",!1)})),this.storeLocalSetting=function(t,e){if(localStorage)try{e=localStorage.setItem(t,e)}catch(t){}},this.removeLocalSetting=function(t){if(localStorage)try{localStorage.removeItem(t)}catch(t){}},this.toggleList=function(e){if(t[e]=!t[e],localStorage)try{localStorage.setItem(e,t[e])}catch(t){}},this.toggleWidgetData=[],this.toggleWidget=function(e,n){if(s.toggleWidgetData[e]=void 0===s.toggleWidgetData[e]||!s.toggleWidgetData[e],localStorage)try{localStorage.setItem(e,s.toggleWidgetData[e])}catch(t){}void 0!==n&&1==n&&(s.isListLoaded=!1,t.loadChatList())},this.toggleWidgetSort=function(e,n,i,r){if(s.toggleWidgetData[e]=void 0===s.toggleWidgetData[e]?n:s.toggleWidgetData[e]==n?i:n,localStorage)try{localStorage.setItem(e,s.toggleWidgetData[e])}catch(t){}void 0!==r&&1==r&&(s.isListLoaded=!1,t.loadChatList())},this.getToggleWidget=function(t,e){this.toggleWidgetData[t]="false"!=this.restoreLocalSetting(t,void 0===e?"false":e,!1)},this.getToggleWidgetSort=function(t){this.toggleWidgetData[t]=this.restoreLocalSetting(t,"",!1)},t.getSyncFilter=function(){s.custom_extension_filter="";var e="/(limita)/"+parseInt(s.limita);if(e+="/(limitu)/"+parseInt(s.limitu),e+="/(limitp)/"+parseInt(s.limitp),e+="/(limito)/"+parseInt(s.limito),e+="/(limitc)/"+parseInt(s.limitc),e+="/(limitd)/"+parseInt(s.limitd),e+="/(limits)/"+parseInt(s.limits),e+="/(limitmc)/"+parseInt(s.limitmc),e+="/(limitb)/"+parseInt(s.limitb),e+="/(limitgc)/"+parseInt(s.limitgc),"object"==typeof s.widgetsActive&&s.widgetsActive.length>0){var n={my_chats:0,online_operators:1,group_chats:2,pending_chats:3,online_visitors:4,unread_chats:5,active_chats:6,bot_chats:7,transfered_chats:8,departments_stats:9,subject_chats:20},i=[];angular.forEach(s.widgetsActive,(function(t){n[t]&&i.push(n[t])})),e+="/(w)/"+i.join("/")}("object"==typeof s.activeu&&s.activeu.length>0&&(e+="/(activeu)/"+s.activeu.join("/")),"object"==typeof s.pendingu&&s.pendingu.length>0&&(e+="/(pendingu)/"+s.pendingu.join("/")),"object"==typeof s.subjectu&&s.subjectu.length>0&&(e+="/(subjectu)/"+s.subjectu.join("/")),"object"==typeof s.actived_dpgroups&&s.actived_dpgroups.length>0&&(e+="/(adgroups)/"+s.actived_dpgroups.join("/")),"object"==typeof s.pendingd_dpgroups&&s.pendingd_dpgroups.length>0&&(e+="/(pdgroups)/"+s.pendingd_dpgroups.join("/")),"object"==typeof s.subjectd_dpgroups&&s.subjectd_dpgroups.length>0&&(e+="/(sdgroups)/"+s.subjectd_dpgroups.join("/")),"object"==typeof s.closedd_dpgroups&&s.closedd_dpgroups.length>0&&(e+="/(cdgroups)/"+s.closedd_dpgroups.join("/")),"object"==typeof s.botd_dpgroups&&s.botd_dpgroups.length>0&&(e+="/(bdgroups)/"+s.botd_dpgroups.join("/")),"object"==typeof s.mcd_dpgroups&&s.mcd_dpgroups.length>0&&(e+="/(mdgroups)/"+s.mcd_dpgroups.join("/")),"object"==typeof s.unreadd_dpgroups&&s.unreadd_dpgroups.length>0&&(e+="/(udgroups)/"+s.unreadd_dpgroups.join("/")),"object"==typeof s.departmentd_dpgroups&&s.departmentd_dpgroups.length>0&&(e+="/(ddgroups)/"+s.departmentd_dpgroups.join("/")),"object"==typeof s.operatord_dpgroups&&s.operatord_dpgroups.length>0&&(e+="/(odpgroups)/"+s.operatord_dpgroups.join("/")),"object"==typeof s.actived)&&(s.actived.length>0?e+="/(actived)/"+s.actived.join("/"):(r=s.manualFilterByFilter("actived")).length>0&&(e+="/(actived)/"+r.join("/")));"object"==typeof s.subjectd&&(s.subjectd.length>0?e+="/(subjectd)/"+s.subjectd.join("/"):(r=s.manualFilterByFilter("subjectd")).length>0&&(e+="/(subjectd)/"+r.join("/")));"object"==typeof s.mcd&&(s.mcd.length>0?e+="/(mcd)/"+s.mcd.join("/"):(r=s.manualFilterByFilter("mcd")).length>0&&(e+="/(mcd)/"+r.join("/")));"object"==typeof s.unreadd&&(s.unreadd.length>0?e+="/(unreadd)/"+s.unreadd.join("/"):(r=s.manualFilterByFilter("unreadd")).length>0&&(e+="/(unreadd)/"+r.join("/")));"object"==typeof s.botd&&(s.botd.length>0?e+="/(botd)/"+s.botd.join("/"):(r=s.manualFilterByFilter("botd")).length>0&&(e+="/(botd)/"+r.join("/")));if("object"==typeof s.pendingd){var r;if(s.pendingd.length>0)e+="/(pendingd)/"+s.pendingd.join("/");else(r=s.manualFilterByFilter("pendingd")).length>0&&(e+="/(pendingd)/"+r.join("/"));void 0!==s.toggleWidgetData.pending_chats_sort&&1==s.toggleWidgetData.pending_chats_sort&&(e+="/(psort)/asc")}"object"==typeof s.operatord&&(s.operatord.length>0?e+="/(operatord)/"+s.operatord.join("/"):(r=s.manualFilterByFilter("operatord")).length>0&&(e+="/(operatord)/"+r.join("/")));("object"==typeof s.closedd&&s.closedd.length>0&&(e+="/(closedd)/"+s.closedd.join("/")),"object"==typeof s.departmentd)&&(s.departmentd.length>0?e+="/(departmentd)/"+s.departmentd.join("/"):(r=s.manualFilterByFilter("departmentd")).length>0&&(e+="/(departmentd)/"+r.join("/")));"object"==typeof s.actived_products&&s.actived_products.length>0&&(e+="/(activedprod)/"+s.actived_products.join("/")),"object"==typeof s.pendingd_ugroups&&s.pendingd_ugroups.length>0&&(e+="/(pugroups)/"+s.pendingd_ugroups.join("/")),"object"==typeof s.subjectd_ugroups&&s.subjectd_ugroups.length>0&&(e+="/(sugroups)/"+s.subjectd_ugroups.join("/")),"object"==typeof s.actived_ugroups&&s.actived_ugroups.length>0&&(e+="/(augroups)/"+s.actived_ugroups.join("/")),"object"==typeof s.mcd_products&&s.mcd_products.length>0&&(e+="/(mcdprod)/"+s.mcd_products.join("/")),"object"==typeof s.unreadd_products&&s.unreadd_products.length>0&&(e+="/(unreaddprod)/"+s.unreadd_products.join("/")),"object"==typeof s.pendingd_products&&s.pendingd_products.length>0&&(e+="/(pendingdprod)/"+s.pendingd_products.join("/")),"object"==typeof s.subjectd_products&&s.subjectd_products.length>0&&(e+="/(subjectdprod)/"+s.subjectd_products.join("/")),"object"==typeof s.botd_products&&s.botd_products.length>0&&(e+="/(botdprod)/"+s.botd_products.join("/")),"object"==typeof s.closedd_products&&s.closedd_products.length>0&&(e+="/(closeddprod)/"+s.closedd_products.join("/")),void 0!==s.toggleWidgetData.track_open_chats&&1==s.toggleWidgetData.track_open_chats&&(e+="/(topen)/true"),void 0!==s.toggleWidgetData.active_chats_sort&&""!==s.toggleWidgetData.active_chats_sort&&(e+="/(acs)/"+s.toggleWidgetData.active_chats_sort),void 0!==s.toggleWidgetData.closed_chats_sort&&""!==s.toggleWidgetData.closed_chats_sort&&(e+="/(clcs)/"+s.toggleWidgetData.closed_chats_sort),void 0!==s.toggleWidgetData.onop_sort&&""!==s.toggleWidgetData.onop_sort&&(e+="/(onop)/"+s.toggleWidgetData.onop_sort);var o=[];return!0===s.departmentd_hide_dep&&o.push("dhdep"),!0===s.departmentd_hide_dgroup&&o.push("dhdepg"),o.length>0&&(e+="/(hsub)/"+o.join("/")),s.lastd_activity>0&&(e+="/(lda)/"+s.lastd_activity),s.lastd_activity=0,ee.emitEvent("eventGetSyncFilter",[s,t]),e+=s.custom_extension_filter},t.$watch("lhc.limita",(function(e,n){e!=n&&(a.setLocalSettings("limita",e),s.isListLoaded=!1,t.loadChatList())})),this.manualFilterByFilter=function(t){if((1==s[t+"_only_explicit_online"]||1==s[t+"_hide_hidden"]||1==s[t+"_hide_disabled"]||1==s[t+"_only_online"])&&s.userDepartments.length>0){var e=[];return angular.forEach(s.userDepartments,(function(n){(0==s[t+"_only_explicit_online"]||1==s[t+"_only_explicit_online"]&&1==n.oexp)&&(0==s[t+"_hide_hidden"]||1==s[t+"_hide_hidden"]&&0==n.hidden)&&(0==s[t+"_hide_disabled"]||1==s[t+"_hide_disabled"]&&0==n.disabled)&&(0==s[t+"_only_online"]||1==s[t+"_only_online"]&&1==n.ogen)&&e.push(n.id)})),0==e.length&&e.push(-1),e}return[]},this.setDepartmentNames=function(t){s[t+"Names"]=[],angular.forEach(s[t],(function(e){void 0!==s.userDepartmentsNames&&void 0!==s.userDepartmentsNames[e]?s[t+"Names"].push(s.userDepartmentsNames[e]):void 0!==s.userDepartmentsNames&&(s[t].splice(s[t].indexOf(e),1),s.departmentChanged(t))}))},this.departmentChanged=function(e){if(s[e].length>0){s[e+"_all_departments"]=!1,s.allDepartmentsChanged(e,!1);var n=s[e].join("/");""!=n&&(a.setLocalSettings(e,n),s.setDepartmentNames(e))}else a.setLocalSettings(e,null);s.isListLoaded=!1,t.loadChatList()},this.productChanged=function(e){if(s[e].length>0){var n=s[e].join("/");""!=n&&a.setLocalSettings(e,n)}else a.setLocalSettings(e,null);s.isListLoaded=!1,t.loadChatList()},this.allDepartmentsChanged=function(e,n){1==s[e+"_all_departments"]?s.storeLocalSetting(e+"_all_departments",!0):s.removeLocalSetting(e+"_all_departments"),1==s[e+"_hide_hidden"]?s.storeLocalSetting(e+"_hide_hidden",!0):s.removeLocalSetting(e+"_hide_hidden"),1==s[e+"_hide_disabled"]?s.storeLocalSetting(e+"_hide_disabled",!0):s.removeLocalSetting(e+"_hide_disabled"),1==s[e+"_only_online"]?s.storeLocalSetting(e+"_only_online",!0):s.removeLocalSetting(e+"_only_online"),void 0!==s[e+"_hide_dep"]&&(1==s[e+"_hide_dep"]?s.storeLocalSetting(e+"_hide_dep",!0):s.removeLocalSetting(e+"_hide_dep")),void 0!==s[e+"_hide_dgroup"]&&(1==s[e+"_hide_dgroup"]?s.storeLocalSetting(e+"_hide_dgroup",!0):s.removeLocalSetting(e+"_hide_dgroup")),1==s[e+"_all_departments"]?(s[e]=[],angular.forEach(s.userDepartments,(function(t){(0==s[e+"_only_explicit_online"]||1==s[e+"_only_explicit_online"]&&1==t.oexp)&&(0==s[e+"_hide_hidden"]||1==s[e+"_hide_hidden"]&&0==t.hidden)&&(0==s[e+"_hide_disabled"]||1==s[e+"_hide_disabled"]&&0==t.disabled)&&(0==s[e+"_only_online"]||1==s[e+"_only_online"]&&1==t.ogen)&&s[e].push(t.id)})),0==s[e].length&&s[e].push(-1)):1==n&&(s[e]=[]),1==n&&(s.isListLoaded=!1,t.loadChatList())},t.$watch("lhc.limitu",(function(e,n){e!=n&&(a.setLocalSettings("limitu",e),t.loadChatList())})),t.$watch("lhc.limitc",(function(e,n){e!=n&&(a.setLocalSettings("limitc",e),t.loadChatList())})),t.$watch("lhc.limitp",(function(e,n){e!=n&&(a.setLocalSettings("limitp",e),t.loadChatList())})),t.$watch("lhc.limito",(function(e,n){e!=n&&(a.setLocalSettings("limito",e),t.loadChatList())})),t.$watch("lhc.limitmc",(function(e,n){e!=n&&(a.setLocalSettings("limitmc",e),t.loadChatList())})),t.$watch("lhc.limitgc",(function(e,n){e!=n&&(a.setLocalSettings("limitgc",e),t.loadChatList())})),t.$watch("lhc.limitd",(function(e,n){e!=n&&(a.setLocalSettings("limitd",e),t.loadChatList())})),t.$watch("lhc.activeu",(function(e,n){e!=n&&(a.setLocalSettings("activeu",e),s.isListLoaded=!1,t.loadChatList())})),t.$watch("lhc.pendingu",(function(e,n){e!=n&&(a.setLocalSettings("pendingu",e),s.isListLoaded=!1,t.loadChatList())})),t.$watch("lhc.subjectu",(function(e,n){e!=n&&(a.setLocalSettings("subjectu",e),s.isListLoaded=!1,t.loadChatList())})),t.syncDisabled=function(t){s.blockSync=t},t.loadChatList=function(){if(localStorage)try{t.pending_chats_expanded="false"!=localStorage.getItem("pending_chats_expanded"),t.active_chats_expanded="false"!=localStorage.getItem("active_chats_expanded"),t.my_active_chats_expanded="false"!=localStorage.getItem("my_active_chats_expanded"),t.closed_chats_expanded="false"!=localStorage.getItem("closed_chats_expanded"),t.unread_chats_expanded="false"!=localStorage.getItem("unread_chats_expanded"),t.my_chats_expanded="false"!=localStorage.getItem("my_chats_expanded"),t.custom_list_1_expanded="false"!=localStorage.getItem("custom_list_1_expanded"),t.custom_list_2_expanded="false"!=localStorage.getItem("custom_list_2_expanded"),t.custom_list_3_expanded="false"!=localStorage.getItem("custom_list_3_expanded"),t.custom_list_4_expanded="false"!=localStorage.getItem("custom_list_4_expanded")}catch(t){}if(1==s.blockSync)return clearTimeout(t.timeoutControl),void(t.timeoutControl=setTimeout((function(){s.isListLoaded=!1,t.loadChatList()}),confLH.back_office_sinterval));clearTimeout(t.timeoutControl),a.loadChatList(t.getSyncFilter()).then((function(e){if(e.logout||e.error_url)document.location.reload();else{if(1==s.blockSync)return clearTimeout(t.timeoutControl),void(t.timeoutControl=setTimeout((function(){s.isListLoaded=!1,t.loadChatList()}),confLH.back_office_sinterval));if(1==s.lhcConnectivityProblem&&(s.lhcConnectivityProblem=!1),ee.emitEvent("eventLoadChatList",[e,t,s]),void 0===e.items_processed){var n=[],i=[],r=[],o=[],u=$("#tabs");angular.forEach(e.result,(function(e,c){if(t[c]=e,u.length>0&&("pending_chat"==c||"my_chats"==c?e.list.forEach((function(t){void 0!==t.user_id&&t.user_id==confLH.user_id&&1==confLH.accept_chats&&(1!==t.status||1===t.status&&!0===t.hum)&&0==$("#chat-tab-link-"+t.id).length&&(u.length>0&&0==lhinst.disableremember&&(lhinst.removeSynchroChat(t.id),lhinst.startChatBackground(t.id,u,a.truncate(t.nick||"Visitor",10))),0==lhinst.disableremember&&o.push(t.id))})):"group_chats"==c?u.length>0&&1==confLH.auto_join_private&&e.list.forEach((function(t){1==t.type&&0==t.jtime&&0==$("#chat-tab-link-gc"+t.id).length&&lhinst.startGroupChat(t.id,u,a.truncate(t.name,10),!0)})):"support_chats"==c&&u.length>0&&1==confLH.auto_join_private&&e.list.forEach((function(t){null===document.getElementById("chat-tab-li-"+t.chat_id)?s.startChatByID(t.chat_id,!0):$("#private-chat-tab-link-"+t.chat_id).attr("private-loaded")?$("#chat-tab-link-"+t.chat_id).hasClass("active")?$("#private-chat-tab-link-"+t.chat_id).hasClass("active")||$("#private-chat-tab-link-"+t.chat_id+" > .whatshot").removeClass("d-none"):$("#chat-tab-link-"+t.chat_id+" > .whatshot").removeClass("d-none"):($("#private-chat-tab-link-"+t.chat_id).attr("private-loaded",!0),ee.emitEvent("privateChatStart",[t.chat_id,{unread:!0}]))}))),e.last_id_identifier){i=[],n=[];var l=0,d=e.list;"pending_chat"==e.last_id_identifier&&void 0!==s.toggleWidgetData.pending_chats_sort&&1==s.toggleWidgetData.pending_chats_sort&&(d=e.list.slice().reverse()),angular.forEach(d,(function(t,r){var o=void 0!==t.user_id?t.user_id:0,a=t.id+"_"+o;if(("bot_chats"!=e.last_id_identifier||t.msg_v&&t.msg_v>s.bot_st.msg_nm&&1==s.bot_st.bot_notifications||t.aalert)&&"transfer_chat_dep"!=e.last_id_identifier){var u=[];if("active_chats"==e.last_id_identifier&&t.aicons&&(a+="_"+(u=Object.keys(t.aicons)).join("_")),n.push(a),void 0===s.statusNotifications[e.last_id_identifier]&&(s.statusNotifications[e.last_id_identifier]=new Array),1==s.isListLoaded&&"subject_chats"==e.last_id_identifier)-1==s.statusNotifications[e.last_id_identifier].indexOf(a)&&-1===lhinst.chatsSynchronising.indexOf(parseInt(t.id))&&i.push(t.id);else if(1==s.isListLoaded&&"active_chats"==e.last_id_identifier){if(-1==s.statusNotifications[e.last_id_identifier].indexOf(a)&&u.length>0&&s.notifIcons.length>0){var c=s.notifIcons.filter((function(t){return-1===s.excludeIcons.indexOf(t)&&-1!==u.indexOf(t)}));c.length>0&&i.push(t.id+"__"+c.join("__"))}}else 1!=s.isListLoaded||0!=l&&2!==t.status_sub_sub||!(-1==s.statusNotifications[e.last_id_identifier].indexOf(a)&&0==o&&0==confLH.ownntfonly||-1==s.statusNotifications[e.last_id_identifier].indexOf(a)&&o==confLH.user_id)?l++:-1===lhinst.chatsSynchronising.indexOf(parseInt(t.id))&&i.push(t.id)}})),i.length>0&&(i.unshift(e.last_id_identifier),r.push(i.join("/"))),1==s.isListLoaded&&s.compareNotificationsAndHide(s.statusNotifications[e.last_id_identifier],n),s.statusNotifications[e.last_id_identifier]=n}})),o.length>0&&(o.unshift("active_chat"),a.getNotificationsData(o.join("/")).then((function(t){angular.forEach(t,(function(t,e){lhinst.removeBackgroundChat(parseInt(t.last_id)),lhinst.playSoundNewAction(t.last_id_identifier,parseInt(t.last_id),t.nick?t.nick:"Live Help",t.msg?t.msg:confLH.transLation.new_chat,t.nt),lhinst.backgroundChats.push(parseInt(t.last_id))}))}))),r.length>0&&a.getNotificationsData(r.join("/")).then((function(t){angular.forEach(t,(function(t,e){lhinst.playSoundNewAction(t.last_id_identifier,parseInt(t.last_id),t.nick?t.nick:"Live Help",t.msg?t.msg:confLH.transLation.new_chat,t.nt)}))}))}if(void 0!==e.ou&&1==e.ou){$("#lhc_op_operation").remove();var c=document.getElementsByTagName("head")[0],l=document.createElement("script");l.setAttribute("id","lhc_op_operation"),l.setAttribute("type","text/javascript"),l.setAttribute("src",WWW_DIR_JAVASCRIPT+"chat/loadoperatorjs"),c.appendChild(l)}if(void 0!==e.fs&&e.fs.length>0&&angular.forEach(e.fs,(function(t,e){lhinst.playSoundNewAction("pending_transfered",parseInt(t.id),t.nick?t.nick:"Live Help",confLH.transLation.transfered,t.nt,t.uid)})),void 0!==e.mac&&e.mac.length>0)(u=$("#tabs")).length>0&&0==lhinst.disableremember&&angular.forEach(e.mac,(function(t,e){lhinst.startChatBackground(t.id,u,a.truncate(t.nick||"Visitor",10),!1)}));s.hideOnline=1==e.ho,s.hideInvisible=1==e.im,s.alwaysOnline=1==e.a_on,s.inActive=1==e.ina,s.lhcVersion!=e.v&&(s.lhcVersion=e.v,s.lhcPendingRefresh=!0,s.versionChanged()),1==t.setTimeoutEnabled&&(t.timeoutControl=setTimeout((function(){t.loadChatList()}),confLH.back_office_sinterval)),s.isListLoaded=!0}}),(function(e){s.lhcConnectivityProblem=!0,s.lhcConnectivityProblemExplain=e,t.timeoutControl=setTimeout((function(){t.loadChatList()}),confLH.back_office_sinterval)}))},this.versionChanged=function(){var t=this;o((function(){t.lhcVersionCounter=t.lhcVersionCounter-1,console.log(t.lhcVersionCounter),0==t.lhcVersionCounter&&document.location.reload(!0)}),1e3)},this.compareNotificationsAndHide=function(t,e){if(void 0!==t)for(var n=t.length-1;n>=0;n--){var i=t[n];-1===e.indexOf(i)&&lhinst.hideNotification(i.split("_")[0])}},this.appendActiveChats=function(){a.loadActiveChats().then((function(t){var e=$("#tabs");angular.forEach(t.result,(function(t,n){lhinst.startChatBackground(t.id,e,a.truncate(t.nick||"Visitor",10))})),setTimeout((function(){lhinst.syncadmininterfacestatic()}),1e3)}))},this.previewChat=function(t,e){e&&e.stopPropagation(),lhc.previewChat(t)},this.previewChatArchive=function(t,e,n){n&&n.stopPropagation(),lhc.previewChatArchive(t,e)},this.redirectContact=function(t,e,n){return n&&n.stopPropagation(),lhinst.redirectContact(t,e)},this.startChatNewWindow=function(t,e,n){return n&&n.stopPropagation(),lhinst.startChatNewWindow(t,e)},this.deleteChat=function(t,e,n){return lhinst.deleteChat(t,e,n)},this.startGroupChat=function(t,e){if($("#tabs").length>0)return lhinst.startGroupChat(t,$("#tabs"),a.truncate(e,10))},this.startChatByID=function(t,e){if(!isNaN(t)&&$("#tabs").length>0){$("#menu-chat-options").dropdown("toggle");var n=this;a.getChatData(t).then((function(i){e?lhinst.startChatBackground(parseInt(t),$("#tabs"),a.truncate(i.nick||"Visitor",10),"backgroundid"):n.startChat(parseInt(t),a.truncate(i.nick||"Visitor",10))}))}},this.startChat=function(t,e){if($("#tabs").length>0)return lhinst.startChat(t,$("#tabs"),a.truncate(e||"Visitor",10));lhinst.startChatNewWindow(t,e)},this.startChatNewWindowTransfer=function(t,e,n){return lhinst.startChatNewWindowTransfer(t,e,n)},this.startChatTransfer=function(t,e,n){return lhinst.startChatTransfer(t,$("#tabs"),e,n)},t.startChatOperatorPublic=function(t){s.startChatOperator(t)},this.startChatOperator=function(t){a.getActiveOperatorChat(t).then((function(t){lhinst.startGroupChat(t.id,$("#tabs"),a.truncate(t.name,10))}))},this.openModal=function(e,n){n&&n.stopPropagation(),lhc.revealModal({url:WWW_DIR_JAVASCRIPT+e,hidecallback:function(){t.loadChatList()}})},this.addEvent=function(){var t=this;return document.addEventListener?function(e,n,i){if(e&&e.nodeName||e===window)e.addEventListener(n,i,!1);else if(e&&e.length)for(var r=0;r<e.length;r++)t.addEvent(e[r],n,i)}:function(e,n,i){if(e&&e.nodeName||e===window)e.attachEvent("on"+n,(function(){return i.call(e,window.event)}));else if(e&&e.length)for(var r=0;r<e.length;r++)t.addEvent(e[r],n,i)}}(),this.setupActivityMonitoring=function(){var t=this,e=function(){t.resetTimeoutActivity()};this.addEvent(window,"mousemove",e),this.addEvent(document,"mousemove",e),this.addEvent(window,"mousedown",e),this.addEvent(window,"click",e),this.addEvent(window,"scroll",e),this.addEvent(window,"keypress",e),this.addEvent(window,"load",e),this.addEvent(document,"scroll",e),this.addEvent(document,"touchstart",e),this.addEvent(document,"touchend",e),this.resetTimeoutActivity()},t.resetActivityFromChild=function(){s.resetTimeoutActivity()},this.resetTimeoutActivity=function(){var e=window.opener;if(e)try{e.angular.element("body").scope().resetActivityFromChild()}catch(t){console.log(t)}else if(0==this.blockSync){this.lastd_activity=Math.round((new Date).getTime()/1e3),clearTimeout(this.timeoutActivity);var n=this;this.timeoutActivity=setTimeout((function(){a.setInactive("true").then((function(e){if(1==e.active)return n.resetTimeoutActivity(),void(n.lastd_activity=0);n.blockSync=!0,lhinst.disableSync=!0,lhc.revealModal({url:WWW_DIR_JAVASCRIPT+"user/wentinactive/false",backdrop:!0,hidecallback:function(){a.setInactive("false"),n.isListLoaded=!1,n.blockSync=!1,n.resetTimeoutActivity(),lhinst.disableSync=!1,t.loadChatList(),n.inActive=!1}})}))}),1e3*n.timeoutActivityTime)}},this.getOpenedChatIds=function(t){if(localStorage)try{var e=localStorage.getItem(t);if(null!==e&&""!==e)return achat_id_array=e.split(",")}catch(t){}return[]},t.loadchatMessagesScope=function(){lhinst.syncadmincall()},this.verifyFilters=function(){var t=[],e=[],n=[],i=[];angular.forEach(s.userGroups,(function(t){e.push(t.id)})),angular.forEach(s.userDepartmentsGroups,(function(t){n.push(t.id)})),angular.forEach(s.userProductNames,(function(t){i.push(t.id)})),a.searchProvider("users_ids",s.pendingu.join(",")+","+s.activeu.join(",")+","+s.subjectu.join(",")).then((function(r){s.userList=r.items,angular.forEach(s.userList,(function(e){t.push(e.id)}));var o={activeu:t,actived_products:i,actived_ugroups:e,actived_dpgroups:n,pendingu:t,pendingd_ugroups:e,pendingd_dpgroups:n,pendingd_products:i,botd_dpgroups:n,botd_products:i,departmentd_dpgroups:n,closedd_products:i,closedd_dpgroups:n,unreadd_dpgroups:n,unreadd_products:i,mcd_products:i,mcd_dpgroups:n};angular.forEach(o,(function(t,e){var n=[...s[e]];angular.forEach(n,(function(n){-1===t.indexOf(n)&&(s[e].splice(s[e].indexOf(n),1),s.productChanged(e))}))}))}))},this.rejectGroupChat=function(e){a.rejectGroupChat(e).then((function(e){t.loadChatList()}))},this.startNewGroupChat=function(e,n){a.newGroupChat(e,n).then((function(e){lhinst.startGroupChat(e.id,$("#tabs"),a.truncate(e.name,10)),t.loadChatList(),s.new_group_name="",s.new_group_type=""}))},t.$watch("lhc.userFilterText",(function(t,e){t!=e&&a.searchProvider("users",t).then((function(t){s.userList=t.items}))})),this.initLHCData=function(){var e="",n=this.getOpenedChatIds("achat_id"),i=this.getOpenedChatIds("gachat_id"),r=0,o=window.location.hash;if(""!=o){var u=o.match(/\d+$/);null!==u&&u[0]&&(r=parseInt(u[0]),-1===n.indexOf(r)&&n.push(r))}var c=document.getElementById("load_chat_id");c&&-1===n.indexOf(c.value)&&(r=c.value,n.push(c.value),window.location.hash="#!#chat-id-"+c.value),$("#tabs").length>0&&0==lhinst.disableremember&&n.length>0&&(e="/(chatopen)/"+n.join("/")),$("#tabs").length>0&&0==lhinst.disableremember&&i.length>0&&(e+="/(chatgopen)/"+i.join("/")),a.loadInitialData(e).then((function(e){if(e.logout||e.error_url)document.location.reload();else{s.userDepartmentsNames=e.dp_names,s.userDepartments=e.dep_list,s.userProductNames=e.pr_names,s.userDepartmentsGroups=e.dp_groups,s.userGroups=e.user_groups,s.hideInvisible=e.im,s.hideOnline=e.ho,s.lhcVersion=e.v,s.alwaysOnline=e.a_on,s.additionalColumns=e.col,s.widgetsActive=e.widgets,s.bot_st=e.bot_st,s.excludeIcons=e.exc_ic,s.notifIcons=e.not_ic;var n=["subjectd","subjectd_products","subjectd_dpgroups","subjectd_ugroups","activeu","pendingu","subjectu","closedd","closedd_products","closedd_dpgroups","botd","botd_products","botd_dpgroups","botd_ugroups","pendingd","pendingd_products","pendingd_dpgroups","pendingd_ugroups","unreadd","unreadd_products","unreadd_dpgroups","mcd","mcd_products","mcd_dpgroups","actived","actived_products","actived_dpgroups","actived_ugroups","departmentd_dpgroups","departmentd","operatord_dpgroups","operatord"],i=["limitb","limita","limitu","limitp","limito","limitc","limitd","limitmc","limitgc","limits"];e.dw_filters&&Object.keys(e.dw_filters).forEach(t=>{-1!==n.indexOf(t)?s[t]=s.restoreSettingByString(e.dw_filters[t],!0):-1!==i.indexOf(t)&&(s[t]=e.dw_filters[t])}),angular.forEach(s.widgetsItems,(function(t){s.setDepartmentNames(t)})),1==e.track_activity&&(s.timeoutActivityTime=e.timeout_activity,s.setupActivityMonitoring()),angular.forEach(e.copen,(function(t){lhinst.startChat(t.id,$("#tabs"),a.truncate(t.nick||"Visitor",10),t.id==r,0,t.status)})),angular.forEach(e.cgopen,(function(t){lhinst.startGroupChat(t.id,$("#tabs"),a.truncate(t.nick||"Visitor",10),!0)})),angular.forEach(e.cdel,(function(t){lhinst.forgetChat(t,"achat_id")})),angular.forEach(e.cgdel,(function(t){lhinst.forgetChat(t,"gachat_id")})),ee.emitEvent("eventLoadInitialData",[e,t,s]),$_LHC_API.initial_data=e,s.verifyFilters(),t.loadChatList()}}))},this.initLHCData()}])}catch(t){if(!lhcError)throw Error("lhc : "+t.message);lhcError.log(t.message,"angular.lhc.js",t.lineNumber||t.line,t.stack)}
//# sourceMappingURL=cb79ca73cf9d378d7c3530fbe6765ae2.js.map