From e27efe2023eacd848afba13b68d52a61d606d0e9 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 23 May 2012 21:38:36 -0700 Subject: [PATCH] upgrade to AngularJS 1.0.0rc10 tesseract-giftwrapping --- app/lib/angular/angular-cookies.js | 2 +- app/lib/angular/angular-cookies.min.js | 2 +- app/lib/angular/angular-loader.js | 2 +- app/lib/angular/angular-loader.min.js | 2 +- app/lib/angular/angular-resource.js | 2 +- app/lib/angular/angular-resource.min.js | 2 +- app/lib/angular/angular-sanitize.js | 2 +- app/lib/angular/angular-sanitize.min.js | 2 +- app/lib/angular/angular.js | 247 +++++++++++++++----- app/lib/angular/angular.min.js | 299 ++++++++++++------------ app/lib/angular/version.txt | 2 +- test/lib/angular/angular-mocks.js | 28 ++- test/lib/angular/angular-scenario.js | 247 +++++++++++++++----- test/lib/angular/version.txt | 2 +- 14 files changed, 557 insertions(+), 284 deletions(-) diff --git a/app/lib/angular/angular-cookies.js b/app/lib/angular/angular-cookies.js index dd53122..7f01b5e 100644 --- a/app/lib/angular/angular-cookies.js +++ b/app/lib/angular/angular-cookies.js @@ -1,5 +1,5 @@ /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ diff --git a/app/lib/angular/angular-cookies.min.js b/app/lib/angular/angular-cookies.min.js index f8b1e72..ffe89e4 100644 --- a/app/lib/angular/angular-cookies.min.js +++ b/app/lib/angular/angular-cookies.min.js @@ -1,5 +1,5 @@ /* - AngularJS v1.0.0rc9 + AngularJS v1.0.0rc10 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ diff --git a/app/lib/angular/angular-loader.js b/app/lib/angular/angular-loader.js index 7eda03e..98e78d0 100644 --- a/app/lib/angular/angular-loader.js +++ b/app/lib/angular/angular-loader.js @@ -1,5 +1,5 @@ /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ diff --git a/app/lib/angular/angular-loader.min.js b/app/lib/angular/angular-loader.min.js index fcfd4c5..eef8782 100644 --- a/app/lib/angular/angular-loader.min.js +++ b/app/lib/angular/angular-loader.min.js @@ -1,5 +1,5 @@ /* - AngularJS v1.0.0rc9 + AngularJS v1.0.0rc10 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ diff --git a/app/lib/angular/angular-resource.js b/app/lib/angular/angular-resource.js index df6d528..6093947 100644 --- a/app/lib/angular/angular-resource.js +++ b/app/lib/angular/angular-resource.js @@ -1,5 +1,5 @@ /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ diff --git a/app/lib/angular/angular-resource.min.js b/app/lib/angular/angular-resource.min.js index c319bf4..0962b06 100644 --- a/app/lib/angular/angular-resource.min.js +++ b/app/lib/angular/angular-resource.min.js @@ -1,5 +1,5 @@ /* - AngularJS v1.0.0rc9 + AngularJS v1.0.0rc10 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ diff --git a/app/lib/angular/angular-sanitize.js b/app/lib/angular/angular-sanitize.js index 3e9e269..aae2c98 100644 --- a/app/lib/angular/angular-sanitize.js +++ b/app/lib/angular/angular-sanitize.js @@ -1,5 +1,5 @@ /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ diff --git a/app/lib/angular/angular-sanitize.min.js b/app/lib/angular/angular-sanitize.min.js index 884b5ce..ca032d6 100644 --- a/app/lib/angular/angular-sanitize.min.js +++ b/app/lib/angular/angular-sanitize.min.js @@ -1,5 +1,5 @@ /* - AngularJS v1.0.0rc9 + AngularJS v1.0.0rc10 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ diff --git a/app/lib/angular/angular.js b/app/lib/angular/angular.js index 57c0355..839b228 100644 --- a/app/lib/angular/angular.js +++ b/app/lib/angular/angular.js @@ -1,5 +1,5 @@ /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ @@ -1243,11 +1243,11 @@ function setupModuleLoader(window) { * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat". */ var version = { - full: '1.0.0rc9', // all of these placeholder strings will be replaced by rake's + full: '1.0.0rc10', // all of these placeholder strings will be replaced by rake's major: 1, // compile task minor: 0, dot: 0, - codeName: 'eggplant-teleportation' + codeName: 'tesseract-giftwrapping' }; @@ -1354,6 +1354,7 @@ function publishExternalAPI(angular){ $q: $QProvider, $sniffer: $SnifferProvider, $templateCache: $TemplateCacheProvider, + $timeout: $TimeoutProvider, $window: $WindowProvider }); } @@ -1546,8 +1547,8 @@ function JQLiteDealoc(element){ } function JQLiteUnbind(element, type, fn) { - var events = JQLiteData(element, 'events'), - handle = JQLiteData(element, 'handle'); + var events = JQLiteExpandoStore(element, 'events'), + handle = JQLiteExpandoStore(element, 'handle'); if (!handle) return; //no listeners registered @@ -1567,44 +1568,56 @@ function JQLiteUnbind(element, type, fn) { } function JQLiteRemoveData(element) { - var cacheId = element[jqName], - cache = jqCache[cacheId]; + var expandoId = element[jqName], + expandoStore = jqCache[expandoId]; - if (cache) { - if (cache.handle) { - cache.events.$destroy && cache.handle({}, '$destroy'); + if (expandoStore) { + if (expandoStore.handle) { + expandoStore.events.$destroy && expandoStore.handle({}, '$destroy'); JQLiteUnbind(element); } - delete jqCache[cacheId]; + delete jqCache[expandoId]; element[jqName] = undefined; // ie does not allow deletion of attributes on elements. } } -function JQLiteData(element, key, value) { - var cacheId = element[jqName], - cache = jqCache[cacheId || -1]; +function JQLiteExpandoStore(element, key, value) { + var expandoId = element[jqName], + expandoStore = jqCache[expandoId || -1]; if (isDefined(value)) { - if (!cache) { - element[jqName] = cacheId = jqNextId(); - cache = jqCache[cacheId] = {}; + if (!expandoStore) { + element[jqName] = expandoId = jqNextId(); + expandoStore = jqCache[expandoId] = {}; } - cache[key] = value; + expandoStore[key] = value; } else { - if (isDefined(key)) { - if (isObject(key)) { - if (!cacheId) element[jqName] = cacheId = jqNextId(); - jqCache[cacheId] = cache = (jqCache[cacheId] || {}); - extend(cache, key); + return expandoStore && expandoStore[key]; + } +} + +function JQLiteData(element, key, value) { + var data = JQLiteExpandoStore(element, 'data'), + isSetter = isDefined(value), + keyDefined = !isSetter && isDefined(key), + isSimpleGetter = keyDefined && !isObject(key); + + if (!data && !isSimpleGetter) { + JQLiteExpandoStore(element, 'data', data = {}); + } + + if (isSetter) { + data[key] = value; + } else { + if (keyDefined) { + if (isSimpleGetter) { + // don't create data in this case. + return data && data[key]; } else { - return cache ? cache[key] : undefined; + extend(data, key); } } else { - if (!cacheId) element[jqName] = cacheId = jqNextId(); - - return cache - ? cache - : cache = jqCache[cacheId] = {}; + return data; } } } @@ -1943,11 +1956,11 @@ forEach({ dealoc: JQLiteDealoc, bind: function bindFn(element, type, fn){ - var events = JQLiteData(element, 'events'), - handle = JQLiteData(element, 'handle'); + var events = JQLiteExpandoStore(element, 'events'), + handle = JQLiteExpandoStore(element, 'handle'); - if (!events) JQLiteData(element, 'events', events = {}); - if (!handle) JQLiteData(element, 'handle', handle = createEventHandler(element, events)); + if (!events) JQLiteExpandoStore(element, 'events', events = {}); + if (!handle) JQLiteExpandoStore(element, 'handle', handle = createEventHandler(element, events)); forEach(type.split(' '), function(type){ var eventFns = events[type]; @@ -4451,6 +4464,8 @@ function $ControllerProvider() { /** * @ngdoc function * @name angular.module.ng.$defer + * @deprecated Made obsolete by $timeout service. Please migrate your code. This service will be + * removed with 1.0 final. * @requires $browser * * @description @@ -4477,7 +4492,9 @@ function $ControllerProvider() { * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfuly canceled. */ function $DeferProvider(){ - this.$get = ['$rootScope', '$browser', function($rootScope, $browser) { + this.$get = ['$rootScope', '$browser', '$log', function($rootScope, $browser, $log) { + $log.warn('$defer service has been deprecated, migrate to $timeout'); + function defer(fn, delay) { return $browser.defer(function() { $rootScope.$apply(fn); @@ -7314,7 +7331,7 @@ function $RootScopeProvider(){ watchLog = [], logIdx, logMsg; - flagPhase(target, '$digest'); + beginPhase('$digest'); do { dirty = false; @@ -7371,12 +7388,13 @@ function $RootScopeProvider(){ } while ((current = next)); if(dirty && !(ttl--)) { + clearPhase(); throw Error(TTL + ' $digest() iterations reached. Aborting!\n' + 'Watchers fired in the last 5 iterations: ' + toJson(watchLog)); } } while (dirty || asyncQueue.length); - this.$root.$$phase = null; + clearPhase(); }, @@ -7411,7 +7429,7 @@ function $RootScopeProvider(){ * perform any necessary cleanup. */ $destroy: function() { - if (this.$root == this) return; // we can't remove the root node; + if ($rootScope == this) return; // we can't remove the root node; var parent = this.$parent; this.$broadcast('$destroy'); @@ -7528,13 +7546,18 @@ function $RootScopeProvider(){ */ $apply: function(expr) { try { - flagPhase(this, '$apply'); + beginPhase('$apply'); return this.$eval(expr); } catch (e) { $exceptionHandler(e); } finally { - this.$root.$$phase = null; - this.$root.$digest(); + clearPhase(); + try { + $rootScope.$digest(); + } catch (e) { + $exceptionHandler(e); + throw e; + } } }, @@ -7558,9 +7581,10 @@ function $RootScopeProvider(){ * - `targetScope` - {Scope}: the scope on which the event was `$emit`-ed or `$broadcast`-ed. * - `currentScope` - {Scope}: the current scope which is handling the event. * - `name` - {string}: Name of the event. - * - `cancel` - {function=}: calling `cancel` function will cancel further event propagation + * - `stopPropagation` - {function=}: calling `stopPropagation` function will cancel further event propagation * (available only for events that were `$emit`-ed). - * - `cancelled` - {boolean}: Whether the event was cancelled. + * - `preventDefault` - {function}: calling `preventDefault` sets `defaultPrevented` flag to true. + * - `defaultPrevented` - {boolean}: true if `preventDefault` was called. */ $on: function(name, listener) { var namedListeners = this.$$listeners[name]; @@ -7601,11 +7625,15 @@ function $RootScopeProvider(){ var empty = [], namedListeners, scope = this, + stopPropagation = false, event = { name: name, targetScope: scope, - cancel: function() {event.cancelled = true;}, - cancelled: false + stopPropagation: function() {stopPropagation = true;}, + preventDefault: function() { + event.defaultPrevented = true; + }, + defaultPrevented: false }, listenerArgs = concat([event], arguments, 1), i, length; @@ -7616,7 +7644,7 @@ function $RootScopeProvider(){ for (i=0, length=namedListeners.length; i * @@ -12585,10 +12708,9 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp * Special properties are exposed on the local scope of each template instance, including: * * * `$index` – `{number}` – iterator offset of the repeated element (0..length-1) - * * `$position` – `{string}` – position of the repeated element in the iterator. One of: - * * `'first'`, - * * `'middle'` - * * `'last'` + * * `$first` – `{boolean}` – true if the repeated element is first in the iterator. + * * `$middle` – `{boolean}` – true if the repeated element is between the first and last in the iterator. + * * `$last` – `{boolean}` – true if the repeated element is last in the iterator. * * * @element ANY @@ -12718,9 +12840,10 @@ var ngRepeatDirective = ngDirective({ childScope[valueIdent] = value; if (keyIdent) childScope[keyIdent] = key; childScope.$index = index; - childScope.$position = index === 0 ? - 'first' : - (index == collectionLength - 1 ? 'last' : 'middle'); + + childScope.$first = (index === 0); + childScope.$last = (index === (collectionLength - 1)); + childScope.$middle = !(childScope.$first || childScope.$last); if (!last) { linker(childScope, function(clone){ diff --git a/app/lib/angular/angular.min.js b/app/lib/angular/angular.min.js index 2576e22..cf2b9df 100644 --- a/app/lib/angular/angular.min.js +++ b/app/lib/angular/angular.min.js @@ -1,154 +1,155 @@ /* - AngularJS v1.0.0rc9 + AngularJS v1.0.0rc10 (c) 2010-2012 Google, Inc. http://angularjs.org License: MIT */ -(function(V,aa,p){'use strict';function m(b,a,c){var d;if(b)if(N(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=0&&b.splice(c,1);return a}function W(b,a){if(na(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;c2?ha.call(arguments,2):[];return N(a)&&!(a instanceof RegExp)?c.length? -function(){return arguments.length?a.apply(b,c.concat(ha.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:na(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 lb(b){return G(b)?JSON.parse(b):b}function Ta(b){b&&b.length!==0?(b=v(""+b),b=!(b=="f"||b=="0"||b=="false"||b=="no"||b=="n"||b=="[]")):b=!1; -return b}function ya(b){b=u(b).clone();try{b.html("")}catch(a){}return u("
").append(b).html().match(/^(<[^>]+>)/)[1]}function Ua(b){var a={},c,d;m((b||"").split("&"),function(b){b&&(c=b.split("="),d=decodeURIComponent(c[0]),a[d]=E(c[1])?decodeURIComponent(c[1]):!0)});return a}function mb(b){var a=[];m(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,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(aa.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 nb(b,a){b=u(b);a=a||[];a.unshift("ng");var c=ob(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 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(N(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 j}}if(!e)throw w("No module: "+d);var b=[],c=[],k=a("$injector","invoke"), -j={_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:k,run:function(a){c.push(a);return this}};g&&k(g);return j})}})}function pb(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,h,f,i,k,j,n,l;b.length;){h=b.shift();f=0;for(i=h.length;f 
"+b;a.removeChild(a.firstChild);Za(this,a.childNodes);this.remove()}else Za(this,b)}function $a(b){return b.cloneNode(!0)}function qa(b){qb(b);for(var a=0,b=b.childNodes||[];a-1}function tb(b,a){a&&m(a.split(" "),function(a){b.className=S((" "+b.className+" ").replace(/[\n\t]/g," ").replace(" "+S(a)+" "," "))})}function ub(b,a){a&&m(a.split(" "),function(a){if(!za(b, -a))b.className=S(b.className+" "+S(a))})}function Za(b,a){if(a)for(var a=!a.nodeName&&E(a.length)&&!na(a)?a:[a],c=0;c4096&&c.warn("Cookie '"+a+"' possibly not set or overflowed because it was too large ("+d+" > 4096 bytes)!"),$.length>20&&c.warn("Cookie '"+a+"' possibly not set or overflowed because too many cookies were already set ("+$.length+" > 20 )")}else{if(i.cookie!==A){A=i.cookie;d=A.split("; ");$={};for(f=0;f0&&($[unescape(e.substring(0,g))]=unescape(e.substring(g+1)))}return $}};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],l(a),e(r),!0):!1}}function qc(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new pc(b,d,a,c)}]}function rc(){this.$get=function(){function b(b,d){function e(a){if(a!=n){if(l){if(l==a)l=a.n}else l=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 w("cacheId "+b+" taken");var h=0,f=C({},d,{id:b}),i={},k=d&&d.capacity|| -Number.MAX_VALUE,j={},n=null,l=null;return a[b]={put:function(a,b){var c=j[a]||(j[a]={key:a});e(c);t(b)||(a in i||h++,i[a]=b,h>k&&this.remove(l.key))},get:function(a){var b=j[a];if(b)return e(b),i[a]},remove:function(a){var b=j[a];if(b==n)n=b.p;if(b==l)l=b.n;g(b.n,b.p);delete j[a];delete i[a];h--},removeAll:function(){i={};h=0;j={};n=l=null},destroy:function(){j=f=i=null;delete a[b]},info:function(){return C({},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 sc(){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){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(N(f))f={compile:D(f)}; -else if(!f.compile&&f.link)f.compile=D(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(g){c(g)}});return e}])),a[d].push(e)):m(d,kb(f));return this};this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller",function(b,i,k,j,n,l,s){function o(a,b,c){a instanceof u||(a=u(a));m(a,function(b,c){b.nodeType==3&&(a[c]=u(b).wrap("").parent()[0])});var d=z(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 M(a,b){throw w("Unsupported '"+b+"' for '"+a+"'.");}function q(a,b){try{a.addClass(b)}catch(c){}}function z(a,b,c,d){function e(a,c,d,i){for(var g,k,l,j,T,n=0,s=0,q=f.length;ny.priority)break;if(v=y.scope)H("isolated scope",I,y,F),J(v)&&(q(F,"ng-isolate-scope"),I=y),q(F,"ng-scope"), -A=A||y;X=y.name;if(v=y.controller)D=D||{},H("'"+X+"' controller",D[X],y,F),D[X]=y;if(v=y.transclude)H("transclusion",C,y,F),C=y,j=y.priority,v=="element"?(r=u(b),F=c.$$element=u("<\!-- "+X+": "+c[X]+" --\>"),b=F[0],Da(e,u(r[0]),b),E=o(r,d,j)):(r=u($a(b)).contents(),F.html(""),E=o(r,d));if(v=y.template)if(H("template",O,y,F),O=y,r=u("
"+S(v)+"
").contents(),b=r[0],y.replace){if(r.length!=1||b.nodeType!==1)throw new w(g+v);Da(e,F,b);X={$attr:{}};a=a.concat(P(b,a.splice(B+1,a.length-(B+1)), -X));R(c,X);L=a.length}else F.html(v);if(y.templateUrl)H("template",O,y,F),O=y,l=$(a.splice(B,a.length-B),l,F,c,e,y.replace,E),L=a.length;else if(y.compile)try{x=y.compile(F,c,E),N(x)?f(null,x):x&&f(x.pre,x.post)}catch(Q){k(Q,ya(F))}if(y.terminal)l.terminal=!0,j=Math.max(j,y.priority)}l.scope=A&&A.scope;l.transclude=C&&E;return l}function O(d,e,i,g){var l=!1;if(a.hasOwnProperty(e))for(var j,e=b.get(e+c),n=0,s=e.length;nj.priority)&&j.restrict.indexOf(i)!=-1)d.push(j), -l=!0}catch(q){k(q)}return l}function R(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):f=="style"?e.attr("style",e.attr("style")+";"+b):f.charAt(0)!="$"&&!a.hasOwnProperty(f)&&(a[f]=b,d[f]=c[f])})}function $(a,b,c,d,e,f,i){var l=[],k,s,q=c[0],o=a.shift(),M=C({},o,{controller:null,templateUrl:null,transclude:null});c.html("");j.get(o.templateUrl,{cache:n}).success(function(j){var n, -o;if(f){o=u("
"+S(j)+"
").contents();n=o[0];if(o.length!=1||n.nodeType!==1)throw new w(g+j);j={$attr:{}};Da(e,c,n);P(n,a,j);R(d,j)}else n=q,c.html(j);a.unshift(M);k=I(a,c,d,i);for(s=z(c.contents(),i);l.length;){var m=l.pop(),j=l.pop();o=l.pop();var A=l.pop(),H=n;o!==q&&(H=$a(n),Da(j,u(o),H));k(function(){b(s,A,H,e,m)},A,H,e,m)}l=null}).error(function(a,b,c,d){throw w("Failed to load template: "+d.url);});return function(a,c,d,e,f){l?(l.push(c),l.push(d),l.push(e),l.push(f)):k(function(){b(s, -c,d,e,f)},c,d,e,f)}}function A(a,b){return b.priority-a.priority}function H(a,b,c,d){if(b)throw w("Multiple directives ["+b.name+", "+c.name+"] asking for "+a+" on: "+ya(d));}function F(a,b){var c=i(b,!0);c&&a.push({priority:0,compile:D(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 X(a,b,c,d){var e=i(c,!0);e&&b.push({priority:100,compile:D(function(a,b,c){d==="class"&&(e=i(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,i;if(a){f=0;for(i=a.length;f0){var e=H[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),H.shift(),b):!1}function i(a){f(a)||e("is unexpected, expecting ["+a+"]",h())}function k(a,b){return function(c,d){return a(c,d,b)}}function j(a,b,c){return function(d,e){return b(d,e,a,c)}}function n(){for(var a=[];;)if(H.length>0&&!h("}",")",";","]")&&a.push(v()),!f(";"))return a.length==1?a[0]:function(b, -c){for(var d,e=0;e","<=",">="))a=j(a,b.fn,q());return a}function z(){for(var a=P(),b;b=f("*","/","%");)a=j(a,b.fn,P());return a}function P(){var a;return f("+")?I():(a=f("-"))?j($,a.fn,P()):(a=f("!"))?k(a.fn,P()):I()}function I(){var a;if(f("("))a=v(),i(")");else if(f("["))a=O();else if(f("{"))a=R();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=ga(a)):b.text==="."?(c=a,a=t(a)):e("IMPOSSIBLE"); -return a}function O(){var a=[];if(g().text!="]"){do a.push(F());while(f(","))}i("]");return function(b,c){for(var d=[],e=0;e1;d++){var e=a.shift(),g= -b[e];g||(g={},b[e]=g);b=g}return b[a.shift()]=c}function cb(b,a,c){if(!a)return b;for(var a=a.split("."),d,e=b,g=a.length,h=0;h7),hasEvent:function(c){if(c== -"input"&&Z==9)return!1;if(t(a[c])){var e=b.document.createElement("div");a[c]="on"+c in e}return a[c]},csp:!1}}]}function Qc(){this.$get=D(V)}function Hb(b){var a={},c,d,e;if(!b)return a;m(b.split("\n"),function(b){e=b.indexOf(":");c=v(S(b.substr(0,e)));d=S(b.substr(e+1));c&&(a[c]?a[c]+=", "+d:a[c]=d)});return a}function Ib(b){var a=J(b)?b:p;return function(c){a||(a=Hb(b));return c?a[v(c)]||null:a}}function Jb(b,a,c){if(N(c))return c(b,a);m(c,function(c){b=c(b,a)});return b}function Rc(){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=lb(d,!0)));return d}],transformRequest:[function(a){return J(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,i,k,j){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:k.reject(b)}a.method=la(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[v(a.method)],a.headers),e=Jb(a.data,Ib(g),e),i;t(a.data)&&delete g["Content-Type"];i=l(a,e,g);i=i.then(c,c);m(M,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 l(b,c,d){function e(a,b,c){m&&(200<=a&&a<300?m.put(M,[a,b,Hb(c)]):m.remove(M));f(b,a,c);i.$apply()}function f(a,c,d){c=Math.max(c,0);(200<=c&&c<300?l.resolve:l.reject)({data:a,status:c,headers:Ib(d),config:b})}function h(){var a=Ra(n.pendingRequests,b);a!==-1&&n.pendingRequests.splice(a,1)}var l=k.defer(),j=l.promise,m,p,M=s(b.url,b.params);n.pendingRequests.push(b); -j.then(h,h);b.cache&&b.method=="GET"&&(m=J(b.cache)?b.cache:o);if(m)if(p=m.get(M))if(p.then)return p.then(h,h),p;else K(p)?f(p[1],p[0],W(p[2])):f(p,200,{});else m.put(M,j);p||a(b.method,M,c,e,d,b.timeout,b.withCredentials);return j}function s(a,b){if(!b)return a;var c=[];Zb(b,function(a,b){a==null||a==p||(J(a)&&(a=ba(a)),c.push(encodeURIComponent(b)+"="+encodeURIComponent(a)))});return a+(a.indexOf("?")==-1?"?":"&")+c.join("&")}var o=c("$http"),M=[];m(e,function(a){M.push(G(a)?j.get(a):j.invoke(a))}); -n.pendingRequests=[];(function(a){m(arguments,function(a){n[a]=function(b,c){return n(C(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){m(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 Sc(){this.$get=["$browser","$window","$document",function(b,a,c){return Tc(b,Uc,b.defer,a.angular.callbacks,c[0],a.location.protocol.replace(":",""))}]}function Tc(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;Z?c.onreadystatechange=function(){/loaded|complete/.test(c.readyState)&&d()}:c.onload=c.onerror=d;e.body.appendChild(c)}return function(e,i,k,j,n,l,s){function o(a,c,d,e){c=(i.match(Bb)||["",g])[1]=="file"?d?200:404:c;a(c==1223?204:c,d,e);b.$$completeOutstandingRequest(r)}b.$$incOutstandingRequestCount();i=i||b.url();if(v(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(j,200,d[p].data):o(j,-2);delete d[p]})}else{var q=new a;q.open(e,i,!0);m(n,function(a,b){a&&q.setRequestHeader(b,a)});var z;q.onreadystatechange=function(){q.readyState==4&&o(j,z||q.status,q.responseText,q.getAllResponseHeaders())};if(s)q.withCredentials=!0;q.send(k||"");l>0&&c(function(){z=-1;q.abort()},l)}}}function Vc(){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 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",Wc);a("json",Xc);a("limitTo",Yc);a("lowercase", -Zc);a("number",Nb);a("orderBy",Ob);a("uppercase",$c)}function Wc(){return function(b,a){if(!(b instanceof Array))return b;var c=[];c.check=function(a){for(var b=0;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=j+n)for(var k=h.length-j,l=0;l0||e>-c)e+= -c;e===0&&c==-12&&(e=12);return gb(e,a,d)}}function Ha(b,a){return function(c,d){var e=c["get"+b](),g=la(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,h=0;b[9]&&(g=x(b[9]+b[10]),h=x(b[9]+b[11]));a.setUTCFullYear(x(b[1]),x(b[2])-1,x(b[3]));a.setUTCHours(x(b[4]||0)-g,x(b[5]||0)-h,x(b[6]||0),x(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=ad.test(c)?x(c):a(c));ua(c)&&(c=new Date(c));if(!ma(c))return c;for(;e;)(i=bd.exec(e))?(h=h.concat(ha.call(i,1)),e=h.pop()):(h.push(e),e=null);m(h,function(a){f=cd[a];g+=f?f(c,b.DATETIME_FORMATS):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return g}}function Xc(){return function(b){return ba(b,!0)}}function Yc(){return function(b,a){if(!(b instanceof Array))return b;var a=x(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(;dn?(d.$setValidity("maxlength",!1),p):(d.$setValidity("maxlength",!0),a)};d.$parsers.push(c);d.$formatters.push(c)}}function hb(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&&(J(e)&&!K(e)&&(e=Qa(e,function(a,b){if(a)return b})),d.removeClass(K(e)?e.join(" "):e)),J(b)&&!K(b)&&(b=Qa(b, -function(a,b){if(a)return b})),b&&d.addClass(K(b)?b.join(" "):b)},!0)})}var v=function(b){return G(b)?b.toLowerCase():b},la=function(b){return G(b)?b.toUpperCase():b},w=V.Error,Z=x((/msie (\d+)/.exec(v(navigator.userAgent))||[])[1]),u,ia,ha=[].slice,Na=[].push,Pa=Object.prototype.toString,Tb=V.angular||(V.angular={}),ra,zb,Y=["0","0","0"];r.$inject=[];wa.$inject=[];zb=Z<9?function(b){b=b.nodeName?b:b[0];return b.scopeName&&b.scopeName!="HTML"?la(b.scopeName+":"+b.nodeName):b.nodeName}:function(b){return b.nodeName? -b.nodeName:b[0].nodeName};var ec=/[A-Z]/g,dd={full:"1.0.0rc9",major:1,minor:0,dot:0,codeName:"eggplant-teleportation"},fa=L.cache={},ja=L.expando="ng-"+(new Date).getTime(),ab=1,ed=V.document.addEventListener?function(b,a,c){b.addEventListener(a,c,!1)}:function(b,a,c){b.attachEvent("on"+a,c)},sb=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])/,sa=L.prototype={ready:function(b){function a(){c|| -(c=!0,b())}var c=!1;this.bind("DOMContentLoaded",a);L(V).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:Na,sort:[].sort,splice:[].splice},Ba={};m("multiple,selected,checked,disabled,readOnly,required".split(","),function(b){Ba[v(b)]=b});var xb={};m("input,select,option,textarea,button,form".split(","),function(b){xb[la(b)]=!0});m({data:ca,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=pb(a);if(E(c))b.style[a]=c;else{var d;Z<=8&&(d=b.currentStyle&&b.currentStyle[a],d===""&&(d="auto"));d=d||b.style[a];Z<=8&&(d=d===""?p:d);return d}},attr:function(b,a,c){var d=v(a);if(Ba[d])if(E(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(E(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(E(c))b[a]=c;else return b[a]},text:C(Z<9?function(b,a){if(b.nodeType==1){if(t(a))return b.innerText;b.innerText=a}else{if(t(a))return b.nodeValue;b.nodeValue=a}}:function(b,a){if(t(a))return b.textContent;b.textContent=a},{$dv:""}),val:function(b,a){if(t(a))return b.value;b.value=a},html:function(b,a){if(t(a))return b.innerHTML;for(var c=0,d=b.childNodes;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;c2?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("
").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 
"+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-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;c4096&&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;f0&&(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("").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;Sy.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("
"+R(D)+"
").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;nk.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("
"+R(k)+"
").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;f0){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=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;e1;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;i7),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-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=k+n)for(var j=i.length-k,m=0;m0||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(;dn?(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":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)}},Hc={n:"\n",f:"\u000c",r:"\r",t:"\t",v:"\u000b","'":"'",'"':'"'},fb={},Uc=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 w("This browser does not support XMLHttpRequest.");};Kb.$inject=["$provide"];Lb.$inject=["$locale"];Nb.$inject=["$locale"];var Qb=".",cd={yyyy:B("FullYear",4),yy:B("FullYear",2,0,!0),y:B("FullYear", -1),MMMM:Ha("Month"),MMM:Ha("Month",!0),MM:B("Month",2,1),M:B("Month",1,1),dd:B("Date",2),d:B("Date",1),HH:B("Hours",2),H:B("Hours",1),hh:B("Hours",2,-12),h:B("Hours",1,-12),mm:B("Minutes",2),m:B("Minutes",1),ss:B("Seconds",2),s:B("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 gb(a/60,2)+gb(Math.abs(a%60),2)}},bd=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,ad= -/^\d+$/;Mb.$inject=["$locale"];var Zc=D(v),$c=D(la);Ob.$inject=["$parse"];var fd=D({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()})}}}),ib={};m(Ba,function(a,c){var d=da("ng-"+c);ib[d]=function(){return{priority:100,compile:function(){return function(a,g,h){h.$$observers[c]=[];a.$watch(h[d],function(a){h.$set(c,!!a)})}}}}});m(["src","href"],function(a){var c=da("ng-"+a);ib[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);Z&&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"),h=d.name||d.ngForm;h&&(a[h]=e);g&&c.bind("$destroy", -function(){g.$removeControl(e);h&&(a[h]=p);C(e,Ka)})}}}},gd=D(Na),hd=D(C(W(Na),{restrict:"EAC"})),id=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,jd=/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/,kd=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Vb={text:Ma,number:function(a,c,d,e,g,h){Ma(a,c,d,e,g,h);e.$parsers.push(function(a){var c=U(a);return c||kd.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)&&ai?(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)||ua(a)?(e.$setValidity("number",!0),a):(e.$setValidity("number",!1),p)})},url:function(a,c,d,e,g,h){Ma(a,c,d,e,g,h);a= -function(a){return U(a)||id.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){Ma(a,c,d,e,g,h);a=function(a){return U(a)||jd.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){t(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:r,button:r,submit:r,reset:r},Wb=["$browser","$sniffer",function(a,c){return{restrict:"E",require:"?ngModel",link:function(d,e,g,h){h&& -(Vb[v(g.type)]||Vb.text)(d,e,g,h,c,a)}}}],Ja="ng-valid",Ia="ng-invalid",La="ng-pristine",Sb="ng-dirty",ld=["$scope","$exceptionHandler","$attrs","ngModel","$element",function(a,c,d,e,g){function h(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,i=0,k=this.$error={};g.addClass(La);h(!0);this.$setValidity=function(a,c){if(k[a]!==!c){if(c){if(k[a]&&i--,!i)h(!0),this.$valid=!0,this.$invalid=!1}else h(!1),this.$invalid=!0,this.$valid=!1,i++;k[a]=!c;h(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();m(this.$parsers,function(c){a=c(a)});if(this.$modelValue!==a)this.$modelValue=a,e(a),m(this.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})}; -var j=this;a.$watch(function(){return e()},function(a){if(j.$modelValue!==a){var c=j.$formatters,d=c.length;for(j.$modelValue=a;d--;)a=c[d](a);if(j.$viewValue!==a)j.$viewValue=a,j.$render()}})}],md=[function(){return{inject:{ngModel:"accessor"},require:["ngModel","^?form"],controller:ld,link:function(a,c,d,e){var g=e[0],h=e[1]||Ka;h.$addControl(g);c.bind("$destroy",function(){h.$removeControl(g)})}}}],nd=D({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)})}}}}],od=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(S(a))});return c};e.$parsers.push(h); -e.$formatters.push(function(a){return K(a)&&!ea(h(e.$viewValue),a)?a.join(", "):p})}}},pd=/^(true|false|\d+)$/,qd=[function(){return{priority:100,compile:function(a,c){return pd.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)})}}}}],rd=Q(function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBind);a.$watch(d.ngBind,function(a){c.text(a==p?"":a)})}),sd=["$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)})}}],td=[function(){return function(a,c,d){c.addClass("ng-binding").data("$binding",d.ngBindHtmlUnsafe);a.$watch(d.ngBindHtmlUnsafe,function(a){c.html(a||"")})}}],ud=hb("",!0),vd=hb("Odd",0),wd=hb("Even",1),xd=Q({compile:function(a,c){c.$set("ngCloak",p);a.removeClass("ng-cloak")}}),yd=[function(){return{scope:!0,controller:"@"}}],zd=["$sniffer",function(a){return{priority:1E3, -compile:function(){a.csp=!0}}}],Yb={};m("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,h){var f=d(h[c]);g.bind(v(a),function(a){e.$apply(function(){f(e,{$event:a})})})}}]});var Ad=Q(function(a,c,d){c.bind("submit",function(){a.$apply(d.ngSubmit)})}),Bd=["$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||"",k=h.autoscroll;return function(g,h){var l=0,m,o=function(){m&&(m.$destroy(),m=null);h.html("")};g.$watch(f,function(f){var q=++l;f?a.get(f,{cache:c}).success(function(a){q===l&&(m&&m.$destroy(),m=g.$new(),h.html(a),e(h.contents())(m),E(k)&&(!k||g.$eval(k))&&d(),m.$emit("$includeContentLoaded"),g.$eval(i))}).error(function(){q===l&&o()}):o()})}}}}],Cd=Q({compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Dd=Q({terminal:!0,priority:1E3}), -Ed=["$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),k=h.offset||0,j=e.$eval(i),n={};m(j,function(a,e){n[e]=c(a.replace(d,"{{"+f+"-"+k+"}}"))});e.$watch(function(){var c=parseFloat(e.$eval(f));return isNaN(c)?"":(j[c]||(c=a.pluralCat(c-k)),n[c](e,g,!0))},function(a){g.text(a)})}}}],Fd=Q({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,k,j;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+"'.");k=h[3]||h[1];j=h[2];var n=new bb;a.$watch(function(a){var e,f,h=a.$eval(i),m=ac(h,!0),p,u=new bb,r,t,v,w,A=c;if(K(h))v=h||[];else{v=[];for(r in h)h.hasOwnProperty(r)&&r.charAt(0)!="$"&&v.push(r);v.sort()}e=0;for(f=v.length;ex;)u.pop().element.remove()}for(;v.length>y;)v.pop()[0].element.remove()}var i;if(!(i=r.match(d)))throw w("Expected ngOptions in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '"+r+"'.");var j=c(i[2]||i[1]),k=i[4]||i[6],l=i[5],m=c(i[3]||""),n=c(i[2]?i[1]:k),s=c(i[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@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}'); +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)&&ah?(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;ex;)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@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak{display:none;}ng\\:form{display:block;}'); diff --git a/app/lib/angular/version.txt b/app/lib/angular/version.txt index 6726ce1..7be385a 100644 --- a/app/lib/angular/version.txt +++ b/app/lib/angular/version.txt @@ -1 +1 @@ -1.0.0rc9 +1.0.0rc10 diff --git a/test/lib/angular/angular-mocks.js b/test/lib/angular/angular-mocks.js index 0e22fcc..10facf1 100644 --- a/test/lib/angular/angular-mocks.js +++ b/test/lib/angular/angular-mocks.js @@ -1,6 +1,6 @@ /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT * @@ -1328,6 +1328,25 @@ function MockXhr() { this.abort = angular.noop; } + +/** + * @ngdoc function + * @name angular.module.ngMock.$timeout + * @description + * + * This service is just a simple decorator for {@link angular.module.ng.$timeout $timeout} service + * that adds a "flush" method. + */ + +/** + * @ngdoc method + * @name angular.module.ngMock.$timeout#flush + * @methodOf angular.module.ngMock.$timeout + * @description + * + * Flushes the queue of pending tasks. + */ + /** * @ngdoc overview * @name angular.module.ngMock @@ -1341,6 +1360,13 @@ angular.module('ngMock', ['ng']).provider({ $exceptionHandler: angular.mock.$ExceptionHandlerProvider, $log: angular.mock.$LogProvider, $httpBackend: angular.mock.$HttpBackendProvider +}).config(function($provide) { + $provide.decorator('$timeout', function($delegate, $browser) { + $delegate.flush = function() { + $browser.defer.flush(); + }; + return $delegate; + }); }); diff --git a/test/lib/angular/angular-scenario.js b/test/lib/angular/angular-scenario.js index 2abcd50..2a827df 100644 --- a/test/lib/angular/angular-scenario.js +++ b/test/lib/angular/angular-scenario.js @@ -9404,7 +9404,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) { })( window ); /** - * @license AngularJS v1.0.0rc9 + * @license AngularJS v1.0.0rc10 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ @@ -10648,11 +10648,11 @@ function setupModuleLoader(window) { * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat". */ var version = { - full: '1.0.0rc9', // all of these placeholder strings will be replaced by rake's + full: '1.0.0rc10', // all of these placeholder strings will be replaced by rake's major: 1, // compile task minor: 0, dot: 0, - codeName: 'eggplant-teleportation' + codeName: 'tesseract-giftwrapping' }; @@ -10759,6 +10759,7 @@ function publishExternalAPI(angular){ $q: $QProvider, $sniffer: $SnifferProvider, $templateCache: $TemplateCacheProvider, + $timeout: $TimeoutProvider, $window: $WindowProvider }); } @@ -10951,8 +10952,8 @@ function JQLiteDealoc(element){ } function JQLiteUnbind(element, type, fn) { - var events = JQLiteData(element, 'events'), - handle = JQLiteData(element, 'handle'); + var events = JQLiteExpandoStore(element, 'events'), + handle = JQLiteExpandoStore(element, 'handle'); if (!handle) return; //no listeners registered @@ -10972,44 +10973,56 @@ function JQLiteUnbind(element, type, fn) { } function JQLiteRemoveData(element) { - var cacheId = element[jqName], - cache = jqCache[cacheId]; + var expandoId = element[jqName], + expandoStore = jqCache[expandoId]; - if (cache) { - if (cache.handle) { - cache.events.$destroy && cache.handle({}, '$destroy'); + if (expandoStore) { + if (expandoStore.handle) { + expandoStore.events.$destroy && expandoStore.handle({}, '$destroy'); JQLiteUnbind(element); } - delete jqCache[cacheId]; + delete jqCache[expandoId]; element[jqName] = undefined; // ie does not allow deletion of attributes on elements. } } -function JQLiteData(element, key, value) { - var cacheId = element[jqName], - cache = jqCache[cacheId || -1]; +function JQLiteExpandoStore(element, key, value) { + var expandoId = element[jqName], + expandoStore = jqCache[expandoId || -1]; if (isDefined(value)) { - if (!cache) { - element[jqName] = cacheId = jqNextId(); - cache = jqCache[cacheId] = {}; + if (!expandoStore) { + element[jqName] = expandoId = jqNextId(); + expandoStore = jqCache[expandoId] = {}; } - cache[key] = value; + expandoStore[key] = value; } else { - if (isDefined(key)) { - if (isObject(key)) { - if (!cacheId) element[jqName] = cacheId = jqNextId(); - jqCache[cacheId] = cache = (jqCache[cacheId] || {}); - extend(cache, key); + return expandoStore && expandoStore[key]; + } +} + +function JQLiteData(element, key, value) { + var data = JQLiteExpandoStore(element, 'data'), + isSetter = isDefined(value), + keyDefined = !isSetter && isDefined(key), + isSimpleGetter = keyDefined && !isObject(key); + + if (!data && !isSimpleGetter) { + JQLiteExpandoStore(element, 'data', data = {}); + } + + if (isSetter) { + data[key] = value; + } else { + if (keyDefined) { + if (isSimpleGetter) { + // don't create data in this case. + return data && data[key]; } else { - return cache ? cache[key] : undefined; + extend(data, key); } } else { - if (!cacheId) element[jqName] = cacheId = jqNextId(); - - return cache - ? cache - : cache = jqCache[cacheId] = {}; + return data; } } } @@ -11348,11 +11361,11 @@ forEach({ dealoc: JQLiteDealoc, bind: function bindFn(element, type, fn){ - var events = JQLiteData(element, 'events'), - handle = JQLiteData(element, 'handle'); + var events = JQLiteExpandoStore(element, 'events'), + handle = JQLiteExpandoStore(element, 'handle'); - if (!events) JQLiteData(element, 'events', events = {}); - if (!handle) JQLiteData(element, 'handle', handle = createEventHandler(element, events)); + if (!events) JQLiteExpandoStore(element, 'events', events = {}); + if (!handle) JQLiteExpandoStore(element, 'handle', handle = createEventHandler(element, events)); forEach(type.split(' '), function(type){ var eventFns = events[type]; @@ -13856,6 +13869,8 @@ function $ControllerProvider() { /** * @ngdoc function * @name angular.module.ng.$defer + * @deprecated Made obsolete by $timeout service. Please migrate your code. This service will be + * removed with 1.0 final. * @requires $browser * * @description @@ -13882,7 +13897,9 @@ function $ControllerProvider() { * @returns {boolean} Returns `true` if the task hasn't executed yet and was successfuly canceled. */ function $DeferProvider(){ - this.$get = ['$rootScope', '$browser', function($rootScope, $browser) { + this.$get = ['$rootScope', '$browser', '$log', function($rootScope, $browser, $log) { + $log.warn('$defer service has been deprecated, migrate to $timeout'); + function defer(fn, delay) { return $browser.defer(function() { $rootScope.$apply(fn); @@ -16719,7 +16736,7 @@ function $RootScopeProvider(){ watchLog = [], logIdx, logMsg; - flagPhase(target, '$digest'); + beginPhase('$digest'); do { dirty = false; @@ -16776,12 +16793,13 @@ function $RootScopeProvider(){ } while ((current = next)); if(dirty && !(ttl--)) { + clearPhase(); throw Error(TTL + ' $digest() iterations reached. Aborting!\n' + 'Watchers fired in the last 5 iterations: ' + toJson(watchLog)); } } while (dirty || asyncQueue.length); - this.$root.$$phase = null; + clearPhase(); }, @@ -16816,7 +16834,7 @@ function $RootScopeProvider(){ * perform any necessary cleanup. */ $destroy: function() { - if (this.$root == this) return; // we can't remove the root node; + if ($rootScope == this) return; // we can't remove the root node; var parent = this.$parent; this.$broadcast('$destroy'); @@ -16933,13 +16951,18 @@ function $RootScopeProvider(){ */ $apply: function(expr) { try { - flagPhase(this, '$apply'); + beginPhase('$apply'); return this.$eval(expr); } catch (e) { $exceptionHandler(e); } finally { - this.$root.$$phase = null; - this.$root.$digest(); + clearPhase(); + try { + $rootScope.$digest(); + } catch (e) { + $exceptionHandler(e); + throw e; + } } }, @@ -16963,9 +16986,10 @@ function $RootScopeProvider(){ * - `targetScope` - {Scope}: the scope on which the event was `$emit`-ed or `$broadcast`-ed. * - `currentScope` - {Scope}: the current scope which is handling the event. * - `name` - {string}: Name of the event. - * - `cancel` - {function=}: calling `cancel` function will cancel further event propagation + * - `stopPropagation` - {function=}: calling `stopPropagation` function will cancel further event propagation * (available only for events that were `$emit`-ed). - * - `cancelled` - {boolean}: Whether the event was cancelled. + * - `preventDefault` - {function}: calling `preventDefault` sets `defaultPrevented` flag to true. + * - `defaultPrevented` - {boolean}: true if `preventDefault` was called. */ $on: function(name, listener) { var namedListeners = this.$$listeners[name]; @@ -17006,11 +17030,15 @@ function $RootScopeProvider(){ var empty = [], namedListeners, scope = this, + stopPropagation = false, event = { name: name, targetScope: scope, - cancel: function() {event.cancelled = true;}, - cancelled: false + stopPropagation: function() {stopPropagation = true;}, + preventDefault: function() { + event.defaultPrevented = true; + }, + defaultPrevented: false }, listenerArgs = concat([event], arguments, 1), i, length; @@ -17021,7 +17049,7 @@ function $RootScopeProvider(){ for (i=0, length=namedListeners.length; i * @@ -21990,10 +22113,9 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp * Special properties are exposed on the local scope of each template instance, including: * * * `$index` – `{number}` – iterator offset of the repeated element (0..length-1) - * * `$position` – `{string}` – position of the repeated element in the iterator. One of: - * * `'first'`, - * * `'middle'` - * * `'last'` + * * `$first` – `{boolean}` – true if the repeated element is first in the iterator. + * * `$middle` – `{boolean}` – true if the repeated element is between the first and last in the iterator. + * * `$last` – `{boolean}` – true if the repeated element is last in the iterator. * * * @element ANY @@ -22123,9 +22245,10 @@ var ngRepeatDirective = ngDirective({ childScope[valueIdent] = value; if (keyIdent) childScope[keyIdent] = key; childScope.$index = index; - childScope.$position = index === 0 ? - 'first' : - (index == collectionLength - 1 ? 'last' : 'middle'); + + childScope.$first = (index === 0); + childScope.$last = (index === (collectionLength - 1)); + childScope.$middle = !(childScope.$first || childScope.$last); if (!last) { linker(childScope, function(clone){ diff --git a/test/lib/angular/version.txt b/test/lib/angular/version.txt index 6726ce1..7be385a 100644 --- a/test/lib/angular/version.txt +++ b/test/lib/angular/version.txt @@ -1 +1 @@ -1.0.0rc9 +1.0.0rc10