upgrade to AngularJS 1.0.0rc11 promise-resolution

This commit is contained in:
Igor Minar 2012-06-11 00:54:46 -07:00
parent e27efe2023
commit 830516a8be
14 changed files with 1544 additions and 776 deletions

View File

@ -1,5 +1,5 @@
/**
* @license AngularJS v1.0.0rc10
* @license AngularJS v1.0.0rc11
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/

View File

@ -1,5 +1,5 @@
/*
AngularJS v1.0.0rc10
AngularJS v1.0.0rc11
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/

View File

@ -1,5 +1,5 @@
/**
* @license AngularJS v1.0.0rc10
* @license AngularJS v1.0.0rc11
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/

View File

@ -1,5 +1,5 @@
/*
AngularJS v1.0.0rc10
AngularJS v1.0.0rc11
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/

View File

@ -1,5 +1,5 @@
/**
* @license AngularJS v1.0.0rc10
* @license AngularJS v1.0.0rc11
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/

View File

@ -1,5 +1,5 @@
/*
AngularJS v1.0.0rc10
AngularJS v1.0.0rc11
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/

View File

@ -1,5 +1,5 @@
/**
* @license AngularJS v1.0.0rc10
* @license AngularJS v1.0.0rc11
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
@ -411,7 +411,7 @@ angular.module('ngSanitize', []).value('$sanitize', $sanitize);
* See {@link angular.module.ngSanitize.$sanitize $sanitize} docs for examples.
*
* @element ANY
* @param {expression} ngBindHtml {@link guide/dev_guide.expressions Expression} to evaluate.
* @param {expression} ngBindHtml {@link guide/expression Expression} to evaluate.
*/
angular.module('ngSanitize').directive('ngBindHtml', ['$sanitize', function($sanitize) {
return function(scope, element, attr) {

View File

@ -1,5 +1,5 @@
/*
AngularJS v1.0.0rc10
AngularJS v1.0.0rc11
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/

File diff suppressed because it is too large Load Diff

View File

@ -1,155 +1,156 @@
/*
AngularJS v1.0.0rc10
AngularJS v1.0.0rc11
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(V,aa,p){'use strict';function l(b,a,c){var d;if(b)if(P(b))for(d in b)d!="prototype"&&d!="length"&&d!="name"&&b.hasOwnProperty(d)&&a.call(c,b[d],d);else if(b.forEach&&b.forEach!==l)b.forEach(a,c);else if(L(b)&&sa(b.length))for(d=0;d<b.length;d++)a.call(c,b[d],d);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function ib(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}function Zb(b,a,c){for(var d=ib(b),e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}
function jb(b){return function(a,c){b(c,a)}}function ta(){for(var b=Z.length,a;b;){b--;a=Z[b].charCodeAt(0);if(a==57)return Z[b]="A",Z.join("");if(a==90)Z[b]="0";else return Z[b]=String.fromCharCode(a+1),Z.join("")}Z.unshift("0");return Z.join("")}function C(b){l(arguments,function(a){a!==b&&l(a,function(a,d){b[d]=a})});return b}function E(b){return parseInt(b,10)}function Oa(b,a){return C(new (C(function(){},{prototype:b})),a)}function r(){}function ua(b){return b}function A(b){return function(){return b}}
function v(b){return typeof b=="undefined"}function u(b){return typeof b!="undefined"}function L(b){return b!=null&&typeof b=="object"}function J(b){return typeof b=="string"}function sa(b){return typeof b=="number"}function ka(b){return Pa.apply(b)=="[object Date]"}function M(b){return Pa.apply(b)=="[object Array]"}function P(b){return typeof b=="function"}function la(b){return b&&b.document&&b.location&&b.alert&&b.setInterval}function R(b){return J(b)?b.replace(/^\s*/,"").replace(/\s*$/,""):b}function $b(b){return b&&
(b.nodeName||b.bind&&b.find)}function Qa(b,a,c){var d=[];l(b,function(b,g,i){d.push(a.call(c,b,g,i))});return d}function ac(b,a){var c=0,d;if(M(b)||J(b))return b.length;else if(L(b))for(d in b)(!a||b.hasOwnProperty(d))&&c++;return c}function Ra(b,a){if(b.indexOf)return b.indexOf(a);for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}function va(b,a){var c=Ra(b,a);c>=0&&b.splice(c,1);return a}function W(b,a){if(la(b)||b&&b.$evalAsync&&b.$watch)throw B("Can't copy Window or Scope");if(a){if(b===
a)throw B("Can't copy equivalent objects or arrays");if(M(b)){for(;a.length;)a.pop();for(var c=0;c<b.length;c++)a.push(W(b[c]))}else for(c in l(a,function(b,c){delete a[c]}),b)a[c]=W(b[c])}else(a=b)&&(M(b)?a=W(b,[]):ka(b)?a=new Date(b.getTime()):L(b)&&(a=W(b,{})));return a}function bc(b,a){var a=a||{},c;for(c in b)b.hasOwnProperty(c)&&c.substr(0,2)!=="$$"&&(a[c]=b[c]);return a}function ea(b,a){if(b===a)return!0;if(b===null||a===null)return!1;if(b!==b&&a!==a)return!0;var c=typeof b,d;if(c==typeof a&&
c=="object")if(M(b)){if((c=b.length)==a.length){for(d=0;d<c;d++)if(!ea(b[d],a[d]))return!1;return!0}}else if(ka(b))return ka(a)&&b.getTime()==a.getTime();else{if(b&&b.$evalAsync&&b.$watch||a&&a.$evalAsync&&a.$watch||la(b)||la(a))return!1;c={};for(d in b){if(d.charAt(0)!=="$"&&!P(b[d])&&!ea(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c[d]&&d.charAt(0)!=="$"&&!P(a[d]))return!1;return!0}return!1}function Sa(b,a){var c=arguments.length>2?ga.call(arguments,2):[];return P(a)&&!(a instanceof RegExp)?c.length?
function(){return arguments.length?a.apply(b,c.concat(ga.call(arguments,0))):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}:a}function cc(b,a){var c=a;/^\$+/.test(b)?c=p:la(a)?c="$WINDOW":a&&aa===a?c="$DOCUMENT":a&&a.$evalAsync&&a.$watch&&(c="$SCOPE");return c}function ba(b,a){return JSON.stringify(b,cc,a?" ":null)}function kb(b){return J(b)?JSON.parse(b):b}function Ta(b){b&&b.length!==0?(b=D(""+b),b=!(b=="f"||b=="0"||b=="false"||b=="no"||b=="n"||b=="[]")):b=!1;
return b}function wa(b){b=t(b).clone();try{b.html("")}catch(a){}return t("<div>").append(b).html().match(/^(<[^>]+>)/)[1]}function Ua(b){var a={},c,d;l((b||"").split("&"),function(b){b&&(c=b.split("="),d=decodeURIComponent(c[0]),a[d]=u(c[1])?decodeURIComponent(c[1]):!0)});return a}function lb(b){var a=[];l(b,function(b,d){a.push(Va(d,!0)+(b===!0?"":"="+Va(b,!0)))});return a.length?a.join("&"):""}function Wa(b){return Va(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Va(b,
a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(a?null:/%20/g,"+")}function dc(b,a){function c(a){a&&d.push(a)}var d=[b],e,g,i=["ng:app","ng-app","x-ng-app","data-ng-app"],f=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;l(i,function(a){i[a]=!0;c(aa.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(l(b.querySelectorAll("."+a),c),l(b.querySelectorAll("."+a+"\\:"),c),l(b.querySelectorAll("["+a+"]"),c))});l(d,function(a){if(!e){var b=
f.exec(" "+a.className+" ");b?(e=a,g=(b[2]||"").replace(/\s+/g,",")):l(a.attributes,function(b){if(!e&&i[b.name])e=a,g=b.value})}});e&&a(e,g?[g]:[])}function mb(b,a){b=t(b);a=a||[];a.unshift("ng");var c=nb(a);c.invoke(["$rootScope","$compile","$injector",function(a,c,g){a.$apply(function(){b.data("$injector",g);c(b)(a)})}]);return c}function Xa(b,a){a=a||"_";return b.replace(ec,function(b,d){return(d?a:"")+b.toLowerCase()})}function ma(b,a,c){if(!b)throw new B("Argument '"+(a||"?")+"' is "+(c||"required"));
return b}function na(b,a,c){c&&M(b)&&(b=b[b.length-1]);ma(P(b),a,"not a function, got "+(b&&typeof b=="object"?b.constructor.name||"Object":typeof b));return b}function fc(b){function a(a,b,e){return a[b]||(a[b]=e())}return a(a(b,"angular",Object),"module",function(){var b={};return function(d,e,g){e&&b.hasOwnProperty(d)&&(b[d]=null);return a(b,d,function(){function a(c,d,e){return function(){b[e||"push"]([c,d,arguments]);return k}}if(!e)throw B("No module: "+d);var b=[],c=[],j=a("$injector","invoke"),
k={_invokeQueue:b,_runBlocks:c,requires:e,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:j,run:function(a){c.push(a);return this}};g&&j(g);return k})}})}function ob(b){return b.replace(gc,function(a,b,d,e){return e?d.toUpperCase():d}).replace(hc,
"Moz$1")}function Ya(b,a){function c(){var e;for(var b=[this],c=a,i,f,h,j,k,n,m;b.length;){i=b.shift();f=0;for(h=i.length;f<h;f++){j=t(i[f]);c?(m=(k=j.data("events"))&&k.$destroy)&&l(m,function(a){a.handler()}):c=!c;k=0;for(e=(n=j.children()).length,j=e;k<j;k++)b.push(ha(n[k]))}}return d.apply(this,arguments)}var d=ha.fn[b],d=d.$original||d;c.$original=d;ha.fn[b]=c}function N(b){if(b instanceof N)return b;if(!(this instanceof N)){if(J(b)&&b.charAt(0)!="<")throw B("selectors not implemented");return new N(b)}if(J(b)){var a=
aa.createElement("div");a.innerHTML="<div>&nbsp;</div>"+b;a.removeChild(a.firstChild);Za(this,a.childNodes);this.remove()}else Za(this,b)}function $a(b){return b.cloneNode(!0)}function oa(b){pb(b);for(var a=0,b=b.childNodes||[];a<b.length;a++)oa(b[a])}function qb(b,a,c){var d=ca(b,"events");ca(b,"handle")&&(v(a)?l(d,function(a,c){rb(b,c,a);delete d[c]}):v(c)?(rb(b,a,d[a]),delete d[a]):va(d[a],c))}function pb(b){var a=b[xa],c=ya[a];c&&(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),qb(b)),delete ya[a],
b[xa]=p)}function ca(b,a,c){var d=b[xa],d=ya[d||-1];if(u(c))d||(b[xa]=d=++ic,d=ya[d]={}),d[a]=c;else return d&&d[a]}function sb(b,a,c){var d=ca(b,"data"),e=u(c),g=!e&&u(a),i=g&&!L(a);!d&&!i&&ca(b,"data",d={});if(e)d[a]=c;else if(g)if(i)return d&&d[a];else C(d,a);else return d}function za(b,a){return(" "+b.className+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" ")>-1}function tb(b,a){a&&l(a.split(" "),function(a){b.className=R((" "+b.className+" ").replace(/[\n\t]/g," ").replace(" "+R(a)+" "," "))})}
function ub(b,a){a&&l(a.split(" "),function(a){if(!za(b,a))b.className=R(b.className+" "+R(a))})}function Za(b,a){if(a)for(var a=!a.nodeName&&u(a.length)&&!la(a)?a:[a],c=0;c<a.length;c++)b.push(a[c])}function vb(b,a){return Aa(b,"$"+(a||"ngController")+"Controller")}function Aa(b,a,c){b=t(b);for(b[0].nodeType==9&&(b=b.find("html"));b.length;){if(c=b.data(a))return c;b=b.parent()}}function wb(b,a){return xb[b.nodeName]&&Ba[a.toLowerCase()]}function jc(b,a){var c=function(c,e){if(!c.preventDefault)c.preventDefault=
function(){c.returnValue=!1};if(!c.stopPropagation)c.stopPropagation=function(){c.cancelBubble=!0};if(!c.target)c.target=c.srcElement||aa;if(v(c.defaultPrevented)){var g=c.preventDefault;c.preventDefault=function(){c.defaultPrevented=!0;g.call(c)};c.defaultPrevented=!1}c.isDefaultPrevented=function(){return c.defaultPrevented};l(a[e||c.type],function(a){try{a.call(b,c)}catch(e){}});$<=8?(c.preventDefault=null,c.stopPropagation=null,c.isDefaultPrevented=null):(delete c.preventDefault,delete c.stopPropagation,
delete c.isDefaultPrevented)};c.elem=b;return c}function ia(b){var a=typeof b,c;if(a=="object"&&b!==null)if(typeof(c=b.$$hashKey)=="function")c=b.$$hashKey();else{if(c===p)c=b.$$hashKey=ta()}else c=b;return a+":"+c}function Ca(b){l(b,this.put,this)}function ab(){}function kc(b){na(b);if(!b.$inject){var a=b.$inject=[],c=b.toString().replace(lc,"").match(mc);l(c[1].split(nc),function(b){b.replace(oc,function(b,c,d){a.push(d)})})}return b.$inject}function nb(b){function a(a){return function(b,c){if(L(b))l(b,
jb(a));else return a(b,c)}}function c(a,b){P(b)&&(b=n.instantiate(b));if(!b.$get)throw B("Provider "+a+" must define $get factory method.");return k[a+f]=b}function d(a,b){return c(a,{$get:b})}function e(a){var b=[];l(a,function(a){if(!j.get(a))if(j.put(a,!0),J(a)){var c=pa(a);b=b.concat(e(c.requires)).concat(c._runBlocks);try{for(var d=c._invokeQueue,c=0,f=d.length;c<f;c++){var g=d[c],h=g[0]=="$injector"?n:n.get(g[0]);h[g[1]].apply(h,g[2])}}catch(i){throw i.message&&(i.message+=" from "+a),i;}}else if(P(a))try{b.push(n.invoke(a))}catch(m){throw m.message&&
(m.message+=" from "+a),m;}else if(M(a))try{b.push(n.invoke(a))}catch(k){throw k.message&&(k.message+=" from "+String(a[a.length-1])),k;}else na(a,"module")});return b}function g(a,b){function c(d){if(typeof d!=="string")throw B("Service name expected");if(a.hasOwnProperty(d)){if(a[d]===i)throw B("Circular dependency: "+h.join(" <- "));return a[d]}else try{return h.unshift(d),a[d]=i,a[d]=b(d)}finally{h.shift()}}function d(a,b,e){var f=[],j,g,i;typeof a=="function"?(j=kc(a),g=j.length):(M(a)&&(j=a,
g=j.length-1,a=j[g]),na(a,"fn"));for(var m=0;m<g;m++)i=j[m],f.push(e&&e.hasOwnProperty(i)?e[i]:c(i,h));switch(b?-1:f.length){case 0:return a();case 1:return a(f[0]);case 2:return a(f[0],f[1]);case 3:return a(f[0],f[1],f[2]);case 4:return a(f[0],f[1],f[2],f[3]);case 5:return a(f[0],f[1],f[2],f[3],f[4]);case 6:return a(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6]);case 8:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7]);case 9:return a(f[0],f[1],f[2],f[3],f[4],f[5],
f[6],f[7],f[8]);case 10:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9]);default:return a.apply(b,f)}}return{invoke:d,instantiate:function(a,b){var c=function(){},e;c.prototype=(M(a)?a[a.length-1]:a).prototype;c=new c;e=d(a,c,b);return L(e)?e:c},get:c}}var i={},f="Provider",h=[],j=new Ca,k={$provide:{provider:a(c),factory:a(d),service:a(function(a,b){return d(a,["$injector",function(a){return a.instantiate(b)}])}),value:a(function(a,b){return d(a,A(b))}),constant:a(function(a,b){k[a]=b;
m[a]=b}),decorator:function(a,b){var c=n.get(a+f),d=c.$get;c.$get=function(){var a=s.invoke(d,c);return s.invoke(b,null,{$delegate:a})}}}},n=g(k,function(){throw B("Unknown provider: "+h.join(" <- "));}),m={},s=m.$injector=g(m,function(a){a=n.get(a+f);return s.invoke(a.$get,a)});l(e(b),function(a){s.invoke(a||r)});return s}function pc(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;l(a,function(a){!b&&D(a.nodeName)===
"a"&&(b=a)});return b}function g(){var b=c.hash(),d;b?(d=i.getElementById(b))?d.scrollIntoView():(d=e(i.getElementsByName(b)))?d.scrollIntoView():b==="top"&&a.scrollTo(0,0):a.scrollTo(0,0)}var i=a.document;b&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(g)});return g}]}function qc(b,a,c,d){function e(a){try{a.apply(null,ga.call(arguments,1))}finally{if(o--,o===0)for(;O.length;)try{O.pop()()}catch(b){c.error(b)}}}function g(a,b){(function fa(){l(q,function(a){a()});w=b(fa,a)})()}function i(){G!=
f.url()&&(G=f.url(),l(z,function(a){a(f.url())}))}var f=this,h=a[0],j=b.location,k=b.history,n=b.setTimeout,m=b.clearTimeout,s={};f.isMock=!1;var o=0,O=[];f.$$completeOutstandingRequest=e;f.$$incOutstandingRequestCount=function(){o++};f.notifyWhenNoOutstandingRequests=function(a){l(q,function(a){a()});o===0?a():O.push(a)};var q=[],w;f.addPollFn=function(a){v(w)&&g(100,n);q.push(a);return a};var G=j.href,H=a.find("base");f.url=function(a,b){return a?(G=a,d.history?b?k.replaceState(null,"",a):(k.pushState(null,
"",a),H.attr("href",H.attr("href"))):b?j.replace(a):j.href=a,f):j.href.replace(/%27/g,"'")};var z=[],T=!1;f.onUrlChange=function(a){T||(d.history&&t(b).bind("popstate",i),d.hashchange?t(b).bind("hashchange",i):f.addPollFn(i),T=!0);z.push(a);return a};f.baseHref=function(){var a=H.attr("href");return a?a.replace(/^https?\:\/\/[^\/]*/,""):a};var X={},x="",K=f.baseHref();f.cookies=function(a,b){var d,e,f,j;if(a)if(b===p)h.cookie=escape(a)+"=;path="+K+";expires=Thu, 01 Jan 1970 00:00:00 GMT";else{if(J(b))d=
(h.cookie=escape(a)+"="+escape(b)+";path="+K).length+1,d>4096&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"),X.length>20&&c.warn("Cookie '"+a+"' possibly not set or overflowed because too many cookies were already set ("+X.length+" > 20 )")}else{if(h.cookie!==x){x=h.cookie;d=x.split("; ");X={};for(f=0;f<d.length;f++)e=d[f],j=e.indexOf("="),j>0&&(X[unescape(e.substring(0,j))]=unescape(e.substring(j+1)))}return X}};f.defer=function(a,b){var c;
o++;c=n(function(){delete s[c];e(a)},b||0);s[c]=!0;return c};f.defer.cancel=function(a){return s[a]?(delete s[a],m(a),e(r),!0):!1}}function rc(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new qc(b,d,a,c)}]}function sc(){this.$get=function(){function b(b,d){function e(a){if(a!=n){if(m){if(m==a)m=a.n}else m=a;g(a.n,a.p);g(a,n);n=a;n.n=null}}function g(a,b){if(a!=b){if(a)a.p=b;if(b)b.n=a}}if(b in a)throw B("cacheId "+b+" taken");var i=0,f=C({},d,{id:b}),h={},j=d&&d.capacity||
Number.MAX_VALUE,k={},n=null,m=null;return a[b]={put:function(a,b){var c=k[a]||(k[a]={key:a});e(c);v(b)||(a in h||i++,h[a]=b,i>j&&this.remove(m.key))},get:function(a){var b=k[a];if(b)return e(b),h[a]},remove:function(a){var b=k[a];if(b==n)n=b.p;if(b==m)m=b.n;g(b.n,b.p);delete k[a];delete h[a];i--},removeAll:function(){h={};i=0;k={};n=m=null},destroy:function(){k=f=h=null;delete a[b]},info:function(){return C({},f,{size:i})}}}var a={};b.info=function(){var b={};l(a,function(a,e){b[e]=a.info()});return b};
b.get=function(b){return a[b]};return b}}function tc(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function yb(b){var a={},c="Directive",d=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,e=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g="Template must have exactly one root element. was: ";this.directive=function f(d,e){J(d)?(ma(e,"directive"),a.hasOwnProperty(d)||(a[d]=[],b.factory(d+c,["$injector","$exceptionHandler",function(b,c){var e=[];l(a[d],function(a){try{var f=b.invoke(a);if(P(f))f={compile:A(f)};
else if(!f.compile&&f.link)f.compile=A(f.link);f.priority=f.priority||0;f.name=f.name||d;f.require=f.require||f.controller&&f.name;f.restrict=f.restrict||"A";e.push(f)}catch(j){c(j)}});return e}])),a[d].push(e)):l(d,jb(f));return this};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller",function(b,h,j,k,n,m,s){function o(a,b,c){a instanceof t||(a=t(a));l(a,function(b,c){b.nodeType==3&&(a[c]=t(b).wrap("<span>").parent()[0])});var d=w(a,b,a,c);return function(b,
c){ma(b,"scope");var e=c?qa.clone.call(a):a;e.data("$scope",b);q(e,"ng-scope");c&&c(e,b);d&&d(b,e,e);return e}}function O(a,b){throw B("Unsupported '"+b+"' for '"+a+"'.");}function q(a,b){try{a.addClass(b)}catch(c){}}function w(a,b,c,d){function e(a,c,d,j){for(var g,m,h,k,n,S=0,s=0,o=f.length;S<o;s++)h=c[s],g=f[S++],m=f[S++],g?(g.scope?(k=a.$new(L(g.scope)),t(h).data("$scope",k)):k=a,(n=g.transclude)||!j&&b?g(m,k,h,d,function(b){return function(c){var d=a.$new();return b(d,c).bind("$destroy",Sa(d,
d.$destroy))}}(n||b)):g(m,k,h,p,j)):m&&m(a,h.childNodes,p,j)}for(var f=[],j,g,h,m=0;m<a.length;m++)g=new v,j=G(a[m],[],g,d),g=(j=j.length?H(j,a[m],g,b,c):null)&&j.terminal?null:w(a[m].childNodes,j?j.transclude:b),f.push(j),f.push(g),h=h||j||g;return h?e:null}function G(a,b,c,f){var j=c.$attr,g;switch(a.nodeType){case 1:z(b,da(zb(a).toLowerCase()),"E",f);var m,h,k;g=a.attributes;for(var n=0,s=g&&g.length;n<s;n++)if(m=g[n],m.specified)h=m.name,k=da(h.toLowerCase()),j[k]=h,c[k]=m=R($&&h=="href"?decodeURIComponent(a.getAttribute(h,
2)):m.value),wb(a,k)&&(c[k]=!0),Y(a,b,m,k),z(b,k,"A",f);a=a.className;if(J(a))for(;g=e.exec(a);)k=da(g[2]),z(b,k,"C",f)&&(c[k]=R(g[3])),a=a.substr(g.index+g[0].length);break;case 3:F(b,a.nodeValue);break;case 8:try{if(g=d.exec(a.nodeValue))k=da(g[1]),z(b,k,"M",f)&&(c[k]=R(g[2]))}catch(o){}}b.sort(x);return b}function H(a,b,c,d,e){function f(a,b){if(a)a.require=y.require,n.push(a);if(b)b.require=y.require,w.push(b)}function m(a,b){var c,d="data",e=!1;if(J(a)){for(;(c=a.charAt(0))=="^"||c=="?";)a=a.substr(1),
c=="^"&&(d="inheritedData"),e=e||c=="?";c=b[d]("$"+a+"Controller");if(!c&&!e)throw B("No controller: "+a);}else M(a)&&(c=[],l(a,function(a){c.push(m(a,b))}));return c}function h(a,d,e,f,g){var k,S,o,q,T;k=b===e?c:bc(c,new v(t(e),c.$attr));S=k.$$element;x&&L(x.scope)&&l(x.scope,function(a,b){(fa[a]||O)(b,a,d.$parent||d,d,k)});A&&l(A,function(a){var b={$scope:d,$element:S,$attrs:k,$transclude:g};l(a.inject||{},function(a,c){(fa[a]||O)(c,a,x?d.$parent||d:d,b,k)});T=a.controller;T=="@"&&(T=k[a.name]);
S.data("$"+a.name+"Controller",s(T,b))});f=0;for(o=n.length;f<o;f++)try{q=n[f],q(d,S,k,q.require&&m(q.require,S))}catch(vc){j(vc,wa(S))}a&&a(d,e.childNodes,p,g);f=0;for(o=w.length;f<o;f++)try{q=w[f],q(d,S,k,q.require&&m(q.require,S))}catch(uc){j(uc,wa(S))}}for(var k=-Number.MAX_VALUE,n=[],w=[],x=null,H=null,z=null,F=c.$$element=t(b),y,Y,r,C,u=d,A,E,D,I=0,N=a.length;I<N;I++){y=a[I];r=p;if(k>y.priority)break;if(D=y.scope)K("isolated scope",H,y,F),L(D)&&(q(F,"ng-isolate-scope"),H=y),q(F,"ng-scope"),
x=x||y;Y=y.name;if(D=y.controller)A=A||{},K("'"+Y+"' controller",A[Y],y,F),A[Y]=y;if(D=y.transclude)K("transclusion",C,y,F),C=y,k=y.priority,D=="element"?(r=t(b),F=c.$$element=t("<\!-- "+Y+": "+c[Y]+" --\>"),b=F[0],Da(e,t(r[0]),b),u=o(r,d,k)):(r=t($a(b)).contents(),F.html(""),u=o(r,d));if(D=y.template)if(K("template",z,y,F),z=y,r=t("<div>"+R(D)+"</div>").contents(),b=r[0],y.replace){if(r.length!=1||b.nodeType!==1)throw new B(g+D);Da(e,F,b);Y={$attr:{}};a=a.concat(G(b,a.splice(I+1,a.length-(I+1)),
Y));T(c,Y);N=a.length}else F.html(D);if(y.templateUrl)K("template",z,y,F),z=y,h=X(a.splice(I,a.length-I),h,F,c,e,y.replace,u),N=a.length;else if(y.compile)try{E=y.compile(F,c,u),P(E)?f(null,E):E&&f(E.pre,E.post)}catch(Q){j(Q,wa(F))}if(y.terminal)h.terminal=!0,k=Math.max(k,y.priority)}h.scope=x&&x.scope;h.transclude=C&&u;return h}function z(d,e,g,h){var m=!1;if(a.hasOwnProperty(e))for(var k,e=b.get(e+c),n=0,s=e.length;n<s;n++)try{if(k=e[n],(h===p||h>k.priority)&&k.restrict.indexOf(g)!=-1)d.push(k),
m=!0}catch(q){j(q)}return m}function T(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;l(a,function(d,e){e.charAt(0)!="$"&&(b[e]&&(d+=(e==="style"?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});l(b,function(b,f){f=="class"?q(e,b):f=="style"?e.attr("style",e.attr("style")+";"+b):f.charAt(0)!="$"&&!a.hasOwnProperty(f)&&(a[f]=b,d[f]=c[f])})}function X(a,b,c,d,e,f,j){var h=[],m,s,q=c[0],o=a.shift(),O=C({},o,{controller:null,templateUrl:null,transclude:null});c.html("");k.get(o.templateUrl,{cache:n}).success(function(k){var n,
o;if(f){o=t("<div>"+R(k)+"</div>").contents();n=o[0];if(o.length!=1||n.nodeType!==1)throw new B(g+k);k={$attr:{}};Da(e,c,n);G(n,a,k);T(d,k)}else n=q,c.html(k);a.unshift(O);m=H(a,c,d,j);for(s=w(c.contents(),j);h.length;){var l=h.pop(),k=h.pop();o=h.pop();var x=h.pop(),K=n;o!==q&&(K=$a(n),Da(k,t(o),K));m(function(){b(s,x,K,e,l)},x,K,e,l)}h=null}).error(function(a,b,c,d){throw B("Failed to load template: "+d.url);});return function(a,c,d,e,f){h?(h.push(c),h.push(d),h.push(e),h.push(f)):m(function(){b(s,
c,d,e,f)},c,d,e,f)}}function x(a,b){return b.priority-a.priority}function K(a,b,c,d){if(b)throw B("Multiple directives ["+b.name+", "+c.name+"] asking for "+a+" on: "+wa(d));}function F(a,b){var c=h(b,!0);c&&a.push({priority:0,compile:A(function(a,b){var d=b.parent(),e=d.data("$binding")||[];e.push(c);q(d.data("$binding",e),"ng-binding");a.$watch(c,function(a){b[0].nodeValue=a})})})}function Y(a,b,c,d){var e=h(c,!0);e&&b.push({priority:100,compile:A(function(a,b,c){d==="class"&&(e=h(c[d],!0));c.$$observers[d]=
[];c[d]=p;a.$watch(e,function(a){c.$set(d,a)})})})}function Da(a,b,c){var d=b[0],e=d.parentNode,f,g;if(a){f=0;for(g=a.length;f<g;f++)if(a[f]==d){a[f]=c;break}}e&&e.replaceChild(c,d);c[t.expando]=d[t.expando];b[0]=c}var fa={attribute:function(a,b,c,d,e){d[a]=e[a]},evaluate:function(a,b,c,d,e){d[a]=c.$eval(e[a])},bind:function(a,b,c,d,e){var f=h(e[a]);d.$watch(function(){return f(c)},function(b){d[a]=b})},accessor:function(a,b,c,d,e){var f=r,g=r,j=e[a];j&&(f=m(j),g=f.assign||function(){throw B("Expression '"+
j+"' not assignable.");});d[a]=function(a){return arguments.length?g(c,a):f(c)}},expression:function(a,b,c,d,e){d[a]=function(b){m(e[a])(c,b)}}},v=function(a,b){this.$$element=a;this.$$observers={};this.$attr=b||{}};v.prototype={$normalize:da,$set:function(a,b,c,d){var e=wb(this.$$element[0],a.toLowerCase());e&&(this.$$element.prop(a,b),d=e);this[a]=b;d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=Xa(a,"-"));c!==!1&&(b===null||b===p?this.$$element.removeAttr(d):this.$$element.attr(d,b));l(this.$$observers[a],
function(a){try{a(b)}catch(c){j(c)}})},$observe:function(a,b){this.$$observers[a]&&this.$$observers[a].push(b);return b}};return o}]}function da(b){return ob(b.replace(wc,""))}function xc(){var b={};this.register=function(a,c){L(a)?C(b,a):b[a]=c};this.$get=["$injector","$window",function(a,c){return function(d,e){if(J(d)){var g=d,d=b.hasOwnProperty(g)?b[g]:bb(e.$scope,g,!0)||bb(c,g,!0);na(d,g,!0)}return a.instantiate(d,e)}}]}function yc(){this.$get=["$rootScope","$browser","$log",function(b,a,c){function d(c,
d){return a.defer(function(){b.$apply(c)},d)}c.warn("$defer service has been deprecated, migrate to $timeout");d.cancel=function(b){return a.defer.cancel(b)};return d}]}function zc(){this.$get=["$window",function(b){return t(b.document)}]}function Ac(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function Bc(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(c){return c?(a=c,this):b};this.$get=["$parse",function(c){var d=
b.length,e=a.length;return function(g,i){for(var f,h,j=0,k=[],n=g.length,m=!1,s=[];j<n;)(f=g.indexOf(b,j))!=-1&&(h=g.indexOf(a,f+d))!=-1?(j!=f&&k.push(g.substring(j,f)),k.push(j=c(m=g.substring(f+d,h))),j.exp=m,j=h+e,m=!0):(j!=n&&k.push(g.substring(j)),j=n);if(!(n=k.length))k.push(""),n=1;if(!i||m)return s.length=n,j=function(a){for(var b=0,c=n,d;b<c;b++){if(typeof(d=k[b])=="function")d=d(a),d==null||d==p?d="":typeof d!="string"&&(d=ba(d));s[b]=d}return s.join("")},j.exp=g,j.parts=k,j}}]}function Ab(b){for(var b=
b.split("/"),a=b.length;a--;)b[a]=Wa(b[a]);return b.join("/")}function Ea(b,a){var c=Bb.exec(b),c={protocol:c[1],host:c[3],port:E(c[5])||Cb[c[1]]||null,path:c[6]||"/",search:c[8],hash:c[10]};if(a)a.$$protocol=c.protocol,a.$$host=c.host,a.$$port=c.port;return c}function ra(b,a,c){return b+"://"+a+(c==Cb[b]?"":":"+c)}function Cc(b,a,c){var d=Ea(b);return decodeURIComponent(d.path)!=a||v(d.hash)||d.hash.indexOf(c)!==0?b:ra(d.protocol,d.host,d.port)+a.substr(0,a.lastIndexOf("/"))+d.hash.substr(c.length)}
function Dc(b,a,c){var d=Ea(b);if(decodeURIComponent(d.path)==a)return b;else{var e=d.search&&"?"+d.search||"",g=d.hash&&"#"+d.hash||"",i=a.substr(0,a.lastIndexOf("/")),f=d.path.substr(i.length);if(d.path.indexOf(i)!==0)throw'Invalid url "'+b+'", missing path prefix "'+i+'" !';return ra(d.protocol,d.host,d.port)+a+"#"+c+f+e+g}}function cb(b,a){a=a||"";this.$$parse=function(b){var d=Ea(b,this);if(d.path.indexOf(a)!==0)throw'Invalid url "'+b+'", missing path prefix "'+a+'" !';this.$$path=decodeURIComponent(d.path.substr(a.length));
this.$$search=Ua(d.search);this.$$hash=d.hash&&decodeURIComponent(d.hash)||"";this.$$compose()};this.$$compose=function(){var b=lb(this.$$search),d=this.$$hash?"#"+Wa(this.$$hash):"";this.$$url=Ab(this.$$path)+(b?"?"+b:"")+d;this.$$absUrl=ra(this.$$protocol,this.$$host,this.$$port)+a+this.$$url};this.$$parse(b)}function db(b,a){var c;this.$$parse=function(b){var e=Ea(b,this);if(e.hash&&e.hash.indexOf(a)!==0)throw'Invalid url "'+b+'", missing hash prefix "'+a+'" !';c=e.path+(e.search?"?"+e.search:
"");e=Ec.exec((e.hash||"").substr(a.length));this.$$path=e[1]?(e[1].charAt(0)=="/"?"":"/")+decodeURIComponent(e[1]):"";this.$$search=Ua(e[3]);this.$$hash=e[5]&&decodeURIComponent(e[5])||"";this.$$compose()};this.$$compose=function(){var b=lb(this.$$search),e=this.$$hash?"#"+Wa(this.$$hash):"";this.$$url=Ab(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=ra(this.$$protocol,this.$$host,this.$$port)+c+(this.$$url?"#"+a+this.$$url:"")};this.$$parse(b)}function Fa(b){return function(){return this[b]}}function Db(b,
a){return function(c){if(v(c))return this[b];this[b]=a(c);this.$$compose();return this}}function Fc(){var b="",a=!1;this.hashPrefix=function(a){return u(a)?(b=a,this):b};this.html5Mode=function(b){return u(b)?(a=b,this):a};this.$get=["$rootScope","$browser","$sniffer","$document",function(c,d,e,g){var i,f=d.baseHref()||"/",h=f.substr(0,f.lastIndexOf("/")),j=d.url();if(a){var e=i=e.history?new cb(Cc(j,f,b),h):new db(Dc(j,f,b),b),k=ra(e.protocol(),e.host(),e.port())+h;g.bind("click",function(a){if(!a.ctrlKey&&
!(a.metaKey||a.which==2)){for(var b=t(a.target);b.length&&D(b[0].nodeName)!=="a";)b=b.parent();var d=b.prop("href");if(d&&!(b.attr("target")||d.indexOf(k)!==0))i.url(d.substr(k.length)),c.$apply(),a.preventDefault(),V.angular["ff-684208-preventDefault"]=!0}})}else i=new db(j,b);i.absUrl()!=j&&d.url(i.absUrl(),!0);d.onUrlChange(function(a){i.absUrl()!=a&&(c.$evalAsync(function(){i.$$parse(a)}),c.$$phase||c.$digest())});var n=0;c.$watch(function(){d.url()!=i.absUrl()&&(n++,c.$evalAsync(function(){d.url(i.absUrl(),
i.$$replace);i.$$replace=!1}));return n});return i}]}function Gc(){this.$get=["$window",function(b){function a(a){a instanceof B&&(a.stack?a=a.message&&a.stack.indexOf(a.message)===-1?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function c(c){var e=b.console||{},g=e[c]||e.log||r;return g.apply?function(){var b=[];l(arguments,function(c){b.push(a(c))});return g.apply(e,b)}:function(a,b){g(a,b)}}return{log:c("log"),warn:c("warn"),info:c("info"),
error:c("error")}}]}function Hc(b,a){function c(a){return a.indexOf(q)!=-1}function d(){return o+1<b.length?b.charAt(o+1):!1}function e(a){return"0"<=a&&a<="9"}function g(a){return a==" "||a=="\r"||a=="\t"||a=="\n"||a=="\u000b"||a=="\u00a0"}function i(a){return"a"<=a&&a<="z"||"A"<=a&&a<="Z"||"_"==a||a=="$"}function f(a){return a=="-"||a=="+"||e(a)}function h(a,c,d){d=d||o;throw B("Lexer Error: "+a+" at column"+(u(c)?"s "+c+"-"+o+" ["+b.substring(c,d)+"]":" "+d)+" in expression ["+b+"].");}function j(){for(var a=
"",c=o;o<b.length;){var g=D(b.charAt(o));if(g=="."||e(g))a+=g;else{var j=d();if(g=="e"&&f(j))a+=g;else if(f(g)&&j&&e(j)&&a.charAt(a.length-1)=="e")a+=g;else if(f(g)&&(!j||!e(j))&&a.charAt(a.length-1)=="e")h("Invalid exponent");else break}o++}a*=1;m.push({index:c,text:a,json:!0,fn:function(){return a}})}function k(){for(var c="",d=o,f,j,h;o<b.length;){var k=b.charAt(o);if(k=="."||i(k)||e(k))k=="."&&(f=o),c+=k;else break;o++}if(f)for(j=o;j<b.length;){k=b.charAt(j);if(k=="("){h=c.substr(f-d+1);c=c.substr(0,
f-d);o=j;break}if(g(k))j++;else break}d={index:d,text:c};if(Ga.hasOwnProperty(c))d.fn=d.json=Ga[c];else{var n=Eb(c,a);d.fn=C(function(a,b){return n(a,b)},{assign:function(a,b){return Fb(a,c,b)}})}m.push(d);h&&(m.push({index:f,text:".",json:!1}),m.push({index:f+1,text:h,json:!1}))}function n(a){var c=o;o++;for(var d="",e=a,f=!1;o<b.length;){var j=b.charAt(o);e+=j;if(f)j=="u"?(j=b.substring(o+1,o+5),j.match(/[\da-f]{4}/i)||h("Invalid unicode escape [\\u"+j+"]"),o+=4,d+=String.fromCharCode(parseInt(j,
16))):(f=Ic[j],d+=f?f:j),f=!1;else if(j=="\\")f=!0;else if(j==a){o++;m.push({index:c,text:e,string:d,json:!0,fn:function(){return d}});return}else d+=j;o++}h("Unterminated quote",c)}for(var m=[],s,o=0,l=[],q,w=":";o<b.length;){q=b.charAt(o);if(c("\"'"))n(q);else if(e(q)||c(".")&&e(d()))j();else if(i(q)){if(k(),"{,".indexOf(w)!=-1&&l[0]=="{"&&(s=m[m.length-1]))s.json=s.text.indexOf(".")==-1}else if(c("(){}[].,;:"))m.push({index:o,text:q,json:":[,".indexOf(w)!=-1&&c("{[")||c("}]:,")}),c("{[")&&l.unshift(q),
c("}]")&&l.shift(),o++;else if(g(q)){o++;continue}else{var G=q+d(),H=Ga[q],z=Ga[G];z?(m.push({index:o,text:G,fn:z}),o+=2):H?(m.push({index:o,text:q,fn:H,json:"[,:".indexOf(w)!=-1&&c("+-")}),o+=1):h("Unexpected next character ",o,o+1)}w=q}return m}function Jc(b,a,c,d){function e(a,c){throw B("Syntax Error: Token '"+c.text+"' "+a+" at column "+(c.index+1)+" of the expression ["+b+"] starting at ["+b.substring(c.index)+"].");}function g(){if(K.length===0)throw B("Unexpected end of expression: "+b);return K[0]}
function i(a,b,c,d){if(K.length>0){var e=K[0],f=e.text;if(f==a||f==b||f==c||f==d||!a&&!b&&!c&&!d)return e}return!1}function f(b,c,d,f){return(b=i(b,c,d,f))?(a&&!b.json&&e("is not valid json",b),K.shift(),b):!1}function h(a){f(a)||e("is unexpected, expecting ["+a+"]",i())}function j(a,b){return function(c,d){return a(c,d,b)}}function k(a,b,c){return function(d,e){return b(d,e,a,c)}}function n(){for(var a=[];;)if(K.length>0&&!i("}",")",";","]")&&a.push(u()),!f(";"))return a.length==1?a[0]:function(b,
c){for(var d,e=0;e<a.length;e++){var f=a[e];f&&(d=f(b,c))}return d}}function m(){for(var a=f(),b=c(a.text),d=[];;)if(a=f(":"))d.push(F());else{var e=function(a,c,e){for(var e=[e],f=0;f<d.length;f++)e.push(d[f](a,c));return b.apply(a,e)};return function(){return e}}}function s(){for(var a=o(),b;;)if(b=f("||"))a=k(a,b.fn,o());else return a}function o(){var a=l(),b;if(b=f("&&"))a=k(a,b.fn,o());return a}function l(){var a=q(),b;if(b=f("==","!="))a=k(a,b.fn,l());return a}function q(){var a;a=w();for(var b;b=
f("+","-");)a=k(a,b.fn,w());if(b=f("<",">","<=",">="))a=k(a,b.fn,q());return a}function w(){for(var a=G(),b;b=f("*","/","%");)a=k(a,b.fn,G());return a}function G(){var a;return f("+")?H():(a=f("-"))?k(X,a.fn,G()):(a=f("!"))?j(a.fn,G()):H()}function H(){var a;if(f("("))a=u(),h(")");else if(f("["))a=z();else if(f("{"))a=T();else{var b=f();(a=b.fn)||e("not a primary expression",b)}for(var c;b=f("(","[",".");)b.text==="("?(a=t(a,c),c=null):b.text==="["?(c=a,a=fa(a)):b.text==="."?(c=a,a=v(a)):e("IMPOSSIBLE");
return a}function z(){var a=[];if(g().text!="]"){do a.push(F());while(f(","))}h("]");return function(b,c){for(var d=[],e=0;e<a.length;e++)d.push(a[e](b,c));return d}}function T(){var a=[];if(g().text!="}"){do{var b=f(),b=b.string||b.text;h(":");var c=F();a.push({key:b,value:c})}while(f(","))}h("}");return function(b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],j=f.value(b,c);d[f.key]=j}return d}}var X=A(0),x,K=Hc(b,d),F=function(){var a=s(),c,d;return(d=f("="))?(a.assign||e("implies assignment but ["+
b.substring(0,d.index)+"] can not be assigned to",d),c=s(),function(b,d){return a.assign(b,c(b,d),d)}):a},t=function(a,b){var c=[];if(g().text!=")"){do c.push(F());while(f(","))}h(")");return function(d,e){for(var f=[],j=b?b(d,e):d,g=0;g<c.length;g++)f.push(c[g](d,e));g=a(d,e)||r;return g.apply?g.apply(j,f):g(f[0],f[1],f[2],f[3],f[4])}},v=function(a){var b=f().text,c=Eb(b,d);return C(function(b,d){return c(a(b,d),d)},{assign:function(c,d,e){return Fb(a(c,e),b,d)}})},fa=function(a){var b=F();h("]");
return C(function(c,d){var e=a(c,d),f=b(c,d),j;if(!e)return p;if((e=e[f])&&e.then){j=e;if(!("$$v"in e))j.$$v=p,j.then(function(a){j.$$v=a});e=e.$$v}return e},{assign:function(c,d,e){return a(c,e)[b(c,e)]=d}})},u=function(){for(var a=F(),b;;)if(b=f("|"))a=k(a,b.fn,m());else return a};a?(F=s,t=v=fa=u=function(){e("is not valid json",{text:b,index:0})},x=H()):x=n();K.length!==0&&e("is an unexpected token",K[0]);return x}function Fb(b,a,c){for(var a=a.split("."),d=0;a.length>1;d++){var e=a.shift(),g=
b[e];g||(g={},b[e]=g);b=g}return b[a.shift()]=c}function bb(b,a,c){if(!a)return b;for(var a=a.split("."),d,e=b,g=a.length,i=0;i<g;i++)d=a[i],b&&(b=(e=b)[d]);return!c&&P(b)?Sa(e,b):b}function Gb(b,a,c,d,e){return function(g,i){var f=i&&i.hasOwnProperty(b)?i:g,h;if(f===null||f===p)return f;if((f=f[b])&&f.then){if(!("$$v"in f))h=f,h.$$v=p,h.then(function(a){h.$$v=a});f=f.$$v}if(!a||f===null||f===p)return f;if((f=f[a])&&f.then){if(!("$$v"in f))h=f,h.$$v=p,h.then(function(a){h.$$v=a});f=f.$$v}if(!c||f===
null||f===p)return f;if((f=f[c])&&f.then){if(!("$$v"in f))h=f,h.$$v=p,h.then(function(a){h.$$v=a});f=f.$$v}if(!d||f===null||f===p)return f;if((f=f[d])&&f.then){if(!("$$v"in f))h=f,h.$$v=p,h.then(function(a){h.$$v=a});f=f.$$v}if(!e||f===null||f===p)return f;if((f=f[e])&&f.then){if(!("$$v"in f))h=f,h.$$v=p,h.then(function(a){h.$$v=a});f=f.$$v}return f}}function Eb(b,a){if(eb.hasOwnProperty(b))return eb[b];var c=b.split("."),d=c.length,e;if(a)e=d<6?Gb(c[0],c[1],c[2],c[3],c[4]):function(a,b){var e=0,
j;do j=Gb(c[e++],c[e++],c[e++],c[e++],c[e++])(a,b),b=p,a=j;while(e<d);return j};else{var g="var l, fn, p;\n";l(c,function(a,b){g+="if(s === null || s === undefined) return s;\nl=s;\ns="+(b?"s":'((k&&k.hasOwnProperty("'+a+'"))?k:s)')+'["'+a+'"];\nif (s && s.then) {\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n'});g+="return s;";e=Function("s","k",g);e.toString=function(){return g}}return eb[b]=e}function Kc(){var b={};this.$get=["$filter","$sniffer",
function(a,c){return function(d){switch(typeof d){case "string":return b.hasOwnProperty(d)?b[d]:b[d]=Jc(d,!1,a,c.csp);case "function":return d;default:return r}}}]}function Lc(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return Mc(function(a){b.$evalAsync(a)},a)}]}function Mc(b,a){function c(a){return a}function d(a){return i(a)}var e=function(){var f=[],h,j;return j={resolve:function(a){if(f){var c=f;f=p;h=g(a);c.length&&b(function(){for(var a,b=0,d=c.length;b<d;b++)a=c[b],h.then(a[0],
a[1])})}},reject:function(a){j.resolve(i(a))},promise:{then:function(b,j){var g=e(),i=function(d){try{g.resolve((b||c)(d))}catch(e){a(e),g.reject(e)}},o=function(b){try{g.resolve((j||d)(b))}catch(c){a(c),g.reject(c)}};f?f.push([i,o]):h.then(i,o);return g.promise}}}},g=function(a){return a&&a.then?a:{then:function(c){var d=e();b(function(){d.resolve(c(a))});return d.promise}}},i=function(a){return{then:function(c,g){var k=e();b(function(){k.resolve((g||d)(a))});return k.promise}}};return{defer:e,reject:i,
when:function(f,h,j){var k=e(),n,m=function(b){try{return(h||c)(b)}catch(d){return a(d),i(d)}},s=function(b){try{return(j||d)(b)}catch(c){return a(c),i(c)}};b(function(){g(f).then(function(a){n||(n=!0,k.resolve(g(a).then(m,s)))},function(a){n||(n=!0,k.resolve(s(a)))})});return k.promise},all:function(a){var b=e(),c=a.length,d=[];c?l(a,function(a,e){g(a).then(function(a){e in d||(d[e]=a,--c||b.resolve(d))},function(a){e in d||b.reject(a)})}):b.resolve(d);return b.promise}}}function Nc(){var b={};this.when=
function(a,c){b[a]=C({reloadOnSearch:!0},c);if(a){var d=a[a.length-1]=="/"?a.substr(0,a.length-1):a+"/";b[d]={redirectTo:a}}return this};this.otherwise=function(a){this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams",function(a,c,d){function e(){var a,d;l(b,function(b,e){if(!d&&(a=i(c.path(),e)))d=Oa(b,{params:C({},c.search(),a),pathParams:a}),d.$route=b});return d||b[null]&&Oa(b[null],{params:{},pathParams:{}})}function g(a,b){var c=[];l((a||"").split(":"),function(a,
d){if(d==0)c.push(a);else{var e=a.match(/(\w+)(.*)/),f=e[1];c.push(b[f]);c.push(e[2]||"");delete b[f]}});return c.join("")}var i=function(a,b){var c="^"+b.replace(/([\.\\\(\)\^\$])/g,"\\$1")+"$",d=[],e={};l(b.split(/\W/),function(a){if(a){var b=RegExp(":"+a+"([\\W])");c.match(b)&&(c=c.replace(b,"([^\\/]*)$1"),d.push(a))}});var f=a.match(RegExp(c));f&&l(d,function(a,b){e[a]=f[b+1]});return f?e:null},f=0,h=!1,j={routes:b,reload:function(){f++;h=!0}};a.$watch(function(){return f+c.url()},function(){var b=
e(),f=j.current;if(b&&f&&b.$route===f.$route&&ea(b.pathParams,f.pathParams)&&!b.reloadOnSearch&&!h)f.params=b.params,W(f.params,d),a.$broadcast("$routeUpdate",f);else if(b||f)h=!1,a.$broadcast("$beforeRouteChange",b,f),(j.current=b)&&(b.redirectTo?J(b.redirectTo)?c.path(g(b.redirectTo,b.params)).search(b.params).replace():c.url(b.redirectTo(b.pathParams,c.path(),c.search())).replace():W(b.params,d)),a.$broadcast("$afterRouteChange",b,f)});return j}]}function Oc(){this.$get=A({})}function Pc(){var b=
10;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$injector","$exceptionHandler","$parse",function(a,c,d){function e(){this.$id=ta();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$asyncQueue=[];this.$$listeners={}}function g(a){if(h.$$phase)throw B(h.$$phase+" already in progress");h.$$phase=a}function i(a,b){var c=d(a);na(c,b);return c}function f(){}e.prototype={$new:function(a){if(P(a))throw B("API-CHANGE: Use $controller to instantiate controllers.");
a?(a=new e,a.$root=this.$root):(a=function(){},a.prototype=this,a=new a,a.$id=ta());a["this"]=a;a.$$listeners={};a.$parent=this;a.$$asyncQueue=[];a.$$watchers=a.$$nextSibling=a.$$childHead=a.$$childTail=null;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=a:this.$$childHead=this.$$childTail=a;return a},$watch:function(a,b,c){var d=i(a,"watch"),e=this.$$watchers,g={fn:b,last:f,get:d,exp:a,eq:!!c};if(!P(b)){var h=i(b||r,"listener");g.fn=function(a,b,
c){h(c)}}if(!e)e=this.$$watchers=[];e.unshift(g);return function(){va(e,g)}},$digest:function(){var a,d,e,i,s,o,l,q=b,w,G=[],H,z;g("$digest");do{l=!1;w=this;do{for(s=w.$$asyncQueue;s.length;)try{w.$eval(s.shift())}catch(p){c(p)}if(i=w.$$watchers)for(o=i.length;o--;)try{if(a=i[o],(d=a.get(w))!==(e=a.last)&&!(a.eq?ea(d,e):typeof d=="number"&&typeof e=="number"&&isNaN(d)&&isNaN(e)))l=!0,a.last=a.eq?W(d):d,a.fn(d,e===f?d:e,w),q<5&&(H=4-q,G[H]||(G[H]=[]),z=P(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):
a.exp,z+="; newVal: "+ba(d)+"; oldVal: "+ba(e),G[H].push(z))}catch(X){c(X)}if(!(i=w.$$childHead||w!==this&&w.$$nextSibling))for(;w!==this&&!(i=w.$$nextSibling);)w=w.$parent}while(w=i);if(l&&!q--)throw h.$$phase=null,B(b+" $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: "+ba(G));}while(l||s.length);h.$$phase=null},$destroy:function(){if(h!=this){var a=this.$parent;this.$broadcast("$destroy");if(a.$$childHead==this)a.$$childHead=this.$$nextSibling;if(a.$$childTail==
this)a.$$childTail=this.$$prevSibling;if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling}},$eval:function(a,b){return d(a)(this,b)},$evalAsync:function(a){this.$$asyncQueue.push(a)},$apply:function(a){try{return g("$apply"),this.$eval(a)}catch(b){c(b)}finally{h.$$phase=null;try{h.$digest()}catch(d){throw c(d),d;}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);return function(){va(c,
b)}},$emit:function(a,b){var d=[],e,f=this,g=!1,h={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){h.defaultPrevented=!0},defaultPrevented:!1},i=[h].concat(ga.call(arguments,1)),l,G;do{e=f.$$listeners[a]||d;h.currentScope=f;l=0;for(G=e.length;l<G;l++)try{if(e[l].apply(null,i),g)return h}catch(H){c(H)}f=f.$parent}while(f);return h},$broadcast:function(a,b){var d=this,e=this,f={name:a,targetScope:this,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},
g=[f].concat(ga.call(arguments,1));do if(d=e,f.currentScope=d,l(d.$$listeners[a],function(a){try{a.apply(null,g)}catch(b){c(b)}}),!(e=d.$$childHead||d!==this&&d.$$nextSibling))for(;d!==this&&!(e=d.$$nextSibling);)d=d.$parent;while(d=e);return f}};var h=new e;return h}]}function Qc(){this.$get=["$window",function(b){var a={},c=E((/android (\d+)/.exec(D(b.navigator.userAgent))||[])[1]);return{history:!(!b.history||!b.history.pushState||c<4),hashchange:"onhashchange"in b&&(!b.document.documentMode||
b.document.documentMode>7),hasEvent:function(c){if(c=="input"&&$==9)return!1;if(v(a[c])){var e=b.document.createElement("div");a[c]="on"+c in e}return a[c]},csp:!1}}]}function Rc(){this.$get=A(V)}function Hb(b){var a={},c,d,e;if(!b)return a;l(b.split("\n"),function(b){e=b.indexOf(":");c=D(R(b.substr(0,e)));d=R(b.substr(e+1));c&&(a[c]?a[c]+=", "+d:a[c]=d)});return a}function Ib(b){var a=L(b)?b:p;return function(c){a||(a=Hb(b));return c?a[D(c)]||null:a}}function Jb(b,a,c){if(P(c))return c(b,a);l(c,
function(c){b=c(b,a)});return b}function Sc(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d=this.defaults={transformResponse:[function(d){J(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=kb(d,!0)));return d}],transformRequest:[function(a){return L(a)&&Pa.apply(a)!=="[object File]"?ba(a):a}],headers:{common:{Accept:"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest"},post:{"Content-Type":"application/json"},put:{"Content-Type":"application/json"}}},e=this.responseInterceptors=
[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,h,j,k){function n(a){function c(a){var b=C({},a,{data:Jb(a.data,a.headers,f)});return 200<=a.status&&a.status<300?b:j.reject(b)}a.method=ja(a.method);var e=a.transformRequest||d.transformRequest,f=a.transformResponse||d.transformResponse,g=d.headers,g=C({"X-XSRF-TOKEN":b.cookies()["XSRF-TOKEN"]},g.common,g[D(a.method)],a.headers),e=Jb(a.data,Ib(g),e),h;v(a.data)&&delete g["Content-Type"];h=m(a,e,g);
h=h.then(c,c);l(O,function(a){h=a(h)});h.success=function(b){h.then(function(c){b(c.data,c.status,c.headers,a)});return h};h.error=function(b){h.then(null,function(c){b(c.data,c.status,c.headers,a)});return h};return h}function m(b,c,d){function e(a,b,c){l&&(200<=a&&a<300?l.put(O,[a,b,Hb(c)]):l.remove(O));f(b,a,c);h.$apply()}function f(a,c,d){c=Math.max(c,0);(200<=c&&c<300?k.resolve:k.reject)({data:a,status:c,headers:Ib(d),config:b})}function i(){var a=Ra(n.pendingRequests,b);a!==-1&&n.pendingRequests.splice(a,
1)}var k=j.defer(),m=k.promise,l,p,O=s(b.url,b.params);n.pendingRequests.push(b);m.then(i,i);b.cache&&b.method=="GET"&&(l=L(b.cache)?b.cache:o);if(l)if(p=l.get(O))if(p.then)return p.then(i,i),p;else M(p)?f(p[1],p[0],W(p[2])):f(p,200,{});else l.put(O,m);p||a(b.method,O,c,e,d,b.timeout,b.withCredentials);return m}function s(a,b){if(!b)return a;var c=[];Zb(b,function(a,b){a==null||a==p||(L(a)&&(a=ba(a)),c.push(encodeURIComponent(b)+"="+encodeURIComponent(a)))});return a+(a.indexOf("?")==-1?"?":"&")+
c.join("&")}var o=c("$http"),O=[];l(e,function(a){O.push(J(a)?k.get(a):k.invoke(a))});n.pendingRequests=[];(function(a){l(arguments,function(a){n[a]=function(b,c){return n(C(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){l(arguments,function(a){n[a]=function(b,c,d){return n(C(d||{},{method:a,url:b,data:c}))}})})("post","put");n.defaults=d;return n}]}function Tc(){this.$get=["$browser","$window","$document",function(b,a,c){return Uc(b,Vc,b.defer,a.angular.callbacks,c[0],
a.location.protocol.replace(":",""))}]}function Uc(b,a,c,d,e,g){function i(a,b){var c=e.createElement("script"),d=function(){e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;$?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=d;e.body.appendChild(c)}return function(e,h,j,k,n,m,s){function o(a,c,d,e){c=(h.match(Bb)||["",g])[1]=="file"?d?200:404:c;a(c==1223?204:c,d,e);b.$$completeOutstandingRequest(r)}b.$$incOutstandingRequestCount();h=h||b.url();
if(D(e)=="jsonp"){var p="_"+(d.counter++).toString(36);d[p]=function(a){d[p].data=a};i(h.replace("JSON_CALLBACK","angular.callbacks."+p),function(){d[p].data?o(k,200,d[p].data):o(k,-2);delete d[p]})}else{var q=new a;q.open(e,h,!0);l(n,function(a,b){a&&q.setRequestHeader(b,a)});var w;q.onreadystatechange=function(){q.readyState==4&&o(k,w||q.status,q.responseText,q.getAllResponseHeaders())};if(s)q.withCredentials=!0;q.send(j||"");m>0&&c(function(){w=-1;q.abort()},m)}}}function Wc(){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:"\u00a4",posSuf:"",negPre:"(\u00a4",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"},pluralCat:function(b){return b===1?"one":"other"}}}}function Xc(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,f,h){var j=c.defer(),k=j.promise,n=u(h)&&!h,f=a.defer(function(){try{j.resolve(e())}catch(a){j.reject(a),
d(a)}n||b.$apply()},f),h=function(){delete g[k.$$timeoutId]};k.$$timeoutId=f;g[f]=j;k.then(h,h);return k}var g={};e.cancel=function(b){return b.$$timeoutId in g?(g[b.$$timeoutId].reject("canceled"),a.defer.cancel(b.$$timeoutId)):!1};return e}]}function Kb(b){function a(a,e){return b.factory(a+c,e)}var c="Filter";this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}];a("currency",Lb);a("date",Mb);a("filter",Yc);a("json",Zc);a("limitTo",$c);a("lowercase",ad);a("number",
Nb);a("orderBy",Ob);a("uppercase",bd)}function Yc(){return function(b,a){if(!(b instanceof Array))return b;var c=[];c.check=function(a){for(var b=0;b<c.length;b++)if(!c[b](a))return!1;return!0};var d=function(a,b){if(b.charAt(0)==="!")return!d(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return(""+a).toLowerCase().indexOf(b)>-1;case "object":for(var c in a)if(c.charAt(0)!=="$"&&d(a[c],b))return!0;return!1;case "array":for(c=0;c<a.length;c++)if(d(a[c],b))return!0;return!1;
default:return!1}};switch(typeof a){case "boolean":case "number":case "string":a={$:a};case "object":for(var e in a)e=="$"?function(){var b=(""+a[e]).toLowerCase();b&&c.push(function(a){return d(a,b)})}():function(){var b=e,f=(""+a[e]).toLowerCase();f&&c.push(function(a){return d(bb(a,b),f)})}();break;case "function":c.push(a);break;default:return b}for(var g=[],i=0;i<b.length;i++){var f=b[i];c.check(f)&&g.push(f)}return g}}function Lb(b){var a=b.NUMBER_FORMATS;return function(b,d){if(v(d))d=a.CURRENCY_SYM;
return Pb(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,2).replace(/\u00A4/g,d)}}function Nb(b){var a=b.NUMBER_FORMATS;return function(b,d){return Pb(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function Pb(b,a,c,d,e){if(isNaN(b)||!isFinite(b))return"";var g=b<0,b=Math.abs(b),i=b+"",f="",h=[];if(i.indexOf("e")!==-1)f=i;else{i=(i.split(Qb)[1]||"").length;v(e)&&(e=Math.min(Math.max(a.minFrac,i),a.maxFrac));var i=Math.pow(10,e),b=Math.round(b*i)/i,b=(""+b).split(Qb),i=b[0],b=b[1]||"",j=0,k=a.lgSize,n=a.gSize;
if(i.length>=k+n)for(var j=i.length-k,m=0;m<j;m++)(j-m)%n===0&&m!==0&&(f+=c),f+=i.charAt(m);for(m=j;m<i.length;m++)(i.length-m)%k===0&&m!==0&&(f+=c),f+=i.charAt(m);for(;b.length<e;)b+="0";e&&(f+=d+b.substr(0,e))}h.push(g?a.negPre:a.posPre);h.push(f);h.push(g?a.negSuf:a.posSuf);return h.join("")}function fb(b,a,c){var d="";b<0&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));return d+b}function I(b,a,c,d){return function(e){e=e["get"+b]();if(c>0||e>-c)e+=c;e===0&&c==-12&&(e=
12);return fb(e,a,d)}}function Ha(b,a){return function(c,d){var e=c["get"+b](),g=ja(a?"SHORT"+b:b);return d[g][e]}}function Mb(b){function a(a){var b;if(b=a.match(c)){var a=new Date(0),g=0,i=0;b[9]&&(g=E(b[9]+b[10]),i=E(b[9]+b[11]));a.setUTCFullYear(E(b[1]),E(b[2])-1,E(b[3]));a.setUTCHours(E(b[4]||0)-g,E(b[5]||0)-i,E(b[6]||0),E(b[7]||0))}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;return function(c,e){var g="",i=[],f,h,e=e||
"mediumDate",e=b.DATETIME_FORMATS[e]||e;J(c)&&(c=cd.test(c)?E(c):a(c));sa(c)&&(c=new Date(c));if(!ka(c))return c;for(;e;)(h=dd.exec(e))?(i=i.concat(ga.call(h,1)),e=i.pop()):(i.push(e),e=null);l(i,function(a){f=ed[a];g+=f?f(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function Zc(){return function(b){return ba(b,!0)}}function $c(){return function(b,a){if(!(b instanceof Array))return b;var a=E(a),c=[],d,e;if(!b||!(b instanceof Array))return c;a>b.length?a=b.length:a<
-b.length&&(a=-b.length);a>0?(d=0,e=a):(d=b.length+a,e=b.length);for(;d<e;d++)c.push(b[d]);return c}}function Ob(b){return function(a,c,d){function e(a,b){return Ta(b)?function(b,c){return a(c,b)}:a}if(!(a instanceof Array))return a;if(!c)return a;for(var c=M(c)?c:[c],c=Qa(c,function(a){var c=!1,d=a||ua;if(J(a)){if(a.charAt(0)=="+"||a.charAt(0)=="-")c=a.charAt(0)=="-",a=a.substring(1);d=b(a)}return e(function(a,b){var c;c=d(a);var e=d(b),f=typeof c,g=typeof e;f==g?(f=="string"&&(c=c.toLowerCase()),
f=="string"&&(e=e.toLowerCase()),c=c===e?0:c<e?-1:1):c=f<g?-1:1;return c},c)}),g=[],i=0;i<a.length;i++)g.push(a[i]);return g.sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(e!==0)return e}return 0},d))}}function Q(b){P(b)&&(b={link:b});b.restrict=b.restrict||"AC";return A(b)}function Rb(b,a){function c(a,c){c=c?"-"+Xa(c,"-"):"";b.removeClass((a?Ia:Ja)+c).addClass((a?Ja:Ia)+c)}var d=this,e=b.parent().controller("form")||Ka,g=0,i=d.$error={};d.$name=a.name;d.$dirty=!1;d.$pristine=
!0;d.$valid=!0;d.$invalid=!1;e.$addControl(d);b.addClass(La);c(!0);d.$addControl=function(a){a.$name&&!d.hasOwnProperty(a.$name)&&(d[a.$name]=a)};d.$removeControl=function(a){a.$name&&d[a.$name]===a&&delete d[a.$name];l(i,function(b,c){d.$setValidity(c,!0,a)})};d.$setValidity=function(a,b,j){var k=i[a];if(b){if(k&&(va(k,j),!k.length)){g--;if(!g)c(b),d.$valid=!0,d.$invalid=!1;i[a]=!1;c(!0,a);e.$setValidity(a,!0,d)}}else{g||c(b);if(k){if(Ra(k,j)!=-1)return}else i[a]=k=[],g++,c(!1,a),e.$setValidity(a,
!1,d);k.push(j);d.$valid=!1;d.$invalid=!0}};d.$setDirty=function(){b.removeClass(La).addClass(Sb);d.$dirty=!0;d.$pristine=!1}}function U(b){return v(b)||b===""||b===null||b!==b}function Ma(b,a,c,d,e,g){var i=function(){var c=R(a.val());d.$viewValue!==c&&b.$apply(function(){d.$setViewValue(c)})};if(e.hasEvent("input"))a.bind("input",i);else{var f;a.bind("keydown",function(a){a=a.keyCode;a===91||15<a&&a<19||37<=a&&a<=40||f||(f=g.defer(function(){i();f=null}))});a.bind("change",i)}d.$render=function(){a.val(U(d.$viewValue)?
"":d.$viewValue)};var h=c.ngPattern,j=function(a,b){return U(b)||a.test(b)?(d.$setValidity("pattern",!0),b):(d.$setValidity("pattern",!1),p)};h&&(h.match(/^\/(.*)\/$/)?(h=RegExp(h.substr(1,h.length-2)),e=function(a){return j(h,a)}):e=function(a){var c=b.$eval(h);if(!c||!c.test)throw new B("Expected "+h+" to be a RegExp but was "+c);return j(c,a)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var k=E(c.ngMinlength),e=function(a){return!U(a)&&a.length<k?(d.$setValidity("minlength",!1),
p):(d.$setValidity("minlength",!0),a)};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var n=E(c.ngMaxlength),c=function(a){return!U(a)&&a.length>n?(d.$setValidity("maxlength",!1),p):(d.$setValidity("maxlength",!0),a)};d.$parsers.push(c);d.$formatters.push(c)}}function gb(b,a){b="ngClass"+b;return Q(function(c,d,e){c.$watch(e[b],function(b,e){if(a===!0||c.$index%2===a)e&&b!==e&&(L(e)&&!M(e)&&(e=Qa(e,function(a,b){if(a)return b})),d.removeClass(M(e)?e.join(" "):e)),L(b)&&!M(b)&&(b=Qa(b,
function(a,b){if(a)return b})),b&&d.addClass(M(b)?b.join(" "):b)},!0)})}var D=function(b){return J(b)?b.toLowerCase():b},ja=function(b){return J(b)?b.toUpperCase():b},B=V.Error,$=E((/msie (\d+)/.exec(D(navigator.userAgent))||[])[1]),t,ha,ga=[].slice,Na=[].push,Pa=Object.prototype.toString,Tb=V.angular||(V.angular={}),pa,zb,Z=["0","0","0"];r.$inject=[];ua.$inject=[];zb=$<9?function(b){b=b.nodeName?b:b[0];return b.scopeName&&b.scopeName!="HTML"?ja(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName?
b.nodeName:b[0].nodeName};var ec=/[A-Z]/g,fd={full:"1.0.0rc10",major:1,minor:0,dot:0,codeName:"tesseract-giftwrapping"},ya=N.cache={},xa=N.expando="ng-"+(new Date).getTime(),ic=1,gd=V.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},rb=V.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+a,c)},gc=/([\:\-\_]+(.))/g,hc=/^moz([A-Z])/,qa=N.prototype={ready:function(b){function a(){c||
(c=!0,b())}var c=!1;this.bind("DOMContentLoaded",a);N(V).bind("load",a)},toString:function(){var b=[];l(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return b>=0?t(this[b]):t(this[this.length+b])},length:0,push:Na,sort:[].sort,splice:[].splice},Ba={};l("multiple,selected,checked,disabled,readOnly,required".split(","),function(b){Ba[D(b)]=b});var xb={};l("input,select,option,textarea,button,form".split(","),function(b){xb[ja(b)]=!0});l({data:sb,inheritedData:Aa,scope:function(b){return Aa(b,
"$scope")},controller:vb,injector:function(b){return Aa(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:za,css:function(b,a,c){a=ob(a);if(u(c))b.style[a]=c;else{var d;$<=8&&(d=b.currentStyle&&b.currentStyle[a],d===""&&(d="auto"));d=d||b.style[a];$<=8&&(d=d===""?p:d);return d}},attr:function(b,a,c){var d=D(a);if(Ba[d])if(u(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||r).specified?d:p;else if(u(c))b.setAttribute(a,
c);else if(b.getAttribute)return b=b.getAttribute(a,2),b===null?p:b},prop:function(b,a,c){if(u(c))b[a]=c;else return b[a]},text:C($<9?function(b,a){if(b.nodeType==1){if(v(a))return b.innerText;b.innerText=a}else{if(v(a))return b.nodeValue;b.nodeValue=a}}:function(b,a){if(v(a))return b.textContent;b.textContent=a},{$dv:""}),val:function(b,a){if(v(a))return b.value;b.value=a},html:function(b,a){if(v(a))return b.innerHTML;for(var c=0,d=b.childNodes;c<d.length;c++)oa(d[c]);b.innerHTML=a}},function(b,
a){N.prototype[a]=function(a,d){var e,g;if((b.length==2&&b!==za&&b!==vb?a:d)===p)if(L(a)){for(e=0;e<this.length;e++)if(b===sb)b(this[e],a);else for(g in a)b(this[e],g,a[g]);return this}else{if(this.length)return b(this[0],a,d)}else{for(e=0;e<this.length;e++)b(this[e],a,d);return this}return b.$dv}});l({removeData:pb,dealoc:oa,bind:function a(c,d,e){var g=ca(c,"events"),i=ca(c,"handle");g||ca(c,"events",g={});i||ca(c,"handle",i=jc(c,g));l(d.split(" "),function(d){var h=g[d];if(!h){if(d=="mouseenter"||
d=="mouseleave"){var j=0;g.mouseenter=[];g.mouseleave=[];a(c,"mouseover",function(a){j++;j==1&&i(a,"mouseenter")});a(c,"mouseout",function(a){j--;j==0&&i(a,"mouseleave")})}else gd(c,d,i),g[d]=[];h=g[d]}h.push(e)})},unbind:qb,replaceWith:function(a,c){var d,e=a.parentNode;oa(a);l(new N(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];l(a.childNodes,function(a){a.nodeName!="#text"&&c.push(a)});return c},contents:function(a){return a.childNodes},
append:function(a,c){l(new N(c),function(c){a.nodeType===1&&a.appendChild(c)})},prepend:function(a,c){if(a.nodeType===1){var d=a.firstChild;l(new N(c),function(c){d?a.insertBefore(c,d):(a.appendChild(c),d=c)})}},wrap:function(a,c){var c=t(c)[0],d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:function(a){oa(a);var c=a.parentNode;c&&c.removeChild(a)},after:function(a,c){var d=a,e=a.parentNode;l(new N(c),function(a){e.insertBefore(a,d.nextSibling);d=a})},addClass:ub,removeClass:tb,toggleClass:function(a,
c,d){v(d)&&(d=!za(a,c));(d?ub:tb)(a,c)},parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},next:function(a){return a.nextSibling},find:function(a,c){return a.getElementsByTagName(c)},clone:$a},function(a,c){N.prototype[c]=function(c,e){for(var g,i=0;i<this.length;i++)g==p?(g=a(this[i],c,e),g!==p&&(g=t(g))):Za(g,a(this[i],c,e));return g==p?this:g}});Ca.prototype={put:function(a,c){this[ia(a)]=c},get:function(a){return this[ia(a)]},remove:function(a){var c=this[a=ia(a)];delete this[a];
return c}};ab.prototype={push:function(a,c){var d=this[a=ia(a)];d?d.push(c):this[a]=[c]},shift:function(a){var c=this[a=ia(a)];if(c)return c.length==1?(delete this[a],c[0]):c.shift()}};var mc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,nc=/,/,oc=/^\s*(_?)(.+?)\1\s*$/,lc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;yb.$inject=["$provide"];var wc=/^(x[\:\-_]|data[\:\-_])/i,Bb=/^([^:]+):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,Ub=/^([^\?#]*)?(\?([^#]*))?(#(.*))?$/,Ec=Ub,Cb={http:80,
https:443,ftp:21};cb.prototype={$$replace:!1,absUrl:Fa("$$absUrl"),url:function(a,c){if(v(a))return this.$$url;var d=Ub.exec(a);d[1]&&this.path(decodeURIComponent(d[1]));if(d[2]||d[1])this.search(d[3]||"");this.hash(d[5]||"",c);return this},protocol:Fa("$$protocol"),host:Fa("$$host"),port:Fa("$$port"),path:Db("$$path",function(a){return a.charAt(0)=="/"?a:"/"+a}),search:function(a,c){if(v(a))return this.$$search;u(c)?c===null?delete this.$$search[a]:this.$$search[a]=c:this.$$search=J(a)?Ua(a):a;this.$$compose();
return this},hash:Db("$$hash",ua),replace:function(){this.$$replace=!0;return this}};db.prototype=Oa(cb.prototype);var Ga={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:r,"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return(u(d)?d:0)+(u(e)?e:0)},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(u(d)?d:0)-(u(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,c)/e(a,c)},"%":function(a,c,d,e){return d(a,c)%e(a,c)},"^":function(a,
c,d,e){return d(a,c)^e(a,c)},"=":r,"==":function(a,c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)<e(a,c)},">":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,c)||e(a,c)},"&":function(a,c,d,e){return d(a,c)&e(a,c)},"|":function(a,c,d,e){return e(a,c)(a,c,d(a,c))},"!":function(a,
c,d){return!d(a,c)}},Ic={n:"\n",f:"\u000c",r:"\r",t:"\t",v:"\u000b","'":"'",'"':'"'},eb={},Vc=V.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(d){}throw new B("This browser does not support XMLHttpRequest.");};Kb.$inject=["$provide"];Lb.$inject=["$locale"];Nb.$inject=["$locale"];var Qb=".",ed={yyyy:I("FullYear",4),yy:I("FullYear",2,0,!0),y:I("FullYear",
1),MMMM:Ha("Month"),MMM:Ha("Month",!0),MM:I("Month",2,1),M:I("Month",1,1),dd:I("Date",2),d:I("Date",1),HH:I("Hours",2),H:I("Hours",1),hh:I("Hours",2,-12),h:I("Hours",1,-12),mm:I("Minutes",2),m:I("Minutes",1),ss:I("Seconds",2),s:I("Seconds",1),EEEE:Ha("Day"),EEE:Ha("Day",!0),a:function(a,c){return a.getHours()<12?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){a=a.getTimezoneOffset();return fb(a/60,2)+fb(Math.abs(a%60),2)}},dd=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,cd=
/^\d+$/;Mb.$inject=["$locale"];var ad=A(D),bd=A(ja);Ob.$inject=["$parse"];var hd=A({restrict:"E",compile:function(a,c){c.href||c.$set("href","");return function(a,c){c.bind("click",function(a){c.attr("href")||a.preventDefault()})}}}),hb={};l(Ba,function(a,c){var d=da("ng-"+c);hb[d]=function(){return{priority:100,compile:function(){return function(a,g,i){i.$$observers[c]=[];a.$watch(i[d],function(a){i.$set(c,!!a)})}}}}});l(["src","href"],function(a){var c=da("ng-"+a);hb[c]=function(){return{priority:99,
compile:function(){return function(d,e,g){d=g[c];d==p?(g.$$observers[a]=[],g.$observe(c,function(c){g.$set(a,c);$&&e.prop(a,c)})):(g.$set(a,d),e.prop(a,d))}}}}});var Ka={$addControl:r,$removeControl:r,$setValidity:r,$setDirty:r};Rb.$inject=["$element","$attrs","$scope"];var Na={name:"form",restrict:"E",controller:Rb,compile:function(){return{pre:function(a,c,d,e){d.action||c.bind("submit",function(a){a.preventDefault()});var g=c.parent().controller("form"),i=d.name||d.ngForm;i&&(a[i]=e);g&&c.bind("$destroy",
function(){g.$removeControl(e);i&&(a[i]=p);C(e,Ka)})}}}},id=A(Na),jd=A(C(W(Na),{restrict:"EAC"})),kd=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,ld=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/,md=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Vb={text:Ma,number:function(a,c,d,e,g,i){Ma(a,c,d,e,g,i);e.$parsers.push(function(a){var c=U(a);return c||md.test(a)?(e.$setValidity("number",!0),a===""?null:c?a:parseFloat(a)):(e.$setValidity("number",!1),p)});e.$formatters.push(function(a){return U(a)?
"":""+a});if(d.min){var f=parseFloat(d.min),a=function(a){return!U(a)&&a<f?(e.$setValidity("min",!1),p):(e.$setValidity("min",!0),a)};e.$parsers.push(a);e.$formatters.push(a)}if(d.max){var h=parseFloat(d.max),d=function(a){return!U(a)&&a>h?(e.$setValidity("max",!1),p):(e.$setValidity("max",!0),a)};e.$parsers.push(d);e.$formatters.push(d)}e.$formatters.push(function(a){return U(a)||sa(a)?(e.$setValidity("number",!0),a):(e.$setValidity("number",!1),p)})},url:function(a,c,d,e,g,i){Ma(a,c,d,e,g,i);a=
function(a){return U(a)||kd.test(a)?(e.$setValidity("url",!0),a):(e.$setValidity("url",!1),p)};e.$formatters.push(a);e.$parsers.push(a)},email:function(a,c,d,e,g,i){Ma(a,c,d,e,g,i);a=function(a){return U(a)||ld.test(a)?(e.$setValidity("email",!0),a):(e.$setValidity("email",!1),p)};e.$formatters.push(a);e.$parsers.push(a)},radio:function(a,c,d,e){v(d.name)&&c.attr("name",ta());c.bind("click",function(){c[0].checked&&a.$apply(function(){e.$setViewValue(d.value)})});e.$render=function(){c[0].checked=
d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e){var g=d.ngTrueValue,i=d.ngFalseValue;J(g)||(g=!0);J(i)||(i=!1);c.bind("click",function(){a.$apply(function(){e.$setViewValue(c[0].checked)})});e.$render=function(){c[0].checked=e.$viewValue};e.$formatters.push(function(a){return a===g});e.$parsers.push(function(a){return a?g:i})},hidden:r,button:r,submit:r,reset:r},Wb=["$browser","$sniffer",function(a,c){return{restrict:"E",require:"?ngModel",link:function(d,e,g,i){i&&
(Vb[D(g.type)]||Vb.text)(d,e,g,i,c,a)}}}],Ja="ng-valid",Ia="ng-invalid",La="ng-pristine",Sb="ng-dirty",nd=["$scope","$exceptionHandler","$attrs","ngModel","$element",function(a,c,d,e,g){function i(a,c){c=c?"-"+Xa(c,"-"):"";g.removeClass((a?Ia:Ja)+c).addClass((a?Ja:Ia)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$render=r;this.$name=d.name;var f=g.inheritedData("$formController")||
Ka,h=0,j=this.$error={};g.addClass(La);i(!0);this.$setValidity=function(a,c){if(j[a]!==!c){if(c){if(j[a]&&h--,!h)i(!0),this.$valid=!0,this.$invalid=!1}else i(!1),this.$invalid=!0,this.$valid=!1,h++;j[a]=!c;i(c,a);f.$setValidity(a,c,this)}};this.$setViewValue=function(a){this.$viewValue=a;if(this.$pristine)this.$dirty=!0,this.$pristine=!1,g.removeClass(La).addClass(Sb),f.$setDirty();l(this.$parsers,function(c){a=c(a)});if(this.$modelValue!==a)this.$modelValue=a,e(a),l(this.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})};
var k=this;a.$watch(function(){return e()},function(a){if(k.$modelValue!==a){var c=k.$formatters,d=c.length;for(k.$modelValue=a;d--;)a=c[d](a);if(k.$viewValue!==a)k.$viewValue=a,k.$render()}})}],od=[function(){return{inject:{ngModel:"accessor"},require:["ngModel","^?form"],controller:nd,link:function(a,c,d,e){var g=e[0],i=e[1]||Ka;i.$addControl(g);c.bind("$destroy",function(){i.$removeControl(g)})}}}],pd=A({require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),
Xb=[function(){return{require:"?ngModel",link:function(a,c,d,e){if(e){var g=function(a){if(d.required&&(U(a)||a===!1))e.$setValidity("required",!1);else return e.$setValidity("required",!0),a};e.$formatters.push(g);e.$parsers.unshift(g);d.$observe("required",function(){g(e.$viewValue)})}}}}],qd=function(){return{require:"ngModel",link:function(a,c,d,e){var g=(a=/\/(.*)\//.exec(d.ngList))&&RegExp(a[1])||d.ngList||",",i=function(a){var c=[];a&&l(a.split(g),function(a){a&&c.push(R(a))});return c};e.$parsers.push(i);
e.$formatters.push(function(a){return M(a)&&!ea(i(e.$viewValue),a)?a.join(", "):p})}}},rd=/^(true|false|\d+)$/,sd=[function(){return{priority:100,compile:function(a,c){return rd.test(c.ngValue)?function(a,c,g){g.$set("value",a.$eval(g.ngValue))}:function(a,c,g){g.$$observers.value=[];a.$watch(g.ngValue,function(a){g.$set("value",a,!1)})}}}}],td=Q(function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);a.$watch(d.ngBind,function(a){c.text(a==p?"":a)})}),ud=["$interpolate",function(a){return function(c,
d,e){c=a(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding",c);e.$observe("ngBindTemplate",function(a){d.text(a)})}}],vd=[function(){return function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBindHtmlUnsafe);a.$watch(d.ngBindHtmlUnsafe,function(a){c.html(a||"")})}}],wd=gb("",!0),xd=gb("Odd",0),yd=gb("Even",1),zd=Q({compile:function(a,c){c.$set("ngCloak",p);a.removeClass("ng-cloak")}}),Ad=[function(){return{scope:!0,controller:"@"}}],Bd=["$sniffer",function(a){return{priority:1E3,
compile:function(){a.csp=!0}}}],Yb={};l("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave".split(" "),function(a){var c=da("ng-"+a);Yb[c]=["$parse",function(d){return function(e,g,i){var f=d(i[c]);g.bind(D(a),function(a){e.$apply(function(){f(e,{$event:a})})})}}]});var Cd=Q(function(a,c,d){c.bind("submit",function(){a.$apply(d.ngSubmit)})}),Dd=["$http","$templateCache","$anchorScroll","$compile",function(a,c,d,e){return{restrict:"ECA",terminal:!0,compile:function(g,
i){var f=i.ngInclude||i.src,h=i.onload||"",j=i.autoscroll;return function(g,i){var m=0,l,o=function(){l&&(l.$destroy(),l=null);i.html("")};g.$watch(f,function(f){var q=++m;f?a.get(f,{cache:c}).success(function(a){q===m&&(l&&l.$destroy(),l=g.$new(),i.html(a),e(i.contents())(l),u(j)&&(!j||g.$eval(j))&&d(),l.$emit("$includeContentLoaded"),g.$eval(h))}).error(function(){q===m&&o()}):o()})}}}}],Ed=Q({compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Fd=Q({terminal:!0,priority:1E3}),
Gd=["$locale","$interpolate",function(a,c){var d=/{}/g;return{restrict:"EA",link:function(e,g,i){var f=i.count,h=g.attr(i.$attr.when),j=i.offset||0,k=e.$eval(h),n={};l(k,function(a,e){n[e]=c(a.replace(d,"{{"+f+"-"+j+"}}"))});e.$watch(function(){var c=parseFloat(e.$eval(f));return isNaN(c)?"":(k[c]||(c=a.pluralCat(c-j)),n[c](e,g,!0))},function(a){g.text(a)})}}}],Hd=Q({transclude:"element",priority:1E3,terminal:!0,compile:function(a,c,d){return function(a,c,i){var f=i.ngRepeat,i=f.match(/^\s*(.+)\s+in\s+(.*)\s*$/),
h,j,k;if(!i)throw B("Expected ngRepeat in form of '_item_ in _collection_' but got '"+f+"'.");f=i[1];h=i[2];i=f.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);if(!i)throw B("'item' in 'item in collection' should be identifier or (key, value) but got '"+f+"'.");j=i[3]||i[1];k=i[2];var n=new ab;a.$watch(function(a){var e,f,i=a.$eval(h),l=ac(i,!0),p,t=new ab,r,z,v,u,x=c;if(M(i))v=i||[];else{v=[];for(r in i)i.hasOwnProperty(r)&&r.charAt(0)!="$"&&v.push(r);v.sort()}e=0;for(f=v.length;e<f;e++){r=
i===v?e:v[e];z=i[r];if(u=n.shift(z)){p=u.scope;t.push(z,u);if(e!==u.index)u.index=e,x.after(u.element);x=u.element}else p=a.$new();p[j]=z;k&&(p[k]=r);p.$index=e;p.$first=e===0;p.$last=e===l-1;p.$middle=!(p.$first||p.$last);u||d(p,function(a){x.after(a);u={scope:p,element:x=a,index:e};t.push(z,u)})}for(r in n)if(n.hasOwnProperty(r))for(v=n[r];v.length;)z=v.pop(),z.element.remove(),z.scope.$destroy();n=t})}}}),Id=Q(function(a,c,d){a.$watch(d.ngShow,function(a){c.css("display",Ta(a)?"":"none")})}),Jd=
Q(function(a,c,d){a.$watch(d.ngHide,function(a){c.css("display",Ta(a)?"none":"")})}),Kd=Q(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&l(d,function(a,d){c.css(d,"")});a&&c.css(a)},!0)}),Ld=A({restrict:"EA",compile:function(a,c){var d=c.ngSwitch||c.on,e={};a.data("ng-switch",e);return function(a,i){var f,h,j;a.$watch(d,function(d){h&&(j.$destroy(),h.remove(),h=j=null);if(f=e["!"+d]||e["?"])a.$eval(c.change),j=a.$new(),f(j,function(a){h=a;i.append(a)})})}}}),Md=Q({transclude:"element",
priority:500,compile:function(a,c,d){a=a.inheritedData("ng-switch");ma(a);a["!"+c.ngSwitchWhen]=d}}),Nd=Q({transclude:"element",priority:500,compile:function(a,c,d){a=a.inheritedData("ng-switch");ma(a);a["?"]=d}}),Od=Q({controller:["$transclude","$element",function(a,c){a(function(a){c.append(a)})}]}),Pd=["$http","$templateCache","$route","$anchorScroll","$compile","$controller",function(a,c,d,e,g,i){return{restrict:"ECA",terminal:!0,link:function(f,h,j){function k(){function j(){q===l&&(h.html(""),
m&&(m.$destroy(),m=null))}var k=d.current&&d.current.template,q=++l;k?a.get(k,{cache:c}).success(function(a){if(q===l){h.html(a);m&&(m.$destroy(),m=null);var a=g(h.contents()),c=d.current;m=c.scope=f.$new();c.controller&&(c=i(c.controller,{$scope:m}),h.contents().data("$ngControllerController",c));a(m);m.$emit("$viewContentLoaded");m.$eval(p);e()}}).error(j):j()}var l=0,m,p=j.onload||"";f.$on("$afterRouteChange",k);k()}}}],Qd=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,
d){d.type=="text/ng-template"&&a.put(d.id,c[0].text)}}}],Rd=A({terminal:!0}),Sd=["$compile","$parse",function(a,c){var d=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,e={$setViewValue:r};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,c,d){var h=this,j={},k=e,l;h.databound=d.ngModel;h.init=function(a,c,d){k=a;l=d};h.addOption=function(c){j[c]=
!0;k.$viewValue==c&&(a.val(c),l.parent()&&l.remove())};h.removeOption=function(a){this.hasOption(a)&&(delete j[a],k.$viewValue==a&&this.renderUnknownOption(a))};h.renderUnknownOption=function(c){c="? "+ia(c)+" ?";l.val(c);a.prepend(l);a.val(c);l.prop("selected",!0)};h.hasOption=function(a){return j.hasOwnProperty(a)};c.$on("$destroy",function(){h.renderUnknownOption=r})}],link:function(e,i,f,h){function j(a,c,d,e){d.$render=function(){var a=d.$viewValue;e.hasOption(a)?(z.parent()&&z.remove(),c.val(a),
a===""&&w.prop("selected",!0)):v(a)&&w?c.val(""):e.renderUnknownOption(a)};c.bind("change",function(){a.$apply(function(){z.parent()&&z.remove();d.$setViewValue(c.val())})})}function k(a,c,d){var e;d.$render=function(){var a=new Ca(d.$viewValue);l(c.children(),function(c){c.selected=u(a.get(c.value))})};a.$watch(function(){ea(e,d.$viewValue)||(e=W(d.$viewValue),d.$render())});c.bind("change",function(){a.$apply(function(){var a=[];l(c.children(),function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}
function n(e,f,g){function i(){var a={"":[]},c=[""],d,h,r,u,t;r=g.$modelValue;u=s(e)||[];var w=l?ib(u):u,z,y,x;y={};t=!1;var A,B;if(o)t=new Ca(r);else if(r===null||q)a[""].push({selected:r===null,id:"",label:""}),t=!0;for(x=0;z=w.length,x<z;x++){y[k]=u[l?y[l]=w[x]:x];d=m(e,y)||"";if(!(h=a[d]))h=a[d]=[],c.push(d);o?d=t.remove(n(e,y))!=p:(d=r===n(e,y),t=t||d);h.push({id:l?w[x]:x,label:j(e,y)||"",selected:d})}!o&&!t&&a[""].unshift({id:"?",label:"",selected:!0});y=0;for(w=c.length;y<w;y++){d=c[y];h=a[d];
if(v.length<=y)r={element:D.clone().attr("label",d),label:h.label},u=[r],v.push(u),f.append(r.element);else if(u=v[y],r=u[0],r.label!=d)r.element.attr("label",r.label=d);A=null;x=0;for(z=h.length;x<z;x++)if(d=h[x],t=u[x+1]){A=t.element;if(t.label!==d.label)A.text(t.label=d.label);if(t.id!==d.id)A.val(t.id=d.id);if(t.element.selected!==d.selected)A.prop("selected",t.selected=d.selected)}else d.id===""&&q?B=q:(B=C.clone()).val(d.id).attr("selected",d.selected).text(d.label),u.push({element:B,label:d.label,
id:d.id,selected:d.selected}),A?A.after(B):r.element.append(B),A=B;for(x++;u.length>x;)u.pop().element.remove()}for(;v.length>y;)v.pop()[0].element.remove()}var h;if(!(h=r.match(d)))throw B("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+r+"'.");var j=c(h[2]||h[1]),k=h[4]||h[6],l=h[5],m=c(h[3]||""),n=c(h[2]?h[1]:k),s=c(h[7]),v=[[{element:f,label:""}]];q&&(a(q)(e),q.removeClass("ng-scope"),q.remove());f.html("");f.bind("change",function(){e.$apply(function(){var a,
c=s(e)||[],d={},h,i,j,m,q,r;if(o){i=[];m=0;for(r=v.length;m<r;m++){a=v[m];j=1;for(q=a.length;j<q;j++)if((h=a[j].element)[0].selected)h=h.val(),l&&(d[l]=h),d[k]=c[h],i.push(n(e,d))}}else h=f.val(),h=="?"?i=p:h==""?i=null:(d[k]=c[h],l&&(d[l]=h),i=n(e,d));g.$setViewValue(i)})});g.$render=i;e.$watch(i)}if(h[1]){for(var m=h[0],s=h[1],o=f.multiple,r=f.ngOptions,q=!1,w,C=t(aa.createElement("option")),D=t(aa.createElement("optgroup")),z=C.clone(),h=0,A=i.children(),E=A.length;h<E;h++)if(A[h].value==""){w=
q=A.eq(h);break}m.init(s,q,z);if(o&&(f.required||f.ngRequired)){var x=function(a){s.$setValidity("required",!f.required||a&&a.length);return a};s.$parsers.push(x);s.$formatters.unshift(x);f.$observe("required",function(){x(s.$viewValue)})}r?n(e,i,s):o?k(e,i,s):j(e,i,s,m)}}}}],Td=["$interpolate",function(a){var c={addOption:r,removeOption:r};return{restrict:"E",priority:100,require:"^select",compile:function(d,e){if(v(e.value)){var g=a(d.text(),!0);g||e.$set("value",d.text())}return function(a,d,e,
j){j.databound?d.prop("selected",!1):j=c;g?a.$watch(g,function(a,c){e.$set("value",a);a!==c&&j.removeOption(c);j.addOption(a)}):j.addOption(e.value);d.bind("$destroy",function(){j.removeOption(e.value)})}}}}],Ud=A({restrict:"E",terminal:!0});(ha=V.jQuery)?(t=ha,C(ha.fn,{scope:qa.scope,controller:qa.controller,injector:qa.injector,inheritedData:qa.inheritedData}),Ya("remove",!0),Ya("empty"),Ya("html")):t=N;Tb.element=t;(function(a){C(a,{bootstrap:mb,copy:W,extend:C,equals:ea,element:t,forEach:l,injector:nb,
noop:r,bind:Sa,toJson:ba,fromJson:kb,identity:ua,isUndefined:v,isDefined:u,isString:J,isFunction:P,isObject:L,isNumber:sa,isElement:$b,isArray:M,version:fd,isDate:ka,lowercase:D,uppercase:ja,callbacks:{counter:0}});pa=fc(V);try{pa("ngLocale")}catch(c){pa("ngLocale",[]).provider("$locale",Wc)}pa("ng",["ngLocale"],["$provide",function(a){a.provider("$compile",yb).directive({a:hd,input:Wb,textarea:Wb,form:id,script:Qd,select:Sd,style:Ud,option:Td,ngBind:td,ngBindHtmlUnsafe:vd,ngBindTemplate:ud,ngClass:wd,
ngClassEven:yd,ngClassOdd:xd,ngCsp:Bd,ngCloak:zd,ngController:Ad,ngForm:jd,ngHide:Jd,ngInclude:Dd,ngInit:Ed,ngNonBindable:Fd,ngPluralize:Gd,ngRepeat:Hd,ngShow:Id,ngSubmit:Cd,ngStyle:Kd,ngSwitch:Ld,ngSwitchWhen:Md,ngSwitchDefault:Nd,ngOptions:Rd,ngView:Pd,ngTransclude:Od,ngModel:od,ngList:qd,ngChange:pd,required:Xb,ngRequired:Xb,ngValue:sd}).directive(hb).directive(Yb);a.provider({$anchorScroll:pc,$browser:rc,$cacheFactory:sc,$controller:xc,$defer:yc,$document:zc,$exceptionHandler:Ac,$filter:Kb,$interpolate:Bc,
$http:Sc,$httpBackend:Tc,$location:Fc,$log:Gc,$parse:Kc,$route:Nc,$routeParams:Oc,$rootScope:Pc,$q:Lc,$sniffer:Qc,$templateCache:tc,$timeout:Xc,$window:Rc})}])})(Tb);t(aa).ready(function(){dc(aa,mb)})})(window,document);angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>');
(function(T,$,p){'use strict';function m(b,a,c){var d;if(b)if(M(b))for(d in b)d!="prototype"&&d!="length"&&d!="name"&&b.hasOwnProperty(d)&&a.call(c,b[d],d);else if(b.forEach&&b.forEach!==m)b.forEach(a,c);else if(J(b)&&ua(b.length))for(d=0;d<b.length;d++)a.call(c,b[d],d);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d);return b}function kb(b){var a=[],c;for(c in b)b.hasOwnProperty(c)&&a.push(c);return a.sort()}function cc(b,a,c){for(var d=kb(b),e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}
function lb(b){return function(a,c){b(c,a)}}function va(){for(var b=X.length,a;b;){b--;a=X[b].charCodeAt(0);if(a==57)return X[b]="A",X.join("");if(a==90)X[b]="0";else return X[b]=String.fromCharCode(a+1),X.join("")}X.unshift("0");return X.join("")}function D(b){m(arguments,function(a){a!==b&&m(a,function(a,d){b[d]=a})});return b}function I(b){return parseInt(b,10)}function Qa(b,a){return D(new (D(function(){},{prototype:b})),a)}function A(){}function wa(b){return b}function B(b){return function(){return b}}
function v(b){return typeof b=="undefined"}function s(b){return typeof b!="undefined"}function J(b){return b!=null&&typeof b=="object"}function G(b){return typeof b=="string"}function ua(b){return typeof b=="number"}function la(b){return Ra.apply(b)=="[object Date]"}function K(b){return Ra.apply(b)=="[object Array]"}function M(b){return typeof b=="function"}function ma(b){return b&&b.document&&b.location&&b.alert&&b.setInterval}function Q(b){return G(b)?b.replace(/^\s*/,"").replace(/\s*$/,""):b}function dc(b){return b&&
(b.nodeName||b.bind&&b.find)}function Sa(b,a,c){var d=[];m(b,function(b,g,h){d.push(a.call(c,b,g,h))});return d}function ec(b,a){var c=0,d;if(K(b)||G(b))return b.length;else if(J(b))for(d in b)(!a||b.hasOwnProperty(d))&&c++;return c}function Ta(b,a){if(b.indexOf)return b.indexOf(a);for(var c=0;c<b.length;c++)if(a===b[c])return c;return-1}function xa(b,a){var c=Ta(b,a);c>=0&&b.splice(c,1);return a}function U(b,a){if(ma(b)||b&&b.$evalAsync&&b.$watch)throw w("Can't copy Window or Scope");if(a){if(b===
a)throw w("Can't copy equivalent objects or arrays");if(K(b)){for(;a.length;)a.pop();for(var c=0;c<b.length;c++)a.push(U(b[c]))}else for(c in m(a,function(b,c){delete a[c]}),b)a[c]=U(b[c])}else(a=b)&&(K(b)?a=U(b,[]):la(b)?a=new Date(b.getTime()):J(b)&&(a=U(b,{})));return a}function fc(b,a){var a=a||{},c;for(c in b)b.hasOwnProperty(c)&&c.substr(0,2)!=="$$"&&(a[c]=b[c]);return a}function ea(b,a){if(b===a)return!0;if(b===null||a===null)return!1;if(b!==b&&a!==a)return!0;var c=typeof b,d;if(c==typeof a&&
c=="object")if(K(b)){if((c=b.length)==a.length){for(d=0;d<c;d++)if(!ea(b[d],a[d]))return!1;return!0}}else if(la(b))return la(a)&&b.getTime()==a.getTime();else{if(b&&b.$evalAsync&&b.$watch||a&&a.$evalAsync&&a.$watch||ma(b)||ma(a))return!1;c={};for(d in b){if(d.charAt(0)!=="$"&&!M(b[d])&&!ea(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c[d]&&d.charAt(0)!=="$"&&!M(a[d]))return!1;return!0}return!1}function Ua(b,a){var c=arguments.length>2?ga.call(arguments,2):[];return M(a)&&!(a instanceof RegExp)?c.length?
function(){return arguments.length?a.apply(b,c.concat(ga.call(arguments,0))):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}:a}function gc(b,a){var c=a;/^\$+/.test(b)?c=p:ma(a)?c="$WINDOW":a&&$===a?c="$DOCUMENT":a&&a.$evalAsync&&a.$watch&&(c="$SCOPE");return c}function aa(b,a){return JSON.stringify(b,gc,a?" ":null)}function mb(b){return G(b)?JSON.parse(b):b}function Va(b){b&&b.length!==0?(b=E(""+b),b=!(b=="f"||b=="0"||b=="false"||b=="no"||b=="n"||b=="[]")):b=!1;return b}
function na(b){b=u(b).clone();try{b.html("")}catch(a){}return u("<div>").append(b).html().match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+E(b)})}function Wa(b){var a={},c,d;m((b||"").split("&"),function(b){b&&(c=b.split("="),d=decodeURIComponent(c[0]),a[d]=s(c[1])?decodeURIComponent(c[1]):!0)});return a}function nb(b){var a=[];m(b,function(b,d){a.push(Xa(d,!0)+(b===!0?"":"="+Xa(b,!0)))});return a.length?a.join("&"):""}function Ya(b){return Xa(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,
"=").replace(/%2B/gi,"+")}function Xa(b,a){return encodeURIComponent(b).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(a?null:/%20/g,"+")}function hc(b,a){function c(a){a&&d.push(a)}var d=[b],e,g,h=["ng:app","ng-app","x-ng-app","data-ng-app"],f=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;m(h,function(a){h[a]=!0;c($.getElementById(a));a=a.replace(":","\\:");b.querySelectorAll&&(m(b.querySelectorAll("."+a),c),m(b.querySelectorAll("."+a+"\\:"),c),m(b.querySelectorAll("["+
a+"]"),c))});m(d,function(a){if(!e){var b=f.exec(" "+a.className+" ");b?(e=a,g=(b[2]||"").replace(/\s+/g,",")):m(a.attributes,function(b){if(!e&&h[b.name])e=a,g=b.value})}});e&&a(e,g?[g]:[])}function ob(b,a){b=u(b);a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);a.unshift("ng");var c=pb(a);c.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,h){a.$apply(function(){b.data("$injector",h);c(b)(a)})}]);return c}function Za(b,a){a=a||"_";return b.replace(ic,
function(b,d){return(d?a:"")+b.toLowerCase()})}function oa(b,a,c){if(!b)throw new w("Argument '"+(a||"?")+"' is "+(c||"required"));return b}function pa(b,a,c){c&&K(b)&&(b=b[b.length-1]);oa(M(b),a,"not a function, got "+(b&&typeof b=="object"?b.constructor.name||"Object":typeof b));return b}function jc(b){function a(a,b,e){return a[b]||(a[b]=e())}return a(a(b,"angular",Object),"module",function(){var b={};return function(d,e,g){e&&b.hasOwnProperty(d)&&(b[d]=null);return a(b,d,function(){function a(c,
d,e){return function(){b[e||"push"]([c,d,arguments]);return k}}if(!e)throw w("No module: "+d);var b=[],c=[],j=a("$injector","invoke"),k={_invokeQueue:b,_runBlocks:c,requires:e,name:d,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),config:j,run:function(a){c.push(a);
return this}};g&&j(g);return k})}})}function qb(b){return b.replace(kc,function(a,b,d,e){return e?d.toUpperCase():d}).replace(lc,"Moz$1")}function $a(b,a){function c(){var e;for(var b=[this],c=a,h,f,i,j,k,l,n;b.length;){h=b.shift();f=0;for(i=h.length;f<i;f++){j=u(h[f]);c?(n=(k=j.data("events"))&&k.$destroy)&&m(n,function(a){a.handler()}):c=!c;k=0;for(e=(l=j.children()).length,j=e;k<j;k++)b.push(ha(l[k]))}}return d.apply(this,arguments)}var d=ha.fn[b],d=d.$original||d;c.$original=d;ha.fn[b]=c}function P(b){if(b instanceof
P)return b;if(!(this instanceof P)){if(G(b)&&b.charAt(0)!="<")throw w("selectors not implemented");return new P(b)}if(G(b)){var a=$.createElement("div");a.innerHTML="<div>&nbsp;</div>"+b;a.removeChild(a.firstChild);ab(this,a.childNodes);this.remove()}else ab(this,b)}function bb(b){return b.cloneNode(!0)}function qa(b){rb(b);for(var a=0,b=b.childNodes||[];a<b.length;a++)qa(b[a])}function sb(b,a,c){var d=ba(b,"events");ba(b,"handle")&&(v(a)?m(d,function(a,c){tb(b,c,a);delete d[c]}):v(c)?(tb(b,a,d[a]),
delete d[a]):xa(d[a],c))}function rb(b){var a=b[ya],c=za[a];c&&(c.handle&&(c.events.$destroy&&c.handle({},"$destroy"),sb(b)),delete za[a],b[ya]=p)}function ba(b,a,c){var d=b[ya],d=za[d||-1];if(s(c))d||(b[ya]=d=++mc,d=za[d]={}),d[a]=c;else return d&&d[a]}function ub(b,a,c){var d=ba(b,"data"),e=s(c),g=!e&&s(a),h=g&&!J(a);!d&&!h&&ba(b,"data",d={});if(e)d[a]=c;else if(g)if(h)return d&&d[a];else D(d,a);else return d}function Aa(b,a){return(" "+b.className+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" ")>
-1}function vb(b,a){a&&m(a.split(" "),function(a){b.className=Q((" "+b.className+" ").replace(/[\n\t]/g," ").replace(" "+Q(a)+" "," "))})}function wb(b,a){a&&m(a.split(" "),function(a){if(!Aa(b,a))b.className=Q(b.className+" "+Q(a))})}function ab(b,a){if(a)for(var a=!a.nodeName&&s(a.length)&&!ma(a)?a:[a],c=0;c<a.length;c++)b.push(a[c])}function xb(b,a){return Ba(b,"$"+(a||"ngController")+"Controller")}function Ba(b,a,c){b=u(b);for(b[0].nodeType==9&&(b=b.find("html"));b.length;){if(c=b.data(a))return c;
b=b.parent()}}function yb(b,a){var c=Ca[a.toLowerCase()];return c&&zb[b.nodeName]&&c}function nc(b,a){var c=function(c,e){if(!c.preventDefault)c.preventDefault=function(){c.returnValue=!1};if(!c.stopPropagation)c.stopPropagation=function(){c.cancelBubble=!0};if(!c.target)c.target=c.srcElement||$;if(v(c.defaultPrevented)){var g=c.preventDefault;c.preventDefault=function(){c.defaultPrevented=!0;g.call(c)};c.defaultPrevented=!1}c.isDefaultPrevented=function(){return c.defaultPrevented};m(a[e||c.type],
function(a){a.call(b,c)});Y<=8?(c.preventDefault=null,c.stopPropagation=null,c.isDefaultPrevented=null):(delete c.preventDefault,delete c.stopPropagation,delete c.isDefaultPrevented)};c.elem=b;return c}function ia(b){var a=typeof b,c;if(a=="object"&&b!==null)if(typeof(c=b.$$hashKey)=="function")c=b.$$hashKey();else{if(c===p)c=b.$$hashKey=va()}else c=b;return a+":"+c}function Da(b){m(b,this.put,this)}function cb(){}function Ab(b){var a,c;if(typeof b=="function"){if(!(a=b.$inject))a=[],c=b.toString().replace(oc,
""),c=c.match(pc),m(c[1].split(qc),function(b){b.replace(rc,function(b,c,d){a.push(d)})}),b.$inject=a}else K(b)?(c=b.length-1,pa(b[c],"fn"),a=b.slice(0,c)):pa(b,"fn",!0);return a}function pb(b){function a(a){return function(b,c){if(J(b))m(b,lb(a));else return a(b,c)}}function c(a,b){M(b)&&(b=l.instantiate(b));if(!b.$get)throw w("Provider "+a+" must define $get factory method.");return k[a+f]=b}function d(a,b){return c(a,{$get:b})}function e(a){var b=[];m(a,function(a){if(!j.get(a))if(j.put(a,!0),
G(a)){var c=ra(a);b=b.concat(e(c.requires)).concat(c._runBlocks);try{for(var d=c._invokeQueue,c=0,f=d.length;c<f;c++){var g=d[c],i=g[0]=="$injector"?l:l.get(g[0]);i[g[1]].apply(i,g[2])}}catch(h){throw h.message&&(h.message+=" from "+a),h;}}else if(M(a))try{b.push(l.invoke(a))}catch(o){throw o.message&&(o.message+=" from "+a),o;}else if(K(a))try{b.push(l.invoke(a))}catch(n){throw n.message&&(n.message+=" from "+String(a[a.length-1])),n;}else pa(a,"module")});return b}function g(a,b){function c(d){if(typeof d!==
"string")throw w("Service name expected");if(a.hasOwnProperty(d)){if(a[d]===h)throw w("Circular dependency: "+i.join(" <- "));return a[d]}else try{return i.unshift(d),a[d]=h,a[d]=b(d)}finally{i.shift()}}function d(a,b,e){var f=[],j=Ab(a),g,h,o;h=0;for(g=j.length;h<g;h++)o=j[h],f.push(e&&e.hasOwnProperty(o)?e[o]:c(o,i));a.$inject||(a=a[g]);switch(b?-1:f.length){case 0:return a();case 1:return a(f[0]);case 2:return a(f[0],f[1]);case 3:return a(f[0],f[1],f[2]);case 4:return a(f[0],f[1],f[2],f[3]);case 5:return a(f[0],
f[1],f[2],f[3],f[4]);case 6:return a(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6]);case 8:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7]);case 9:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8]);case 10:return a(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9]);default:return a.apply(b,f)}}return{invoke:d,instantiate:function(a,b){var c=function(){},e;c.prototype=(K(a)?a[a.length-1]:a).prototype;c=new c;e=d(a,c,b);return J(e)?e:c},get:c,annotate:Ab}}var h=
{},f="Provider",i=[],j=new Da,k={$provide:{provider:a(c),factory:a(d),service:a(function(a,b){return d(a,["$injector",function(a){return a.instantiate(b)}])}),value:a(function(a,b){return d(a,B(b))}),constant:a(function(a,b){k[a]=b;n[a]=b}),decorator:function(a,b){var c=l.get(a+f),d=c.$get;c.$get=function(){var a=r.invoke(d,c);return r.invoke(b,null,{$delegate:a})}}}},l=g(k,function(){throw w("Unknown provider: "+i.join(" <- "));}),n={},r=n.$injector=g(n,function(a){a=l.get(a+f);return r.invoke(a.$get,
a)});m(e(b),function(a){r.invoke(a||A)});return r}function sc(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;m(a,function(a){!b&&E(a.nodeName)==="a"&&(b=a)});return b}function g(){var b=c.hash(),d;b?(d=h.getElementById(b))?d.scrollIntoView():(d=e(h.getElementsByName(b)))?d.scrollIntoView():b==="top"&&a.scrollTo(0,0):a.scrollTo(0,0)}var h=a.document;b&&d.$watch(function(){return c.hash()},function(){d.$evalAsync(g)});
return g}]}function tc(b,a,c,d){function e(a){try{a.apply(null,ga.call(arguments,1))}finally{if(o--,o===0)for(;x.length;)try{x.pop()()}catch(b){c.error(b)}}}function g(a,b){(function ca(){m(q,function(a){a()});t=b(ca,a)})()}function h(){fa!=f.url()&&(fa=f.url(),m(y,function(a){a(f.url())}))}var f=this,i=a[0],j=b.location,k=b.history,l=b.setTimeout,n=b.clearTimeout,r={};f.isMock=!1;var o=0,x=[];f.$$completeOutstandingRequest=e;f.$$incOutstandingRequestCount=function(){o++};f.notifyWhenNoOutstandingRequests=
function(a){m(q,function(a){a()});o===0?a():x.push(a)};var q=[],t;f.addPollFn=function(a){v(t)&&g(100,l);q.push(a);return a};var fa=j.href,z=a.find("base");f.url=function(a,b){return a?(fa=a,d.history?b?k.replaceState(null,"",a):(k.pushState(null,"",a),z.attr("href",z.attr("href"))):b?j.replace(a):j.href=a,f):j.href.replace(/%27/g,"'")};var y=[],L=!1;f.onUrlChange=function(a){L||(d.history&&u(b).bind("popstate",h),d.hashchange?u(b).bind("hashchange",h):f.addPollFn(h),L=!0);y.push(a);return a};f.baseHref=
function(){var a=z.attr("href");return a?a.replace(/^https?\:\/\/[^\/]*/,""):a};var V={},H="",N=f.baseHref();f.cookies=function(a,b){var d,e,f,j;if(a)if(b===p)i.cookie=escape(a)+"=;path="+N+";expires=Thu, 01 Jan 1970 00:00:00 GMT";else{if(G(b))d=(i.cookie=escape(a)+"="+escape(b)+";path="+N).length+1,d>4096&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"),V.length>20&&c.warn("Cookie '"+a+"' possibly not set or overflowed because too many cookies were already set ("+
V.length+" > 20 )")}else{if(i.cookie!==H){H=i.cookie;d=H.split("; ");V={};for(f=0;f<d.length;f++)e=d[f],j=e.indexOf("="),j>0&&(V[unescape(e.substring(0,j))]=unescape(e.substring(j+1)))}return V}};f.defer=function(a,b){var c;o++;c=l(function(){delete r[c];e(a)},b||0);r[c]=!0;return c};f.defer.cancel=function(a){return r[a]?(delete r[a],n(a),e(A),!0):!1}}function uc(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new tc(b,d,a,c)}]}function vc(){this.$get=function(){function b(b,
d){function e(a){if(a!=l){if(n){if(n==a)n=a.n}else n=a;g(a.n,a.p);g(a,l);l=a;l.n=null}}function g(a,b){if(a!=b){if(a)a.p=b;if(b)b.n=a}}if(b in a)throw w("cacheId "+b+" taken");var h=0,f=D({},d,{id:b}),i={},j=d&&d.capacity||Number.MAX_VALUE,k={},l=null,n=null;return a[b]={put:function(a,b){var c=k[a]||(k[a]={key:a});e(c);v(b)||(a in i||h++,i[a]=b,h>j&&this.remove(n.key))},get:function(a){var b=k[a];if(b)return e(b),i[a]},remove:function(a){var b=k[a];if(b==l)l=b.p;if(b==n)n=b.n;g(b.n,b.p);delete k[a];
delete i[a];h--},removeAll:function(){i={};h=0;k={};l=n=null},destroy:function(){k=f=i=null;delete a[b]},info:function(){return D({},f,{size:h})}}}var a={};b.info=function(){var b={};m(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function wc(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function Bb(b){var a={},c="Directive",d=/^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/,e=/(([\d\w\-_]+)(?:\:([^;]+))?;?)/,g="Template must have exactly one root element. was: ";
this.directive=function f(d,e){G(d)?(oa(e,"directive"),a.hasOwnProperty(d)||(a[d]=[],b.factory(d+c,["$injector","$exceptionHandler",function(b,c){var e=[];m(a[d],function(a){try{var f=b.invoke(a);if(M(f))f={compile:B(f)};else if(!f.compile&&f.link)f.compile=B(f.link);f.priority=f.priority||0;f.name=f.name||d;f.require=f.require||f.controller&&f.name;f.restrict=f.restrict||"A";e.push(f)}catch(j){c(j)}});return e}])),a[d].push(e)):m(d,lb(f));return this};this.$get=["$injector","$interpolate","$exceptionHandler",
"$http","$templateCache","$parse","$controller","$rootScope",function(b,i,j,k,l,n,r,o){function x(a,b,c){a instanceof u||(a=u(a));m(a,function(b,c){b.nodeType==3&&(a[c]=u(b).wrap("<span>").parent()[0])});var d=t(a,b,a,c);return function(b,c){oa(b,"scope");var e=c?sa.clone.call(a):a;e.data("$scope",b);q(e,"ng-scope");c&&c(e,b);d&&d(b,e,e);return e}}function q(a,b){try{a.addClass(b)}catch(c){}}function t(a,b,c,d){function e(a,c,d,j){for(var g,i,n,k,o,r=0,l=0,q=f.length;r<q;l++)n=c[l],g=f[r++],i=f[r++],
g?(g.scope?(k=a.$new(J(g.scope)),u(n).data("$scope",k)):k=a,(o=g.transclude)||!j&&b?g(i,k,n,d,function(b){return function(c){var d=a.$new();return b(d,c).bind("$destroy",Ua(d,d.$destroy))}}(o||b)):g(i,k,n,p,j)):i&&i(a,n.childNodes,p,j)}for(var f=[],j,g,i,n=0;n<a.length;n++)g=new ca,j=fa(a[n],[],g,d),g=(j=j.length?z(j,a[n],g,b,c):null)&&j.terminal?null:t(a[n].childNodes,j?j.transclude:b),f.push(j),f.push(g),i=i||j||g;return i?e:null}function fa(a,b,c,f){var j=c.$attr,g;switch(a.nodeType){case 1:y(b,
da(Cb(a).toLowerCase()),"E",f);var i,n,k;g=a.attributes;for(var o=0,r=g&&g.length;o<r;o++)if(i=g[o],i.specified)n=i.name,k=da(n.toLowerCase()),j[k]=n,c[k]=i=Q(Y&&n=="href"?decodeURIComponent(a.getAttribute(n,2)):i.value),yb(a,k)&&(c[k]=!0),W(a,b,i,k),y(b,k,"A",f);a=a.className;if(G(a))for(;g=e.exec(a);)k=da(g[2]),y(b,k,"C",f)&&(c[k]=Q(g[3])),a=a.substr(g.index+g[0].length);break;case 3:F(b,a.nodeValue);break;case 8:try{if(g=d.exec(a.nodeValue))k=da(g[1]),y(b,k,"M",f)&&(c[k]=Q(g[2]))}catch(l){}}b.sort(H);
return b}function z(a,b,c,d,e){function f(a,b){if(a)a.require=C.require,l.push(a);if(b)b.require=C.require,t.push(b)}function i(a,b){var c,d="data",e=!1;if(G(a)){for(;(c=a.charAt(0))=="^"||c=="?";)a=a.substr(1),c=="^"&&(d="inheritedData"),e=e||c=="?";c=b[d]("$"+a+"Controller");if(!c&&!e)throw w("No controller: "+a);}else K(a)&&(c=[],m(a,function(a){c.push(i(a,b))}));return c}function k(a,d,e,f,g){var o,q,x,L,Fa;o=b===e?c:fc(c,new ca(u(e),c.$attr));q=o.$$element;if(z&&J(z.scope)){var xc=/^\s*([@=&])\s*(\w*)\s*$/,
ja=d.$parent||d;m(z.scope,function(a,b){var c=a.match(xc)||[],e=c[2]||b,f,g,j;switch(c[1]){case "@":o.$observe(e,function(a){d[b]=a});o.$$observers[e].$$scope=ja;break;case "=":g=n(o[e]);j=g.assign||function(){f=d[b]=g(ja);throw w(Db+o[e]+" (directive: "+z.name+")");};f=d[b]=g(ja);d.$watch(function(){var a=g(ja);a!==d[b]&&(a!==f?f=d[b]=a:j(ja,f=d[b]));return a});break;case "&":g=n(o[e]);d[b]=function(a){return g(ja,a)};break;default:throw w("Invalid isolate scope definition for directive "+z.name+
": "+a);}})}s&&m(s,function(a){var b={$scope:d,$element:q,$attrs:o,$transclude:g};Fa=a.controller;Fa=="@"&&(Fa=o[a.name]);q.data("$"+a.name+"Controller",r(Fa,b))});f=0;for(x=l.length;f<x;f++)try{L=l[f],L(d,q,o,L.require&&i(L.require,q))}catch(y){j(y,na(q))}a&&a(d,e.childNodes,p,g);f=0;for(x=t.length;f<x;f++)try{L=t[f],L(d,q,o,L.require&&i(L.require,q))}catch(H){j(H,na(q))}}for(var o=-Number.MAX_VALUE,l=[],t=[],z=null,y=null,H=null,F=c.$$element=u(b),C,W,Z,A,v=d,s,D,B,E=0,I=a.length;E<I;E++){C=a[E];
Z=p;if(o>C.priority)break;if(B=C.scope)N("isolated scope",y,C,F),J(B)&&(q(F,"ng-isolate-scope"),y=C),q(F,"ng-scope"),z=z||C;W=C.name;if(B=C.controller)s=s||{},N("'"+W+"' controller",s[W],C,F),s[W]=C;if(B=C.transclude)N("transclusion",A,C,F),A=C,o=C.priority,B=="element"?(Z=u(b),F=c.$$element=u("<\!-- "+W+": "+c[W]+" --\>"),b=F[0],Ea(e,u(Z[0]),b),v=x(Z,d,o)):(Z=u(bb(b)).contents(),F.html(""),v=x(Z,d));if(B=C.template)if(N("template",H,C,F),H=C,Z=u("<div>"+Q(B)+"</div>").contents(),b=Z[0],C.replace){if(Z.length!=
1||b.nodeType!==1)throw new w(g+B);Ea(e,F,b);W={$attr:{}};a=a.concat(fa(b,a.splice(E+1,a.length-(E+1)),W));L(c,W);I=a.length}else F.html(B);if(C.templateUrl)N("template",H,C,F),H=C,k=V(a.splice(E,a.length-E),k,F,c,e,C.replace,v),I=a.length;else if(C.compile)try{D=C.compile(F,c,v),M(D)?f(null,D):D&&f(D.pre,D.post)}catch(O){j(O,na(F))}if(C.terminal)k.terminal=!0,o=Math.max(o,C.priority)}k.scope=z&&z.scope;k.transclude=A&&v;return k}function y(d,e,g,i){var n=!1;if(a.hasOwnProperty(e))for(var k,e=b.get(e+
c),o=0,l=e.length;o<l;o++)try{if(k=e[o],(i===p||i>k.priority)&&k.restrict.indexOf(g)!=-1)d.push(k),n=!0}catch(r){j(r)}return n}function L(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;m(a,function(d,e){e.charAt(0)!="$"&&(b[e]&&(d+=(e==="style"?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});m(b,function(b,f){f=="class"?(q(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):f=="style"?e.attr("style",e.attr("style")+";"+b):f.charAt(0)!="$"&&!a.hasOwnProperty(f)&&(a[f]=b,d[f]=c[f])})}function V(a,b,c,d,e,f,j){var i=
[],n,o,r=c[0],q=a.shift(),x=D({},q,{controller:null,templateUrl:null,transclude:null});c.html("");k.get(q.templateUrl,{cache:l}).success(function(k){var l,q;if(f){q=u("<div>"+Q(k)+"</div>").contents();l=q[0];if(q.length!=1||l.nodeType!==1)throw new w(g+k);k={$attr:{}};Ea(e,c,l);fa(l,a,k);L(d,k)}else l=r,c.html(k);a.unshift(x);n=z(a,c,d,j);for(o=t(c.contents(),j);i.length;){var m=i.pop(),k=i.pop();q=i.pop();var y=i.pop(),H=l;q!==r&&(H=bb(l),Ea(k,u(q),H));n(function(){b(o,y,H,e,m)},y,H,e,m)}i=null}).error(function(a,
b,c,d){throw w("Failed to load template: "+d.url);});return function(a,c,d,e,f){i?(i.push(c),i.push(d),i.push(e),i.push(f)):n(function(){b(o,c,d,e,f)},c,d,e,f)}}function H(a,b){return b.priority-a.priority}function N(a,b,c,d){if(b)throw w("Multiple directives ["+b.name+", "+c.name+"] asking for "+a+" on: "+na(d));}function F(a,b){var c=i(b,!0);c&&a.push({priority:0,compile:B(function(a,b){var d=b.parent(),e=d.data("$binding")||[];e.push(c);q(d.data("$binding",e),"ng-binding");a.$watch(c,function(a){b[0].nodeValue=
a})})})}function W(a,b,c,d){var e=i(c,!0);e&&b.push({priority:100,compile:B(function(a,b,c){b=c.$$observers||(c.$$observers={});d==="class"&&(e=i(c[d],!0));c[d]=p;(b[d]||(b[d]=[])).$$inter=!0;(c.$$observers&&c.$$observers[d].$$scope||a).$watch(e,function(a){c.$set(d,a)})})})}function Ea(a,b,c){var d=b[0],e=d.parentNode,f,g;if(a){f=0;for(g=a.length;f<g;f++)if(a[f]==d){a[f]=c;break}}e&&e.replaceChild(c,d);c[u.expando]=d[u.expando];b[0]=c}var ca=function(a,b){this.$$element=a;this.$attr=b||{}};ca.prototype=
{$normalize:da,$set:function(a,b,c,d){var e=yb(this.$$element[0],a),f=this.$$observers;e&&(this.$$element.prop(a,b),d=e);this[a]=b;d?this.$attr[a]=d:(d=this.$attr[a])||(this.$attr[a]=d=Za(a,"-"));c!==!1&&(b===null||b===p?this.$$element.removeAttr(d):this.$$element.attr(d,b));f&&m(f[a],function(a){try{a(b)}catch(c){j(c)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers={}),e=d[a]||(d[a]=[]);e.push(b);o.$evalAsync(function(){e.$$inter||b(c[a])});return b}};return x}]}function da(b){return qb(b.replace(yc,
""))}function zc(){var b={};this.register=function(a,c){J(a)?D(b,a):b[a]=c};this.$get=["$injector","$window",function(a,c){return function(d,e){if(G(d)){var g=d,d=b.hasOwnProperty(g)?b[g]:db(e.$scope,g,!0)||db(c,g,!0);pa(d,g,!0)}return a.instantiate(d,e)}}]}function Ac(){this.$get=["$rootScope","$browser","$log",function(b,a,c){function d(c,d){return a.defer(function(){b.$apply(c)},d)}c.warn("$defer service has been deprecated, migrate to $timeout");d.cancel=function(b){return a.defer.cancel(b)};
return d}]}function Bc(){this.$get=["$window",function(b){return u(b.document)}]}function Cc(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function Dc(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(c){return c?(a=c,this):b};this.$get=["$parse",function(c){var d=b.length,e=a.length;return function(g,h){for(var f,i,j=0,k=[],l=g.length,n=!1,r=[];j<l;)(f=g.indexOf(b,j))!=-1&&(i=g.indexOf(a,f+d))!=-1?(j!=f&&k.push(g.substring(j,
f)),k.push(j=c(n=g.substring(f+d,i))),j.exp=n,j=i+e,n=!0):(j!=l&&k.push(g.substring(j)),j=l);if(!(l=k.length))k.push(""),l=1;if(!h||n)return r.length=l,j=function(a){for(var b=0,c=l,d;b<c;b++){if(typeof(d=k[b])=="function")d=d(a),d==null||d==p?d="":typeof d!="string"&&(d=aa(d));r[b]=d}return r.join("")},j.exp=g,j.parts=k,j}}]}function Eb(b){for(var b=b.split("/"),a=b.length;a--;)b[a]=Ya(b[a]);return b.join("/")}function Ga(b,a){var c=Fb.exec(b),c={protocol:c[1],host:c[3],port:I(c[5])||Gb[c[1]]||null,
path:c[6]||"/",search:c[8],hash:c[10]};if(a)a.$$protocol=c.protocol,a.$$host=c.host,a.$$port=c.port;return c}function ta(b,a,c){return b+"://"+a+(c==Gb[b]?"":":"+c)}function Ec(b,a,c){var d=Ga(b);return decodeURIComponent(d.path)!=a||v(d.hash)||d.hash.indexOf(c)!==0?b:ta(d.protocol,d.host,d.port)+a.substr(0,a.lastIndexOf("/"))+d.hash.substr(c.length)}function Fc(b,a,c){var d=Ga(b);if(decodeURIComponent(d.path)==a)return b;else{var e=d.search&&"?"+d.search||"",g=d.hash&&"#"+d.hash||"",h=a.substr(0,
a.lastIndexOf("/")),f=d.path.substr(h.length);if(d.path.indexOf(h)!==0)throw'Invalid url "'+b+'", missing path prefix "'+h+'" !';return ta(d.protocol,d.host,d.port)+a+"#"+c+f+e+g}}function eb(b,a){a=a||"";this.$$parse=function(b){var d=Ga(b,this);if(d.path.indexOf(a)!==0)throw'Invalid url "'+b+'", missing path prefix "'+a+'" !';this.$$path=decodeURIComponent(d.path.substr(a.length));this.$$search=Wa(d.search);this.$$hash=d.hash&&decodeURIComponent(d.hash)||"";this.$$compose()};this.$$compose=function(){var b=
nb(this.$$search),d=this.$$hash?"#"+Ya(this.$$hash):"";this.$$url=Eb(this.$$path)+(b?"?"+b:"")+d;this.$$absUrl=ta(this.$$protocol,this.$$host,this.$$port)+a+this.$$url};this.$$parse(b)}function fb(b,a){var c;this.$$parse=function(b){var e=Ga(b,this);if(e.hash&&e.hash.indexOf(a)!==0)throw'Invalid url "'+b+'", missing hash prefix "'+a+'" !';c=e.path+(e.search?"?"+e.search:"");e=Gc.exec((e.hash||"").substr(a.length));this.$$path=e[1]?(e[1].charAt(0)=="/"?"":"/")+decodeURIComponent(e[1]):"";this.$$search=
Wa(e[3]);this.$$hash=e[5]&&decodeURIComponent(e[5])||"";this.$$compose()};this.$$compose=function(){var b=nb(this.$$search),e=this.$$hash?"#"+Ya(this.$$hash):"";this.$$url=Eb(this.$$path)+(b?"?"+b:"")+e;this.$$absUrl=ta(this.$$protocol,this.$$host,this.$$port)+c+(this.$$url?"#"+a+this.$$url:"")};this.$$parse(b)}function Ha(b){return function(){return this[b]}}function Hb(b,a){return function(c){if(v(c))return this[b];this[b]=a(c);this.$$compose();return this}}function Hc(){var b="",a=!1;this.hashPrefix=
function(a){return s(a)?(b=a,this):b};this.html5Mode=function(b){return s(b)?(a=b,this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(c,d,e,g){function h(a){c.$broadcast("$locationChangeSuccess",f.absUrl(),a)}var f,i=d.baseHref()||"/",j=i.substr(0,i.lastIndexOf("/")),k=d.url(),l;f=a?e.history?new eb(Ec(k,i,b),j):new fb(Fc(k,i,b),b):new fb(k,b);l=ta(f.protocol(),f.host(),f.port())+j;g.bind("click",function(a){if(!a.ctrlKey&&!(a.metaKey||a.which==2)){for(var b=u(a.target);b.length&&
E(b[0].nodeName)!=="a";)b=b.parent();var d=b.prop("href");if(d&&!(b.attr("target")||d.indexOf(l)!==0))f.url(d.substr(l.length)),c.$apply(),a.preventDefault(),T.angular["ff-684208-preventDefault"]=!0}});f.absUrl()!=k&&d.url(f.absUrl(),!0);d.onUrlChange(function(a){f.absUrl()!=a&&(c.$evalAsync(function(){var b=f.absUrl();f.$$parse(a);h(b)}),c.$$phase||c.$digest())});var n=0;c.$watch(function(){var a=d.url();if(!n||a!=f.absUrl())n++,c.$evalAsync(function(){c.$broadcast("$locationChangeStart",f.absUrl(),
a).defaultPrevented?f.$$parse(a):(d.url(f.absUrl(),f.$$replace),f.$$replace=!1,h(a))});return n});return f}]}function Ic(){this.$get=["$window",function(b){function a(a){a instanceof w&&(a.stack?a=a.message&&a.stack.indexOf(a.message)===-1?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function c(c){var e=b.console||{},g=e[c]||e.log||A;return g.apply?function(){var b=[];m(arguments,function(c){b.push(a(c))});return g.apply(e,b)}:function(a,
b){g(a,b)}}return{log:c("log"),warn:c("warn"),info:c("info"),error:c("error")}}]}function Jc(b,a){function c(a){return a.indexOf(q)!=-1}function d(){return o+1<b.length?b.charAt(o+1):!1}function e(a){return"0"<=a&&a<="9"}function g(a){return a==" "||a=="\r"||a=="\t"||a=="\n"||a=="\u000b"||a=="\u00a0"}function h(a){return"a"<=a&&a<="z"||"A"<=a&&a<="Z"||"_"==a||a=="$"}function f(a){return a=="-"||a=="+"||e(a)}function i(a,c,d){d=d||o;throw w("Lexer Error: "+a+" at column"+(s(c)?"s "+c+"-"+o+" ["+b.substring(c,
d)+"]":" "+d)+" in expression ["+b+"].");}function j(){for(var a="",c=o;o<b.length;){var g=E(b.charAt(o));if(g=="."||e(g))a+=g;else{var j=d();if(g=="e"&&f(j))a+=g;else if(f(g)&&j&&e(j)&&a.charAt(a.length-1)=="e")a+=g;else if(f(g)&&(!j||!e(j))&&a.charAt(a.length-1)=="e")i("Invalid exponent");else break}o++}a*=1;n.push({index:c,text:a,json:!0,fn:function(){return a}})}function k(){for(var c="",d=o,f,j,i;o<b.length;){var k=b.charAt(o);if(k=="."||h(k)||e(k))k=="."&&(f=o),c+=k;else break;o++}if(f)for(j=
o;j<b.length;){k=b.charAt(j);if(k=="("){i=c.substr(f-d+1);c=c.substr(0,f-d);o=j;break}if(g(k))j++;else break}d={index:d,text:c};if(Ia.hasOwnProperty(c))d.fn=d.json=Ia[c];else{var l=Ib(c,a);d.fn=D(function(a,b){return l(a,b)},{assign:function(a,b){return Jb(a,c,b)}})}n.push(d);i&&(n.push({index:f,text:".",json:!1}),n.push({index:f+1,text:i,json:!1}))}function l(a){var c=o;o++;for(var d="",e=a,f=!1;o<b.length;){var g=b.charAt(o);e+=g;if(f)g=="u"?(g=b.substring(o+1,o+5),g.match(/[\da-f]{4}/i)||i("Invalid unicode escape [\\u"+
g+"]"),o+=4,d+=String.fromCharCode(parseInt(g,16))):(f=Kc[g],d+=f?f:g),f=!1;else if(g=="\\")f=!0;else if(g==a){o++;n.push({index:c,text:e,string:d,json:!0,fn:function(){return d}});return}else d+=g;o++}i("Unterminated quote",c)}for(var n=[],r,o=0,x=[],q,t=":";o<b.length;){q=b.charAt(o);if(c("\"'"))l(q);else if(e(q)||c(".")&&e(d()))j();else if(h(q)){if(k(),"{,".indexOf(t)!=-1&&x[0]=="{"&&(r=n[n.length-1]))r.json=r.text.indexOf(".")==-1}else if(c("(){}[].,;:"))n.push({index:o,text:q,json:":[,".indexOf(t)!=
-1&&c("{[")||c("}]:,")}),c("{[")&&x.unshift(q),c("}]")&&x.shift(),o++;else if(g(q)){o++;continue}else{var m=q+d(),z=Ia[q],y=Ia[m];y?(n.push({index:o,text:m,fn:y}),o+=2):z?(n.push({index:o,text:q,fn:z,json:"[,:".indexOf(t)!=-1&&c("+-")}),o+=1):i("Unexpected next character ",o,o+1)}t=q}return n}function Lc(b,a,c,d){function e(a,c){throw w("Syntax Error: Token '"+c.text+"' "+a+" at column "+(c.index+1)+" of the expression ["+b+"] starting at ["+b.substring(c.index)+"].");}function g(){if(N.length===
0)throw w("Unexpected end of expression: "+b);return N[0]}function h(a,b,c,d){if(N.length>0){var e=N[0],f=e.text;if(f==a||f==b||f==c||f==d||!a&&!b&&!c&&!d)return e}return!1}function f(b,c,d,f){return(b=h(b,c,d,f))?(a&&!b.json&&e("is not valid json",b),N.shift(),b):!1}function i(a){f(a)||e("is unexpected, expecting ["+a+"]",h())}function j(a,b){return function(c,d){return a(c,d,b)}}function k(a,b,c){return function(d,e){return b(d,e,a,c)}}function l(){for(var a=[];;)if(N.length>0&&!h("}",")",";","]")&&
a.push(v()),!f(";"))return a.length==1?a[0]:function(b,c){for(var d,e=0;e<a.length;e++){var f=a[e];f&&(d=f(b,c))}return d}}function n(){for(var a=f(),b=c(a.text),d=[];;)if(a=f(":"))d.push(F());else{var e=function(a,c,e){for(var e=[e],f=0;f<d.length;f++)e.push(d[f](a,c));return b.apply(a,e)};return function(){return e}}}function r(){for(var a=o(),b;;)if(b=f("||"))a=k(a,b.fn,o());else return a}function o(){var a=x(),b;if(b=f("&&"))a=k(a,b.fn,o());return a}function x(){var a=q(),b;if(b=f("==","!="))a=
k(a,b.fn,x());return a}function q(){var a;a=t();for(var b;b=f("+","-");)a=k(a,b.fn,t());if(b=f("<",">","<=",">="))a=k(a,b.fn,q());return a}function t(){for(var a=m(),b;b=f("*","/","%");)a=k(a,b.fn,m());return a}function m(){var a;return f("+")?z():(a=f("-"))?k(V,a.fn,m()):(a=f("!"))?j(a.fn,m()):z()}function z(){var a;if(f("("))a=v(),i(")");else if(f("["))a=y();else if(f("{"))a=L();else{var b=f();(a=b.fn)||e("not a primary expression",b)}for(var c;b=f("(","[",".");)b.text==="("?(a=u(a,c),c=null):b.text===
"["?(c=a,a=ca(a)):b.text==="."?(c=a,a=s(a)):e("IMPOSSIBLE");return a}function y(){var a=[];if(g().text!="]"){do a.push(F());while(f(","))}i("]");return function(b,c){for(var d=[],e=0;e<a.length;e++)d.push(a[e](b,c));return d}}function L(){var a=[];if(g().text!="}"){do{var b=f(),b=b.string||b.text;i(":");var c=F();a.push({key:b,value:c})}while(f(","))}i("}");return function(b,c){for(var d={},e=0;e<a.length;e++){var f=a[e],g=f.value(b,c);d[f.key]=g}return d}}var V=B(0),H,N=Jc(b,d),F=function(){var a=
r(),c,d;return(d=f("="))?(a.assign||e("implies assignment but ["+b.substring(0,d.index)+"] can not be assigned to",d),c=r(),function(b,d){return a.assign(b,c(b,d),d)}):a},u=function(a,b){var c=[];if(g().text!=")"){do c.push(F());while(f(","))}i(")");return function(d,e){for(var f=[],g=b?b(d,e):d,j=0;j<c.length;j++)f.push(c[j](d,e));j=a(d,e)||A;return j.apply?j.apply(g,f):j(f[0],f[1],f[2],f[3],f[4])}},s=function(a){var b=f().text,c=Ib(b,d);return D(function(b,d){return c(a(b,d),d)},{assign:function(c,
d,e){return Jb(a(c,e),b,d)}})},ca=function(a){var b=F();i("]");return D(function(c,d){var e=a(c,d),f=b(c,d),g;if(!e)return p;if((e=e[f])&&e.then){g=e;if(!("$$v"in e))g.$$v=p,g.then(function(a){g.$$v=a});e=e.$$v}return e},{assign:function(c,d,e){return a(c,e)[b(c,e)]=d}})},v=function(){for(var a=F(),b;;)if(b=f("|"))a=k(a,b.fn,n());else return a};a?(F=r,u=s=ca=v=function(){e("is not valid json",{text:b,index:0})},H=z()):H=l();N.length!==0&&e("is an unexpected token",N[0]);return H}function Jb(b,a,c){for(var a=
a.split("."),d=0;a.length>1;d++){var e=a.shift(),g=b[e];g||(g={},b[e]=g);b=g}return b[a.shift()]=c}function db(b,a,c){if(!a)return b;for(var a=a.split("."),d,e=b,g=a.length,h=0;h<g;h++)d=a[h],b&&(b=(e=b)[d]);return!c&&M(b)?Ua(e,b):b}function Kb(b,a,c,d,e){return function(g,h){var f=h&&h.hasOwnProperty(b)?h:g,i;if(f===null||f===p)return f;if((f=f[b])&&f.then){if(!("$$v"in f))i=f,i.$$v=p,i.then(function(a){i.$$v=a});f=f.$$v}if(!a||f===null||f===p)return f;if((f=f[a])&&f.then){if(!("$$v"in f))i=f,i.$$v=
p,i.then(function(a){i.$$v=a});f=f.$$v}if(!c||f===null||f===p)return f;if((f=f[c])&&f.then){if(!("$$v"in f))i=f,i.$$v=p,i.then(function(a){i.$$v=a});f=f.$$v}if(!d||f===null||f===p)return f;if((f=f[d])&&f.then){if(!("$$v"in f))i=f,i.$$v=p,i.then(function(a){i.$$v=a});f=f.$$v}if(!e||f===null||f===p)return f;if((f=f[e])&&f.then){if(!("$$v"in f))i=f,i.$$v=p,i.then(function(a){i.$$v=a});f=f.$$v}return f}}function Ib(b,a){if(gb.hasOwnProperty(b))return gb[b];var c=b.split("."),d=c.length,e;if(a)e=d<6?Kb(c[0],
c[1],c[2],c[3],c[4]):function(a,b){var e=0,g;do g=Kb(c[e++],c[e++],c[e++],c[e++],c[e++])(a,b),b=p,a=g;while(e<d);return g};else{var g="var l, fn, p;\n";m(c,function(a,b){g+="if(s === null || s === undefined) return s;\nl=s;\ns="+(b?"s":'((k&&k.hasOwnProperty("'+a+'"))?k:s)')+'["'+a+'"];\nif (s && s.then) {\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v=v;});\n}\n s=s.$$v\n}\n'});g+="return s;";e=Function("s","k",g);e.toString=function(){return g}}return gb[b]=e}function Mc(){var b=
{};this.$get=["$filter","$sniffer",function(a,c){return function(d){switch(typeof d){case "string":return b.hasOwnProperty(d)?b[d]:b[d]=Lc(d,!1,a,c.csp);case "function":return d;default:return A}}}]}function Nc(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return Oc(function(a){b.$evalAsync(a)},a)}]}function Oc(b,a){function c(a){return a}function d(a){return h(a)}var e=function(){var f=[],i,j;return j={resolve:function(a){if(f){var c=f;f=p;i=g(a);c.length&&b(function(){for(var a,b=
0,d=c.length;b<d;b++)a=c[b],i.then(a[0],a[1])})}},reject:function(a){j.resolve(h(a))},promise:{then:function(b,g){var j=e(),h=function(d){try{j.resolve((b||c)(d))}catch(e){a(e),j.reject(e)}},o=function(b){try{j.resolve((g||d)(b))}catch(c){a(c),j.reject(c)}};f?f.push([h,o]):i.then(h,o);return j.promise}}}},g=function(a){return a&&a.then?a:{then:function(c){var d=e();b(function(){d.resolve(c(a))});return d.promise}}},h=function(a){return{then:function(c,g){var h=e();b(function(){h.resolve((g||d)(a))});
return h.promise}}};return{defer:e,reject:h,when:function(f,i,j){var k=e(),l,n=function(b){try{return(i||c)(b)}catch(d){return a(d),h(d)}},r=function(b){try{return(j||d)(b)}catch(c){return a(c),h(c)}};b(function(){g(f).then(function(a){l||(l=!0,k.resolve(g(a).then(n,r)))},function(a){l||(l=!0,k.resolve(r(a)))})});return k.promise},all:function(a){var b=e(),c=a.length,d=[];c?m(a,function(a,e){g(a).then(function(a){e in d||(d[e]=a,--c||b.resolve(d))},function(a){e in d||b.reject(a)})}):b.resolve(d);
return b.promise}}}function Pc(){var b={};this.when=function(a,c){b[a]=D({reloadOnSearch:!0},c);if(a){var d=a[a.length-1]=="/"?a.substr(0,a.length-1):a+"/";b[d]={redirectTo:a}}return this};this.otherwise=function(a){this.when(null,a);return this};this.$get=["$rootScope","$location","$routeParams","$q","$injector","$http","$templateCache",function(a,c,d,e,g,h,f){function i(){var b=j(),i=r.current;if(b&&i&&b.$route===i.$route&&ea(b.pathParams,i.pathParams)&&!b.reloadOnSearch&&!n)i.params=b.params,U(i.params,
d),a.$broadcast("$routeUpdate",i);else if(b||i)n=!1,a.$broadcast("$routeChangeStart",b,i),(r.current=b)&&b.redirectTo&&(G(b.redirectTo)?c.path(k(b.redirectTo,b.params)).search(b.params).replace():c.url(b.redirectTo(b.pathParams,c.path(),c.search())).replace()),e.when(b).then(function(){if(b){var a=[],c=[],d;m(b.resolve||{},function(b,d){a.push(d);c.push(M(b)?g.invoke(b):g.get(b))});if(!s(d=b.template))if(s(d=b.templateUrl))d=h.get(d,{cache:f}).then(function(a){return a.data});s(d)&&(a.push("$template"),
c.push(d));return e.all(c).then(function(b){var c={};m(b,function(b,d){c[a[d]]=b});return c})}}).then(function(c){if(b==r.current){if(b)b.locals=c,U(b.params,d);a.$broadcast("$routeChangeSuccess",b,i)}},function(c){b==r.current&&a.$broadcast("$routeChangeError",b,i,c)})}function j(){var a,d;m(b,function(b,e){if(!d&&(a=l(c.path(),e)))d=Qa(b,{params:D({},c.search(),a),pathParams:a}),d.$route=b});return d||b[null]&&Qa(b[null],{params:{},pathParams:{}})}function k(a,b){var c=[];m((a||"").split(":"),function(a,
d){if(d==0)c.push(a);else{var e=a.match(/(\w+)(.*)/),f=e[1];c.push(b[f]);c.push(e[2]||"");delete b[f]}});return c.join("")}var l=function(a,b){var c="^"+b.replace(/([\.\\\(\)\^\$])/g,"\\$1")+"$",d=[],e={};m(b.split(/\W/),function(a){if(a){var b=RegExp(":"+a+"([\\W])");c.match(b)&&(c=c.replace(b,"([^\\/]*)$1"),d.push(a))}});var f=a.match(RegExp(c));f&&m(d,function(a,b){e[a]=f[b+1]});return f?e:null},n=!1,r={routes:b,reload:function(){n=!0;a.$evalAsync(i)}};a.$on("$locationChangeSuccess",i);return r}]}
function Qc(){this.$get=B({})}function Rc(){var b=10;this.digestTtl=function(a){arguments.length&&(b=a);return b};this.$get=["$injector","$exceptionHandler","$parse",function(a,c,d){function e(){this.$id=va();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this["this"]=this.$root=this;this.$$asyncQueue=[];this.$$listeners={}}function g(a){if(i.$$phase)throw w(i.$$phase+" already in progress");i.$$phase=a}function h(a,b){var c=
d(a);pa(c,b);return c}function f(){}e.prototype={$new:function(a){if(M(a))throw w("API-CHANGE: Use $controller to instantiate controllers.");a?(a=new e,a.$root=this.$root):(a=function(){},a.prototype=this,a=new a,a.$id=va());a["this"]=a;a.$$listeners={};a.$parent=this;a.$$asyncQueue=[];a.$$watchers=a.$$nextSibling=a.$$childHead=a.$$childTail=null;a.$$prevSibling=this.$$childTail;this.$$childHead?this.$$childTail=this.$$childTail.$$nextSibling=a:this.$$childHead=this.$$childTail=a;return a},$watch:function(a,
b,c){var d=h(a,"watch"),e=this.$$watchers,g={fn:b,last:f,get:d,exp:a,eq:!!c};if(!M(b)){var i=h(b||A,"listener");g.fn=function(a,b,c){i(c)}}if(!e)e=this.$$watchers=[];e.unshift(g);return function(){xa(e,g)}},$digest:function(){var a,d,e,h,r,o,m,q=b,t,p=[],z,y;g("$digest");do{m=!1;t=this;do{for(r=t.$$asyncQueue;r.length;)try{t.$eval(r.shift())}catch(L){c(L)}if(h=t.$$watchers)for(o=h.length;o--;)try{if(a=h[o],(d=a.get(t))!==(e=a.last)&&!(a.eq?ea(d,e):typeof d=="number"&&typeof e=="number"&&isNaN(d)&&
isNaN(e)))m=!0,a.last=a.eq?U(d):d,a.fn(d,e===f?d:e,t),q<5&&(z=4-q,p[z]||(p[z]=[]),y=M(a.exp)?"fn: "+(a.exp.name||a.exp.toString()):a.exp,y+="; newVal: "+aa(d)+"; oldVal: "+aa(e),p[z].push(y))}catch(V){c(V)}if(!(h=t.$$childHead||t!==this&&t.$$nextSibling))for(;t!==this&&!(h=t.$$nextSibling);)t=t.$parent}while(t=h);if(m&&!q--)throw i.$$phase=null,w(b+" $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: "+aa(p));}while(m||r.length);i.$$phase=null},$destroy:function(){if(i!=
this){var a=this.$parent;this.$broadcast("$destroy");if(a.$$childHead==this)a.$$childHead=this.$$nextSibling;if(a.$$childTail==this)a.$$childTail=this.$$prevSibling;if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling}},$eval:function(a,b){return d(a)(this,b)},$evalAsync:function(a){this.$$asyncQueue.push(a)},$apply:function(a){try{return g("$apply"),this.$eval(a)}catch(b){c(b)}finally{i.$$phase=null;try{i.$digest()}catch(d){throw c(d),
d;}}},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);return function(){xa(c,b)}},$emit:function(a,b){var d=[],e,f=this,g=!1,i={name:a,targetScope:f,stopPropagation:function(){g=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},h=[i].concat(ga.call(arguments,1)),m,p;do{e=f.$$listeners[a]||d;i.currentScope=f;m=0;for(p=e.length;m<p;m++)try{if(e[m].apply(null,h),g)return i}catch(z){c(z)}f=f.$parent}while(f);return i},$broadcast:function(a,b){var d=
this,e=this,f={name:a,targetScope:this,preventDefault:function(){f.defaultPrevented=!0},defaultPrevented:!1},g=[f].concat(ga.call(arguments,1));do if(d=e,f.currentScope=d,m(d.$$listeners[a],function(a){try{a.apply(null,g)}catch(b){c(b)}}),!(e=d.$$childHead||d!==this&&d.$$nextSibling))for(;d!==this&&!(e=d.$$nextSibling);)d=d.$parent;while(d=e);return f}};var i=new e;return i}]}function Sc(){this.$get=["$window",function(b){var a={},c=I((/android (\d+)/.exec(E(b.navigator.userAgent))||[])[1]);return{history:!(!b.history||
!b.history.pushState||c<4),hashchange:"onhashchange"in b&&(!b.document.documentMode||b.document.documentMode>7),hasEvent:function(c){if(c=="input"&&Y==9)return!1;if(v(a[c])){var e=b.document.createElement("div");a[c]="on"+c in e}return a[c]},csp:!1}}]}function Tc(){this.$get=B(T)}function Lb(b){var a={},c,d,e;if(!b)return a;m(b.split("\n"),function(b){e=b.indexOf(":");c=E(Q(b.substr(0,e)));d=Q(b.substr(e+1));c&&(a[c]?a[c]+=", "+d:a[c]=d)});return a}function Mb(b){var a=J(b)?b:p;return function(c){a||
(a=Lb(b));return c?a[E(c)]||null:a}}function Nb(b,a,c){if(M(c))return c(b,a);m(c,function(c){b=c(b,a)});return b}function Uc(){var b=/^\s*(\[|\{[^\{])/,a=/[\}\]]\s*$/,c=/^\)\]\}',?\n/,d=this.defaults={transformResponse:[function(d){G(d)&&(d=d.replace(c,""),b.test(d)&&a.test(d)&&(d=mb(d,!0)));return d}],transformRequest:[function(a){return J(a)&&Ra.apply(a)!=="[object File]"?aa(a):a}],headers:{common:{Accept:"application/json, text/plain, */*","X-Requested-With":"XMLHttpRequest"},post:{"Content-Type":"application/json;charset=utf-8"},
put:{"Content-Type":"application/json;charset=utf-8"}}},e=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(a,b,c,i,j,k){function l(a){function c(a){var b=D({},a,{data:Nb(a.data,a.headers,f)});return 200<=a.status&&a.status<300?b:j.reject(b)}a.method=ka(a.method);var e=a.transformRequest||d.transformRequest,f=a.transformResponse||d.transformResponse,g=d.headers,g=D({"X-XSRF-TOKEN":b.cookies()["XSRF-TOKEN"]},g.common,g[E(a.method)],
a.headers),e=Nb(a.data,Mb(g),e),i;v(a.data)&&delete g["Content-Type"];i=n(a,e,g);i=i.then(c,c);m(x,function(a){i=a(i)});i.success=function(b){i.then(function(c){b(c.data,c.status,c.headers,a)});return i};i.error=function(b){i.then(null,function(c){b(c.data,c.status,c.headers,a)});return i};return i}function n(b,c,d){function e(a,b,c){m&&(200<=a&&a<300?m.put(x,[a,b,Lb(c)]):m.remove(x));f(b,a,c);i.$apply()}function f(a,c,d){c=Math.max(c,0);(200<=c&&c<300?n.resolve:n.reject)({data:a,status:c,headers:Mb(d),
config:b})}function h(){var a=Ta(l.pendingRequests,b);a!==-1&&l.pendingRequests.splice(a,1)}var n=j.defer(),k=n.promise,m,p,x=r(b.url,b.params);l.pendingRequests.push(b);k.then(h,h);b.cache&&b.method=="GET"&&(m=J(b.cache)?b.cache:o);if(m)if(p=m.get(x))if(p.then)return p.then(h,h),p;else K(p)?f(p[1],p[0],U(p[2])):f(p,200,{});else m.put(x,k);p||a(b.method,x,c,e,d,b.timeout,b.withCredentials);return k}function r(a,b){if(!b)return a;var c=[];cc(b,function(a,b){a==null||a==p||(J(a)&&(a=aa(a)),c.push(encodeURIComponent(b)+
"="+encodeURIComponent(a)))});return a+(a.indexOf("?")==-1?"?":"&")+c.join("&")}var o=c("$http"),x=[];m(e,function(a){x.push(G(a)?k.get(a):k.invoke(a))});l.pendingRequests=[];(function(a){m(arguments,function(a){l[a]=function(b,c){return l(D(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){m(arguments,function(a){l[a]=function(b,c,d){return l(D(d||{},{method:a,url:b,data:c}))}})})("post","put");l.defaults=d;return l}]}function Vc(){this.$get=["$browser","$window","$document",
function(b,a,c){return Wc(b,Xc,b.defer,a.angular.callbacks,c[0],a.location.protocol.replace(":",""))}]}function Wc(b,a,c,d,e,g){function h(a,b){var c=e.createElement("script"),d=function(){e.body.removeChild(c);b&&b()};c.type="text/javascript";c.src=a;Y?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=d;e.body.appendChild(c)}return function(e,i,j,k,l,n,r){function o(a,c,d,e){c=(i.match(Fb)||["",g])[1]=="file"?d?200:404:c;a(c==1223?204:c,d,e);b.$$completeOutstandingRequest(A)}
b.$$incOutstandingRequestCount();i=i||b.url();if(E(e)=="jsonp"){var p="_"+(d.counter++).toString(36);d[p]=function(a){d[p].data=a};h(i.replace("JSON_CALLBACK","angular.callbacks."+p),function(){d[p].data?o(k,200,d[p].data):o(k,-2);delete d[p]})}else{var q=new a;q.open(e,i,!0);m(l,function(a,b){a&&q.setRequestHeader(b,a)});var t;q.onreadystatechange=function(){q.readyState==4&&o(k,t||q.status,q.responseText,q.getAllResponseHeaders())};if(r)q.withCredentials=!0;q.send(j||"");n>0&&c(function(){t=-1;
q.abort()},n)}}}function Yc(){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:"\u00a4",posSuf:"",negPre:"(\u00a4",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"},pluralCat:function(b){return b===1?"one":"other"}}}}function Zc(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(b,a,c,d){function e(e,f,i){var j=c.defer(),
k=j.promise,l=s(i)&&!i,f=a.defer(function(){try{j.resolve(e())}catch(a){j.reject(a),d(a)}l||b.$apply()},f),i=function(){delete g[k.$$timeoutId]};k.$$timeoutId=f;g[f]=j;k.then(i,i);return k}var g={};e.cancel=function(b){return b&&b.$$timeoutId in g?(g[b.$$timeoutId].reject("canceled"),a.defer.cancel(b.$$timeoutId)):!1};return e}]}function Ob(b){function a(a,e){return b.factory(a+c,e)}var c="Filter";this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+c)}}];a("currency",
Pb);a("date",Qb);a("filter",$c);a("json",ad);a("limitTo",bd);a("lowercase",cd);a("number",Rb);a("orderBy",Sb);a("uppercase",dd)}function $c(){return function(b,a){if(!(b instanceof Array))return b;var c=[];c.check=function(a){for(var b=0;b<c.length;b++)if(!c[b](a))return!1;return!0};var d=function(a,b){if(b.charAt(0)==="!")return!d(a,b.substr(1));switch(typeof a){case "boolean":case "number":case "string":return(""+a).toLowerCase().indexOf(b)>-1;case "object":for(var c in a)if(c.charAt(0)!=="$"&&
d(a[c],b))return!0;return!1;case "array":for(c=0;c<a.length;c++)if(d(a[c],b))return!0;return!1;default:return!1}};switch(typeof a){case "boolean":case "number":case "string":a={$:a};case "object":for(var e in a)e=="$"?function(){var b=(""+a[e]).toLowerCase();b&&c.push(function(a){return d(a,b)})}():function(){var b=e,f=(""+a[e]).toLowerCase();f&&c.push(function(a){return d(db(a,b),f)})}();break;case "function":c.push(a);break;default:return b}for(var g=[],h=0;h<b.length;h++){var f=b[h];c.check(f)&&
g.push(f)}return g}}function Pb(b){var a=b.NUMBER_FORMATS;return function(b,d){if(v(d))d=a.CURRENCY_SYM;return Tb(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,2).replace(/\u00A4/g,d)}}function Rb(b){var a=b.NUMBER_FORMATS;return function(b,d){return Tb(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function Tb(b,a,c,d,e){if(isNaN(b)||!isFinite(b))return"";var g=b<0,b=Math.abs(b),h=b+"",f="",i=[];if(h.indexOf("e")!==-1)f=h;else{h=(h.split(Ub)[1]||"").length;v(e)&&(e=Math.min(Math.max(a.minFrac,h),a.maxFrac));
var h=Math.pow(10,e),b=Math.round(b*h)/h,b=(""+b).split(Ub),h=b[0],b=b[1]||"",j=0,k=a.lgSize,l=a.gSize;if(h.length>=k+l)for(var j=h.length-k,n=0;n<j;n++)(j-n)%l===0&&n!==0&&(f+=c),f+=h.charAt(n);for(n=j;n<h.length;n++)(h.length-n)%k===0&&n!==0&&(f+=c),f+=h.charAt(n);for(;b.length<e;)b+="0";e&&(f+=d+b.substr(0,e))}i.push(g?a.negPre:a.posPre);i.push(f);i.push(g?a.negSuf:a.posSuf);return i.join("")}function hb(b,a,c){var d="";b<0&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));
return d+b}function O(b,a,c,d){return function(e){e=e["get"+b]();if(c>0||e>-c)e+=c;e===0&&c==-12&&(e=12);return hb(e,a,d)}}function Ja(b,a){return function(c,d){var e=c["get"+b](),g=ka(a?"SHORT"+b:b);return d[g][e]}}function Qb(b){function a(a){var b;if(b=a.match(c)){var a=new Date(0),g=0,h=0;b[9]&&(g=I(b[9]+b[10]),h=I(b[9]+b[11]));a.setUTCFullYear(I(b[1]),I(b[2])-1,I(b[3]));a.setUTCHours(I(b[4]||0)-g,I(b[5]||0)-h,I(b[6]||0),I(b[7]||0))}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d{3}))?)?)?(Z|([+-])(\d\d):?(\d\d)))?$/;
return function(c,e){var g="",h=[],f,i,e=e||"mediumDate",e=b.DATETIME_FORMATS[e]||e;G(c)&&(c=ed.test(c)?I(c):a(c));ua(c)&&(c=new Date(c));if(!la(c))return c;for(;e;)(i=fd.exec(e))?(h=h.concat(ga.call(i,1)),e=h.pop()):(h.push(e),e=null);m(h,function(a){f=gd[a];g+=f?f(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function ad(){return function(b){return aa(b,!0)}}function bd(){return function(b,a){if(!(b instanceof Array))return b;var a=I(a),c=[],d,e;if(!b||!(b instanceof
Array))return c;a>b.length?a=b.length:a<-b.length&&(a=-b.length);a>0?(d=0,e=a):(d=b.length+a,e=b.length);for(;d<e;d++)c.push(b[d]);return c}}function Sb(b){return function(a,c,d){function e(a,b){return Va(b)?function(b,c){return a(c,b)}:a}if(!(a instanceof Array))return a;if(!c)return a;for(var c=K(c)?c:[c],c=Sa(c,function(a){var c=!1,d=a||wa;if(G(a)){if(a.charAt(0)=="+"||a.charAt(0)=="-")c=a.charAt(0)=="-",a=a.substring(1);d=b(a)}return e(function(a,b){var c;c=d(a);var e=d(b),f=typeof c,g=typeof e;
f==g?(f=="string"&&(c=c.toLowerCase()),f=="string"&&(e=e.toLowerCase()),c=c===e?0:c<e?-1:1):c=f<g?-1:1;return c},c)}),g=[],h=0;h<a.length;h++)g.push(a[h]);return g.sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(e!==0)return e}return 0},d))}}function R(b){M(b)&&(b={link:b});b.restrict=b.restrict||"AC";return B(b)}function Vb(b,a){function c(a,c){c=c?"-"+Za(c,"-"):"";b.removeClass((a?Ka:La)+c).addClass((a?La:Ka)+c)}var d=this,e=b.parent().controller("form")||Ma,g=0,h=d.$error={};
d.$name=a.name;d.$dirty=!1;d.$pristine=!0;d.$valid=!0;d.$invalid=!1;e.$addControl(d);b.addClass(Na);c(!0);d.$addControl=function(a){a.$name&&!d.hasOwnProperty(a.$name)&&(d[a.$name]=a)};d.$removeControl=function(a){a.$name&&d[a.$name]===a&&delete d[a.$name];m(h,function(b,c){d.$setValidity(c,!0,a)})};d.$setValidity=function(a,b,j){var k=h[a];if(b){if(k&&(xa(k,j),!k.length)){g--;if(!g)c(b),d.$valid=!0,d.$invalid=!1;h[a]=!1;c(!0,a);e.$setValidity(a,!0,d)}}else{g||c(b);if(k){if(Ta(k,j)!=-1)return}else h[a]=
k=[],g++,c(!1,a),e.$setValidity(a,!1,d);k.push(j);d.$valid=!1;d.$invalid=!0}};d.$setDirty=function(){b.removeClass(Na).addClass(Wb);d.$dirty=!0;d.$pristine=!1}}function S(b){return v(b)||b===""||b===null||b!==b}function Oa(b,a,c,d,e,g){var h=function(){var c=Q(a.val());d.$viewValue!==c&&b.$apply(function(){d.$setViewValue(c)})};if(e.hasEvent("input"))a.bind("input",h);else{var f;a.bind("keydown",function(a){a=a.keyCode;a===91||15<a&&a<19||37<=a&&a<=40||f||(f=g.defer(function(){h();f=null}))});a.bind("change",
h)}d.$render=function(){a.val(S(d.$viewValue)?"":d.$viewValue)};var i=c.ngPattern,j=function(a,b){return S(b)||a.test(b)?(d.$setValidity("pattern",!0),b):(d.$setValidity("pattern",!1),p)};i&&(i.match(/^\/(.*)\/$/)?(i=RegExp(i.substr(1,i.length-2)),e=function(a){return j(i,a)}):e=function(a){var c=b.$eval(i);if(!c||!c.test)throw new w("Expected "+i+" to be a RegExp but was "+c);return j(c,a)},d.$formatters.push(e),d.$parsers.push(e));if(c.ngMinlength){var k=I(c.ngMinlength),e=function(a){return!S(a)&&
a.length<k?(d.$setValidity("minlength",!1),p):(d.$setValidity("minlength",!0),a)};d.$parsers.push(e);d.$formatters.push(e)}if(c.ngMaxlength){var l=I(c.ngMaxlength),c=function(a){return!S(a)&&a.length>l?(d.$setValidity("maxlength",!1),p):(d.$setValidity("maxlength",!0),a)};d.$parsers.push(c);d.$formatters.push(c)}}function ib(b,a){b="ngClass"+b;return R(function(c,d,e){c.$watch(e[b],function(b,e){if(a===!0||c.$index%2===a)e&&b!==e&&(J(e)&&!K(e)&&(e=Sa(e,function(a,b){if(a)return b})),d.removeClass(K(e)?
e.join(" "):e)),J(b)&&!K(b)&&(b=Sa(b,function(a,b){if(a)return b})),b&&d.addClass(K(b)?b.join(" "):b)},!0)})}var E=function(b){return G(b)?b.toLowerCase():b},ka=function(b){return G(b)?b.toUpperCase():b},w=T.Error,Y=I((/msie (\d+)/.exec(E(navigator.userAgent))||[])[1]),u,ha,ga=[].slice,Pa=[].push,Ra=Object.prototype.toString,Xb=T.angular||(T.angular={}),ra,Cb,X=["0","0","0"];A.$inject=[];wa.$inject=[];Cb=Y<9?function(b){b=b.nodeName?b:b[0];return b.scopeName&&b.scopeName!="HTML"?ka(b.scopeName+":"+
b.nodeName):b.nodeName}:function(b){return b.nodeName?b.nodeName:b[0].nodeName};var ic=/[A-Z]/g,hd={full:"1.0.0rc11",major:1,minor:0,dot:0,codeName:"promise-resolution"},za=P.cache={},ya=P.expando="ng-"+(new Date).getTime(),mc=1,id=T.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},tb=T.document.removeEventListener?function(b,a,c){b.removeEventListener(a,c,!1)}:function(b,a,c){b.detachEvent("on"+a,c)},kc=/([\:\-\_]+(.))/g,lc=/^moz([A-Z])/,
sa=P.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;this.bind("DOMContentLoaded",a);P(T).bind("load",a)},toString:function(){var b=[];m(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return b>=0?u(this[b]):u(this[this.length+b])},length:0,push:Pa,sort:[].sort,splice:[].splice},Ca={};m("multiple,selected,checked,disabled,readOnly,required".split(","),function(b){Ca[E(b)]=b});var zb={};m("input,select,option,textarea,button,form".split(","),function(b){zb[ka(b)]=
!0});m({data:ub,inheritedData:Ba,scope:function(b){return Ba(b,"$scope")},controller:xb,injector:function(b){return Ba(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:Aa,css:function(b,a,c){a=qb(a);if(s(c))b.style[a]=c;else{var d;Y<=8&&(d=b.currentStyle&&b.currentStyle[a],d===""&&(d="auto"));d=d||b.style[a];Y<=8&&(d=d===""?p:d);return d}},attr:function(b,a,c){var d=E(a);if(Ca[d])if(s(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||
A).specified?d:p;else if(s(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),b===null?p:b},prop:function(b,a,c){if(s(c))b[a]=c;else return b[a]},text:D(Y<9?function(b,a){if(b.nodeType==1){if(v(a))return b.innerText;b.innerText=a}else{if(v(a))return b.nodeValue;b.nodeValue=a}}:function(b,a){if(v(a))return b.textContent;b.textContent=a},{$dv:""}),val:function(b,a){if(v(a))return b.value;b.value=a},html:function(b,a){if(v(a))return b.innerHTML;for(var c=0,d=b.childNodes;c<d.length;c++)qa(d[c]);
b.innerHTML=a}},function(b,a){P.prototype[a]=function(a,d){var e,g;if((b.length==2&&b!==Aa&&b!==xb?a:d)===p)if(J(a)){for(e=0;e<this.length;e++)if(b===ub)b(this[e],a);else for(g in a)b(this[e],g,a[g]);return this}else{if(this.length)return b(this[0],a,d)}else{for(e=0;e<this.length;e++)b(this[e],a,d);return this}return b.$dv}});m({removeData:rb,dealoc:qa,bind:function a(c,d,e){var g=ba(c,"events"),h=ba(c,"handle");g||ba(c,"events",g={});h||ba(c,"handle",h=nc(c,g));m(d.split(" "),function(d){var i=g[d];
if(!i){if(d=="mouseenter"||d=="mouseleave"){var j=0;g.mouseenter=[];g.mouseleave=[];a(c,"mouseover",function(a){j++;j==1&&h(a,"mouseenter")});a(c,"mouseout",function(a){j--;j==0&&h(a,"mouseleave")})}else id(c,d,h),g[d]=[];i=g[d]}i.push(e)})},unbind:sb,replaceWith:function(a,c){var d,e=a.parentNode;qa(a);m(new P(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];m(a.childNodes,function(a){a.nodeName!="#text"&&c.push(a)});return c},contents:function(a){return a.childNodes},
append:function(a,c){m(new P(c),function(c){a.nodeType===1&&a.appendChild(c)})},prepend:function(a,c){if(a.nodeType===1){var d=a.firstChild;m(new P(c),function(c){d?a.insertBefore(c,d):(a.appendChild(c),d=c)})}},wrap:function(a,c){var c=u(c)[0],d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:function(a){qa(a);var c=a.parentNode;c&&c.removeChild(a)},after:function(a,c){var d=a,e=a.parentNode;m(new P(c),function(a){e.insertBefore(a,d.nextSibling);d=a})},addClass:wb,removeClass:vb,toggleClass:function(a,
c,d){v(d)&&(d=!Aa(a,c));(d?wb:vb)(a,c)},parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},next:function(a){return a.nextSibling},find:function(a,c){return a.getElementsByTagName(c)},clone:bb},function(a,c){P.prototype[c]=function(c,e){for(var g,h=0;h<this.length;h++)g==p?(g=a(this[h],c,e),g!==p&&(g=u(g))):ab(g,a(this[h],c,e));return g==p?this:g}});Da.prototype={put:function(a,c){this[ia(a)]=c},get:function(a){return this[ia(a)]},remove:function(a){var c=this[a=ia(a)];delete this[a];
return c}};cb.prototype={push:function(a,c){var d=this[a=ia(a)];d?d.push(c):this[a]=[c]},shift:function(a){var c=this[a=ia(a)];if(c)return c.length==1?(delete this[a],c[0]):c.shift()}};var pc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,qc=/,/,rc=/^\s*(_?)(.+?)\1\s*$/,oc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Db="Non-assignable model expression: ";Bb.$inject=["$provide"];var yc=/^(x[\:\-_]|data[\:\-_])/i,Fb=/^([^:]+):\/\/(\w+:{0,1}\w*@)?([\w\.-]*)(:([0-9]+))?(\/[^\?#]*)?(\?([^#]*))?(#(.*))?$/,Yb=/^([^\?#]*)?(\?([^#]*))?(#(.*))?$/,
Gc=Yb,Gb={http:80,https:443,ftp:21};eb.prototype={$$replace:!1,absUrl:Ha("$$absUrl"),url:function(a,c){if(v(a))return this.$$url;var d=Yb.exec(a);d[1]&&this.path(decodeURIComponent(d[1]));if(d[2]||d[1])this.search(d[3]||"");this.hash(d[5]||"",c);return this},protocol:Ha("$$protocol"),host:Ha("$$host"),port:Ha("$$port"),path:Hb("$$path",function(a){return a.charAt(0)=="/"?a:"/"+a}),search:function(a,c){if(v(a))return this.$$search;s(c)?c===null?delete this.$$search[a]:this.$$search[a]=c:this.$$search=
G(a)?Wa(a):a;this.$$compose();return this},hash:Hb("$$hash",wa),replace:function(){this.$$replace=!0;return this}};fb.prototype=Qa(eb.prototype);var Ia={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:A,"+":function(a,c,d,e){d=d(a,c);e=e(a,c);return(s(d)?d:0)+(s(e)?e:0)},"-":function(a,c,d,e){d=d(a,c);e=e(a,c);return(s(d)?d:0)-(s(e)?e:0)},"*":function(a,c,d,e){return d(a,c)*e(a,c)},"/":function(a,c,d,e){return d(a,c)/e(a,c)},"%":function(a,c,d,e){return d(a,
c)%e(a,c)},"^":function(a,c,d,e){return d(a,c)^e(a,c)},"=":A,"==":function(a,c,d,e){return d(a,c)==e(a,c)},"!=":function(a,c,d,e){return d(a,c)!=e(a,c)},"<":function(a,c,d,e){return d(a,c)<e(a,c)},">":function(a,c,d,e){return d(a,c)>e(a,c)},"<=":function(a,c,d,e){return d(a,c)<=e(a,c)},">=":function(a,c,d,e){return d(a,c)>=e(a,c)},"&&":function(a,c,d,e){return d(a,c)&&e(a,c)},"||":function(a,c,d,e){return d(a,c)||e(a,c)},"&":function(a,c,d,e){return d(a,c)&e(a,c)},"|":function(a,c,d,e){return e(a,
c)(a,c,d(a,c))},"!":function(a,c,d){return!d(a,c)}},Kc={n:"\n",f:"\u000c",r:"\r",t:"\t",v:"\u000b","'":"'",'"':'"'},gb={},Xc=T.XMLHttpRequest||function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(c){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(d){}throw new w("This browser does not support XMLHttpRequest.");};Ob.$inject=["$provide"];Pb.$inject=["$locale"];Rb.$inject=["$locale"];var Ub=".",gd={yyyy:O("FullYear",4),
yy:O("FullYear",2,0,!0),y:O("FullYear",1),MMMM:Ja("Month"),MMM:Ja("Month",!0),MM:O("Month",2,1),M:O("Month",1,1),dd:O("Date",2),d:O("Date",1),HH:O("Hours",2),H:O("Hours",1),hh:O("Hours",2,-12),h:O("Hours",1,-12),mm:O("Minutes",2),m:O("Minutes",1),ss:O("Seconds",2),s:O("Seconds",1),EEEE:Ja("Day"),EEE:Ja("Day",!0),a:function(a,c){return a.getHours()<12?c.AMPMS[0]:c.AMPMS[1]},Z:function(a){a=a.getTimezoneOffset();return hb(a/60,2)+hb(Math.abs(a%60),2)}},fd=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,
ed=/^\d+$/;Qb.$inject=["$locale"];var cd=B(E),dd=B(ka);Sb.$inject=["$parse"];var jd=B({restrict:"E",compile:function(a,c){c.href||c.$set("href","");return function(a,c){c.bind("click",function(a){c.attr("href")||a.preventDefault()})}}}),jb={};m(Ca,function(a,c){var d=da("ng-"+c);jb[d]=function(){return{priority:100,compile:function(){return function(a,g,h){a.$watch(h[d],function(a){h.$set(c,!!a)})}}}}});m(["src","href"],function(a){var c=da("ng-"+a);jb[c]=function(){return{priority:99,link:function(d,
e,g){g.$observe(c,function(c){g.$set(a,c);Y&&e.prop(a,c)})}}}});var Ma={$addControl:A,$removeControl:A,$setValidity:A,$setDirty:A};Vb.$inject=["$element","$attrs","$scope"];var Pa={name:"form",restrict:"E",controller:Vb,compile:function(){return{pre:function(a,c,d,e){d.action||c.bind("submit",function(a){a.preventDefault()});var g=c.parent().controller("form"),h=d.name||d.ngForm;h&&(a[h]=e);g&&c.bind("$destroy",function(){g.$removeControl(e);h&&(a[h]=p);D(e,Ma)})}}}},kd=B(Pa),ld=B(D(U(Pa),{restrict:"EAC"})),
md=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,nd=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/,od=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Zb={text:Oa,number:function(a,c,d,e,g,h){Oa(a,c,d,e,g,h);e.$parsers.push(function(a){var c=S(a);return c||od.test(a)?(e.$setValidity("number",!0),a===""?null:c?a:parseFloat(a)):(e.$setValidity("number",!1),p)});e.$formatters.push(function(a){return S(a)?"":""+a});if(d.min){var f=parseFloat(d.min),a=function(a){return!S(a)&&
a<f?(e.$setValidity("min",!1),p):(e.$setValidity("min",!0),a)};e.$parsers.push(a);e.$formatters.push(a)}if(d.max){var i=parseFloat(d.max),d=function(a){return!S(a)&&a>i?(e.$setValidity("max",!1),p):(e.$setValidity("max",!0),a)};e.$parsers.push(d);e.$formatters.push(d)}e.$formatters.push(function(a){return S(a)||ua(a)?(e.$setValidity("number",!0),a):(e.$setValidity("number",!1),p)})},url:function(a,c,d,e,g,h){Oa(a,c,d,e,g,h);a=function(a){return S(a)||md.test(a)?(e.$setValidity("url",!0),a):(e.$setValidity("url",
!1),p)};e.$formatters.push(a);e.$parsers.push(a)},email:function(a,c,d,e,g,h){Oa(a,c,d,e,g,h);a=function(a){return S(a)||nd.test(a)?(e.$setValidity("email",!0),a):(e.$setValidity("email",!1),p)};e.$formatters.push(a);e.$parsers.push(a)},radio:function(a,c,d,e){v(d.name)&&c.attr("name",va());c.bind("click",function(){c[0].checked&&a.$apply(function(){e.$setViewValue(d.value)})});e.$render=function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e){var g=
d.ngTrueValue,h=d.ngFalseValue;G(g)||(g=!0);G(h)||(h=!1);c.bind("click",function(){a.$apply(function(){e.$setViewValue(c[0].checked)})});e.$render=function(){c[0].checked=e.$viewValue};e.$formatters.push(function(a){return a===g});e.$parsers.push(function(a){return a?g:h})},hidden:A,button:A,submit:A,reset:A},$b=["$browser","$sniffer",function(a,c){return{restrict:"E",require:"?ngModel",link:function(d,e,g,h){h&&(Zb[E(g.type)]||Zb.text)(d,e,g,h,c,a)}}}],La="ng-valid",Ka="ng-invalid",Na="ng-pristine",
Wb="ng-dirty",pd=["$scope","$exceptionHandler","$attrs","$element","$parse",function(a,c,d,e,g){function h(a,c){c=c?"-"+Za(c,"-"):"";e.removeClass((a?Ka:La)+c).addClass((a?La:Ka)+c)}this.$modelValue=this.$viewValue=Number.NaN;this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$name=d.name;var g=g(d.ngModel),f=g.assign;if(!f)throw w(Db+d.ngModel+" ("+na(e)+")");this.$render=A;var i=e.inheritedData("$formController")||
Ma,j=0,k=this.$error={};e.addClass(Na);h(!0);this.$setValidity=function(a,c){if(k[a]!==!c){if(c){if(k[a]&&j--,!j)h(!0),this.$valid=!0,this.$invalid=!1}else h(!1),this.$invalid=!0,this.$valid=!1,j++;k[a]=!c;h(c,a);i.$setValidity(a,c,this)}};this.$setViewValue=function(d){this.$viewValue=d;if(this.$pristine)this.$dirty=!0,this.$pristine=!1,e.removeClass(Na).addClass(Wb),i.$setDirty();m(this.$parsers,function(a){d=a(d)});if(this.$modelValue!==d)this.$modelValue=d,f(a,d),m(this.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})};
var l=this;a.$watch(g,function(a){if(l.$modelValue!==a){var c=l.$formatters,d=c.length;for(l.$modelValue=a;d--;)a=c[d](a);if(l.$viewValue!==a)l.$viewValue=a,l.$render()}})}],qd=function(){return{require:["ngModel","^?form"],controller:pd,link:function(a,c,d,e){var g=e[0],h=e[1]||Ma;h.$addControl(g);c.bind("$destroy",function(){h.$removeControl(g)})}}},rd=B({require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),ac=function(){return{require:"?ngModel",
link:function(a,c,d,e){if(e){d.required=!0;var g=function(a){if(d.required&&(S(a)||a===!1))e.$setValidity("required",!1);else return e.$setValidity("required",!0),a};e.$formatters.push(g);e.$parsers.unshift(g);d.$observe("required",function(){g(e.$viewValue)})}}}},sd=function(){return{require:"ngModel",link:function(a,c,d,e){var g=(a=/\/(.*)\//.exec(d.ngList))&&RegExp(a[1])||d.ngList||",",h=function(a){var c=[];a&&m(a.split(g),function(a){a&&c.push(Q(a))});return c};e.$parsers.push(h);e.$formatters.push(function(a){return K(a)&&
!ea(h(e.$viewValue),a)?a.join(", "):p})}}},td=/^(true|false|\d+)$/,ud=function(){return{priority:100,compile:function(a,c){return td.test(c.ngValue)?function(a,c,g){g.$set("value",a.$eval(g.ngValue))}:function(a,c,g){a.$watch(g.ngValue,function(a){g.$set("value",a,!1)})}}}},vd=R(function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);a.$watch(d.ngBind,function(a){c.text(a==p?"":a)})}),wd=["$interpolate",function(a){return function(c,d,e){c=a(d.attr(e.$attr.ngBindTemplate));d.addClass("ng-binding").data("$binding",
c);e.$observe("ngBindTemplate",function(a){d.text(a)})}}],xd=[function(){return function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBindHtmlUnsafe);a.$watch(d.ngBindHtmlUnsafe,function(a){c.html(a||"")})}}],yd=ib("",!0),zd=ib("Odd",0),Ad=ib("Even",1),Bd=R({compile:function(a,c){c.$set("ngCloak",p);a.removeClass("ng-cloak")}}),Cd=[function(){return{scope:!0,controller:"@"}}],Dd=["$sniffer",function(a){return{priority:1E3,compile:function(){a.csp=!0}}}],bc={};m("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave".split(" "),
function(a){var c=da("ng-"+a);bc[c]=["$parse",function(d){return function(e,g,h){var f=d(h[c]);g.bind(E(a),function(a){e.$apply(function(){f(e,{$event:a})})})}}]});var Ed=R(function(a,c,d){c.bind("submit",function(){a.$apply(d.ngSubmit)})}),Fd=["$http","$templateCache","$anchorScroll","$compile",function(a,c,d,e){return{restrict:"ECA",terminal:!0,compile:function(g,h){var f=h.ngInclude||h.src,i=h.onload||"",j=h.autoscroll;return function(g,h){var n=0,m,o=function(){m&&(m.$destroy(),m=null);h.html("")};
g.$watch(f,function(f){var q=++n;f?a.get(f,{cache:c}).success(function(a){q===n&&(m&&m.$destroy(),m=g.$new(),h.html(a),e(h.contents())(m),s(j)&&(!j||g.$eval(j))&&d(),m.$emit("$includeContentLoaded"),g.$eval(i))}).error(function(){q===n&&o()}):o()})}}}}],Gd=R({compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Hd=R({terminal:!0,priority:1E3}),Id=["$locale","$interpolate",function(a,c){var d=/{}/g;return{restrict:"EA",link:function(e,g,h){var f=h.count,i=g.attr(h.$attr.when),j=h.offset||
0,k=e.$eval(i),l={};m(k,function(a,e){l[e]=c(a.replace(d,"{{"+f+"-"+j+"}}"))});e.$watch(function(){var c=parseFloat(e.$eval(f));return isNaN(c)?"":(k[c]||(c=a.pluralCat(c-j)),l[c](e,g,!0))},function(a){g.text(a)})}}}],Jd=R({transclude:"element",priority:1E3,terminal:!0,compile:function(a,c,d){return function(a,c,h){var f=h.ngRepeat,h=f.match(/^\s*(.+)\s+in\s+(.*)\s*$/),i,j,k;if(!h)throw w("Expected ngRepeat in form of '_item_ in _collection_' but got '"+f+"'.");f=h[1];i=h[2];h=f.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/);
if(!h)throw w("'item' in 'item in collection' should be identifier or (key, value) but got '"+f+"'.");j=h[3]||h[1];k=h[2];var l=new cb;a.$watch(function(a){var e,f,h=a.$eval(i),m=ec(h,!0),p,u=new cb,z,y,v,s,w=c;if(K(h))v=h||[];else{v=[];for(z in h)h.hasOwnProperty(z)&&z.charAt(0)!="$"&&v.push(z);v.sort()}e=0;for(f=v.length;e<f;e++){z=h===v?e:v[e];y=h[z];if(s=l.shift(y)){p=s.scope;u.push(y,s);if(e!==s.index)s.index=e,w.after(s.element);w=s.element}else p=a.$new();p[j]=y;k&&(p[k]=z);p.$index=e;p.$first=
e===0;p.$last=e===m-1;p.$middle=!(p.$first||p.$last);s||d(p,function(a){w.after(a);s={scope:p,element:w=a,index:e};u.push(y,s)})}for(z in l)if(l.hasOwnProperty(z))for(v=l[z];v.length;)y=v.pop(),y.element.remove(),y.scope.$destroy();l=u})}}}),Kd=R(function(a,c,d){a.$watch(d.ngShow,function(a){c.css("display",Va(a)?"":"none")})}),Ld=R(function(a,c,d){a.$watch(d.ngHide,function(a){c.css("display",Va(a)?"none":"")})}),Md=R(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&m(d,function(a,d){c.css(d,
"")});a&&c.css(a)},!0)}),Nd=B({restrict:"EA",compile:function(a,c){var d=c.ngSwitch||c.on,e={};a.data("ng-switch",e);return function(a,h){var f,i,j;a.$watch(d,function(d){i&&(j.$destroy(),i.remove(),i=j=null);if(f=e["!"+d]||e["?"])a.$eval(c.change),j=a.$new(),f(j,function(a){i=a;h.append(a)})})}}}),Od=R({transclude:"element",priority:500,compile:function(a,c,d){a=a.inheritedData("ng-switch");oa(a);a["!"+c.ngSwitchWhen]=d}}),Pd=R({transclude:"element",priority:500,compile:function(a,c,d){a=a.inheritedData("ng-switch");
oa(a);a["?"]=d}}),Qd=R({controller:["$transclude","$element",function(a,c){a(function(a){c.append(a)})}]}),Rd=["$http","$templateCache","$route","$anchorScroll","$compile","$controller",function(a,c,d,e,g,h){return{restrict:"ECA",terminal:!0,link:function(a,c,j){function k(){var j=d.current&&d.current.locals,k=j&&j.$template;if(k){c.html(k);l&&(l.$destroy(),l=null);var k=g(c.contents()),m=d.current;l=m.scope=a.$new();if(m.controller)j.$scope=l,j=h(m.controller,j),c.contents().data("$ngControllerController",
j);k(l);l.$emit("$viewContentLoaded");l.$eval(n);e()}else c.html(""),l&&(l.$destroy(),l=null)}var l,n=j.onload||"";a.$on("$routeChangeSuccess",k);k()}}}],Sd=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){d.type=="text/ng-template"&&a.put(d.id,c[0].text)}}}],Td=B({terminal:!0}),Ud=["$compile","$parse",function(a,c){var d=/^\s*(.*?)(?:\s+as\s+(.*?))?(?:\s+group\s+by\s+(.*))?\s+for\s+(?:([\$\w][\$\w\d]*)|(?:\(\s*([\$\w][\$\w\d]*)\s*,\s*([\$\w][\$\w\d]*)\s*\)))\s+in\s+(.*)$/,
e={$setViewValue:A};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(a,c,d){var i=this,j={},k=e,l;i.databound=d.ngModel;i.init=function(a,c,d){k=a;l=d};i.addOption=function(c){j[c]=!0;k.$viewValue==c&&(a.val(c),l.parent()&&l.remove())};i.removeOption=function(a){this.hasOption(a)&&(delete j[a],k.$viewValue==a&&this.renderUnknownOption(a))};i.renderUnknownOption=function(c){c="? "+ia(c)+" ?";l.val(c);a.prepend(l);a.val(c);l.prop("selected",!0)};i.hasOption=
function(a){return j.hasOwnProperty(a)};c.$on("$destroy",function(){i.renderUnknownOption=A})}],link:function(e,h,f,i){function j(a,c,d,e){d.$render=function(){var a=d.$viewValue;e.hasOption(a)?(y.parent()&&y.remove(),c.val(a),a===""&&t.prop("selected",!0)):v(a)&&t?c.val(""):e.renderUnknownOption(a)};c.bind("change",function(){a.$apply(function(){y.parent()&&y.remove();d.$setViewValue(c.val())})})}function k(a,c,d){var e;d.$render=function(){var a=new Da(d.$viewValue);m(c.children(),function(c){c.selected=
s(a.get(c.value))})};a.$watch(function(){ea(e,d.$viewValue)||(e=U(d.$viewValue),d.$render())});c.bind("change",function(){a.$apply(function(){var a=[];m(c.children(),function(c){c.selected&&a.push(c.value)});d.$setViewValue(a)})})}function l(e,f,g){function i(){var a={"":[]},c=[""],d,h,s,u,t;s=g.$modelValue;u=r(e)||[];var y=l?kb(u):u,C,w,x;w={};t=!1;var A,B;if(o)t=new Da(s);else if(s===null||q)a[""].push({selected:s===null,id:"",label:""}),t=!0;for(x=0;C=y.length,x<C;x++){w[k]=u[l?w[l]=y[x]:x];d=
m(e,w)||"";if(!(h=a[d]))h=a[d]=[],c.push(d);o?d=t.remove(n(e,w))!=p:(d=s===n(e,w),t=t||d);h.push({id:l?y[x]:x,label:j(e,w)||"",selected:d})}!o&&!t&&a[""].unshift({id:"?",label:"",selected:!0});w=0;for(y=c.length;w<y;w++){d=c[w];h=a[d];if(v.length<=w)s={element:z.clone().attr("label",d),label:h.label},u=[s],v.push(u),f.append(s.element);else if(u=v[w],s=u[0],s.label!=d)s.element.attr("label",s.label=d);A=null;x=0;for(C=h.length;x<C;x++)if(d=h[x],t=u[x+1]){A=t.element;if(t.label!==d.label)A.text(t.label=
d.label);if(t.id!==d.id)A.val(t.id=d.id);if(t.element.selected!==d.selected)A.prop("selected",t.selected=d.selected)}else d.id===""&&q?B=q:(B=D.clone()).val(d.id).attr("selected",d.selected).text(d.label),u.push({element:B,label:d.label,id:d.id,selected:d.selected}),A?A.after(B):s.element.append(B),A=B;for(x++;u.length>x;)u.pop().element.remove()}for(;v.length>w;)v.pop()[0].element.remove()}var h;if(!(h=x.match(d)))throw w("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+
x+"'.");var j=c(h[2]||h[1]),k=h[4]||h[6],l=h[5],m=c(h[3]||""),n=c(h[2]?h[1]:k),r=c(h[7]),v=[[{element:f,label:""}]];q&&(a(q)(e),q.removeClass("ng-scope"),q.remove());f.html("");f.bind("change",function(){e.$apply(function(){var a,c=r(e)||[],d={},h,i,j,m,q,s;if(o){i=[];m=0;for(s=v.length;m<s;m++){a=v[m];j=1;for(q=a.length;j<q;j++)if((h=a[j].element)[0].selected)h=h.val(),l&&(d[l]=h),d[k]=c[h],i.push(n(e,d))}}else h=f.val(),h=="?"?i=p:h==""?i=null:(d[k]=c[h],l&&(d[l]=h),i=n(e,d));g.$setViewValue(i)})});
g.$render=i;e.$watch(i)}if(i[1]){for(var n=i[0],r=i[1],o=f.multiple,x=f.ngOptions,q=!1,t,D=u($.createElement("option")),z=u($.createElement("optgroup")),y=D.clone(),i=0,A=h.children(),B=A.length;i<B;i++)if(A[i].value==""){t=q=A.eq(i);break}n.init(r,q,y);if(o&&(f.required||f.ngRequired)){var E=function(a){r.$setValidity("required",!f.required||a&&a.length);return a};r.$parsers.push(E);r.$formatters.unshift(E);f.$observe("required",function(){E(r.$viewValue)})}x?l(e,h,r):o?k(e,h,r):j(e,h,r,n)}}}}],
Vd=["$interpolate",function(a){var c={addOption:A,removeOption:A};return{restrict:"E",priority:100,require:"^select",compile:function(d,e){if(v(e.value)){var g=a(d.text(),!0);g||e.$set("value",d.text())}return function(a,d,e,j){j.databound?d.prop("selected",!1):j=c;g?a.$watch(g,function(a,c){e.$set("value",a);a!==c&&j.removeOption(c);j.addOption(a)}):j.addOption(e.value);d.bind("$destroy",function(){j.removeOption(e.value)})}}}}],Wd=B({restrict:"E",terminal:!0});(ha=T.jQuery)?(u=ha,D(ha.fn,{scope:sa.scope,
controller:sa.controller,injector:sa.injector,inheritedData:sa.inheritedData}),$a("remove",!0),$a("empty"),$a("html")):u=P;Xb.element=u;(function(a){D(a,{bootstrap:ob,copy:U,extend:D,equals:ea,element:u,forEach:m,injector:pb,noop:A,bind:Ua,toJson:aa,fromJson:mb,identity:wa,isUndefined:v,isDefined:s,isString:G,isFunction:M,isObject:J,isNumber:ua,isElement:dc,isArray:K,version:hd,isDate:la,lowercase:E,uppercase:ka,callbacks:{counter:0}});ra=jc(T);try{ra("ngLocale")}catch(c){ra("ngLocale",[]).provider("$locale",
Yc)}ra("ng",["ngLocale"],["$provide",function(a){a.provider("$compile",Bb).directive({a:jd,input:$b,textarea:$b,form:kd,script:Sd,select:Ud,style:Wd,option:Vd,ngBind:vd,ngBindHtmlUnsafe:xd,ngBindTemplate:wd,ngClass:yd,ngClassEven:Ad,ngClassOdd:zd,ngCsp:Dd,ngCloak:Bd,ngController:Cd,ngForm:ld,ngHide:Ld,ngInclude:Fd,ngInit:Gd,ngNonBindable:Hd,ngPluralize:Id,ngRepeat:Jd,ngShow:Kd,ngSubmit:Ed,ngStyle:Md,ngSwitch:Nd,ngSwitchWhen:Od,ngSwitchDefault:Pd,ngOptions:Td,ngView:Rd,ngTransclude:Qd,ngModel:qd,ngList:sd,
ngChange:rd,required:ac,ngRequired:ac,ngValue:ud}).directive(jb).directive(bc);a.provider({$anchorScroll:sc,$browser:uc,$cacheFactory:vc,$controller:zc,$defer:Ac,$document:Bc,$exceptionHandler:Cc,$filter:Ob,$interpolate:Dc,$http:Uc,$httpBackend:Vc,$location:Hc,$log:Ic,$parse:Mc,$route:Pc,$routeParams:Qc,$rootScope:Rc,$q:Nc,$sniffer:Sc,$templateCache:wc,$timeout:Zc,$window:Tc})}])})(Xb);u($).ready(function(){hc($,ob)})})(window,document);angular.element(document).find("head").append('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}</style>');

View File

@ -1 +1 @@
1.0.0rc10
1.0.0rc11

View File

@ -1,6 +1,6 @@
/**
* @license AngularJS v1.0.0rc10
* @license AngularJS v1.0.0rc11
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*
@ -578,7 +578,7 @@ angular.mock.$LogProvider = function() {
* This method is also available on window, where it can be used to display objects on debug console.
*
* @param {*} object - any object to turn into string.
* @return a serialized string of the argument
* @return {string} a serialized string of the argument
*/
angular.mock.dump = function(object) {
return serialize(object);
@ -1347,6 +1347,15 @@ function MockXhr() {
* Flushes the queue of pending tasks.
*/
/**
*
*/
angular.mock.$RootElementProvider = function() {
this.$get = function() {
return angular.element('<div ng-app></div>');
}
};
/**
* @ngdoc overview
* @name angular.module.ngMock
@ -1359,7 +1368,8 @@ angular.module('ngMock', ['ng']).provider({
$browser: angular.mock.$BrowserProvider,
$exceptionHandler: angular.mock.$ExceptionHandlerProvider,
$log: angular.mock.$LogProvider,
$httpBackend: angular.mock.$HttpBackendProvider
$httpBackend: angular.mock.$HttpBackendProvider,
$rootElement: angular.mock.$RootElementProvider
}).config(function($provide) {
$provide.decorator('$timeout', function($delegate, $browser) {
$delegate.flush = function() {
@ -1370,7 +1380,6 @@ angular.module('ngMock', ['ng']).provider({
});
/**
* @ngdoc overview
* @name angular.module.ngMockE2E

File diff suppressed because it is too large Load Diff

View File

@ -1 +1 @@
1.0.0rc10
1.0.0rc11