/**
 * @license AngularJS v1.8.2
 * (c) 2010-2020 Google LLC. http://angularjs.org
 * License: MIT
 */

/*!
   * mustache.js - Logic-less {{mustache}} templates with JavaScript
   * http://github.com/janl/mustache.js
   */

!function(e){"use strict";function t(e){if(!w(e))return mi;b(e.objectMaxDepth)&&(mi.objectMaxDepth=n(e.objectMaxDepth)?e.objectMaxDepth:NaN),b(e.urlErrorParamsEnabled)&&V(e.urlErrorParamsEnabled)&&(mi.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function n(e){return S(e)&&e>0}function r(e,t){t=t||Error;var n="https://errors.angularjs.org/1.8.2/",r=n.replace(".","\\.")+"[\\s\\S]*",i=new RegExp(r,"g");return function(){var r,o,a=arguments[0],s=arguments[1],u="["+(e?e+":":"")+a+"] ",l=K(arguments,2).map(function(e){return ke(e,mi.objectMaxDepth)});if(u+=s.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<l.length?l[t].replace(i,""):e}),u+="\n"+n+(e?e+"/":"")+a,mi.urlErrorParamsEnabled)for(o=0,r="?";o<l.length;o++,r="&")u+=r+"p"+o+"="+encodeURIComponent(l[o]);return new t(u)}}function i(e){if(null==e||M(e))return!1;if(A(e)||C(e)||pi&&e instanceof pi)return!0;var t="length"in Object(e)&&e.length;return S(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(E(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(A(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(x(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)yi.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(){return++Oi}function l(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(w(a)||E(a))for(var s=Object.keys(a),u=0,f=s.length;u<f;u++){var d=s[u],p=a[d];n&&w(p)?k(p)?e[d]=new Date(p.valueOf()):O(p)?e[d]=new RegExp(p):p.nodeName?e[d]=p.cloneNode(!0):R(p)?e[d]=p.clone():"__proto__"!==d&&(w(e[d])||(e[d]=A(p)?[]:{}),c(e[d],[p],!0)):e[d]=p}}return l(e,r),e}function f(e){return c(e,xi.call(arguments,1),!1)}function d(e){return c(e,xi.call(arguments,1),!0)}function p(e){return parseInt(e,10)}function h(e,t){return f(Object.create(e),t)}function v(){}function m(e){return e}function $(e){return function(){return e}}function g(e){return E(e.toString)&&e.toString!==ki}function y(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!Ai(e)}function C(e){return"string"==typeof e}function S(e){return"number"==typeof e}function k(e){return"[object Date]"===ki.call(e)}function A(e){return Array.isArray(e)||e instanceof Array}function T(e){switch(ki.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function E(e){return"function"==typeof e}function O(e){return"[object RegExp]"===ki.call(e)}function M(e){return e&&e.window===e}function D(e){return e&&e.$evalAsync&&e.$watch}function I(e){return"[object File]"===ki.call(e)}function j(e){return"[object FormData]"===ki.call(e)}function N(e){return"[object Blob]"===ki.call(e)}function V(e){return"boolean"==typeof e}function _(e){return e&&E(e.then)}function P(e){return e&&S(e.length)&&Di.test(ki.call(e))}function L(e){return"[object ArrayBuffer]"===ki.call(e)}function R(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function U(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function q(e){return bi(e.nodeName||e[0]&&e[0].nodeName)}function H(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function F(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function B(e,t,r){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(A(e))for(var o=0,s=e.length;o<s;o++)t.push(a(e[o],n));else if(x(e))for(r in e)t[r]=a(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],n));else for(r in e)yi.call(e,r)&&(t[r]=a(e[r],n));return l(t,i),t}function a(e,t){if(!w(e))return e;var n=u.indexOf(e);if(-1!==n)return c[n];if(M(e)||D(e))throw Ti("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=s(e);return void 0===o&&(o=A(e)?[]:Object.create(Ai(e)),r=!0),u.push(e),c.push(o),r?i(e,o,t):o}function s(e){switch(ki.call(e)){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 e.constructor(a(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(E(e.cloneNode))return e.cloneNode(!0)}var u=[],c=[];if(r=n(r)?r:NaN,t){if(P(t)||L(t))throw Ti("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Ti("cpi","Can't copy! Source and destination are identical.");return A(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),u.push(e),c.push(t),i(e,t,r)}return a(e,r)}function z(e,t){return e===t||e!==e&&t!==t}function W(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o===a&&"object"===o){if(!A(e)){if(k(e))return!!k(t)&&z(e.getTime(),t.getTime());if(O(e))return!!O(t)&&e.toString()===t.toString();if(D(e)||D(t)||M(e)||M(t)||A(t)||k(t)||O(t))return!1;i=be();for(r in e)if("$"!==r.charAt(0)&&!E(e[r])){if(!W(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!E(t[r]))return!1;return!0}if(!A(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!W(e[r],t[r]))return!1;return!0}}return!1}function G(e,t,n){return e.concat(xi.call(t,n))}function K(e,t){return xi.call(e,t||0)}function J(e,t){var n=arguments.length>2?K(arguments,2):[];return!E(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,G(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Y(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:M(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":D(n)&&(r="$SCOPE"),r}function X(e,t){if(!y(e))return S(t)||(t=t?2:null),JSON.stringify(e,Y,t)}function Z(e){return C(e)?JSON.parse(e):e}function Q(e,t){e=e.replace(_i,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Mi(n)?t:n}function ee(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function te(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return ee(e,n*(Q(t,r)-r))}function ne(e){e=pi(e).clone().empty();var t=pi("<div></div>").append(e).html();try{return e[0].nodeType===Hi?bi(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+bi(t)})}catch(e){return bi(t)}}function re(e){try{return decodeURIComponent(e)}catch(e){}}function ie(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=re(r),b(r)&&(i=!b(i)||re(i),yi.call(t,r)?A(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function oe(e){var t=[];return o(e,function(e,n){A(e)?o(e,function(e){t.push(se(n,!0)+(!0===e?"":"="+se(e,!0)))}):t.push(se(n,!0)+(!0===e?"":"="+se(e,!0)))}),t.length?t.join("&"):""}function ae(e){return se(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function se(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function ue(e,t){var n,r,i=Pi.length;for(r=0;r<i;++r)if(n=Pi[r]+t,C(n=e.getAttribute(n)))return n;return null}function le(t,n){var r,i,a={};if(o(Pi,function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))}),o(Pi,function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!Li)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==ue(r,"strict-di"),n(r,i?[i]:[],a)}}function ce(t,n,r){w(r)||(r={}),r=f({strictDi:!1},r);var i=function(){if(t=pi(t),t.injector()){var i=t[0]===e.document?"document":ne(t);throw Ti("btstrpd","App already bootstrapped with this element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var o=pt(n,r.strictDi);return o.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),o},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),Ei.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},E(Ei.resumeDeferredBootstrap)&&Ei.resumeDeferredBootstrap()}function fe(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function de(e){var t=Ei.element(e).injector();if(!t)throw Ti("test","no injector found for element argument to getTestability");return t.get("$$testability")}function pe(e,t){return t=t||"_",e.replace(Ri,function(e,n){return(n?t:"")+e.toLowerCase()})}function he(){_e.legacyXHTMLReplacement=!0}function ve(e,t,n){if(!e)throw Ti("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function me(e,t,n){return n&&A(e)&&(e=e[e.length-1]),ve(E(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function $e(e,t){if("hasOwnProperty"===e)throw Ti("badname","hasOwnProperty is not a valid {0} name",t)}function ge(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&E(e)?J(o,e):e}function ye(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=pi(xi.call(e,0,i))),t.push(n));return t||e}function be(){return Object.create(null)}function we(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!g(e)||A(e)||k(e)?X(e):e.toString()}return e}function xe(e){function t(e,t,n){return e[t]||(e[t]=n())}var n=r("$injector"),i=r("ng"),o=t(e,"angular",Object);return o.$$minErr=o.$$minErr||r,t(o,"module",function(){var e={};return function(r,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(r,"module"),o&&e.hasOwnProperty(r)&&(e[r]=null),t(e,r,function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),d}}function t(e,t,n){return n||(n=u),function(i,o){return o&&E(o)&&(o.$$moduleName=r),n.push([e,t,arguments]),d}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",r);var u=[],l=[],c=[],f=e("$injector","invoke","push",l),d={_invokeQueue:u,_configBlocks:l,_runBlocks:c,info:function(e){if(b(e)){if(!w(e))throw i("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:t("$provide","decorator",l),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),component:t("$compileProvider","component"),config:f,run:function(e){return c.push(e),this}};return a&&f(a),d})}})}function Ce(e,t){if(A(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function Se(e,t){var r=[];return n(t)&&(e=Ei.copy(e,null,t)),JSON.stringify(e,function(e,t){if(t=Y(e,t),w(t)){if(r.indexOf(t)>=0)return"...";r.push(t)}return t})}function ke(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):y(e)?"undefined":"string"!=typeof e?Se(e,t):e}function Ae(){return++Ki}function Te(e){return Oe(e.replace(Yi,"ms-"))}function Ee(e,t){return t.toUpperCase()}function Oe(e){return e.replace(Ji,Ee)}function Me(e){return!eo.test(e)}function De(e){var t=e.nodeType;return t===qi||!t||t===Bi}function Ie(e){for(var t in Gi[e.ng339])return!0;return!1}function je(t,n){var r,i,a,s,u,l=n.createDocumentFragment(),c=[];if(Me(t))c.push(n.createTextNode(t));else{if(r=l.appendChild(n.createElement("div")),i=(to.exec(t)||["",""])[1].toLowerCase(),s=_e.legacyXHTMLReplacement?t.replace(no,"<$1></$2>"):t,di<10)for(a=io[i]||io._default,r.innerHTML=a[1]+s+a[2],u=a[0];u--;)r=r.firstChild;else{for(a=ro[i]||[],u=a.length;--u>-1;)r.appendChild(e.document.createElement(a[u])),r=r.firstChild;r.innerHTML=s}c=G(c,r.childNodes),r=l.firstChild,r.textContent=""}return l.textContent="",l.innerHTML="",o(c,function(e){l.appendChild(e)}),l}function Ne(t,n){n=n||e.document;var r;return(r=Qi.exec(t))?[n.createElement(r[1])]:(r=je(t,n))?r.childNodes:[]}function Ve(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function _e(e){if(e instanceof _e)return e;var t;if(C(e)&&(e=Ii(e),t=!0),!(this instanceof _e)){if(t&&"<"!==e.charAt(0))throw Zi("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new _e(e)}t?Ke(this,Ne(e)):E(e)?et(e):Ke(this,e)}function Pe(e){return e.cloneNode(!0)}function Le(e,t){!t&&De(e)&&pi.cleanData([e]),e.querySelectorAll&&pi.cleanData(e.querySelectorAll("*"))}function Re(e){var t;for(t in e)return!1;return!0}function Ue(e){var t=e.ng339,n=t&&Gi[t],r=n&&n.events,i=n&&n.data;i&&!Re(i)||r&&!Re(r)||(delete Gi[t],e.ng339=void 0)}function qe(e,t,n,r){if(b(r))throw Zi("offargs","jqLite#off() does not support the `selector` argument");var i=Fe(e),a=i&&i.events,s=i&&i.handle;if(s){if(t){var u=function(t){var r=a[t];b(n)&&F(r||[],n),b(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),function(e){u(e),Xi[e]&&u(Xi[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t];Ue(e)}}function He(e,t){var n=e.ng339,r=n&&Gi[n];r&&(t?delete r.data[t]:r.data={},Ue(e))}function Fe(e,t){var n=e.ng339,r=n&&Gi[n];return t&&!r&&(e.ng339=n=Ae(),r=Gi[n]={events:{},data:{},handle:void 0}),r}function Be(e,t,n){if(De(e)){var r,i=b(n),o=!i&&t&&!w(t),a=!t,s=Fe(e,!o),u=s&&s.data;if(i)u[Oe(t)]=n;else{if(a)return u;if(o)return u&&u[Oe(t)];for(r in t)u[Oe(r)]=t[r]}}}function ze(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function We(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=Ii(e),r=r.replace(" "+e+" "," ")}),r!==n&&e.setAttribute("class",Ii(r))}}function Ge(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),r=n;o(t.split(" "),function(e){e=Ii(e),-1===r.indexOf(" "+e+" ")&&(r+=e+" ")}),r!==n&&e.setAttribute("class",Ii(r))}}function Ke(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Je(e,t){return Ye(e,"$"+(t||"ngController")+"Controller")}function Ye(e,t,n){e.nodeType===Bi&&(e=e.documentElement);for(var r=A(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(b(n=pi.data(e,r[i])))return n;e=e.parentNode||e.nodeType===zi&&e.host}}function Xe(e){for(Le(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ze(e,t){t||Le(e);var n=e.parentNode;n&&n.removeChild(e)}function Qe(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):pi(n).on("load",t)}function et(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function tt(e,t){var n=co[t.toLowerCase()];return n&&fo[q(e)]&&n}function nt(e){return po[e]}function rt(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(y(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=i.specialHandlerWrapper||it;o>1&&(i=Ce(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}function it(e,t,n){n.call(e,t)}function ot(e,t,n){var r=t.relatedTarget;r&&(r===e||uo.call(e,r))||n.call(e,t)}function at(){this.$get=function(){return f(_e,{hasClass:function(e,t){return e.attr&&(e=e[0]),ze(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ge(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),We(e,t)}})}}function st(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function ut(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function lt(e){return Function.prototype.toString.call(e)}function ct(e){var t=lt(e).replace(wo,"");return t.match($o)||t.match(go)}function ft(e){var t=ct(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function dt(e,t,n){var r,i,a;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw C(n)&&n||(n=e.name||ft(e)),xo("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ct(e),o(i[1].split(yo),function(e){e.replace(bo,function(e,t,n){r.push(n)})})}e.$inject=r}}else A(e)?(a=e.length-1,me(e[a],"fn"),r=e.slice(0,a)):me(e,"fn",!0);return r}function pt(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);o(t,s(e))}}function r(e,t){if($e(e,"service"),(E(t)||A(t))&&(t=x.instantiate(t)),!t.$get)throw xo("pget","Provider '{0}' must define $get factory method.",e);return b[e+v]=t}function i(e,t){return function(){var n=T.invoke(t,this);if(y(n))throw xo("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function a(e,t,n){return r(e,{$get:!1!==n?i(e,t):t})}function u(e,t){return a(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return a(e,$(t),!1)}function c(e,t){$e(e,"constant"),b[e]=t,S[e]=t}function f(e,t){var n=x.get(e+v),r=n.$get;n.$get=function(){var e=T.invoke(r,n);return T.invoke(t,null,{$delegate:e})}}function d(e){ve(y(e)||A(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=x.get(r[0]);i[r[1]].apply(i,r[2])}}if(!g.get(e)){g.set(e,!0);try{C(e)?(t=vi(e),T.modules[e]=t,n=n.concat(d(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):E(e)?n.push(x.invoke(e)):A(e)?n.push(x.invoke(e)):me(e,"module")}catch(t){throw A(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),xo("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function p(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===h)throw xo("cdep","Circular dependency found: {0}",t+" <- "+m.join(" <- "));return e[t]}try{return m.unshift(t),e[t]=h,e[t]=n(t,r),e[t]}catch(n){throw e[t]===h&&delete e[t],n}finally{m.shift()}}function i(e,n,i){for(var o=[],a=pt.$$annotate(e,t,i),s=0,u=a.length;s<u;s++){var l=a[s];if("string"!=typeof l)throw xo("itkn","Incorrect injection token! Expected service name as string, got {0}",l);o.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return o}function o(e){if(di||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return V(t)||(t=e.$$ngIsClass=/^class\b/.test(lt(e))),t}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return A(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=A(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:pt.$$annotate,has:function(t){return b.hasOwnProperty(t+v)||e.hasOwnProperty(t)}}}t=!0===t;var h={},v="Provider",m=[],g=new vo,b={$provide:{provider:n(r),factory:n(a),service:n(u),value:n(l),constant:n(c),decorator:f}},x=b.$injector=p(b,function(e,t){throw Ei.isString(t)&&m.push(t),xo("unpr","Unknown provider: {0}",m.join(" <- "))}),S={},k=p(S,function(e,t){var n=x.get(e+v,t);return T.invoke(n.$get,n,void 0,e)}),T=k;b["$injector"+v]={$get:$(k)},T.modules=x.modules=be();var O=d(e);return T=k.get("$injector"),T.strictDi=t,o(O,function(e){e&&T.invoke(e)}),T.loadNewModules=function(e){o(d(e),function(e){e&&T.invoke(e)})},T}function ht(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===q(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(E(e))e=e();else if(R(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else S(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=C(e)?e:S(e)?e.toString():n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Qe(function(){r.$evalAsync(s)})}),s}]}function vt(e,t){return e||t?e?t?(A(e)&&(e=e.join(" ")),A(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function mt(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===So)return n}}function $t(e){C(e)&&(e=e.split(" "));var t=be();return o(e,function(e){e.length&&(t[e]=!0)}),t}function gt(e){return w(e)?e:{}}function yt(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function bt(e){return e.replace(/#$/,"")}function wt(e,t,n,r,i){function a(){x=null,u()}function s(){$=C(),$=y($)?null:$,W($,A)&&($=A),A=$,g=$}function u(){var e=g;s(),b===l.url()&&e===$||(b=l.url(),g=$,o(S,function(e){e(l.url(),$)}))}var l=this,c=e.location,f=e.history,d=e.setTimeout,p=e.clearTimeout,h={},m=i(n);l.isMock=!1,l.$$completeOutstandingRequest=m.completeTask,l.$$incOutstandingRequestCount=m.incTaskCount,l.notifyWhenNoOutstandingRequests=m.notifyWhenNoPendingTasks;var $,g,b=c.href,w=t.find("base"),x=null,C=r.history?function(){try{return f.state}catch(e){}}:v;s(),l.url=function(t,n,i){if(y(i)&&(i=null),c!==e.location&&(c=e.location),f!==e.history&&(f=e.history),t){var o=g===i;if(t=Zn(t).href,b===t&&(!r.history||o))return l;var a=b&&an(b)===an(t);return b=t,g=i,!r.history||a&&o?(a||(x=t),n?c.replace(t):a?c.hash=yt(t):c.href=t,c.href!==t&&(x=t)):(f[n?"replaceState":"pushState"](i,"",t),s()),x&&(x=t),l}return bt(x||c.href)},l.state=function(){return $};var S=[],k=!1,A=null;l.onUrlChange=function(t){return k||(r.history&&pi(e).on("popstate",a),pi(e).on("hashchange",a),k=!0),S.push(t),t},l.$$applicationDestroyed=function(){pi(e).off("hashchange popstate",a)},l.$$checkUrlChange=u,l.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},l.defer=function(e,t,n){var r;return t=t||0,n=n||m.DEFAULT_TASK_TYPE,m.incTaskCount(n),r=d(function(){delete h[r],m.completeTask(e,n)},t),h[r]=n,r},l.defer.cancel=function(e){if(h.hasOwnProperty(e)){var t=h[e];return delete h[e],p(e),m.completeTask(v,t),!0}return!1}}function xt(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,r,i){return new wt(e,r,t,n,i)}]}function Ct(){this.$get=function(){function e(e,n){function i(e){e!==d&&(p?p===e&&(p=e.n):p=e,o(e.n,e.p),o(e,d),d=e,d.n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in t)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},n,{id:e}),u=be(),l=n&&n.capacity||Number.MAX_VALUE,c=be(),d=null,p=null;return t[e]={put:function(e,t){if(!y(t)){if(l<Number.MAX_VALUE){i(c[e]||(c[e]={key:e}))}return e in u||a++,u[e]=t,a>l&&this.remove(p.key),t}},get:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=c[e];if(!t)return;t===d&&(d=t.p),t===p&&(p=t.n),o(t.n,t.p),delete c[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=be(),a=0,c=be(),d=p=null},destroy:function(){u=null,s=null,c=null,delete t[e]},info:function(){return f({},s,{size:a})}}}var t={};return e.info=function(){var e={};return o(t,function(t,n){e[n]=t.info()}),e},e.get=function(e){return t[e]},e}}function St(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function kt(){}function At(t,n){function r(e,t,n){var r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=be();return o(e,function(e,o){if((e=e.trim())in O)return void(i[o]=O[e]);var a=e.match(r);if(!a)throw Do("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,o,e,n?"controller bindings definition":"isolate scope definition");i[o]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||o},a[4]&&(O[e]=i[o])}),i}function i(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Do("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function a(e){var t=e.charAt(0);if(!t||t!==bi(t))throw Do("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Do("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function u(e){var t=e.require||e.controller&&e.name;return!A(t)&&w(t)&&o(t,function(e,n){var r=e.match(S);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function l(e,t){if(e&&(!C(e)||!/[EACM]/.test(e)))throw Do("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var c={},d="Directive",p=/^\s*directive:\s*([\w-]+)\s+(.*)$/,g=/(([\w-]+)(?::([^;]+))?;?)/,x=U("ngSrc,ngSrcset,src,srcset"),S=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,O=be();this.directive=function e(n,r){return ve(n,"name"),$e(n,"directive"),C(n)?(a(n),ve(r,"directiveFactory"),c.hasOwnProperty(n)||(c[n]=[],t.factory(n+d,["$injector","$exceptionHandler",function(e,t){var r=[];return o(c[n],function(i,o){try{var a=e.invoke(i);E(a)?a={compile:$(a)}:!a.compile&&a.link&&(a.compile=$(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=u(a),a.restrict=l(a.restrict,n),a.$$moduleName=i.$$moduleName,r.push(a)}catch(e){t(e)}}),r}])),c[n].push(r)):o(n,s(e)),this},this.component=function e(t,n){function r(e){function t(t){return E(t)||A(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var r=n.template||n.templateUrl?n.template:"",a={controller:i,controllerAs:Dt(n.controller)||n.controllerAs||"$ctrl",template:t(r),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return o(n,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}if(!C(t))return o(t,s(J(this,e))),this;var i=n.controller||function(){};return o(n,function(e,t){"$"===t.charAt(0)&&(r[t]=e,E(i)&&(i[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(e){return b(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return b(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var M=!0;this.debugInfoEnabled=function(e){return b(e)?(M=e,this):M};var I=!1;this.strictComponentBindingsEnabled=function(e){return b(e)?(I=e,this):I};var j=10;this.onChangesTtl=function(e){return arguments.length?(j=e,this):j};var N=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(N=e,this):N};var _=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(_=e,this):_};var P=be();this.addPropertySecurityContext=function(e,t,n){var r=e.toLowerCase()+"|"+t.toLowerCase();if(r in P&&P[r]!==n)throw Do("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,P[r],n);return P[r]=n,this},function(){function e(e,t){o(t,function(t){P[t.toLowerCase()]=e})}e(ua.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(ua.CSS,["*|style"]),e(ua.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(ua.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(ua.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,r,a,s,u,l,$,b){function O(){try{if(!--Le)throw Ie=void 0,Do("infchng","{0} $onChanges() iterations reached. Aborting!\n",j);l.$apply(function(){for(var e=0,t=Ie.length;e<t;++e)try{Ie[e]()}catch(e){r(e)}Ie=void 0})}finally{Le++}}function L(e,t){if(!e)return e;if(!C(e))throw Do("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",r=Ii(e),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,o=/\s/.test(r)?i:/(,)/,a=r.split(o),s=Math.floor(a.length/2),u=0;u<s;u++){var l=2*u;n+=$.getTrustedMediaUrl(Ii(a[l])),n+=" "+Ii(a[l+1])}var c=Ii(a[2*u]).split(/\s/);return n+=$.getTrustedMediaUrl(Ii(c[0])),2===c.length&&(n+=" "+Ii(c[1])),n}function R(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function U(e,t,n){Ne.innerHTML="<span "+t+">";var r=Ne.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function H(e,t){try{e.addClass(t)}catch(e){}}function B(e,t,n,r,i){e instanceof pi||(e=pi(e));var o=Y(e,t,e,n,r,i);B.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw Do("multilink","This element has already been linked.");ve(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,u=r.transcludeControllers,l=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=G(l));var c;if(c="html"!==a?pi(ge(a,pi("<div></div>").append(e).html())):n?lo.clone.call(e):e,u)for(var f in u)c.data("$"+f+"Controller",u[f].instance);return B.$$addScopeInfo(c,t),n&&n(c,t),o&&o(t,c,c,s),n||(e=o=null),c}}function G(e){var t=e&&e[0];return t&&"foreignobject"!==q(t)&&ki.call(t).match(/SVG/)?"svg":"html"}function Y(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,u,l,c,f,d,v;if(p){var m=n.length;for(v=new Array(m),l=0;l<h.length;l+=3)f=h[l],v[f]=n[f]}else v=n;for(l=0,c=h.length;l<c;)s=v[h[l++]],o=h[l++],a=h[l++],o?(o.scope?(u=e.$new(),B.$$addScopeInfo(pi(s),u)):u=e,d=o.transcludeOnThisElement?Z(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?Z(e,t):null,o(a,u,s,r,d)):a&&a(e,s.childNodes,void 0,i)}for(var s,u,l,c,f,d,p,h=[],v=A(e)||e instanceof pi,m=0;m<e.length;m++)s=new R,11===di&&X(e,m,v),u=Q(e[m],[],s,0===m?r:void 0,i),l=u.length?oe(u,e[m],s,t,n,null,[],[],o):null,l&&l.scope&&B.$$addScopeClass(s.$$element),f=l&&l.terminal||!(c=e[m].childNodes)||!c.length?null:Y(c,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||f)&&(h.push(m,l,f),d=!0,p=p||l),o=null;return d?a:null}function X(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===Hi)for(;;){if(!(r=o?i.nextSibling:e[t+1])||r.nodeType!==Hi)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}}function Z(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=be();for(var o in t.$$slots)t.$$slots[o]?i[o]=Z(e,t.$$slots[o],n):i[o]=null;return r}function Q(e,t,n,r,i){var o,a,s,u=e.nodeType,l=n.$attr;switch(u){case qi:a=q(e),le(t,Et(a),"E",r,i);for(var c,f,d,p,h,v=e.attributes,m=0,$=v&&v.length;m<$;m++){var y,b=!1,x=!1,S=!1,k=!1,A=!1;c=v[m],f=c.name,p=c.value,d=Et(f.toLowerCase()),(h=d.match(He))?(S="Attr"===h[1],k="Prop"===h[1],A="On"===h[1],f=f.replace(jo,"").toLowerCase().substr(4+h[1].length).replace(/_(.)/g,function(e,t){return t.toUpperCase()})):(y=d.match(Fe))&&ce(y[1])&&(b=f,x=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),k||A?(n[d]=p,l[d]=c.name,k?Ce(e,t,d,f):Se(t,d,f)):(d=Et(f.toLowerCase()),l[d]=f,!S&&n.hasOwnProperty(d)||(n[d]=p,tt(e,d)&&(n[d]=!0)),ke(e,t,p,d,S),le(t,d,"A",r,i,b,x))}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!_e)break;if(s=e.className,w(s)&&(s=s.animVal),C(s)&&""!==s)for(;o=g.exec(s);)d=Et(o[2]),le(t,d,"C",r,i)&&(n[d]=Ii(o[3])),s=s.substr(o.index+o[0].length);break;case Hi:$e(t,e.nodeValue);break;case Fi:if(!Ve)break;ee(e,t,n,r,i)}return t.sort(he),t}function ee(e,t,n,r,i){try{var o=p.exec(e.nodeValue);if(o){var a=Et(o[1]);le(t,a,"M",r,i)&&(n[a]=Ii(o[2]))}}catch(e){}}function te(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Do("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===qi&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return pi(r)}function re(e,t,n){return function(r,i,o,a,s){return i=te(i[0],t,n),e(r,i,o,a,s)}}function ie(e,t,n,r,i,o){var a;return e?B(t,n,r,i,o):function(){return a||(a=B(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function oe(t,n,i,a,s,u,l,c,d){function p(e,t,n,r){e&&(n&&(e=re(e,n,r)),e.require=v.require,e.directiveName=m,(k===v||v.$$isolateScope)&&(e=Te(e,{isolateScope:!0})),l.push(e)),t&&(n&&(t=re(t,n,r)),t.require=v.require,t.directiveName=m,(k===v||v.$$isolateScope)&&(t=Te(t,{isolateScope:!0})),c.push(t))}function h(e,t,a,s,u){function d(e,t,n,r){var i;if(D(e)||(r=n,n=t,t=e,e=void 0),j&&(i=g),n||(n=j?x.parent():x),!r)return u(e,t,i,n,P);var o=u.$$slots[r];if(o)return o(e,t,i,n,P);if(y(o))throw Do("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,ne(x))}var p,h,v,m,$,g,b,x,O,M;n===a?(O=i,x=i.$$element):(x=pi(a),O=new R(x,i)),$=t,k?m=t.$new(!0):C&&($=t.$parent),u&&(b=d,b.$$boundTransclude=u,b.isSlotFilled=function(e){return!!u.$$slots[e]}),S&&(g=se(x,O,b,S,m,t,k)),k&&(B.$$addScopeInfo(x,m,!0,!(T&&(T===k||T===k.$$originalDirective))),B.$$addScopeClass(x,!0),m.$$isolateBindings=k.$$isolateBindings,M=De(t,O,m,m.$$isolateBindings,k),M.removeWatches&&m.$on("$destroy",M.removeWatches));for(var I in g){var N=S[I],V=g[I],_=N.$$bindings.bindToController;V.instance=V(),x.data("$"+N.name+"Controller",V.instance),V.bindingInfo=De($,O,V.instance,_,N)}for(o(S,function(e,t){var n=e.require;e.bindToController&&!A(n)&&w(n)&&f(g[t].instance,ae(t,n,x,g))}),o(g,function(e){var t=e.instance;if(E(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(E(t.$onInit))try{t.$onInit()}catch(e){r(e)}E(t.$doCheck)&&($.$watch(function(){t.$doCheck()}),t.$doCheck()),E(t.$onDestroy)&&$.$on("$destroy",function(){t.$onDestroy()})}),p=0,h=l.length;p<h;p++)v=l[p],Ee(v,v.isolateScope?m:t,x,O,v.require&&ae(v.directiveName,v.require,x,g),b);var P=t;for(k&&(k.template||null===k.templateUrl)&&(P=m),e&&e(P,a.childNodes,void 0,u),p=c.length-1;p>=0;p--)v=c[p],Ee(v,v.isolateScope?m:t,x,O,v.require&&ae(v.directiveName,v.require,x,g),b);o(g,function(e){var t=e.instance;E(t.$postLink)&&t.$postLink()})}d=d||{};for(var v,m,$,g,b,x=-Number.MAX_VALUE,C=d.newScopeDirective,S=d.controllerDirectives,k=d.newIsolateScopeDirective,T=d.templateDirective,O=d.nonTlbTranscludeDirective,M=!1,I=!1,j=d.hasElementTranscludeDirective,N=i.$$element=pi(n),V=u,_=a,P=!1,L=!1,U=0,H=t.length;U<H;U++){v=t[U];var F=v.$$start,z=v.$$end;if(F&&(N=te(n,F,z)),$=void 0,x>v.priority)break;if(b=v.scope,b&&(v.templateUrl||(w(b)?(me("new/isolated scope",k||C,v,N),k=v):me("new/isolated scope",k,v,N)),C=C||v),m=v.name,!P&&(v.replace&&(v.templateUrl||v.template)||v.transclude&&!v.$$tlb)){for(var W,G=U+1;W=t[G++];)if(W.transclude&&!W.$$tlb||W.replace&&(W.templateUrl||W.template)){L=!0;break}P=!0}if(!v.templateUrl&&v.controller&&(S=S||be(),me("'"+m+"' controller",S[m],v,N),S[m]=v),b=v.transclude)if(M=!0,v.$$tlb||(me("transclusion",O,v,N),O=v),"element"===b)j=!0,x=v.priority,$=N,N=i.$$element=pi(B.$$createComment(m,i[m])),n=N[0],Ae(s,K($),n),_=ie(L,$,a,x,V&&V.name,{nonTlbTranscludeDirective:O});else{var Y=be();if(w(b)){$=e.document.createDocumentFragment();var X=be(),Z=be();o(b,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,X[e]=t,Y[t]=null,Z[t]=n}),o(N.contents(),function(t){var n=X[Et(q(t))];n?(Z[n]=!0,Y[n]=Y[n]||e.document.createDocumentFragment(),Y[n].appendChild(t)):$.appendChild(t)}),o(Z,function(e,t){if(!e)throw Do("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ee in Y)if(Y[ee]){var oe=pi(Y[ee].childNodes);Y[ee]=ie(L,oe,a)}$=pi($.childNodes)}else $=pi(Pe(n)).contents();N.empty(),_=ie(L,$,a,void 0,void 0,{needsNewScope:v.$$isolateScope||v.$$newScope}),_.$$slots=Y}if(v.template)if(I=!0,me("template",T,v,N),T=v,b=E(v.template)?v.template(N,i):v.template,b=qe(b),v.replace){if(V=v,$=Me(b)?[]:Mt(ge(v.templateNamespace,Ii(b))),n=$[0],1!==$.length||n.nodeType!==qi)throw Do("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");Ae(s,N,n);var le={$attr:{}},ce=Q(n,[],le),pe=t.splice(U+1,t.length-(U+1));(k||C)&&ue(ce,k,C),t=t.concat(ce).concat(pe),fe(i,le),H=t.length}else N.html(b);if(v.templateUrl)I=!0,me("template",T,v,N),T=v,v.replace&&(V=v),h=de(t.splice(U,t.length-U),N,i,s,M&&_,l,c,{controllerDirectives:S,newScopeDirective:C!==v&&C,newIsolateScopeDirective:k,templateDirective:T,nonTlbTranscludeDirective:O}),H=t.length;else if(v.compile)try{g=v.compile(N,i,_);var he=v.$$originalDirective||v;E(g)?p(null,J(he,g),F,z):g&&p(J(he,g.pre),J(he,g.post),F,z)}catch(e){r(e,ne(N))}v.terminal&&(h.terminal=!0,x=Math.max(x,v.priority))}return h.scope=C&&!0===C.scope,h.transcludeOnThisElement=M,h.templateOnThisElement=I,h.transclude=_,d.hasElementTranscludeDirective=j,h}function ae(e,t,n,r){var i;if(C(t)){var a=t.match(S),s=t.substring(a[0].length),u=a[1]||a[3],l="?"===a[2];if("^^"===u?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var c="$"+s+"Controller";i="^^"===u&&n[0]&&n[0].nodeType===Bi?null:u?n.inheritedData(c):n.data(c)}if(!i&&!l)throw Do("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(A(t)){i=[];for(var f=0,d=t.length;f<d;f++)i[f]=ae(e,t[f],n,r)}else w(t)&&(i={},o(t,function(t,o){i[o]=ae(e,t,n,r)}));return i||null}function se(e,t,n,r,i,o,a){var s=be();for(var l in r){var c=r[l],f={$scope:c===a||c.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},d=c.controller;"@"===d&&(d=t[c.name]);var p=u(d,f,!0,c.controllerAs);s[c.name]=p,e.data("$"+c.name+"Controller",p.instance)}return s}function ue(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=h(e[r],{$$isolateScope:t,$$newScope:n})}function le(e,n,r,o,a,s,u){if(n===a)return null;var l=null;if(c.hasOwnProperty(n))for(var f,p=t.get(n+d),v=0,m=p.length;v<m;v++)if(f=p[v],(y(o)||o>f.priority)&&-1!==f.restrict.indexOf(r)){if(s&&(f=h(f,{$$start:s,$$end:u})),!f.$$bindings){var $=f.$$bindings=i(f,f.name);w($.isolateScope)&&(f.$$isolateBindings=$.isolateScope)}e.push(f),l=f}return l}function ce(e){if(c.hasOwnProperty(e))for(var n,r=t.get(e+d),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function fe(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function de(e,t,n,i,s,u,l,c){var f,d,p=[],v=t[0],m=e.shift(),$=h(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),g=E(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,y=m.templateNamespace;return t.empty(),a(g).then(function(r){var a,h,b,x;if(r=qe(r),m.replace){if(b=Me(r)?[]:Mt(ge(y,Ii(r))),a=b[0],1!==b.length||a.nodeType!==qi)throw Do("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);h={$attr:{}},Ae(i,t,a);var C=Q(a,[],h);w(m.scope)&&ue(C,!0),e=C.concat(e),fe(n,h)}else a=v,t.html(r);for(e.unshift($),f=oe(e,a,n,s,t,m,u,l,c),o(i,function(e,n){e===a&&(i[n]=t[0])}),d=Y(t[0].childNodes,s);p.length;){var S=p.shift(),k=p.shift(),A=p.shift(),T=p.shift(),E=t[0];if(!S.$$destroyed){if(k!==v){var O=k.className;c.hasElementTranscludeDirective&&m.replace||(E=Pe(a)),Ae(A,pi(k),E),H(pi(E),O)}x=f.transcludeOnThisElement?Z(S,f.transclude,T):T,f(d,S,E,i,x)}}p=null}).catch(function(e){T(e)&&r(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(p?p.push(t,n,r,o):(f.transcludeOnThisElement&&(o=Z(t,f.transclude,i)),f(d,t,n,r,o)))}}function he(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function me(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Do("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,ne(r))}function $e(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&B.$$addBindingClass(t),function(e,t){var i=t.parent();n||B.$$addBindingClass(i),B.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function ge(t,n){switch(t=bi(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ye(e,t){return"srcdoc"===t?$.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?$.RESOURCE_URL:$.MEDIA_URL:"xlinkHref"===t?"image"===e?$.MEDIA_URL:"a"===e?$.URL:$.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?$.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:$.URL}function we(e,t){var n=t.toLowerCase();return P[e+"|"+n]||P["*|"+n]}function xe(e){return L($.valueOf(e),"ng-prop-srcset")}function Ce(e,t,n,r){if(k.test(r))throw Do("nodomevents","Property bindings for HTML DOM event properties are disallowed");var i=q(e),o=we(i,r),a=m;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=$.getTrusted.bind($,o)):a=xe,t.push({priority:100,compile:function(e,t){var i=s(t[n]),o=s(t[n],function(e){return $.valueOf(e)});return{pre:function(e,t){function n(){var n=i(e);t[0][r]=a(n)}n(),e.$watch(o,n)}}}})}function Se(e,t,n){e.push(ii(s,l,r,t,n,!1))}function ke(e,t,r,i,o){var a=q(e),s=ye(a,i),u=!o,l=x[i]||o,c=n(r,u,s,l);if(c){if("multiple"===i&&"select"===a)throw Do("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",ne(e));if(k.test(i))throw Do("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var a=o.$$observers||(o.$$observers=be()),u=o[i];u!==r&&(c=u&&n(u,!0,s,l),r=u),c&&(o[i]=c(e),(a[i]||(a[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(c,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function Ae(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;l<f;l++,c++)c<f?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var d=e.document.createDocumentFragment();for(i=0;i<s;i++)d.appendChild(n[i]);for(pi.hasData(a)&&(pi.data(r,pi.data(a)),pi(a).off("$destroy")),pi.cleanData(d.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function Te(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function Ee(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(e){r(e,ne(n))}}function Oe(e,t){if(I)throw Do("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function De(e,t,r,i,a){function u(t,n,i){E(r.$onChanges)&&!z(n,i)&&(Ie||(e.$$postDigest(O),Ie=[]),c||(c={},Ie.push(l)),c[t]&&(i=c[t].previousValue),c[t]=new Tt(i,n))}function l(){r.$onChanges(c),c=void 0}var c,f=[],d={};return o(i,function(i,o){var l,c,p,h,m,$=i.attrName,g=i.optional,y=i.mode;switch(y){case"@":g||yi.call(t,$)||(Oe($,a.name),r[o]=t[$]=void 0),m=t.$observe($,function(e){if(C(e)||V(e)){var t=r[o];u(o,e,t),r[o]=e}}),t.$$observers[$].$$scope=e,l=t[$],C(l)?r[o]=n(l)(e):V(l)&&(r[o]=l),d[o]=new Tt(Io,r[o]),f.push(m);break;case"=":if(!yi.call(t,$)){if(g)break;Oe($,a.name),t[$]=void 0}if(g&&!t[$])break;c=s(t[$]),h=c.literal?W:z,p=c.assign||function(){throw l=r[o]=c(e),Do("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[$],$,a.name)},l=r[o]=c(e);var b=function(t){return h(t,r[o])||(h(t,l)?p(e,t=r[o]):r[o]=t),l=t};b.$stateful=!0,m=i.collection?e.$watchCollection(t[$],b):e.$watch(s(t[$],b),null,c.literal),f.push(m);break;case"<":if(!yi.call(t,$)){if(g)break;Oe($,a.name),t[$]=void 0}if(g&&!t[$])break;c=s(t[$]);var w=c.literal,x=r[o]=c(e);d[o]=new Tt(Io,r[o]),m=e[i.collection?"$watchCollection":"$watch"](c,function(e,t){if(t===e){if(t===x||w&&W(t,x))return;t=x}u(o,e,t),r[o]=e}),f.push(m);break;case"&":if(g||yi.call(t,$)||Oe($,a.name),(c=t.hasOwnProperty($)?s(t[$]):v)===v&&g)break;r[o]=function(t){return c(e,t)}}}),{initialChanges:d,removeWatches:f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}}var Ie,je=/^\w/,Ne=e.document.createElement("div"),Ve=N,_e=_,Le=j;R.prototype={$normalize:Et,$addClass:function(e){e&&e.length>0&&b.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&b.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Ot(e,t);n&&n.length&&b.addClass(this.$$element,n);var r=Ot(t,e);r&&r.length&&b.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a,s=this.$$element[0],u=tt(s,e),l=nt(e),c=e;u?(this.$$element.prop(e,t),i=u):l&&(this[l]=t,c=l),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=pe(e,"-")),a=q(this.$$element),"img"===a&&"srcset"===e&&(this[e]=t=L(t,"$set('srcset', value)")),!1!==n&&(null===t||y(t)?this.$$element.removeAttr(i):je.test(i)?u&&!1===t?this.$$element.removeAttr(i):this.$$element.attr(i,t):U(this.$$element[0],i,t));var f=this.$$observers;f&&o(f[c],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=be()),i=r[e]||(r[e]=[]);return i.push(t),l.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||y(n[e])||t(n[e])}),function(){F(i,t)}}};var Re=n.startSymbol(),Ue=n.endSymbol(),qe="{{"===Re&&"}}"===Ue?m:function(e){return e.replace(/\{\{/g,Re).replace(/}}/g,Ue)},He=/^ng(Attr|Prop|On)([A-Z].*)$/,Fe=/^(.+)Start$/;return B.$$addBindingInfo=M?function(e,t){var n=e.data("$binding")||[];A(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:v,B.$$addBindingClass=M?function(e){H(e,"ng-binding")}:v,B.$$addScopeInfo=M?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:v,B.$$addScopeClass=M?function(e,t){H(e,t?"ng-isolate-scope":"ng-scope")}:v,B.$$createComment=function(t,n){var r="";return M&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},B}]}function Tt(e,t){this.previousValue=e,this.currentValue=t}function Et(e){return e.replace(jo,"").replace(No,function(e,t,n){return n?t.toUpperCase():t})}function Ot(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function Mt(e){e=pi(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===Fi||n.nodeType===Hi&&""===n.nodeValue.trim())&&Ci.call(e,t,1)}return e}function Dt(e,t){if(t&&C(t))return t;if(C(e)){var n=_o.exec(e);if(n)return n[3]}}function It(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){$e(t,"controller"),w(t)?f(e,t):e[t]=n},this.$get=["$injector",function(t){function n(e,t,n,i){if(!e||!w(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}return function(r,i,o,a){var s,u,l,c;if(o=!0===o,a&&C(a)&&(c=a),C(r)){if(!(u=r.match(_o)))throw Vo("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=u[1],c=c||u[3],!(r=e.hasOwnProperty(l)?e[l]:ge(i.$scope,l,!0)))throw Vo("ctrlreg","The controller with the name '{0}' is not registered.",l);me(r,l,!0)}if(o){var d=(A(r)?r[r.length-1]:r).prototype;return s=Object.create(d||null),c&&n(i,c,s,l||r.name),f(function(){var e=t.invoke(r,s,i,l);return e!==s&&(w(e)||E(e))&&(s=e,c&&n(i,c,s,l||r.name)),s},{instance:s,identifier:c})}return s=t.instantiate(r,i,l),c&&n(i,c,s,l||r.name),s}}]}function jt(){this.$get=["$window",function(e){return pi(e.document)}]}function Nt(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function Vt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function _t(e){return w(e)?k(e)?e.toISOString():X(e):e}function Pt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||y(e)||E(e)||(A(e)?o(e,function(e){t.push(se(n)+"="+se(_t(e)))}):t.push(se(n)+"="+se(_t(e))))}),t.join("&")}}}function Lt(){this.$get=function(){return function(e){function t(e,r,i){A(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!k(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):(E(e)&&(e=e()),n.push(se(r)+"="+(null==e?"":se(_t(e)))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Rt(e,t){if(C(e)){var n=e.replace(Ho,"").trim();if(n){var r=t("Content-Type"),i=r&&0===r.indexOf(Lo);if(i||Ut(n))try{e=Z(n)}catch(t){if(!i)return e;throw Fo("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}return e}function Ut(e){var t=e.match(Uo);return t&&qo[t[0]].test(e)}function qt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=be();return C(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(bi(Ii(e.substr(0,n))),Ii(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(bi(n),Ii(e))}),r}function Ht(e){var t;return function(n){if(t||(t=qt(e)),n){var r=t[bi(n)];return void 0===r&&(r=null),r}return t}}function Ft(e,t,n,r){return E(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Bt(e){return 200<=e&&e<300}function zt(){var e=this.defaults={transformResponse:[Rt],transformRequest:[function(e){return!w(e)||I(e)||N(e)||j(e)?e:X(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ce(Ro),put:Ce(Ro),patch:Ce(Ro)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t};var n=this.interceptors=[],i=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,s,u,l,c,d,p,h){function m(t){function n(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function i(){a.$$completeOutstandingRequest(v,"$http")}function s(e,t){var n,r={};return o(e,function(e,i){E(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}function u(t){var n=t.headers,r=Ft(t.data,Ht(n),void 0,t.transformRequest);return y(r)&&o(n,function(e,t){"content-type"===bi(t)&&delete n[t]}),y(t.withCredentials)&&!y(e.withCredentials)&&(t.withCredentials=e.withCredentials),$(t,r).then(l,l)}function l(e){var t=f({},e);return t.data=Ft(e.data,e.headers,e.status,c.transformResponse),Bt(e.status)?t:d.reject(t)}if(!w(t))throw r("$http")("badreq","Http request configuration must be an object.  Received: {0}",t);if(!C(h.valueOf(t.url)))throw r("$http")("badreq","Http request configuration url must be a string or a $sce trusted object.  Received: {0}",t.url);var c=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},t);c.headers=function(t){var n,r,i,o=e.headers,a=f({},t.headers);o=f({},o.common,o[bi(t.method)]);e:for(n in o){r=bi(n);for(i in a)if(bi(i)===r)continue e;a[n]=o[n]}return s(a,Ce(t))}(t),c.method=wi(c.method),c.paramSerializer=C(c.paramSerializer)?p.get(c.paramSerializer):c.paramSerializer,a.$$incOutstandingRequestCount("$http");var m=[],g=[],b=d.resolve(c);return o(k,function(e){(e.request||e.requestError)&&m.unshift(e.request,e.requestError),(e.response||e.responseError)&&g.push(e.response,e.responseError)}),b=n(b,m),b=b.then(u),b=n(b,g),b=b.finally(i)}function $(n,r){function i(e){if(e){var n={};return o(e,function(e,r){n[r]=function(n){function r(){e(n)}t?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),n}}function a(e,n,r,i,o){function a(){l(n,e,r,i,o)}v&&(Bt(e)?v.put(D,[e,n,qt(r),i,o]):v.remove(D)),t?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}function l(e,t,r,i,o){t=t>=-1?t:0,(Bt(t)?k.resolve:k.reject)({data:e,status:t,headers:Ht(r),config:n,statusText:i,xhrStatus:o})}function f(e){l(e.data,e.status,Ce(e.headers()),e.statusText,e.xhrStatus)}function p(){var e=m.pendingRequests.indexOf(n);-1!==e&&m.pendingRequests.splice(e,1)}var v,$,k=d.defer(),E=k.promise,O=n.headers,M="jsonp"===bi(n.method),D=n.url;if(M?D=h.getTrustedResourceUrl(D):C(D)||(D=h.valueOf(D)),D=g(D,n.paramSerializer(n.params)),M&&(D=x(D,n.jsonpCallbackParam)),m.pendingRequests.push(n),E.then(p,p),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(v=w(n.cache)?n.cache:w(e.cache)?e.cache:S),v&&($=v.get(D),b($)?_($)?$.then(f,f):A($)?l($[1],$[0],Ce($[2]),$[3],$[4]):l($,200,{},"OK","complete"):v.put(D,E)),y($)){var I=T(n.url)?u()[n.xsrfCookieName||e.xsrfCookieName]:void 0;I&&(O[n.xsrfHeaderName||e.xsrfHeaderName]=I),s(n.method,D,r,a,O,n.timeout,n.withCredentials,n.responseType,i(n.eventHandlers),i(n.uploadEventHandlers))}return E}function g(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}function x(e,t){var n=e.split("?");if(n.length>2)throw Fo("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return o(ie(n[1]),function(n,r){if("JSON_CALLBACK"===n)throw Fo("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(r===t)throw Fo("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)}),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}var S=l("$http");e.paramSerializer=C(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var k=[];o(n,function(e){k.unshift(C(e)?p.get(e):p.invoke(e))});var T=tr(i);return m.pendingRequests=[],function(e){o(arguments,function(e){m[e]=function(t,n){return m(f({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){m[e]=function(t,n,r){return m(f({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),m.defaults=e,m}]}function Wt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function Gt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Kt(e,r,e.defer,t,n[0])}]}function Kt(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,u,l,c,f,d,p,h,v){function m(e){C="timeout"===e,w&&w(),x&&x.abort()}function $(e,t,r,i,o,a){b(T)&&n.cancel(T),w=x=null,e(t,r,i,o,a)}if(s=s||e.url(),"jsonp"===bi(i))var g=r.createCallback(s),w=a(s,g,function(e,t){var n=200===e&&r.getResponse(g);$(l,e,n,"",t,"complete"),r.removeCallback(g)});else{var x=t(i,s),C=!1;x.open(i,s,!0),o(c,function(e,t){b(e)&&x.setRequestHeader(t,e)}),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===Zn(s).protocol?404:0),$(l,n,t,x.getAllResponseHeaders(),e,"complete")};var S=function(){$(l,-1,null,null,"","error")},k=function(){$(l,-1,null,null,"",C?"timeout":"abort")},A=function(){$(l,-1,null,null,"","timeout")};if(x.onerror=S,x.ontimeout=A,x.onabort=k,o(h,function(e,t){x.addEventListener(t,e)}),o(v,function(e,t){x.upload.addEventListener(t,e)}),d&&(x.withCredentials=!0),p)try{x.responseType=p}catch(e){if("json"!==p)throw e}x.send(y(u)?null:u)}if(f>0)var T=n(function(){m("timeout")},f);else _(f)&&f.then(function(){m(b(f.$$timeoutId)?"timeout":"abort")})}}function Jt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(d,e).replace(p,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,d,p){function h(e){try{return e=d&&!v?i.getTrusted(d,e):i.valueOf(e),p&&!b(e)?e:we(e)}catch(e){r(Bo.interr(o,e))}}var v=d===i.URL||d===i.MEDIA_URL;if(!o.length||-1===o.indexOf(e)){if(u)return;var m=a(o);v&&(m=i.getTrusted(d,m));var g=$(m);return g.exp=o,g.expressions=[],g.$$watchDelegate=s,g}p=!!p;for(var w,x,C,S,k,A=0,T=[],E=o.length,O=[],M=[];A<E;){if(-1===(w=o.indexOf(e,A))||-1===(x=o.indexOf(t,w+l))){A!==E&&O.push(a(o.substring(A)));break}A!==w&&O.push(a(o.substring(A,w))),S=o.substring(w+l,x),T.push(S),A=x+c,M.push(O.length),O.push("")}k=1===O.length&&1===M.length;var D=v&&k?void 0:h;if(C=T.map(function(e){return n(e,D)}),!u||T.length){var I=function(e){for(var t=0,n=T.length;t<n;t++){if(p&&y(e[t]))return;O[M[t]]=e[t]}return v?i.getTrusted(d,k?O[0]:O.join("")):(d&&O.length>1&&Bo.throwNoconcat(o),O.join(""))};return f(function(e){var t=0,n=T.length,i=new Array(n);try{for(;t<n;t++)i[t]=C[t](e);return I(i)}catch(e){r(Bo.interr(o,e))}},{exp:o,expressions:T,$$watchDelegate:function(e,t){var n;return e.$watchGroup(C,function(r,i){var o=I(r);t.call(this,o,r!==i?n:o,e),n=o})}})}}var l=e.length,c=t.length,d=new RegExp(e.replace(/./g,o),"g"),p=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function Yt(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},r=function(e,r,i){var o=t.setInterval(e,r);return n[o]=i,o},i=function(e){t.clearInterval(e),delete n[e]},o=e(r,i);return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw zo("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,r=n[t];return Pn(r.promise),r.reject("canceled"),i(t),!0},o}]}function Xt(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,r){return function(i,o){return function(a,s,u,l){function c(){d?a.apply(null,p):a(h)}function f(){v?e.defer(c):r.$evalAsync(c),m.notify(h++),u>0&&h>=u&&(m.resolve(h),o($.$$intervalId)),v||r.$apply()}var d=arguments.length>4,p=d?K(arguments,4):[],h=0,v=b(l)&&!l,m=(v?n:t).defer(),$=m.promise;return u=b(u)?u:0,$.$$intervalId=i(f,s,m,v),$}}}]}function Zt(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ae(t[n].replace(/%2F/g,"/"));return t.join("/")}function Qt(e,t){for(var n=e.split("/"),r=n.length;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}function en(e,t,n){var r=oe(t),i=n?"#"+ae(n):"";return Zt(e)+(r?"?"+r:"")+i}function tn(e,t){var n=Zn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=p(n.port)||Ko[n.protocol]||null}function nn(e,t,n){if(Yo.test(e))throw Jo("badpath",'Invalid url "{0}".',e);var r="/"!==e.charAt(0);r&&(e="/"+e);var i=Zn(e),o=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;t.$$path=Qt(o,n),t.$$search=ie(i.search),t.$$hash=decodeURIComponent(i.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function rn(e,t){return e.slice(0,t.length)===t}function on(e,t){if(rn(t,e))return t.substr(e.length)}function an(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function sn(e){return e.substr(0,an(e).lastIndexOf("/")+1)}function un(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function ln(e,t,n){this.$$html5=!0,n=n||"",tn(e,this),this.$$parse=function(e){var n=on(t,e);if(!C(n))throw Jo("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);nn(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return b(o=on(e,r))?(a=o,s=n&&b(o=on(n,o))?t+(on("/",o)||o):e+a):b(o=on(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function cn(e,t,n){tn(e,this),this.$$parse=function(r){var i,o=on(e,r)||on(t,r);y(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",y(o)&&(e=r,this.replace())):(i=on(n,o),y(i)&&(i=o)),nn(i,this,!1),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return rn(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,i,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return an(e)===an(t)&&(this.$$parse(t),!0)}}function fn(e,t,n){this.$$html5=!0,cn.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===an(r)?o=r:(a=on(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$normalizeUrl=function(t){return e+n+t}}function dn(e){return function(){return this[e]}}function pn(e,t){return function(n){return y(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function hn(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return V(e)?(t.enabled=e,this):w(e)?(V(e.enabled)&&(t.enabled=e.enabled),V(e.requireBase)&&(t.requireBase=e.requireBase),(V(e.rewriteLinks)||C(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t){return e===t||Zn(e).href===Zn(t).href}function u(e,t,n){var i=c.url(),o=c.$$state;try{r.url(e,t,n),c.$$state=r.state()}catch(e){throw c.url(i),c.$$state=o,e}}function l(e,t){n.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}var c,f,d,p=r.baseHref(),h=r.url();if(t.enabled){if(!p&&t.requireBase)throw Jo("nobase","$location in HTML5 mode requires a <base> tag to be present!");d=un(h)+(p||"/"),f=i.history?ln:fn}else d=an(h),f=cn;var v=sn(d);c=new f(d,v,"#"+e),c.$$parseLinkUrl(h,h),c.$$state=r.state();var m=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var a=pi(e.target);"a"!==q(a[0]);)if(a[0]===o[0]||!(a=a.parent())[0])return;if(!C(i)||!y(a.attr(i))){var s=a.prop("href"),u=a.attr("href")||a.attr("xlink:href");w(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=Zn(s.animVal).href),m.test(s)||!s||a.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(s,u)&&(e.preventDefault(),c.absUrl()!==r.url()&&n.$apply())}}}),c.absUrl()!==h&&r.url(c.absUrl(),!0);var $=!0;return r.onUrlChange(function(e,t){if(!rn(e,v))return void(a.location.href=e);n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;c.$$parse(e),c.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,c.absUrl()===e&&(r?(c.$$parse(i),c.$$state=o,u(i,!1,o)):($=!1,l(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if($||c.$$urlUpdatedByLocation){c.$$urlUpdatedByLocation=!1;var e=r.url(),t=c.absUrl(),o=r.state(),a=c.$$replace,f=!s(e,t)||c.$$html5&&i.history&&o!==c.$$state;($||f)&&($=!1,n.$evalAsync(function(){var t=c.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,c.$$state,o).defaultPrevented;c.absUrl()===t&&(r?(c.$$parse(e),c.$$state=o):(f&&u(t,a,o===c.$$state?null:c.$$state),l(e,o)))}))}c.$$replace=!1}),c}]}function vn(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return T(e)&&(e.stack&&a?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||v;return function(){var e=[];return o(arguments,function(t){e.push(r(t))}),Function.prototype.apply.call(i,t,e)}}var a=di||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function mn(e){return e+""}function $n(e,t){return void 0!==e?e:t}function gn(e,t){return void 0===e?t:void 0===t?e:e+t}function yn(e,t){return!e(t).$stateful}function bn(e,t){switch(e.type){case ra.MemberExpression:if(e.computed)return!1;break;case ra.UnaryExpression:return ia;case ra.BinaryExpression:return"+"!==e.operator&&ia;case ra.CallExpression:return!1}return void 0===t?oa:t}function wn(e,t,n){var r,i,a,s=e.isPure=bn(e,n);switch(e.type){case ra.Program:r=!0,o(e.body,function(e){wn(e.expression,t,s),r=r&&e.expression.constant}),e.constant=r;break;case ra.Literal:e.constant=!0,e.toWatch=[];break;case ra.UnaryExpression:wn(e.argument,t,s),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case ra.BinaryExpression:wn(e.left,t,s),wn(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case ra.LogicalExpression:wn(e.left,t,s),wn(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case ra.ConditionalExpression:wn(e.test,t,s),wn(e.alternate,t,s),wn(e.consequent,t,s),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case ra.Identifier:e.constant=!1,e.toWatch=[e];break;case ra.MemberExpression:wn(e.object,t,s),e.computed&&wn(e.property,t,s),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case ra.CallExpression:a=!!e.filter&&yn(t,e.callee.name),r=a,i=[],o(e.arguments,function(e){wn(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=a?i:[e];break;case ra.AssignmentExpression:wn(e.left,t,s),wn(e.right,t,s),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case ra.ArrayExpression:r=!0,i=[],o(e.elements,function(e){wn(e,t,s),r=r&&e.constant,i.push.apply(i,e.toWatch)}),e.constant=r,e.toWatch=i;break;case ra.ObjectExpression:r=!0,i=[],o(e.properties,function(e){wn(e.value,t,s),r=r&&e.value.constant,i.push.apply(i,e.value.toWatch),e.computed&&(wn(e.key,t,!1),r=r&&e.key.constant,i.push.apply(i,e.key.toWatch))}),e.constant=r,e.toWatch=i;break;case ra.ThisExpression:case ra.LocalsExpression:e.constant=!1,e.toWatch=[]}}function xn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function Cn(e){return e.type===ra.Identifier||e.type===ra.MemberExpression}function Sn(e){if(1===e.body.length&&Cn(e.body[0].expression))return{type:ra.AssignmentExpression,left:e.body[0].expression,right:{type:ra.NGValueParameter},operator:"="}}function kn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===ra.Literal||e.body[0].expression.type===ra.ArrayExpression||e.body[0].expression.type===ra.ObjectExpression)}function An(e){return e.constant}function Tn(e){this.$filter=e}function En(e){this.$filter=e}function On(e,t,n){this.ast=new ra(e,n),this.astCompiler=n.csp?new En(t):new Tn(t)}function Mn(e){return E(e.valueOf)?e.valueOf():Qo.call(e)}function Dn(){var e,t,n=be(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t){var r,o;switch(typeof e){case"string":if(e=e.trim(),o=e,!(r=n[o])){r=new On(new na(y),i,y).parse(e),n[o]=p(r)}return $(r,t);case"function":return $(e,t);default:return $(v,t)}}function s(e){return new On(new na(y),i,y).getAst(e).ast}function u(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=Mn(e))&&!n)&&(e===t||e!==e&&t!==t)}function l(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var s=u;return a=a[0],e.$watch(function(e){var t=a(e);return u(t,s,a.isPure)||(o=r(e,void 0,void 0,[t]),s=t&&Mn(t)),o},t,n,i)}for(var l=[],c=[],f=0,d=a.length;f<d;f++)l[f]=u,c[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var s=a[n](e);(t||(t=!u(s,l[n],a[n].isPure)))&&(c[n]=s,l[n]=s&&Mn(s))}return t&&(o=r(e,void 0,void 0,c)),o},t,n,i)}function c(e,t,n,r,i){function o(){l(u)&&s()}function a(e,t,n,r){return u=h&&r?r[0]:c(e,t,n,r),l(u)&&e.$$postDigest(o),d(u)}var s,u,l=r.literal?f:b,c=r.$$intercepted||r,d=r.$$interceptor||m,h=r.inputs&&!c.inputs;return a.literal=r.literal,a.constant=r.constant,a.inputs=r.inputs,p(a),s=e.$watch(a,t,n,i)}function f(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}function d(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function p(e){return e.constant?e.$$watchDelegate=d:e.oneTime?e.$$watchDelegate=c:e.inputs&&(e.$$watchDelegate=l),e}function h(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}function $(e,t){if(!t)return e;e.$$interceptor&&(t=h(e.$$interceptor,t),e=e.$$intercepted);var n=!1,r=function(r,i,o,a){var s=n&&a?a[0]:e(r,i,o,a);return t(s)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map(function(e){return e.isPure===oa?function(t){return e(t)}:e}))),p(r)}var g=Ni().noUnsafeEval,y={csp:g,literals:B(r),isIdentifierStart:E(e)&&e,isIdentifierContinue:E(t)&&t};return a.$$getAst=s,a}]}function In(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Nn(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function jn(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Nn(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Nn(e,t,n){function i(){return new a}function a(){var e=this.promise=new s;this.resolve=function(t){d(e,t)},this.reject=function(t){h(e,t)},this.notify=function(t){m(e,t)}}function s(){this.$$state={status:0}}function u(r){var i,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(var s=0,u=a.length;s<u;++s){_n(r),o=a[s][0],i=a[s][r.status];try{E(i)?d(o,i(r.value)):1===r.status?d(o,r.value):h(o,r.value)}catch(e){h(o,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--O,n&&0===O&&e(l)}}function l(){for(;!O&&M.length;){var e=M.shift();if(!Vn(e)){_n(e);var n="Possibly unhandled rejection: "+ke(e.value);T(e.value)?t(e.value,n):t(n)}}}function c(t){!n||t.pending||2!==t.status||Vn(t)||(0===O&&0===M.length&&e(l),M.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++O,e(function(){u(t)}))}function d(e,t){e.$$state.status||(t===e?v(e,k("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):p(e,t))}function p(e,t){function n(t){a||(a=!0,p(e,t))}function r(t){a||(a=!0,v(e,t))}function i(t){m(e,t)}var o,a=!1;try{(w(t)||E(t))&&(o=t.then),E(o)?(e.$$state.status=-1,o.call(t,n,r,i)):(e.$$state.value=t,e.$$state.status=1,c(e.$$state))}catch(e){r(e)}}function h(e,t){e.$$state.status||v(e,t)}function v(e,t){e.$$state.value=t,e.$$state.status=2,c(e.$$state)}function m(n,r){var i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&e(function(){for(var e,n,o=0,a=i.length;o<a;o++){n=i[o][0],e=i[o][3];try{m(n,E(e)?e(r):r)}catch(e){t(e)}}})}function $(e){var t=new s;return h(t,e),t}function g(e,t,n){var r=null;try{E(n)&&(r=n())}catch(e){return $(e)}return _(r)?r.then(function(){return t(e)},$):t(e)}function b(e,t,n,r){var i=new s;return d(i,e),i.then(t,n,r)}function x(e){var t=new s,n=0,r=A(e)?[]:{};return o(e,function(e,i){n++,b(e).then(function(e){r[i]=e,--n||d(t,r)},function(e){h(t,e)})}),0===n&&d(t,r),t}function C(e){var t=i();return o(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise}function S(e){function t(e){d(r,e)}function n(e){h(r,e)}if(!E(e))throw k("norslvr","Expected resolverFn, got '{0}'",e);var r=new s;return e(t,n),r}var k=r("$q",TypeError),O=0,M=[];f(s.prototype,{then:function(e,t,n){if(y(e)&&y(t)&&y(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&c(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return g(t,D,e)},function(t){return g(t,$,e)},t)}});var D=b;return S.prototype=s.prototype,S.defer=i,S.reject=$,S.when=b,S.resolve=D,S.all=x,S.race=C,S}function Vn(e){return!!e.pur}function _n(e){e.pur=!0}function Pn(e){e.$$state&&_n(e.$$state)}function Ln(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Rn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}var t=10,n=r("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$exceptionHandler","$parse","$browser",function(r,l,c){function f(e){e.currentScope.$$destroyed=!0}function d(e){9===di&&(e.$$childHead&&d(e.$$childHead),e.$$nextSibling&&d(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function p(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function h(e){if(S.$$phase)throw n("inprog","{0} already in progress",S.$$phase);S.$$phase=e}function m(){S.$$phase=null}function $(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function g(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function b(){}function x(){for(;T.length;)try{T.shift()()}catch(e){r(e)}s=null}function C(){null===s&&(s=c.defer(function(){S.$apply(x)},null,"$applyAsync"))}p.prototype={constructor:p,$new:function(t,n){var r;return n=n||this,t?(r=new p,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=l(e),o=E(t)?t:v;if(i.$$watchDelegate)return i.$$watchDelegate(this,o,n,i,e);var s=this,u=s.$$watchers,c={fn:o,last:b,get:i,exp:r||e,eq:!!n};return a=null,u||(u=s.$$watchers=[],u.$$digestWatchIndex=-1),u.unshift(c),u.$$digestWatchIndex++,$(this,1),function(){var e=F(u,c);e>=0&&($(s,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),a=null}},$watchGroup:function(e,t){function n(){u=!1;try{l?(l=!1,t(i,i,s)):t(i,r,s)}finally{for(var n=0;n<e.length;n++)r[n]=i[n]}}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,u=!1,l=!0;if(!e.length){var c=!0;return s.$evalAsync(function(){c&&t(i,i,s)}),function(){c=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var r=s.$watch(e,function(e){i[t]=e,u||(u=!0,s.$evalAsync(n))});a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s;if(!y(o)){if(w(o))if(i(o)){a!==p&&(a=p,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var u=0;u<t;u++)s=a[u],r=o[u],s!==s&&r!==r||s===r||(f++,a[u]=r)}else{a!==h&&(a=h={},m=0,f++),t=0;for(n in o)yi.call(o,n)&&(t++,r=o[n],s=a[n],n in a?s!==s&&r!==r||s===r||(f++,a[n]=r):(m++,a[n]=r,f++));if(m>t){f++;for(n in a)yi.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if(v?(v=!1,t(o,o,u)):t(o,s,u),c)if(w(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)yi.call(o,n)&&(s[n]=o[n])}else s=o}n.$$pure=l(e).literal,n.$stateful=!n.$$pure;var o,a,s,u=this,c=t.length>1,f=0,d=l(e,n),p=[],h={},v=!0,m=0;return this.$watch(d,r)},$digest:function(){var e,i,o,u,l,f,d,p,v,$,g,y=t,w=k.length?S:this,C=[];h("$digest"),c.$$checkUrlChange(),this===S&&null!==s&&(c.defer.cancel(s),x()),a=null;do{d=!1,v=w;for(var T=0;T<k.length;T++){try{g=k[T],u=g.fn,u(g.scope,g.locals)}catch(e){r(e)}a=null}k.length=0;e:do{if(f=!v.$$suspended&&v.$$watchers)for(f.$$digestWatchIndex=f.length;f.$$digestWatchIndex--;)try{if(e=f[f.$$digestWatchIndex])if(l=e.get,(i=l(v))===(o=e.last)||(e.eq?W(i,o):Mi(i)&&Mi(o))){if(e===a){d=!1;break e}}else d=!0,a=e,e.last=e.eq?B(i,null):i,u=e.fn,u(i,o===b?i:o,v),y<5&&($=4-y,C[$]||(C[$]=[]),C[$].push({msg:E(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(e){r(e)}if(!(p=!v.$$suspended&&v.$$watchersCount&&v.$$childHead||v!==w&&v.$$nextSibling))for(;v!==w&&!(p=v.$$nextSibling);)v=v.$parent}while(v=p);if((d||k.length)&&!y--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,C)}while(d||k.length);for(m();O<A.length;)try{A[O++]()}catch(e){r(e)}A.length=O=0,c.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===S&&c.$$applicationDestroyed(),$(this,-this.$$watchersCount);for(var t in this.$$listenerCount)g(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=v,this.$on=this.$watch=this.$watchGroup=function(){return v},this.$$listeners={},this.$$nextSibling=null,d(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){S.$$phase||k.length||c.defer(function(){k.length&&S.$digest()},null,"$evalAsync"),k.push({scope:this,fn:l(e),locals:t})},$$postDigest:function(e){A.push(e)},$apply:function(e){try{h("$apply");try{return this.$eval(e)}finally{m()}}catch(e){r(e)}finally{try{S.$digest()}catch(e){throw r(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&T.push(t),e=l(e),C()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);-1!==r&&(delete n[r],g(i,1,e))}},$emit:function(e,t){var n,i,o,a=[],s=this,u=!1,l={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=G([l],arguments,1);do{for(n=s.$$listeners[e]||a,l.currentScope=s,i=0,o=n.length;i<o;i++)if(n[i])try{n[i].apply(null,c)}catch(e){r(e)}else n.splice(i,1),i--,o--;if(u)break;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,t){var n=this,i=n,o=n,a={name:e,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return a;for(var s,u,l,c=G([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[e]||[],u=0,l=s.length;u<l;u++)if(s[u])try{s[u].apply(null,c)}catch(e){r(e)}else s.splice(u,1),u--,l--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==n&&i.$$nextSibling))for(;i!==n&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var S=new p,k=S.$$asyncQueue=[],A=S.$$postDigestQueue=[],T=S.$$applyAsyncQueue=[],O=0;return S}]}function Un(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i=r?t:e,o=Zn(n&&n.trim()).href;return""===o||o.match(i)?n:"unsafe:"+o}}}function qn(e){return e.replace(la,Ee)}function Hn(e){if("self"===e)return e;if(C(e)){if(e.indexOf("***")>-1)throw sa("iwcard","Illegal sequence *** in string matcher.  String: {0}",e);return e=ji(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(O(e))return new RegExp("^"+e.source+"$");throw sa("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Fn(e){var t=[];return b(e)&&o(e,function(e){t.push(Hn(e))}),t}function Bn(){this.SCE_CONTEXTS=ua;var e=["self"],t=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=Fn(t)),e},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(t=Fn(e)),t},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(n,r){function i(e,t){return"self"===e?Qn(t)||er(t):!!e.exec(t.href)}function o(n){var r,o,a=Zn(n.toString()),s=!1;for(r=0,o=e.length;r<o;r++)if(i(e[r],a)){s=!0;break}if(s)for(r=0,o=t.length;r<o;r++)if(i(t[r],a)){s=!1;break}return s}function a(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function s(e,t){var n=d.hasOwnProperty(e)?d[e]:null;if(!n)throw sa("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||y(t)||""===t)return t;if("string"!=typeof t)throw sa("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function u(e){return e instanceof f?e.$$unwrapTrustedValue():e}function l(e,t){if(null===t||y(t)||""===t)return t;var n=d.hasOwnProperty(e)?d[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(E(t.$$unwrapTrustedValue)&&(t=t.$$unwrapTrustedValue()),e===ua.MEDIA_URL||e===ua.URL)return r(t.toString(),e===ua.MEDIA_URL);if(e===ua.RESOURCE_URL){if(o(t))return t;throw sa("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",t.toString())}if(e===ua.HTML)return c(t);throw sa("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(e){throw sa("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(c=n.get("$sanitize"));var f=a(),d={};return d[ua.HTML]=a(f),d[ua.CSS]=a(f),d[ua.MEDIA_URL]=a(f),d[ua.URL]=a(d[ua.MEDIA_URL]),d[ua.JS]=a(f),d[ua.RESOURCE_URL]=a(d[ua.URL]),{trustAs:s,getTrusted:l,valueOf:u}}]}function zn(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&di<8)throw sa("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.");var r=Ce(ua);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(ua,function(e,t){var n=bi(t);r[qn("parse_as_"+n)]=function(t){return i(e,t)},r[qn("get_trusted_"+n)]=function(t){return a(e,t)},r[qn("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function Wn(){this.$get=["$window","$document",function(e,t){var n={},r=e.nw&&e.nw.process,i=!r&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!i&&e.history&&e.history.pushState,a=p((/android (\d+)/.exec(bi((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},l=u.body&&u.body.style,c=!1,f=!1;return l&&(c=!!("transition"in l||"webkitTransition"in l),f=!!("animation"in l||"webkitAnimation"in l)),{history:!(!o||a<4||s),hasEvent:function(e){if("input"===e&&di)return!1;if(y(n[e])){var t=u.createElement("div");n[e]="on"+e in t}return n[e]},csp:Ni(),transitions:c,animations:f,android:a}}]}function Gn(){this.$get=$(function(e){return new Kn(e)})}function Kn(e){function t(t,o){o=o||f;try{t()}finally{n(o);var a=u[o],s=u[c];if(!s||!a)for(var l,d=s?i:r;l=d(o);)try{l()}catch(t){e.error(t)}}}function n(e){e=e||f,u[e]&&(u[e]--,u[c]--)}function r(){var e=l.pop();return e&&e.cb}function i(e){for(var t=l.length-1;t>=0;--t){var n=l[t];if(n.type===e)return l.splice(t,1),n.cb}}function o(e){e=e||f,u[e]=(u[e]||0)+1,u[c]=(u[c]||0)+1}function a(e,t){t=t||c,u[t]?l.push({type:t,cb:e}):e()}var s=this,u={},l=[],c=s.ALL_TASKS_TYPE="$$all$$",f=s.DEFAULT_TASK_TYPE="$$default$$";s.completeTask=t,s.incTaskCount=o,s.notifyWhenNoPendingTasks=a}function Jn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){function l(e){return u||(e=ca("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)}a.totalPendingRequests++,C(s)&&!y(n.get(s))||(s=o.getTrustedResourceUrl(s));var c=r.defaults&&r.defaults.transformResponse;return A(c)?c=c.filter(function(e){return e!==Rt}):c===Rt&&(c=null),r.get(s,f({cache:n,transformResponse:c},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data)},l)}return a.totalPendingRequests=0,a}]}function Yn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=Ei.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+ji(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else-1!==r.indexOf(t)&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Xn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){E(o)||(u=s,s=o,o=v);var l,c=K(arguments,3),f=b(u)&&!u,d=(f?r:n).defer(),p=d.promise;return l=t.defer(function(){try{d.resolve(o.apply(null,c))}catch(e){d.reject(e),i(e)}finally{delete a[p.$$timeoutId]}f||e.$apply()},s,"$timeout"),p.$$timeoutId=l,a[l]=d,p}var a={};return o.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw fa("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!a.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,r=a[n];return Pn(r.promise),r.reject("canceled"),delete a[n],t.defer.cancel(n)},o}]}function Zn(e){if(!C(e))return e;var t=e;di&&(da.setAttribute("href",t),t=da.href),da.setAttribute("href",t);var n=da.hostname;return!ha&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:da.href,protocol:da.protocol?da.protocol.replace(/:$/,""):"",host:da.host,search:da.search?da.search.replace(/^\?/,""):"",hash:da.hash?da.hash.replace(/^#/,""):"",hostname:n,port:da.port,pathname:"/"===da.pathname.charAt(0)?da.pathname:"/"+da.pathname}}function Qn(e){return nr(e,pa)}function er(e){return nr(e,rr())}function tr(e){var t=[pa].concat(e.map(Zn));return function(e){var n=Zn(e);return t.some(nr.bind(null,n))}}function nr(e,t){return e=Zn(e),t=Zn(t),e.protocol===t.protocol&&e.host===t.host}function rr(){return e.document.baseURI?e.document.baseURI:(aa||(aa=e.document.createElement("a"),aa.href=".",aa=aa.cloneNode(!1)),aa.href)}function ir(){this.$get=$(e)}function or(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,a,s,u,l,c=t(r);if(c!==o)for(o=c,e=o.split("; "),i={},s=0;s<e.length;s++)a=e[s],(u=a.indexOf("="))>0&&(l=n(a.substring(0,u)),y(i[l])&&(i[l]=n(a.substring(u+1))));return i}}function ar(){this.$get=or}function sr(e){function t(r,i){if(w(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",dr),t("date",Tr),t("filter",ur),t("json",Er),t("limitTo",Or),t("lowercase",wa),t("number",pr),t("orderBy",Dr),t("uppercase",xa)}function ur(){return function(e,t,n,o){if(!i(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s,u=fr(t);switch(u){case"function":a=t;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=lr(t,n,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function lr(e,t,n,r){var i=w(e)&&n in e;return!0===t?t=W:E(t)||(t=function(e,t){return!y(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!g(e))&&(e=bi(""+e),t=bi(""+t),-1!==e.indexOf(t)))}),function(o){return i&&!w(o)?cr(o,e[n],t,n,!1):cr(o,e,t,n,r)}}function cr(e,t,n,r,i,o){var a=fr(e),s=fr(t);if("string"===s&&"!"===t.charAt(0))return!cr(e,t.substring(1),n,r,i);if(A(e))return e.some(function(e){return cr(e,t,n,r,i)});switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&cr(e[u],t,n,r,!0))return!0;return!o&&cr(e,t,n,r,!1)}if("object"===s){for(u in t){var l=t[u];if(!E(l)&&!y(l)){var c=u===r;if(!cr(c?e:e[u],l,n,r,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function fr(e){return null===e?"null":typeof e}function dr(e){var t=e.NUMBER_FORMATS;return function(e,n,r){y(n)&&(n=t.CURRENCY_SYM),y(r)&&(r=t.PATTERNS[1].maxFrac);var i=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:mr(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(i,n)}}function pr(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:mr(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function hr(e){var t,n,r,i,o,a=0;for((n=e.indexOf(ma))>-1&&(e=e.replace(ma,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===$a;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===$a;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>va&&(t=t.splice(0,va-1),a=n-1,n=1),{d:t,e:a,i:n}}function vr(e,t,n,r){var i=e.d,o=i.length-e.i;t=y(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var l=1;l<a;l++)i[l]=0}if(s>=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function mr(e,t,n,r,i){if(!C(e)&&!S(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",l="";if(a)l="∞";else{o=hr(u),vr(o,i,t.minFrac,t.maxFrac);var c=o.d,f=o.i,d=o.e,p=[];for(s=c.reduce(function(e,t){return e&&!t},!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f,c.length):(p=c,c=[0]);var h=[];for(c.length>=t.lgSize&&h.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)h.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&h.unshift(c.join("")),l=h.join(n),p.length&&(l+=r+p.join("")),d&&(l+="e+"+d)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function $r(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=$a+e;return n&&(e=e.substr(e.length-t)),i+e}function gr(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&-12===n&&(a=12),$r(a,t,r,i)}}function yr(e,t,n){return function(r,i){var o=r["get"+e]();return i[wi((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function br(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=$r(Math[r>0?"floor":"ceil"](r/60),2)+$r(Math.abs(r%60),2)}function wr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function xr(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Cr(e){return function(t){var n=wr(t.getFullYear()),r=xr(t),i=+r-+n;return $r(1+Math.round(i/6048e5),e)}}function Sr(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function kr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function Ar(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function Tr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=p(t[9]+t[10]),o=p(t[9]+t[11])),a.call(r,p(t[1]),p(t[2])-1,p(t[3]));var u=p(t[4]||0)-i,l=p(t[5]||0)-o,c=p(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,l,c,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",l=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,C(n)&&(n=ba.test(n)?p(n):t(n)),S(n)&&(n=new Date(n)),!k(n)||!isFinite(n.getTime()))return n;for(;r;)s=ya.exec(r),s?(l=G(l,s,1),r=l.pop()):(l.push(r),r=null);var c=n.getTimezoneOffset();return i&&(c=Q(i,c),n=te(n,i,!0)),o(l,function(t){a=ga[t],u+=a?a(n,e.DATETIME_FORMATS,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function Er(){return function(e,t){return y(t)&&(t=2),X(e,t)}}function Or(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):p(t),Mi(t)?e:(S(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:p(n),n=n<0?Math.max(0,e.length+n):n,t>=0?Mr(e,n,n+t):0===n?Mr(e,t,e.length):Mr(e,Math.max(0,n+t),n)):e)}}function Mr(e,t,n){return C(e)?e.slice(t,n):xi.call(e,t,n)}function Dr(e){function t(t){return t.map(function(t){var n=1,r=m;if(E(t))r=t;else if(C(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return E(e.valueOf)&&(e=e.valueOf(),n(e))?e:(g(e)&&(e=e.toString(),n(e)),e)}function a(e,t){var n=typeof e;return null===e?n="null":"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(w(o)&&(o=e.index),w(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i?-1:r<i?-1:1;return n}return function(e,n,o,u){function l(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:f.map(function(n){return a(n.get(e),t)})}}function c(e,t){for(var n=0,r=f.length;n<r;n++){var i=p(e.predicateValues[n],t.predicateValues[n]);if(i)return i*f[n].descending*d}return(p(e.tieBreaker,t.tieBreaker)||s(e.tieBreaker,t.tieBreaker))*d}if(null==e)return e;if(!i(e))throw r("orderBy")("notarray","Expected array but received: {0}",e);A(n)||(n=[n]),0===n.length&&(n=["+"]);var f=t(n),d=o?-1:1,p=E(u)?u:s,h=Array.prototype.map.call(e,l);return h.sort(c),e=h.map(function(e){return e.value})}}function Ir(e){return E(e)&&(e={link:e}),e.restrict=e.restrict||"AC",$(e)}function jr(e,t){e.$name=t}function Nr(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=ka,this.$$element=e,this.$$animate=r,Vr(this)}function Vr(e){e.$$classCache={},e.$$classCache[ls]=!(e.$$classCache[us]=e.$$element.hasClass(us))}function _r(e){function t(e,t,n,r){e[t]||(e[t]={}),a(e[t],n,r)}function n(e,t,n,r){e[t]&&s(e[t],n,r),Pr(e[t])&&(e[t]=void 0)}function r(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function i(e,t,n){t=t?"-"+pe(t,"-"):"",r(e,us+t,!0===n),r(e,ls+t,!1===n)}var o=e.clazz,a=e.set,s=e.unset;o.prototype.$setValidity=function(e,o,u){y(o)?t(this,"$pending",e,u):n(this,"$pending",e,u),V(o)?o?(s(this.$error,e,u),a(this.$$success,e,u)):(a(this.$error,e,u),s(this.$$success,e,u)):(s(this.$error,e,u),s(this.$$success,e,u)),this.$pending?(r(this,Aa,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,Aa,!1),this.$valid=Pr(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var l;l=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),i(this,e,l),this.$$parentForm.$setValidity(e,l,this)}}function Pr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Lr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function Rr(e,t,n,r,i,o){Ur(e,t,n,r,i,o),Lr(r)}function Ur(e,t,n,r,i,o){var a=bi(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionupdate",function(e){(y(e.data)||""===e.data)&&(s=!1)}),t.on("compositionend",function(){s=!1,l()})}var u,l=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),l=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=Ii(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var c=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut drop",c)}t.on("change",l),Ua[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(Ra,function(e){if(!u){var t=this[gi],n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function qr(e,t){if(k(e))return e;if(C(e)){_a.lastIndex=0;var n=_a.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,l=wr(r),c=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,l.getDate()+c,o,a,s,u)}}return NaN}function Hr(e,t){return function(n,r){var i,a;if(k(n))return n;if(C(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ma.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n)){i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)});var s=new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0);return a.yyyy<100&&s.setFullYear(a.yyyy),s}}return NaN}}function Fr(e,t,n,r){return function(i,o,a,s,u,l,c,f){function d(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function p(e){return b(e)&&!k(e)?h(e)||void 0:e}function h(e,t){var r=s.$options.getOption("timezone");$&&$!==r&&(t=ee(t,Q($)));var i=n(e,t);return!isNaN(i)&&r&&(i=te(i,r)),i}function v(e,t){var n=r;g&&C(s.$options.getOption("timeSecondsFormat"))&&(n=r.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var i=c("date")(e,n,t);return g&&s.$options.getOption("timeStripZeroSeconds")&&(i=i.replace(/(?::00)?(?:\.000)?$/,"")),i}Br(i,o,a,s,e),Ur(i,o,a,s,u,l);var m,$,g="time"===e||"datetimelocal"===e;if(s.$parsers.push(function(n){return s.$isEmpty(n)?null:t.test(n)?h(n,m):void(s.$$parserName=e)}),s.$formatters.push(function(e){if(e&&!k(e))throw ds("datefmt","Expected `{0}` to be a date",e);if(d(e)){m=e;var t=s.$options.getOption("timezone");return t&&($=t,m=te(m,t,!0)),v(e,t)}return m=null,$=null,""}),b(a.min)||a.ngMin){var w=a.min||f(a.ngMin)(i),x=p(w);s.$validators.min=function(e){return!d(e)||y(x)||n(e)>=x},a.$observe("min",function(e){e!==w&&(x=p(e),w=e,s.$validate())})}if(b(a.max)||a.ngMax){var S=a.max||f(a.ngMax)(i),A=p(S);s.$validators.max=function(e){return!d(e)||y(A)||n(e)<=A},a.$observe("max",function(e){e!==S&&(A=p(e),S=e,s.$validate())})}}}function Br(e,t,n,r,i){var o=t[0];(r.$$hasNativeValidators=w(o.validity))&&r.$parsers.push(function(e){var n=t.prop(gi)||{};return n.badInput||n.typeMismatch?void(r.$$parserName=i):e})}function zr(e){e.$parsers.push(function(t){return e.$isEmpty(t)?null:ja.test(t)?parseFloat(t):void(e.$$parserName="number")}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!S(t))throw ds("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Wr(e){return b(e)&&!S(e)&&(e=parseFloat(e)),Mi(e)?void 0:e}function Gr(e){return(0|e)===e}function Kr(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function Jr(e,t,n){var r=Number(e),i=!Gr(r),o=!Gr(t),a=!Gr(n);if(i||o||a){var s=i?Kr(r):0,u=o?Kr(t):0,l=a?Kr(n):0,c=Math.max(s,u,l),f=Math.pow(10,c);r*=f,t*=f,n*=f,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function Yr(e,t,n,r,i,o,a,s){Br(e,t,n,r,"number"),zr(r),Ur(e,t,n,r,i,o);var u;if(b(n.min)||n.ngMin){var l=n.min||s(n.ngMin)(e);u=Wr(l),r.$validators.min=function(e,t){return r.$isEmpty(t)||y(u)||t>=u},n.$observe("min",function(e){e!==l&&(u=Wr(e),l=e,r.$validate())})}if(b(n.max)||n.ngMax){var c=n.max||s(n.ngMax)(e),f=Wr(c);r.$validators.max=function(e,t){return r.$isEmpty(t)||y(f)||t<=f},n.$observe("max",function(e){e!==c&&(f=Wr(e),c=e,r.$validate())})}if(b(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(e),p=Wr(d);r.$validators.step=function(e,t){return r.$isEmpty(t)||y(p)||Jr(t,u||0,p)},n.$observe("step",function(e){e!==d&&(p=Wr(e),d=e,r.$validate())})}}function Xr(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]);var i=n[e];n.$observe(e,function(e){e!==i&&(i=e,r(e))})}function s(e){if(f=Wr(e),!Mi(r.$modelValue))if(c){var n=t.val();f>n&&(n=f,t.val(n)),r.$setViewValue(n)}else r.$validate()}function u(e){if(d=Wr(e),!Mi(r.$modelValue))if(c){var n=t.val();d<n&&(t.val(d),n=d<f?f:d),r.$setViewValue(n)}else r.$validate()}function l(e){p=Wr(e),Mi(r.$modelValue)||(c?r.$viewValue!==t.val()&&r.$setViewValue(t.val()):r.$validate())}Br(e,t,n,r,"range"),zr(r),Ur(e,t,n,r,i,o);var c=r.$$hasNativeValidators&&"range"===t[0].type,f=c?0:void 0,d=c?100:void 0,p=c?1:void 0,h=t[0].validity,v=b(n.min),m=b(n.max),$=b(n.step),g=r.$render;r.$render=c&&b(h.rangeUnderflow)&&b(h.rangeOverflow)?function(){g(),r.$setViewValue(t.val())}:g,v&&(f=Wr(n.min),r.$validators.min=c?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(f)||t>=f},a("min",s)),m&&(d=Wr(n.max),r.$validators.max=c?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(d)||t<=d},a("max",u)),$&&(p=Wr(n.step),r.$validators.step=c?function(){return!h.stepMismatch}:function(e,t){return r.$isEmpty(t)||y(p)||Jr(t,f||0,p)},a("step",l))}function Zr(e,t,n,r,i,o){Ur(e,t,n,r,i,o),Lr(r),r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||Da.test(n)}}function Qr(e,t,n,r,i,o){Ur(e,t,n,r,i,o),Lr(r),r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||Ia.test(n)}}function ei(e,t,n,r){var i=!n.ngTrim||"false"!==Ii(n.ngTrim);y(n.name)&&t.attr("name",u());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=Ii(o)),r.$setViewValue(o,e&&e.type))};t.on("change",o),r.$render=function(){var e=n.value;i&&(e=Ii(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function ti(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw ds("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function ni(e,t,n,r,i,o,a,s){var u=ti(s,e,"ngTrueValue",n.ngTrueValue,!0),l=ti(s,e,"ngFalseValue",n.ngFalseValue,!1),c=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("change",c),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return W(e,u)}),r.$parsers.push(function(e){return e?u:l})}function ri(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){return e&&e.split(" ")}function i(e){if(!e)return e;var t=e;return A(e)?t=e.map(i).join(" "):w(e)?t=Object.keys(e).filter(function(t){return e[t]}).join(" "):C(e)||(t=e+""),t}e="ngClass"+e;var a;return["$parse",function(s){return{restrict:"AC",link:function(u,l,c){function f(e){e=h(r(e),1),c.$addClass(e)}function d(e){e=h(r(e),-1),c.$removeClass(e)}function p(e,t){var i=r(e),o=r(t),a=n(i,o),s=n(o,i),u=h(a,-1),l=h(s,1);c.$addClass(l),c.$removeClass(u)}function h(e,t){var n=[];return o(e,function(e){(t>0||g[e])&&(g[e]=(g[e]||0)+t,g[e]===+(t>0)&&n.push(e))}),n.join(" ")}function v(e){e===t?f($):d($),y=e}function m(e){y===t&&p($,e),$=e}var $,g=l.data("$classCounts"),y=!0;g||(g=be(),l.data("$classCounts",g)),"ngClass"!==e&&(a||(a=s("$index",function(e){return 1&e})),u.$watch(a,v)),u.$watch(s(c[e],i),m)}}}]}function ii(e,t,n,r,i,o){return{restrict:"A",compile:function(a,s){var u=e(s[r]);return function(e,r){r.on(i,function(r){var i=function(){u(e,{$event:r})};if(t.$$phase)if(o)e.$evalAsync(i);else try{i()}catch(e){n(e)}else e.$apply(i)})}}}}function oi(e,t,n,r,i,o,a,s,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=ka,this.$options=ps,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,Vr(this),ai(this)}function ai(e){e.$$scope.$watch(function(t){var n=e.$$ngModelGet(t);return n===e.$modelValue||e.$modelValue!==e.$modelValue&&n!==n||e.$$setModelValue(n),n})}function si(e){this.$$options=e}function ui(e,t){o(t,function(t,n){b(e[n])||(e[n]=t)})}function li(e,t){e.prop("selected",t),e.attr("selected",t)}function ci(e,t,n){if(e){if(C(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,ne(n));return e}}function fi(e){var t=p(e);return Mi(t)?-1:t}var di,pi,hi,vi,mi={objectMaxDepth:5,urlErrorParamsEnabled:!0},$i=/^\/(.+)\/([a-z]*)$/,gi="validity",yi=Object.prototype.hasOwnProperty,bi=function(e){return C(e)?e.toLowerCase():e},wi=function(e){return C(e)?e.toUpperCase():e},xi=[].slice,Ci=[].splice,Si=[].push,ki=Object.prototype.toString,Ai=Object.getPrototypeOf,Ti=r("ng"),Ei=e.angular||(e.angular={}),Oi=0;di=e.document.documentMode;var Mi=Number.isNaN||function(e){return e!==e};v.$inject=[],m.$inject=[];var Di=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,Ii=function(e){return C(e)?e.trim():e},ji=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},Ni=function(){if(!b(Ni.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");Ni.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else Ni.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return Ni.rules},Vi=function(){if(b(Vi.name_))return Vi.name_;var t,n,r,i,o=Pi.length;for(n=0;n<o;++n)if(r=Pi[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return Vi.name_=i},_i=/:/g,Pi=["ng-","data-ng-","ng:","x-ng-"],Li=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(e.document),Ri=/[A-Z]/g,Ui=!1,qi=1,Hi=3,Fi=8,Bi=9,zi=11,Wi={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};_e.expando="ng339";var Gi=_e.cache={},Ki=1;_e._data=function(e){return this.cache[e[this.expando]]||{}};var Ji=/-([a-z])/g,Yi=/^-ms-/,Xi={mouseleave:"mouseout",mouseenter:"mouseover"},Zi=r("jqLite"),Qi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,eo=/<|&#?\w+;/,to=/<([\w:-]+)/,no=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ro={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};ro.tbody=ro.tfoot=ro.colgroup=ro.caption=ro.thead,ro.th=ro.td;var io={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var oo in ro){var ao=ro[oo],so=ao.slice().reverse();io[oo]=[so.length,"<"+so.join("><")+">","</"+ao.join("></")+">"]}io.optgroup=io.option;var uo=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},lo=_e.prototype={ready:et,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return pi(e>=0?this[e]:this[this.length+e])},length:0,push:Si,sort:[].sort,splice:[].splice},co={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){co[bi(e)]=e});var fo={};o("input,select,option,textarea,button,form,details".split(","),function(e){fo[e]=!0});var po={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Be,removeData:He,hasData:Ie,cleanData:function(e){for(var t=0,n=e.length;t<n;t++)He(e[t]),qe(e[t])}},function(e,t){_e[t]=e}),o({data:Be,inheritedData:Ye,scope:function(e){return pi.data(e,"$scope")||Ye(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return pi.data(e,"$isolateScope")||pi.data(e,"$isolateScopeNoTemplate")},controller:Je,injector:function(e){return Ye(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:ze,css:function(e,t,n){if(t=Te(t),!b(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==Hi&&2!==i&&i!==Fi&&e.getAttribute){var o=bi(t),a=co[o];if(!b(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||!1===n&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if(y(t)){var n=e.nodeType;return n===qi||n===Hi?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(y(t)){if(e.multiple&&"select"===q(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(y(t))return e.innerHTML;Le(e,!0),e.innerHTML=t},empty:Xe},function(e,t){_e.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==Xe&&y(2===e.length&&e!==ze&&e!==Je?t:n)){if(w(t)){for(r=0;r<o;r++)if(e===Be)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=y(a)?Math.min(o,1):o,u=0;u<s;u++){var l=e(this[u],t,n);a=a?a+l:l}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:He,on:function(e,t,n,r){if(b(r))throw Zi("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(De(e)){var i=Fe(e,!0),o=i.events,a=i.handle;a||(a=i.handle=rt(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,l=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Xi[t]?(l(Xi[t],ot),l(t,void 0,!0)):l(t)}},off:qe,one:function(e,t,n){e=pi(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;Le(e),o(new _e(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===qi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===qi||n===zi){t=new _e(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===qi){var n=e.firstChild;o(new _e(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ve(e,pi(t).eq(0).clone()[0])},remove:Ze,detach:function(e){Ze(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r){t=new _e(t);for(var i=0,o=t.length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}}},addClass:Ge,removeClass:We,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;y(r)&&(r=!ze(e,t)),(r?Ge:We)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==zi?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Pe,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=Fe(e),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:v,type:s,target:e},t.type&&(r=f(r,t)),i=Ce(c),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){_e.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)y(i)?(i=e(this[o],t,n,r),b(i)&&(i=pi(i))):Ke(i,e(this[o],t,n,r));return b(i)?i:this}}),_e.prototype.bind=_e.prototype.on,_e.prototype.unbind=_e.prototype.off;var ho=Object.create(null);ut.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return Mi(e)?ho:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var vo=ut,mo=[function(){this.$get=[function(){return vo}]}],$o=/^([^(]+?)=>/,go=/^[^(]*\(\s*([^)]*)\)/m,yo=/,/,bo=/^\s*(_?)(\S+?)\1\s*$/,wo=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,xo=r("$injector");pt.$$annotate=dt;var Co=r("$animate"),So=1,ko=function(){this.$get=v},Ao=function(){var e=new vo,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=C(t)?t.split(" "):A(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=$t(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&Ge(e,i),a&&We(e,a)}),e.delete(t)}}),t.length=0}function s(n,o,s){var u=e.get(n)||{},l=i(u,o,!0),c=i(u,s,!1);(l||c)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:v,on:v,off:v,pin:v,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},To=["$provide",function(e){var t=this,n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Co("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.customFilter=function(e){return 1===arguments.length&&(r=E(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Co("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=mt(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,r,i,o){return r=r&&pi(r),i=i&&pi(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",gt(o))},move:function(n,r,i,o){return r=r&&pi(r),i=i&&pi(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",gt(o))},leave:function(t,n){return e.push(t,"leave",gt(n),function(){t.remove()})},addClass:function(t,n,r){return r=gt(r),r.addClass=vt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=gt(r),r.removeClass=vt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=gt(i),i.addClass=vt(i.addClass,n),i.removeClass=vt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=gt(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=vt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],Eo=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Oo=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){r()?o(e):t(e)},this._state=0}return a.chain=function(e,t){function n(){if(r===e.length)return void t(!0);e[r](function(e){if(!1===e)return void t(!1);r++,n()})}var r=0;n()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:v,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},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(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},Mo=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=B(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},Do=r("$compile"),Io=new kt;At.$inject=["$provide","$$sanitizeUriProvider"],Tt.prototype.isFirstChange=function(){return this.previousValue===Io};var jo=/^((?:x|data)[:\-_])/i,No=/[:\-_]+(.)/g,Vo=r("$controller"),_o=/^(\S+)(\s+as\s+([\w$]+))?$/,Po=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof pi&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},Lo="application/json",Ro={"Content-Type":Lo+";charset=utf-8"},Uo=/^\[|^\{(?!\{)/,qo={"[":/]$/,"{":/}$/},Ho=/^\)]\}',?\n/,Fo=r("$http"),Bo=Ei.$interpolateMinErr=r("$interpolate");Bo.throwNoconcat=function(e){throw Bo("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",e)},Bo.interr=function(e,t){return Bo("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var zo=r("$interval"),Wo=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=Ei.callbacks,n={};return{createCallback:function(r){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,a=e(i);return n[o]=t[i]=a,o},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){var r=n[e];delete t[r.id],delete n[e]}}}},Go=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Ko={http:80,https:443,ftp:21},Jo=r("$location"),Yo=/^\s*[\\/]{2,}/,Xo={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=en(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:dn("$$absUrl"),url:function(e){if(y(e))return this.$$url;var t=Go.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:dn("$$protocol"),host:dn("$$host"),port:dn("$$port"),path:pn("$$path",function(e){return e=null!==e?e.toString():"","/"===e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(C(e)||S(e))e=e.toString(),this.$$search=ie(e);else{if(!w(e))throw Jo("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=B(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:y(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:pn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([fn,cn,ln],function(e){e.prototype=Object.create(Xo),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==ln||!this.$$html5)throw Jo("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Zo=r("$parse"),Qo={}.constructor.prototype.valueOf,ea=be();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){ea[e]=!0});var ta={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},na=function(e){this.options=e};na.prototype={constructor:na,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===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 n=t+this.peek(),r=n+this.peek(2),i=ea[t],o=ea[n],a=ea[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var r=b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw Zo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,r,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=bi(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=ta[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var ra=function(e,t){this.lexer=e,this.options=t};ra.Program="Program",ra.ExpressionStatement="ExpressionStatement",ra.AssignmentExpression="AssignmentExpression",ra.ConditionalExpression="ConditionalExpression",ra.LogicalExpression="LogicalExpression",ra.BinaryExpression="BinaryExpression",ra.UnaryExpression="UnaryExpression",ra.CallExpression="CallExpression",ra.MemberExpression="MemberExpression",ra.Identifier="Identifier",ra.Literal="Literal",ra.ArrayExpression="ArrayExpression",ra.Property="Property",ra.ObjectExpression="ObjectExpression",ra.ThisExpression="ThisExpression",ra.LocalsExpression="LocalsExpression",ra.NGValueParameter="NGValueParameter",ra.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:ra.Program,body:e}},expressionStatement:function(){return{type:ra.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Cn(e))throw Zo("lval","Trying to assign a value to a non l-value");e={type:ra.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:ra.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:ra.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:ra.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:ra.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:ra.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:ra.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:ra.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:ra.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=B(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:ra.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:ra.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:ra.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:ra.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:ra.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:ra.Identifier,name:e.text}},constant:function(){return{type:ra.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:ra.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:ra.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:ra.ObjectExpression,properties:t}},throwError:function(e,t){throw Zo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Zo("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Zo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:ra.ThisExpression},$locals:{type:ra.LocalsExpression}}};var ia=1,oa=2;Tn.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},wn(e,t.$filter);var n,r="";if(this.stage="assign",n=Sn(e)){this.state.computing="assign";var i=this.nextId();this.recurse(n,i),this.return_(i),r="fn.assign="+this.generateFunction("assign","s,v,l")}var a=xn(e.body);t.stage="inputs",o(a,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push({name:r,isPure:e.isPure}),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(e);var s='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+r+this.watchFns()+"return fn;",u=new Function("$filter","getStringValue","ifDefined","plus",s)(this.$filter,mn,$n,gn);return this.state=this.stage=void 0,u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")}),t.length&&e.push("fn.inputs=["+t.map(function(e){return e.name}).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,u,l,c,f,d=this;if(r=r||v,!a&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case ra.Program:o(e.body,function(t,n){d.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?d.current().body.push(u,";"):d.return_(u)});break;case ra.Literal:c=this.escape(e.value),this.assign(t,c),r(t||c);break;case ra.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),c=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,c),r(c);break;case ra.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),c="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,c),r(c);break;case ra.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),r(t);break;case ra.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),r(t);break;case ra.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){i&&1!==i&&d.if_(d.isNull(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),r(t);break;case ra.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,function(){d.if_(d.notNull(s),function(){e.computed?(u=d.nextId(),d.recurse(e.property,u),d.getStringValue(u),i&&1!==i&&d.if_(d.not(d.computedMember(s,u)),d.lazyAssign(d.computedMember(s,u),"{}")),c=d.computedMember(s,u),d.assign(t,c),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&d.if_(d.isNull(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),c=d.nonComputedMember(s,e.property.name),d.assign(t,c),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),r(t)},!!i);break;case ra.CallExpression:t=t||this.nextId(),e.filter?(u=d.filter(e.callee.name),l=[],o(e.arguments,function(e){var t=d.nextId();d.recurse(e,t),l.push(t)}),c=u+"("+l.join(",")+")",d.assign(t,c),r(t)):(u=d.nextId(),s={},l=[],d.recurse(e.callee,u,s,function(){d.if_(d.notNull(u),function(){o(e.arguments,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),c=s.name?d.member(s.context,s.name,s.computed)+"("+l.join(",")+")":u+"("+l.join(",")+")",d.assign(t,c)},function(){d.assign(t,"undefined")}),r(t)}));break;case ra.AssignmentExpression:u=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,u),c=d.member(s.context,s.name,s.computed)+e.operator+u,d.assign(t,c),r(t||c)})},1);break;case ra.ArrayExpression:l=[],o(e.elements,function(t){d.recurse(t,e.constant?void 0:d.nextId(),void 0,function(e){l.push(e)})}),c="["+l.join(",")+"]",this.assign(t,c),r(t||c);break;case ra.ObjectExpression:l=[],f=!1,o(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===ra.Identifier?e.key.name:""+e.key.value,u=d.nextId(),d.recurse(e.value,u),d.assign(d.member(t,s,e.computed),u)})):(o(e.properties,function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,function(e){l.push(d.escape(t.key.type===ra.Identifier?t.key.name:""+t.key.value)+":"+e)})}),c="{"+l.join(",")+"}",this.assign(t,c)),r(t||c);break;case ra.ThisExpression:this.assign(t,"s"),r(t||"s");break;case ra.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case ra.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/,r=/[^$_a-zA-Z0-9]/g;return n.test(t)?e+"."+t:e+'["'+t.replace(r,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(C(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(S(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Zo("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},En.prototype={compile:function(e){var t=this;wn(e,t.$filter);var n,r;(n=Sn(e))&&(r=this.recurse(n));var i,a=xn(e.body);a&&(i=[],o(a,function(e,n){var r=t.recurse(e);r.isPure=e.isPure,e.input=r,i.push(r),e.watchId=n}));var s=[];o(e.body,function(e){s.push(t.recurse(e.expression))});var u=0===e.body.length?v:1===e.body.length?s[0]:function(e,t){var n;return o(s,function(r){n=r(e,t)}),n};return r&&(u.assign=function(e,t,n){return r(e,n,t)}),i&&(u.inputs=i),u},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case ra.Literal:return this.value(e.value,t);case ra.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case ra.BinaryExpression:case ra.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case ra.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case ra.Identifier:return s.identifier(e.name,t,n);case ra.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case ra.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,o));var l=i.apply(void 0,s,o);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,o){var s,u=i(e,n,r,o);if(null!=u.value){for(var l=[],c=0;c<a.length;++c)l.push(a[c](e,n,r,o));s=u.value.apply(u.context,l)}return t?{value:s}:s};case ra.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a),u=i(e,n,o,a);return s.context[s.name]=u,t?{value:u}:u};case ra.ArrayExpression:return a=[],o(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case ra.ObjectExpression:return a=[],o(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===ra.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case ra.ThisExpression:return function(e){return t?{value:e}:e};case ra.LocalsExpression:return function(e,n){return t?{value:n}:n};case ra.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?-a:-0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=gn(s,u);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),l=(b(s)?s:0)-(b(u)?u:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,l,c=e(i,o,a,s);return null!=c&&(u=t(i,o,a,s),u=mn(u),r&&1!==r&&c&&!c[u]&&(c[u]={}),l=c[u]),n?{context:c,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var l=null!=u?u[t]:void 0;return n?{context:u,name:t,value:l}:l}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}},On.prototype={constructor:On,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=kn(t.ast),n.constant=An(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return e=e.trim(),":"===e.charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var aa,sa=r("$sce"),ua={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},la=/_([a-z])/g,ca=r("$templateRequest"),fa=r("$timeout"),da=e.document.createElement("a"),pa=Zn(e.location.href);da.href="http://[::1]";var ha="[::1]"===da.hostname;or.$inject=["$document"],sr.$inject=["$provide"];var va=22,ma=".",$a="0";dr.$inject=["$locale"],pr.$inject=["$locale"];var ga={yyyy:gr("FullYear",4,0,!1,!0),yy:gr("FullYear",2,0,!0,!0),y:gr("FullYear",1,0,!1,!0),MMMM:yr("Month"),MMM:yr("Month",!0),MM:gr("Month",2,1),M:gr("Month",1,1),LLLL:yr("Month",!1,!0),dd:gr("Date",2),d:gr("Date",1),HH:gr("Hours",2),H:gr("Hours",1),hh:gr("Hours",2,-12),h:gr("Hours",1,-12),mm:gr("Minutes",2),m:gr("Minutes",1),ss:gr("Seconds",2),s:gr("Seconds",1),sss:gr("Milliseconds",3),EEEE:yr("Day"),EEE:yr("Day",!0),a:Sr,Z:br,ww:Cr(2),w:Cr(1),G:kr,GG:kr,GGG:kr,GGGG:Ar},ya=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,ba=/^-?\d+$/;Tr.$inject=["$locale"];var wa=$(bi),xa=$(wi);Dr.$inject=["$parse"];var Ca=$({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===ki.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Sa={};o(co,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=Et("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Sa[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(po,function(e,t){Sa[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match($i);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=Et("ng-"+e);Sa[t]=["$sce",function(n){return{priority:99,link:function(r,i,o){var a=e,s=e;"href"===e&&"[object SVGAnimatedString]"===ki.call(i.prop("href"))&&(s="xlinkHref",o.$attr[s]="xlink:href",a=null),o.$set(t,n.getTrustedMediaUrl(o[t])),o.$observe(t,function(t){if(!t)return void("href"===e&&o.$set(s,null));o.$set(s,t),di&&a&&i.prop(a,o[s])})}}}]});var ka={$addControl:v,$getControls:$([]),$$renameControl:jr,$removeControl:v,$setValidity:v,$setDirty:v,$setPristine:v,$setSubmitted:v,$$setSubmitted:v},Aa="ng-pending";Nr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Nr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){$e(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Ce(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),F(this.$$controls,e),e.$$parentForm=ka},$setDirty:function(){this.$$animate.removeClass(this.$$element,cs),this.$$animate.addClass(this.$$element,fs),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,cs,fs+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==ka;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,o(this.$$controls,function(e){e.$$setSubmitted&&e.$$setSubmitted()})}},_r({clazz:Nr,set:function(e,t,n){var r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(F(r,n),0===r.length&&delete e[t])}});var Ta=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||v}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Nr,compile:function(n,i){n.addClass(cs).addClass(us);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var l=o?r(s.$name):v;o&&(l(e,s),i.$observe(o,function(t){s.$name!==t&&(l(e,void 0),s.$$parentForm.$$renameControl(s,t),(l=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),l(e,void 0),f(s,ka)})}}}}}]},Ea=Ta(),Oa=Ta(!0),Ma=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Da=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ia=/^(?=.{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])?)*$/,ja=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Na=/^(\d{4,})-(\d{2})-(\d{2})$/,Va=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,_a=/^(\d{4,})-W(\d\d)$/,Pa=/^(\d{4,})-(\d\d)$/,La=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ra="keydown wheel mousedown",Ua=be();o("date,datetime-local,month,time,week".split(","),function(e){Ua[e]=!0});var qa={text:Rr,date:Fr("date",Na,Hr(Na,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Fr("datetimelocal",Va,Hr(Va,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Fr("time",La,Hr(La,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Fr("week",_a,qr,"yyyy-Www"),month:Fr("month",Pa,Hr(Pa,["yyyy","MM"]),"yyyy-MM"),number:Yr,url:Zr,email:Qr,radio:ei,range:Xr,checkbox:ni,hidden:v,button:v,submit:v,reset:v,file:v},Ha=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(qa[bi(a.type)]||qa.text)(i,o,a,s[0],t,e,n,r)}}}}],Fa=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===bi(n.type))return{pre:function(t,n,r,i){var o=n[0];o.parentNode&&o.parentNode.insertBefore(o,o.nextSibling),Object.defineProperty&&Object.defineProperty(o,"value",e)}}}}},Ba=/^(true|false|\d+)$/,za=function(){function e(e,t,n){var r=b(n)?n:9===di?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return Ba.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},Wa=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=we(e)})}}}}],Ga=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=y(e)?"":e})}}}}],Ka=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],Ja=$({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Ya=ri("",!0),Xa=ri("Odd",0),Za=ri("Even",1),Qa=Ir({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),es=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],ts={},ns={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(e){var t=Et("ng-"+e);ts[t]=["$parse","$rootScope","$exceptionHandler",function(n,r,i){return ii(n,r,i,t,e,ns[e])}]});var rs=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,l;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=ye(s.clone),e.leave(l).done(function(e){!1!==e&&(l=null)}),s=null))})}}}],is=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Ei.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,l,c){var f,d,p,h=0,v=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done(function(e){!1!==e&&(d=null)}),d=p,p=null)};r.$watch(o,function(o){var u=function(e){!1===e||!b(s)||s&&!r.$eval(s)||t()},d=++h;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&d===h){var t=r.$new();l.template=e;var s=c(t,function(e){v(),n.enter(e,null,i).done(u)});f=t,p=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||d===h&&(v(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(v(),l.template=null)})}}}}],os=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(ki.call(r[0]).match(/SVG/))return r.empty(),void t(je(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],as=Ir({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),ss=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?Ii(i):i,u=function(e){if(!y(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(a?Ii(e):e)}),t}};r.$parsers.push(u),r.$formatters.push(function(e){if(A(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},us="ng-valid",ls="ng-invalid",cs="ng-pristine",fs="ng-dirty",ds=r("ngModel");oi.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],oi.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return E(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){E(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw ds("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,ne(this.$$element))},$render:v,$isEmpty:function(e){return y(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(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,fs),this.$$animate.addClass(this.$$element,cs)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,cs),this.$$animate.addClass(this.$$element,fs),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(!Mi(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName;return y(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,function(e,t){r(t,null)}),o(s.$asyncValidators,function(e,t){r(t,null)})),r(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(e,t);if(!_(s))throw ds("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},v):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!y(n)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),y(n)){this.$$parserValid=!1;break}Mi(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,a=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,a&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){a||(r.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");S(t[e])?t=t[e]:S(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:S(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,v))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},_r({clazz:oi,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var ps,hs=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:oi,priority:1,compile:function(t){return t.addClass(cs).addClass("ng-untouched").addClass(us),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$$setUpdateOnEvents(),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}],vs=/(\s+|^)default(\s+|$)/;si.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=f({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=Ii(n.replace(vs,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],ui(e,this.$$options)),ui(e,ps.$$options),new si(e)}},ps=new si({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ms=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:ps,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},$s=Ir({terminal:!0,priority:1e3}),gs=r("ngOptions"),ys=/^\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]+?))?$/,bs=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!l&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(ys);if(!s)throw gs("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,ne(t));var u=s[5]||s[7],l=s[6],c=/ as /.test(s[0])&&s[1],f=s[9],d=r(s[2]?s[1]:u),p=c&&r(c),h=p||d,v=f&&r(f),m=f?function(e,t){return v(n,t)}:function(e){return st(e)},$=function(e,t){return m(e,C(e,t))},g=r(s[2]||s[1]),y=r(s[3]||""),b=r(s[4]||""),w=r(s[8]),x={},C=l?function(e,t){return x[l]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:$,getWatchables:r(w,function(e){var t=[];e=e||[];for(var r=a(e),i=r.length,o=0;o<i;o++){var u=e===r?o:r[o],l=e[u],c=C(l,u),f=m(l,c);if(t.push(f),s[2]||s[1]){var d=g(n,c);t.push(d)}if(s[4]){var p=b(n,c);t.push(p)}}return t}),getOptions:function(){for(var e=[],t={},r=w(n)||[],i=a(r),s=i.length,u=0;u<s;u++){var l=r===i?u:i[u],c=r[l],d=C(c,l),p=h(n,d),v=m(p,d),x=g(n,d),S=y(n,d),k=b(n,d),A=new o(v,p,x,S,k);e.push(A),t[v]=A}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[$(e)]},getViewValueFromOption:function(e){return f?B(e.viewValue):e.viewValue}}}}}function s(e,r,i,s){function c(e,t){var n=u.cloneNode(!1);t.appendChild(n),d(e,n)}function f(e){var t=x.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function d(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function p(){var e=x&&h.readValue();if(x)for(var t=x.items.length-1;t>=0;t--){var n=x.items[t];Ze(b(n.group)?n.element.parentNode:n.element)}x=C.getOptions();var i={};if(x.items.forEach(function(e){var t;b(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),S.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),c(e,t)):c(e,S)}),r[0].appendChild(S),v.$render(),!v.$isEmpty(e)){var o=h.readValue();(C.trackBy||m?W(e,o):e===o)||(v.$setViewValue(o),v.$render())}}for(var h=s[0],v=s[1],m=i.multiple,$=0,g=r.children(),y=g.length;$<y;$++)if(""===g[$].value){h.hasEmptyOption=!0,h.emptyOption=g.eq($);break}r.empty();var w=!!h.emptyOption;pi(u.cloneNode(!1)).val("?");var x,C=a(i.ngOptions,r,e),S=n[0].createDocumentFragment();h.generateUnknownOptionValue=function(e){return"?"},m?(h.writeValue=function(e){if(x){var t=e&&e.map(f)||[];x.items.forEach(function(e){e.element.selected&&!H(t,e)&&(e.element.selected=!1)})}},h.readValue=function(){var e=r.val()||[],t=[];return o(e,function(e){var n=x.selectValueMap[e];n&&!n.disabled&&t.push(x.getViewValueFromOption(n))}),t},C.trackBy&&e.$watchCollection(function(){if(A(v.$viewValue))return v.$viewValue.map(function(e){return C.getTrackByValue(e)})},function(){v.$render()})):(h.writeValue=function(e){if(x){var t=r[0].options[r[0].selectedIndex],n=x.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(h.removeUnknownOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):h.selectUnknownOrEmptyOption(e)}},h.readValue=function(){var e=x.selectValueMap[r.val()];return e&&!e.disabled?(h.unselectEmptyOption(),h.removeUnknownOption(),x.getViewValueFromOption(e)):null},C.trackBy&&e.$watch(function(){return C.getTrackByValue(v.$viewValue)},function(){v.$render()})),w&&(t(h.emptyOption)(e),r.prepend(h.emptyOption),h.emptyOption[0].nodeType===Fi?(h.hasEmptyOption=!1,h.registerOption=function(e,t){""===t.val()&&(h.hasEmptyOption=!0,h.emptyOption=t,h.emptyOption.removeClass("ng-scope"),v.$render(),t.on("$destroy",function(){var e=h.$isEmptyOptionSelected();h.hasEmptyOption=!1,h.emptyOption=void 0,e&&v.$render()}))}):h.emptyOption.removeClass("ng-scope")),e.$watchCollection(C.getWatchables,p)}var u=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=v},post:s}}}],ws=["$locale","$interpolate","$log",function(e,t,n){var r=/{}/g,i=/^when(Minus)?(.+)$/;return{link:function(a,s,u){function l(e){s.text(e||"")}var c,f=u.count,d=u.$attr.when&&s.attr(u.$attr.when),p=u.offset||0,h=a.$eval(d)||{},m={},$=t.startSymbol(),g=t.endSymbol(),b=$+f+"-"+p+g,w=Ei.noop;o(u,function(e,t){var n=i.exec(t);if(n){var r=(n[1]?"-":"")+bi(n[2]);h[r]=s.attr(u.$attr[t])}}),o(h,function(e,n){m[n]=t(e.replace(r,b))}),a.$watch(f,function(t){var r=parseFloat(t),i=Mi(r);if(i||r in h||(r=e.pluralCat(r-p)),!(r===c||i&&Mi(c))){w();var o=m[r];y(o)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),w=v,l()):w=a.$watch(o,l),c=r}})}}}],xs=r("ngRef"),Cs=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var r=Et(q(t)),i=e(n.ngRef),o=i.assign||function(){throw xs("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,a){var s;if(a.hasOwnProperty("ngRefRead")){if("$element"===a.ngRefRead)s=t;else if(!(s=t.data("$"+a.ngRefRead+"Controller")))throw xs("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',a.ngRefRead,n.ngRef)}else s=t.data("$"+r+"Controller");s=s||t,o(e,s),t.on("$destroy",function(){i(e)===s&&o(e,null)})}}}}],Ss=["$parse","$animate","$compile",function(e,t,n){var a=r("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]},c=function(e,t,n){return st(n)},f=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,d){var p=d.ngRepeat,h=n.$$createComment("end ngRepeat",p),v=p.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!v)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",p);var m=v[1],$=v[2],g=v[3],y=v[4];if(!(v=m.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var b=v[3]||v[1],w=v[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","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var x;if(y){var C={$id:st},S=e(y);x=function(e,t,n,r){return w&&(C[w]=t),C[b]=n,C.$index=r,S(e,C)}}return function(e,n,r,d,v){var m=be();e.$watchCollection($,function(r){var d,$,y,S,k,A,T,E,O,M,D,I,j=n[0],N=be();if(g&&(e[g]=r),i(r))O=r,E=x||c;else{E=x||f,O=[];for(var V in r)yi.call(r,V)&&"$"!==V.charAt(0)&&O.push(V)}for(S=O.length,D=new Array(S),d=0;d<S;d++)if(k=r===O?d:O[d],A=r[k],T=E(e,k,A,d),m[T])M=m[T],delete m[T],N[T]=M,D[d]=M;else{if(N[T])throw o(D,function(e){e&&e.scope&&(m[e.id]=e)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",p,T,A);D[d]={id:T,scope:void 0,clone:void 0},N[T]=!0}C&&(C[b]=void 0);for(var _ in m){if(M=m[_],I=ye(M.clone),t.leave(I),I[0].parentNode)for(d=0,$=I.length;d<$;d++)I[d].$$NG_REMOVED=!0;M.scope.$destroy()}for(d=0;d<S;d++)if(k=r===O?d:O[d],A=r[k],M=D[d],M.scope){y=j;do{y=y.nextSibling}while(y&&y.$$NG_REMOVED);u(M)!==y&&t.move(ye(M.clone),null,j),j=l(M),s(M.scope,d,b,A,w,k,S)}else v(function(e,n){M.scope=n;var r=h.cloneNode(!1);e[e.length++]=r,t.enter(e,null,j),j=r,M.clone=e,N[M.id]=M,s(M.scope,d,b,A,w,k,S)});m=N})}}}}],ks=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],As=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ts=Ir(function(e,t,n){e.$watchCollection(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)})}),Es=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],d=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,function(n){for(var r,i;c.length;)e.cancel(c.pop());for(r=0,i=f.length;r<i;++r){var s=ye(l[r].clone);f[r].$destroy();(c[r]=e.leave(s)).done(d(c,r))}l.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};l.push(a),e.enter(r,o.parent(),o)})})})}}}],Os=Ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),Ms=Ir({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ds=r("ngTransclude"),Is=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(e,n){e.length&&u(e)?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}function u(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==Hi||r.nodeValue.trim())return!0}}if(!o)throw Ds("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",ne(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var l=r.ngTransclude||r.ngTranscludeSlot;o(a,null,l),l&&!o.isSlotFilled(l)&&s()}}}}],js=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Ns={$setViewValue:v,$render:v},Vs=["$element","$scope",function(t,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(e){u||(u=!0,n.$$postDigest(function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,a=new vo;o.selectValueMap={},o.ngModelCtrl=Ns,o.multiple=!1,o.unknownOption=pi(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),li(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),li(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+st(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),li(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&li(o.emptyOption,!1)},n.$on("$destroy",function(){o.renderUnknownOption=v}),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&li(pi(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=st(e);t.val(r in o.selectValueMap?r:e);var i=t[0].options[t[0].selectedIndex];li(pi(i),!0)}else o.selectUnknownOrEmptyOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==Fi){$e(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),r()}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(e,t-1))},o.hasOption=function(e){return!!a.get(e)},o.$hasEmptyOption=function(){return o.hasEmptyOption},o.$isUnknownOptionSelected=function(){return t[0].options[0]===o.unknownOption[0]},o.$isEmptyOptionSelected=function(){return o.hasEmptyOption&&t[0].options[t[0].selectedIndex]===o.emptyOption[0]},o.selectUnknownOrEmptyOption=function(e){null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)};var s=!1,u=!1;o.registerOption=function(e,t,n,a,s){if(n.$attr.ngValue){var u,l;n.$observe("value",function(e){var n,r=t.prop("selected");b(l)&&(o.removeOption(u),delete o.selectValueMap[l],n=!0),l=st(e),u=e,o.selectValueMap[l]=e,o.addOption(e,t),t.attr("value",l),n&&r&&i()})}else a?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");b(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()}):s?e.$watch(s,function(e,r){n.$set("value",e);var a=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&a&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&-1!==e.indexOf(t)||e===t)&&i(!0)})}}],_s=function(){function e(e,t,n,r){var i=r[0],a=r[1];if(!a)return void(i.registerOption=v);if(i.ngModelCtrl=a,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(H(e,t.value)||H(e,i.selectValueMap[t.value]));n!==t.selected&&li(pi(t),n)})};var s,u=NaN;e.$watch(function(){u!==a.$viewValue||W(s,a.$viewValue)||(s=Ce(a.$viewValue),a.$render()),u=a.$viewValue}),a.$isEmpty=function(e){return!e||0===e.length}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Vs,priority:1,link:{pre:e,post:t}}},Ps=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],Ls=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.hasOwnProperty("required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),i.$validators.required=function(e,t){return!o||!i.$isEmpty(t)},r.$observe("required",function(e){o!==e&&(o=e,i.$validate())})}}}}],Rs=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&$i.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,o){if(o){var a=n.pattern;n.ngPattern?a=i(e):r=n.pattern;var s=ci(a,r,t);n.$observe("pattern",function(e){var n=s;s=ci(e,r,t),(n&&n.toString())!==(s&&s.toString())&&o.$validate()}),o.$validators.pattern=function(e,t){return o.$isEmpty(t)||y(s)||s.test(t)}}}}}}],Us=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.maxlength||e(r.ngMaxlength)(t),a=fi(o);r.$observe("maxlength",function(e){o!==e&&(a=fi(e),o=e,i.$validate())}),i.$validators.maxlength=function(e,t){return a<0||i.$isEmpty(t)||t.length<=a}}}}}],qs=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,r,i){if(i){var o=r.minlength||e(r.ngMinlength)(t),a=fi(o)||-1;r.$observe("minlength",function(e){o!==e&&(a=fi(e)||-1,o=e,i.$validate())}),i.$validators.minlength=function(e,t){return i.$isEmpty(t)||t.length>=a}}}}}];if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load AngularJS more than once."));!function(){var t;if(!Ui){var n=Vi();hi=y(n)?e.jQuery:n?e[n]:void 0,hi&&hi.fn.on?(pi=hi,f(hi.fn,{scope:lo.scope,isolateScope:lo.isolateScope,controller:lo.controller,injector:lo.injector,inheritedData:lo.inheritedData})):pi=_e,t=pi.cleanData,pi.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=(pi._data(r)||{}).events)&&n.$destroy&&pi(r).triggerHandler("$destroy");t(e)},Ei.element=pi,Ui=!0}}(),function(n){f(n,{errorHandlingConfig:t,bootstrap:ce,copy:B,extend:f,merge:d,equals:W,element:pi,forEach:o,injector:pt,noop:v,bind:J,toJson:X,fromJson:Z,identity:m,isUndefined:y,isDefined:b,isString:C,isFunction:E,isObject:w,isNumber:S,isElement:R,isArray:A,version:Wi,isDate:k,callbacks:{$$counter:0},getTestability:de,reloadWithDebugInfo:fe,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:he,$$minErr:r,$$csp:Ni,$$encodeUriSegment:ae,$$encodeUriQuery:se,$$lowercase:bi,$$stringify:we,$$uppercase:wi}),vi=xe(e),vi("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Un}),e.provider("$compile",At).directive({a:Ca,input:Ha,textarea:Ha,form:Ea,script:js,select:_s,option:Ps,ngBind:Wa,ngBindHtml:Ka,ngBindTemplate:Ga,ngClass:Ya,ngClassEven:Za,ngClassOdd:Xa,ngCloak:Qa,ngController:es,ngForm:Oa,ngHide:As,ngIf:rs,ngInclude:is,ngInit:as,ngNonBindable:$s,ngPluralize:ws,ngRef:Cs,ngRepeat:Ss,ngShow:ks,ngStyle:Ts,ngSwitch:Es,ngSwitchWhen:Os,ngSwitchDefault:Ms,ngOptions:bs,ngTransclude:Is,ngModel:hs,ngList:ss,ngChange:Ja,pattern:Rs,ngPattern:Rs,required:Ls,ngRequired:Ls,minlength:qs,ngMinlength:qs,maxlength:Us,ngMaxlength:Us,ngValue:za,ngModelOptions:ms}).directive({ngInclude:os,input:Fa}).directive(Sa).directive(ts),e.provider({$anchorScroll:ht,$animate:To,$animateCss:Mo,$$animateJs:ko,$$animateQueue:Ao,$$AnimateRunner:Oo,$$animateAsyncRun:Eo,$browser:xt,$cacheFactory:Ct,$controller:It,$document:jt,$$isDocumentHidden:Nt,$exceptionHandler:Vt,$filter:sr,$$forceReflow:Po,$interpolate:Jt,$interval:Yt,$$intervalFactory:Xt,$http:zt,$httpParamSerializer:Pt,$httpParamSerializerJQLike:Lt,$httpBackend:Gt,$xhrFactory:Wt,$jsonpCallbacks:Wo,$location:hn,$log:vn,$parse:Dn,$rootScope:Rn,$q:In,$$q:jn,$sce:zn,$sceDelegate:Bn,$sniffer:Wn,$$taskTrackerFactory:Gn,$templateCache:St,$templateRequest:Jn,$$testability:Yn,$timeout:Xn,$window:ir,$$rAF:Ln,$$jqLite:at,$$Map:mo,$$cookieReader:ar})}]).info({angularVersion:"1.8.2"})}(Ei),Ei.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return-1==t?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),pi(function(){le(e.document,ce)})}(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;}')),define("angular",function(e){return function(){return e.angular}}(this)),function(e,t){"use strict";function n(){function n(e,t){return r(e.split(","),t)}function r(e,t){var n,r={};for(n=0;n<e.length;n++)r[t?l(e[n]):e[n]]=!0;return r}function v(e,t){t&&t.length&&o(e,r(t))}function m(e,t){null===e||void 0===e?e="":"string"!=typeof e&&(e=""+e);var n=R(e);if(!n)return"";var r=5;do{if(0===r)throw h("uinput","Failed to sanitize html because the input is unstable");r--,e=n.innerHTML,n=R(e)}while(e!==n.innerHTML);for(var i=n.firstChild;i;){switch(i.nodeType){case 1:t.start(i.nodeName.toLowerCase(),$(i.attributes));break;case 3:t.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&t.end(i.nodeName.toLowerCase()),o=w("nextSibling",i))))for(;null==o&&(i=w("parentNode",i))!==n;)o=w("nextSibling",i),1===i.nodeType&&t.end(i.nodeName.toLowerCase());i=o}for(;i=n.firstChild;)n.removeChild(i)}function $(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function g(e){return e.replace(/&/g,"&amp;").replace(S,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(k,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function y(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=l(e),!n&&j[e]&&(n=e),n||!0!==N[e]||(r("<"),r(e),a(i,function(n,i){var o=l(i),a="img"===e&&"src"===o||"background"===o;!0!==L[o]||!0===V[o]&&!t(n,a)||(r(" "),r(i),r('="'),r(g(n)),r('"'))}),r(">"))},end:function(e){e=l(e),n||!0!==N[e]||!0===A[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(g(e))}}}function b(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&b(s),t=w("nextSibling",t)}}function w(e,t){var n=t[e];if(n&&f.call(t,n))throw h("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var x=!1,C=!1;this.$get=["$$sanitizeUri",function(e){return x=!0,C&&o(N,I),function(t){var n=[];return d(t,p(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return u(e)?(C=e,this):C},this.addValidElements=function(e){return x||(s(e)&&(e={htmlElements:e}),v(I,e.svgElements),v(A,e.htmlVoidElements),v(N,e.htmlVoidElements),v(N,e.htmlElements)),this},this.addValidAttrs=function(e){return x||o(L,r(e,!0)),this},i=t.bind,o=t.extend,a=t.forEach,s=t.isArray,u=t.isDefined,l=t.$$lowercase,c=t.noop,d=m,p=y,f=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var S=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,k=/([^#-~ |!])/g,A=n("area,br,col,hr,img,wbr"),T=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),E=n("rp,rt"),O=o({},E,T),M=o({},T,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),D=o({},E,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),I=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),j=n("script,style"),N=o({},A,M,D,O),V=n("background,cite,href,longdesc,src,xlink:href,xml:base"),_=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),P=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),L=o({},V,P,_),R=function(e,t){function n(t){t="<remove></remove>"+t;try{var n=(new e.DOMParser).parseFromString(t,"text/html").body;return n.firstChild.remove(),n}catch(e){return}}function r(e){return o.innerHTML=e,t.documentMode&&b(o),o}if(function(){try{return!!n("")}catch(e){return!1}}())return n;if(!t||!t.implementation)throw h("noinert","Can't create an inert html document");var i=t.implementation.createHTMLDocument("inert"),o=(i.documentElement||i.getDocumentElement()).querySelector("body");return r}(e,e.document)}function r(e){var t=[];return p(t,c).chars(e),t.join("")}var i,o,a,s,u,l,c,f,d,p,h=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n).info({angularVersion:"1.8.2"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((s?ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,o=t.$$minErr("linky"),a=t.isDefined,s=t.isFunction,u=t.isObject,l=t.isString;return function(t,c,f){function d(e){e&&g.push(r(e))}if(null==t||""===t)return t;if(!l(t))throw o("notstring","Expected string but received: {0}",t);for(var p,h,v,m=s(f)?f:u(f)?function(){return f}:function(){return{}},$=t,g=[];p=$.match(n);)h=p[0],p[2]||p[4]||(h=(p[3]?"http://":"mailto:")+h),v=p.index,d($.substr(0,v)),function(e,t){var n,r=m(e);g.push("<a ");for(n in r)g.push(n+'="'+r[n]+'" ');!a(c)||"target"in r||g.push('target="',c,'" '),g.push('href="',e.replace(/"/g,"&quot;"),'">'),d(t),g.push("</a>")}(h,p[0].replace(i,"")),$=$.substring(v+p[0].length);return d($),e(g.join(""))}}])}(window,window.angular),define("angularSanitize",function(){}),function(e,t){"use strict";function n(e,t,n){if(!e)throw ae("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(B(e)&&(e=e.join(" ")),B(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function o(e,t,n){var r="";return e=B(e)?e:e&&J(e)&&e.length?e.split(/\s+/):[],F(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function a(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof X)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===V)return e;break;default:return X(u(e))}if(e.nodeType===V)return X(e)}function u(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===V)return n}}function l(e,t,n){F(t,function(t){e.addClass(t,n)})}function c(e,t,n){F(t,function(t){e.removeClass(t,n)})}function f(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(c(e,t,n.removeClass),n.removeClass=null)}}function d(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||Z;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=Z},e.$$prepared=!0}return e}function p(e,t){h(e,t),v(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function v(e,t){t.to&&(e.css(t.to),t.to=null)}function m(e,t,n){var r=t.options||{},i=n.options||{},o=(r.addClass||"")+" "+(i.addClass||""),a=(r.removeClass||"")+" "+(i.removeClass||""),s=$(e.attr("class"),o,a);i.preparationClasses&&(r.preparationClasses=C(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var u=r.domOperation!==Z?r.domOperation:null;return H(r,i),u&&(r.domOperation=u),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function $(e,t,n){function r(e){J(e)&&(e=e.split(" "));var t={};return F(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),F(t,function(e,t){i[t]=1}),n=r(n),F(n,function(e,t){i[t]=1===i[t]?null:-1});var o={addClass:"",removeClass:""};return F(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+P]):-1===t&&(r="removeClass",i=e[n]||e[n+_]),i&&(o[r].length&&(o[r]+=" "),o[r]+=n)}),o}function g(e){return e instanceof X?e[0]:e}function y(e,t,n,r){var i="";n&&(i=o(n,L,!0)),r.addClass&&(i=C(i,o(r.addClass,_))),r.removeClass&&(i=C(i,o(r.removeClass,P))),i.length&&(r.preparationClasses=i,t.addClass(i))}function b(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function w(e,t){var n=t?"paused":"",r=j+te;return x(e,[r,n]),[r,n]}function x(e,t){var n=t[0],r=t[1];e.style[n]=r}function C(e,t){return e?t?e+" "+t:e:t}function S(e){return[re,e+"s"]}function k(e,t){return[t?ne:ie,e+"s"]}function A(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return F(n,function(e,t){var n=i[e];if(n){var o=n.charAt(0);("-"===o||"+"===o||o>=0)&&(n=T(n)),0===n&&(n=null),r[t]=n}}),r}function T(e){var t=0,n=e.split(/\s*,\s*/);return F(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function E(e){return 0===e||null!=e}function O(e,t){var n=D,r=e+"s";return t?n+=Q:r+=" linear all",[n,r]}function M(e,t,n){F(n,function(n){e[n]=z(e[n])?e[n]:t.style.getPropertyValue(n)})}var D,I,j,N,V=1,_="-add",P="-remove",L="ng-",R="ng-animate",U="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",D="WebkitTransition",I="webkitTransitionEnd transitionend"):(D="transition",I="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",j="WebkitAnimation",N="webkitAnimationEnd animationend"):(j="animation",N="animationend");var q,H,F,B,z,W,G,K,J,Y,X,Z,Q="Duration",ee="TimingFunction",te="PlayState",ne=j+"Delay",re=j+Q,ie=D+"Delay",oe=D+Q,ae=t.$$minErr("ng"),se={blockTransitions:function(e,t){var n=t?"-"+t+"s":"";return x(e,[ie,n]),[ie,n]}},ue=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),o=0;o<t.length;o++)t[o]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],le=["$interpolate",function(e){return{link:function(t,n,r){function i(e){e="on"===e||"true"===e,n.data(U,e)}var o=r.ngAnimateChildren;J(o)&&0===o.length?n.data(U,!0):(i(e(o)(t)),r.$observe("ngAnimateChildren",i))}}}],ce="$$animateCss",fe=1e3,de=3,pe=1.5,he={transitionDuration:oe,transitionDelay:ie,transitionProperty:D+"Property",animationDuration:re,animationDelay:ne,animationIterationCount:j+"IterationCount"},ve={transitionDuration:oe,transitionDelay:ie,animationDuration:re,animationDelay:ne},me=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,t,n,r,s,u,l,c,m){function $(t,n,r,i,o){var a=s.get(r);a||(a=A(e,t,o),"infinite"===a.animationIterationCount&&(a.animationIterationCount=1));var u=i||a.transitionDuration>0||a.animationDuration>0;return s.put(r,a,u),a}function y(n,r,i,a){var u,l="stagger-"+i;if(s.count(i)>0&&!(u=s.get(l))){var c=o(r,"-stagger");t.addClass(n,c),u=A(e,n,a),u.animationDuration=Math.max(u.animationDuration,0),u.transitionDuration=Math.max(u.transitionDuration,0),t.removeClass(n,c),s.put(l,u,!0)}return u||{}}function b(e){V.push(e),c.waitUntilQuiet(function(){s.flush();for(var e=u(),t=0;t<V.length;t++)V[t](e);V.length=0})}function C(e,t,n,r){var i=$(e,t,n,r,he),o=i.animationDelay,a=i.transitionDelay;return i.maxDelay=o&&a?Math.max(o,a):o||a,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}var T=f(t),V=[];return function(e,u){function c(){$()}function f(){$(!0)}function $(n){if(!(G||J&&K)){G=!0,K=!1,ye&&!H.$$skipPreparationClasses&&t.removeClass(e,ye),Ne&&t.removeClass(e,Ne),w(W,!1),se.blockTransitions(W,!1),F(oe,function(e){W.style[e[0]]=""}),T(e,H),p(e,H),Object.keys(z).length&&F(z,function(e,t){e?W.style.setProperty(t,e):W.style.removeProperty(t)}),H.onDone&&H.onDone(),le&&le.length&&e.off(le.join(" "),R);var i=e.data(ce);i&&(r.cancel(i[0].timer),e.removeData(ce)),Y&&Y.complete(!n)}}function A(e){je.blockTransition&&se.blockTransitions(W,e),je.blockKeyframeAnimation&&w(W,!!e)}function V(){return Y=new n({end:c,cancel:f}),b(Z),$(),{$$willAnimate:!1,start:function(){return Y},end:c}}function R(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===W){var n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(de));Math.max(n-ie,0)>=te&&r>=ne&&(J=!0,$())}}function U(){function n(){if(!G){if(A(!1),F(oe,function(e){var t=e[0],n=e[1];W.style[t]=n}),T(e,H),t.addClass(e,Ne),je.recalculateTimingStyles){if(be=W.getAttribute("class")+" "+ye,Ce=s.cacheKey(W,he,H.addClass,H.removeClass),De=C(W,be,Ce,!1),Ie=De.maxDelay,Q=Math.max(Ie,0),0===(ne=De.maxDuration))return void $();je.hasTransitions=De.transitionDuration>0,je.hasAnimations=De.animationDuration>0}if(je.applyAnimationDelay&&(Ie="boolean"!=typeof H.delay&&E(H.delay)?parseFloat(H.delay):Ie,Q=Math.max(Ie,0),De.animationDelay=Ie,Ve=k(Ie,!0),oe.push(Ve),W.style[Ve[0]]=Ve[1]),te=Q*fe,re=ne*fe,H.easing){var n,o=H.easing;je.hasTransitions&&(n=D+ee,oe.push([n,o]),W.style[n]=o),je.hasAnimations&&(n=j+ee,oe.push([n,o]),W.style[n]=o)}De.transitionDuration&&le.push(I),De.animationDuration&&le.push(N),ie=Date.now();var a=te+pe*re,u=ie+a,l=e.data(ce)||[],c=!0;if(l.length){var f=l[0];c=u>f.expectedEndTime,c?r.cancel(f.timer):l.push($)}if(c){var d=r(i,a,!1);l[0]={timer:d,expectedEndTime:u},l.push($),e.data(ce,l)}le.length&&e.on(le.join(" "),R),H.to&&(H.cleanupStyles&&M(z,W,Object.keys(H.to)),v(e,H))}}function i(){var t=e.data(ce);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(ce)}}if(!G){if(!W.parentNode)return void $();var o=function(e){if(J)K&&e&&(K=!1,$());else if(K=!e,De.animationDuration){var t=w(W,K);K?oe.push(t):a(oe,t)}},u=Oe>0&&(De.transitionDuration&&0===xe.transitionDuration||De.animationDuration&&0===xe.animationDuration)&&Math.max(xe.animationDelay,xe.transitionDelay);u?r(n,Math.floor(u*Oe*fe),!1):n(),X.resume=function(){o(!0)},X.pause=function(){o(!1)}}}var H=u||{};H.$$prepared||(H=d(q(H)));var z={},W=g(e);if(!W||!W.parentNode||!m.enabled())return V();var G,K,J,Y,X,Q,te,ne,re,ie,oe=[],ae=e.attr("class"),ue=i(H),le=[];if(0===H.duration||!l.animations&&!l.transitions)return V();var he=H.event&&B(H.event)?H.event.join(" "):H.event,me=he&&H.structural,$e="",ge="";me?$e=o(he,L,!0):he&&($e=he),H.addClass&&(ge+=o(H.addClass,_)),H.removeClass&&(ge.length&&(ge+=" "),ge+=o(H.removeClass,P)),H.applyClassesEarly&&ge.length&&T(e,H);var ye=[$e,ge].join(" ").trim(),be=ae+" "+ye,we=ue.to&&Object.keys(ue.to).length>0;if(!((H.keyframeStyle||"").length>0||we||ye))return V();var xe,Ce=s.cacheKey(W,he,H.addClass,H.removeClass);if(s.containsCachedAnimationWithoutDuration(Ce))return ye=null,V();if(H.stagger>0){var Se=parseFloat(H.stagger);xe={transitionDelay:Se,animationDelay:Se,transitionDuration:0,animationDuration:0}}else xe=y(W,ye,Ce,ve);H.$$skipPreparationClasses||t.addClass(e,ye);var ke;if(H.transitionStyle){var Ae=[D,H.transitionStyle];x(W,Ae),oe.push(Ae)}if(H.duration>=0){ke=W.style[D].length>0;var Te=O(H.duration,ke);x(W,Te),oe.push(Te)}if(H.keyframeStyle){var Ee=[j,H.keyframeStyle];x(W,Ee),oe.push(Ee)}var Oe=xe?H.staggerIndex>=0?H.staggerIndex:s.count(Ce):0,Me=0===Oe;Me&&!H.skipBlocking&&se.blockTransitions(W,9999);var De=C(W,be,Ce,!me),Ie=De.maxDelay;Q=Math.max(Ie,0),ne=De.maxDuration;var je={};if(je.hasTransitions=De.transitionDuration>0,je.hasAnimations=De.animationDuration>0,je.hasTransitionAll=je.hasTransitions&&"all"===De.transitionProperty,je.applyTransitionDuration=we&&(je.hasTransitions&&!je.hasTransitionAll||je.hasAnimations&&!je.hasTransitions),je.applyAnimationDuration=H.duration&&je.hasAnimations,je.applyTransitionDelay=E(H.delay)&&(je.applyTransitionDuration||je.hasTransitions),je.applyAnimationDelay=E(H.delay)&&je.hasAnimations,je.recalculateTimingStyles=ge.length>0,(je.applyTransitionDuration||je.applyAnimationDuration)&&(ne=H.duration?parseFloat(H.duration):ne,je.applyTransitionDuration&&(je.hasTransitions=!0,De.transitionDuration=ne,ke=W.style[D+"Property"].length>0,oe.push(O(ne,ke))),je.applyAnimationDuration&&(je.hasAnimations=!0,De.animationDuration=ne,oe.push(S(ne)))),0===ne&&!je.recalculateTimingStyles)return V();var Ne=o(ye,"-active");if(null!=H.delay){var Ve;"boolean"!=typeof H.delay&&(Ve=parseFloat(H.delay),Q=Math.max(Ve,0)),je.applyTransitionDelay&&oe.push(k(Ve)),je.applyAnimationDelay&&oe.push(k(Ve,!0))}return null==H.duration&&De.transitionDuration>0&&(je.recalculateTimingStyles=je.recalculateTimingStyles||Me),te=Q*fe,re=ne*fe,H.skipBlocking||(je.blockTransition=De.transitionDuration>0,je.blockKeyframeAnimation=De.animationDuration>0&&xe.animationDelay>0&&0===xe.animationDuration),H.from&&(H.cleanupStyles&&M(z,W,Object.keys(H.from)),h(e,H)),je.blockTransition||je.blockKeyframeAnimation?A(ne):H.skipBlocking||se.blockTransitions(W,!1),{$$willAnimate:!0,end:c,start:function(){if(!G)return X={end:c,cancel:f,resume:null,pause:null},Y=new n(X),b(U),Y}}}}]}],$e=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,i,o,a,s,u,l){function c(e){return e.replace(/\bng-\S+\b/g,"")}function f(e,t){return J(e)&&(e=e.split(" ")),J(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function d(t,i,a){function s(e){var t={},n=g(e).getBoundingClientRect();return F(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=v.scrollTop;break;case"left":r+=v.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function u(e){return e.attr("class")||""}function l(){var t=c(u(a)),n=f(t,h),i=f(h,t),o=e(p,{to:s(a),addClass:"ng-anchor-in "+n,removeClass:r+" "+i,delay:!0});return o.$$willAnimate?o:null}function d(){p.remove(),i.removeClass(n),a.removeClass(n)}var p=X(g(i).cloneNode(!0)),h=c(u(p));i.addClass(n),a.addClass(n),p.addClass("ng-anchor"),$.append(p);var m,y=function(){var t=e(p,{addClass:r,delay:!0,from:s(i)});return t.$$willAnimate?t:null}();if(!y&&!(m=l()))return d();var b=y||m;return{start:function(){function e(){n&&n.end()}var t,n=b.start();return n.done(function(){if(n=null,!m&&(m=l()))return n=m.start(),n.done(function(){n=null,d(),t.complete()}),n;d(),t.complete()}),t=new o({end:e,cancel:e})}}}function p(e,t,n,r){var i=h(e),a=h(t),s=[];if(F(r,function(e){var t=e.out,r=e.in,i=d(n,t,r);i&&s.push(i)}),i||a||0!==s.length)return{start:function(){function e(){F(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),a&&t.push(a.start()),F(s,function(e){t.push(e.start())});var n=new o({end:e,cancel:e});return o.all(t,function(e){n.complete(e)}),n}}}function h(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=C(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!s.animations&&!s.transitions)return Z;var v=l[0].body,m=g(a),$=X(t(m)||v.contains(m)?m:v);return function(e){return e.from&&e.to?p(e.from,e.to,e.classes,e.anchors):h(e)}}]}],ge=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=B(n)?n:n.split(" ");for(var r=[],i={},o=0;o<n.length;o++){var a=n[o],s=e.$$registeredAnimations[a];s&&!i[a]&&(r.push(t.get(s)),i[a]=!0)}return r}var o=f(r);return function(e,t,r,a){function s(){a.domOperation(),o(e,a)}function u(){h=!0,s(),p(e,a)}function l(e,t,r,i,o){var a;switch(r){case"animate":a=[t,i.from,i.to,o];break;case"setClass":a=[t,$,g,o];break;case"addClass":a=[t,$,o];break;case"removeClass":a=[t,g,o];break;default:a=[t,o]}a.push(i);var s=e.apply(e,a);if(s)if(G(s.start)&&(s=s.start()),s instanceof n)s.done(o);else if(G(s))return s;return Z}function c(e,t,r,i,o){var a=[];return F(i,function(i){var s=i[o];s&&a.push(function(){var i,o,a=!1,u=function(e){a||(a=!0,(o||Z)(e),i.complete(!e))};return i=new n({end:function(){u()},cancel:function(){u(!0)}}),o=l(s,e,t,r,function(e){u(!1===e)}),i})}),a}function f(e,t,r,i,o){var a=c(e,t,r,i,o);if(0===a.length){var s,u;"beforeSetClass"===o?(s=c(e,"removeClass",r,i,"beforeRemoveClass"),u=c(e,"addClass",r,i,"beforeAddClass")):"setClass"===o&&(s=c(e,"removeClass",r,i,"removeClass"),u=c(e,"addClass",r,i,"addClass")),s&&(a=a.concat(s)),u&&(a=a.concat(u))}if(0!==a.length)return function(e){var t=[];return a.length&&F(a,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){F(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&K(r)&&(a=r,r=null),a=d(a),r||(r=e.attr("class")||"",a.addClass&&(r+=" "+a.addClass),a.removeClass&&(r+=" "+a.removeClass));var v,m,$=a.addClass,g=a.removeClass,y=i(r);if(y.length){var b,w;"leave"===t?(w="leave",b="afterLeave"):(w="before"+t.charAt(0).toUpperCase()+t.substr(1),b=t),"enter"!==t&&"move"!==t&&(v=f(e,t,a,y,w)),m=f(e,t,a,y,b)}if(v||m){var x;return{$$willAnimate:!0,end:function(){return x?x.end():(u(),x=new n,x.complete(!0)),x},start:function(){function e(e){u(e),x.complete(e)}function t(t){h||((r||Z)(t),e(t))}if(x)return x;x=new n;var r,i=[];return v&&i.push(function(e){r=v(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),m&&i.push(function(e){r=m(e)}),x.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),x}}}}}]}],ye=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,o=t.classes;return e(n,r,o,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){F(o,function(e){e.end()})}}function n(e){a.complete(e)}var o=[];r&&o.push(r.start()),i&&o.push(i.start()),t.all(o,n);var a=new t({end:e(),cancel:e()});return a}}}return n(e)}}]}],be="data-ng-animate",we="$ngAnimatePin",xe=["$animateProvider",function(t){function r(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function i(e){if(!e)return null;var t=e.split(v),n=Object.create(null);return F(t,function(e){n[e]=!0}),n}function o(e,t){if(e&&t){var n=i(t);return e.split(v).some(function(e){return n[e]})}}function a(e,t,n){return $[e].some(function(e){return e(t,n)})}function l(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var c=1,h=2,v=" ",$=this.rules={skip:[],cancel:[],join:[]};$.join.push(function(e,t){return!e.structural&&l(e)}),$.skip.push(function(e,t){return!e.structural&&!l(e)}),$.skip.push(function(e,t){return"leave"===t.event&&e.structural}),$.skip.push(function(e,t){return t.structural&&t.state===h&&!e.structural}),$.cancel.push(function(e,t){return t.structural&&e.structural}),$.cancel.push(function(e,t){return t.state===h&&e.structural}),$.cancel.push(function(e,t){if(t.structural)return!1;var n=e.addClass,r=e.removeClass,i=t.addClass,a=t.removeClass;return!(Y(n)&&Y(r)||Y(i)&&Y(a))&&(o(n,a)||o(r,i))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(i,o,v,$,w,x,C,S,k,A,T){function E(e){Z.delete(e.target)}function O(){var e=!1;return function(t){e?t():o.$$postDigest(function(){e=!0,t()})}}function M(e,t){return m(e,t,{})}function D(e,t,n){var r=[],i=te[n];return i&&F(i,function(i){ue.call(i.node,t)?r.push(i.callback):"leave"===n&&ue.call(i.node,e)&&r.push(i.callback)}),r}function I(e,t,n){var r=u(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function j(e,t){"close"!==e||t.parentNode||le.off(t)}function N(e,t,n){function u(e,t,n,r){E(function(){var e=D(S,w,t);e.length?i(function(){F(e,function(e){e($,n,r)}),j(n,w)}):j(n,w)}),e.progress(t,n,r)}function f(e){b($,v),se($,v),p($,v),v.domOperation(),A.complete(!e)}var v=q(n),$=s(e),w=g($),S=w&&w.parentNode;v=d(v);var A=new C,E=O();if(B(v.addClass)&&(v.addClass=v.addClass.join(" ")),v.addClass&&!J(v.addClass)&&(v.addClass=null),B(v.removeClass)&&(v.removeClass=v.removeClass.join(" ")),v.removeClass&&!J(v.removeClass)&&(v.removeClass=null),v.from&&!K(v.from)&&(v.from=null),v.to&&!K(v.to)&&(v.to=null),!(Q&&w&&oe(w,t,n)&&ae(w,v)))return f(),A;var I=["enter","move","leave"].indexOf(t)>=0,N=T(),V=N||Z.get(w),U=!V&&G.get(w)||{},H=!!U.state;if(V||H&&U.state===c||(V=!L(w,S,t)),V)return N&&u(A,t,"start",r(v)),f(),N&&u(A,t,"close",r(v)),A;I&&_(w);var z={structural:I,element:$,event:t,addClass:v.addClass,removeClass:v.removeClass,close:f,options:v,runner:A};if(H){if(a("skip",z,U))return U.state===h?(f(),A):(m($,U,z),U.runner);if(a("cancel",z,U))if(U.state===h)U.runner.end();else{if(!U.structural)return m($,U,z),U.runner;U.close()}else{if(a("join",z,U)){if(U.state!==h)return y(k,$,I?t:null,v),t=z.event=U.event,v=m($,U,z),U.runner;M($,z)}}}else M($,z);var W=z.structural;if(W||(W="animate"===z.event&&Object.keys(z.options.to||{}).length>0||l(z)),!W)return f(),P(w),A;var Y=(U.counter||0)+1;return z.counter=Y,R(w,c,z),o.$$postDigest(function(){$=s(e);var n=G.get(w),i=!n;n=n||{};var o=$.parent()||[],a=o.length>0&&("animate"===n.event||n.structural||l(n));if(i||n.counter!==Y||!a)return i&&(se($,v),p($,v)),(i||I&&n.event!==t)&&(v.domOperation(),A.end()),void(a||P(w));t=!n.structural&&l(n,!0)?"setClass":n.event,R(w,h);var c=x($,t,n.options);A.setHost(c),u(A,t,"start",r(v)),c.done(function(e){f(!e);var n=G.get(w);n&&n.counter===Y&&P(w),u(A,t,"close",r(v))})}),A}function _(e){var t=e.querySelectorAll("["+be+"]");F(t,function(e){var t=parseInt(e.getAttribute(be),10),n=G.get(e);if(n)switch(t){case h:n.runner.end();case c:G.delete(e)}})}function P(e){e.removeAttribute(be),G.delete(e)}function L(e,t,n){var r,i=$[0].body,o=g(v),a=e===i||"HTML"===e.nodeName,s=e===o,u=!1,l=Z.get(e),c=X.data(e,we);for(c&&(t=g(c));t&&(s||(s=t===o),t.nodeType===V);){var f=G.get(t)||{};if(!u){var d=Z.get(t);if(!0===d&&!1!==l){l=!0;break}!1===d&&(l=!1),u=f.structural}if(Y(r)||!0===r){var p=X.data(t,U);z(p)&&(r=p)}if(u&&!1===r)break;if(a||(a=t===i),a&&s)break;t=s||!(c=X.data(t,we))?t.parentNode:g(c)}return(!u||r)&&!0!==l&&s&&a}function R(e,t,n){n=n||{},n.state=t,e.setAttribute(be,t);var r=G.get(e),i=r?H(r,n):n;G.set(e,i)}var G=new w,Z=new w,Q=null,ee=o.$watch(function(){return 0===S.totalPendingRequests},function(e){e&&(ee(),o.$$postDigest(function(){o.$$postDigest(function(){null===Q&&(Q=!0)})}))}),te=Object.create(null),ne=t.customFilter(),re=t.classNameFilter(),ie=function(){return!0},oe=ne||ie,ae=re?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return re.test(n)}:ie,se=f(k),ue=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},le={on:function(e,t,n){var r=u(t);te[e]=te[e]||[],te[e].push({node:r,callback:n}),X(t).on("$destroy",function(){G.get(r)||le.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||J(arguments[0])){var r=te[e];r&&(te[e]=1===arguments.length?null:I(r,t,n))}else{t=arguments[0];for(var i in te)te[i]=I(te[i],t)}},pin:function(e,t){n(W(e),"element","not an element"),n(W(t),"parentElement","not an element"),e.data(we,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,N(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!Q;else{if(W(e)){var r=g(e);1===n?t=!Z.get(r):(Z.has(r)||X(e).on("$destroy",E),Z.set(r,!t))}else t=Q=!!e}return t}};return le}]}],Ce=function(){var e="$$ngAnimateParentKey",t=0,n=Object.create(null);this.$get=[function(){return{cacheKey:function(n,r,i,o){var a=n.parentNode,s=a[e]||(a[e]=++t),u=[s,r,n.getAttribute("class")];return i&&u.push(i),o&&u.push(o),u.join(" ")},containsCachedAnimationWithoutDuration:function(e){var t=n[e];return t&&!t.isValid||!1},flush:function(){n=Object.create(null)},count:function(e){var t=n[e];return t?t.total:0},get:function(e){var t=n[e];return t&&t.value},put:function(e,t,r){n[e]?(n[e].total++,n[e].value=t):n[e]={total:1,value:t,isValid:r}}}}]},Se=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var o="ng-animate-ref",a=this.drivers=[],s="$$animationRunner",u="$$animatePrepareClasses";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(e,s,l,c,h,v,m){function $(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,o=n.parentNode;i.set(n,e);for(var a;o;){if(a=i.get(o)){a.processed||(a=t(a));break}o=o.parentNode}return(a||r).children.push(e),e}var n,r={children:[]},i=new h;for(n=0;n<e.length;n++){var o=e[n];i.set(o.domNode,e[n]={domNode:o.domNode,element:o.element,fn:o.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,o=0,a=[];for(t=0;t<r.length;t++){var s=r[t];i<=0&&(i=o,o=0,n.push(a),a=[]),a.push(s),s.children.forEach(function(e){o++,r.push(e)}),i--}return a.length&&n.push(a),n}(r)}var y=[],b=f(e);return function(f,h,w){function x(e){var t="["+o+"]",n=e.hasAttribute(o)?[e]:e.querySelectorAll(t),r=[];return F(n,function(e){var t=e.getAttribute(o);t&&t.length&&r.push(e)}),r}function C(e){var t=[],n={};F(e,function(e,r){var i=e.element,a=g(i),s=e.event,u=["enter","move"].indexOf(s)>=0,l=e.structural?x(a):[];if(l.length){var c=u?"to":"from";F(l,function(e){var t=e.getAttribute(o);n[t]=n[t]||{},n[t][c]={animationID:r,element:X(e)}})}else t.push(e)});var r={},i={};return F(n,function(n,o){var a=n.from,s=n.to;if(!a||!s){var u=a?a.animationID:s.animationID,l=u.toString();return void(r[l]||(r[l]=!0,t.push(e[u])))}var c=e[a.animationID],f=e[s.animationID],d=a.animationID.toString();if(!i[d]){var p=i[d]={structural:!0,beforeStart:function(){c.beforeStart(),f.beforeStart()},close:function(){c.close(),f.close()},classes:S(c.classes,f.classes),from:c,to:f,anchors:[]};p.classes.length?t.push(p):(t.push(c),t.push(f))}i[d].anchors.push({out:a.element,in:s.element})}),t}function S(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var o=0;o<t.length;o++)if(i===t[o]){n.push(i);break}}return n.join(" ")}function k(e){for(var t=a.length-1;t>=0;t--){var n=a[t],r=l.get(n),i=r(e);if(i)return i}}function A(){j=(j?j+" ":"")+R,e.addClass(f,j);var t=f.data(u);t&&(e.removeClass(f,t),t=null)}function T(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function E(){var e=i(f);!e||"leave"===h&&w.$$domOperationFired||e.end()}function O(t){f.off("$destroy",E),n(f),b(f,w),p(f,w),w.domOperation(),j&&e.removeClass(f,j),D.complete(!t)}w=d(w);var M=["enter","move","leave"].indexOf(h)>=0,D=new c({end:function(){O()},cancel:function(){O(!0)}});if(!a.length)return O(),D;var I=r(f.attr("class"),r(w.addClass,w.removeClass)),j=w.tempClasses;return j&&(I+=" "+j,w.tempClasses=null),M&&f.data(u,"ng-"+h+"-prepare"),t(f,D),y.push({element:f,classes:I,event:h,structural:M,options:w,beforeStart:A,close:O}),f.on("$destroy",E),y.length>1?D:(s.$$postDigest(function(){var t=[];F(y,function(e){i(e.element)?t.push(e):e.close()}),y.length=0;var n=C(t),r=[];F(n,function(e){var t=e.from?e.from.element:e.element,n=w.addClass;n=(n?n+" ":"")+R;var o=m.cacheKey(t[0],e.event,n,w.removeClass);r.push({element:t,domNode:g(t),fn:function(){var t,n=e.close;if(m.containsCachedAnimationWithoutDuration(o))return void n();if(e.beforeStart(),i(e.anchors?e.from.element||e.to.element:e.element)){var r=k(e);r&&(t=r.start)}if(t){var a=t();a.done(function(e){n(!e)}),T(e,a)}else n()}})});for(var o=$(r),a=0;a<o.length;a++)for(var s=o[a],l=0;l<s.length;l++){var c=s[l],f=c.element;if(o[a][l]=c.fn,0!==a){var d=f.data(u);d&&e.addClass(f,d)}else f.removeData(u)}v(o)}),D)}}]}],ke=["$animate",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(t,n,r,i,o){var a,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(t){a&&e.leave(a),s&&(s.$destroy(),s=null),(t||0===t)&&o(function(t,r){a=t,s=r,e.enter(t,null,n)})})}}}];t.module("ngAnimate",[],function(){Z=t.noop,q=t.copy,H=t.extend,X=t.element,F=t.forEach,B=t.isArray,J=t.isString,K=t.isObject,Y=t.isUndefined,z=t.isDefined,G=t.isFunction,W=t.isElement}).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",ke).directive("ngAnimateChildren",le).factory("$$rAFScheduler",ue).provider("$$animateQueue",xe).provider("$$animateCache",Ce).provider("$$animation",Se).provider("$animateCss",me).provider("$$animateCssDriver",$e).provider("$$animateJs",ge).provider("$$animateJsDriver",ye)}(window,window.angular),define("angularAnimate",function(){}),define("angularElement",["jquery.tiny","angular"],function(e,t){function n(){new Date-r<o?setTimeout(n,o):(i=!1,angular.element(window).triggerHandler("resizeEnd"))}e.fn.replaceClass=function(t,n){this.length<1||angular.forEach(this,function(r){var i=this.getAttribute("class");i.length<1?e(this).addClass(n):i=i.replace(t,n),this.setAttribute("class",i)})},e.fn.cssSelect=function(t){return e(this.length<1?document:this).find(t)},e.fn.offset=function(e){var t=this[0],n=0,r=0;do{t&&(n+=t.offsetTop||0,r+=t.offsetLeft||0,t=t.offsetParent),e&&t==e&&(t=!1)}while(t);return{top:Math.round(n),left:Math.round(r)}},e.fn.getStyle=function(t,n){var r=this[0],i=e(r).css(t);return n?parseFloat(i):i},e.fn.contentSize=function(){var e=this[0],t=getComputedStyle(e),n=e.clientHeight,r=e.clientWidth;return n-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{width:r,height:n}};var r=new Date(1,1,2e3,12,0,0),i=!1,o=200;angular.element(window).on("resize",function(){r=new Date,!1===i&&(i=!0,setTimeout(n,o))}),function(e,t){function n(e){return e.replace(/([a-z])([A-Z])/,"$1-$2").toLowerCase()}function r(e){return i?i+e:e.toLowerCase()}var i,o,a,s,u,l,c,f,d,p,h="",v={Webkit:"webkit",Moz:"",O:"o"},m=document.createElement("div"),$=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i,g={};e.each(v,function(e,t){if(void 0!==m.style[e+"TransitionProperty"])return h="-"+e.toLowerCase()+"-",i=t,!1}),o=h+"transform",g[a=h+"transition-property"]=g[s=h+"transition-duration"]=g[l=h+"transition-delay"]=g[u=h+"transition-timing-function"]=g[c=h+"animation-name"]=g[f=h+"animation-duration"]=g[p=h+"animation-delay"]=g[d=h+"animation-timing-function"]="",e.fxz={off:void 0===i&&void 0===m.style.transitionProperty,speeds:{_default:400,fast:200,slow:600},cssPrefix:h,transitionEnd:r("TransitionEnd"),animationEnd:r("AnimationEnd")},e.fn.animate3=function(t,n,r,i,o){return e.isFunction(n)&&(i=n,r=void 0,n=void 0),e.isFunction(r)&&(i=r,r=void 0),e.isPlainObject(n)&&(r=n.easing,i=n.complete,o=n.delay,n=n.duration),n&&(n=("number"==typeof n?n:e.fxz.speeds[n]||e.fxz.speeds._default)/1e3),o&&(o=parseFloat(o)/1e3),this.anim3(t,n,r,i,o)},e.fn.anim3=function(t,r,i,h,v){var m,y,b,w={},x="",C=this,S=e.fxz.transitionEnd,k=!1;if(void 0===r&&(r=e.fxz.speeds._default/1e3),void 0===v&&(v=0),e.fxz.off&&(r=0),"string"==typeof t)w[c]=t,w[f]=r+"s",w[p]=v+"s",w[d]=i||"linear",S=e.fxz.animationEnd;else{y=[];for(m in t)$.test(m)?x+=m+"("+t[m]+") ":(w[m]=t[m],y.push(n(m)));x&&(w[o]=x,y.push(o)),r>0&&"object"==typeof t&&(w[a]=y.join(", "),w[s]=r+"s",w[l]=v+"s",w[u]=i||"linear")}return b=function(t){if(void 0!==t){if(t.target!==t.currentTarget)return;e(t.target).unbind(S,b)}else e(this).unbind(S,b);k=!0,e(this).css(g),h&&h.call(this)},r>0&&(this.bind(S,b),setTimeout(function(){k||b.call(C)},1e3*(r+v)+25)),this.length&&this.get(0).clientLeft,this.css(w),r<=0&&setTimeout(function(){C.each(function(){b.call(this)})},0),this},m=null}(e);var a=function(){var e=null;return function(){if(null!==e)return e;e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}}();e.fn.scrollEnd=function(){var t=e(this),n=function(){t.data("scrollTimeout")&&clearTimeout(t.data("scrollTimeout")),t.data("scrollTimeout",setTimeout(function(){t.trigger("scrollend")},250))};return t.data("hasScrollEnd",!0),t[0].addEventListener("scroll",n,!!a()&&{passive:!0}),{destroy:function(){t[0].removeEventListener("scroll",n),t.data("hasScrollEnd",!1),clearTimeout(t.data("scrollTimeout"))}}}}),define("angularJqEv",["angular","jquery.tiny","jquery.ripple","jquery.vclick"],function(e,t,n){!function(e,r,i){if(void 0===r)throw Error("angular-jqev: AngularJS is undefined but is necessary.");if(void 0===t)throw Error("angular-jqev: jQuery is undefined but is necessary.");var o=["hmTap:vclick","vClick:vclick","vMouseover:vmouseover","vMouseout:vmouseout","vMousedown:vmousedown"],a=r.module("hmTouchEvents",[]),s=[],u=function(e){var t=i(e);t.on("touchstart",c),t.on("touchend touchcancel",f),s.push(e)},l=function(e){var t=i(e);t.off("touchstart",c),t.off("touchend touchcancel",f),t.removeClass("mob");var n=s.indexOf(e);n>-1&&s.splice(n,1)},c=function(e){if(!(e.originalEvent.type.indexOf("mouse")>-1)){var t=this;setTimeout(function(){d||(i(t).addClass("mob"),e.originalEvent.type.indexOf("mouse")<0?i(t).addClass("touch"):i(t).removeClass("touch"))})}},f=function(){var e=this;setTimeout(function(){i(e).removeClass("touch")},80)},d=!1;i(e).on("scrollstart",function(){d=!0;for(var e in s)i(s[e]).removeClass("touch")}),i(e).on("scrollstop",function(){d=!1}),i(e).on("scrollend",function(){d=!1}),i(document).on("touchend touchcancel",function(){for(var e in s)setTimeout(function(){i(s[e]).removeClass("touch")},80)}),r.forEach(o,function(e){var t=e.split(":"),o=t[0],s=t[1];a.directive(o,["$parse","$window","$viewport","$timeout",function(e,t,a,c){return{restrict:"A",scope:!1,priority:1,link:function(t,f,d){var p=function(n){function r(){n.isPropagationStopped()||i({$event:n,$element:f})}n.element=f;var i=e(d[o]).bind(null,t);if(m.ripple||m.delay)"delay"in m&&!m.delay?(r(),n.isPropagationStopped()||(t.$$phase?t.$applyAsync(u):t.$apply())):c(r,m.delay||100);else if(!n.isPropagationStopped()){var a;if(n.target&&n.target.tagName){var s=n.target.tagName.toLowerCase();a="label"==s||"input"==s}if(a||m.direct){var u=function(){i({$event:n,$element:f})};t.$$phase?t.$applyAsync(u):(u(),t.$apply())}else t.$applyAsync(function(){i({$event:n,$element:f})})}},h=d.hmOptions&&r.isObject(t.$eval(d.hmOptions))?t.$eval(d.hmOptions):{},v=a.data("android"),m=r.extend({normal:!1,ripple:v,delay:v?100:0},h);v&&"androiddelay"in m&&(m.delay=m.androiddelay);var $=m.normal&&"vclick"==s?"click":s;if(f&&f.length>0){l(f),"vclick"==$&&(m.ripple?(n.add(f,"center"==m.ripple),f.addClass("a-ripple")):u(f)),i(f).on($,p);var g=function(){i(f).off($,p),"vclick"==$&&(l(f),m.ripple&&(n.remove(f),f.removeClass("a-ripple")))};t.$on("$destroy",g),f.one("$destroy",g)}}}}])}),a.directive("hmUrl",["$parse","$httpParamSerializer","$timeout",function(t,n,r){return{restrict:"A",scope:!1,link:function(i,o,a){var s=t(a.hmUrlClicked).bind(null,i),u=t(a.hmUrlIntercept).bind(null,i),l=t(a.hmUrlChange).bind(null,i),c=i.$eval(a.hmUrl),f=function(t){var r=i.$eval(a.hmUrlParams),l=o.attr("href")||"",f=o.attr("target")||"_parent";if(r){r=n(r);var d,p=l;l.indexOf("#")>-1&&(p=l.split("#"),d=p[1],l=p[0]),r&&(l.indexOf("?")>-1?l+="&"+r:l+="?"+r),d&&(l+="#"+d)}try{t.preventDefault()}catch(e){}c&&t.stopPropagation(),i.$applyAsync(function(){var n=u({$link:l});("boolean"!=typeof n||n)&&(s({$event:t,$url:l}),e.open(l,f))})},d=function(e){e.preventDefault()};i.$on("$destroy",function(){o.off("vclick").off("click",d)}),o.one("$destroy",function(){o.off("vclick").off("click",d)}),o.on("vclick",f).on("click",d),a.hmUrlChange&&"ngHref"in a&&i.$watch(function(e){return a.ngHref},function(e){r(function(){var t=l({$url:e});o.attr("href",t)})})}}}]),a.directive("hmHighlight",["$viewport",function(e){return{restrict:"A",scope:!1,priority:1,link:function(t,i,o){var a=o.hmHighlight&&r.isObject(t.$eval(o.hmHighlight))?t.$eval(o.hmHighlight):{},s=r.extend({ripple:e.data("android")},a);u(i),s.ripple?n.add(i,"center"==s.ripple):u(i),t.$on("$destroy",function(){s.ripple?n.remove(i):l(i)}),i.one("$destroy",function(){s.ripple?n.remove(i):l(i)})}}}]).directive("hmSwipeRemove",["$parse","$animateCss","$document",function(t,n,i){return{restrict:"A",scope:!1,link:function(n,o,a){var s,u=t(a.hmSwipeRemove).bind(null,n),l=r.merge({direction:"right",enabled:!0,minspeed:180,maxspeed:100},n.$eval(a.hmSwipeRemoveOptions)),c=o,f={x:0,perc:0,prev:!1,prevent:!1},d={},p=l.enabled,h=l.direction,v=l.maxspeed,m=l.maxspeed;if(p){var $,g,y=!1,b=function(e){e.stopPropagation()},w=0,x=function(t){if(s&&!(Math.abs(t.clientX-d.startX)<30)){if(Math.abs(t.clientY-d.startY)>=25&&!d.started)return void i.off("vmousemove",x);d.started=!0,t.preventDefault(),s.removeClass("reset"),s.addClass("grab"),r.element(e).trigger("scrollstart");var n=t.clientX;f.prev||(f.prev=n),f.x+=n-f.prev,f.perc=100*f.x/e.innerWidth,"left"==h?(f.x>0&&(f.x=0),f.perc>0&&(f.perc=0)):(f.x<0&&(f.x=0),f.perc<0&&(f.perc=0)),s.css({transform:"translate3d("+f.perc+"%,0,0)","-webkit-transform":"translate3d("+f.perc+"%,0,0)"}),clearTimeout($),y="left"==h?n<f.prev:n>f.prev,$=setTimeout(function(){y=!1},200),w||(w=(new Date).getTime()),g=setTimeout(function(){w=(new Date).getTime()},m),f.prev=n}},C=function(e){clearTimeout(g),i.off("vmousemove",x);var t=(new Date).getTime(),r=Math.max(0,m-Math.round(100*(t-w))/100);if(d.started){if(s){s.removeClass("grab");var o="left"==h?-100:100,a=function(e){var t=Math.max(m,e||Math.min(v,r));s.animate3({translate3d:o+"%,0,0"},{duration:t,complete:function(){c.css({"transition-duration":"0s","-webkit-transition-duration":"0s"}),n.$applyAsync(function(){u()}),setTimeout(function(){c.css({transform:"","-webkit-transform":"","transition-duration":"","-webkit-transition-duration":""})})}})};"left"==h&&f.perc>-70||"right"==h&&f.perc<70?(s.removeClass("grab reset"),y?a():s.animate3({translate3d:"0%,0,0"},{duration:v,complete:function(){c.css({transform:"","-webkit-transform":""})}}),f.perc=0,f.x=0,f.prev=0):(a(v),s.removeClass("grab reset"),l.keep||s.triggerHandler("$destroy")),c.oneFirst("click",b),s=!1}d.started=!1}},S=function(){var t=(l["max-window-size"],e.innerWidth);k=t<=880},k=!0;c.addClass("touch-element-swipeh-cl"),c.on("vmousedown",function(e){if(!k)return!0;e.button&&2==e.button||(s=c,c.off("click",b),i.on("vmousemove",x),d.startX=e.clientX,d.startY=e.clientY)}),c.on("vmouseup",C),i.on("vmouseup",C),c.on("$destroy",function(){c.off("vmousedown").off("vmouseup"),i.off("vmouseup",C).off("vmousemove",x),c.removeClass("grab reset").removeClass("touch-element-swipeh-cl"),r.element(e).off("resize",S)}),l["max-window-size"]&&(r.element(e).on("resize",S),S()),n.$on("$destroy",function(){c.triggerHandler("$destroy"),r.element(e).off("resize",S)})}}}}]).directive("hmSwipe",["$parse","$animateCss","$document",function(t,n,i){return{restrict:"A",scope:!1,link:function(n,o,a){var s,u=t(a.hmSwipe).bind(null,n),l=t(a.hmSwipeThreshold).bind(null,n),c=t(a.hmSwipeThresholdReset).bind(null,n),f=t(a.hmSwipeStart).bind(null,n),d=t(a.hmSwipeEnd).bind(null,n),p=r.merge({direction:"both",enabled:!0,minspeed:180,maxspeed:100,threshold:70},n.$eval(a.hmSwipeOptions)),h=o,v={x:0,perc:0,prev:!1,prevent:!1},m={},$=p.enabled,g=p.direction,y=(p.maxspeed,p.maxspeed);if(!$)return!1;var b,w,x=!1,C=function(e){e.stopPropagation()},S=0,k=function(t){if(s&&!(Math.abs(t.clientX-m.startX)<30)){if(Math.abs(t.clientY-m.startY)>=25&&!m.started)return void i.off("vmousemove",k);m.started||n.$applyAsync(function(){f({$event:t})}),m.started=!0,t.preventDefault(),s.removeClass("reset"),s.addClass("grab"),r.element(e).trigger("scrollstart");var o=t.clientX;v.prev||(v.prev=o),v.x+=o-v.prev,v.perc=100*v.x/e.innerWidth,"left"==g?(v.x>0&&(v.x=0),v.perc>0&&(v.perc=0)):"right"==g&&(v.x<0&&(v.x=0),v.perc<0&&(v.perc=0)),n.$applyAsync(function(){u({$event:t,$moved:v.perc})}),clearTimeout(b),x="left"==g?o<v.prev:"right"==g?o>v.prev:o!=v.prev,b=setTimeout(function(){x=!1},200),S||(S=(new Date).getTime()),w=setTimeout(function(){S=(new Date).getTime()},y),v.prev=o}},A=function(e){clearTimeout(w),i.off("vmousemove",k);var t=(new Date).getTime();Math.max(0,y-Math.round(100*(t-S))/100);m.started&&(s&&(s.removeClass("grab"),"left"==g&&v.perc>-1*p.threshold||"right"==g&&v.perc<p.threshold?(s.removeClass("grab reset"),x?n.$applyAsync(function(){l({$event:e,$moved:v.perc})}):n.$applyAsync(function(){c({$event:e,$moved:v.perc})}),v.perc=0,v.x=0,v.prev=0):(s.removeClass("grab reset"),n.$applyAsync(function(){l({$event:e,$moved:v.perc})})),h.oneFirst("click",C),s=!1),m.started=!1,n.$applyAsync(function(){d({$event:e})}))},T=function(){var t=p["max-window-size"],n=e.innerWidth;E=!t||n<=t},E=!0;h.addClass("touch-element-swipeh-cl"),h.on("vmousedown",function(e){if(!E)return!0;e.button&&2==e.button||(s=h,h.off("click",C),i.on("vmousemove",k),m.startX=e.clientX,m.startY=e.clientY)}),h.on("vmouseup",A),i.on("vmouseup",A),h.on("$destroy",function(){h.off("vmousedown").off("vmouseup"),i.off("vmouseup",A).off("vmousemove",k),h.removeClass("grab reset").removeClass("touch-element-swipeh-cl"),r.element(e).off("resize",T)}),p["max-window-size"]&&(r.element(e).on("resize",T),T()),n.$on("$destroy",function(){h.triggerHandler("$destroy"),r.element(e).off("resize",T)})}}}])}(window,e,t)}),define("angularElementScroll",["angular"],function(e){var t=function(e){"use strict";return e<.5?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2};e.module("duScroll",["duScroll.scrollspy","duScroll.smoothScroll","duScroll.scrollContainer","duScroll.spyContext","duScroll.scrollHelpers"]).value("duScrollDuration",350).value("duScrollSpyWait",100).value("duScrollGreedy",!1).value("duScrollOffset",0).value("duScrollEasing",t).value("duScrollCancelOnEvents","scroll mousedown mousewheel touchmove keydown").value("duScrollBottomSpy",!1).value("duScrollActiveClass","active"),e.module("duScroll.scrollHelpers",["duScroll.requestAnimation"]).run(["$window","$q","cancelAnimation","requestAnimation","duScrollEasing","duScrollDuration","duScrollOffset","duScrollCancelOnEvents",function(t,n,r,i,o,a,s,u){"use strict";var l={},c=function(e){return"undefined"!=typeof HTMLDocument&&e instanceof HTMLDocument||e.nodeType&&e.nodeType===e.DOCUMENT_NODE},f=function(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||e.nodeType&&e.nodeType===e.ELEMENT_NODE},d=function(e){return f(e)||c(e)?e:e[0]};l.duScrollTo=function(n,r,i,o){var a;if(e.isElement(n)?a=this.duScrollToElement:e.isDefined(i)&&(a=this.duScrollToAnimated),a)return a.apply(this,arguments);var s=d(this);if(c(s))return t.scrollTo(n,r);s.scrollLeft=n,s.scrollTop=r};var p,h;l.duScrollToAnimated=function(e,t,a,s){a&&!s&&(s=o);var l=this.duScrollLeft(),c=this.duScrollTop(),f=Math.round(e-l),d=Math.round(t-c),v=null,m=0,$=this,g=function(e){(!e||m&&e.which>0)&&(u&&$.unbind(u,g),r(p),h.reject(),p=null)};if(p&&g(),h=n.defer(),0===a||!f&&!d)return 0===a&&$.duScrollTo(e,t),h.resolve(),h.promise;var y=function(e){null===v&&(v=e),m=e-v;var t=m>=a?1:s(m/a);$.scrollTo(l+Math.ceil(f*t),c+Math.ceil(d*t)),t<1?p=i(y):(u&&$.unbind(u,g),p=null,h.resolve())};return $.duScrollTo(l,c),u&&$.bind(u,g),p=i(y),h.promise},l.duScrollToElement=function(t,n,r,i){var o=d(this);e.isNumber(n)&&!isNaN(n)||(n=s);var a=this.duScrollTop()+d(t).getBoundingClientRect().top-n;return f(o)&&(a-=o.getBoundingClientRect().top),this.duScrollTo(0,a,r,i)},l.duScrollLeft=function(n,r,i){if(e.isNumber(n))return this.duScrollTo(n,this.duScrollTop(),r,i);var o=d(this);return c(o)?t.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft:o.scrollLeft},l.duScrollTop=function(n,r,i){if(e.isNumber(n))return this.duScrollTo(this.duScrollLeft(),n,r,i);var o=d(this);return c(o)?t.scrollY||document.documentElement.scrollTop||document.body.scrollTop:o.scrollTop},l.duScrollToElementAnimated=function(e,t,n,r){return this.duScrollToElement(e,t,n||a,r)},l.duScrollTopAnimated=function(e,t,n){return this.duScrollTop(e,t||a,n)},l.duScrollLeftAnimated=function(e,t,n){return this.duScrollLeft(e,t||a,n)},e.forEach(l,function(t,n){e.element.prototype[n]=t;var r=n.replace(/^duScroll/,"scroll");e.isUndefined(e.element.prototype[r])&&(e.element.prototype[r]=t)})}]),e.module("duScroll.polyfill",[]).factory("polyfill",["$window",function(e){"use strict";var t=["webkit","moz","o","ms"];return function(n,r){if(e[n])return e[n];for(var i,o=n.substr(0,1).toUpperCase()+n.substr(1),a=0;a<t.length;a++)if(i=t[a]+o,e[i])return e[i];return r}}]),e.module("duScroll.requestAnimation",["duScroll.polyfill"]).factory("requestAnimation",["polyfill","$timeout",function(e,t){"use strict";var n=0;return e("requestAnimationFrame",function(e,r){var i=(new Date).getTime(),o=Math.max(0,16-(i-n)),a=t(function(){e(i+o)},o);return n=i+o,a})}]).factory("cancelAnimation",["polyfill","$timeout",function(e,t){"use strict";return e("cancelAnimationFrame",function(e){t.cancel(e)})}]),e.module("duScroll.spyAPI",["duScroll.scrollContainerAPI"]).factory("spyAPI",["$rootScope","$timeout","$window","$document","scrollContainerAPI","duScrollGreedy","duScrollSpyWait","duScrollBottomSpy","duScrollActiveClass",function(e,t,n,r,i,o,a,s,u){"use strict";var l=function(i){var l=!1,c=!1,f=function(){c=!1;var t,a=i.container,l=a[0],f=0;"undefined"!=typeof HTMLElement&&l instanceof HTMLElement||l.nodeType&&l.nodeType===l.ELEMENT_NODE?(f=l.getBoundingClientRect().top,t=Math.round(l.scrollTop+l.clientHeight)>=l.scrollHeight):t=Math.round(n.pageYOffset+n.innerHeight)>=r[0].body.scrollHeight;var d,p,h,v,m,$,g=s&&t?"bottom":"top";for(v=i.spies,p=i.currentlyActive,h=void 0,d=0;d<v.length;d++)m=v[d],($=m.getTargetPosition())&&(s&&t||$.top+m.offset-f<20&&(o||-1*$.top+f)<$.height)&&(!h||h[g]<$[g])&&(h={spy:m},h[g]=$[g]);h&&(h=h.spy),p===h||o&&!h||(p&&(p.$element.removeClass(u),e.$broadcast("duScrollspy:becameInactive",p.$element)),h&&(h.$element.addClass(u),e.$broadcast("duScrollspy:becameActive",h.$element)),i.currentlyActive=h)};return a?function(){l?c=!0:(f(),l=t(function(){l=!1,c&&f()},a,!1))}:f},c={},f=function(e){var t=e.$id,n={spies:[]};return n.handler=l(n),c[t]=n,e.$on("$destroy",function(){d(e)}),t},d=function(e){var t=e.$id,n=c[t],r=n.container;r&&r.off("scroll",n.handler),delete c[t]},p=f(e),h=function(e){return c[e.$id]?c[e.$id]:e.$parent?h(e.$parent):c[p]},v=function(e){var t,n,r=e.$scope;if(r)return h(r);for(n in c)if(t=c[n],-1!==t.spies.indexOf(e))return t},m=function(e){for(;e.parentNode;)if((e=e.parentNode)===document)return!0;return!1};return{addSpy:function(e){var t=v(e);t&&(t.spies.push(e),t.container&&m(t.container)||(t.container&&t.container.off("scroll",t.handler),t.container=i.getContainer(e.$scope),t.container.on("scroll",t.handler).triggerHandler("scroll")))},removeSpy:function(e){var t=v(e);if(t){e===t.currentlyActive&&(t.currentlyActive=null);var n=t.spies.indexOf(e);-1!==n&&t.spies.splice(n,1),e.$element=null}},createContext:f,destroyContext:d,getContextForScope:h}}]),e.module("duScroll.scrollContainerAPI",[]).factory("scrollContainerAPI",["$document",function(e){"use strict";var t={},n=function(e,n){var r=e.$id;return t[r]=n,r},r=function(e){return t[e.$id]?e.$id:e.$parent?r(e.$parent):void 0};return{getContainerId:r,getContainer:function(n){var i=r(n);return i?t[i]:e},setContainer:n,removeContainer:function(e){var n=r(e);n&&delete t[n]}}}]),e.module("duScroll.smoothScroll",["duScroll.scrollHelpers","duScroll.scrollContainerAPI"]).directive("duSmoothScroll",["duScrollDuration","duScrollOffset","scrollContainerAPI",function(t,n,r){"use strict";return{link:function(i,o,a){o.on("click",function(o){if(a.href&&-1!==a.href.indexOf("#")||""!==a.duSmoothScroll){var s=a.href?a.href.replace(/.*(?=#[^\s]+$)/,"").substring(1):a.duSmoothScroll,u=document.getElementById(s)||document.getElementsByName(s)[0];if(u&&u.getBoundingClientRect){o.stopPropagation&&o.stopPropagation(),o.preventDefault&&o.preventDefault();var l=a.offset?parseInt(a.offset,10):n,c=a.duration?parseInt(a.duration,10):t;r.getContainer(i).duScrollToElement(e.element(u),isNaN(l)?0:l,isNaN(c)?0:c)}}})}}}]),e.module("duScroll.spyContext",["duScroll.spyAPI"]).directive("duSpyContext",["spyAPI",function(e){"use strict";return{restrict:"A",scope:!0,compile:function(t,n,r){return{pre:function(t,n,r,i){e.createContext(t)}}}}}]),e.module("duScroll.scrollContainer",["duScroll.scrollContainerAPI"]).directive("duScrollContainer",["scrollContainerAPI",function(t){"use strict";return{restrict:"A",scope:!0,compile:function(n,r,i){return{pre:function(n,r,i,o){i.$observe("duScrollContainer",function(i){e.isString(i)&&(i=document.getElementById(i)),i=e.isElement(i)?e.element(i):r,t.setContainer(n,i),n.$on("$destroy",function(){t.removeContainer(n)})})}}}}}]),e.module("duScroll.scrollspy",["duScroll.spyAPI"]).directive("duScrollspy",["spyAPI","duScrollOffset","$timeout","$rootScope",function(t,n,r,i){"use strict";var o=function(t,n,r,i){e.isElement(t)?this.target=t:e.isString(t)&&(this.targetId=t),this.$scope=n,this.$element=r,this.offset=i};return o.prototype.getTargetElement=function(){return!this.target&&this.targetId&&(this.target=document.getElementById(this.targetId)||document.getElementsByName(this.targetId)[0]),this.target},o.prototype.getTargetPosition=function(){var e=this.getTargetElement();if(e)return e.getBoundingClientRect()},o.prototype.flushTargetCache=function(){this.targetId&&(this.target=void 0)},{link:function(e,a,s){var u,l=s.ngHref||s.href;l&&-1!==l.indexOf("#")?u=l.replace(/.*(?=#[^\s]+$)/,"").substring(1):s.duScrollspy?u=s.duScrollspy:s.duSmoothScroll&&(u=s.duSmoothScroll),u&&r(function(){var r=new o(u,e,a,-(s.offset?parseInt(s.offset,10):n));t.addSpy(r),e.$on("$locationChangeSuccess",r.flushTargetCache.bind(r));var l=i.$on("$stateChangeSuccess",r.flushTargetCache.bind(r));e.$on("$destroy",function(){t.removeSpy(r),l()})},0,!1)}}}])}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("polyfills",["require","exports"],e)}(function(e,t){function n(e){return v(e)?e[e.length-1]:null}function r(e){if(!R(e)&&!v(e))return e;var t=!v(e),n=t?{}:[],i=0,o=0;if(t){var a=F(e);for(o=a.length;i<o;i++){var s=a[i];n[s]=r(e[s])}}else for(o=e.length;i<o;i++)n[i]=r(e[i]);return n}function i(e,t,n,r,i){t=!isNaN(t=Math.abs(t))&&t>0?Math.pow(10,t):1,n=void 0!==n?n:"$",r=r||",",i=i||".";var o=e<0?"-":"",a=parseInt(e=Math.round(Math.abs(+e||0)*t)/t,10)+"",s=(s=a.length)>3?s%3:0,u=n+o+(s?a.substr(0,s)+r:"")+a.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+r);return t>1&&Math.round(Math.abs(e-a)>0)&&(u+=i+(Math.round(Math.abs(e-a)*t)/t).toString().substring(2)),u}function o(e,t){void 0===e&&(e="");var n,r=function(e,t){return e=parseInt(e,10).toString(16),t<e.length?e.slice(e.length-t):t>e.length?Array(t-e.length+1).join("0")+e:e};return this.php_js||(this.php_js={}),this.php_js.uniqidSeed||(this.php_js.uniqidSeed=Math.floor(123456789*Math.random())),this.php_js.uniqidSeed++,n=e,n+=r(parseInt((new Date).getTime()/1e3,10),8),n+=r(this.php_js.uniqidSeed,5),t&&(n+=(10*Math.random()).toFixed(8).toString()),n}function a(e,t){try{return e()}catch(e){return L(t)?t(e):void 0}}function s(e){return void 0===e||null===e||void 0===e}function u(e){return!!s(e)||(v(e)?C(e):M(e)?D(e):Y(e)?0==e:R(e)?F(e).length<=0:!e)}function l(e,t){var n=!1;return m(t,function(t){if(e===t)return n=!0,!1}),n}function c(e,t){var n,r,i,o=e,a=t,s=o,u=a,l=/(\.0)+[^\.]*$/;for(s=(s+"").replace(l,"").split("."),u=(u+"").replace(l,"").split("."),i=Math.min(s.length,u.length),n=0;n<i;n++)if(0!==(r=parseInt(s[n],10)-parseInt(u[n],10)))return r;return s.length-u.length}function f(e){var t=e+"=";if(document.cookie)for(var n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return unescape(i.substring(t.length,i.length))}}function d(e,t,n){var r;if(0===n)r='expires=""';else{n||(n=0);var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3),r="expires="+i.toUTCString()}document.cookie=e+"="+t+"; "+r+"; path=/; domain=."+document.domain+"; secure"}function p(){return!1!==navigator.cookieEnabled&&(document.cookie="testcookie=1",-1!=document.cookie.indexOf("testcookie"))}function h(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].indexOf(navigator.platform)||(navigator.userAgent.includes("Mac")&&"ontouchend"in document)>-1}var v=function(e){return Array.isArray?Array.isArray(e):e&&"[object Array]"===Object.prototype.toString.call(e)},m=function(e,t,n,r){if(!v(e))throw new TypeError("forEach called on a non-array type value. The given value is "+typeof e);var i;if(n||(n=e),r)for(var o=e.length,a=o-1;a>=0&&("boolean"!=typeof(i=t.call(n,e[a],a,e))||i);a--);else for(var a=0,o=e.length;a<o&&("boolean"!=typeof(i=t.call(n,e[a],a,e))||i);a++);},$=function(e,t){if(Array.prototype.filter)return Array.prototype.filter.call(e,t);for(var n=[],r=0,i=e.length;r<i;r++)t(e[r])&&n.push(e[r]);return n},g=function(e,t){if(Array.prototype.map)return Array.prototype.map.call(e,t);for(var n=[],r=0,i=e.length;r<i;r++)n.push(t(e[r]));return n},y=function(e,t,n){if(!v(e))throw new TypeError("Array.some called on a non-array type value. The given value is "+typeof e);if(!L(t))throw new TypeError("Iterator of Array.some is not a function. The given value is "+typeof t);if(n||(n=e),Array.prototype.some)return Array.prototype.some.call(e,t,n);for(var r=Object(e),i=r.length>>>0,o=0;o<i;o++)if(o in r&&t.call(n,r[o],o,r))return!0;return!1},b=function(e,t,n){if(!v(e))throw new TypeError("Array.groupBy called on a non-array type. The given value is "+typeof e);var r=e.reduce(function(e,r){var i=r[t];return e[i]=e[i]||[],e[i].push(r),n&&n(r,e[i]),e},{}),i=[];return B(r,function(e){i.push(e)}),i},w=function(e,t){if(!v(e))throw new TypeError("Array.findIndex called on a non-array type. The given value is "+typeof e);if(Array.prototype.findIndex)return Array.prototype.findIndex.call(e,t);for(var n,r=-1,i=0,o=e.length;i<o;i++)if("boolean"==typeof(n=t(e,e[i],i,e))&&n){r=i;break}return r},x=function(e,t){if(!v(e))throw new TypeError("Array.pushUnique called on a non-array type. The given value is "+typeof e);e.indexOf(t)<0&&e.push(t)},C=function(e){return v(e)?e.length<1:null},S=function(e){return!!v(e)&&!C(e)},k=function(e){return String.prototype.trimLeft?String.prototype.trimLeft.call(e):e.replace(/^\s+/,"")},A=function(e){return String.prototype.trimRight?String.prototype.trimRight.call(e):e.replace(/\s+$/,"")},T=function(e){return String.prototype.trim?String.prototype.trim.call(e):e.replace(/^\s+|\s+$/gm,"")},E=function(e,t){var n=Array.prototype.slice.call(arguments);return n.shift().replace(/\{(\d+)\}/g,function(e,t){return void 0!==n[t]&&null!==n[t]?n[t]:e})},O=function(e,t,n){return M(e)&&!D(e)?e+(t?" ":""):n||""},M=function(e){return"string"==typeof e},D=function(e){return!M(e)||""==e.replace(/\s/g,"")},I=function(e){if(M(e))return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()})},j=function(e,t,n){if(M(e))return"b"!="ab".substring(-1)?String.prototype.substr.call(e,t<0?e.length+t:t,n):String.prototype.substr.call(e,t,n);throw new TypeError("String.substr called on a non-string. The given value is "+typeof e)},N=function(e,t,n){if(!M(e))throw new TypeError("String.includes called on a non-string");return String.prototype.includes?String.prototype.includes.call(e,t,n):("number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n))},V=function(e,t){if(!M(e))throw new TypeError("Contains called on a non-string. The given value is "+typeof e);if(!v(t))return!1;var n=!1;return m(t,function(t){return!M(t)||(N(e,t)?(n=!0,!1):void 0)}),n},_=function(e){if(!M(e))throw new TypeError("String.splitCamel called on a non-string. The given value is "+typeof e);return e.replace(/([A-Z])/g," $1").replace(/^./,function(e){return e.toUpperCase()})},P=function(e){if(!M(e))throw new TypeError("String.digits called on a non-string. The given value is "+typeof e);return T(e).replace(/[^0-9]/g,"")},L=function(e){return"function"==typeof e},R=function(e){return null!==e&&"object"==typeof e&&!v(e)},U=function(e,t){var n=JSON.parse(JSON.stringify(e));if(!R(e)||!R(t))throw new TypeError("First or second argument is not an plain object");return m(F(t),function(r){R(t[r])?n[r]=U(e[r]||{},t[r]):n[r]=t[r]}),n},q=function(e){return r(e)},H=function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");if("function"==typeof Object.assign)return Object.assign.apply(this,arguments);for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],l=Object.getOwnPropertyDescriptor(i,u);void 0!==l&&l.enumerable&&(n[u]=i[u])}}return n},F=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(i){if("function"==typeof Object.keys)return Object.keys(i);if("object"!=typeof i&&"function"!=typeof i||null===i)throw new TypeError("Object.keys called on non-object. The given value is "+typeof i);var o=[];for(var a in i)e.call(i,a)&&o.push(a);if(t)for(var s=0;s<r;s++)e.call(i,n[s])&&o.push(n[s]);return o}}(),B=function(e,t,n){var r,i=n||e;if(!R(e))throw new TypeError("Object.forEach called on non-object. The given value is "+typeof e);if(!L(t))throw new TypeError("The given iterator is not a function");for(var o in e)if((!L(e.hasOwnProperty)||e.hasOwnProperty(o))&&"boolean"==typeof(r=t.apply(i,[e[o],o]))&&!r)break},z=function(){return"function"!=typeof Object.create?function(e){var t=function(){};return function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var r=new t;return t.prototype=null,void 0!==n&&Object.defineProperties(r,n),null===e&&(r.__proto__=null),r}}():Object.create}(),W=function(e,t,n){var r=!1;if(!R(e))throw new TypeError("Object.hasKeys called on non-object. The given value is "+typeof e);return m(t,function(t){if(!(t in e))return r=!1,!1;r=!n||!!e[t]}),r},G=function(e,t,n){var r=!1;if(!R(e))throw new TypeError("Object.hasKeys called on non-object. The given value is "+typeof e);return m(t,function(t){if(t in e&&(r=!n||!!e[t]),r)return!1}),r},K=function(){var e={current:new Date,months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],fromToday:function(t,n,r,i){if(i=i||5,!Y(t)&&(t.indexOf("-")>-1&&(t=t.replace(/-/g,"/")),t.indexOf("/")<0))return"";var o=new Date(e.calcTimeOffset(t,-1*e.current.getTimezoneOffset()/60)),a=e.current.getTime()-o.getTime();a/=1e3;Math.floor(a%60);a/=60;var s=Math.max(1,Math.floor(a%60));a/=60;var u=Math.floor(a%24),l=Math.floor(a/24),c=r?" ":", ";return l>i?e[n?"monthsShort":"months"][o.getMonth()]+" "+o.getDate()+c+(r?"":o.getFullYear()):l>=1?l+" day"+(l>1?"s":"")+" ago":u>=1?u+" hr"+(u>1?"s":"")+". ago":s+" min. ago"},calcTimeOffset:function(e,t){var n=Y(e)?new Date(e):new Date,r=n.getTime()+6e4*n.getTimezoneOffset();return new Date(r+36e5*t).getTime()},getDifference:function(t,n,r,i){var o=t.getTimezoneOffset(),a=t.getTime(),s=e.calcTimeOffset(n.getTime(),-1*o/60),u=Math.round(Math.abs(a-s)/36e5),l=Math.round((a-s)/864e5);r||(r="days");var c="days"==r?l:u;return i&&(c=c.toString()+("days"==r?" day":" hr")+(1!==c?"s":"")),c},getElapsedSeconds:function(e,t){var n=e-t;return n/=1e3,Math.round(n%60*100)/100+" sec."},toText:function(t,n,r,i,o,a){var s;if(Y(t)||M(t)){if(!Y(t)&&t){if(t.indexOf("-")>-1&&(t=t.replace(/-/g,"/")),t.indexOf("/")<0)return""}else if(!t)return"";s=new Date(t)}else{if(!t)return"";s=t}var u=i?" ":", ",l=o?s.getUTCMonth():s.getMonth(),c=o?s.getUTCDate():s.getDate(),f=o?s.getUTCFullYear():s.getFullYear();return a&&(c=c.toString()+function(e){if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(c)),e[n?"monthsShort":"months"][l]+(r?" ":" "+c+u)+(i?"":f)},today:function(){return e.toText(e.current.getTime(),!0)},getAge:function(e,t,n){var r=new Date,i=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=i-n;return o<e-1&&s--,e-1==o&&a<t&&s--,s},toUTC:function(e){return e.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),e.setUTCHours(e.getHours()),e.setUTCMinutes(e.getMinutes()),e}};return e}(),J=function(){var e;return{counter:{start:function(){e=(new Date).getTime()},end:function(t){if(!e)return null;var n=(new Date).getTime()-e;return e=!1,t?(n/=1e3,Math.round(n%60*100)/100+"sec."):n+"ms."}}}}(),Y=function(e,t){return"number"==typeof e&&(t?isNaN(e)||isFinite(e):isFinite(e))},X=function(e){if(M(e)){var t=e.trim(),n=t.replace(/[^0-9.]/g,"");return 0==t.indexOf("-")&&(n="-"+n),parseFloat(n)}return Y(e)?e:null},Z=function(e,t){var n=!1;e<0&&(n=!0),e=Math.abs(e);var r=t;return r=!isNaN(r=Math.abs(r))&&r>0?Math.pow(10,r):1,e>=1e9?(formattedNumber=(Math.round(e/1e9*r)/r).toString().replace(/\.0$/,"")+"G",n&&(formattedNumber="-"+formattedNumber)):e>=1e6?(formattedNumber=(Math.round(e/1e6*r)/r).toString().replace(/\.0$/,"")+"M",n&&(formattedNumber="-"+formattedNumber)):e>=1e3?(formattedNumber=(Math.round(e/1e3*r)/r).toString().replace(/\.0$/,"")+"K",n&&(formattedNumber="-"+formattedNumber)):formattedNumber=i(e,t,""),formattedNumber},Q=function(e){return(e?P(e.toString()):"").replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")},ee=function(e,t,n){if(!Y(e))throw new TypeError("Number.between called on non-number. The given value is "+typeof e);return n?e>=t[0]&&e<=t[1]:e>t[0]&&e<t[1]},te=function(e){return e*(180/Math.PI)},ne=function(e,t,n,r){var i=Math.abs(r-t),o=Math.abs(n-e),a=Math.sqrt(i*i+o*o),s=i/a;return Math.degrees(Math.asin(s))},re=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},ie=function(e,t,n){if(v(e))m(e,t,n);else{if(!R(e))throw new TypeError("forEach can only be used on arrays or plain objects. The object given is "+typeof value);B(e,t,n)}},oe=function(){if("undefined"!=typeof window){if(window.requestAnimationFrame)return function(e,t){return window.requestAnimationFrame.apply(window,[e,t])};var e=0,t=function(t,n){var r=(new Date).getTime(),i=Math.max(0,16-(r-e)),o=window.setTimeout(function(){t(r+i)},i);return e=r+i,o}}else t=function(e){e()};return t}(),ae=function(){return"undefined"!=typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame:clearTimeout}();return{Array:{isArray:v,forEach:m,filter:$,findIndex:w,map:g,some:y,isEmpty:C,isPopulated:S,pushUnique:x,groupBy:b,last:n},Number:{isNumber:Y,toNumber:X,formatMoney:i,formatNumber:Z,phoneFormat:Q,between:ee},String:{isString:M,isEmpty:D,trimLeft:k,trimRight:A,trim:T,format:E,capitalize:I,substr:j,includes:N,containsAny:V,splitCamel:_,digits:P,resolve:O},Math:{degrees:te,getAngle:ne,getRandomInt:re},Object:{assign:H,merge:U,isFunction:L,isObject:R,keys:F,forEach:B,copy:q,hasKeys:W,hasAnyKey:G,create:z,fromUrlParam:function(e){return JSON.parse('{"'+e.replace(/&/g,'","').replace(/=/g,'":"')+'"}',function(e,t){return""===e?t:decodeURIComponent(t)})}},Date:K,Time:J,uniqid:o,tryCatch:a,isNullorUndefined:s,isEmpty:u,isAnyOf:l,forEach:ie,requestAnimationFrame:oe,cancelAnimationFrame:ae,versionCompare:c,Cookie:{get:f,set:d,check:p},Browser:{iOS:h}}}),define("angularExtras",["require","jquery.tiny","angular","jquery.vclick","angularElementScroll","angularAnimate","angularElement","polyfills","jquery.ripple"],function(e){e(["nouislider"]);var t=e("polyfills"),n=e("angular"),r=e("jquery.tiny"),i=t.isEmpty,o=t.String.isEmpty,a=t.Number.isNumber,s=t.Number.toNumber,u=e("jquery.ripple");Number.prototype.formatMoney=function(e,n,r,i){var o=this;return t.Number.formatMoney(o,e,n,r,i)},n.module("extra",["duScroll"]).constant("date",t.Date).constant("$viewport",function(){var e={},t={},r={body:n.element(document).cssSelect("#viewport").eq(0),data:function(t,n){if(void 0==n)return e[t];e[t]=n},scrolling:!1,scrollTop:function(e){if(void 0==e)return this.body.prop("scrollTop");this.body.prop("scrollTop",e)},scrollStop:function(e){setTimeout(function(){for(var t=r.data("scrollTop");r.scrollTop()!=t;)r.scrollTop(t);e&&e()})},scrollHeight:function(){return this.body.prop("scrollHeight")},scrollTopFixed:function(e,t){var n,i=function(e){r.scrollTop()!==n&&r.scrollTop(n),e.preventDefault(),e.stopImmediatePropagation()};n=t||this.scrollTop(),this.body.off("scroll",i),e&&this.body.on("scroll",i)},setBody:function(e){r.body=e},setup:function(){r.data("scrollTop",0),r.body.on("scroll",function(){r.data("scrollTop",r.scrollTop()),n.element(document).trigger("scrolling")})},scrollSave:function(e){t.scrl=void 0!==e?e:this.body.prop("scrollTop")},scrollRestore:function(){this.data("scrollTo",t.scrl||1),t.scrl=1}};return r}()).run(["$viewport","$rootScope",function(e,t){e.setup()}]).directive("ngDropdown",["$timeout","$viewport","$document","$rootScope",function(e,r,i,o){return{restrict:"A",scope:{modelValue:"=ngModel",disabled:"=disabled",listItems:"=?ngDrpListItems",afterSelect:"=?ngDrpAfterSelect",onSelect:"=?ngDrpOnSelect",tabindex:"=?ngDrpTabindex",labelId:"=?ngDrpLabelId"},transclude:!0,template:'<span tabindex="{{tabindex || 0}}" role="button" aria-haspopup="listbox" aria-expanded="{{list_opened}}" class="{{selected_class}}" ng-if="!no_select && !empty_select && !disabled" ng-aria-label="label_value" hm-highlight data-sel-id="dropdown-selected">{{display_value}}</span><span tabindex="{{tabindex || 0}}" role="button" aria-haspopup="listbox" aria-expanded="{{list_opened}}" class="{{placeholder_class}}" ng-if="(no_select || empty_select) && placeholder && !disabled"  hm-highlight>{{placeholder}}</span><span tabindex="0" role="text" class="{{selected_class}}" ng-if="disabled" data-sel-id="dropdown-selected">{{display_value || placeholder}}</span><ul aria-labelledby="{{list_label}}" aria-activedescendant="{{activedescendant}}" role="listbox" tabindex="0" class="ng-animate-enabled basic-trans ng-hide" ng-class="[list_class,{ fast: !$root.isAndroid, enter : !$root.isAndroid }]" ng-show="list_opened" ng-keydown="ListOnKey($event)" hm-tap="preventEv($event)" hm-options="{ ripple: false, delay : 0 }"><li ng-attr-id="{{optionid+\'-\'+$index}}" ng-attr-aria-selected="{{value == display_value || false}}" role="option" ng-class="[item_class,{ active : value == display_value  }]" ng-repeat="value in displayList track by $index" hm-tap="select($event,value,$index)" hm-options="{ ripple: false, delay : 0 }" ng-focus-when="(!(no_select || empty_select) && display_value == value) || ((no_select || empty_select) && $index == 0)" ng-bind-html="value" ng-aria-label="labelList[$index]" data-sel-id="dropdown-item"></li></ul>',compile:function(a,s){return{pre:function(e,t,n){var r=e.$eval(n.ngDropdown)||{};e.list_opened=!1,e.preventEv=function(e){e.stopPropagation()},e.displayList=[];var i=void 0!==r.arrowClass?r.arrowClass:"ng-dropdown-arrow bf-icon-down-open";i&&t.append('<span class="'+i+'" tabindex="-1" aria-hidden="true"></span>')},post:function(a,s,u){var l=a.$eval(u.ngDropdown)||{},c=[],f=[],d=null,p={ENTER:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},h=0;a.activedescendant=null,a.optionid=t.uniqid("option-"),a.$watch("listItems",function(e){f=e||[],c=[],a.displayList=[],a.labelList=[];for(var r in f)n.isArray(f[r])?(c[r]=f[r][1],n.isArray(f[r][0])?(a.displayList[r]=f[r][0][0],a.labelList[r]=f[r][0][1]):(a.displayList[r]=f[r][0],a.labelList[r]=f[r][0])):(c[r]=f[r],a.displayList[r]=f[r],a.labelList[r]=f[r]);t.Array.forEach(a.displayList,function(e,t){if(a.display_value==e)return a.activedescendant=a.optionid+"-"+t.toString(),h=t,a.label_value=(d?d+". ":"")+a.labelList[t],!1}),a.activedescendant||(a.activedescendant=a.optionid+"-0",h=0)},!0),a.$watch(u.ngDropdown,function(e){if(e=a.$eval(u.ngDropdown)||{},!a.listItems&&e.list){f=e.list||[],c=[],a.displayList=[],a.labelList=[];for(var t in f)n.isArray(f[t])?(c[t]=f[t][1],a.displayList[t]=f[t][0],n.isArray(f[t][0])?(a.displayList[t]=f[t][0][0],a.labelList[t]=f[t][0][1]):(a.displayList[t]=f[t][0],a.labelList[t]=f[t][0])):(c[t]=f[t],a.displayList[t]=f[t],a.labelList[t]=f[t])}if(a.list_label=a.labelId||e["list-label-id"]||"",a.list_class=e.listClass||"ng-dropdown-list",a.item_class=e.itemClass||"ng-dropdown-item",a.placeholder_class=e.placeholderClass||"ng-dropdown-placeholder",a.selected_class=e.selectedClass||"ng-dropdown-selected",a.no_select=void 0!==e.noSelect&&e.noSelect,a.placeholder=void 0!==e.placeholder?e.placeholder:"Choose",a.change_list_position=e.changeListPosition,null==d)if(e.listTitle)d=e.listTitle;else if(a.list_label){var r=document.querySelector("#"+a.list_label);r&&(d=r.textContent)}},!0),a.$watch("modelValue",function(e){var t,r,i=c.indexOf(e);i>-1?(t=a.displayList[i],r=a.labelList[i],a.label_value=(d?d+". ":"")+r,n.equals(a.display_value,t)||(a.display_value=t),a.empty_select=!1):a.empty_select=!0,a.list_opened=!1,a.afterSelect&&a.afterSelect(t,i,e);var o=a.$eval(u.ngDropdown)||{};o.afterSelect&&o.afterSelect(t,i,e)});var v;a.$watch("list_opened",function(n){e.cancel(v);var o=s.find("ul"),u=l.offsetParent?s.find("ul").parents(l.offsetParent).prop("scrollHeight"):r.body.prop("scrollHeight"),c=l.offsetParent?s.find("ul").parents(l.offsetParent).prop("clientWidth"):r.body.prop("clientWidth");v=e(function(){if(n){if(a.change_list_position){var e=0,r=t.Number.toNumber(c)-(s.offset().left+s.prop("clientWidth")),f=o.prop("clientWidth");s.prop("clientWidth")+r<f&&(e=s.prop("clientWidth")+r-f-15),o.css({left:e+"px"})}var d=o.offset(!!l.offsetParent&&s.find("ul").parents(l.offsetParent)).top+o.prop("offsetHeight");u<d?o.addClass("upwards"):o.removeClass("upwards"),i.one("vclick",$),i.one("click",$)}else o.removeClass("upwards"),i.off("vclick",$),i.off("click",$)},50)});var m=!1;a.select=function(t,n,r){m=!0;var i=c[r],l=a.labelList[r];a.display_value=n,a.label_value=(d?d+". ":"")+l,a.modelValue=i,s[0].querySelector('[aria-haspopup="listbox"]').focus(),setTimeout(function(){s[0].querySelector('[aria-haspopup="listbox"]').focus()}),e(function(){a.onSelect&&a.onSelect(n,r,i);var e=a.$eval(u.ngDropdown)||{};e.onSelect&&e.onSelect(n,r,i),a.list_opened=!1},o.isAndroid?1:100),h=r,a.activedescendant=a.optionid+"-"+h,t&&t.stopPropagation(),setTimeout(function(){m=!1},50)},a.indexSelect=function(e){a.display_value=a.displayList[e],a.label_value=(d?d+". ":"")+a.labelList[e],a.modelValue=c[e]};var $=function(e){a.$applyAsync(function(){a.list_opened=!1})};s.on("vclick",function(t){a.disabled||(t.stopPropagation(),e(function(){if(!m){var t=a.$eval(u.ngDropdown)||{};if(!1===t.enabled)return!1;a.list_opened||t.noBubble||i.trigger("vclick"),e(function(){a.list_opened=!a.list_opened},r.data("android")?200:0)}}))}),a.ListOnKey=function(e){var n=e.keyCode;switch(n){case p.ENTER:var r=h;t.Number.isNumber(r)&&a.select(null,a.displayList[r],r);break;case p.UP:case p.DOWN:var r=h;h=n==p.DOWN?r<a.displayList.length-1?r+1:0:r>0?r-1:a.displayList.length-1,a.activedescendant=a.optionid+"-"+h,e.preventDefault()}};var g=function(){i.off("vclick",$),s.off("vclick"),s.off("keydown")};a.$on("$destroy",g),s.one("$destroy",g)}}}}}]).directive("ngSlider",["$document",function(n){return{restrict:"AE",require:"ngModel",link:function(n,r,i,o){var u,u=r[0],l=!1,c=i.ngModel;e(["nouislider"],function(e){var f=n.$watch(i.ngSlider,function(r){var i=t.Object.assign({start:0,step:1,orientation:"horizontal",connect:"lower",range:{min:0,max:100}},r||{});i.range.min||(i.range.min=0),u.noUiSlider&&u.noUiSlider.destroy(),e.create(u,i),u.noUiSlider.off("slide"),u.noUiSlider.on("slide",function(){l=!0}),u.noUiSlider.off("change"),u.noUiSlider.on("change",function(e){l=!1,n.$applyAsync(function(){o.$setViewValue(s(e[0])),o.$render()})}),u.noUiSlider.set(n.$eval(c))},!0),d=n.$watch(i.ngModel,function(e){l||u.noUiSlider&&u.noUiSlider.set(a(e)?e:0)});r.one("$destroy",function(){f(),d(),u.noUiSlider&&u.noUiSlider.destroy()})})}}}]).directive("ngHtmlContent",["$compile","$injector","$timeout","$parse",function(e,t,n,r){return{restrict:"A",link:function(i,o,a){i.$watch(a.ngHtmlContent,function(s,u){var l;t.has("$sanitize")?t.invoke(["$sanitize",function(e){var t=i.$eval(a.ngHtmlSanitize);l=t?e(s):s}]):l=s;var c=r(a.ngHtmlContentBefore).bind(null,i),f=r(a.ngHtmlContentAfter).bind(null,i);c({$element:o[0]}),o.html(l),e(o.contents())(i),n(function(){f({$element:o[0]})})})}}}]).directive("ngSrcSafe",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngSrcSafe,function(e){t[0].setAttribute("src",e)})}}}).directive("ngNoAutoFocus",["$timeout",function(e){return{restrict:"A",compile:function(t,n){return{pre:function(e,t,n){t.attr("readonly","true")},post:function(t,n,r){e(function(){n.removeAttr("readonly")},500)}}}}}]).directive("ngFocusWhen",["$timeout",function(e){return{restrict:"A",link:function(e,t,n){var r=e.$eval(n.ngFocusClick);e.$watch(n.ngFocusWhen,function(e){e&&(r&&t[0].click(),t[0].focus(),setTimeout(function(){r&&t[0].click(),t[0].focus()}))})}}}]).directive("ngFocusToggle",function(){return{restrict:"A",scope:{flag:"=ngFocusToggle"},link:function(e,t,n){function r(){e.$applyAsync(function(){e.flag=!0})}function i(){e.$applyAsync(function(){e.flag=!1})}t.on("focus",r),t.on("blur",i),e.$on("$destroy",function(){t.off("focus",r),t.off("blur",i)})}}}).directive("ngTabNext",["$timeout",function(e){return{restrict:"A",link:function(e,r,i){var o=function(o){if(8==o.keyCode)return!1;var a=t.String.trim(r.val()).length,u=e.$eval(i.ngTabNext),l=u.length||s(r.attr("maxlength")),c=l<=a,f=n.element().cssSelect(u.selector);c&&f.focus().caret(0)};r.on("keyup",o),e.$on("$destroy",function(){r.off("keyup",o)})}}}]).directive("ngTabPrevious",["$timeout",function(e){return{restrict:"A",link:function(e,r,i){var o=function(o){var a=e.$eval(i.ngTabPrevious),s=n.element().cssSelect(a.selector),u=t.String.trim(r.val()).length;8==o.keyCode&&(0==u||r.caret()<=0)&&s.focus().caret(s.val().length)},a=function(o){var a=e.$eval(i.ngTabPrevious),s=n.element().cssSelect(a.selector),u=t.String.trim(r.val()).length;8==o.keyCode&&0==u&&0==u&&s.focus().caret(s.val().length)};r.on("keyup",o).on("keydown",a),e.$on("$destroy",function(){r.off("keyup",o).off("keydown",a)})}}}]).directive("ngTabOnEnter",["$timeout",function(e){return{restrict:"A",link:function(e,t,r){var i=function(i){if(i.preventDefault(),13===i.keyCode){var o=e.$eval(r.ngTabOnEnter),a=n.element().cssSelect(o.selector);return t[0].blur(),setTimeout(function(){a&&a.focus()},700),!1}};t.on("keyup",i),e.$on("$destroy",function(){t.off("keyup",i)})}}}]).directive("ngTogglePassword",["$animate","$viewport","$compile","$document","$window","$timeout",function(e,t,r,i,o,a){return{restrict:"A",scope:{onShow:"=?ngShow",onHide:"=?ngHide"},link:function(e,t,r){function i(e){a(function(){e.target&&e.target.value?c():s&&s.css("visibility","hidden")})}t.append("<span class='ng-toggle-btn-pass semi-bold-font' style='visibility:hidden;'>show</span>"),t.css({position:"relative"});var s=t.find(".ng-toggle-btn-pass"),u=t.find("input[type='password']");s&&s.css("visibility","hidden"),u&&u.css({"padding-right":"55px"});var l=function(){u&&"password"==u.attr("type")?(u.attr("type","text"),s.prop("innerHTML","hide")):u&&(u.attr("type","password"),s.prop("innerHTML","show"))},c=function(){a(function(){if(s&&u){var e=u.outerHeight(),t=u.position().top,n=u.outerWidth()+u.position().left-55;s.css({position:"absolute","font-size":"13px",right:"auto",display:"block",width:"55px",height:e+"px","line-height":e-2+"px",top:t+"px",left:n+"px",cursor:"pointer","text-align":"center"}),u&&!u.val()?s&&s.css("visibility","hidden"):s.css("visibility","")}})};c(),n.element(o).on("resize",c),u&&u[0]&&u[0].addEventListener("input",i,!0),e.$watch("onShow",function(e){e&&c()}),e.$watch("onHide",function(e){e||c()}),s.on("vclick",function(e){l()});var f=function(){n.element(o).off("resize",c),s&&(s.off("vclick"),s.remove()),u&&u[0]&&u[0].removeEventListener("input",i),t.off("vclick"),s=void 0};e.$on("$destroy",f),t.one("$destroy",f)}}}]).directive("ngToolTip",["$animate","$viewport","$compile","$document","$window","$timeout",function(e,t,r,i,o,l){return{restrict:"A",scope:{open_flag:"=?ngToolTipToggle",tipcontent:"=?ngToolTip"},link:function(c,f,d){var p=document.createElement("div"),h=n.element(p),v=n.merge({ripple:!0,width:400,offsetParent:t.body,offset:{top:0,left:0},class:"ng-tooltip",closeClass:"close-bt bf-icon-cross",preventDef:!1},c.$eval(d.ngToolTipOptions)),m=v.offsetParent,$="string"==typeof m?n.element(document).cssSelect(m):m,g=v.useparent?f.parent():$;h.addClass(v.class).addClass("ng-animate-enabled").append('<div class="tail"></div><div tooltip-content-holder></div><div class="'+v.closeClass+'"></div>');var y=h.children("div").eq(2);y.css({"touch-action":"manipulation","-webkit-user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),y.attr("role","button"),y.attr("aria-label","Close Popup"),y.attr("tabindex","0"),f.css({"touch-action":"manipulation","-webkit-user-select":"none","-webkit-user-drag":"none","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)"}),"static"==f.getStyle("position")&&f.css("position","relative");var b=function(e){e.preventDefault(),e.stopPropagation()},w=function(){c.$applyAsync(function(){h&&e.leave(h),v.onClose&&v.onClose(),C=!1,c.open_flag=!1})},x=function(){if($.css("overflow-y","scroll"),h){h.css({width:v.width+"px"});var e,r=Math.min(f.offset(parent).left+v.offset.left,$.prop("clientWidth")-h.prop("offsetWidth")-15);r<15?(e=v.width+(r-15),r=15):e=v.width;var i=f[0].getBoundingClientRect(),o=i.top+$.prop("scrollTop");if(v.useparent){var u=f[0].parentNode;o=u.offsetHeight+v.offset.top,r=u.offsetWidth+v.offset.left}else{if($.is("body")&&!v.useparent){var l=f[0].offsetParent;for(o=i.top;l;)o+=n.element(l).prop("scrollTop"),l=l.offsetParent}var c=s($.css("border-top-width"));a(c)||(c=0),o-=c;var d=s(t.body.css("padding-top"));a(d)||(d=0),o-=d}var p=Math.min(o+f.prop("offsetHeight")+v.offset.top,$.prop("scrollHeight")-15);!v.useparent&&$.is("body")&&p<f.offset().top?p=Math.min(f.offset().top+f.prop("offsetHeight")+v.offset.top,$.prop("scrollHeight")-15):p<o&&(p=Math.min(o+f.prop("offsetHeight")+v.offset.top,$.prop("scrollHeight")-15)),h.css({width:e+"px",left:r+"px",top:p+"px"}),$.css("overflow-y","")}},C=!1;t.data("android")&&v.ripple&&u.add(f,!0),f.on("vclick",function(t){var a=c.$eval(d.ngToolTipEnabled);void 0==a&&(a=!0),a&&(t.stopPropagation(),v.preventDef&&t.preventDefault(),l(function(){if(C)return C=!1,w(),!1;C=!0,i.trigger("vclick"),c.open_flag=!0;var t=document.createElement("div");t.setAttribute("tooltip-content",""),t.setAttribute("class","content"),n.element(t).prop("innerHTML",c.tipcontent);var a=r(n.element(t))(c.$parent);h.cssSelect("[tooltip-content-holder]").after(a),h.cssSelect("[tooltip-content-holder]").remove(),n.forEach(h.find("input"),function(e,t,n){n.data("disabled",n.attr("disabled")),n.attr("disabled","disabled")}),h.css({width:"0px",left:"-999px",top:"-999px"}),e.on("leave",h,function(e,t){h&&(h.off("vclick"),h.find(".close-bt").off("vclick")),i.off("vclick",w),n.element(o).off("resize",w),h.cssSelect("[tooltip-content]").after("<div tooltip-content-holder></div>"),h.cssSelect("[tooltip-content]").remove()}),e.on("enter",h,function(e,t){if(h&&"start"==t&&(n.element(o).one("resize",w),setTimeout(function(){var e=$.prop("scrollHeight");if(x(),$.prop("scrollHeight")>e&&h.css({top:h.getStyle("top",!0)-($.prop("scrollHeight")-e+15)+"px"}),h&&h[0]){var t=h[0].getBoundingClientRect(),n=t.left+t.width,r=h.getStyle("left",!0);n>window.innerWidth&&(r-=n-window.innerWidth+15),null!=r&&h.css({left:r+"px"})}}),h.attr("role","dialog"),h.attr("tabindex","0"),null!==v.role&&h&&h[0])){var r=h[0].querySelector("[tooltip-content]");r&&(r.setAttribute("role",v.role||"tooltip"),r.setAttribute("ng-speak","'header'"),r.setAttribute("tabindex","0"))}}),e.enter(h,g[0]||null,g[0]&&g[0].lastChild||null).then(function(){h&&(n.forEach(h.find("input"),function(e,t,n){n.data("disabled")?n.attr("disabled",n.data("disabled")):n.removeAttr("disabled")}),h.on("vclick",b),y.one("vclick",function(e){w(),b(e)}),i.one("vclick",w))})}))});var S=function(){h&&(h.off("vclick"),y.off("vclick",w),w(),e.off(h),h.remove()),i.off("vclick",w),n.element(o).off("resize",w),f.off("vclick"),u.remove(f),h=void 0,p=void 0,y=void 0};c.$on("$destroy",S),f.one("$destroy",S)}}}]).directive("ngAutocomplete",["$animate","$http","$q","$parse","$viewport","$document","$timeout","$injector",function(e,r,i,o,a,s,u,l){return{restrict:"A",scope:{key:"=ngKey",selectHandler:"=?ngAutoselect",progress:"=?ngAutoprogress",responseHandler:"=?ngAutoresponse",cancelHandler:"=?ngAutocanceled",autoDisplay:"=?ngAutodisplay",responseData:"=?ngAutoData",activedescendant:"=?ngAcActive",focusHandler:"=?ngAcHighlight",blurOnLimit:"=?ngAcBlurOnLimit",stopCall:"=?ngAcStopCall"},transclude:!0,template:'<ul tabindex="0" role="listbox" ng-attr-id="{{ listid || \'\' }}" class="ng-autocomplete-list ng-animate-enabled basic-trans enter fast ng-hide" ng-show="hasResult" ng-focus="GoToFirst(0)" ng-keydown="AcOnKey($event)" aria-labelledby="{{list_label}}" ng-aria-activedescendant="activedescendant"><li role="option" tabindex="-1" ng-attr-id="{{acid+\'-\'+$index}}" class="ng-autocomplete-item" data-ng-repeat="value in ul track by $index" hm-tap="select($event,$index)" ng-bind-html="value" aria-selected="false" ng-class="{\'selected\' : activedescendant == acid+\'-\'+$index}" ng-focus="GoToFirst($index)"></li></ul>',link:function(e,o,a){var c,f,d,p;c=n.extend({minlength:1,url:!1,list:"list",method:"GET",keyName:"key"},e.$eval(a.ngAutocomplete)),e.listid=c["list-id"]||"",e.list_label=c["list-label"]||"",e.select=function(t,n){e.key=e.list[0][n],f=e.key;var r=[t];for(var i in e.list)r.push(e.list[i][n]);e.selectHandler&&e.selectHandler.apply(this,r),d=!0,setTimeout(function(){d=!1,s.off("vclick",p)},100),e.hasResult=!1},f=e.key,p=function(t){e.$applyAsync(function(){e.hasResult=!1,e.$emit("$autocomplete:listdisplay",!1),e.cancelHandler&&!d&&e.cancelHandler()})};var h,v;e.$watch("key",function(t){if(e.stopCall)return e.hasResult=!1,void u.cancel(v);u.cancel(v),v=u(function(){if(e.progress=!1,e.autoDisplay=!1,!t||t.length<c.minlength||t==f)return h&&h.resolve(!0),void((!t||t.length<c.minlength)&&(e.hasResult=!1));f=t,h?h.resolve(!0):h=i.defer(),h=i.defer();var n={};n[c.keyName]=t;var o={url:c.url,method:c.method,timeout:h.promise,id:"auto-complete-list",events:!1,ignore_connection:!0,anonymous:!0,required:!1};"POST"==c.method?o.data=n:o.params=n,e.progress=!0;var a;l.has("$api")&&(r=l.get("$api").http,a=!0),(e.responseData?e.responseData(o):c.url?r(o):i.resolve({})).then(function(t){var n,r=a?t:t.data,i=e.responseHandler?e.responseHandler(r):r;e.ul=[],n=c.list.indexOf("|")>-1?c.list.split("|"):[c.list],e.ul=i[n[0]]||[],e.list=function(){for(var e=[],t=0,r=n.length;t<r;t++)e.push(i[n[t]]);return e}(),e.activedescendant=null,g=0,e.ul.length>0?e.hasResult=!0:e.hasResult=!1,e.progress=!1,e.$emit("$autocomplete:listdisplay",e.hasResult)},function(t){e.hasResult=!1,t.xhrStatus&&"abort"==t.xhrStatus||(e.progress=!1),e.$emit("$autocomplete:listdisplay",!1),e.ul=[]})},150)});var m=200;e.$watch("autoDisplay",function(t){t?e.ul&&e.ul.length>0&&u(function(){e.hasResult=!0,m=200}):m=0});var $={ENTER:13,LEFT:37,UP:38,RIGHT:39,DOWN:40},g=0;e.GoToFirst=function(t){t&&(g=t),e.activedescendant=e.acid+"-"+g,e.focusHandler&&e.focusHandler(null,e.ul[g])},e.activedescendant=null,e.acid=t.uniqid("ac-"),e.AcOnKey=function(n){var r=n.keyCode;switch(r){case $.ENTER:var i=g;t.Number.isNumber(i)&&e.select(null,i);break;case $.UP:case $.DOWN:var i=g;if(r==$.DOWN){if(i<e.ul.length-1)g=i+1;else if(g=0,e.blurOnLimit)return e.blurOnLimit(n),void(e.activedescendant=null)}else if(i>0)g=i-1;else if(g=e.ul.length-1,e.blurOnLimit)return e.blurOnLimit(n),void(e.activedescendant=null);e.activedescendant=e.acid+"-"+g,e.focusHandler&&e.focusHandler(null,e.ul[g]),n.preventDefault()}},e.$watch("hasResult",function(e){setTimeout(function(){e&&(s.off("vclick",p),s.one("vclick",p))},m)}),e.$on("$destroy",function(){h&&h.resolve(!0),s.off("vclick",p),e.progress=!1})}}}]).directive("ngScrollTo",["$viewport","$parse","$timeout","$rootScope",function(e,t,r,i){function o(e){return!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}return{restrict:"A",link:function(r,a,u){var l=u.ngScrollTo,c=u.ngScrollBefore,f=u.ngScrollAfter,d=r.$watch(l,function(e){e&&setTimeout(function(){o(a[0])||a.triggerHandler("scrollToMeAnim")})}),p=function(){var t=n.merge({offset:0,parent:e.body},r.$eval(u.ngScrollOptions)),o="string"==typeof t.parent?"document"==t.parent?n.element().cssSelect("body"):n.element(document).cssSelect(t.parent):t.parent;if(t.offset+=s(o.css("border-top-width")),a[0].getBoundingClientRect().top<0&&t.offset==s(o.css("border-top-width"))&&i.isWeb){var l=document.querySelector("#viewport>header");l&&(t.offset=l.offsetHeight)}return t};a.on("scrollToMeAnim",function(){var i=p(),o="string"==typeof i.parent?"document"==i.parent?n.element(document):n.element(document).cssSelect(i.parent):i.parent;f&&(f=t(f).bind(null,r)),c&&r.$eval(c),void 0!==i.speed&&0==i.speed?(e.body.css("overflow-y","hidden"),o.duScrollToElement(a,i.offset,0).then(function(){var t=o.prop("scrollTop");r.$applyAsync(function(){f&&f({scrollY:t})}),e.body.css("overflow-y","")})):o.duScrollToElementAnimated(a,i.offset,void 0!==i.speed&&i.speed).then(function(){var e=o.prop("scrollTop");r.$applyAsync(function(){f&&f({scrollY:e})}),o.duScrollToElement(a,i.offset,0)})}),a.on("scrollToMe",function(){var e=p(),i=u.ngScrollBefore,o="string"==typeof e.parent?n.element(document).cssSelect(e.parent):e.parent;i&&r.$eval(i),f&&(f=t(f).bind(null,r)),o.duScrollToElement(a,e.offset,0).then(function(){var t=o.prop("scrollTop");r.$applyAsync(function(){f&&f({scrollY:t})}),o.duScrollToElement(a,e.offset,0)})});var h=function(){a.off("scrollToMeAnim"),a.off("scrollToMe"),d()};r.$on("$destroy",h),a.on("$destroy",h)}}}]).directive("ngScrollControl",["$animate",function(e){return function(t,r,i){e.on("enter",r,function(e,t){n.equals(r,e)&&"close"==t&&e.prev().triggerHandler("scrollToMe")});var o=function(){e.off(r)};t.$on("$destroy",o),r.on("$destroy",o)}}]).directive("ngScrollInView",["$parse","$timeout",function(e,t){function n(e,t){var n=e.getBoundingClientRect().top+(t?t.top||0:0),r=e.getBoundingClientRect().bottom+(t?t.bottom||0:0),i=e.getBoundingClientRect().height,o=window.innerHeight,a=Math.round(.45*o),s=Math.round(.55*o),u=i>Math.round(.45*o),l=n>=0&&r<=o,c=u&&(r>=s&&r<=o||n>=0&&n<=a||n<=0&&r>=o);return i>0&&(l||c)}return{restrict:"A",scope:{inView:"&ngScrollInView",offView:"&ngScrollOffView",offset:"<ngScrollOffset"},link:function(i,o,a){var s=e(i.inView),u=e(i.offView),l=function(){var e=i.offset||{},r=n(o[0],e);t(r?function(){s()}:function(){u()})},c=function(){r(window).off("scrollend",l)};o.one("$destroy",c),i.$on("$destroy",c),l(),r(window).on("scrollend",l)}}}]).directive("ngMaxChar",function(){return{require:"ngModel",link:function(e,t,n,r){function i(e){if(e.length>o){var t=e.substring(0,o);return r.$setViewValue(t),r.$render(),t}return e}var o=Number(n.ngMaxChar);r.$parsers.push(i),e.$on("$destroy",function(){r.$parsers.indexOf(i)>-1&&r.$parsers.splice(i,1)})}}}).directive("ngMin",function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.$watch(n.ngMin,function(){r.$setViewValue(r.$viewValue)});var o=function(t){var o=e.$eval(n.ngMin)||0;return!i(t)&&t<o?void r.$setValidity("ngMin",!1):(r.$setValidity("ngMin",!0),t)};r.$parsers.push(o),r.$formatters.push(o),e.$on("$destroy",function(){var e=r.$parsers.indexOf(o),t=r.$formatters.indexOf(o);e>-1&&r.$parsers.splice(o,1),t>-1&&r.$formatters.splice(o,1)})}}}).directive("ngMax",function(){return{restrict:"A",require:"ngModel",link:function(e,t,n,r){e.$watch(n.ngMax,function(){r.$setViewValue(r.$viewValue)});var o=function(t){var o=e.$eval(n.ngMax)||1/0;return!i(t)&&t>o?void r.$setValidity("ngMax",!1):(r.$setValidity("ngMax",!0),t)};r.$parsers.push(o),r.$formatters.push(o),e.$on("$destroy",function(){var e=r.$parsers.indexOf(o),t=r.$formatters.indexOf(o);e>-1&&r.$parsers.splice(o,1),t>-1&&r.$formatters.splice(o,1)})}}}).directive("ngModelSum",function(){return{require:"?ngModelSumOptions",scope:{total:"=ngModelSum",options:"=ngModelSumOptions"},controller:["$scope",function(e){var t=[],r={min:-1/0,max:1/0},i=function(e){var n,i,o=0,a=r.max;for(var s in t)o+=isNaN(t[s].ctrl.$modelValue)?0:t[s].ctrl.$modelValue;if(o>a){o=a,i=0;for(var s in t)t[s].ctrl!=e?i+=t[s].ctrl.$modelValue:n=t[s];n&&(n.focused?(n.ctrl.$setViewValue(o-i),n.ctrl.$render(),n.el[0].blur(),setTimeout(function(){n.el[0].focus()})):(n.ctrl.$setViewValue(o-i),n.ctrl.$commitViewValue()))}return o};e.$watch("options",function(e){n.extend(r,e)},!0),this.register=function(n,r,o,a){t.push({ctrl:r,el:n,focused:!1});var s=t[t.length-1],u=function(){s.focused=!0},l=function(){s.focused=!1},c=function(){n.off("focus",u).off("blur",l),delete t[t.indexOf(s)]};n.on("focus",u).on("blur",l),n.one("$destroy",c),a.$watch(o,function(){s.focused&&(e.total=i(r))}),e.$on("$destroy",c),a.$on("$destroy",c)},e.$on("$destroy",function(){r={},t=[]})}]}}).directive("ngSum",function(){return{require:["^ngModelSum","ngModel"],link:function(e,t,n,r){var i=r[0],o=r[1];i.register(t,o,n.ngModel,e)}}}).directive("onlyNumbers",function(){return{require:"ngModel",restrict:"A",link:function(e,t,n,r){var i=n.onlyNumbers;i="string"==i;var a=function(e){if(void 0==e)return"";var t=e.toString().trim();if(o(t))return"";var n=t.replace(/[^0-9]/g,"");return n!=t&&(r.$setViewValue(n),r.$render()),i?n:parseFloat(n)};r.$parsers.push(a),e.$on("$destroy",function(){r.$parsers.indexOf(a)>-1&&r.$parsers.splice(a,1)})}}}).directive("modelMatch",[function(){return{restrict:"A",require:"ngModel",link:function(e,t,r,i){var o=function(){var t=e.$eval(r.ngModel),i=e.$eval(r.modelMatch);return n.equals(t,i)};e.$watch(o,function(e){i.$setValidity("match",e)})}}}]).directive("passMask",["$timeout",function(e){return{require:"ngModel",restrict:"A",link:function(t,r,i,o){var a,s,u,l=null,c=t.$eval(i.ngModel),f=t.$eval(i.passMask)||"•",d=function(e){e.preventDefault()};r.on("paste",d);var p=function(t){if(void 0==t)return"";if(s)return c;c=void 0!==c?c.toString():"",l&&(t.length,l.length),l=t;var i=t.toString(),d=r.caret(),p=i.substring(d-1,d),h=i.substring(0,d-1),v=i.substring(d),m=c.substring(0,h.length),$=c.substring(c.length-v.length),g=p;g==f&&(g=""),c=m+g+$;var y=h.replace(/(.)/g,f)+p+v.replace(/(.)/g,f);return u=function(){n.element(document.activeElement).is(r)&&r.caret(d),o.$setViewValue(y),o.$render(),n.element(document.activeElement).is(r)&&r.caret(d)},a&&(e.cancel(a),u()),a=e(function(){s=!0,y=y.replace(/(.)/g,f),u()},1e3),a.then(function(){s=!1}),c},h=function(){r.off("paste",d);var e=o.$parsers.indexOf(p);e>-1&&o.$parsers.splice(e,1)};o.$parsers.push(p),t.$on("$destroy",h),r.one("$destroy",h)}}}]).directive("customOnChange",function(){return{restrict:"A",link:function(e,t,n){var r=e.$eval(n.customOnChange);t.on("change",r),e.$on("$destroy",function(){t.unbind("change",r)}),t.one("$destroy",function(){t.off("change",r)})}}}).directive("ngComposed",["$parse",function(e){return{require:"ngModel",restrict:"A",link:function(t,n,r){t.$watch(r.ngComposed,function(n){e(r.ngModel).assign(t,n.join(""))})}}}]).directive("fallbackSrc",[function(){return{restrict:"A",link:function(e,t,n){t.on("error",function(){var r=e.$eval(n.fallbackSrc);t.attr("src",r),t.off("error")}),e.$on("$destroy",function(){t.off("error")})}}}]).directive("ngError",["$parse",function(e){return{restrict:"A",link:function(t,n,r){n.on("error",function(i){var o=e(r.ngError).bind(null,t);t.$applyAsync(function(){o({$event:i,$element:n})})})}}}]).directive("unfocusPlaceholder",[function(){return{restrict:"A",link:function(e,t,n){var r,i=function(){(r=t.attr("placeholder"))&&t.prop("placeholder","")},o=function(){t.prop("placeholder",r||"")};t.on("focus",i),t.on("blur",o),e.$on("$destroy",function(){t.off("focus",i),t.off("blur",o)})}}}]).directive("windowScroll",[function(){return{restrict:"A",link:function(e,t,r){var i=t.scrollEnd&&!t.data("hasScrollEnd")?t.scrollEnd():null,o=t.data("hasScrollEnd")?"scrollend":"scrollstop";t.on("scrollstart",function(){n.element(window).trigger("scrollstart")}),t.on(o,function(){n.element(window).trigger(o)}),t.on("$destroy",function(){t.off("scrollstart"),t.off(o);try{i&&(i.destroy(),i=null)}catch(e){}}),e.$on("$destroy",function(){t.off("scrollstart"),t.off(o);try{i&&(i.destroy(),i=null)}catch(e){}})}}}]).directive("ngObserve",["$parse",function(e){return{restrict:"A",priority:1e3,link:function(t,n,r){t.$watch(r.ngObserve,function(n){e(r.ngObserveDo).bind(null,t)({$value:n})})}}}]).directive("ngObserveAttr",["$parse",function(e){return{restrict:"A",priority:999,link:function(n,r,o){var a=o.ngObserveAttr,s=t.String.trim;t.String.isString(a)&&!i(a)&&(a=a.split(","),t.Array.isArray(a)&&n.$watch(function(){var e=!0;return t.Array.forEach(a,function(t){if(!n.$eval(o[s(t)]))return e=!1,!1}),e},function(t){e(o.ngObserveDo).bind(null,n)({$value:t})},!0))}}}]).directive("forceBlur",["$timeout",function(e){return{restrict:"A",link:function(t,n,r){e(function(){n.val().length>0&&n.triggerHandler("blur")})}}}]).directive("dateFieldCorrect",function(){return{require:"ngModel",restrict:"A",link:function(e,t,n,r){var i=function(e){if(void 0==e)return"";var t=e.toString().trim();if(o(t))return"";var n=t.replace(/[^0-9]/g,"");return 1==n.length&&parseFloat(n)>1&&(n="0"+n,r.$setViewValue(n),r.$render()),n};r.$parsers.push(i),e.$on("$destroy",function(){r.$parsers.indexOf(i)>-1&&r.$parsers.splice(i,1)})}}}).directive("ngHidden",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngHidden,function(e){e?t.attr("hidden","hidden"):t.removeAttr("hidden")})}}}).directive("ngFormOnChange",["$parse",function(e){return{require:"form",link:function(t,n,r){var i=e(r.formOnChange);n.on("change",function(){i(t)})}}}]).directive("ngGetElement",["$parse",function(e){return{restrict:"A",scope:!1,priority:1,link:function(t,n,r){e(r.ngGetElement).bind(null,t)({$element:n,$scope:t})}}}]).value("duScrollCancelOnEvents",!1).filter("truncate",function(){return function(e,t,n){if(void 0!==e)return isNaN(t)&&(t=10),n=n||"...",e.length<=t||e.length-n.length<=t?e:String(e).substring(0,t-n.length)+n}}).filter("capitalize",function(){return function(e){return t.String.capitalize(e)}}).directive("ngBindValue",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngBindValue,function(e){t.attr("value",e)})}}}).directive("ngScroll",["$parse",function(e){return{restrict:"A",link:function(t,n,r){n.on("scroll",function(){e(r.ngScroll).bind(null,t)({$event:n[0].scrollTop})})}}}]).directive("ngAriaHidden",function(){return{restrict:"A",link:function(e,t,n){var r=t.attr("tabindex"),i=e.$eval(n.ngAriaHidden);void 0===i||void 0===i?(t.attr("tabindex","-1"),t.attr("aria-hidden","true")):e.$watch(n.ngAriaHidden,function(e){e?(t.attr("tabindex","-1"),t.attr("aria-hidden","true")):(r?t.attr("tabindex",r):t.removeAttr("tabindex"),t.attr("aria-hidden","false"))})}}}).directive("ngAriaLabelledby",function(){return{restrict:"A",priority:100,link:function(e,n,i){function o(e){if("ngAriaHideText"in i)for(var t=n[0],o=0,a=t.childNodes.length;o<a;o++){var s=t.childNodes[o];if(3==s.nodeType){var u=document.createElement(i.ngAriaHideText||"p");r(u).addClass("inline"),s.after(u),u.appendChild(s),u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1")}else 1==s.nodeType&&(s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex","-1"))}}function a(){for(var e=n[0],t=0,i=e.childNodes.length;t<i;t++){var o=e.childNodes[t];if(3==o.nodeType){var a=document.createElement("p");r(a).addClass("inline"),o.after(a),a.appendChild(o),a.setAttribute("aria-hidden","true"),a.setAttribute("tabindex","-1")}}var s=e.querySelector(".inline");s&&(s.setAttribute("aria-label",e.innerText),s.setAttribute("tabindex","0"),s.removeAttribute("aria-hidden"))}function s(e){var r=n.attr("aria-label"),s=r?r+". ":"";if("_self"==e||"_self_split"==e)if("ngAriaTextLinks"in i)a();else{if(n.attr("aria-label",s+n[0].innerText),"_self_split"==e){for(var u=[],l=0,c=n[0].childNodes.length;l<c;l++){var f=n[0].childNodes[l],d="";1==f.nodeType?f.hasAttribute("aria-label")?(d=t.String.trim(f.getAttribute("aria-label")),f.removeAttribute("aria-label")):d=t.String.trim(f.innerText):3==f.nodeType&&(d=t.String.trim(f.wholeText)),d&&u.push(d)}n.attr("aria-label",s+u.join(". "))}else n.attr("aria-label",s+n[0].innerText);o()}else{var p=document.getElementById(e);p&&n.attr("aria-label",s+p.innerText),o()}}var u=i.ngAriaLabelledbyDelay?e.$eval(i.ngAriaLabelledbyDelay):null,l=e.$eval(i.ngAriaLabelledby);"none"!==l&&(u?setTimeout(function(){s(l)},u):s(l))}}}).directive("ngRoleAlert",["$rootScope",function(e){return{restrict:"A",link:function(n,r,i){function o(){r.attr("tabindex","0"),e.isWeb?r[0].hasAttribute("aria-live")||(r.attr("aria-live","assertive"),r.attr("aria-atomic","true")):r.attr("role","alert")}var a=n.$eval(i.ngRoleAlert);if(t.isNullorUndefined(a))o();else var s=n.$watch(i.ngRoleAlert,function(e){e&&(o(),s())})}}}]).directive("ngAriaLive",function(){function e(){return null!=t.match(/Android/i)||n&&null!=n.match(/Android/i)}var t=navigator.userAgent,n=navigator.platform?navigator.platform:"";return{restrict:"A",link:function(t,n,r){n.addClass("a11y-visually-hidden");var i=null,o=e(),a=t.$eval(r.liveType)||"assertive";n.attr("aria-live",a),n.attr("aria-atomic","true"),n.attr("role","status"),o&&(n.attr("aria-hidden","true"),n.attr("tabindex","-1")),t.$watch(r.ngAriaLive,function(e){clearTimeout(i),i=setTimeout(function(){n.prop("innerHTML",e||""),o?n.attr("aria-label",e||""):(n[0].style.display="none",n[0].style.display="inline")})})}}}).directive("ngAriaExpanded",function(){return{restrict:"A",link:function(e,t,n){t.attr("aria-expanded","false"),e.$watch(n.ngAriaExpanded,function(e){t.attr("aria-expanded",e?"true":"false")})}}}).directive("ngAriaSelected",function(){return{restrict:"A",link:function(e,t,n){t.attr("aria-selected","false"),e.$watch(n.ngAriaSelected,function(e){t.attr("aria-selected",e?"true":"false")})}}}).directive("ngAriaLabel",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngAriaLabel,function(e){t.attr("aria-label",e)})}}}).directive("ngAriaActivedescendant",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngAriaActivedescendant,function(e){t.attr("aria-activedescendant",e)})}}}).directive("ngTabIndex",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngTabIndex,function(e){"disabled"==e?t.removeAttr("tabindex"):t.attr("tabindex",e?"0":"-1")})}}}).directive("ngDesktopRoleText",function(){function e(){return null!=n.match(/iPhone|iPad|iPod/i)||r&&null!=r.match(/iPhone|iPad|iPod/i)}function t(){return null!=n.match(/Android/i)||r&&null!=r.match(/Android/i)}var n=navigator.userAgent,r=navigator.platform?navigator.platform:"";return{restrict:"A",link:function(n,r,i){n.$watch(i.ngTabIndex,function(n){e()||t()||(r.attr("role","text"),r.attr("tabindex","0"))})}}}).directive("ngRoleText",function(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngRoleText,function(e){e?(t.attr("role","text"),t.attr("tabindex","0")):(t.removeAttr("role"),t.removeAttr("tabindex"))})}}})}),define("angularAdView",["polyfills","angular","jquery.tiny","angularElement"],function(e,t,n){function r(e,t){var n=e.getBoundingClientRect().top,r=e.getBoundingClientRect().bottom,i=e.getBoundingClientRect().height,o=window.innerHeight-(t||0),a=Math.round(.45*o),s=Math.round(.55*o),u=i>Math.round(.45*o),l=n>=0&&r<=o,c=u&&(r>=s&&r<=o||n>=0&&n<=a||n<=0&&r>=o);return i>0&&(l||c)}var i=t.module("ngAdView",[]);window.requirejs&&window.require&&require.defined&&require.defined("myWallet")&&(i=require("myWallet").register);var o;i.directive("ngAdContainer",function(){return{restrict:"A",scope:{},link:function(e,t,n){e.AdViews={},o=e.AdViews,e.$on("$destroy",function(){o=!1})}}}),i.factory("$adviewscroller",function(){var e,t={get:function(){return e},set:function(t){e=n(t)},reset:function(){e=n(window)}};return t.reset(),t}),i.directive("ngAdView",["$parse","$timeout","$adviewscroller",function(t,i,a){return{restrict:"A",scope:{viewid:"=?ngAdViewId",enabled:"<ngAdEnabled",aid:"<ngAdId",onViewed:"&ngAdOnViewed",onDistinctViewed:"&ngAdOnViewedById",onViewedOnce:"&ngAdOnViewedOnce",onInit:"&ngAdOnInit",childview:"=?ngAdViewChild"},link:function(i,s,u){var l,c,f,d=e.uniqid();o&&void 0!==i.aid&&(o[i.aid]?(d=o[i.aid].id,l=!o[i.aid].viewed):(o[i.aid]={id:d,viewed:!1},l=!0)),i.viewid=d;var p=function(){return i.$eval(u.ngAdView)||{}},h=a.get(),v=!h.data("hasScrollEnd")&&e.Object.isFunction(h.scrollEnd)?h.scrollEnd():null,m=h.data("hasScrollEnd")?"scrollend":"scrollstop",$=t(i.onViewed),g=t(i.onViewedOnce),y=t(i.onDistinctViewed),b=t(i.onInit),w=function(){if(!i.enabled&&void 0!=i.enabled)return!0;var t=p(),n=r(s[0],t.viewportoffset);if(!n&&i.childview)try{var o=i.childview.split(";");e.Array.forEach(o,function(i){var o=e.String.trim(i),a=s.cssSelect(o);if(n)return!1;e.forEach(a,function(i,o){return!e.Number.isNumber(e.Number.toNumber(o))||!(n=r(i,t.viewportoffset))&&void 0})})}catch(e){console.error(e)}n!=f&&(f=n,i.$applyAsync(function(){n?C():S()}))},x=function(){h.off(m,w),n(window).off("resizeEnd",w),o&&o[i.aid]&&delete o[i.aid],v&&v.destroy()},C=function(){$({$adId:d}),c||(c=!0,g({$adId:d})),l&&(y({$adId:d}),l=!1,o&&void 0!==i.aid&&o[i.aid]&&(o[i.aid].viewed=!0))},S=function(){};s.one("$destroy",x),i.$on("$destroy",x);var k;if(b({$adId:d}),s.attr("ngAdEnabled")||u.ngAdEnabled)var A=i.$watch("enabled",function(e){setTimeout(function(){(void 0==e||e)&&(k||(h.on(m,w),n(window).on("resizeEnd",w),k=!0),w(),A())})});else h.on(m,w),n(window).on("resizeEnd",w),w()}}}])}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("mustache",t):(e=e||self,e.Mustache=t())}(this,function(){"use strict";function e(e){return"function"==typeof e}function t(e){return v(e)?"array":typeof e}function n(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function r(e,t){return null!=e&&"object"==typeof e&&t in e}function i(e,t){return null!=e&&"object"!=typeof e&&e.hasOwnProperty&&e.hasOwnProperty(t)}function o(e,t){return m.call(e,t)}function a(e){return!o($,e)}function s(e){return String(e).replace(/[&<>"'`=\/]/g,function(e){return g[e]})}function u(e,t){function r(){if($&&!g)for(;m.length;)delete h[m.pop()];else m=[];$=!1,g=!1}function i(e){if("string"==typeof e&&(e=e.split(b,2)),!v(e)||2!==e.length)throw new Error("Invalid tags: "+e);o=new RegExp(n(e[0])+"\\s*"),s=new RegExp("\\s*"+n(e[1])),u=new RegExp("\\s*"+n("}"+e[1]))}if(!e)return[];var o,s,u,d=!1,p=[],h=[],m=[],$=!1,g=!1,k="",A=0;i(t||S.tags);for(var T,E,O,M,D,I,j=new f(e);!j.eos();){if(T=j.pos,O=j.scanUntil(o))for(var N=0,V=O.length;N<V;++N)M=O.charAt(N),a(M)?(m.push(h.length),k+=M):(g=!0,d=!0,k+=" "),h.push(["text",M,T,T+1]),T+=1,"\n"===M&&(r(),k="",A=0,d=!1);if(!j.scan(o))break;if($=!0,E=j.scan(C)||"name",j.scan(y),"="===E?(O=j.scanUntil(w),j.scan(w),j.scanUntil(s)):"{"===E?(O=j.scanUntil(u),j.scan(x),j.scanUntil(s),E="&"):O=j.scanUntil(s),!j.scan(s))throw new Error("Unclosed tag at "+j.pos);if(D=">"==E?[E,O,T,j.pos,k,A,d]:[E,O,T,j.pos],A++,h.push(D),"#"===E||"^"===E)p.push(D);else if("/"===E){if(!(I=p.pop()))throw new Error('Unopened section "'+O+'" at '+T);if(I[1]!==O)throw new Error('Unclosed section "'+I[1]+'" at '+T)}else"name"===E||"{"===E||"&"===E?g=!0:"="===E&&i(O)}if(r(),I=p.pop())throw new Error('Unclosed section "'+I[1]+'" at '+j.pos);return c(l(h))}function l(e){for(var t,n,r=[],i=0,o=e.length;i<o;++i)(t=e[i])&&("text"===t[0]&&n&&"text"===n[0]?(n[1]+=t[1],n[3]=t[3]):(r.push(t),n=t));return r}function c(e){for(var t,n,r=[],i=r,o=[],a=0,s=e.length;a<s;++a)switch(t=e[a],t[0]){case"#":case"^":i.push(t),o.push(t),i=t[4]=[];break;case"/":n=o.pop(),n[5]=t[2],i=o.length>0?o[o.length-1][4]:r;break;default:i.push(t)}return r}function f(e){this.string=e,this.tail=e,this.pos=0}function d(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function p(){this.cache={}}var h=Object.prototype.toString,v=Array.isArray||function(e){return"[object Array]"===h.call(e)},m=RegExp.prototype.test,$=/\S/,g={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},y=/\s*/,b=/\s+/,w=/\s*=/,x=/\s*\}/,C=/#|\^|\/|>|\{|&|=|!/;f.prototype.eos=function(){return""===this.tail},f.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},f.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},d.prototype.push=function(e){return new d(e,this)},d.prototype.lookup=function(t){var n,o=this.cache;if(o.hasOwnProperty(t))n=o[t];else{for(var a,s,u,l=this,c=!1;l;){if(t.indexOf(".")>0)for(a=l.view,s=t.split("."),u=0;null!=a&&u<s.length;)u===s.length-1&&(c=r(a,s[u])||i(a,s[u])),a=a[s[u++]];else a=l.view[t],c=r(l.view,t);if(c){n=a;break}l=l.parent}o[t]=n}return e(n)&&(n=n.call(this.view)),n},p.prototype.clearCache=function(){this.cache={}},p.prototype.parse=function(e,t){var n=this.cache,r=e+":"+(t||S.tags).join(":"),i=n[r];return null==i&&(i=n[r]=u(e,t)),i},p.prototype.render=function(e,t,n,r){var i=this.parse(e,r),o=t instanceof d?t:new d(t,void 0);return this.renderTokens(i,o,n,e,r)},p.prototype.renderTokens=function(e,t,n,r,i){for(var o,a,s,u="",l=0,c=e.length;l<c;++l)s=void 0,o=e[l],a=o[0],"#"===a?s=this.renderSection(o,t,n,r):"^"===a?s=this.renderInverted(o,t,n,r):">"===a?s=this.renderPartial(o,t,n,i):"&"===a?s=this.unescapedValue(o,t):"name"===a?s=this.escapedValue(o,t):"text"===a&&(s=this.rawValue(o)),void 0!==s&&(u+=s);return u},p.prototype.renderSection=function(t,n,r,i){function o(e){return a.render(e,n,r)}var a=this,s="",u=n.lookup(t[1]);if(u){if(v(u))for(var l=0,c=u.length;l<c;++l)s+=this.renderTokens(t[4],n.push(u[l]),r,i);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)s+=this.renderTokens(t[4],n.push(u),r,i);else if(e(u)){if("string"!=typeof i)throw new Error("Cannot use higher-order sections without the original template");u=u.call(n.view,i.slice(t[3],t[5]),o),null!=u&&(s+=u)}else s+=this.renderTokens(t[4],n,r,i);return s}},p.prototype.renderInverted=function(e,t,n,r){var i=t.lookup(e[1]);if(!i||v(i)&&0===i.length)return this.renderTokens(e[4],t,n,r)},p.prototype.indentPartial=function(e,t,n){for(var r=t.replace(/[^ \t]/g,""),i=e.split("\n"),o=0;o<i.length;o++)i[o].length&&(o>0||!n)&&(i[o]=r+i[o]);return i.join("\n")},p.prototype.renderPartial=function(t,n,r,i){if(r){var o=e(r)?r(t[1]):r[t[1]];if(null!=o){var a=t[6],s=t[5],u=t[4],l=o;return 0==s&&u&&(l=this.indentPartial(o,u,a)),this.renderTokens(this.parse(l,i),n,r,l)}}},p.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},p.prototype.escapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return S.escape(n)},p.prototype.rawValue=function(e){return e[1]};var S={name:"mustache.js",version:"3.2.1",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,to_html:void 0,Scanner:void 0,Context:void 0,Writer:void 0},k=new p;return S.clearCache=function(){return k.clearCache()},S.parse=function(e,t){return k.parse(e,t)},S.render=function(e,n,r,i){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+t(e)+'" was given as the first argument for mustache#render(template, view, partials)');return k.render(e,n,r,i)},S.to_html=function(t,n,r,i){var o=S.render(t,n,r);if(!e(i))return o;i(o)},S.escape=s,S.Scanner=f,S.Context=d,S.Writer=p,S}),define("angularMustache",["angular","mustache"],function(e,t){e.module("ngMustache",[]).directive("mustacheRender",["$compile","$injector","$timeout","$templateCache",function(n,r,i,o){return{restrict:"A",scope:{data:"=data",tpl:"=template",sanitize:"=sanitize"},link:function(i,a,s){function u(){return t.render(l,i.data)}var l=o.get(i.tpl);i.$watch("data",function(t,o){if(e.equals(t,o))return!1;var s=u();r.has("$sanitize")?r.invoke(["$sanitize",function(e){var t=i.sanitize;safe=t?e(s):s}]):safe=s,a.html(s),n(a.contents())(i.$parent)},!0)}}}]).directive("blinkClass",function(){return{restrict:"A",link:function(t,n){e.element(n).addClass("blink-start").removeClass("blink-end"),setTimeout(function(){e.element(n).addClass("blink-end").removeClass("blink-start")})}}})}),define("angularInView",["angular"],function(){(function(){"use strict";var e,t,n,r,i,o,a,s,u,l,c,f,d,p,h,v,m,g,y=[].slice;angular.module("angular-inview",[]).directive("inView",["$parse",function(e){return{restrict:"A",require:"?^inViewContainer",link:function(t,n,i,s){var u,l,c,d,p,h;if(i.inView)return u=e(i.inView),l={element:n,wasInView:!1,offset:0,customDebouncedCheck:null,callback:function(e,r,i){return null==e&&(e={}),t.$evalAsync(function(o){return function(){return e.inViewTarget=n[0],u(t,{$event:e,$inview:r,$inviewpart:i})}}())}},null!=i.inViewOptions&&(c=t.$eval(i.inViewOptions))&&(l.offset=c.offset||[c.offsetTop||0,c.offsetBottom||0],c.debounce&&(l.customDebouncedCheck=a(function(e){return o([l],n[0],e)},c.debounce))),d=null!=(p=null!=(h=l.customDebouncedCheck)?h:null!=s?s.checkInView:void 0)?p:m,null!=s?s.addItem(l):r(l),setTimeout(d),t.$on("$destroy",function(){return null!=s&&s.removeItem(l),f(l)})}}}]).directive("inViewContainer",function(){return{restrict:"AC",controller:["$element",function(e){return this.items=[],this.addItem=function(e){return this.items.push(e)},this.removeItem=function(e){var t;return this.items=function(){var n,r,i,o;for(i=this.items,o=[],n=0,r=i.length;n<r;n++)(t=i[n])!==e&&o.push(t);return o}.call(this)},this.checkInView=function(t){return function(n){var r,i,a,s;for(s=t.items,i=0,a=s.length;i<a;i++)r=s[i],null!=r.customDebouncedCheck&&r.customDebouncedCheck();return o(function(){var e,t,n,i;for(n=this.items,i=[],e=0,t=n.length;e<t;e++)r=n[e],null==r.customDebouncedCheck&&i.push(r);return i}.call(t),e[0],n)}}(this),this}],link:function(e,t,n,r){return t.bind("scroll",r.checkInView),d(r),e.$on("$destroy",function(){return t.unbind("scroll",r.checkInView),v(r)})}}}),n=[],r=function(e){return n.push(e),i()},f=function(e){var t;return n=function(){var r,i,o;for(o=[],r=0,i=n.length;r<i;r++)(t=n[r])!==e&&o.push(t);return o}(),h()},e=[],d=function(t){return e.push(t),i()},v=function(t){var n;return e=function(){var r,i,o;for(o=[],r=0,i=e.length;r<i;r++)(n=e[r])!==t&&o.push(n);return o}(),h()},t=!1,g=function(t){var r,i,o;for(i=0,o=e.length;i<o;i++)r=e[i],r.checkInView(t);if(n.length)return m(t)},i=function(){if(!t)return t=!0,angular.element(window).bind("checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup",g)},h=function(){if(t&&!n.length&&!e.length)return t=!1,angular.element(window).unbind("checkInView click ready wheel mousewheel DomMouseScroll MozMousePixelScroll resize scroll touchmove mouseup",g)},p=function(e,t,n,r,i){var o,a;if(n){if(o=s(t.element[0]).top+window.pageYOffset,a=r&&i&&"neither"||r&&"top"||i&&"bottom"||"both",!t.wasInView||t.wasInView!==a||o!==t.lastOffsetTop)return t.lastOffsetTop=o,t.wasInView=a,t.callback(e,!0,a)}else if(t.wasInView)return t.wasInView=!1,t.callback(e,!1)},o=function(e,t,n){var r,i,o,a,f,d,h,v,m,$,g,y,b,w,x;if(x={top:0,bottom:l()},t&&t!==window){if(r=s(t),r.top>x.bottom||r.bottom<x.top){for(d=0,v=e.length;d<v;d++)f=e[d],p(n,f,!1);return}r.top>x.top&&(x.top=r.top),r.bottom<x.bottom&&(x.bottom=r.bottom)}for(w=[],h=0,m=e.length;h<m;h++)f=e[h],a=f.element[0],r=s(a),o=r.top+(c(f.offset)?u(r,f.offset):parseInt(null!=($=null!=(g=f.offset)?g[0]:void 0)?$:f.offset)),i=r.bottom+(c(f.offset)?u(r,f.offset):parseInt(null!=(y=null!=(b=f.offset)?b[1]:void 0)?y:f.offset)),o<x.bottom&&i>=x.top?w.push(p(n,f,!0,i>x.bottom,o<x.top)):w.push(p(n,f,!1));return w},c=function(e){return"string"==typeof e&&"%"===e.slice(-1)},u=function(e,t){var n;return n=t.substring(0,t.length-1),(e.bottom-e.top)*(n/100)},l=function(){var e,t,n;return(e=window.innerHeight)?e:(t=document.compatMode,!t&&("undefined"!=typeof $&&null!==$&&null!=(n=$.support)?n.boxModel:void 0)||(e="CSS1Compat"===t?document.documentElement.clientHeight:document.body.clientHeight),e)},s=function(e){var t,n,r;if(null!=e.getBoundingClientRect)return e.getBoundingClientRect();for(r=0,t=e;t;)r+=t.offsetTop,t=t.offsetParent;for(n=e.parentElement;n;)null!=n.scrollTop&&(r-=n.scrollTop),n=n.parentElement;return{top:r,bottom:r+e.offsetHeight}},a=function(e,t){var n;return n=null,function(){var r;return r=1<=arguments.length?y.call(arguments,0):[],null!=n&&clearTimeout(n),n=setTimeout(function(){return e.apply(null,r)},null!=t?t:100)}},m=function(e){var t,r,i;for(r=0,i=n.length;r<i;r++)t=n[r],null!=t.customDebouncedCheck&&t.customDebouncedCheck();return o(function(){var e,r,i;for(i=[],e=0,r=n.length;e<r;e++)t=n[e],null==t.customDebouncedCheck&&i.push(t);return i}(),null,e)}}).call(this)}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd?define("pitLS",["require","exports"],e):window.pitLS=e(function(e){return window[e]},{})}(function(e,t){function n(){var e={setItem:function(e,t,n){var r=new Date;r.setTime(r.getTime()+(n||2592e6));var i="expires="+r.toUTCString();document.cookie=e+"="+t+"; "+i+"; path=/; secure"},removeItem:function(e){document.cookie=e+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"},getItem:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}}};c.set=function(t,n,r){t=a+t,e.setItem(t,n,r),this.trigger("valuechange",t,n,r)},c.get=function(t){return t=a+t,e.getItem(t)},c.expireKey=function(t,n){var r=e.getItem("_expirations.json")||!1;try{r=JSON.parse(r),r||(r={})}catch(e){r={}}r[a+t]={in:n,since:(new Date).getTime()};e.setItem("_expirations.json",JSON.stringify(r));var i=a+t,o=e.getItem(i);void 0!==o&&null!==o&&e.setItem(i,o,n)},c.getExpiration=function(t){var n=e.getItem("_expirations.json")||!1;if(!n)return!1;try{if(!(n=JSON.parse(n)))return!1}catch(e){return!1}var r=n[a+t]||!1;return r||!1},c.remove=function(t){t=a+t,e.removeItem(t),this.trigger("valuedelete",t)},c.removeGroup=function(t){var n=l();for(var r in n)0==(""+n[r]).indexOf(t+"_")&&e.removeItem(r)},c.isExpired=function(){console.warn("not available for cookies")},c.renameGroup=function(){console.warn("not available for cookies")},c.isGroup=function(){console.warn("not available for cookies")},c.ascookies=!0}var r,i,o=[".json",".string",".number",".function",".boolean"],a="",s=function(e,t){for(var n in t)t[n]&&t[n].constructor&&t[n].constructor===Object?(e[n]=e[n]||{},arguments.callee(e[n],t[n])):e[n]=t[n];return e},u=function(){var e=!!navigator.cookieEnabled;return void 0!==navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!=document.cookie.indexOf("testcookie")),!!e},l=function(){for(var e=document.cookie.split(";"),t="",n=1;n<=e.length;n++)t+=n+" "+e[n-1]+"\n";return t},c={useSession:function(e){r=e?window.sessionStorage:window.localStorage},ascookies:!1,useMemory:function(e){e&&!i?(i=r,r={_data:{},setItem:function(e,t){return this._data[e]=String(t)},getItem:function(e){return e in this._data?this._data[e]:void 0},removeItem:function(e){return delete this._data[e]},clear:function(){return this._data={}}}):(r=i,i=!1)},events:[],on:function(e,t,n){this.events[e]||(this.events[e]=[]),n?this.events[e][n+"-key"]=t:this.events[e].push(t)},off:function(e,t){t?this.events[e][t+"-key"]&&delete this.events[e][t+"-key"]:delete this.events[e]},trigger:function(e){if(this.events[e]){var t=arguments;for(var n in this.events[e]){var r=this.events[e][n].apply(this,t);if(this.events[e][n].prototype.once&&delete this.events[e][n],void 0!==r&&!1===r)break}}},one:function(e,t){this.on(e,t),this.events[e][this.events[e].length-1].prototype.once=!0},set:function(e,t,i){var s=e,u=t,l="";if("expirations"==e)return!1;switch(e=a+e,typeof t){case"object":t=JSON.stringify(t),l=o[0];break;case"function":t=t.toString(),l=o[3];break;case"number":t=t.toString(),l=o[2];break;case"boolean":t=t.toString(),l=o[4];break;default:l=o[1]}for(var f=0;f<o.length;f++)if(r.getItem(e+o[f])){r.removeItem(e+o[f]);break}try{r.setItem(e+l,t)}catch(e){e&&e.message&&"QuotaExceededError"==e.message?n():c.useMemory(!0)}i&&c.expireKey(s,i),this.trigger("valuechange",s,u,i)},get:function(e){var t,n=e;e=a+e;for(var i=0;i<o.length;i++)if(r.getItem(e+o[i])){if(c.isExpired(n))return void r.removeItem(e+o[i]);switch(o[i]){case o[0]:t=JSON.parse(r.getItem(e+o[i]));break;case o[1]:t=r.getItem(e+o[i]);break;case o[2]:t=parseFloat(r.getItem(e+o[i]));break;case o[3]:t=new Function(r.getItem(e+o[i]));break;case o[4]:t=JSON.parse(r.getItem(e+o[i]))}break}return"undefined"==t||void 0==t?void 0:"true"==t||"false"!=t&&t},remove:function(e){var t=e;e=a+e;for(var n=0;n<o.length;n++)r.getItem(e+o[n])&&r.removeItem(e+o[n]);this.trigger("valuedelete",t)},group:function(e){if(void 0==e)return a?a.substring(0,a.length-1):"";!1===e&&(a=""),a=e+"_",this.trigger("groupchange",a)},isGroup:function(e){var t=r;for(var n in t)if(0===n.indexOf(e))return!0;return!1},renameGroup:function(e,t,n){n=n||{};var i=e+"_"||a,o={async:n.async||!1,callback:n.callback||!1},u=Object.keys?Object.keys(r):[],l=s({},r);if(a=t+"_",o.async&&Object.keys)return function(){if(ix>=u.length)return o.callback?o.callback():null;var e=u[ix];0===e.indexOf(i)&&(r.setItem(a+e.substring(i.length),l[e]),delete r[e]),ix++}();for(var c in l)0===c.indexOf(i)&&(r.setItem(a+c.substring(i.length),l[c]),delete r[c]);this.trigger("groupchange",a)},removeGroup:function(e,t){e=e?e+"_":a,t=t||{};var n={async:t.async||!1,callback:t.callback||!1,exclude:t.exclude||!1},i=r,o=Object.keys?Object.keys(r):[],s=0;if(asyncDelete=function(){if(s>=o.length)return n.callback?n.callback():null;var t=o[s],i=!1;if(0===t.indexOf(e)){if(n.exclude)for(var a in n.exclude){var u=e+n.exclude[a];if(0===t.indexOf(u+".")){i=!0;break}}i||r.removeItem(t)}s++,setTimeout(asyncDelete)},n.async&&Object.keys)return asyncDelete();for(var u in i){var l=!1;if(0===u.indexOf(e)){if(n.exclude)for(var c in n.exclude){var f=e+n.exclude[c];if(0===u.indexOf(f+".")){l=!0;break}}l||r.removeItem(u)}}},expireKey:function(e,t){var n=r.getItem("_expirations.json")||!1;try{n=JSON.parse(n),n||(n={})}catch(e){n={}}n[a+e]={in:t,since:(new Date).getTime()};r.setItem("_expirations.json",JSON.stringify(n))},isExpired:function(e){var t=r.getItem("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}var n=t[a+e]||!1;return!!n&&(new Date).getTime()-n.since>=n.in},getExpiration:function(e){var t=r.getItem("_expirations.json")||!1;if(!t)return!1;try{if(!(t=JSON.parse(t)))return!1}catch(e){return!1}var n=t[a+e]||!1;return n||!1}};return function(){var e;try{r=window.localStorage,r.setItem("test","test"),r.removeItem("test")}catch(t){e=!0}if(e&&(u()?n():c.useMemory(!0),c.getKey=c.get,c.setKey=c.set,c.removeKey=c.remove,!e)){var t=r.getItem("_expirations.json")||!1;if(t)try{var i=JSON.parse(t);t=JSON.parse(t);var a=new Date;for(var s in t){var l=t[s]||!1;if(!l)break;if(a.getTime()-l.since>=l.in)for(var f=0;f<o.length;f++)r.getItem(s+o[f])&&(r.removeItem(s+o[f]),delete i[s])}r.setItem("_expirations.json",JSON.stringify(i))}catch(e){}}}(),c}),function(e){if("object"==typeof module&&"object"==typeof module.exports){var t=e(require,exports);void 0!==t&&(module.exports=t)}else"function"==typeof define&&define.amd&&define("pitApp",["require","exports","angularAnimate","angular"],e)}(function(e,t){function n(t,n,i){var o=!1,a=this,s={stack:{},ready:{bootstrap:!1},on:function(e,t){this.ready[e]?t():(this.stack[e]||(this.stack[e]=[]),this.stack[e].push(t))},trigger:function(e){if(this.stack[e])for(var t in this.stack[e]){var n=this.stack[e][t];try{n()}catch(e){}}this.ready[e]||(this.ready[e]=!0)}};this.eventBind=function(e,t){s.on(e,t)},this.eventTrigger=function(e){s.trigger(e)};var u={};this.data=function(e,t){return t?("delete"==t?delete u[e]:u[e]=t,a):!!u[e]&&u[e]};var l={},c={};this.registerScope=function(e,t,n){if(l[e]={scope:t,args:n||[]},c[e])for(var i in c[e])c[e][i]&&r.isFunction(c[e][i])&&(c[e][i].apply(l[e].scope,l[e].args),c[e][i].prototype.once&&delete c[e][i])},this.whenScope=function(e,t,n){c[e]||(c[e]=[]),n&&(t.prototype.once=!0),c[e].indexOf(t)<0&&c[e].push(t)},this.forScope=function(e,t){if(l[e])try{l[e].scope.$applyAsync(function(){t.apply(l[e].scope,l[e].args)})}catch(t){console.log("$scope "+e+" not available, action ignored."),console.log(t)}else console.log("$scope "+e+" not available, action ignored.")},this.offScope=function(e,t){t?c[e]&&c[e].indexOf(t)>-1&&c[e].splice(c[e].indexOf(t),1):c[e]&&delete c[e]},this.scopeApply=function(e,t){t||(t=function(){}),e.$applyAsync(function(){t.call(e)})},this.moduleLoad=null,this.pageInjector=null,this.register=null,this.bootstrap=null,this.angular=r.module(t,n.concat(["ngAnimate"])),this.angular.factory("$locationParams",function(){var e,t;return{params:{get from_url(){return e},get to_url(){return t}},setParams:function(n,r){e=r,t=n}}}).run(["$rootScope","$templateCache","$q","$http","$injector",function(t,n,i,o,s){a.moduleLoad=function(t,i){i=i||{};var o={js:i.js||"js/modules/"+t,html:void 0!==i.html?i.html:"views/modules/"+t,css:void 0!==i.css?i.css:"css/modules/"+t,success:i.success||r.noop,failed:i.failed||r.noop,skiptemplatecache:i.skiptemplatecache||!1},a={css:!1,html:!1,js:!1,ctrl:null},s=t+".mode",u=function(e){r.extend(a,e),a.js&&a.css&&a.html&&(o.html?l(o.skiptemplatecache?s:n.get(s)?s:null,a.ctrl,o.skiptemplatecache?e.htmltpl:null):l(a.ctrl))},l=o.success||r.noop,c=o.failed||r.noop,f=function(){var t=o.html;t.indexOf(".html")!==t.length-".html".length&&(t+=".html");var r=requirejs.s.contexts._.config;(r.map["*"]&&r.map["*"][o.html]||r.paths[o.html])&&!e.specified("text!"+t)&&(t=o.html),e(["text!"+t],function(e){o.skiptemplatecache||n.put(s,e),u({html:!0,htmltpl:o.skiptemplatecache?e:null})},function(e){u({html:!0}),console.error(e)})};e([o.js],function(e){u({js:!0,ctrl:e||null}),n.get(s)&&!o.skiptemplatecache||!o.html?u({html:!0}):f()},function(e){console.error(e),c(e.xhr)}),o.css?e(["css!"+o.css],function(e){u({css:!0})},function(e){u({css:!0})}):u({css:!0})},a.pageInjector=s}]).config(["$controllerProvider","$compileProvider","$filterProvider","$animateProvider","$provide",function(e,t,n,r,i){a.register={controller:function(t,n){var r=n;return e.register(t,r),a},directive:function(e,n){return t.directive(e,n),a},filter:function(e,t){return n.register(e,t),a},factory:function(e,t){return i.factory(e,t),a},service:function(e,t){return i.service(e,t),a},constant:function(e,t){return i.constant(e,t),a},value:function(e,t){return i.value(e,t),a},animation:function(e,t){return r.register(e,t),a},provider:function(e,t){return i.provider(e,t),a}}}]).config(["$animateProvider",function(e){e.classNameFilter(/ng-animate-enabled/)}]),a.bootstrap=function(){o||(r.bootstrap(document,[t]),s.trigger("bootstrap"),o=!0)},i||o||a.bootstrap()}var r=e("angular");return n});var q=window.location.search,v;"?"==q.charAt(0)&&(q=q.substring(1)),v=q.match(/(?:^|&)v=([^&]+)/),v=null==v?"0":v[1],v="13",define("stApp",["require","pitApp","ith-cc-tplModel-v"+v,"page","cookie-helper","jquery","jquery.vclick","angular","angularJqEv","angularExtras","angularInView","angularMustache","angularAdView","angularSanitize","pitLS"],function(e,t,n){var r=e("angular"),i=new t("searchTools",["hmTouchEvents","ngAnimate","extra","angular-inview","ngMustache","ngAdView","ngSanitize"],!0),o=e("jquery"),a=e("cookie-helper"),s=e("page"),u=e("pitLS");i.angular.directive("removeClass",function(){return{restrict:"A",link:function(e,t,n){t.removeClass(n.removeClass)}}}),i.angular.factory("$stService",["$injector",function(e){function t(e){p.forEach(function(t){t(e)})}function n(e){return p.push(e),function(){var t=p.indexOf(e);p.splice(t,1)}}function r(e){h.forEach(function(t){t(e)})}function i(e){return h.push(e),function(){var t=h.indexOf(e);h.splice(t,1)}}function o(e,t){m?v.forEach(function(n){n(e,t)}):$.push({name:e,value:t})}function l(e){return v.push(e),function(){var t=v.indexOf(e);v.splice(t,1)}}function c(){m=!0,$.forEach(function(e){o(e.name,e.value)}),$=[]}function f(e){g.forEach(function(t){t(e)})}function d(e){return g.push(e),function(){var t=g.indexOf(e);g.splice(t,1)}}var p=[],h=[],v=[],m=!1,$=[],g=[],y=u.group();u.group("mw");var b=a.is_logged_in()&&u.get("has-sess")&&u.get("full"),w={standing:null,score:null};b&&(u.get("vs")&&(w.score=u.get("vs")),u.get("crd")&&(w.standing=u.get("crd")),u.get("logout_group_id")&&(w.group=u.get("logout_group_id"))),u.group(y),"Thinfile"==w.standing?w={standing:null,score:null,thinfile:!0}:["Invalid","FileSuppressed","InvalidVendorRequest","Thinfile","OutOfRange","Deceased"].indexOf(w.standing)>-1&&(w={standing:null,score:null,invalid:!0});var x="filters"in s&&null!=s.filters&&"mc"in s.filters&&null!=s.filters.mc,C=null,S=null;return b&&null!=w.standing&&null!=w.score&&(C=w.standing,S=w.score),"ao_mc_override"in s&&(C=s.ao_mc_override,S=4),{setIntro:t,onIntroChange:n,setControllerReady:r,onControllerLoaded:i,setFilter:o,onFiltersSet:l,ccFiltersReady:c,showCreditPopup:f,onCreditPopup:d,get loggedInData(){return w},get isSessionActive(){return b},get hasCreditFilter(){return x},get myStanding(){return C},get myScore(){return S}}}]),i.angular.directive("ngStFilter",function(){return{restrict:"A",template:function(e){var t=document.createElement("div"),n=e[0].querySelector("[data-model]");if(e.attr("tabindex",0),n){var r=document.createElement("input"),i=n.innerHTML;t.innerHTML=i;for(var o=0,a=n.attributes.length;o<a;o++){var s=n.attributes[o];0==s.name.indexOf("data-")&&("data-type"==s.name?(r.setAttribute("type",s.value),e.attr("role",s.value)):r.setAttribute(s.name,s.value))}t.insertBefore(r,t.childNodes[0]),e.removeClass("checked")}else t.innerHTML=e[0].innerHTML;return t.innerHTML},link:function(e,t){var n=t[0].querySelector('input[type="radio"],input[type="checkbox"]');if(n){n.setAttribute("tabindex","-1"),n.setAttribute("aria-hidden","true"),t.attr("aria-checked",n.checked.toString()),t.attr("aria-label",t.prop("innerText")),t.children().attr("tabindex","-1"),t.children().attr("aria-hidden","true");var r=!1;e.$watch(function(){r||(r=!0,e.$$postDigest(function(){r=!1,t.attr("aria-checked",n.checked.toString())}))})}}}}),i.angular.directive("ngRepeatDone",["$timeout",function(e){return{restrict:"A",link:function(t){!0===t.$last&&e(function(){t.$emit("repeat-done")})}}}]),i.angular.factory("$url",["$rootScope",function(e){var t=!1;return{filters:{},uri:null,previous:null,entry:"system",ignoreChange:function(){t=!0;var n=e.$on("$locationChangeSuccess",function(){t=!1,n()})},isIgnored:function(){return t}}}]),i.angular.factory("csrfTokenInterceptor",["$q","$injector",function(e,t){var n=a.get_csrf_token()||a.read("XSRF-TOKEN"),r=a.get_whid();return{request:function(i){if("POST"!=i.method)return i;if(n)return i.headers["X-XSRF-TOKEN"]=n,a.enabled()||(i.headers["X-XSRF-WHID"]=r),i;var o=e.defer();return t.invoke(["$http",function(e){e.get("/sid.php?a=1&cb="+(new Date).getTime()+"&from="+encodeURI(window.location.href),{headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(e){e.data&&("XSRF-TOKEN"in e.data&&(n=i.headers["X-XSRF-TOKEN"]=e.data["XSRF-TOKEN"]),"__whid"in e.data&&(r=i.headers["X-XSRF-WHID"]=e.data.__whid),i.headers["X-XSRF-RETRY"]="1"),o.resolve(i)},function(e){o.reject(e)})}]),o.promise}}}]),i.angular.config(["$httpProvider",function(e){e.defaults.transformRequest=function(e){return void 0===e?e:o.param(e)},e.interceptors.push("csrfTokenInterceptor"),e.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"}]).config(["$locationProvider","$viewport","$anchorScrollProvider",function(e,t,n){e.html5Mode({enabled:!0}).hashPrefix("!"),t.setBody(r.element().cssSelect("body")),n.disableAutoScrolling()}]).run(["$rootScope","$location","$url","$templateCache","$httpParamSerializer",function(e,t,i,o,a){o.put("cc-template-model",n),e.$on("$locationChangeSuccess",function(){i.filters={};var n,o=t.search();if("q"in o)for(o=o.q.split(/;/g),n=0;n<o.length;n++)o[n]=o[n].split(":"),i.filters[o[n][0]]=o[n][1].split(/,/g);if(i.uri=t.path().replace(/(^\/|\/$)/g,""),window.location.hash.length>2?i.expert=window.location.hash.substring(1).replace(/(^\/|\/$)/g,""):i.expert=null,r.element().cssSelect('.experts-answers .content-part .content[data-slug="'+i.expert+'"]').length<1&&(i.expert=null),!i.isIgnored()){var s="?"+a(t.search());"?"==s&&(s=""),e.$broadcast("$url:changed",i.previous,i.uri+s),i.previous=i.uri+s}}),e.app_loaded=!0,e.isWeb=!0,e.show_ask_overlay=!1}]),i.angular.directive("lazyController",["$controller",function(e){return{restrict:"A",scope:!0,link:function(t,n,r){var i=t.$watch(r.lazyController,function(o){o&&(n.attr("ng-controller",o),n.data("$Controller",e(o,{$scope:t,$element:n,$attrs:r})),i())})}}}]),i.angular.controller("SearchToolController",["$scope","$injector",function(e,t){var n=t.get("$stService");e.IntroController=null,e.CommunitySearchController=null,e.CommunitySearchAskFormController=null,e.cardCompareBarController=null,e.cardCompareController=null,e.SearchToolCardsController=null,n.onControllerLoaded(function(t){e.$applyAsync(function(){"IntroController"==t?e.IntroController="IntroController":"CommunitySearchController"==t?e.CommunitySearchController="CommunitySearchController":"CommunitySearchAskFormController"==t?e.CommunitySearchAskFormController="CommunitySearchAskFormController":"SearchToolCardsController"==t?e.SearchToolCardsController="SearchToolCardsController":"cardCompareBarController"==t?e.cardCompareBarController="cardCompareBarController":"cardCompareController"==t&&(e.cardCompareController="cardCompareController")})}),e.has_no_credit_filter=!1,e.close_credit_popup=function(){e.has_no_credit_filter=!1,r.element().cssSelect("body").removeClass("popup-credit")},e.select_credit=function(t){n.setFilter("mc",t),e.close_credit_popup()};var i=0;r.element(window).on("scroll",function(){i<5&&(i+=1),e.has_no_credit_filter&&i>1&&e.close_credit_popup()}),n.onCreditPopup(function(t){e.$applyAsync(function(){t&&i<=1&&(e.has_no_credit_filter=!0,r.element().cssSelect("body").addClass("popup-credit"),setTimeout(function(){var e=document.querySelector(".cp-heading");e&&e.focus()},200))})}),e.init_page_title=e.pagetitle=f,e.init_page_headline=e.pageheadline=c,e.init_page_intro=d,"filtername"in s&&""!=(s.filtername+"").trim()&&(e.filtername=s.filtername);var o=document.querySelector("[data-header-footer]");o&&!o.innerHTML.length&&(o.setAttribute("tabindex","-1"),o.setAttribute("aria-hidden","true")),n.onIntroChange(function(t){e.$applyAsync(function(){t.title&&(e.pagetitle=t.title),t.headline&&(e.pageheadline=t.headline),t.filtername&&(e.filtername=t.filtername)})});var a=0===window.location.hash.indexOf("#expert="),u=n.loggedInData.thinfile||n.hasCreditFilter||n.myStanding;!a&&!u&&document.scrollingElement.scrollTop<=500&&n.showCreditPopup(!0)}]);var l=document.querySelector("main >#content");l&&l.setAttribute("data-ng-controller","SearchToolController");var c=r.element().cssSelect(".page-header-pr").text(),f=r.element().cssSelect(".page-header-top h1").text(),d=r.element().cssSelect("[data-ng-html-content=pageintro]").text();return r.element().cssSelect("#custom-searchtools-page").length>0&&(f=r.element().cssSelect(".header-container .left h1").text()),i}),define("stIntro",["require","exports","page","stApp","angular"],function(e,t){function n(){e(["shortcode-js"],function(e){var t="https://"+location.host;(o(".pl-rates-div").length||o(".pl-terms-box").length)&&e.SetPrsWidgets(window,t),(o(".cc-mini-box").length||o(".cc-list-buttons").length||o(".cc-editorial-box").length||o(".ct-author-box").length)&&(e.ClearBoxes(),e.SetBoxes(window,t))},function(e){console.error(e)})}var r=e("stApp"),i=e("angular"),o=i.element,a=e("page");r.angular.controller("IntroController",["$scope","$injector",function(e,t){function r(t){e.$applyAsync(function(){"intro"in a&&""!=(a.intro+"").trim()&&(e.pageintro=window.TruncateHTML.truncate(s,window.get_intro_limit()),e.pageintro2=u,setTimeout(function(){t&&window.requestIdleCallback?window.requestIdleCallback(n):n()}))})}var o=t.get("$stService");e.disclosure_scroll=function(){var e,t=i.element().cssSelect(".mob-disclosure");"block"==t.css("display")?(window.scrollTo(0,t.prop("offsetTop")-50),e=t.cssSelect("p:last-child"),e.addClass("yellow"),e[0].focus(),setTimeout(function(){e.removeClass("yellow")},2e3)):(e=i.element().cssSelect(".sidebar .box:last-child p:last-child"),window.scrollTo(0,e.prop("offsetTop")-20),e.addClass("yellow"),e[0].focus(),setTimeout(function(){e.removeClass("yellow")},2e3))};var s=a.intro,u=a.intro2?a.intro2:"";i.element(window).on("resize",r),r(!0);var l=o.onIntroChange(function(e){(e.top||e.btm)&&((e.top||""==e.top)&&(s=e.top),(e.btm||""==e.btm)&&(u=e.btm),r())});e.$on("$destroy",function(){l(),i.element(window).off("resize",r)}),e.toggleIntro=function(e){var t=i.element(e.target).closest("[data-ng-html-content='pageintro']");t.toggleClass("more");var r=t.hasClass("more"),o=t[0].querySelector("[data-show-more]");o&&(o.setAttribute("aria-hidden",r?"true":"false"),o.setAttribute("tabindex",r?"-1":"0")),t[0].focus(),setTimeout(function(){t[0].focus(),n()})}}])});