From 3416eaa8de8a81c14fa153fd1e32b8eb34552c19 Mon Sep 17 00:00:00 2001 From: HansHammel Date: Fri, 13 Jan 2017 17:41:48 +0100 Subject: [PATCH 01/33] made test passing, added cross-env concurrently start, fixed test port hardcoded 6666 --- .gitignore | 2 + config/storage.js | 6 +- config/web.js | 6 +- package.json | 6 + test/test-report.js | 5 +- test/test-service-validation.js | 2 +- test/test-watchmen.js | 4 +- webserver/public/build/scripts.js | 46 +- webserver/public/build/style.css | 714 +++++++++++++----------------- 9 files changed, 358 insertions(+), 433 deletions(-) diff --git a/.gitignore b/.gitignore index ac6eb744..0af764ed 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ node_modules/ webserver/public/bower_components/ terraform/digital-ocean/*.tfstate terraform/digital-ocean/*.tfstate.backup +npm-debug.log +*.bak \ No newline at end of file diff --git a/config/storage.js b/config/storage.js index e1c0728c..e8d78ebe 100644 --- a/config/storage.js +++ b/config/storage.js @@ -4,7 +4,7 @@ module.exports = { provider : 'redis', options : { 'redis' : { - port: process.env.WATCHMEN_REDIS_PORT_PRODUCTION || 1216, + port: process.env.WATCHMEN_REDIS_PORT_PRODUCTION || 6379, host: process.env.WATCHMEN_REDIS_ADDR_PRODUCTION || '127.0.0.1', db: process.env.WATCHMEN_REDIS_DB_PRODUCTION || 1 } @@ -15,7 +15,7 @@ module.exports = { provider : 'redis', options : { 'redis' : { - port: process.env.WATCHMEN_REDIS_PORT_DEVELOPMENT || 1216, + port: process.env.WATCHMEN_REDIS_PORT_DEVELOPMENT || 6379, host: process.env.WATCHMEN_REDIS_ADDR_DEVELOPMENT || '127.0.0.1', db: process.env.WATCHMEN_REDIS_DB_DEVELOPMENT || 2 } @@ -26,7 +26,7 @@ module.exports = { provider : 'redis', options : { 'redis' : { - port: process.env.WATCHMEN_REDIS_PORT_TEST || 6666, + port: process.env.WATCHMEN_REDIS_PORT_TEST || 6379, host: process.env.WATCHMEN_REDIS_ADDR_TEST || '127.0.0.1', db: process.env.WATCHMEN_REDIS_DB_TEST || 1 } diff --git a/config/web.js b/config/web.js index 9752cd85..ad2b93b7 100644 --- a/config/web.js +++ b/config/web.js @@ -9,11 +9,11 @@ module.exports = { GOOGLE_CLIENT_SECRET: process.env.WATCHMEN_GOOGLE_CLIENT_SECRET || '' }, - port: process.env.WATCHMEN_WEB_PORT, // default port + port: process.env.WATCHMEN_WEB_PORT || 3000, // default port - admins: process.env.WATCHMEN_ADMINS, + admins: process.env.WATCHMEN_ADMINS | "admin", - ga_analytics_ID: process.env.WATCHMEN_GOOGLE_ANALYTICS_ID, + ga_analytics_ID: "", //process.env.WATCHMEN_GOOGLE_ANALYTICS_ID, baseUrl: '/' }; diff --git a/package.json b/package.json index fafb8b29..19784b59 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,10 @@ "author": "Iván Loire (http://iloire.com/)", "name": "watchmen", "scripts": { + "start": "concurrently \"node run-monitor-server.js\" \"node run-web-server.js\"", + "start:mon": "node run-monitor-server.js", + "start:svr": "node run-web-server.js", + "start:dev": "cross-env WATCHMEN_WEB_NO_AUTH=true concurrently \"node run-monitor-server.js\" \"node run-web-server.js\"", "coverage": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- --ui bdd -R spec -t 5000", "postcoverage": "kill `cat test/redis.pid`", "posttest": "kill `cat test/redis.pid`", @@ -33,7 +37,9 @@ "commander": "^2.8.1", "compression": "^1.4.3", "concat-stream": "^1.4.8", + "concurrently": "^3.1.0", "connect-redis": "^3.0.1", + "cross-env": "^3.1.4", "debug": "^2.2.0", "ejs": "2.3.x", "errorhandler": "^1.3.6", diff --git a/test/test-report.js b/test/test-report.js index ef0f433d..989175ef 100644 --- a/test/test-report.js +++ b/test/test-report.js @@ -1,6 +1,8 @@ var assert = require('assert'); var async = require('async'); var sinon = require('sinon'); +var storageFactory = require ('../lib/storage/storage-factory'); +var redisStorage = storageFactory.getStorageInstance('test'); var redisStorage_class = require('../lib/storage/providers/redis'); var reportService = require('../lib/reporter'); var populator = require('./lib/util/populator'); @@ -15,7 +17,8 @@ describe('reporting', function () { var services; var clock; - var storage = new redisStorage_class({port: 6666, host: '127.0.0.1', db: 0}); + redisStorage.db = 0; + var storage = new redisStorage_class(redisStorage); var reporter; var INITIAL_TIME = 946684800000; diff --git a/test/test-service-validation.js b/test/test-service-validation.js index d870e133..372d67d3 100644 --- a/test/test-service-validation.js +++ b/test/test-service-validation.js @@ -10,7 +10,7 @@ describe('service validator', function () { name: 'my service', interval: 60 * 1000, failureInterval: 20 * 1000, - url: 'http://apple.com', + url: 'http://apple.dev', port: 443, timeout: 10000, warningThreshold: 3000, diff --git a/test/test-watchmen.js b/test/test-watchmen.js index 3e2459e0..a55ef985 100644 --- a/test/test-watchmen.js +++ b/test/test-watchmen.js @@ -20,7 +20,7 @@ describe('watchmen', function () { clock = sinon.useFakeTimers(INITIAL_TIME); service = { id: 'X34dF', - host: {host: 'www.correcthost.com', port: '80', name: 'test'}, + host: {host: 'www.correcthost.dev', port: '80', name: 'test'}, url: '/', interval: 4 * 1000, failureInterval: 5 * 1000, @@ -281,7 +281,7 @@ describe('watchmen', function () { it('should add service and start it', function(done){ var newService = { id: 'X3333', - host: {host: 'www.new-service.com', port: '80', name: 'test'}, + host: {host: 'www.new-service.dev', port: '80', name: 'test'}, url: '/', interval: 4 * 1000, failureInterval: 5 * 1000, diff --git a/webserver/public/build/scripts.js b/webserver/public/build/scripts.js index 2e973a4e..1f4f3422 100644 --- a/webserver/public/build/scripts.js +++ b/webserver/public/build/scripts.js @@ -1,22 +1,24 @@ -if(function(t,e,n){"use strict";function r(t,e){return e=e||Error,function(){var n,r,i=arguments[0],a="["+(t?t+":":"")+i+"] ",o=arguments[1],s=arguments;for(n=a+o.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1);return e+20&&e-1 in t}function a(t,e,n){var r,o;if(t)if(w(t))for(r in t)"prototype"==r||"length"==r||"name"==r||t.hasOwnProperty&&!t.hasOwnProperty(r)||e.call(n,t[r],r,t);else if(hr(t)||i(t)){var s="object"!=typeof t;for(r=0,o=t.length;o>r;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==a)t.forEach(e,n,t);else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t);return t}function o(t){return Object.keys(t).sort()}function s(t,e,n){for(var r=o(t),i=0;in;n++){var i=arguments[n];if(i)for(var a=Object.keys(i),o=0,s=a.length;s>o;o++){var u=a[o];t[u]=i[u]}}return c(t,e),t}function h(t){return parseInt(t,10)}function d(t,e){return f(Object.create(t),e)}function p(){}function g(t){return t}function m(t){return function(){return t}}function v(t){return"undefined"==typeof t}function y(t){return"undefined"!=typeof t}function x(t){return null!==t&&"object"==typeof t}function _(t){return"string"==typeof t}function b(t){return"number"==typeof t}function $(t){return"[object Date]"===sr.call(t)}function w(t){return"function"==typeof t}function T(t){return"[object RegExp]"===sr.call(t)}function A(t){return t&&t.window===t}function S(t){return t&&t.$evalAsync&&t.$watch}function C(t){return"[object File]"===sr.call(t)}function M(t){return"[object FormData]"===sr.call(t)}function k(t){return"[object Blob]"===sr.call(t)}function E(t){return"boolean"==typeof t}function D(t){return t&&w(t.then)}function L(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function O(t){var e,n={},r=t.split(",");for(e=0;e=0&&t.splice(n,1),e}function F(t,e,n,r){if(A(t)||S(t))throw ur("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(e){if(t===e)throw ur("cpi","Can't copy! Source and destination are identical.");if(n=n||[],r=r||[],x(t)){var i=n.indexOf(t);if(-1!==i)return r[i];n.push(t),r.push(e)}var o;if(hr(t)){e.length=0;for(var s=0;sn;n++)e[n]=t[n]}else if(x(t)){e=e||{};for(var i in t)("$"!==i.charAt(0)||"$"!==i.charAt(1))&&(e[i]=t[i])}return e||t}function R(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var r,i,a,o=typeof t,s=typeof e;if(o==s&&"object"==o){if(!hr(t)){if($(t))return $(e)?R(t.getTime(),e.getTime()):!1;if(T(t))return T(e)?t.toString()==e.toString():!1;if(S(t)||S(e)||A(t)||A(e)||hr(e)||$(e)||T(e))return!1;a={};for(i in t)if("$"!==i.charAt(0)&&!w(t[i])){if(!R(t[i],e[i]))return!1;a[i]=!0}for(i in e)if(!a.hasOwnProperty(i)&&"$"!==i.charAt(0)&&e[i]!==n&&!w(e[i]))return!1;return!0}if(!hr(e))return!1;if((r=t.length)==e.length){for(i=0;r>i;i++)if(!R(t[i],e[i]))return!1;return!0}}return!1}function j(t,e,n){return t.concat(ir.call(e,n))}function Y(t,e){return ir.call(t,e||0)}function z(t,e){var n=arguments.length>2?Y(arguments,2):[];return!w(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,j(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function U(t,r){var i=r;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=n:A(r)?i="$WINDOW":r&&e===r?i="$DOCUMENT":S(r)&&(i="$SCOPE"),i}function q(t,e){return"undefined"==typeof t?n:(b(e)||(e=e?2:null),JSON.stringify(t,U,e))}function H(t){return _(t)?JSON.parse(t):t}function X(t){t=er(t).clone();try{t.empty()}catch(e){}var n=er("
").append(t).html();try{return t[0].nodeType===_r?Gn(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+Gn(e)})}catch(e){return Gn(n)}}function B(t){try{return decodeURIComponent(t)}catch(e){}}function V(t){var e,n,r={};return a((t||"").split("&"),function(t){if(t&&(e=t.replace(/\+/g,"%20").split("="),n=B(e[0]),y(n))){var i=y(e[1])?B(e[1]):!0;Zn.call(r,n)?hr(r[n])?r[n].push(i):r[n]=[r[n],i]:r[n]=i}}),r}function W(t){var e=[];return a(t,function(t,n){hr(t)?a(t,function(t){e.push(Z(n,!0)+(t===!0?"":"="+Z(t,!0)))}):e.push(Z(n,!0)+(t===!0?"":"="+Z(t,!0)))}),e.length?e.join("&"):""}function G(t){return Z(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Z(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function J(t,e){var n,r,i=mr.length;for(t=er(t),r=0;i>r;++r)if(n=mr[r]+e,_(n=t.attr(n)))return n;return null}function K(t,e){var n,r,i={};a(mr,function(e){var i=e+"app";!n&&t.hasAttribute&&t.hasAttribute(i)&&(n=t,r=t.getAttribute(i))}),a(mr,function(e){var i,a=e+"app";!n&&(i=t.querySelector("["+a.replace(":","\\:")+"]"))&&(n=i,r=i.getAttribute(a))}),n&&(i.strictDi=null!==J(n,"strict-di"),e(n,r?[r]:[],i))}function Q(n,r,i){x(i)||(i={});var o={strictDi:!1};i=f(o,i);var s=function(){if(n=er(n),n.injector()){var t=n[0]===e?"document":X(n);throw ur("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(//,">"))}r=r||[],r.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.debugInfoEnabled&&r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),r.unshift("ng");var a=Ht(r,i.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),a},u=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;return t&&u.test(t.name)&&(i.debugInfoEnabled=!0,t.name=t.name.replace(u,"")),t&&!l.test(t.name)?s():(t.name=t.name.replace(l,""),lr.resumeBootstrap=function(t){return a(t,function(t){r.push(t)}),s()},void(w(lr.resumeDeferredBootstrap)&&lr.resumeDeferredBootstrap()))}function tt(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name,t.location.reload()}function et(t){var e=lr.element(t).injector();if(!e)throw ur("test","no injector found for element argument to getTestability");return e.get("$$testability")}function nt(t,e){return e=e||"_",t.replace(vr,function(t,n){return(n?e:"")+t.toLowerCase()})}function rt(){var e;yr||(nr=t.jQuery,nr&&nr.fn.on?(er=nr,f(nr.fn,{scope:Rr.scope,isolateScope:Rr.isolateScope,controller:Rr.controller,injector:Rr.injector,inheritedData:Rr.inheritedData}),e=nr.cleanData,nr.cleanData=function(t){var n;if(fr)fr=!1;else for(var r,i=0;null!=(r=t[i]);i++)n=nr._data(r,"events"),n&&n.$destroy&&nr(r).triggerHandler("$destroy");e(t)}):er=_t,lr.element=er,yr=!0)}function it(t,e,n){if(!t)throw ur("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function at(t,e,n){return n&&hr(t)&&(t=t[t.length-1]),it(w(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function ot(t,e){if("hasOwnProperty"===t)throw ur("badname","hasOwnProperty is not a valid {0} name",e)}function st(t,e,n){if(!e)return t;for(var r,i=e.split("."),a=t,o=i.length,s=0;o>s;s++)r=i[s],t&&(t=(a=t)[r]);return!n&&w(t)?z(a,t):t}function ut(t){var e=t[0],n=t[t.length-1],r=[e];do{if(e=e.nextSibling,!e)break;r.push(e)}while(e!==n);return er(r)}function lt(){return Object.create(null)}function ct(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=r("$injector"),i=r("ng"),a=e(t,"angular",Object);return a.$$minErr=a.$$minErr||r,e(a,"module",function(){var t={};return function(r,a,o){var s=function(t,e){if("hasOwnProperty"===t)throw i("badname","hasOwnProperty is not a valid {0} name",e)};return s(r,"module"),a&&t.hasOwnProperty(r)&&(t[r]=null),e(t,r,function(){function t(t,n,r,i){return i||(i=e),function(){return i[r||"push"]([t,n,arguments]),l}}if(!a)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 e=[],i=[],s=[],u=t("$injector","invoke","push",i),l={_invokeQueue:e,_configBlocks:i,_runBlocks:s,requires:a,name:r,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:u,run:function(t){return s.push(t),this}};return o&&u(o),l})}})}function ft(t){var e=[];return JSON.stringify(t,function(t,n){if(n=U(t,n),x(n)){if(e.indexOf(n)>=0)return"<>";e.push(n)}return n})}function ht(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof t?"undefined":"string"!=typeof t?ft(t):t}function dt(e){f(e,{bootstrap:Q,copy:F,extend:f,equals:R,element:er,forEach:a,injector:Ht,noop:p,bind:z,toJson:q,fromJson:H,identity:g,isUndefined:v,isDefined:y,isString:_,isFunction:w,isObject:x,isNumber:b,isElement:L,isArray:hr,version:Tr,isDate:$,lowercase:Gn,uppercase:Jn,callbacks:{counter:0},getTestability:et,$$minErr:r,$$csp:gr,reloadWithDebugInfo:tt}),rr=ct(t);try{rr("ngLocale")}catch(n){rr("ngLocale",[]).provider("$locale",me)}rr("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:We}),t.provider("$compile",Jt).directive({a:Ei,input:Vi,textarea:Vi,form:Ii,script:Fa,select:ja,style:za,option:Ya,ngBind:Zi,ngBindHtml:Ki,ngBindTemplate:Ji,ngClass:ta,ngClassEven:na,ngClassOdd:ea,ngCloak:ra,ngController:ia,ngForm:Fi,ngHide:Ea,ngIf:sa,ngInclude:ua,ngInit:ca,ngNonBindable:Ta,ngPluralize:Aa,ngRepeat:Sa,ngShow:ka,ngStyle:Da,ngSwitch:La,ngSwitchWhen:Oa,ngSwitchDefault:Na,ngOptions:Ra,ngTransclude:Ia,ngModel:ba,ngList:fa,ngChange:Qi,pattern:qa,ngPattern:qa,required:Ua,ngRequired:Ua,minlength:Xa,ngMinlength:Xa,maxlength:Ha,ngMaxlength:Ha,ngValue:Gi,ngModelOptions:wa}).directive({ngInclude:la}).directive(Di).directive(aa),t.provider({$anchorScroll:Xt,$animate:Wr,$browser:Wt,$cacheFactory:Gt,$controller:ee,$document:ne,$exceptionHandler:re,$filter:sn,$interpolate:pe,$interval:ge,$http:ce,$httpBackend:he,$location:Ee,$log:De,$parse:Ue,$rootScope:Ve,$q:qe,$$q:He,$sce:Ke,$sceDelegate:Je,$sniffer:Qe,$templateCache:Zt,$templateRequest:tn,$$testability:en,$timeout:nn,$window:on,$$rAF:Be,$$asyncCallback:Bt,$$jqLite:jt})}])}function pt(){return++Sr}function gt(t){return t.replace(kr,function(t,e,n,r){return r?n.toUpperCase():n}).replace(Er,"Moz$1")}function mt(t){return!Nr.test(t)}function vt(t){var e=t.nodeType;return e===xr||!e||e===$r}function yt(t,e){var n,r,i,o,s=e.createDocumentFragment(),u=[];if(mt(t))u.push(e.createTextNode(t));else{for(n=n||s.appendChild(e.createElement("div")),r=(Ir.exec(t)||["",""])[1].toLowerCase(),i=Pr[r]||Pr._default,n.innerHTML=i[1]+t.replace(Fr,"<$1>")+i[2],o=i[0];o--;)n=n.lastChild;u=j(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",a(u,function(t){s.appendChild(t)}),s}function xt(t,n){n=n||e;var r;return(r=Or.exec(t))?[n.createElement(r[1])]:(r=yt(t,n))?r.childNodes:[]}function _t(t){if(t instanceof _t)return t;var e;if(_(t)&&(t=dr(t),e=!0),!(this instanceof _t)){if(e&&"<"!=t.charAt(0))throw Lr("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new _t(t)}e?Et(this,xt(t)):Et(this,t)}function bt(t){return t.cloneNode(!0)}function $t(t,e){if(e||Tt(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;i>r;r++)Tt(n[r])}function wt(t,e,n,r){if(y(r))throw Lr("offargs","jqLite#off() does not support the `selector` argument");var i=At(t),o=i&&i.events,s=i&&i.handle;if(s)if(e)a(e.split(" "),function(e){if(y(n)){var r=o[e];if(I(r||[],n),r&&r.length>0)return}Mr(t,e,s),delete o[e]});else for(e in o)"$destroy"!==e&&Mr(t,e,s),delete o[e]}function Tt(t,e){var r=t.ng339,i=r&&Ar[r];if(i){if(e)return void delete i.data[e];i.handle&&(i.events.$destroy&&i.handle({},"$destroy"),wt(t)),delete Ar[r],t.ng339=n}}function At(t,e){var r=t.ng339,i=r&&Ar[r];return e&&!i&&(t.ng339=r=pt(),i=Ar[r]={events:{},data:{},handle:n}),i}function St(t,e,n){if(vt(t)){var r=y(n),i=!r&&e&&!x(e),a=!e,o=At(t,!i),s=o&&o.data;if(r)s[e]=n;else{if(a)return s;if(i)return s&&s[e];f(s,e)}}}function Ct(t,e){return t.getAttribute?(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1:!1}function Mt(t,e){e&&t.setAttribute&&a(e.split(" "),function(e){t.setAttribute("class",dr((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+dr(e)+" "," ")))})}function kt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");a(e.split(" "),function(t){t=dr(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",dr(n))}}function Et(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{var n=e.length;if("number"==typeof n&&e.window!==e){if(n)for(var r=0;n>r;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Dt(t,e){return Lt(t,"$"+(e||"ngController")+"Controller")}function Lt(t,e,r){t.nodeType==$r&&(t=t.documentElement);for(var i=hr(e)?e:[e];t;){for(var a=0,o=i.length;o>a;a++)if((r=er.data(t,i[a]))!==n)return r;t=t.parentNode||t.nodeType===wr&&t.host}}function Ot(t){for($t(t,!0);t.firstChild;)t.removeChild(t.firstChild)}function Nt(t,e){e||$t(t);var n=t.parentNode;n&&n.removeChild(t)}function It(e,n){n=n||t,"complete"===n.document.readyState?n.setTimeout(e):er(n).on("load",e)}function Ft(t,e){var n=jr[e.toLowerCase()];return n&&Yr[N(t)]&&n}function Pt(t,e){var n=t.nodeName;return("INPUT"===n||"TEXTAREA"===n)&&zr[e]}function Rt(t,e){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=e[r||n.type],a=i?i.length:0;if(a){if(v(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0},a>1&&(i=P(i));for(var s=0;a>s;s++)n.isImmediatePropagationStopped()||i[s].call(t,n)}};return n.elem=t,n}function jt(){this.$get=function(){return f(_t,{hasClass:function(t,e){return t.attr&&(t=t[0]),Ct(t,e)},addClass:function(t,e){return t.attr&&(t=t[0]),kt(t,e)},removeClass:function(t,e){return t.attr&&(t=t[0]),Mt(t,e)}})}}function Yt(t,e){var n=t&&t.$$hashKey;if(n)return"function"==typeof n&&(n=t.$$hashKey()),n;var r=typeof t;return n="function"==r||"object"==r&&null!==t?t.$$hashKey=r+":"+(e||l)():r+":"+t}function zt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}a(t,this.put,this)}function Ut(t){var e=t.toString().replace(Xr,""),n=e.match(Ur);return n?"function("+(n[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function qt(t,e,n){var r,i,o,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw _(n)&&n||(n=t.name||Ut(t)),Br("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=t.toString().replace(Xr,""),o=i.match(Ur),a(o[1].split(qr),function(t){t.replace(Hr,function(t,e,n){r.push(n)})})}t.$inject=r}}else hr(t)?(s=t.length-1,at(t[s],"fn"),r=t.slice(0,s)):at(t,"fn",!0);return r}function Ht(t,e){function r(t){return function(e,n){return x(e)?void a(e,u(t)):t(e,n)}}function i(t,e){if(ot(t,"service"),(w(e)||hr(e))&&(e=S.instantiate(e)),!e.$get)throw Br("pget","Provider '{0}' must define $get factory method.",t);return A[t+b]=e}function o(t,e){return function(){var n=M.invoke(e,this);if(v(n))throw Br("undef","Provider '{0}' must return a value from $get factory method.",t);return n}}function s(t,e,n){return i(t,{$get:n!==!1?o(t,e):e})}function l(t,e){return s(t,["$injector",function(t){return t.instantiate(e)}])}function c(t,e){return s(t,m(e),!1)}function f(t,e){ot(t,"constant"),A[t]=e,C[t]=e}function h(t,e){var n=S.get(t+b),r=n.$get;n.$get=function(){var t=M.invoke(r,n);return M.invoke(e,null,{$delegate:t})}}function d(t){var e,n=[];return a(t,function(t){function r(t){var e,n;for(e=0,n=t.length;n>e;e++){var r=t[e],i=S.get(r[0]);i[r[1]].apply(i,r[2])}}if(!T.get(t)){T.put(t,!0);try{_(t)?(e=rr(t),n=n.concat(d(e.requires)).concat(e._runBlocks),r(e._invokeQueue),r(e._configBlocks)):w(t)?n.push(S.invoke(t)):hr(t)?n.push(S.invoke(t)):at(t,"module")}catch(i){throw hr(t)&&(t=t[t.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Br("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}}}),n}function g(t,n){function r(e,r){if(t.hasOwnProperty(e)){if(t[e]===y)throw Br("cdep","Circular dependency found: {0}",e+" <- "+$.join(" <- "));return t[e]}try{return $.unshift(e),t[e]=y,t[e]=n(e,r)}catch(i){throw t[e]===y&&delete t[e],i}finally{$.shift()}}function i(t,n,i,a){"string"==typeof i&&(a=i,i=null);var o,s,u,l=[],c=Ht.$$annotate(t,e,a);for(s=0,o=c.length;o>s;s++){if(u=c[s],"string"!=typeof u)throw Br("itkn","Incorrect injection token! Expected service name as string, got {0}",u);l.push(i&&i.hasOwnProperty(u)?i[u]:r(u,a))}return hr(t)&&(t=t[o]),t.apply(n,l)}function a(t,e,n){var r=Object.create((hr(t)?t[t.length-1]:t).prototype||null),a=i(t,r,e,n);return x(a)||w(a)?a:r}return{invoke:i,instantiate:a,get:r,annotate:Ht.$$annotate,has:function(e){return A.hasOwnProperty(e+b)||t.hasOwnProperty(e)}}}e=e===!0;var y={},b="Provider",$=[],T=new zt([],!0),A={$provide:{provider:r(i),factory:r(s),service:r(l),value:r(c),constant:r(f),decorator:h}},S=A.$injector=g(A,function(t,e){throw lr.isString(e)&&$.push(e),Br("unpr","Unknown provider: {0}",$.join(" <- "))}),C={},M=C.$injector=g(C,function(t,e){var r=S.get(t+b,e);return M.invoke(r.$get,r,n,t)});return a(d(t),function(t){M.invoke(t||p)}),M}function Xt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,r){function i(t){var e=null;return Array.prototype.some.call(t,function(t){return"a"===N(t)?(e=t,!0):void 0}),e}function a(){var t=s.yOffset;if(w(t))t=t();else if(L(t)){var n=t[0],r=e.getComputedStyle(n);t="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else b(t)||(t=0);return t}function o(t){if(t){t.scrollIntoView();var n=a();if(n){var r=t.getBoundingClientRect().top;e.scrollBy(0,r-n)}}else e.scrollTo(0,0)}function s(){var t,e=n.hash();e?(t=u.getElementById(e))?o(t):(t=i(u.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var u=e.document;return t&&r.$watch(function(){return n.hash()},function(t,e){(t!==e||""!==t)&&It(function(){r.$evalAsync(s)})}),s}]}function Bt(){this.$get=["$$rAF","$timeout",function(t,e){return t.supported?function(e){return t(e)}:function(t){return e(t,0,!1)}}]}function Vt(t,e,r,i){function o(t){try{t.apply(null,Y(arguments,1))}finally{if(T--,0===T)for(;A.length;)try{A.pop()()}catch(e){r.error(e)}}}function s(t){var e=t.indexOf("#");return-1===e?"":t.substr(e+1)}function u(t,e){!function n(){a(C,function(t){t()}),S=e(n,t)}()}function l(){f(),h()}function c(){try{return x.state}catch(t){}}function f(){M=c(),M=v(M)?null:M,R(M,I)&&(M=I),I=M}function h(){(E!==g.url()||k!==M)&&(E=g.url(),k=M,a(O,function(t){t(g.url(),M)}))}function d(t){try{return decodeURIComponent(t)}catch(e){return t}}var g=this,m=e[0],y=t.location,x=t.history,b=t.setTimeout,$=t.clearTimeout,w={};g.isMock=!1;var T=0,A=[];g.$$completeOutstandingRequest=o,g.$$incOutstandingRequestCount=function(){T++},g.notifyWhenNoOutstandingRequests=function(t){a(C,function(t){t()}),0===T?t():A.push(t)};var S,C=[];g.addPollFn=function(t){return v(S)&&u(100,b),C.push(t),t};var M,k,E=y.href,D=e.find("base"),L=null;f(),k=M,g.url=function(e,n,r){if(v(r)&&(r=null),y!==t.location&&(y=t.location),x!==t.history&&(x=t.history),e){var a=k===r;if(E===e&&(!i.history||a))return g;var o=E&&be(E)===be(e);return E=e,k=r,!i.history||o&&a?(o||(L=e),n?y.replace(e):o?y.hash=s(e):y.href=e):(x[n?"replaceState":"pushState"](r,"",e),f(),k=M),g}return L||y.href.replace(/%27/g,"'")},g.state=function(){return M};var O=[],N=!1,I=null;g.onUrlChange=function(e){return N||(i.history&&er(t).on("popstate",l),er(t).on("hashchange",l),N=!0),O.push(e),e},g.$$checkUrlChange=h,g.baseHref=function(){var t=D.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var F={},P="",j=g.baseHref();g.cookies=function(t,e){var i,a,o,s,u;if(!t){if(m.cookie!==P)for(P=m.cookie,a=P.split("; "),F={},s=0;s0&&(t=d(o.substring(0,u)),F[t]===n&&(F[t]=d(o.substring(u+1))));return F}e===n?m.cookie=encodeURIComponent(t)+"=;path="+j+";expires=Thu, 01 Jan 1970 00:00:00 GMT":_(e)&&(i=(m.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path="+j).length+1,i>4096&&r.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+i+" > 4096 bytes)!"))},g.defer=function(t,e){var n;return T++,n=b(function(){delete w[n],o(t)},e||0),w[n]=!0,n},g.defer.cancel=function(t){return w[t]?(delete w[t],$(t),o(p),!0):!1}}function Wt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new Vt(t,r,e,n)}]}function Gt(){this.$get=function(){function t(t,n){function i(t){t!=h&&(d?d==t&&(d=t.n):d=t,a(t.n,t.p),a(t,h),h=t,h.n=null)}function a(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var o=0,s=f({},n,{id:t}),u={},l=n&&n.capacity||Number.MAX_VALUE,c={},h=null,d=null;return e[t]={put:function(t,e){if(ll&&this.remove(d.key),e},get:function(t){if(l").parent()[0])});var o=O(t,e,t,n,r,i);D.$$addScopeClass(t);var s=null;return function(e,n,r){it(e,"scope"),r=r||{};var i=r.parentBoundTranscludeFn,a=r.transcludeControllers,u=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),s||(s=L(u));var l;if(l="html"!==s?er(K(s,er("
").append(t).html())):n?Rr.clone.call(t):t,a)for(var c in a)l.data("$"+c+"Controller",a[c].instance);return D.$$addScopeInfo(l,e),n&&n(l,e),o&&o(e,l,l,i),l}}function L(t){var e=t&&t[0];return e&&"foreignobject"!==N(e)&&e.toString().match(/SVG/)?"svg":"html"}function O(t,e,r,i,a,o){function s(t,r,i,a){var o,s,u,l,c,f,h,d,m;if(p){var v=r.length;for(m=new Array(v),c=0;cc;)u=m[g[c++]],o=g[c++],s=g[c++],o?(o.scope?(l=t.$new(),D.$$addScopeInfo(er(u),l)):l=t,d=o.transcludeOnThisElement?F(t,o.transclude,a,o.elementTranscludeOnThisElement):!o.templateOnThisElement&&a?a:!a&&e?F(t,e):null,o(s,l,u,i,d)):s&&s(t,u.childNodes,n,a)}for(var u,l,c,f,h,d,p,g=[],m=0;my;y++){var $=!1,w=!1;f=v[y],h=f.name,g=dr(f.value),p=Kt(h),(m=ft.test(p))&&(h=h.replace(Zr,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()}));var T=p.replace(/(Start|End)$/,"");B(T)&&p===T+"Start"&&($=h,w=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),d=Kt(h.toLowerCase()),u[d]=h,(m||!n.hasOwnProperty(d))&&(n[d]=g,Ft(t,d)&&(n[d]=!0)),tt(t,e,g,d,m),H(e,d,"A",r,i,$,w)}if(o=t.className,x(o)&&(o=o.animVal),_(o)&&""!==o)for(;a=c.exec(o);)d=Kt(a[2]),H(e,d,"C",r,i)&&(n[d]=dr(a[3])),o=o.substr(a.index+a[0].length);break;case _r:J(e,t.nodeValue);break;case br:try{a=l.exec(t.nodeValue),a&&(d=Kt(a[1]),H(e,d,"M",r,i)&&(n[d]=dr(a[2])))}catch(A){}}return e.sort(G),e}function j(t,e,n){var r=[],i=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw Gr("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType==xr&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0)}else r.push(t);return er(r)}function z(t,e,n){return function(r,i,a,o,s){return i=j(i[0],e,n),t(r,i,a,o,s)}}function U(t,o,s,u,l,c,f,h,d){function p(t,e,n,r){t&&(n&&(t=z(t,n,r)),t.require=A.require,t.directiveName=C,(N===A||A.$$isolateScope)&&(t=rt(t,{isolateScope:!0})),f.push(t)),e&&(n&&(e=z(e,n,r)),e.require=A.require,e.directiveName=C,(N===A||A.$$isolateScope)&&(e=rt(e,{isolateScope:!0})),h.push(e))}function g(t,e,n,r){var i,o,s="data",u=!1,l=n;if(_(e)){if(o=e.match(v),e=e.substring(o[0].length),o[3]&&(o[1]?o[3]=null:o[1]=o[3]),"^"===o[1]?s="inheritedData":"^^"===o[1]&&(s="inheritedData",l=n.parent()),"?"===o[2]&&(u=!0),i=null,r&&"data"===s&&(i=r[e])&&(i=i.instance),i=i||l[s]("$"+e+"Controller"),!i&&!u)throw Gr("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,t);return i||null}return hr(e)&&(i=[],a(e,function(e){i.push(g(t,e,n,r))})),i}function b(t,e,i,u,l){function c(t,e,r){var i;return S(t)||(r=e,e=t,t=n),B&&(i=b),r||(r=B?w.parent():w),l(t,e,i,r,k)}var d,p,v,x,_,b,$,w,A;if(o===i?(A=s,w=s.$$element):(w=er(i),A=new ot(w,s)),N&&(_=e.$new(!0)),l&&($=c,$.$$boundTransclude=l),O&&(T={},b={},a(O,function(t){var n,r={$scope:t===N||t.$$isolateScope?_:e,$element:w,$attrs:A,$transclude:$};x=t.controller,"@"==x&&(x=A[t.name]),n=y(x,r,!0,t.controllerAs),b[t.name]=n,B||w.data("$"+t.name+"Controller",n.instance),T[t.name]=n})),N){D.$$addScopeInfo(w,_,!0,!(I&&(I===N||I===N.$$originalDirective))),D.$$addScopeClass(w,!0);var C=T&&T[N.name],M=_;C&&C.identifier&&N.bindToController===!0&&(M=C.instance),a(_.$$isolateBindings=N.$$isolateBindings,function(t,n){var i,a,o,s,u=t.attrName,l=t.optional,c=t.mode;switch(c){case"@":A.$observe(u,function(t){M[n]=t}),A.$$observers[u].$$scope=e,A[u]&&(M[n]=r(A[u])(e));break;case"=":if(l&&!A[u])return;a=m(A[u]),s=a.literal?R:function(t,e){return t===e||t!==t&&e!==e},o=a.assign||function(){throw i=M[n]=a(e),Gr("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",A[u],N.name)},i=M[n]=a(e);var f=function(t){return s(t,M[n])||(s(t,i)?o(e,t=M[n]):M[n]=t),i=t};f.$stateful=!0;var h;h=t.collection?e.$watchCollection(A[u],f):e.$watch(m(A[u],f),null,a.literal),_.$on("$destroy",h);break;case"&":a=m(A[u]),M[n]=function(t){return a(e,t)}}})}for(T&&(a(T,function(t){t()}),T=null),d=0,p=f.length;p>d;d++)v=f[d],at(v,v.isolateScope?_:e,w,A,v.require&&g(v.directiveName,v.require,w,b),$);var k=e;for(N&&(N.template||null===N.templateUrl)&&(k=_),t&&t(k,i.childNodes,n,l),d=h.length-1;d>=0;d--)v=h[d],at(v,v.isolateScope?_:e,w,A,v.require&&g(v.directiveName,v.require,w,b),$)}d=d||{};for(var $,T,A,C,M,k,E,L=-Number.MAX_VALUE,O=d.controllerDirectives,N=d.newIsolateScopeDirective,I=d.templateDirective,F=d.nonTlbTranscludeDirective,U=!1,H=!1,B=d.hasElementTranscludeDirective,G=s.$$element=er(o),J=c,Q=u,tt=0,nt=t.length;nt>tt;tt++){A=t[tt];var it=A.$$start,st=A.$$end;if(it&&(G=j(o,it,st)),M=n,L>A.priority)break;if((E=A.scope)&&(A.templateUrl||(x(E)?(Z("new/isolated scope",N||$,A,G),N=A):Z("new/isolated scope",N,A,G)),$=$||A),C=A.name,!A.templateUrl&&A.controller&&(E=A.controller,O=O||{},Z("'"+C+"' controller",O[C],A,G),O[C]=A),(E=A.transclude)&&(U=!0,A.$$tlb||(Z("transclusion",F,A,G),F=A),"element"==E?(B=!0,L=A.priority,M=G,G=s.$$element=er(e.createComment(" "+C+": "+s[C]+" ")),o=G[0],et(l,Y(M),o),Q=D(M,u,L,J&&J.name,{nonTlbTranscludeDirective:F})):(M=er(bt(o)).contents(),G.empty(),Q=D(M,u))),A.template)if(H=!0,Z("template",I,A,G),I=A,E=w(A.template)?A.template(G,s):A.template,E=ct(E),A.replace){if(J=A,M=mt(E)?[]:te(K(A.templateNamespace,dr(E))),o=M[0],1!=M.length||o.nodeType!==xr)throw Gr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",C,"");et(l,G,o);var ut={$attr:{}},lt=P(o,[],ut),ft=t.splice(tt+1,t.length-(tt+1));N&&q(lt),t=t.concat(lt).concat(ft),V(s,ut),nt=t.length}else G.html(E);if(A.templateUrl)H=!0,Z("template",I,A,G),I=A,A.replace&&(J=A),b=W(t.splice(tt,t.length-tt),G,s,l,U&&Q,f,h,{controllerDirectives:O,newIsolateScopeDirective:N,templateDirective:I,nonTlbTranscludeDirective:F}),nt=t.length;else if(A.compile)try{k=A.compile(G,s,Q),w(k)?p(null,k,it,st):k&&p(k.pre,k.post,it,st)}catch(ht){i(ht,X(G))}A.terminal&&(b.terminal=!0,L=Math.max(L,A.priority))}return b.scope=$&&$.scope===!0,b.transcludeOnThisElement=U,b.elementTranscludeOnThisElement=B,b.templateOnThisElement=H,b.transclude=Q,d.hasElementTranscludeDirective=B,b}function q(t){for(var e=0,n=t.length;n>e;e++)t[e]=d(t[e],{$$isolateScope:!0})}function H(e,r,a,u,l,c,f){if(r===l)return null;var h=null;if(o.hasOwnProperty(r))for(var p,g=t.get(r+s),m=0,v=g.length;v>m;m++)try{p=g[m],(u===n||u>p.priority)&&-1!=p.restrict.indexOf(a)&&(c&&(p=d(p,{ -$$start:c,$$end:f})),e.push(p),h=p)}catch(y){i(y)}return h}function B(e){if(o.hasOwnProperty(e))for(var n,r=t.get(e+s),i=0,a=r.length;a>i;i++)if(n=r[i],n.multiElement)return!0;return!1}function V(t,e){var n=e.$attr,r=t.$attr,i=t.$$element;a(t,function(r,i){"$"!=i.charAt(0)&&(e[i]&&e[i]!==r&&(r+=("style"===i?";":" ")+e[i]),t.$set(i,r,!0,n[i]))}),a(e,function(e,a){"class"==a?(E(i,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==a?(i.attr("style",i.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==a.charAt(0)||t.hasOwnProperty(a)||(t[a]=e,r[a]=n[a])})}function W(t,e,n,r,i,o,s,l){var c,f,h=[],p=e[0],g=t.shift(),m=d(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=w(g.templateUrl)?g.templateUrl(e,n):g.templateUrl,y=g.templateNamespace;return e.empty(),u(C.getTrustedResourceUrl(v)).then(function(u){var d,_,b,$;if(u=ct(u),g.replace){if(b=mt(u)?[]:te(K(y,dr(u))),d=b[0],1!=b.length||d.nodeType!==xr)throw Gr("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,v);_={$attr:{}},et(r,e,d);var w=P(d,[],_);x(g.scope)&&q(w),t=w.concat(t),V(n,_)}else d=p,e.html(u);for(t.unshift(m),c=U(t,d,n,i,e,g,o,s,l),a(r,function(t,n){t==d&&(r[n]=e[0])}),f=O(e[0].childNodes,i);h.length;){var T=h.shift(),A=h.shift(),S=h.shift(),C=h.shift(),M=e[0];if(!T.$$destroyed){if(A!==p){var k=A.className;l.hasElementTranscludeDirective&&g.replace||(M=bt(d)),et(S,er(A),M),E(er(M),k)}$=c.transcludeOnThisElement?F(T,c.transclude,C):C,c(f,T,M,r,$)}}h=null}),function(t,e,n,r,i){var a=i;e.$$destroyed||(h?h.push(e,n,r,a):(c.transcludeOnThisElement&&(a=F(e,c.transclude,i)),c(f,e,n,r,a)))}}function G(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name"+n+"",r.childNodes[0].childNodes;default:return n}}function Q(t,e){if("srcdoc"==e)return C.HTML;var n=N(t);return"xlinkHref"==e||"form"==n&&"action"==e||"img"!=n&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}function tt(t,e,n,i,a){var o=Q(t,i);a=h[i]||a;var s=r(n,!0,o,a);if(s){if("multiple"===i&&"select"===N(t))throw Gr("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",X(t));e.push({priority:100,compile:function(){return{pre:function(t,e,u){var l=u.$$observers||(u.$$observers={});if(b.test(i))throw Gr("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var c=u[i];c!==n&&(s=c&&r(c,!0,o,a),n=c),s&&(u[i]=s(t),(l[i]||(l[i]=[])).$$inter=!0,(u.$$observers&&u.$$observers[i].$$scope||t).$watch(s,function(t,e){"class"===i&&t!=e?u.$updateClass(t,e):u.$set(i,t)}))}}}})}}function et(t,n,r){var i,a,o=n[0],s=n.length,u=o.parentNode;if(t)for(i=0,a=t.length;a>i;i++)if(t[i]==o){t[i++]=r;for(var l=i,c=l+s-1,f=t.length;f>l;l++,c++)f>c?t[l]=t[c]:delete t[l];t.length-=s-1,t.context===o&&(t.context=r);break}u&&u.replaceChild(r,o);var h=e.createDocumentFragment();h.appendChild(o),er(r).data(er(o).data()),nr?(fr=!0,nr.cleanData([o])):delete er.cache[o[er.expando]];for(var d=1,p=n.length;p>d;d++){var g=n[d];er(g).remove(),h.appendChild(g),delete n[d]}n[0]=r,n.length=1}function rt(t,e){return f(function(){return t.apply(null,arguments)},t,e)}function at(t,e,n,r,a,o){try{t(e,n,r,a,o)}catch(s){i(s,X(n))}}var ot=function(t,e){if(e){var n,r,i,a=Object.keys(e);for(n=0,r=a.length;r>n;n++)i=a[n],this[i]=e[i]}else this.$attr={};this.$$element=t};ot.prototype={$normalize:Kt,$addClass:function(t){t&&t.length>0&&M.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&M.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Qt(t,e);n&&n.length&&M.addClass(this.$$element,n);var r=Qt(e,t);r&&r.length&&M.removeClass(this.$$element,r)},$set:function(t,e,r,o){var s,u=this.$$element[0],l=Ft(u,t),c=Pt(u,t),f=t;if(l?(this.$$element.prop(t,e),o=l):c&&(this[c]=e,f=c),this[t]=e,o?this.$attr[t]=o:(o=this.$attr[t],o||(this.$attr[t]=o=nt(t,"-"))),s=N(this.$$element),"a"===s&&"href"===t||"img"===s&&"src"===t)this[t]=e=k(e,"src"===t);else if("img"===s&&"srcset"===t){for(var h="",d=dr(e),p=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,g=/\s/.test(d)?p:/(,)/,m=d.split(g),v=Math.floor(m.length/2),y=0;v>y;y++){var x=2*y;h+=k(dr(m[x]),!0),h+=" "+dr(m[x+1])}var _=dr(m[2*y]).split(/\s/);h+=k(dr(_[0]),!0),2===_.length&&(h+=" "+dr(_[1])),this[t]=e=h}r!==!1&&(null===e||e===n?this.$$element.removeAttr(o):this.$$element.attr(o,e));var b=this.$$observers;b&&a(b[f],function(t){try{t(e)}catch(n){i(n)}})},$observe:function(t,e){var n=this,r=n.$$observers||(n.$$observers=lt()),i=r[t]||(r[t]=[]);return i.push(e),T.$evalAsync(function(){!i.$$inter&&n.hasOwnProperty(t)&&e(n[t])}),function(){I(i,e)}}};var st=r.startSymbol(),ut=r.endSymbol(),ct="{{"==st||"}}"==ut?g:function(t){return t.replace(/\{\{/g,st).replace(/}}/g,ut)},ft=/^ngAttr[A-Z]/;return D.$$addBindingInfo=$?function(t,e){var n=t.data("$binding")||[];hr(e)?n=n.concat(e):n.push(e),t.data("$binding",n)}:p,D.$$addBindingClass=$?function(t){E(t,"ng-binding")}:p,D.$$addScopeInfo=$?function(t,e,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";t.data(i,e)}:p,D.$$addScopeClass=$?function(t,e){E(t,e?"ng-isolate-scope":"ng-scope")}:p,D}]}function Kt(t){return gt(t.replace(Zr,""))}function Qt(t,e){var n="",r=t.split(/\s+/),i=e.split(/\s+/);t:for(var a=0;a0?" ":"")+o}return n}function te(t){t=er(t);var e=t.length;if(1>=e)return t;for(;e--;){var n=t[e];n.nodeType===br&&ar.call(t,e,1)}return t}function ee(){var t={},e=!1,i=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(e,n){ot(e,"controller"),x(e)?f(t,e):t[e]=n},this.allowGlobals=function(){e=!0},this.$get=["$injector","$window",function(a,o){function s(t,e,n,i){if(!t||!x(t.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e);t.$scope[e]=n}return function(r,u,l,c){var h,d,p,g;if(l=l===!0,c&&_(c)&&(g=c),_(r)){if(d=r.match(i),!d)throw Jr("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);p=d[1],g=g||d[3],r=t.hasOwnProperty(p)?t[p]:st(u.$scope,p,!0)||(e?st(o,p,!0):n),at(r,p,!0)}if(l){var m=(hr(r)?r[r.length-1]:r).prototype;return h=Object.create(m||null),g&&s(u,g,h,p||r.name),f(function(){return a.invoke(r,h,u,p),h},{instance:h,identifier:g})}return h=a.instantiate(r,u,p),g&&s(u,g,h,p||r.name),h}}]}function ne(){this.$get=["$window",function(t){return er(t.document)}]}function re(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function ie(t,e){if(_(t)){var n=t.replace(ni,"").trim();if(n){var r=e("Content-Type");(r&&0===r.indexOf(Kr)||ae(n))&&(t=H(n))}}return t}function ae(t){var e=t.match(ti);return e&&ei[e[0]].test(t)}function oe(t){var e,n,r,i=lt();return t?(a(t.split("\n"),function(t){r=t.indexOf(":"),e=Gn(dr(t.substr(0,r))),n=dr(t.substr(r+1)),e&&(i[e]=i[e]?i[e]+", "+n:n)}),i):i}function se(t){var e=x(t)?t:n;return function(n){if(e||(e=oe(t)),n){var r=e[Gn(n)];return void 0===r&&(r=null),r}return e}}function ue(t,e,n,r){return w(r)?r(t,e,n):(a(r,function(r){t=r(t,e,n)}),t)}function le(t){return t>=200&&300>t}function ce(){var t=this.defaults={transformResponse:[ie],transformRequest:[function(t){return!x(t)||C(t)||k(t)||M(t)?t:q(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:P(Qr),put:P(Qr),patch:P(Qr)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},e=!1;this.useApplyAsync=function(t){return y(t)?(e=!!t,this):e};var i=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(o,u,l,c,h,d){function p(e){function i(t){var e=f({},t);return t.data?e.data=ue(t.data,t.headers,t.status,u.transformResponse):e.data=t.data,le(t.status)?e:h.reject(e)}function o(t){var e,n={};return a(t,function(t,r){w(t)?(e=t(),null!=e&&(n[r]=e)):n[r]=t}),n}function s(e){var n,r,i,a=t.headers,s=f({},e.headers);a=f({},a.common,a[Gn(e.method)]);t:for(n in a){r=Gn(n);for(i in s)if(Gn(i)===r)continue t;s[n]=a[n]}return o(s)}if(!lr.isObject(e))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",e);var u=f({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse},e);u.headers=s(e),u.method=Jn(u.method);var l=function(e){var r=e.headers,o=ue(e.data,se(r),n,e.transformRequest);return v(o)&&a(r,function(t,e){"content-type"===Gn(e)&&delete r[e]}),v(e.withCredentials)&&!v(t.withCredentials)&&(e.withCredentials=t.withCredentials),b(e,o).then(i,i)},c=[l,n],d=h.when(u);for(a(S,function(t){(t.request||t.requestError)&&c.unshift(t.request,t.requestError),(t.response||t.responseError)&&c.push(t.response,t.responseError)});c.length;){var p=c.shift(),g=c.shift();d=d.then(p,g)}return d.success=function(t){return d.then(function(e){t(e.data,e.status,e.headers,u)}),d},d.error=function(t){return d.then(null,function(e){t(e.data,e.status,e.headers,u)}),d},d}function g(t){a(arguments,function(t){p[t]=function(e,n){return p(f(n||{},{method:t,url:e}))}})}function m(t){a(arguments,function(t){p[t]=function(e,n,r){return p(f(r||{},{method:t,url:e,data:n}))}})}function b(r,i){function a(t,n,r,i){function a(){s(n,t,r,i)}d&&(le(t)?d.put($,[t,n,oe(r),i]):d.remove($)),e?c.$applyAsync(a):(a(),c.$$phase||c.$apply())}function s(t,e,n,i){e=Math.max(e,0),(le(e)?m.resolve:m.reject)({data:t,status:e,headers:se(n),config:r,statusText:i})}function l(t){s(t.data,t.status,P(t.headers()),t.statusText)}function f(){var t=p.pendingRequests.indexOf(r);-1!==t&&p.pendingRequests.splice(t,1)}var d,g,m=h.defer(),_=m.promise,b=r.headers,$=T(r.url,r.params);if(p.pendingRequests.push(r),_.then(f,f),!r.cache&&!t.cache||r.cache===!1||"GET"!==r.method&&"JSONP"!==r.method||(d=x(r.cache)?r.cache:x(t.cache)?t.cache:A),d&&(g=d.get($),y(g)?D(g)?g.then(l,l):hr(g)?s(g[1],g[0],P(g[2]),g[3]):s(g,200,{},"OK"):d.put($,_)),v(g)){var w=an(r.url)?u.cookies()[r.xsrfCookieName||t.xsrfCookieName]:n;w&&(b[r.xsrfHeaderName||t.xsrfHeaderName]=w),o(r.method,$,i,a,b,r.timeout,r.withCredentials,r.responseType)}return _}function T(t,e){if(!e)return t;var n=[];return s(e,function(t,e){null===t||v(t)||(hr(t)||(t=[t]),a(t,function(t){x(t)&&(t=$(t)?t.toISOString():q(t)),n.push(Z(e)+"="+Z(t))}))}),n.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+n.join("&")),t}var A=l("$http"),S=[];return a(i,function(t){S.unshift(_(t)?d.get(t):d.invoke(t))}),p.pendingRequests=[],g("get","delete","head","jsonp"),m("post","put","patch"),p.defaults=t,p}]}function fe(){return new t.XMLHttpRequest}function he(){this.$get=["$browser","$window","$document",function(t,e,n){return de(t,fe,t.defer,e.angular.callbacks,n[0])}]}function de(t,e,r,i,o){function s(t,e,n){var r=o.createElement("script"),a=null;return r.type="text/javascript",r.src=t,r.async=!0,a=function(t){Mr(r,"load",a),Mr(r,"error",a),o.body.removeChild(r),r=null;var s=-1,u="unknown";t&&("load"!==t.type||i[e].called||(t={type:"error"}),u=t.type,s="error"===t.type?404:200),n&&n(s,u)},Cr(r,"load",a),Cr(r,"error",a),o.body.appendChild(r),a}return function(o,u,l,c,f,h,d,g){function m(){_&&_(),b&&b.abort()}function v(e,i,a,o,s){T!==n&&r.cancel(T),_=b=null,e(i,a,o,s),t.$$completeOutstandingRequest(p)}if(t.$$incOutstandingRequestCount(),u=u||t.url(),"jsonp"==Gn(o)){var x="_"+(i.counter++).toString(36);i[x]=function(t){i[x].data=t,i[x].called=!0};var _=s(u.replace("JSON_CALLBACK","angular.callbacks."+x),x,function(t,e){v(c,t,i[x].data,"",e),i[x]=p})}else{var b=e();b.open(o,u,!0),a(f,function(t,e){y(t)&&b.setRequestHeader(e,t)}),b.onload=function(){var t=b.statusText||"",e="response"in b?b.response:b.responseText,n=1223===b.status?204:b.status;0===n&&(n=e?200:"file"==rn(u).protocol?404:0),v(c,n,e,b.getAllResponseHeaders(),t)};var $=function(){v(c,-1,null,null,"")};if(b.onerror=$,b.onabort=$,d&&(b.withCredentials=!0),g)try{b.responseType=g}catch(w){if("json"!==g)throw w}b.send(l||null)}if(h>0)var T=r(m,h);else D(h)&&h.then(m)}}function pe(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function a(t){return"\\\\\\"+t}function o(a,o,h,d){function p(n){return n.replace(l,t).replace(c,e)}function g(t){try{return t=k(t),d&&!y(t)?t:E(t)}catch(e){var n=ri("interr","Can't interpolate: {0}\n{1}",a,e.toString());r(n)}}d=!!d;for(var m,x,_,b=0,$=[],T=[],A=a.length,S=[],C=[];A>b;){if(-1==(m=a.indexOf(t,b))||-1==(x=a.indexOf(e,m+s))){b!==A&&S.push(p(a.substring(b)));break}b!==m&&S.push(p(a.substring(b,m))),_=a.substring(m+s,x),$.push(_),T.push(n(_,g)),b=x+u,C.push(S.length),S.push("")}if(h&&S.length>1)throw ri("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",a);if(!o||$.length){var M=function(t){for(var e=0,n=$.length;n>e;e++){if(d&&v(t[e]))return;S[C[e]]=t[e]}return S.join("")},k=function(t){return h?i.getTrusted(h,t):i.valueOf(t)},E=function(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=q(t)}return t};return f(function(t){var e=0,n=$.length,i=new Array(n);try{for(;n>e;e++)i[e]=T[e](t);return M(i)}catch(o){var s=ri("interr","Can't interpolate: {0}\n{1}",a,o.toString());r(s)}},{exp:a,expressions:$,$$watchDelegate:function(t,e,n){var r;return t.$watchGroup(T,function(n,i){var a=M(n);w(e)&&e.call(this,a,n!==i?r:a,t),r=a},n)}})}}var s=t.length,u=e.length,l=new RegExp(t.replace(/./g,a),"g"),c=new RegExp(e.replace(/./g,a),"g");return o.startSymbol=function(){return t},o.endSymbol=function(){return e},o}]}function ge(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,r){function i(i,o,s,u){var l=e.setInterval,c=e.clearInterval,f=0,h=y(u)&&!u,d=(h?r:n).defer(),p=d.promise;return s=y(s)?s:0,p.then(null,null,i),p.$$intervalId=l(function(){d.notify(f++),s>0&&f>=s&&(d.resolve(f),c(p.$$intervalId),delete a[p.$$intervalId]),h||t.$apply()},o),a[p.$$intervalId]=d,p}var a={};return i.cancel=function(t){return t&&t.$$intervalId in a?(a[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete a[t.$$intervalId],!0):!1},i}]}function me(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(t){return 1===t?"one":"other"}}}}function ve(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=G(e[n]);return e.join("/")}function ye(t,e){var n=rn(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=h(n.port)||ai[n.protocol]||null}function xe(t,e){var n="/"!==t.charAt(0);n&&(t="/"+t);var r=rn(t);e.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=V(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function _e(t,e){return 0===e.indexOf(t)?e.substr(t.length):void 0}function be(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function $e(t){return t.replace(/(#.+)|#$/,"$1")}function we(t){return t.substr(0,be(t).lastIndexOf("/")+1)}function Te(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function Ae(t,e){this.$$html5=!0,e=e||"";var r=we(t);ye(t,this),this.$$parse=function(t){var e=_e(r,t);if(!_(e))throw oi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,r);xe(e,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=W(this.$$search),e=this.$$hash?"#"+G(this.$$hash):"";this.$$url=ve(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=r+this.$$url.substr(1)},this.$$parseLinkUrl=function(i,a){if(a&&"#"===a[0])return this.hash(a.slice(1)),!0;var o,s,u;return(o=_e(t,i))!==n?(s=o,u=(o=_e(e,o))!==n?r+(_e("/",o)||o):t+s):(o=_e(r,i))!==n?u=r+o:r==i+"/"&&(u=r),u&&this.$$parse(u),!!u}}function Se(t,e){var n=we(t);ye(t,this),this.$$parse=function(r){function i(t,e,n){var r,i=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),i.exec(e)?t:(r=i.exec(t),r?r[1]:t)}var a,o=_e(t,r)||_e(n,r);"#"===o.charAt(0)?(a=_e(e,o),v(a)&&(a=o)):a=this.$$html5?o:"",xe(a,this),this.$$path=i(this.$$path,a,t),this.$$compose()},this.$$compose=function(){var n=W(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=ve(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return be(t)==be(e)?(this.$$parse(e),!0):!1}}function Ce(t,e){this.$$html5=!0,Se.apply(this,arguments);var n=we(t);this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o;return t==be(r)?a=r:(o=_e(n,r))?a=t+e+o:n===r+"/"&&(a=n),a&&this.$$parse(a),!!a},this.$$compose=function(){var n=W(this.$$search),r=this.$$hash?"#"+G(this.$$hash):"";this.$$url=ve(this.$$path)+(n?"?"+n:"")+r,this.$$absUrl=t+e+this.$$url}}function Me(t){return function(){return this[t]}}function ke(t,e){return function(n){return v(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function Ee(){var t="",e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return E(t)?(e.enabled=t,this):x(t)?(E(t.enabled)&&(e.enabled=t.enabled),E(t.requireBase)&&(e.requireBase=t.requireBase),E(t.rewriteLinks)&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,a,o){function s(t,e,n){var i=l.url(),a=l.$$state;try{r.url(t,e,n),l.$$state=r.state()}catch(o){throw l.url(i),l.$$state=a,o}}function u(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}var l,c,f,h=r.baseHref(),d=r.url();if(e.enabled){if(!h&&e.requireBase)throw oi("nobase","$location in HTML5 mode requires a tag to be present!");f=Te(d)+(h||"/"),c=i.history?Ae:Ce}else f=be(d),c=Se;l=new c(f,"#"+t),l.$$parseLinkUrl(d,d),l.$$state=r.state();var p=/^\s*(javascript|mailto):/i;a.on("click",function(t){if(e.rewriteLinks&&!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&2!=t.which&&2!=t.button){for(var i=er(t.target);"a"!==N(i[0]);)if(i[0]===a[0]||!(i=i.parent())[0])return;var s=i.prop("href"),u=i.attr("href")||i.attr("xlink:href");x(s)&&"[object SVGAnimatedString]"===s.toString()&&(s=rn(s.animVal).href),p.test(s)||!s||i.attr("target")||t.isDefaultPrevented()||l.$$parseLinkUrl(s,u)&&(t.preventDefault(),l.absUrl()!=r.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}),$e(l.absUrl())!=$e(d)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(t,e){n.$evalAsync(function(){var r,i=l.absUrl(),a=l.$$state;l.$$parse(t),l.$$state=e,r=n.$broadcast("$locationChangeStart",t,i,e,a).defaultPrevented,l.absUrl()===t&&(r?(l.$$parse(i),l.$$state=a,s(i,!1,a)):(g=!1,u(i,a)))}),n.$$phase||n.$digest()}),n.$watch(function(){var t=$e(r.url()),e=$e(l.absUrl()),a=r.state(),o=l.$$replace,c=t!==e||l.$$html5&&i.history&&a!==l.$$state;(g||c)&&(g=!1,n.$evalAsync(function(){var e=l.absUrl(),r=n.$broadcast("$locationChangeStart",e,t,l.$$state,a).defaultPrevented;l.absUrl()===e&&(r?(l.$$parse(t),l.$$state=a):(c&&s(e,o,a===l.$$state?null:l.$$state),u(t,a)))})),l.$$replace=!1}),l}]}function De(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function r(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function i(t){var e=n.console||{},i=e[t]||e.log||p,o=!1;try{o=!!i.apply}catch(s){}return o?function(){var t=[];return a(arguments,function(e){t.push(r(e))}),i.apply(e,t)}:function(t,e){i(t,null==e?"":e)}}return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function Le(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw ui("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function Oe(t,e){if(t){if(t.constructor===t)throw ui("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.window===t)throw ui("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw ui("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw ui("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function Ne(t,e){if(t){if(t.constructor===t)throw ui("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===li||t===ci||t===fi)throw ui("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function Ie(t){return t.constant}function Fe(t,e,n,r,i){Oe(t,i),Oe(e,i);for(var a,o=n.split("."),s=0;o.length>1;s++){a=Le(o.shift(),i);var u=0===s&&e&&e[a]||t[a];u||(u={},t[a]=u),t=Oe(u,i)}return a=Le(o.shift(),i),Oe(t[a],i),t[a]=r,r}function Pe(t){return"constructor"==t}function Re(t,e,r,i,a,o,s){Le(t,o),Le(e,o),Le(r,o),Le(i,o),Le(a,o);var u=function(t){return Oe(t,o)},l=s||Pe(t)?u:g,c=s||Pe(e)?u:g,f=s||Pe(r)?u:g,h=s||Pe(i)?u:g,d=s||Pe(a)?u:g;return function(o,s){var u=s&&s.hasOwnProperty(t)?s:o;return null==u?u:(u=l(u[t]),e?null==u?n:(u=c(u[e]),r?null==u?n:(u=f(u[r]),i?null==u?n:(u=h(u[i]),a?null==u?n:u=d(u[a]):u):u):u):u)}}function je(t,e){return function(n,r){return t(n,r,Oe,e)}}function Ye(t,e,r){var i=e.expensiveChecks,o=i?yi:vi,s=o[t];if(s)return s;var u=t.split("."),l=u.length;if(e.csp)s=6>l?Re(u[0],u[1],u[2],u[3],u[4],r,i):function(t,e){var a,o=0;do a=Re(u[o++],u[o++],u[o++],u[o++],u[o++],r,i)(t,e),e=n,t=a;while(l>o);return a};else{var c="";i&&(c+="s = eso(s, fe);\nl = eso(l, fe);\n");var f=i;a(u,function(t,e){Le(t,r);var n=(e?"s":'((l&&l.hasOwnProperty("'+t+'"))?l:s)')+"."+t;(i||Pe(t))&&(n="eso("+n+", fe)",f=!0),c+="if(s == null) return undefined;\ns="+n+";\n"}),c+="return s;";var h=new Function("s","l","eso","fe",c);h.toString=m(c),f&&(h=je(h,r)),s=h}return s.sharedGetter=!0,s.assign=function(e,n,r){return Fe(e,r,t,n,t)},o[t]=s,s}function ze(t){return w(t.valueOf)?t.valueOf():xi.call(t)}function Ue(){var t=lt(),e=lt();this.$get=["$filter","$sniffer",function(n,r){function i(t){var e=t;return t.sharedGetter&&(e=function(e,n){return t(e,n)},e.literal=t.literal,e.constant=t.constant,e.assign=t.assign),e}function o(t,e){for(var n=0,r=t.length;r>n;n++){var i=t[n];i.constant||(i.inputs?o(i.inputs,e):-1===e.indexOf(i)&&e.push(i))}return e}function s(t,e){return null==t||null==e?t===e:"object"==typeof t&&(t=ze(t),"object"==typeof t)?!1:t===e||t!==t&&e!==e}function u(t,e,n,r){var i,a=r.$$inputs||(r.$$inputs=o(r.inputs,[]));if(1===a.length){var u=s;return a=a[0],t.$watch(function(t){var e=a(t);return s(e,u)||(i=r(t),u=e&&ze(e)),i},e,n)}for(var l=[],c=0,f=a.length;f>c;c++)l[c]=s;return t.$watch(function(t){for(var e=!1,n=0,o=a.length;o>n;n++){var u=a[n](t);(e||(e=!s(u,l[n])))&&(l[n]=u&&ze(u))}return e&&(i=r(t)),i},e,n)}function l(t,e,n,r){var i,a;return i=t.$watch(function(t){return r(t)},function(t,n,r){a=t,w(e)&&e.apply(this,arguments),y(t)&&r.$$postDigest(function(){y(a)&&i()})},n)}function c(t,e,n,r){function i(t){var e=!0;return a(t,function(t){y(t)||(e=!1)}),e}var o,s;return o=t.$watch(function(t){return r(t)},function(t,n,r){s=t,w(e)&&e.call(this,t,n,r),i(t)&&r.$$postDigest(function(){i(s)&&o()})},n)}function f(t,e,n,r){var i;return i=t.$watch(function(t){return r(t)},function(t,n,r){w(e)&&e.apply(this,arguments),i()},n)}function h(t,e){if(!e)return t;var n=t.$$watchDelegate,r=n!==c&&n!==l,i=r?function(n,r){var i=t(n,r);return e(i,n,r)}:function(n,r){var i=t(n,r),a=e(i,n,r);return y(i)?a:i};return t.$$watchDelegate&&t.$$watchDelegate!==u?i.$$watchDelegate=t.$$watchDelegate:e.$stateful||(i.$$watchDelegate=u,i.inputs=[t]),i}var d={csp:r.csp,expensiveChecks:!1},g={csp:r.csp,expensiveChecks:!0};return function(r,a,o){var s,m,v;switch(typeof r){case"string":v=r=r.trim();var y=o?e:t;if(s=y[v],!s){":"===r.charAt(0)&&":"===r.charAt(1)&&(m=!0,r=r.substring(2));var x=o?g:d,_=new gi(x),b=new mi(_,n,x);s=b.parse(r),s.constant?s.$$watchDelegate=f:m?(s=i(s),s.$$watchDelegate=s.literal?c:l):s.inputs&&(s.$$watchDelegate=u),y[v]=s}return h(s,a);case"function":return h(r,a);default:return h(p,a)}}}]}function qe(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Xe(function(e){t.$evalAsync(e)},e)}]}function He(){this.$get=["$browser","$exceptionHandler",function(t,e){return Xe(function(e){t.defer(e)},e)}]}function Xe(t,e){function i(t,e,n){function r(e){return function(n){i||(i=!0,e.call(t,n))}}var i=!1;return[r(e),r(n)]}function o(){this.$$state={status:0}}function s(t,e){return function(n){e.call(t,n)}}function u(t){var r,i,a;a=t.pending,t.processScheduled=!1,t.pending=n;for(var o=0,s=a.length;s>o;++o){i=a[o][0],r=a[o][t.status];try{w(r)?i.resolve(r(t.value)):1===t.status?i.resolve(t.value):i.reject(t.value)}catch(u){i.reject(u),e(u)}}}function l(e){!e.processScheduled&&e.pending&&(e.processScheduled=!0,t(function(){u(e)}))}function c(){this.promise=new o,this.resolve=s(this,this.resolve),this.reject=s(this,this.reject),this.notify=s(this,this.notify)}function f(t){var e=new c,n=0,r=hr(t)?[]:{};return a(t,function(t,i){n++,v(t).then(function(t){r.hasOwnProperty(i)||(r[i]=t,--n||e.resolve(r))},function(t){r.hasOwnProperty(i)||e.reject(t)})}),0===n&&e.resolve(r),e.promise}var h=r("$q",TypeError),d=function(){return new c};o.prototype={then:function(t,e,n){var r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&l(this.$$state),r.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return m(e,!0,t)},function(e){return m(e,!1,t)},e)}},c.prototype={resolve:function(t){this.promise.$$state.status||(t===this.promise?this.$$reject(h("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):this.$$resolve(t))},$$resolve:function(t){var n,r;r=i(this,this.$$resolve,this.$$reject);try{(x(t)||w(t))&&(n=t&&t.then),w(n)?(this.promise.$$state.status=-1,n.call(t,r[0],r[1],this.notify)):(this.promise.$$state.value=t,this.promise.$$state.status=1,l(this.promise.$$state))}catch(a){r[1](a),e(a)}},reject:function(t){this.promise.$$state.status||this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t,this.promise.$$state.status=2,l(this.promise.$$state)},notify:function(n){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&t(function(){for(var t,i,a=0,o=r.length;o>a;a++){i=r[a][0],t=r[a][3];try{i.notify(w(t)?t(n):n)}catch(s){e(s)}}})}};var p=function(t){var e=new c;return e.reject(t),e.promise},g=function(t,e){var n=new c;return e?n.resolve(t):n.reject(t),n.promise},m=function(t,e,n){var r=null;try{w(n)&&(r=n())}catch(i){return g(i,!1)}return D(r)?r.then(function(){return g(t,e)},function(t){return g(t,!1)}):g(t,e)},v=function(t,e,n,r){var i=new c;return i.resolve(t),i.promise.then(e,n,r)},y=function _(t){function e(t){r.resolve(t)}function n(t){r.reject(t)}if(!w(t))throw h("norslvr","Expected resolverFn, got '{0}'",t);if(!(this instanceof _))return new _(t);var r=new c;return t(e,n),r.promise};return y.defer=d,y.reject=p,y.when=v,y.all=f,y}function Be(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame,r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,i=!!n,a=i?function(t){var e=n(t);return function(){r(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return a.supported=i,a}]}function Ve(){function t(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=l(),this.$$ChildScope=null}return e.prototype=t,e}var e=10,n=r("$rootScope"),o=null,s=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(r,u,c,f){function h(t){t.currentScope.$$destroyed=!0}function d(){this.$id=l(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings=null}function g(t){if(T.$$phase)throw n("inprog","{0} already in progress",T.$$phase);T.$$phase=t}function m(){T.$$phase=null}function y(t,e,n){do t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n];while(t=t.$parent)}function _(){}function b(){for(;C.length;)try{C.shift()()}catch(t){u(t)}s=null}function $(){null===s&&(s=f.defer(function(){T.$apply(b)}))}d.prototype={constructor:d,$new:function(e,n){var r;return n=n||this,e?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=t(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,(e||n!=this)&&r.$on("$destroy",h),r},$watch:function(t,e,n){var r=c(t);if(r.$$watchDelegate)return r.$$watchDelegate(this,e,n,r);var i=this,a=i.$$watchers,s={fn:e,last:_,get:r,exp:t,eq:!!n};return o=null,w(e)||(s.fn=p),a||(a=i.$$watchers=[]),a.unshift(s),function(){I(a,s),o=null}},$watchGroup:function(t,e){function n(){u=!1,l?(l=!1,e(i,i,s)):e(i,r,s)}var r=new Array(t.length),i=new Array(t.length),o=[],s=this,u=!1,l=!0;if(!t.length){var c=!0;return s.$evalAsync(function(){c&&e(i,i,s)}),function(){c=!1}}return 1===t.length?this.$watch(t[0],function(t,n,a){i[0]=t,r[0]=n,e(i,t===n?i:r,a)}):(a(t,function(t,e){var a=s.$watch(t,function(t,a){i[e]=t,r[e]=a,u||(u=!0,s.$evalAsync(n))});o.push(a)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(t,e){function n(t){a=t;var e,n,r,s,u;if(!v(a)){if(x(a))if(i(a)){o!==d&&(o=d,m=o.length=0,f++),e=a.length,m!==e&&(f++,o.length=m=e);for(var l=0;e>l;l++)u=o[l],s=a[l],r=u!==u&&s!==s,r||u===s||(f++,o[l]=s)}else{o!==p&&(o=p={},m=0,f++),e=0;for(n in a)a.hasOwnProperty(n)&&(e++,s=a[n],u=o[n],n in o?(r=u!==u&&s!==s,r||u===s||(f++,o[n]=s)):(m++,o[n]=s,f++));if(m>e){f++;for(n in o)a.hasOwnProperty(n)||(m--,delete o[n])}}else o!==a&&(o=a,f++);return f}}function r(){if(g?(g=!1,e(a,a,u)):e(a,s,u),l)if(x(a))if(i(a)){s=new Array(a.length);for(var t=0;t1,f=0,h=c(t,n),d=[],p={},g=!0,m=0;return this.$watch(h,r)},$digest:function(){var t,r,i,a,l,c,h,d,p,v,y=e,x=this,$=[];g("$digest"),f.$$checkUrlChange(),this===T&&null!==s&&(f.defer.cancel(s), -b()),o=null;do{for(c=!1,d=x;A.length;){try{v=A.shift(),v.scope.$eval(v.expression,v.locals)}catch(C){u(C)}o=null}t:do{if(a=d.$$watchers)for(l=a.length;l--;)try{if(t=a[l])if((r=t.get(d))===(i=t.last)||(t.eq?R(r,i):"number"==typeof r&&"number"==typeof i&&isNaN(r)&&isNaN(i))){if(t===o){c=!1;break t}}else c=!0,o=t,t.last=t.eq?F(r,null):r,t.fn(r,i===_?r:i,d),5>y&&(p=4-y,$[p]||($[p]=[]),$[p].push({msg:w(t.exp)?"fn: "+(t.exp.name||t.exp.toString()):t.exp,newVal:r,oldVal:i}))}catch(C){u(C)}if(!(h=d.$$childHead||d!==x&&d.$$nextSibling))for(;d!==x&&!(h=d.$$nextSibling);)d=d.$parent}while(d=h);if((c||A.length)&&!y--)throw m(),n("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,$)}while(c||A.length);for(m();S.length;)try{S.shift()()}catch(C){u(C)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;if(this.$broadcast("$destroy"),this.$$destroyed=!0,this!==T){for(var e in this.$$listenerCount)y(this,this.$$listenerCount[e],e);t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=p,this.$on=this.$watch=this.$watchGroup=function(){return p},this.$$listeners={},this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}}},$eval:function(t,e){return c(t)(this,e)},$evalAsync:function(t,e){T.$$phase||A.length||f.defer(function(){A.length&&T.$digest()}),A.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){S.push(t)},$apply:function(t){try{return g("$apply"),this.$eval(t)}catch(e){u(e)}finally{m();try{T.$digest()}catch(e){throw u(e),e}}},$applyAsync:function(t){function e(){n.$eval(t)}var n=this;t&&C.push(e),$()},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var r=this;do r.$$listenerCount[t]||(r.$$listenerCount[t]=0),r.$$listenerCount[t]++;while(r=r.$parent);var i=this;return function(){var r=n.indexOf(e);-1!==r&&(n[r]=null,y(i,1,t))}},$emit:function(t,e){var n,r,i,a=[],o=this,s=!1,l={name:t,targetScope:o,stopPropagation:function(){s=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},c=j([l],arguments,1);do{for(n=o.$$listeners[t]||a,l.currentScope=o,r=0,i=n.length;i>r;r++)if(n[r])try{n[r].apply(null,c)}catch(f){u(f)}else n.splice(r,1),r--,i--;if(s)return l.currentScope=null,l;o=o.$parent}while(o);return l.currentScope=null,l},$broadcast:function(t,e){var n=this,r=n,i=n,a={name:t,targetScope:n,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return a;for(var o,s,l,c=j([a],arguments,1);r=i;){for(a.currentScope=r,o=r.$$listeners[t]||[],s=0,l=o.length;l>s;s++)if(o[s])try{o[s].apply(null,c)}catch(f){u(f)}else o.splice(s,1),s--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return a.currentScope=null,a}};var T=new d,A=T.$$asyncQueue=[],S=T.$$postDigestQueue=[],C=T.$$applyAsyncQueue=[];return T}]}function We(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){var i,a=r?e:t;return i=rn(n).href,""===i||i.match(a)?n:"unsafe:"+i}}}function Ge(t){if("self"===t)return t;if(_(t)){if(t.indexOf("***")>-1)throw _i("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=pr(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(T(t))return new RegExp("^"+t.source+"$");throw _i("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Ze(t){var e=[];return y(t)&&a(t,function(t){e.push(Ge(t))}),e}function Je(){this.SCE_CONTEXTS=bi;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=Ze(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=Ze(t)),e},this.$get=["$injector",function(r){function i(t,e){return"self"===t?an(e):!!t.exec(e.href)}function a(n){var r,a,o=rn(n.toString()),s=!1;for(r=0,a=t.length;a>r;r++)if(i(t[r],o)){s=!0;break}if(s)for(r=0,a=e.length;a>r;r++)if(i(e[r],o)){s=!1;break}return s}function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function s(t,e){var r=h.hasOwnProperty(t)?h[t]:null;if(!r)throw _i("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||e===n||""===e)return e;if("string"!=typeof e)throw _i("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new r(e)}function u(t){return t instanceof f?t.$$unwrapTrustedValue():t}function l(t,e){if(null===e||e===n||""===e)return e;var r=h.hasOwnProperty(t)?h[t]:null;if(r&&e instanceof r)return e.$$unwrapTrustedValue();if(t===bi.RESOURCE_URL){if(a(e))return e;throw _i("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===bi.HTML)return c(e);throw _i("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(t){throw _i("unsafe","Attempting to use an unsafe value in a safe context.")};r.has("$sanitize")&&(c=r.get("$sanitize"));var f=o(),h={};return h[bi.HTML]=o(f),h[bi.CSS]=o(f),h[bi.URL]=o(f),h[bi.JS]=o(f),h[bi.RESOURCE_URL]=o(h[bi.URL]),{trustAs:s,getTrusted:l,valueOf:u}}]}function Ke(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){if(t&&8>tr)throw _i("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=P(bi);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=g),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:e(n,function(e){return r.getTrusted(t,e)})};var i=r.parseAs,o=r.getTrusted,s=r.trustAs;return a(bi,function(t,e){var n=Gn(e);r[gt("parse_as_"+n)]=function(e){return i(t,e)},r[gt("get_trusted_"+n)]=function(e){return o(t,e)},r[gt("trust_as_"+n)]=function(e){return s(t,e)}}),r}]}function Qe(){this.$get=["$window","$document",function(t,e){var n,r,i={},a=h((/android (\d+)/.exec(Gn((t.navigator||{}).userAgent))||[])[1]),o=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,l=s.body&&s.body.style,c=!1,f=!1;if(l){for(var d in l)if(r=u.exec(d)){n=r[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in l&&"webkit"),c=!!("transition"in l||n+"Transition"in l),f=!!("animation"in l||n+"Animation"in l),!a||c&&f||(c=_(s.body.style.webkitTransition),f=_(s.body.style.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||4>a||o),hasEvent:function(t){if("input"===t&&11>=tr)return!1;if(v(i[t])){var e=s.createElement("div");i[t]="on"+t in e}return i[t]},csp:gr(),vendorPrefix:n,transitions:c,animations:f,android:a}}]}function tn(){this.$get=["$templateCache","$http","$q",function(t,e,n){function r(i,a){function o(t){if(!a)throw Gr("tpload","Failed to load template: {0}",i);return n.reject(t)}r.totalPendingRequests++;var s=e.defaults&&e.defaults.transformResponse;hr(s)?s=s.filter(function(t){return t!==ie}):s===ie&&(s=null);var u={cache:t,transformResponse:s};return e.get(i,u)["finally"](function(){r.totalPendingRequests--}).then(function(t){return t.data},o)}return r.totalPendingRequests=0,r}]}function en(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};return r.findBindings=function(t,e,n){var r=t.getElementsByClassName("ng-binding"),i=[];return a(r,function(t){var r=lr.element(t).data("$binding");r&&a(r,function(r){if(n){var a=new RegExp("(^|\\s)"+pr(e)+"(\\s|\\||$)");a.test(r)&&i.push(t)}else-1!=r.indexOf(e)&&i.push(t)})}),i},r.findModels=function(t,e,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;it;t=Math.abs(t);var o=t+"",s="",u=[],l=!1;if(-1!==o.indexOf("e")){var c=o.match(/([\d\.]+)e(-?)(\d+)/);c&&"-"==c[2]&&c[3]>i+1?t=0:(s=o,l=!0)}if(l)i>0&&1>t&&(s=t.toFixed(i),t=parseFloat(s));else{var f=(o.split(Ti)[1]||"").length;v(i)&&(i=Math.min(Math.max(e.minFrac,f),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+i)).toString()+"e"+-i);var h=(""+t).split(Ti),d=h[0];h=h[1]||"";var p,g=0,m=e.lgSize,y=e.gSize;if(d.length>=m+y)for(g=d.length-m,p=0;g>p;p++)(g-p)%y===0&&0!==p&&(s+=n),s+=d.charAt(p);for(p=g;pt&&(r="-",t=-t),t=""+t;t.length0||a>-n)&&(a+=n),0===a&&-12==n&&(a=12),pn(a,e,r)}}function mn(t,e){return function(n,r){var i=n["get"+t](),a=Jn(e?"SHORT"+t:t);return r[a][i]}}function vn(t){var e=-1*t.getTimezoneOffset(),n=e>=0?"+":"";return n+=pn(Math[e>0?"floor":"ceil"](e/60),2)+pn(Math.abs(e%60),2)}function yn(t){var e=new Date(t,0,1).getDay();return new Date(t,0,(4>=e?5:12)-e)}function xn(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function _n(t){return function(e){var n=yn(e.getFullYear()),r=xn(e),i=+r-+n,a=1+Math.round(i/6048e5);return pn(a,t)}}function bn(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function $n(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]}function wn(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]}function Tn(t){function e(t){var e;if(e=t.match(n)){var r=new Date(0),i=0,a=0,o=e[8]?r.setUTCFullYear:r.setFullYear,s=e[8]?r.setUTCHours:r.setHours;e[9]&&(i=h(e[9]+e[10]),a=h(e[9]+e[11])),o.call(r,h(e[1]),h(e[2])-1,h(e[3]));var u=h(e[4]||0)-i,l=h(e[5]||0)-a,c=h(e[6]||0),f=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(r,u,l,c,f),r}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var o,s,u="",l=[];if(r=r||"mediumDate",r=t.DATETIME_FORMATS[r]||r,_(n)&&(n=Ci.test(n)?h(n):e(n)),b(n)&&(n=new Date(n)),!$(n))return n;for(;r;)s=Si.exec(r),s?(l=j(l,s,1),r=l.pop()):(l.push(r),r=null);return i&&"UTC"===i&&(n=new Date(n.getTime()),n.setMinutes(n.getMinutes()+n.getTimezoneOffset())),a(l,function(e){o=Ai[e],u+=o?o(n,t.DATETIME_FORMATS):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function An(){return function(t,e){return v(e)&&(e=2),q(t,e)}}function Sn(){return function(t,e){return b(t)&&(t=t.toString()),hr(t)||_(t)?(e=Math.abs(Number(e))===1/0?Number(e):h(e),e?e>0?t.slice(0,e):t.slice(e):_(t)?"":[]):t}}function Cn(t){return function(e,n,r){function a(t,e){for(var r=0;rt?-1:1):r>n?-1:1}return i(e)?(n=hr(n)?n:[n],0===n.length&&(n=["+"]),n=n.map(function(e){var n=!1,r=e||g;if(_(e)){if(("+"==e.charAt(0)||"-"==e.charAt(0))&&(n="-"==e.charAt(0),e=e.substring(1)),""===e)return o(l,n);if(r=t(e),r.constant){var i=r();return o(function(t,e){return l(t[i],e[i])},n)}}return o(function(t,e){return l(r(t),r(e))},n)}),ir.call(e).sort(o(a,r))):e}}function Mn(t){return w(t)&&(t={link:t}),t.restrict=t.restrict||"AC",m(t)}function kn(t,e){t.$name=e}function En(t,e,r,i,o){var s=this,u=[],l=s.$$parentForm=t.parent().controller("form")||Li;s.$error={},s.$$success={},s.$pending=n,s.$name=o(e.name||e.ngForm||"")(r),s.$dirty=!1,s.$pristine=!0,s.$valid=!0,s.$invalid=!1,s.$submitted=!1,l.$addControl(s),s.$rollbackViewValue=function(){a(u,function(t){t.$rollbackViewValue()})},s.$commitViewValue=function(){a(u,function(t){t.$commitViewValue()})},s.$addControl=function(t){ot(t.$name,"input"),u.push(t),t.$name&&(s[t.$name]=t)},s.$$renameControl=function(t,e){var n=t.$name;s[n]===t&&delete s[n],s[e]=t,t.$name=e},s.$removeControl=function(t){t.$name&&s[t.$name]===t&&delete s[t.$name],a(s.$pending,function(e,n){s.$setValidity(n,null,t)}),a(s.$error,function(e,n){s.$setValidity(n,null,t)}),a(s.$$success,function(e,n){s.$setValidity(n,null,t)}),I(u,t)},Xn({ctrl:this,$element:t,set:function(t,e,n){var r=t[e];if(r){var i=r.indexOf(n);-1===i&&r.push(n)}else t[e]=[n]},unset:function(t,e,n){var r=t[e];r&&(I(r,n),0===r.length&&delete t[e])},parentForm:l,$animate:i}),s.$setDirty=function(){i.removeClass(t,pa),i.addClass(t,ga),s.$dirty=!0,s.$pristine=!1,l.$setDirty()},s.$setPristine=function(){i.setClass(t,pa,ga+" "+Oi),s.$dirty=!1,s.$pristine=!0,s.$submitted=!1,a(u,function(t){t.$setPristine()})},s.$setUntouched=function(){a(u,function(t){t.$setUntouched()})},s.$setSubmitted=function(){i.addClass(t,Oi),s.$submitted=!0,l.$setSubmitted()}}function Dn(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})}function Ln(t,e,n,r,i,a){On(t,e,n,r,i,a),Dn(r)}function On(t,e,n,r,i,a){var o=Gn(e[0].type);if(!i.android){var s=!1;e.on("compositionstart",function(t){s=!0}),e.on("compositionend",function(){s=!1,u()})}var u=function(t){if(l&&(a.defer.cancel(l),l=null),!s){var i=e.val(),u=t&&t.type;"password"===o||n.ngTrim&&"false"===n.ngTrim||(i=dr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,u)}};if(i.hasEvent("input"))e.on("input",u);else{var l,c=function(t,e,n){l||(l=a.defer(function(){l=null,e&&e.value===n||u(t)}))};e.on("keydown",function(t){var e=t.keyCode;91===e||e>15&&19>e||e>=37&&40>=e||c(t,this,this.value)}),i.hasEvent("paste")&&e.on("paste cut",c)}e.on("change",u),r.$render=function(){e.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)}}function Nn(t,e){if($(t))return t;if(_(t)){qi.lastIndex=0;var n=qi.exec(t);if(n){var r=+n[1],i=+n[2],a=0,o=0,s=0,u=0,l=yn(r),c=7*(i-1);return e&&(a=e.getHours(),o=e.getMinutes(),s=e.getSeconds(),u=e.getMilliseconds()),new Date(r,0,l.getDate()+c,a,o,s,u)}}return NaN}function In(t,e){return function(n,r){var i,o;if($(n))return n;if(_(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Pi.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n))return i.shift(),o=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},a(i,function(t,n){n=m},s.$observe("min",function(t){m=d(t),u.$validate()})}if(y(s.max)||s.ngMax){var x;u.$validators.max=function(t){return!h(t)||v(x)||r(t)<=x},s.$observe("max",function(t){x=d(t),u.$validate()})}}}function Pn(t,e,r,i){var a=e[0],o=i.$$hasNativeValidators=x(a.validity);o&&i.$parsers.push(function(t){var r=e.prop(Wn)||{};return r.badInput&&!r.typeMismatch?n:t})}function Rn(t,e,r,i,a,o){if(Pn(t,e,r,i),On(t,e,r,i,a,o),i.$$parserName="number",i.$parsers.push(function(t){return i.$isEmpty(t)?null:Yi.test(t)?parseFloat(t):n}),i.$formatters.push(function(t){if(!i.$isEmpty(t)){if(!b(t))throw xa("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}),y(r.min)||r.ngMin){var s;i.$validators.min=function(t){return i.$isEmpty(t)||v(s)||t>=s},r.$observe("min",function(t){y(t)&&!b(t)&&(t=parseFloat(t,10)),s=b(t)&&!isNaN(t)?t:n,i.$validate()})}if(y(r.max)||r.ngMax){var u;i.$validators.max=function(t){return i.$isEmpty(t)||v(u)||u>=t},r.$observe("max",function(t){y(t)&&!b(t)&&(t=parseFloat(t,10)),u=b(t)&&!isNaN(t)?t:n,i.$validate()})}}function jn(t,e,n,r,i,a){On(t,e,n,r,i,a),Dn(r),r.$$parserName="url",r.$validators.url=function(t,e){var n=t||e;return r.$isEmpty(n)||Ri.test(n)}}function Yn(t,e,n,r,i,a){On(t,e,n,r,i,a),Dn(r),r.$$parserName="email",r.$validators.email=function(t,e){var n=t||e;return r.$isEmpty(n)||ji.test(n)}}function zn(t,e,n,r){v(n.name)&&e.attr("name",l());var i=function(t){e[0].checked&&r.$setViewValue(n.value,t&&t.type)};e.on("click",i),r.$render=function(){var t=n.value;e[0].checked=t==r.$viewValue},n.$observe("value",r.$render)}function Un(t,e,n,i,a){var o;if(y(i)){if(o=t(i),!o.constant)throw r("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return o(e)}return a}function qn(t,e,n,r,i,a,o,s){var u=Un(s,t,"ngTrueValue",n.ngTrueValue,!0),l=Un(s,t,"ngFalseValue",n.ngFalseValue,!1),c=function(t){r.$setViewValue(e[0].checked,t&&t.type)};e.on("click",c),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return t===!1},r.$formatters.push(function(t){return R(t,u)}),r.$parsers.push(function(t){return t?u:l})}function Hn(t,e){return t="ngClass"+t,["$animate",function(n){function r(t,e){var n=[];t:for(var r=0;r0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&r.push(t))}),s.data("$classCounts",n),r.join(" ")}function h(t,e){var i=r(e,t),a=r(t,e);i=f(i,1),a=f(a,-1),i&&i.length&&n.addClass(s,i),a&&a.length&&n.removeClass(s,a)}function d(t){if(e===!0||o.$index%2===e){var n=i(t||[]);if(p){if(!R(t,p)){var r=i(p);h(r,n)}}else l(n)}p=P(t)}var p;o.$watch(u[t],d,!0),u.$observe("class",function(e){d(o.$eval(u[t]))}),"ngClass"!==t&&o.$watch("$index",function(n,r){var a=1&n;if(a!==(1&r)){var s=i(o.$eval(u[t]));a===e?l(s):c(s)}})}}}]}function Xn(t){function e(t,e,u){e===n?r("$pending",t,u):i("$pending",t,u),E(e)?e?(f(s.$error,t,u),c(s.$$success,t,u)):(c(s.$error,t,u),f(s.$$success,t,u)):(f(s.$error,t,u),f(s.$$success,t,u)),s.$pending?(a(ya,!0),s.$valid=s.$invalid=n,o("",null)):(a(ya,!1),s.$valid=Bn(s.$error),s.$invalid=!s.$valid,o("",s.$valid));var l;l=s.$pending&&s.$pending[t]?n:s.$error[t]?!1:s.$$success[t]?!0:null,o(t,l),h.$setValidity(t,l,s)}function r(t,e,n){s[t]||(s[t]={}),c(s[t],e,n)}function i(t,e,r){s[t]&&f(s[t],e,r),Bn(s[t])&&(s[t]=n)}function a(t,e){e&&!l[t]?(d.addClass(u,t),l[t]=!0):!e&&l[t]&&(d.removeClass(u,t),l[t]=!1)}function o(t,e){t=t?"-"+nt(t,"-"):"",a(ha+t,e===!0),a(da+t,e===!1)}var s=t.ctrl,u=t.$element,l={},c=t.set,f=t.unset,h=t.parentForm,d=t.$animate;l[da]=!(l[ha]=u.hasClass(ha)),s.$setValidity=e}function Bn(t){if(t)for(var e in t)return!1;return!0}var Vn=/^\/(.+)\/([a-z]*)$/,Wn="validity",Gn=function(t){return _(t)?t.toLowerCase():t},Zn=Object.prototype.hasOwnProperty,Jn=function(t){return _(t)?t.toUpperCase():t},Kn=function(t){return _(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},Qn=function(t){return _(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(Gn=Kn,Jn=Qn);var tr,er,nr,rr,ir=[].slice,ar=[].splice,or=[].push,sr=Object.prototype.toString,ur=r("ng"),lr=t.angular||(t.angular={}),cr=0;tr=e.documentMode,p.$inject=[],g.$inject=[];var fr,hr=Array.isArray,dr=function(t){return _(t)?t.trim():t},pr=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#(?:<\/\1>|)$/,Nr=/<|&#?\w+;/,Ir=/<([\w:]+)/,Fr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pr={option:[1,'"],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Pr.optgroup=Pr.option,Pr.tbody=Pr.tfoot=Pr.colgroup=Pr.caption=Pr.thead,Pr.th=Pr.td;var Rr=_t.prototype={ready:function(n){function r(){i||(i=!0,n())}var i=!1;"complete"===e.readyState?setTimeout(r):(this.on("DOMContentLoaded",r),_t(t).on("load",r))},toString:function(){var t=[];return a(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return er(t>=0?this[t]:this[this.length+t])},length:0,push:or,sort:[].sort,splice:[].splice},jr={};a("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){jr[Gn(t)]=t});var Yr={};a("input,select,option,textarea,button,form,details".split(","),function(t){Yr[t]=!0});var zr={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};a({data:St,removeData:Tt},function(t,e){_t[e]=t}),a({data:St,inheritedData:Lt,scope:function(t){return er.data(t,"$scope")||Lt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return er.data(t,"$isolateScope")||er.data(t,"$isolateScopeNoTemplate")},controller:Dt,injector:function(t){return Lt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Ct,css:function(t,e,n){return e=gt(e),y(n)?void(t.style[e]=n):t.style[e]},attr:function(t,e,r){var i=Gn(e);if(jr[i]){if(!y(r))return t[e]||(t.attributes.getNamedItem(e)||p).specified?i:n;r?(t[e]=!0,t.setAttribute(e,i)):(t[e]=!1,t.removeAttribute(i))}else if(y(r))t.setAttribute(e,r);else if(t.getAttribute){var a=t.getAttribute(e,2);return null===a?n:a}},prop:function(t,e,n){return y(n)?void(t[e]=n):t[e]},text:function(){function t(t,e){if(v(e)){var n=t.nodeType;return n===xr||n===_r?t.textContent:""}t.textContent=e}return t.$dv="",t}(),val:function(t,e){if(v(e)){if(t.multiple&&"select"===N(t)){var n=[];return a(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){return v(e)?t.innerHTML:($t(t,!0),void(t.innerHTML=e))},empty:Ot},function(t,e){_t.prototype[e]=function(e,r){var i,a,o=this.length;if(t!==Ot&&(2==t.length&&t!==Ct&&t!==Dt?e:r)===n){if(x(e)){for(i=0;o>i;i++)if(t===St)t(this[i],e);else for(a in e)t(this[i],a,e[a]);return this}for(var s=t.$dv,u=s===n?Math.min(o,1):o,l=0;u>l;l++){var c=t(this[l],e,r);s=s?s+c:c}return s}for(i=0;o>i;i++)t(this[i],e,r);return this}}),a({removeData:Tt,on:function Ba(t,e,n,r){if(y(r))throw Lr("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(vt(t)){var i=At(t,!0),a=i.events,o=i.handle;o||(o=i.handle=Rt(t,a));for(var s=e.indexOf(" ")>=0?e.split(" "):[e],u=s.length;u--;){e=s[u];var l=a[e];l||(a[e]=[],"mouseenter"===e||"mouseleave"===e?Ba(t,Dr[e],function(t){var n=this,r=t.relatedTarget;(!r||r!==n&&!n.contains(r))&&o(t,e)}):"$destroy"!==e&&Cr(t,e,o),l=a[e]),l.push(n)}}},off:wt,one:function(t,e,n){t=er(t),t.on(e,function r(){t.off(e,n),t.off(e,r)}),t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;$t(t),a(new _t(e),function(e){n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e})},children:function(t){var e=[];return a(t.childNodes,function(t){t.nodeType===xr&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var n=t.nodeType;if(n===xr||n===wr){e=new _t(e);for(var r=0,i=e.length;i>r;r++){var a=e[r];t.appendChild(a)}}},prepend:function(t,e){if(t.nodeType===xr){var n=t.firstChild;a(new _t(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=er(e).eq(0).clone()[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:Nt,detach:function(t){Nt(t,!0)},after:function(t,e){var n=t,r=t.parentNode;e=new _t(e);for(var i=0,a=e.length;a>i;i++){var o=e[i];r.insertBefore(o,n.nextSibling),n=o}},addClass:kt,removeClass:Mt,toggleClass:function(t,e,n){e&&a(e.split(" "),function(e){var r=n;v(r)&&(r=!Ct(t,e)),(r?kt:Mt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==wr?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:bt,triggerHandler:function(t,e,n){var r,i,o,s=e.type||e,u=At(t),l=u&&u.events,c=l&&l[s];c&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:p,type:s,target:t},e.type&&(r=f(r,e)),i=P(c),o=n?[r].concat(n):[r],a(i,function(e){r.isImmediatePropagationStopped()||e.apply(t,o)}))}},function(t,e){_t.prototype[e]=function(e,n,r){for(var i,a=0,o=this.length;o>a;a++)v(i)?(i=t(this[a],e,n,r),y(i)&&(i=er(i))):Et(i,t(this[a],e,n,r));return y(i)?i:this},_t.prototype.bind=_t.prototype.on,_t.prototype.unbind=_t.prototype.off}),zt.prototype={put:function(t,e){this[Yt(t,this.nextUid)]=e},get:function(t){return this[Yt(t,this.nextUid)]},remove:function(t){var e=this[t=Yt(t,this.nextUid)];return delete this[t],e}};var Ur=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,qr=/,/,Hr=/^\s*(_?)(\S+?)\1\s*$/,Xr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Br=r("$injector");Ht.$$annotate=qt;var Vr=r("$animate"),Wr=["$provide",function(t){this.$$selectors={},this.register=function(e,n){var r=e+"-animation";if(e&&"."!=e.charAt(0))throw Vr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);this.$$selectors[e.substr(1)]=r,t.factory(r,n)},this.classNameFilter=function(t){return 1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null),this.$$classNameFilter},this.$get=["$$q","$$asyncCallback","$rootScope",function(t,e,n){function r(e){var r,i=t.defer();return i.promise.$$cancelFn=function(){r&&r()},n.$$postDigest(function(){r=e(function(){i.resolve()})}),i.promise}function i(t,e){var n=[],r=[],i=lt();return a((t.attr("class")||"").split(/\s+/),function(t){i[t]=!0}),a(e,function(t,e){var a=i[e];t===!1&&a?r.push(e):t!==!0||a||n.push(e)}),n.length+r.length>0&&[n.length?n:null,r.length?r:null]}function o(t,e,n){for(var r=0,i=e.length;i>r;++r){var a=e[r];t[a]=n}}function s(){return l||(l=t.defer(),e(function(){l.resolve(),l=null})),l.promise}function u(t,e){if(lr.isObject(e)){var n=f(e.from||{},e.to||{});t.css(n)}}var l;return{animate:function(t,e,n){return u(t,{from:e,to:n}),s()},enter:function(t,e,n,r){return u(t,r),n?n.after(t):e.prepend(t),s()},leave:function(t,e){return u(t,e),t.remove(),s()},move:function(t,e,n,r){return this.enter(t,e,n,r)},addClass:function(t,e,n){return this.setClass(t,e,[],n)},$$addClassImmediately:function(t,e,n){return t=er(t),e=_(e)?e:hr(e)?e.join(" "):"",a(t,function(t){kt(t,e)}),u(t,n),s()},removeClass:function(t,e,n){return this.setClass(t,[],e,n)},$$removeClassImmediately:function(t,e,n){return t=er(t),e=_(e)?e:hr(e)?e.join(" "):"",a(t,function(t){Mt(t,e)}),u(t,n),s()},setClass:function(t,e,n,a){var s=this,u="$$animateClasses",l=!1;t=er(t);var c=t.data(u);c?a&&c.options&&(c.options=lr.extend(c.options||{},a)):(c={classes:{},options:a},l=!0);var f=c.classes;return e=hr(e)?e:e.split(" "),n=hr(n)?n:n.split(" "),o(f,e,!0),o(f,n,!1),l&&(c.promise=r(function(e){var n=t.data(u);if(t.removeData(u),n){var r=i(t,n.classes);r&&s.$$setClassImmediately(t,r[0],r[1],n.options)}e()}),t.data(u,c)),c.promise},$$setClassImmediately:function(t,e,n,r){ -return e&&this.$$addClassImmediately(t,e),n&&this.$$removeClassImmediately(t,n),u(t,r),s()},enabled:p,cancel:p}}]}],Gr=r("$compile");Jt.$inject=["$provide","$$sanitizeUriProvider"];var Zr=/^((?:x|data)[\:\-_])/i,Jr=r("$controller"),Kr="application/json",Qr={"Content-Type":Kr+";charset=utf-8"},ti=/^\[|^\{(?!\{)/,ei={"[":/]$/,"{":/}$/},ni=/^\)\]\}',?\n/,ri=r("$interpolate"),ii=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ai={http:80,https:443,ftp:21},oi=r("$location"),si={$$html5:!1,$$replace:!1,absUrl:Me("$$absUrl"),url:function(t){if(v(t))return this.$$url;var e=ii.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:Me("$$protocol"),host:Me("$$host"),port:Me("$$port"),path:ke("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(_(t)||b(t))t=t.toString(),this.$$search=V(t);else{if(!x(t))throw oi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=F(t,{}),a(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:v(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:ke("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};a([Ce,Se,Ae],function(t){t.prototype=Object.create(si),t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==Ae||!this.$$html5)throw oi("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(e)?null:e,this}});var ui=r("$parse"),li=Function.prototype.call,ci=Function.prototype.apply,fi=Function.prototype.bind,hi=lt();a({"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:function(){}},function(t,e){t.constant=t.literal=t.sharedGetter=!0,hi[e]=t}),hi["this"]=function(t){return t},hi["this"].sharedGetter=!0;var di=f(lt(),{"+":function(t,e,r,i){return r=r(t,e),i=i(t,e),y(r)?y(i)?r+i:r:y(i)?i:n},"-":function(t,e,n,r){return n=n(t,e),r=r(t,e),(y(n)?n:0)-(y(r)?r:0)},"*":function(t,e,n,r){return n(t,e)*r(t,e)},"/":function(t,e,n,r){return n(t,e)/r(t,e)},"%":function(t,e,n,r){return n(t,e)%r(t,e)},"===":function(t,e,n,r){return n(t,e)===r(t,e)},"!==":function(t,e,n,r){return n(t,e)!==r(t,e)},"==":function(t,e,n,r){return n(t,e)==r(t,e)},"!=":function(t,e,n,r){return n(t,e)!=r(t,e)},"<":function(t,e,n,r){return n(t,e)":function(t,e,n,r){return n(t,e)>r(t,e)},"<=":function(t,e,n,r){return n(t,e)<=r(t,e)},">=":function(t,e,n,r){return n(t,e)>=r(t,e)},"&&":function(t,e,n,r){return n(t,e)&&r(t,e)},"||":function(t,e,n,r){return n(t,e)||r(t,e)},"!":function(t,e,n){return!n(t,e)},"=":!0,"|":!0}),pi={n:"\n",f:"\f",r:"\r",t:" ",v:" ","'":"'",'"':'"'},gi=function(t){this.options=t};gi.prototype={constructor:gi,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.index="0"&&"9">=t&&"string"==typeof t},isWhitespace:function(t){return" "===t||"\r"===t||" "===t||"\n"===t||" "===t||" "===t},isIdent:function(t){return t>="a"&&"z">=t||t>="A"&&"Z">=t||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var r=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw ui("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,r,this.text)},readNumber:function(){for(var t="",e=this.index;this.indext){var a=this.tokens[t],o=a.text;if(o===e||o===n||o===r||o===i||!e&&!n&&!r&&!i)return a}return!1},expect:function(t,e,n,r){var i=this.peek(t,e,n,r);return i?(this.tokens.shift(),i):!1},consume:function(t){if(0===this.tokens.length)throw ui("ueoe","Unexpected end of expression: {0}",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},unaryFn:function(t,e){var n=di[t];return f(function(t,r){return n(t,r,e)},{constant:e.constant,inputs:[e]})},binaryFn:function(t,e,n,r){var i=di[e];return f(function(e,r){return i(e,r,t,n)},{constant:t.constant&&n.constant,inputs:!r&&[t,n]})},identifier:function(){for(var t=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)t+=this.consume().text+this.consume().text;return Ye(t,this.options,this.text)},constant:function(){var t=this.consume().value;return f(function(){return t},{constant:!0,literal:!0})},statements:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.filterChain()),!this.expect(";"))return 1===t.length?t[0]:function(e,n){for(var r,i=0,a=t.length;a>i;i++)r=t[i](e,n);return r}},filterChain:function(){for(var t,e=this.expression();t=this.expect("|");)e=this.filter(e);return e},filter:function(t){var e,r,i=this.$filter(this.consume().text);if(this.peek(":"))for(e=[],r=[];this.expect(":");)e.push(this.expression());var a=[t].concat(e||[]);return f(function(a,o){var s=t(a,o);if(r){r[0]=s;for(var u=e.length;u--;)r[u+1]=e[u](a,o);return i.apply(n,r)}return i(s)},{constant:!i.$stateful&&a.every(Ie),inputs:!i.$stateful&&a})},expression:function(){return this.assignment()},assignment:function(){var t,e,n=this.ternary();return(e=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,e.index)+"] can not be assigned to",e),t=this.ternary(),f(function(e,r){return n.assign(e,t(e,r),r)},{inputs:[n,t]})):n},ternary:function(){var t,e,n=this.logicalOR();if((e=this.expect("?"))&&(t=this.assignment(),this.consume(":"))){var r=this.assignment();return f(function(e,i){return n(e,i)?t(e,i):r(e,i)},{constant:n.constant&&t.constant&&r.constant})}return n},logicalOR:function(){for(var t,e=this.logicalAND();t=this.expect("||");)e=this.binaryFn(e,t.text,this.logicalAND(),!0);return e},logicalAND:function(){for(var t,e=this.equality();t=this.expect("&&");)e=this.binaryFn(e,t.text,this.equality(),!0);return e},equality:function(){for(var t,e=this.relational();t=this.expect("==","!=","===","!==");)e=this.binaryFn(e,t.text,this.relational());return e},relational:function(){for(var t,e=this.additive();t=this.expect("<",">","<=",">=");)e=this.binaryFn(e,t.text,this.additive());return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.text,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e=this.binaryFn(e,t.text,this.unary());return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(mi.ZERO,t.text,this.unary()):(t=this.expect("!"))?this.unaryFn(t.text,this.unary()):this.primary()},fieldAccess:function(t){var e=this.identifier();return f(function(r,i,a){var o=a||t(r,i);return null==o?n:e(o)},{assign:function(n,r,i){var a=t(n,i);return a||t.assign(n,a={},i),e.assign(a,r)}})},objectIndex:function(t){var e=this.text,r=this.expression();return this.consume("]"),f(function(i,a){var o,s=t(i,a),u=r(i,a);return Le(u,e),s?o=Oe(s[u],e):n},{assign:function(n,i,a){var o=Le(r(n,a),e),s=Oe(t(n,a),e);return s||t.assign(n,s={},a),s[o]=i}})},functionCall:function(t,e){var r=[];if(")"!==this.peekToken().text)do r.push(this.expression());while(this.expect(","));this.consume(")");var i=this.text,a=r.length?[]:null;return function(o,s){var u=e?e(o,s):y(e)?n:o,l=t(o,s,u)||p;if(a)for(var c=r.length;c--;)a[c]=Oe(r[c](o,s),i);Oe(u,i),Ne(l,i);var f=l.apply?l.apply(u,a):l(a[0],a[1],a[2],a[3],a[4]);return a&&(a.length=0),Oe(f,i)}},arrayDeclaration:function(){var t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.expression())}while(this.expect(","));return this.consume("]"),f(function(e,n){for(var r=[],i=0,a=t.length;a>i;i++)r.push(t[i](e,n));return r},{literal:!0,constant:t.every(Ie),inputs:t})},object:function(){var t=[],e=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.consume();n.constant?t.push(n.value):n.identifier?t.push(n.text):this.throwError("invalid key",n),this.consume(":"),e.push(this.expression())}while(this.expect(","));return this.consume("}"),f(function(n,r){for(var i={},a=0,o=e.length;o>a;a++)i[t[a]]=e[a](n,r);return i},{literal:!0,constant:e.every(Ie),inputs:e})}};var vi=lt(),yi=lt(),xi=Object.prototype.valueOf,_i=r("$sce"),bi={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Gr=r("$compile"),$i=e.createElement("a"),wi=rn(t.location.href);sn.$inject=["$provide"],fn.$inject=["$locale"],hn.$inject=["$locale"];var Ti=".",Ai={yyyy:gn("FullYear",4),yy:gn("FullYear",2,0,!0),y:gn("FullYear",1),MMMM:mn("Month"),MMM:mn("Month",!0),MM:gn("Month",2,1),M:gn("Month",1,1),dd:gn("Date",2),d:gn("Date",1),HH:gn("Hours",2),H:gn("Hours",1),hh:gn("Hours",2,-12),h:gn("Hours",1,-12),mm:gn("Minutes",2),m:gn("Minutes",1),ss:gn("Seconds",2),s:gn("Seconds",1),sss:gn("Milliseconds",3),EEEE:mn("Day"),EEE:mn("Day",!0),a:bn,Z:vn,ww:_n(2),w:_n(1),G:$n,GG:$n,GGG:$n,GGGG:wn},Si=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ci=/^\-?\d+$/;Tn.$inject=["$locale"];var Mi=m(Gn),ki=m(Jn);Cn.$inject=["$parse"];var Ei=m({restrict:"E",compile:function(t,e){return e.href||e.xlinkHref||e.name?void 0:function(t,e){if("a"===e[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===sr.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}}),Di={};a(jr,function(t,e){if("multiple"!=t){var n=Kt("ng-"+e);Di[n]=function(){return{restrict:"A",priority:100,link:function(t,r,i){t.$watch(i[n],function(t){i.$set(e,!!t)})}}}}}),a(zr,function(t,e){Di[e]=function(){return{priority:100,link:function(t,n,r){if("ngPattern"===e&&"/"==r.ngPattern.charAt(0)){var i=r.ngPattern.match(Vn);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}t.$watch(r[e],function(t){r.$set(e,t)})}}}}),a(["src","srcset","href"],function(t){var e=Kt("ng-"+t);Di[e]=function(){return{priority:99,link:function(n,r,i){var a=t,o=t;"href"===t&&"[object SVGAnimatedString]"===sr.call(r.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",a=null),i.$observe(e,function(e){return e?(i.$set(o,e),void(tr&&a&&r.prop(a,i[o]))):void("href"===t&&i.$set(o,null))})}}}});var Li={$addControl:p,$$renameControl:kn,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p,$setSubmitted:p},Oi="ng-submitted";En.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Ni=function(t){return["$timeout",function(e){var r={name:"form",restrict:t?"EAC":"E",controller:En,compile:function(r,i){r.addClass(pa).addClass(ha);var a=i.name?"name":t&&i.ngForm?"ngForm":!1;return{pre:function(t,r,i,o){if(!("action"in i)){var s=function(e){t.$apply(function(){o.$commitViewValue(),o.$setSubmitted()}),e.preventDefault()};Cr(r[0],"submit",s),r.on("$destroy",function(){e(function(){Mr(r[0],"submit",s)},0,!1)})}var u=o.$$parentForm;a&&(Fe(t,null,o.$name,o,o.$name),i.$observe(a,function(e){o.$name!==e&&(Fe(t,null,o.$name,n,o.$name),u.$$renameControl(o,e),Fe(t,null,o.$name,o,o.$name))})),r.on("$destroy",function(){u.$removeControl(o),a&&Fe(t,null,i[a],n,o.$name),f(o,Li)})}}}};return r}]},Ii=Ni(),Fi=Ni(!0),Pi=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,Ri=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ji=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Yi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,zi=/^(\d{4})-(\d{2})-(\d{2})$/,Ui=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qi=/^(\d{4})-W(\d\d)$/,Hi=/^(\d{4})-(\d\d)$/,Xi=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Bi={text:Ln,date:Fn("date",zi,In(zi,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Fn("datetimelocal",Ui,In(Ui,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Fn("time",Xi,In(Xi,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Fn("week",qi,Nn,"yyyy-Www"),month:Fn("month",Hi,In(Hi,["yyyy","MM"]),"yyyy-MM"),number:Rn,url:jn,email:Yn,radio:zn,checkbox:qn,hidden:p,button:p,submit:p,reset:p,file:p},Vi=["$browser","$sniffer","$filter","$parse",function(t,e,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,o,s){s[0]&&(Bi[Gn(o.type)]||Bi.text)(i,a,o,s[0],e,t,n,r)}}}}],Wi=/^(true|false|\d+)$/,Gi=function(){return{restrict:"A",priority:100,compile:function(t,e){return Wi.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Zi=["$compile",function(t){return{restrict:"AC",compile:function(e){return t.$$addBindingClass(e),function(e,r,i){t.$$addBindingInfo(r,i.ngBind),r=r[0],e.$watch(i.ngBind,function(t){r.textContent=t===n?"":t})}}}}],Ji=["$interpolate","$compile",function(t,e){return{compile:function(r){return e.$$addBindingClass(r),function(r,i,a){var o=t(i.attr(a.$attr.ngBindTemplate));e.$$addBindingInfo(i,o.expressions),i=i[0],a.$observe("ngBindTemplate",function(t){i.textContent=t===n?"":t})}}}}],Ki=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(r,i){var a=e(i.ngBindHtml),o=e(i.ngBindHtml,function(t){return(t||"").toString()});return n.$$addBindingClass(r),function(e,r,i){n.$$addBindingInfo(r,i.ngBindHtml),e.$watch(o,function(){r.html(t.getTrustedHtml(a(e))||"")})}}}}],Qi=m({restrict:"A",require:"ngModel",link:function(t,e,n,r){r.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),ta=Hn("",!0),ea=Hn("Odd",0),na=Hn("Even",1),ra=Mn({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),ia=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],aa={},oa={blur:!0,focus:!0};a("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Kt("ng-"+t);aa[e]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,a){var o=n(a[e],null,!0);return function(e,n){n.on(t,function(n){var i=function(){o(e,{$event:n})};oa[t]&&r.$$phase?e.$evalAsync(i):e.$apply(i)})}}}}]});var sa=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,a,o){var s,u,l;n.$watch(i.ngIf,function(n){n?u||o(function(n,a){u=a,n[n.length++]=e.createComment(" end ngIf: "+i.ngIf+" "),s={clone:n},t.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),u&&(u.$destroy(),u=null),s&&(l=ut(s.clone),t.leave(l).then(function(){l=null}),s=null))})}}}],ua=["$templateRequest","$anchorScroll","$animate","$sce",function(t,e,n,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:lr.noop,compile:function(i,a){var o=a.ngInclude||a.src,s=a.onload||"",u=a.autoscroll;return function(i,a,l,c,f){var h,d,p,g=0,m=function(){d&&(d.remove(),d=null),h&&(h.$destroy(),h=null),p&&(n.leave(p).then(function(){d=null}),d=p,p=null)};i.$watch(r.parseAsResourceUrl(o),function(r){var o=function(){!y(u)||u&&!i.$eval(u)||e()},l=++g;r?(t(r,!0).then(function(t){if(l===g){var e=i.$new();c.template=t;var u=f(e,function(t){m(),n.enter(t,null,a).then(o)});h=e,p=u,h.$emit("$includeContentLoaded",r),i.$eval(s)}},function(){l===g&&(m(),i.$emit("$includeContentError",r))}),i.$emit("$includeContentRequested",r)):(m(),c.template=null)})}}}}],la=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,a){return/SVG/.test(r[0].toString())?(r.empty(),void t(yt(a.template,e).childNodes)(n,function(t){r.append(t)},{futureParentElement:r})):(r.html(a.template),void t(r.contents())(n))}}}],ca=Mn({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),fa=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,i){var o=e.attr(r.$attr.ngList)||", ",s="false"!==r.ngTrim,u=s?dr(o):o,l=function(t){if(!v(t)){var e=[];return t&&a(t.split(u),function(t){t&&e.push(s?dr(t):t)}),e}};i.$parsers.push(l),i.$formatters.push(function(t){return hr(t)?t.join(o):n}),i.$isEmpty=function(t){return!t||!t.length}}}},ha="ng-valid",da="ng-invalid",pa="ng-pristine",ga="ng-dirty",ma="ng-untouched",va="ng-touched",ya="ng-pending",xa=new r("ngModel"),_a=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,r,i,o,s,u,l,c,f){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=n,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=n,this.$name=f(r.name||"",!1)(t);var h,d=o(r.ngModel),g=d.assign,m=d,x=g,_=null,$=this;this.$$setOptions=function(t){if($.$options=t,t&&t.getterSetter){var e=o(r.ngModel+"()"),n=o(r.ngModel+"($$$p)");m=function(t){var n=d(t);return w(n)&&(n=e(t)),n},x=function(t,e){w(d(t))?n(t,{$$$p:$.$modelValue}):g(t,$.$modelValue)}}else if(!d.assign)throw xa("nonassign","Expression '{0}' is non-assignable. Element: {1}",r.ngModel,X(i))},this.$render=p,this.$isEmpty=function(t){return v(t)||""===t||null===t||t!==t};var T=i.inheritedData("$formController")||Li,A=0;Xn({ctrl:this,$element:i,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:T,$animate:s}),this.$setPristine=function(){$.$dirty=!1,$.$pristine=!0,s.removeClass(i,ga),s.addClass(i,pa)},this.$setDirty=function(){$.$dirty=!0,$.$pristine=!1,s.removeClass(i,pa),s.addClass(i,ga),T.$setDirty()},this.$setUntouched=function(){$.$touched=!1,$.$untouched=!0,s.setClass(i,ma,va)},this.$setTouched=function(){$.$touched=!0,$.$untouched=!1,s.setClass(i,va,ma)},this.$rollbackViewValue=function(){u.cancel(_),$.$viewValue=$.$$lastCommittedViewValue,$.$render()},this.$validate=function(){if(!b($.$modelValue)||!isNaN($.$modelValue)){var t=$.$$lastCommittedViewValue,e=$.$$rawModelValue,r=$.$valid,i=$.$modelValue,a=$.$options&&$.$options.allowInvalid;$.$$runValidators(e,t,function(t){a||r===t||($.$modelValue=t?e:n,$.$modelValue!==i&&$.$$writeModelToScope())})}},this.$$runValidators=function(t,e,r){function i(){var t=$.$$parserName||"parse";return h!==n?(h||(a($.$validators,function(t,e){u(e,null)}),a($.$asyncValidators,function(t,e){u(e,null)})),u(t,h),h):(u(t,null),!0)}function o(){var n=!0;return a($.$validators,function(r,i){var a=r(t,e);n=n&&a,u(i,a)}),n?!0:(a($.$asyncValidators,function(t,e){u(e,null)}),!1)}function s(){var r=[],i=!0;a($.$asyncValidators,function(a,o){var s=a(t,e);if(!D(s))throw xa("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",s);u(o,n),r.push(s.then(function(){u(o,!0)},function(t){i=!1,u(o,!1)}))}),r.length?c.all(r).then(function(){l(i)},p):l(!0)}function u(t,e){f===A&&$.$setValidity(t,e)}function l(t){f===A&&r(t)}A++;var f=A;return i()&&o()?void s():void l(!1)},this.$commitViewValue=function(){var t=$.$viewValue;u.cancel(_),($.$$lastCommittedViewValue!==t||""===t&&$.$$hasNativeValidators)&&($.$$lastCommittedViewValue=t,$.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function e(){$.$modelValue!==o&&$.$$writeModelToScope()}var r=$.$$lastCommittedViewValue,i=r;if(h=v(i)?n:!0)for(var a=0;a<$.$parsers.length;a++)if(i=$.$parsers[a](i),v(i)){h=!1;break}b($.$modelValue)&&isNaN($.$modelValue)&&($.$modelValue=m(t));var o=$.$modelValue,s=$.$options&&$.$options.allowInvalid;$.$$rawModelValue=i,s&&($.$modelValue=i,e()),$.$$runValidators(i,$.$$lastCommittedViewValue,function(t){s||($.$modelValue=t?i:n,e())})},this.$$writeModelToScope=function(){x(t,$.$modelValue),a($.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})},this.$setViewValue=function(t,e){$.$viewValue=t,(!$.$options||$.$options.updateOnDefault)&&$.$$debounceViewValueCommit(e)},this.$$debounceViewValueCommit=function(e){var n,r=0,i=$.$options;i&&y(i.debounce)&&(n=i.debounce,b(n)?r=n:b(n[e])?r=n[e]:b(n["default"])&&(r=n["default"])),u.cancel(_),r?_=u(function(){$.$commitViewValue()},r):l.$$phase?$.$commitViewValue():t.$apply(function(){$.$commitViewValue()})},t.$watch(function(){var e=m(t);if(e!==$.$modelValue){$.$modelValue=$.$$rawModelValue=e,h=n;for(var r=$.$formatters,i=r.length,a=e;i--;)a=r[i](a);$.$viewValue!==a&&($.$viewValue=$.$$lastCommittedViewValue=a,$.$render(),$.$$runValidators(e,a,p))}return e})}],ba=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:_a,priority:1,compile:function(e){return e.addClass(pa).addClass(ma).addClass(ha),{pre:function(t,e,n,r){var i=r[0],a=r[1]||Li;i.$$setOptions(r[2]&&r[2].$options),a.$addControl(i),n.$observe("name",function(t){i.$name!==t&&a.$$renameControl(i,t)}),t.$on("$destroy",function(){a.$removeControl(i)})},post:function(e,n,r,i){var a=i[0];a.$options&&a.$options.updateOn&&n.on(a.$options.updateOn,function(t){a.$$debounceViewValueCommit(t&&t.type)}),n.on("blur",function(n){a.$touched||(t.$$phase?e.$evalAsync(a.$setTouched):e.$apply(a.$setTouched))})}}}}}],$a=/(\s+|^)default(\s+|$)/,wa=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var r=this;this.$options=t.$eval(e.ngModelOptions),this.$options.updateOn!==n?(this.$options.updateOnDefault=!1,this.$options.updateOn=dr(this.$options.updateOn.replace($a,function(){return r.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Ta=Mn({terminal:!0,priority:1e3}),Aa=["$locale","$interpolate",function(t,e){var n=/{}/g,r=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(i,o,s){function u(t){o.text(t||"")}var l,c=s.count,f=s.$attr.when&&o.attr(s.$attr.when),h=s.offset||0,d=i.$eval(f)||{},p={},g=e.startSymbol(),m=e.endSymbol(),v=g+c+"-"+h+m,y=lr.noop;a(s,function(t,e){var n=r.exec(e);if(n){var i=(n[1]?"-":"")+Gn(n[2]);d[i]=o.attr(s.$attr[e])}}),a(d,function(t,r){p[r]=e(t.replace(n,v))}),i.$watch(c,function(e){var n=parseFloat(e),r=isNaN(n);r||n in d||(n=t.pluralCat(n-h)),n===l||r&&isNaN(l)||(y(),y=i.$watch(p[n],u),l=n)})}}}],Sa=["$parse","$animate",function(t,o){var s="$$NG_REMOVED",u=r("ngRepeat"),l=function(t,e,n,r,i,a,o){t[n]=r,i&&(t[i]=a),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=0===(1&e))},c=function(t){return t.clone[0]},f=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,h){var d=h.ngRepeat,p=e.createComment(" end ngRepeat: "+d+" "),g=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!g)throw u("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var m=g[1],v=g[2],y=g[3],x=g[4];if(g=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/),!g)throw u("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",m);var _=g[3]||g[1],b=g[2];if(y&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(y)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(y)))throw u("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",y);var $,w,T,A,S={$id:Yt};return x?$=t(x):(T=function(t,e){return Yt(e)},A=function(t){return t}),function(t,e,r,h,g){$&&(w=function(e,n,r){return b&&(S[b]=e),S[_]=n,S.$index=r,$(t,S)});var m=lt();t.$watchCollection(v,function(r){var h,v,x,$,S,C,M,k,E,D,L,O,N=e[0],I=lt();if(y&&(t[y]=r),i(r))E=r,k=w||T;else{k=w||A,E=[];for(var F in r)r.hasOwnProperty(F)&&"$"!=F.charAt(0)&&E.push(F);E.sort()}for($=E.length,L=new Array($),h=0;$>h;h++)if(S=r===E?h:E[h],C=r[S],M=k(S,C,h),m[M])D=m[M],delete m[M],I[M]=D,L[h]=D;else{if(I[M])throw a(L,function(t){t&&t.scope&&(m[t.id]=t)}),u("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,M,C);L[h]={id:M,scope:n,clone:n},I[M]=!0}for(var P in m){if(D=m[P],O=ut(D.clone),o.leave(O),O[0].parentNode)for(h=0,v=O.length;v>h;h++)O[h][s]=!0;D.scope.$destroy()}for(h=0;$>h;h++)if(S=r===E?h:E[h],C=r[S],D=L[h],D.scope){x=N;do x=x.nextSibling;while(x&&x[s]);c(D)!=x&&o.move(ut(D.clone),null,er(N)),N=f(D),l(D.scope,h,_,C,b,S,$)}else g(function(t,e){D.scope=e;var n=p.cloneNode(!1);t[t.length++]=n,o.enter(t,null,er(N)),N=n,D.clone=t,I[D.id]=D,l(D.scope,h,_,C,b,S,$)});m=I})}}}}],Ca="ng-hide",Ma="ng-hide-animate",ka=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngShow,function(e){t[e?"removeClass":"addClass"](n,Ca,{tempClasses:Ma})})}}}],Ea=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,r){e.$watch(r.ngHide,function(e){t[e?"addClass":"removeClass"](n,Ca,{tempClasses:Ma})})}}}],Da=Mn(function(t,e,n){t.$watchCollection(n.ngStyle,function(t,n){n&&t!==n&&a(n,function(t,n){e.css(n,"")}),t&&e.css(t)})}),La=["$animate",function(t){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,o){var s=i.ngSwitch||i.on,u=[],l=[],c=[],f=[],h=function(t,e){return function(){t.splice(e,1)}};n.$watch(s,function(n){var r,i;for(r=0,i=c.length;i>r;++r)t.cancel(c[r]);for(c.length=0,r=0,i=f.length;i>r;++r){var s=ut(l[r].clone);f[r].$destroy();var d=c[r]=t.leave(s);d.then(h(c,r))}l.length=0,f.length=0,(u=o.cases["!"+n]||o.cases["?"])&&a(u,function(n){n.transclude(function(r,i){f.push(i);var a=n.element;r[r.length++]=e.createComment(" end ngSwitchWhen: ");var o={clone:r};l.push(o),t.enter(r,a.parent(),a)})})})}}}],Oa=Mn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:e})}}),Na=Mn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}),Ia=Mn({restrict:"EAC",link:function(t,e,n,i,a){if(!a)throw r("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",X(e));a(function(t){e.empty(),e.append(t)})}}),Fa=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var r=n.id,i=e[0].text;t.put(r,i)}}}}],Pa=r("ngOptions"),Ra=m({restrict:"A",terminal:!0}),ja=["$compile","$parse",function(t,r){var i=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\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]+?))?$/,s={$setViewValue:p};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(t,e,n){var r,i,a=this,o={},u=s;a.databound=n.ngModel,a.init=function(t,e,n){u=t,r=e,i=n},a.addOption=function(e,n){ot(e,'"option value"'),o[e]=!0,u.$viewValue==e&&(t.val(e),i.parent()&&i.remove()),n&&n[0].hasAttribute("selected")&&(n[0].selected=!0)},a.removeOption=function(t){this.hasOption(t)&&(delete o[t],u.$viewValue===t&&this.renderUnknownOption(t))},a.renderUnknownOption=function(e){var n="? "+Yt(e)+" ?";i.val(n),t.prepend(i),t.val(n),i.prop("selected",!0)},a.hasOption=function(t){return o.hasOwnProperty(t)},e.$on("$destroy",function(){a.renderUnknownOption=p})}],link:function(s,u,l,c){function f(t,e,n,r){n.$render=function(){var t=n.$viewValue;r.hasOption(t)?(A.parent()&&A.remove(),e.val(t),""===t&&p.prop("selected",!0)):v(t)&&p?e.val(""):r.renderUnknownOption(t)},e.on("change",function(){t.$apply(function(){A.parent()&&A.remove(),n.$setViewValue(e.val())})})}function h(t,e,n){var r;n.$render=function(){var t=new zt(n.$viewValue);a(e.find("option"),function(e){e.selected=y(t.get(e.value))})},t.$watch(function(){R(r,n.$viewValue)||(r=P(n.$viewValue),n.$render())}),e.on("change",function(){t.$apply(function(){var t=[];a(e.find("option"),function(e){e.selected&&t.push(e.value)}),n.$setViewValue(t)})})}function d(e,s,u){function l(t,n,r){return R[C]=r,E&&(R[E]=n),t(e,R)}function c(){e.$apply(function(){var t,n=O(e)||[];if(x)t=[],a(s.val(),function(e){e=I?F[e]:e,t.push(f(e,n[e]))});else{var r=I?F[s.val()]:s.val();t=f(r,n[r])}u.$setViewValue(t),v()})}function f(t,e){if("?"===t)return n;if(""===t)return null;var r=k?k:L;return l(r,t,e)}function h(){var t,n=O(e);if(n&&hr(n)){t=new Array(n.length);for(var r=0,i=n.length;i>r;r++)t[r]=l(S,r,n[r]);return t}if(n){t={};for(var a in n)n.hasOwnProperty(a)&&(t[a]=l(S,a,n[a]))}return t}function d(t){ -var e;if(x)if(I&&hr(t)){e=new zt([]);for(var n=0;nC;C++)h=C,E&&(h=H[C],"$"===h.charAt(0))||(p=q[h],t=l(D,h,p)||"",(n=Y[t])||(n=Y[t]=[],z.push(t)),M=B(h,p),V=V||M,N=l(S,h,p),N=y(N)?N:"",j=I?I(e,R):E?H[C]:C,I&&(F[j]=h),n.push({id:j,label:N,selected:M}));for(x||(b||null===U?Y[""].unshift({id:"",label:"",selected:!V}):V||Y[""].unshift({id:"?",label:"",selected:!0})),A=0,v=z.length;v>A;A++){for(t=z[A],n=Y[t],P.length<=A?(i={element:T.clone().attr("label",t),label:n.label},c=[i],P.push(c),s.append(i.element)):(c=P[A],i=c[0],i.label!=t&&i.element.attr("label",i.label=t)),k=null,C=0,_=n.length;_>C;C++)r=n[C],(f=c[C+1])?(k=f.element,f.label!==r.label&&(m(X,f.label,!1),m(X,r.label,!0),k.text(f.label=r.label),k.prop("label",f.label)),f.id!==r.id&&k.val(f.id=r.id),k[0].selected!==r.selected&&(k.prop("selected",f.selected=r.selected),tr&&k.prop("selected",f.selected))):(""===r.id&&b?L=b:(L=w.clone()).val(r.id).prop("selected",r.selected).attr("selected",r.selected).prop("label",r.label).text(r.label),c.push(f={element:L,label:r.label,id:r.id,selected:r.selected}),m(X,r.label,!0),k?k.after(L):i.element.append(L),k=L);for(C++;c.length>C;)r=c.pop(),m(X,r.label,!1),r.element.remove()}for(;P.length>A;){for(n=P.pop(),C=1;C0?g.addOption(e):0>t&&g.removeOption(e)})}var A;if(!(A=_.match(i)))throw Pa("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",_,X(s));var S=r(A[2]||A[1]),C=A[4]||A[6],M=/ as /.test(A[0])&&A[1],k=M?r(M):null,E=A[5],D=r(A[3]||""),L=r(A[2]?A[1]:C),O=r(A[7]),N=A[8],I=N?r(A[8]):null,F={},P=[[{element:s,label:""}]],R={};b&&(t(b)(e),b.removeClass("ng-scope"),b.remove()),s.empty(),s.on("change",c),u.$render=v,e.$watchCollection(O,p),e.$watchCollection(h,p),x&&e.$watchCollection(function(){return u.$modelValue},p)}if(c[1]){for(var p,g=c[0],m=c[1],x=l.multiple,_=l.ngOptions,b=!1,$=!1,w=er(e.createElement("option")),T=er(e.createElement("optgroup")),A=w.clone(),S=0,C=u.children(),M=C.length;M>S;S++)if(""===C[S].value){p=b=C.eq(S);break}g.init(m,b,A),x&&(m.$isEmpty=function(t){return!t||0===t.length}),_?d(s,u,m):x?h(s,u,m):f(s,u,m,g)}}}}],Ya=["$interpolate",function(t){var e={addOption:p,removeOption:p};return{restrict:"E",priority:100,compile:function(n,r){if(v(r.value)){var i=t(n.text(),!0);i||r.$set("value",n.text())}return function(t,n,r){var a="$selectController",o=n.parent(),s=o.data(a)||o.parent().data(a);s&&s.databound||(s=e),i?t.$watch(i,function(t,e){r.$set("value",t),e!==t&&s.removeOption(e),s.addOption(t,n)}):s.addOption(r.value,n),n.on("$destroy",function(){s.removeOption(r.value)})}}}}],za=m({restrict:"E",terminal:!1}),Ua=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){r&&(n.required=!0,r.$validators.required=function(t,e){return!n.required||!r.$isEmpty(e)},n.$observe("required",function(){r.$validate()}))}}},qa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,a){if(a){var o,s=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if(_(t)&&t.length>0&&(t=new RegExp("^"+t+"$")),t&&!t.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",s,t,X(e));o=t||n,a.$validate()}),a.$validators.pattern=function(t){return a.$isEmpty(t)||v(o)||o.test(t)}}}}},Ha=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=-1;n.$observe("maxlength",function(t){var e=h(t);i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(t,e){return 0>i||r.$isEmpty(e)||e.length<=i}}}}},Xa=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,r){if(r){var i=0;n.$observe("minlength",function(t){i=h(t)||0,r.$validate()}),r.$validators.minlength=function(t,e){return r.$isEmpty(e)||e.length>=i}}}}};return t.angular.bootstrap?void console.log("WARNING: Tried to load angular more than once."):(rt(),dt(lr),void er(e).ready(function(){K(e,Q)}))}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend(''),function(t,e,n){"use strict";function r(t){return null!=t&&""!==t&&"hasOwnProperty"!==t&&s.test("."+t)}function i(t,e){if(!r(e))throw o("badmember",'Dotted member path "@{0}" is invalid.',e);for(var i=e.split("."),a=0,s=i.length;s>a&&t!==n;a++){var u=i[a];t=null!==t?t[u]:n}return t}function a(t,n){n=n||{},e.forEach(n,function(t,e){delete n[e]});for(var r in t)!t.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=t[r]);return n}var o=e.$$minErr("$resource"),s=/^(\.[a-zA-Z_$][0-9a-zA-Z_$]*)+$/;e.module("ngResource",["ng"]).provider("$resource",function(){var t=this;this.defaults={stripTrailingSlashes:!0,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}},this.$get=["$http","$q",function(r,s){function u(t){return l(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function l(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}function c(e,n){this.template=e,this.defaults=p({},t.defaults,n),this.urlParams={}}function f(u,l,v,y){function x(t,e){var n={};return e=p({},l,e),d(e,function(e,r){m(e)&&(e=e()),n[r]=e&&e.charAt&&"@"==e.charAt(0)?i(t,e.substr(1)):e}),n}function _(t){return t.resource}function b(t){a(t||{},this)}var $=new c(u,y);return v=p({},t.defaults.actions,v),b.prototype.toJSON=function(){var t=p({},this);return delete t.$promise,delete t.$resolved,t},d(v,function(t,i){var u=/^(POST|PUT|PATCH)$/i.test(t.method);b[i]=function(l,c,f,v){var y,w,T,A={};switch(arguments.length){case 4:T=v,w=f;case 3:case 2:if(!m(c)){A=l,y=c,w=f;break}if(m(l)){w=l,T=c;break}w=c,T=f;case 1:m(l)?w=l:u?y=l:A=l;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var S=this instanceof b,C=S?y:t.isArray?[]:new b(y),M={},k=t.interceptor&&t.interceptor.response||_,E=t.interceptor&&t.interceptor.responseError||n;d(t,function(t,e){"params"!=e&&"isArray"!=e&&"interceptor"!=e&&(M[e]=g(t))}),u&&(M.data=y),$.setUrlParams(M,p({},x(y,t.params||{}),A),t.url);var D=r(M).then(function(n){var r=n.data,s=C.$promise;if(r){if(e.isArray(r)!==!!t.isArray)throw o("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2}",i,t.isArray?"array":"object",e.isArray(r)?"array":"object");t.isArray?(C.length=0,d(r,function(t){"object"==typeof t?C.push(new b(t)):C.push(t)})):(a(r,C),C.$promise=s)}return C.$resolved=!0,n.resource=C,n},function(t){return C.$resolved=!0,(T||h)(t),s.reject(t)});return D=D.then(function(t){var e=k(t);return(w||h)(e,t.headers),e},E),S?D:(C.$promise=D,C.$resolved=!1,C)},b.prototype["$"+i]=function(t,e,n){m(t)&&(n=e,e=t,t={});var r=b[i].call(this,t,this,e,n);return r.$promise||r}}),b.bind=function(t){return f(u,p({},l,t),v)},b}var h=e.noop,d=e.forEach,p=e.extend,g=e.copy,m=e.isFunction;return c.prototype={setUrlParams:function(t,n,r){var i,a,s=this,l=r||s.template,c=s.urlParams={};d(l.split(/\W/),function(t){if("hasOwnProperty"===t)throw o("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(t)&&t&&new RegExp("(^|[^\\\\]):"+t+"(\\W|$)").test(l)&&(c[t]=!0)}),l=l.replace(/\\:/g,":"),n=n||{},d(s.urlParams,function(t,r){i=n.hasOwnProperty(r)?n[r]:s.defaults[r],e.isDefined(i)&&null!==i?(a=u(i),l=l.replace(new RegExp(":"+r+"(\\W|$)","g"),function(t,e){return a+e})):l=l.replace(new RegExp("(/?):"+r+"(\\W|$)","g"),function(t,e,n){return"/"==n.charAt(0)?n:e+n})}),s.defaults.stripTrailingSlashes&&(l=l.replace(/\/+$/,"")||"/"),l=l.replace(/\/\.(?=\w+($|\?))/,"."),t.url=l.replace(/\/\\\./,"/."),d(n,function(e,n){s.urlParams[n]||(t.params=t.params||{},t.params[n]=e)})}},f}]})}(window,window.angular),function(t){function e(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function n(t,e){return Ct.call(t,e)}function r(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function i(t){bt.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function a(t,e){var n=!0;return p(function(){return n&&(i(t),n=!1),e.apply(this,arguments)},e)}function o(t,e){ye[t]||(i(e),ye[t]=!0)}function s(t,e){return function(n){return v(t.call(this,n),e)}}function u(t,e){return function(n){return this.localeData().ordinal(t.call(this,n),e)}}function l(t,e){var n,r,i=12*(e.year()-t.year())+(e.month()-t.month()),a=t.clone().add(i,"months");return 0>e-a?(n=t.clone().add(i-1,"months"),r=(e-a)/(a-n)):(n=t.clone().add(i+1,"months"),r=(e-a)/(n-a)),-(i+r)}function c(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&12>e&&(e+=12),r||12!==e||(e=0),e):e}function f(){}function h(t,e){e!==!1&&O(t),g(this,t),this._d=new Date(+t._d),_e===!1&&(_e=!0,bt.updateOffset(this),_e=!1)}function d(t){var e=S(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||0,o=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._milliseconds=+c+1e3*l+6e4*u+36e5*s,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bt.localeData(),this._bubble()}function p(t,e){for(var r in e)n(e,r)&&(t[r]=e[r]);return n(e,"toString")&&(t.toString=e.toString),n(e,"valueOf")&&(t.valueOf=e.valueOf),t}function g(t,e){var n,r,i;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),Ft.length>0)for(n in Ft)r=Ft[n],i=e[r],"undefined"!=typeof i&&(t[r]=i);return t}function m(t){return 0>t?Math.ceil(t):Math.floor(t)}function v(t,e,n){for(var r=""+Math.abs(t),i=t>=0;r.lengthr;r++)(n&&t[r]!==e[r]||!n&&M(t[r])!==M(e[r]))&&o++;return o+a}function A(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=fe[t]||he[e]||e}return t}function S(t){var e,r,i={};for(r in t)n(t,r)&&(e=A(r),e&&(i[e]=t[r]));return i}function C(e){var n,r;if(0===e.indexOf("week"))n=7,r="day";else{if(0!==e.indexOf("month"))return;n=12,r="month"}bt[e]=function(i,a){var o,s,u=bt._locale[e],l=[];if("number"==typeof i&&(a=i,i=t),s=function(t){var e=bt().utc().set(r,t);return u.call(bt._locale,e,i||"")},null!=a)return s(a);for(o=0;n>o;o++)l.push(s(o));return l}}function M(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function k(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function E(t,e,n){return lt(bt([t,11,31+e-n]),e,n).week}function D(t){return L(t)?366:365}function L(t){return t%4===0&&t%100!==0||t%400===0}function O(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[kt]<0||t._a[kt]>11?kt:t._a[Et]<1||t._a[Et]>k(t._a[Mt],t._a[kt])?Et:t._a[Dt]<0||t._a[Dt]>24||24===t._a[Dt]&&(0!==t._a[Lt]||0!==t._a[Ot]||0!==t._a[Nt])?Dt:t._a[Lt]<0||t._a[Lt]>59?Lt:t._a[Ot]<0||t._a[Ot]>59?Ot:t._a[Nt]<0||t._a[Nt]>999?Nt:-1,t._pf._overflowDayOfYear&&(Mt>e||e>Et)&&(e=Et),t._pf.overflow=e)}function N(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length&&e._pf.bigHour===t)),e._isValid}function I(t){return t?t.toLowerCase().replace("_","-"):t}function F(t){for(var e,n,r,i,a=0;a0;){if(r=P(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&T(i,n,!0)>=e-1)break;e--}a++}return null}function P(t){var e=null;if(!It[t]&&Pt)try{e=bt.locale(),require("./locale/"+t),bt.locale(e)}catch(n){}return It[t]}function R(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(bt.isMoment(t)||w(t)?+t:+bt(t))-+n,n._d.setTime(+n._d+r),bt.updateOffset(n,!1),n):bt(t).local()}function j(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function Y(t){var e,n,r=t.match(zt);for(e=0,n=r.length;n>e;e++)ve[r[e]]?r[e]=ve[r[e]]:r[e]=j(r[e]);return function(i){var a="";for(e=0;n>e;e++)a+=r[e]instanceof Function?r[e].call(i,t):r[e];return a}}function z(t,e){return t.isValid()?(e=U(e,t.localeData()),de[e]||(de[e]=Y(e)),de[e](t)):t.localeData().invalidDate()}function U(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(Ut.lastIndex=0;r>=0&&Ut.test(t);)t=t.replace(Ut,n),Ut.lastIndex=0,r-=1;return t}function q(t,e){var n,r=e._strict;switch(t){case"Q":return Qt;case"DDDD":return ee;case"YYYY":case"GGGG":case"gggg":return r?ne:Xt;case"Y":case"G":case"g":return ie;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return r?re:Bt;case"S":if(r)return Qt;case"SS":if(r)return te;case"SSS":if(r)return ee;case"DDD":return Ht;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Wt;case"a":case"A":return e._locale._meridiemParse;case"x":return Jt;case"X":return Kt;case"Z":case"ZZ":return Gt;case"T":return Zt;case"SSSS":return Vt;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return r?te:qt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return qt;case"Do":return r?e._locale._ordinalParse:e._locale._ordinalParseLenient;default:return n=new RegExp(K(J(t.replace("\\","")),"i"))}}function H(t){t=t||"";var e=t.match(Gt)||[],n=e[e.length-1]||[],r=(n+"").match(le)||["-",0,0],i=+(60*r[1])+M(r[2]);return"+"===r[0]?i:-i}function X(t,e,n){var r,i=n._a;switch(t){case"Q":null!=e&&(i[kt]=3*(M(e)-1));break;case"M":case"MM":null!=e&&(i[kt]=M(e)-1);break;case"MMM":case"MMMM":r=n._locale.monthsParse(e,t,n._strict),null!=r?i[kt]=r:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(i[Et]=M(e));break;case"Do":null!=e&&(i[Et]=M(parseInt(e.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=M(e));break;case"YY":i[Mt]=bt.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":i[Mt]=M(e);break;case"a":case"A":n._meridiem=e;break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":i[Dt]=M(e);break;case"m":case"mm":i[Lt]=M(e);break;case"s":case"ss":i[Ot]=M(e);break;case"S":case"SS":case"SSS":case"SSSS":i[Nt]=M(1e3*("0."+e));break;case"x":n._d=new Date(M(e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=H(e);break;case"dd":case"ddd":case"dddd":r=n._locale.weekdaysParse(e),null!=r?(n._w=n._w||{},n._w.d=r):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=M(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=bt.parseTwoDigitYear(e)}}function B(t){var n,r,i,a,o,s,u;n=t._w,null!=n.GG||null!=n.W||null!=n.E?(o=1,s=4,r=e(n.GG,t._a[Mt],lt(bt(),1,4).year),i=e(n.W,1),a=e(n.E,1)):(o=t._locale._week.dow,s=t._locale._week.doy,r=e(n.gg,t._a[Mt],lt(bt(),o,s).year),i=e(n.w,1),null!=n.d?(a=n.d,o>a&&++i):a=null!=n.e?n.e+o:o),u=ct(r,i,a,s,o),t._a[Mt]=u.year,t._dayOfYear=u.dayOfYear}function V(t){var n,r,i,a,o=[];if(!t._d){for(i=G(t),t._w&&null==t._a[Et]&&null==t._a[kt]&&B(t),t._dayOfYear&&(a=e(t._a[Mt],i[Mt]),t._dayOfYear>D(a)&&(t._pf._overflowDayOfYear=!0),r=at(a,0,t._dayOfYear),t._a[kt]=r.getUTCMonth(),t._a[Et]=r.getUTCDate()),n=0;3>n&&null==t._a[n];++n)t._a[n]=o[n]=i[n];for(;7>n;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[Dt]&&0===t._a[Lt]&&0===t._a[Ot]&&0===t._a[Nt]&&(t._nextDay=!0,t._a[Dt]=0),t._d=(t._useUTC?at:it).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Dt]=24)}}function W(t){var e;t._d||(e=S(t._i),t._a=[e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],V(t))}function G(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Z(e){if(e._f===bt.ISO_8601)return void tt(e);e._a=[],e._pf.empty=!0;var n,r,i,a,o,s=""+e._i,u=s.length,l=0;for(i=U(e._f,e._locale).match(zt)||[],n=0;n0&&e._pf.unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),l+=r.length),ve[a]?(r?e._pf.empty=!1:e._pf.unusedTokens.push(a),X(a,r,e)):e._strict&&!r&&e._pf.unusedTokens.push(a);e._pf.charsLeftOver=u-l,s.length>0&&e._pf.unusedInput.push(s),e._pf.bigHour===!0&&e._a[Dt]<=12&&(e._pf.bigHour=t),e._a[Dt]=c(e._locale,e._a[Dt],e._meridiem),V(e),O(e)}function J(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,i){return e||n||r||i})}function K(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(t){var e,n,i,a,o;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;ao)&&(i=o,n=e));p(t,n||e)}function tt(t){var e,n,r=t._i,i=ae.exec(r);if(i){for(t._pf.iso=!0,e=0,n=se.length;n>e;e++)if(se[e][1].exec(r)){t._f=se[e][0]+(i[6]||" ");break}for(e=0,n=ue.length;n>e;e++)if(ue[e][1].exec(r)){t._f+=ue[e][0];break}r.match(Gt)&&(t._f+="Z"),Z(t)}else t._isValid=!1}function et(t){tt(t),t._isValid===!1&&(delete t._isValid,bt.createFromInputFallback(t))}function nt(t,e){var n,r=[];for(n=0;nt&&s.setFullYear(t),s}function at(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function ot(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function st(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ut(t,e,n){var r=bt.duration(t).abs(),i=St(r.as("s")),a=St(r.as("m")),o=St(r.as("h")),s=St(r.as("d")),u=St(r.as("M")),l=St(r.as("y")),c=i0,c[4]=n,st.apply({},c)}function lt(t,e,n){var r,i=n-e,a=n-t.day();return a>i&&(a-=7),i-7>a&&(a+=7),r=bt(t).add(a,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ct(t,e,n,r,i){var a,o,s=at(t,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:i,a=i-s+(s>r?7:0)-(i>s?7:0),o=7*(e-1)+(n-i)+a+1,{year:o>0?t:t-1,dayOfYear:o>0?o:D(t-1)+o}}function ft(e){var n,r=e._i,i=e._f;return e._locale=e._locale||bt.localeData(e._l),null===r||i===t&&""===r?bt.invalid({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),bt.isMoment(r)?new h(r,!0):(i?$(i)?Q(e):Z(e):rt(e),n=new h(e),n._nextDay&&(n.add(1,"d"),n._nextDay=t),n))}function ht(t,e){var n,r;if(1===e.length&&$(e[0])&&(e=e[0]),!e.length)return bt();for(n=e[0],r=1;r=0?"+":"-";return e+v(Math.abs(t),6)},gg:function(){return v(this.weekYear()%100,2)},gggg:function(){return v(this.weekYear(),4)},ggggg:function(){return v(this.weekYear(),5)},GG:function(){return v(this.isoWeekYear()%100,2)},GGGG:function(){return v(this.isoWeekYear(),4)},GGGGG:function(){return v(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return M(this.milliseconds()/100)},SS:function(){return v(M(this.milliseconds()/10),2)},SSS:function(){return v(this.milliseconds(),3)},SSSS:function(){return v(this.milliseconds(),3)},Z:function(){var t=this.utcOffset(),e="+";return 0>t&&(t=-t,e="-"),e+v(M(t/60),2)+":"+v(M(t)%60,2)},ZZ:function(){var t=this.utcOffset(),e="+";return 0>t&&(t=-t,e="-"),e+v(M(t/60),2)+v(M(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},ye={},xe=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"],_e=!1;ge.length;)wt=ge.pop(),ve[wt+"o"]=u(ve[wt],wt);for(;me.length;)wt=me.pop(),ve[wt+wt]=s(ve[wt],2);ve.DDDD=s(ve.DDD,3),p(f.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t,e,n){var r,i,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=bt.utc([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=bt([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e,n){var r=this._calendar[t];return"function"==typeof r?r.apply(e,[n]):r},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,r){var i=this._relativeTime[n];return"function"==typeof i?i(t,e,n,r):i.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(t){return t},postformat:function(t){return t},week:function(t){return lt(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},firstDayOfWeek:function(){return this._week.dow},firstDayOfYear:function(){return this._week.doy},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),bt=function(e,n,i,a){var o;return"boolean"==typeof i&&(a=i,i=t),o={},o._isAMomentObject=!0,o._i=e,o._f=n,o._l=i,o._strict=a,o._isUTC=!1,o._pf=r(),ft(o)},bt.suppressDeprecationWarnings=!1,bt.createFromInputFallback=a("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),bt.min=function(){var t=[].slice.call(arguments,0);return ht("isBefore",t)},bt.max=function(){var t=[].slice.call(arguments,0);return ht("isAfter",t)},bt.utc=function(e,n,i,a){var o;return"boolean"==typeof i&&(a=i,i=t),o={},o._isAMomentObject=!0,o._useUTC=!0,o._isUTC=!0,o._l=i,o._i=e,o._f=n,o._strict=a,o._pf=r(),ft(o).utc()},bt.unix=function(t){return bt(1e3*t)},bt.duration=function(t,e){var r,i,a,o,s=t,u=null;return bt.isDuration(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(u=jt.exec(t))?(r="-"===u[1]?-1:1,s={y:0,d:M(u[Et])*r,h:M(u[Dt])*r,m:M(u[Lt])*r,s:M(u[Ot])*r,ms:M(u[Nt])*r}):(u=Yt.exec(t))?(r="-"===u[1]?-1:1,a=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*r},s={y:a(u[2]),M:a(u[3]),d:a(u[4]),h:a(u[5]),m:a(u[6]),s:a(u[7]),w:a(u[8])}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(o=x(bt(s.from),bt(s.to)),s={},s.ms=o.milliseconds,s.M=o.months),i=new d(s),bt.isDuration(t)&&n(t,"_locale")&&(i._locale=t._locale),i},bt.version=Tt,bt.defaultFormat=oe,bt.ISO_8601=function(){},bt.momentProperties=Ft,bt.updateOffset=function(){},bt.relativeTimeThreshold=function(e,n){return pe[e]===t?!1:n===t?pe[e]:(pe[e]=n,!0)},bt.lang=a("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return bt.locale(t,e)}),bt.locale=function(t,e){var n;return t&&(n="undefined"!=typeof e?bt.defineLocale(t,e):bt.localeData(t),n&&(bt.duration._locale=bt._locale=n)),bt._locale._abbr},bt.defineLocale=function(t,e){return null!==e?(e.abbr=t,It[t]||(It[t]=new f),It[t].set(e),bt.locale(t),It[t]):(delete It[t],null)},bt.langData=a("moment.langData is deprecated. Use moment.localeData instead.",function(t){return bt.localeData(t)}),bt.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr), -!t)return bt._locale;if(!$(t)){if(e=P(t))return e;t=[t]}return F(t)},bt.isMoment=function(t){return t instanceof h||null!=t&&n(t,"_isAMomentObject")},bt.isDuration=function(t){return t instanceof d};for(wt=xe.length-1;wt>=0;--wt)C(xe[wt]);bt.normalizeUnits=function(t){return A(t)},bt.invalid=function(t){var e=bt.utc(NaN);return null!=t?p(e._pf,t):e._pf.userInvalidated=!0,e},bt.parseZone=function(){return bt.apply(null,arguments).parseZone()},bt.parseTwoDigitYear=function(t){return M(t)+(M(t)>68?1900:2e3)},bt.isDate=w,p(bt.fn=h.prototype,{clone:function(){return bt(this)},valueOf:function(){return+this._d-6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=bt(this).utc();return 00:!1},parsingFlags:function(){return p({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.utcOffset(0,t)},local:function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(this._dateUtcOffset(),"m")),this},format:function(t){var e=z(this,t||bt.defaultFormat);return this.localeData().postformat(e)},add:_(1,"add"),subtract:_(-1,"subtract"),diff:function(t,e,n){var r,i,a=R(t,this),o=6e4*(a.utcOffset()-this.utcOffset());return e=A(e),"year"===e||"month"===e||"quarter"===e?(i=l(this,a),"quarter"===e?i/=3:"year"===e&&(i/=12)):(r=this-a,i="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-o)/864e5:"week"===e?(r-o)/6048e5:r),n?i:m(i)},from:function(t,e){return bt.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(bt(),t)},calendar:function(t){var e=t||bt(),n=R(e,this).startOf("day"),r=this.diff(n,"days",!0),i=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,bt(e)))},isLeapYear:function(){return L(this.year())},isDST:function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=ot(t,this.localeData()),this.add(t-e,"d")):e},month:mt("Month",!0),startOf:function(t){switch(t=A(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(e){return e=A(e),e===t||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},isAfter:function(t,e){var n;return e=A("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=bt.isMoment(t)?t:bt(t),+this>+t):(n=bt.isMoment(t)?+t:+bt(t),n<+this.clone().startOf(e))},isBefore:function(t,e){var n;return e=A("undefined"!=typeof e?e:"millisecond"),"millisecond"===e?(t=bt.isMoment(t)?t:bt(t),+t>+this):(n=bt.isMoment(t)?+t:+bt(t),+this.clone().endOf(e)t?this:t}),max:a("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=bt.apply(null,arguments),t>this?this:t}),zone:a("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),utcOffset:function(t,e){var n,r=this._offset||0;return null!=t?("string"==typeof t&&(t=H(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(n=this._dateUtcOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?b(this,bt.duration(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,bt.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:this._dateUtcOffset()},isLocal:function(){return!this._isUTC},isUtcOffset:function(){return this._isUTC},isUtc:function(){return this._isUTC&&0===this._offset},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(H(this._i)),this},hasAlignedHourOffset:function(t){return t=t?bt(t).utcOffset():0,(this.utcOffset()-t)%60===0},daysInMonth:function(){return k(this.year(),this.month())},dayOfYear:function(t){var e=St((bt(this).startOf("day")-bt(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=lt(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=lt(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=lt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return E(this.year(),t.dow,t.doy)},get:function(t){return t=A(t),this[t]()},set:function(t,e){var n;if("object"==typeof t)for(n in t)this.set(n,t[n]);else t=A(t),"function"==typeof this[t]&&this[t](e);return this},locale:function(e){var n;return e===t?this._locale._abbr:(n=bt.localeData(e),null!=n&&(this._locale=n),this)},lang:a("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===t?this.localeData():this.locale(e)}),localeData:function(){return this._locale},_dateUtcOffset:function(){return 15*-Math.round(this._d.getTimezoneOffset()/15)}}),bt.fn.millisecond=bt.fn.milliseconds=mt("Milliseconds",!1),bt.fn.second=bt.fn.seconds=mt("Seconds",!1),bt.fn.minute=bt.fn.minutes=mt("Minutes",!1),bt.fn.hour=bt.fn.hours=mt("Hours",!0),bt.fn.date=mt("Date",!0),bt.fn.dates=a("dates accessor is deprecated. Use date instead.",mt("Date",!0)),bt.fn.year=mt("FullYear",!0),bt.fn.years=a("years accessor is deprecated. Use year instead.",mt("FullYear",!0)),bt.fn.days=bt.fn.day,bt.fn.months=bt.fn.month,bt.fn.weeks=bt.fn.week,bt.fn.isoWeeks=bt.fn.isoWeek,bt.fn.quarters=bt.fn.quarter,bt.fn.toJSON=bt.fn.toISOString,bt.fn.isUTC=bt.fn.isUtc,p(bt.duration.fn=d.prototype,{_bubble:function(){var t,e,n,r=this._milliseconds,i=this._days,a=this._months,o=this._data,s=0;o.milliseconds=r%1e3,t=m(r/1e3),o.seconds=t%60,e=m(t/60),o.minutes=e%60,n=m(e/60),o.hours=n%24,i+=m(n/24),s=m(vt(i)),i-=m(yt(s)),a+=m(i/30),i%=30,s+=m(a/12),a%=12,o.days=i,o.months=a,o.years=s},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return m(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12)},humanize:function(t){var e=ut(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=bt.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=bt.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=A(t),this[t.toLowerCase()+"s"]()},as:function(t){var e,n;if(t=A(t),"month"===t||"year"===t)return e=this._days+this._milliseconds/864e5,n=this._months+12*vt(e),"month"===t?n:n/12;switch(e=this._days+Math.round(yt(this._months/12)),t){case"week":return e/7+this._milliseconds/6048e5;case"day":return e+this._milliseconds/864e5;case"hour":return 24*e+this._milliseconds/36e5;case"minute":return 24*e*60+this._milliseconds/6e4;case"second":return 24*e*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*e*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+t)}},lang:bt.fn.lang,locale:bt.fn.locale,toIsoString:a("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),r=Math.abs(this.hours()),i=Math.abs(this.minutes()),a=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(r||i||a?"T":"")+(r?r+"H":"")+(i?i+"M":"")+(a?a+"S":""):"P0D"},localeData:function(){return this._locale},toJSON:function(){return this.toISOString()}}),bt.duration.fn.toString=bt.duration.fn.toISOString;for(wt in ce)n(ce,wt)&&xt(wt.toLowerCase());bt.duration.fn.asMilliseconds=function(){return this.as("ms")},bt.duration.fn.asSeconds=function(){return this.as("s")},bt.duration.fn.asMinutes=function(){return this.as("m")},bt.duration.fn.asHours=function(){return this.as("h")},bt.duration.fn.asDays=function(){return this.as("d")},bt.duration.fn.asWeeks=function(){return this.as("weeks")},bt.duration.fn.asMonths=function(){return this.as("M")},bt.duration.fn.asYears=function(){return this.as("y")},bt.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===M(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),Pt?module.exports=bt:"function"==typeof define&&define.amd?(define(function(t,e,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(At.moment=$t),bt}),_t(!0)):_t()}.call(this),!function(t,e){"use strict";return"function"==typeof define&&define.amd?void define(["angular"],function(t){return e(t)}):e(t)}(angular||null,function(t){"use strict";var e=t.module("ngTable",[]);return e.value("ngTableDefaults",{params:{},settings:{}}),e.factory("NgTableParams",["$q","$log","ngTableDefaults",function(e,n,r){var i=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},a=function(a,o){var s=this,u=function(){c.debugMode&&n.debug&&n.debug.apply(this,arguments)};this.data=[],this.parameters=function(e,n){if(n=n||!1,t.isDefined(e)){for(var r in e){var a=e[r];if(n&&r.indexOf("[")>=0){for(var o=r.split(/\[(.*)\]/).reverse(),s="",c=0,f=o.length;f>c;c++){var h=o[c];if(""!==h){var d=a;a={},a[s=h]=i(d)?parseFloat(d):d}}"sorting"===s&&(l[s]={}),l[s]=t.extend(l[s]||{},a[s])}else l[r]=i(e[r])?parseFloat(e[r]):e[r]}return u("ngTable: set parameters",l),this}return l},this.settings=function(e){return t.isDefined(e)?(t.isArray(e.data)&&(e.total=e.data.length),c=t.extend(c,e),u("ngTable: set settings",c),this):c},this.page=function(e){return t.isDefined(e)?this.parameters({page:e}):l.page},this.total=function(e){return t.isDefined(e)?this.settings({total:e}):c.total},this.count=function(e){return t.isDefined(e)?this.parameters({count:e,page:1}):l.count},this.filter=function(e){return t.isDefined(e)?this.parameters({filter:e,page:1}):l.filter},this.sorting=function(e){if(2==arguments.length){var n={};return n[e]=arguments[1],this.parameters({sorting:n}),this}return t.isDefined(e)?this.parameters({sorting:e}):l.sorting},this.isSortBy=function(e,n){return t.isDefined(l.sorting[e])&&t.equals(l.sorting[e],n)},this.orderBy=function(){var t=[];for(var e in l.sorting)t.push(("asc"===l.sorting[e]?"+":"-")+e);return t},this.getData=function(e,n){return e.resolve(t.isArray(this.data)&&t.isObject(n)?this.data.slice((n.page()-1)*n.count(),n.page()*n.count()):[]),e.promise},this.getGroups=function(n,r){var i=e.defer();return i.promise.then(function(e){var i={};t.forEach(e,function(e){var n=t.isFunction(r)?r(e):e[r];i[n]=i[n]||{data:[]},i[n].value=n,i[n].data.push(e)});var a=[];for(var o in i)a.push(i[o]);u("ngTable: refresh groups",a),n.resolve(a)}),this.getData(i,s)},this.generatePagesArray=function(t,e,n){var r,i,a,o,s,u;if(r=11,u=[],s=Math.ceil(e/n),s>1){u.push({type:"prev",number:Math.max(1,t-1),active:t>1}),u.push({type:"first",number:1,active:t>1,current:1===t}),a=Math.round((r-5)/2),o=Math.max(2,t-a),i=Math.min(s-1,t+2*a-(t-o)),o=Math.max(2,o-(2*a-(i-o)));for(var l=o;i>=l;)u.push(l===o&&2!==l||l===i&&l!==s-1?{type:"more",active:!1}:{type:"page",number:l,active:t!==l,current:t===l}),l++;u.push({type:"last",number:s,active:t!==s,current:t===s}),u.push({type:"next",number:Math.min(s,t+1),active:s>t})}return u},this.url=function(e){e=e||!1;var n=e?[]:{};for(var r in l)if(l.hasOwnProperty(r)){var i=l[r],a=encodeURIComponent(r);if("object"==typeof i){for(var o in i)if(!t.isUndefined(i[o])&&""!==i[o]){var s=a+"["+encodeURIComponent(o)+"]";e?n.push(s+"="+i[o]):n[s]=i[o]}}else t.isFunction(i)||t.isUndefined(i)||""===i||(e?n.push(a+"="+encodeURIComponent(i)):n[a]=encodeURIComponent(i))}return n},this.reload=function(){var t=e.defer(),n=this,r=null;return c.$scope?(c.$loading=!0,r=c.groupBy?c.getGroups(t,c.groupBy,this):c.getData(t,this),u("ngTable: reload data"),r||(r=t.promise),r.then(function(t){return c.$loading=!1,u("ngTable: current scope",c.$scope),c.groupBy?(n.data=t,c.$scope&&(c.$scope.$groups=t)):(n.data=t,c.$scope&&(c.$scope.$data=t)),c.$scope&&(c.$scope.pages=n.generatePagesArray(n.page(),n.total(),n.count())),c.$scope.$emit("ngTableAfterReloadData"),t})):void 0},this.reloadPages=function(){var t=this;c.$scope.pages=t.generatePagesArray(t.page(),t.total(),t.count())};var l=this.$params={page:1,count:1,filter:{},sorting:{},group:{},groupBy:null};t.extend(l,r.params);var c={$scope:null,$loading:!1,data:null,total:0,defaultSort:"desc",filterDelay:750,counts:[10,25,50,100],sortingIndicator:"span",getGroups:this.getGroups,getData:this.getData};return t.extend(c,r.settings),this.settings(o),this.parameters(a,!0),this};return a}]),e.factory("ngTableParams",["NgTableParams",function(t){return t}]),e.controller("ngTableController",["$scope","NgTableParams","$timeout","$parse","$compile","$attrs","$element","ngTableColumn",function(e,n,r,i,a,o,s,u){function l(){e.params.$params.page=1}var c=!0;e.$filterRow={},e.$loading=!1,e.hasOwnProperty("params")||(e.params=new n,e.params.isNullInstance=!0),e.params.settings().$scope=e;var f=function(){var t=0;return function(e,n){r.cancel(t),t=r(e,n)}}();e.$watch("params.$params",function(n,r){if(n!==r){if(e.params.settings().$scope=e,t.equals(n.filter,r.filter))e.params.reload();else{var i=c?t.noop:l;f(function(){i(),e.params.reload()},e.params.settings().filterDelay)}e.params.isNullInstance||(c=!1)}},!0),this.compileDirectiveTemplates=function(){if(!s.hasClass("ng-table")){e.templates={header:o.templateHeader?o.templateHeader:"ng-table/header.html",pagination:o.templatePagination?o.templatePagination:"ng-table/pager.html"},s.addClass("ng-table");var n=null;0===s.find("> thead").length&&(n=t.element(document.createElement("thead")).attr("ng-include","templates.header"),s.prepend(n));var r=t.element(document.createElement("div")).attr({"ng-table-pagination":"params","template-url":"templates.pagination"});s.after(r),n&&a(n)(e),a(r)(e)}},this.loadFilterData=function(n){t.forEach(n,function(n){var r;return r=n.filterData(e,{$column:n}),r?t.isObject(r)&&t.isObject(r.promise)?(delete n.filterData,r.promise.then(function(e){t.isArray(e)||t.isFunction(e)||t.isObject(e)?t.isArray(e)&&e.unshift({title:"-",id:""}):e=[],n.data=e})):n.data=r:void delete n.filterData})},this.buildColumns=function(t){return t.map(function(t){return u.buildColumn(t,e)})},this.setupBindingsToInternalScope=function(n){var r=i(n);e.$watch(r,function(n){t.isUndefined(n)||(e.paramsModel=r,e.params=n)},!1),o.showFilter&&e.$parent.$watch(o.showFilter,function(t){e.show_filter=t}),o.disableFilter&&e.$parent.$watch(o.disableFilter,function(t){e.$filterRow.disabled=t})},e.sortBy=function(t,n){var r=t.sortable&&t.sortable();if(r){var i=e.params.settings().defaultSort,a="asc"===i?"desc":"asc",o=e.params.sorting()&&e.params.sorting()[r]&&e.params.sorting()[r]===i,s=n.ctrlKey||n.metaKey?e.params.sorting():{};s[r]=o?a:i,e.params.parameters({sorting:s})}}}]),e.factory("ngTableColumn",[function(){function e(e,r){var i=Object.create(e);for(var a in n)void 0===i[a]&&(i[a]=n[a]),t.isFunction(i[a])||!function(t){i[t]=function(){return e[t]}}(a),function(t){var n=i[t];i[t]=function(){return 0===arguments.length?n.call(e,r):n.apply(e,arguments)}}(a);return i}var n={"class":function(){return""},filter:function(){return!1},filterData:t.noop,headerTemplateURL:function(){return!1},headerTitle:function(){return" "},sortable:function(){return!1},show:function(){return!0},title:function(){return" "},titleAlt:function(){return""}};return{buildColumn:e}}]),e.directive("ngTable",["$q","$parse",function(e,n){return{restrict:"A",priority:1001,scope:!0,controller:"ngTableController",compile:function(e){var r=[],i=0,a=null;return t.forEach(t.element(e.find("tr")),function(e){e=t.element(e),e.hasClass("ng-table-group")||a||(a=e)}),a?(t.forEach(a.find("td"),function(e){var a=t.element(e);if(!a.attr("ignore-cell")||"true"!==a.attr("ignore-cell")){var o=function(t){return a.attr("x-data-"+t)||a.attr("data-"+t)||a.attr(t)},s=function(e){var i=o(e);return i?function(e,a){return n(i)(e,t.extend(a||{},{$columns:r}))}:void 0},u=o("title-alt")||o("title");u&&a.attr("data-title-text","{{"+u+"}}"),r.push({id:i++,title:s("title"),titleAlt:s("title-alt"),headerTitle:s("header-title"),sortable:s("sortable"),"class":s("header-class"),filter:s("filter"),headerTemplateURL:s("header"),filterData:s("filter-data"),show:a.attr("ng-show")?function(t){return n(a.attr("ng-show"))(t)}:void 0})}}),function(t,e,n,i){t.$columns=r=i.buildColumns(r),i.setupBindingsToInternalScope(n.ngTable),i.loadFilterData(r),i.compileDirectiveTemplates()}):void 0}}}]),e.directive("ngTableDynamic",["$parse",function(e){function n(t){if(!t||t.indexOf(" with ")>-1){var e=t.split(/\s+with\s+/);return{tableParams:e[0],columns:e[1]}}throw new Error("Parse error (expected example: ng-table-dynamic='tableParams with cols')")}return{restrict:"A",priority:1001,scope:!0,controller:"ngTableController",compile:function(r){var i;return t.forEach(t.element(r.find("tr")),function(e){e=t.element(e),e.hasClass("ng-table-group")||i||(i=e)}),i?(t.forEach(i.find("td"),function(e){var n=t.element(e),r=function(t){return n.attr("x-data-"+t)||n.attr("data-"+t)||n.attr(t)},i=r("title");i||n.attr("data-title-text","{{$columns[$index].titleAlt(this) || $columns[$index].title(this)}}");var a=n.attr("ng-show");a||n.attr("ng-show","$columns[$index].show(this)")}),function(t,r,i,a){var o=n(i.ngTableDynamic),s=e(o.columns)(t)||[];t.$columns=a.buildColumns(s),a.setupBindingsToInternalScope(o.tableParams),a.loadFilterData(t.$columns),a.compileDirectiveTemplates()}):void 0}}}]),e.directive("ngTablePagination",["$compile",function(e){return{restrict:"A",scope:{params:"=ngTablePagination",templateUrl:"="},replace:!1,link:function(n,r){n.params.settings().$scope.$on("ngTableAfterReloadData",function(){n.pages=n.params.generatePagesArray(n.params.page(),n.params.total(),n.params.count())},!0),n.$watch("templateUrl",function(i){if(!t.isUndefined(i)){var a=t.element(document.createElement("div"));a.attr({"ng-include":"templateUrl"}),r.append(a),e(a)(n)}})}}}]),t.module("ngTable").run(["$templateCache",function(t){t.put("ng-table/filters/select-multiple.html",''),t.put("ng-table/filters/select.html",''),t.put("ng-table/filters/text.html",''),t.put("ng-table/header.html",'
'),t.put("ng-table/pager.html",' ')}]),e}),function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=t.length,n=Q.type(t);return"function"===n||Q.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function r(t,e,n){if(Q.isFunction(e))return Q.grep(t,function(t,r){return!!e.call(t,r,t)!==n});if(e.nodeType)return Q.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(st.test(e))return Q.filter(e,t,n);e=Q.filter(e,t)}return Q.grep(t,function(t){return B.call(e,t)>=0!==n})}function i(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function a(t){var e=pt[t]={};return Q.each(t.match(dt)||[],function(t,n){e[n]=!0}),e}function o(){J.removeEventListener("DOMContentLoaded",o,!1),t.removeEventListener("load",o,!1),Q.ready()}function s(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+s.uid++}function u(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(_t,"-$1").toLowerCase(),n=t.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:xt.test(n)?Q.parseJSON(n):n}catch(i){}yt.set(t,e,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return J.activeElement}catch(t){}}function h(t,e){return Q.nodeName(t,"table")&&Q.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function d(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function p(t){var e=Ft.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function g(t,e){for(var n=0,r=t.length;r>n;n++)vt.set(t[n],"globalEval",!e||vt.get(e[n],"globalEval"))}function m(t,e){var n,r,i,a,o,s,u,l;if(1===e.nodeType){if(vt.hasData(t)&&(a=vt.access(t),o=vt.set(e,a),l=a.events)){delete o.handle,o.events={};for(i in l)for(n=0,r=l[i].length;r>n;n++)Q.event.add(e,i,l[i][n])}yt.hasData(t)&&(s=yt.access(t),u=Q.extend({},s),yt.set(e,u))}}function v(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&Q.nodeName(t,e)?Q.merge([t],n):n}function y(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}function x(e,n){var r,i=Q(n.createElement(e)).appendTo(n.body),a=t.getDefaultComputedStyle&&(r=t.getDefaultComputedStyle(i[0]))?r.display:Q.css(i[0],"display");return i.detach(),a}function _(t){var e=J,n=Yt[t];return n||(n=x(t,e),"none"!==n&&n||(jt=(jt||Q("