|
|
|
@ -1,284 +1,286 @@
|
|
|
|
|
/*
|
|
|
|
|
AngularJS v1.4.0-build.3937+sha.171b9f7
|
|
|
|
|
AngularJS v1.4.0-build.3954+sha.9dfa949
|
|
|
|
|
(c) 2010-2015 Google, Inc. http://angularjs.org
|
|
|
|
|
License: MIT
|
|
|
|
|
*/
|
|
|
|
|
(function(O,Y,u){'use strict';function H(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.4.0-build.3937+sha.171b9f7/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Ra(b){if(null==b||Sa(b))return!1;var a=b.length;
|
|
|
|
|
return b.nodeType===na&&a?!0:I(b)||C(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function n(b,a,c){var d,e;if(b)if(G(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(C(b)||Ra(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==n)b.forEach(a,c,b);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d,b);return b}function Ld(b,a,c){for(var d=Object.keys(b).sort(),
|
|
|
|
|
e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function jc(b){return function(a,c){b(c,a)}}function Md(){return++jb}function kc(b,a){a?b.$$hashKey=a:delete b.$$hashKey}function Kb(b,a,c){for(var d=b.$$hashKey,e=0,f=a.length;e<f;++e){var h=a[e];if(E(h)||G(h))for(var g=Object.keys(h),l=0,k=g.length;l<k;l++){var m=g[l],q=h[m];c&&E(q)?(E(b[m])||(b[m]=C(q)?[]:{}),Kb(b[m],[q],!0)):b[m]=q}}kc(b,d);return b}function Q(b){return Kb(b,qa.call(arguments,1),!1)}function Nd(b){return Kb(b,qa.call(arguments,
|
|
|
|
|
1),!0)}function ba(b){return parseInt(b,10)}function Lb(b,a){return Q(Object.create(b),a)}function w(){}function Ta(b){return b}function oa(b){return function(){return b}}function D(b){return"undefined"===typeof b}function x(b){return"undefined"!==typeof b}function E(b){return null!==b&&"object"===typeof b}function I(b){return"string"===typeof b}function W(b){return"number"===typeof b}function da(b){return"[object Date]"===ra.call(b)}function G(b){return"function"===typeof b}function Ua(b){return"[object RegExp]"===
|
|
|
|
|
ra.call(b)}function Sa(b){return b&&b.window===b}function Va(b){return b&&b.$evalAsync&&b.$watch}function Wa(b){return"boolean"===typeof b}function lc(b){return!(!b||!(b.nodeName||b.prop&&b.attr&&b.find))}function Od(b){var a={};b=b.split(",");var c;for(c=0;c<b.length;c++)a[b[c]]=!0;return a}function sa(b){return M(b.nodeName||b[0]&&b[0].nodeName)}function Xa(b,a){var c=b.indexOf(a);0<=c&&b.splice(c,1);return c}function ta(b,a,c,d){if(Sa(b)||Va(b))throw Ea("cpws");if(mc.test(ra.call(a)))throw Ea("cpta");
|
|
|
|
|
if(a){if(b===a)throw Ea("cpi");c=c||[];d=d||[];if(E(b)){var e=c.indexOf(b);if(-1!==e)return d[e];c.push(b);d.push(a)}if(C(b))for(var f=a.length=0;f<b.length;f++)e=ta(b[f],null,c,d),E(b[f])&&(c.push(b[f]),d.push(e)),a.push(e);else{var h=a.$$hashKey;C(a)?a.length=0:n(a,function(b,c){delete a[c]});for(f in b)b.hasOwnProperty(f)&&(e=ta(b[f],null,c,d),E(b[f])&&(c.push(b[f]),d.push(e)),a[f]=e);kc(a,h)}}else if(a=b)C(b)?a=ta(b,[],c,d):mc.test(ra.call(b))?a=new b.constructor(b):da(b)?a=new Date(b.getTime()):
|
|
|
|
|
Ua(b)?(a=new RegExp(b.source,b.toString().match(/[^\/]*$/)[0]),a.lastIndex=b.lastIndex):E(b)&&(e=Object.create(Object.getPrototypeOf(b)),a=ta(b,e,c,d));return a}function ea(b,a){if(C(b)){a=a||[];for(var c=0,d=b.length;c<d;c++)a[c]=b[c]}else if(E(b))for(c in a=a||{},b)if("$"!==c.charAt(0)||"$"!==c.charAt(1))a[c]=b[c];return a||b}function ja(b,a){if(b===a)return!0;if(null===b||null===a)return!1;if(b!==b&&a!==a)return!0;var c=typeof b,d;if(c==typeof a&&"object"==c)if(C(b)){if(!C(a))return!1;if((c=b.length)==
|
|
|
|
|
a.length){for(d=0;d<c;d++)if(!ja(b[d],a[d]))return!1;return!0}}else{if(da(b))return da(a)?ja(b.getTime(),a.getTime()):!1;if(Ua(b))return Ua(a)?b.toString()==a.toString():!1;if(Va(b)||Va(a)||Sa(b)||Sa(a)||C(a)||da(a)||Ua(a))return!1;c={};for(d in b)if("$"!==d.charAt(0)&&!G(b[d])){if(!ja(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&a[d]!==u&&!G(a[d]))return!1;return!0}return!1}function Ya(b,a,c){return b.concat(qa.call(a,c))}function nc(b,a){var c=2<arguments.length?
|
|
|
|
|
qa.call(arguments,2):[];return!G(a)||a instanceof RegExp?a:c.length?function(){return arguments.length?a.apply(b,Ya(c,arguments,0)):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}}function Pd(b,a){var c=a;"string"===typeof b&&"$"===b.charAt(0)&&"$"===b.charAt(1)?c=u:Sa(a)?c="$WINDOW":a&&Y===a?c="$DOCUMENT":Va(a)&&(c="$SCOPE");return c}function Za(b,a){if("undefined"===typeof b)return u;W(a)||(a=a?2:null);return JSON.stringify(b,Pd,a)}function oc(b){return I(b)?JSON.parse(b):
|
|
|
|
|
b}function pc(b,a){var c=Date.parse("Jan 01, 1970 00:00:00 "+b)/6E4;return isNaN(c)?a:c}function Mb(b,a,c){c=c?-1:1;var d=pc(a,b.getTimezoneOffset());a=b;b=c*(d-b.getTimezoneOffset());a=new Date(a.getTime());a.setMinutes(a.getMinutes()+b);return a}function ua(b){b=A(b).clone();try{b.empty()}catch(a){}var c=A("<div>").append(b).html();try{return b[0].nodeType===$a?M(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+M(b)})}catch(d){return M(c)}}function qc(b){try{return decodeURIComponent(b)}catch(a){}}
|
|
|
|
|
function rc(b){var a={},c,d;n((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,"%20").split("="),d=qc(c[0]),x(d)&&(b=x(c[1])?qc(c[1]):!0,sc.call(a,d)?C(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Nb(b){var a=[];n(b,function(b,d){C(b)?n(b,function(b){a.push(Fa(d,!0)+(!0===b?"":"="+Fa(b,!0)))}):a.push(Fa(d,!0)+(!0===b?"":"="+Fa(b,!0)))});return a.length?a.join("&"):""}function kb(b){return Fa(b,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function Fa(b,a){return encodeURIComponent(b).replace(/%40/gi,
|
|
|
|
|
"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Qd(b,a){var c,d,e=Ma.length;for(d=0;d<e;++d)if(c=Ma[d]+a,I(c=b.getAttribute(c)))return c;return null}function Rd(b,a){var c,d,e={};n(Ma,function(a){a+="app";!c&&b.hasAttribute&&b.hasAttribute(a)&&(c=b,d=b.getAttribute(a))});n(Ma,function(a){a+="app";var e;!c&&(e=b.querySelector("["+a.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(a))});c&&(e.strictDi=null!==Qd(c,"strict-di"),
|
|
|
|
|
a(c,d?[d]:[],e))}function tc(b,a,c){E(c)||(c={});c=Q({strictDi:!1},c);var d=function(){b=A(b);if(b.injector()){var d=b[0]===Y?"document":ua(b);throw Ea("btstrpd",d.replace(/</,"<").replace(/>/,">"));}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);c.debugInfoEnabled&&a.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);a.unshift("ng");d=ab(a,c.strictDi);d.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",
|
|
|
|
|
d);c(b)(a)})}]);return d},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;O&&e.test(O.name)&&(c.debugInfoEnabled=!0,O.name=O.name.replace(e,""));if(O&&!f.test(O.name))return d();O.name=O.name.replace(f,"");$.resumeBootstrap=function(b){n(b,function(b){a.push(b)});return d()};G($.resumeDeferredBootstrap)&&$.resumeDeferredBootstrap()}function Sd(){O.name="NG_ENABLE_DEBUG_INFO!"+O.name;O.location.reload()}function Td(b){b=$.element(b).injector();if(!b)throw Ea("test");return b.get("$$testability")}
|
|
|
|
|
function uc(b,a){a=a||"_";return b.replace(Ud,function(b,d){return(d?a:"")+b.toLowerCase()})}function Vd(){var b;if(!vc){var a=lb();ka=O.jQuery;x(a)&&(ka=null===a?u:O[a]);ka&&ka.fn.on?(A=ka,Q(ka.fn,{scope:Na.scope,isolateScope:Na.isolateScope,controller:Na.controller,injector:Na.injector,inheritedData:Na.inheritedData}),b=ka.cleanData,ka.cleanData=function(a){var d;if(Ob)Ob=!1;else for(var e=0,f;null!=(f=a[e]);e++)(d=ka._data(f,"events"))&&d.$destroy&&ka(f).triggerHandler("$destroy");b(a)}):A=P;$.element=
|
|
|
|
|
A;vc=!0}}function Pb(b,a,c){if(!b)throw Ea("areq",a||"?",c||"required");return b}function Oa(b,a,c){c&&C(b)&&(b=b[b.length-1]);Pb(G(b),a,"not a function, got "+(b&&"object"===typeof b?b.constructor.name||"Object":typeof b));return b}function Pa(b,a){if("hasOwnProperty"===b)throw Ea("badname",a);}function wc(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,f=a.length,h=0;h<f;h++)d=a[h],b&&(b=(e=b)[d]);return!c&&G(b)?nc(e,b):b}function mb(b){var a=b[0];b=b[b.length-1];var c=[a];do{a=a.nextSibling;
|
|
|
|
|
if(!a)break;c.push(a)}while(a!==b);return A(c)}function la(){return Object.create(null)}function Wd(b){function a(a,b,c){return a[b]||(a[b]=c())}var c=H("$injector"),d=H("ng");b=a(b,"angular",Object);b.$$minErr=b.$$minErr||H;return a(b,"module",function(){var b={};return function(f,h,g){if("hasOwnProperty"===f)throw d("badname","module");h&&b.hasOwnProperty(f)&&(b[f]=null);return a(b,f,function(){function a(c,d,e,f){f||(f=b);return function(){f[e||"push"]([c,d,arguments]);return t}}if(!h)throw c("nomod",
|
|
|
|
|
(function(O,Y,u){'use strict';function J(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.4.0-build.3954+sha.9dfa949/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=encodeURIComponent,e;e=arguments[a];e="function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):"undefined"==typeof e?"undefined":"string"!=typeof e?JSON.stringify(e):e;c+=d(e)}return Error(c)}}function Ra(b){if(null==b||Sa(b))return!1;var a=b.length;
|
|
|
|
|
return b.nodeType===oa&&a?!0:D(b)||I(b)||0===a||"number"===typeof a&&0<a&&a-1 in b}function n(b,a,c){var d,e;if(b)if(H(b))for(d in b)"prototype"==d||"length"==d||"name"==d||b.hasOwnProperty&&!b.hasOwnProperty(d)||a.call(c,b[d],d,b);else if(I(b)||Ra(b)){var f="object"!==typeof b;d=0;for(e=b.length;d<e;d++)(f||d in b)&&a.call(c,b[d],d,b)}else if(b.forEach&&b.forEach!==n)b.forEach(a,c,b);else for(d in b)b.hasOwnProperty(d)&&a.call(c,b[d],d,b);return b}function Nd(b,a,c){for(var d=Object.keys(b).sort(),
|
|
|
|
|
e=0;e<d.length;e++)a.call(c,b[d[e]],d[e]);return d}function jc(b){return function(a,c){b(c,a)}}function Od(){return++jb}function kc(b,a){a?b.$$hashKey=a:delete b.$$hashKey}function Kb(b,a,c){for(var d=b.$$hashKey,e=0,f=a.length;e<f;++e){var h=a[e];if(C(h)||H(h))for(var g=Object.keys(h),l=0,k=g.length;l<k;l++){var m=g[l],q=h[m];c&&C(q)?(C(b[m])||(b[m]=I(q)?[]:{}),Kb(b[m],[q],!0)):b[m]=q}}kc(b,d);return b}function T(b){return Kb(b,qa.call(arguments,1),!1)}function Pd(b){return Kb(b,qa.call(arguments,
|
|
|
|
|
1),!0)}function ca(b){return parseInt(b,10)}function Lb(b,a){return T(Object.create(b),a)}function z(){}function Ta(b){return b}function pa(b){return function(){return b}}function F(b){return"undefined"===typeof b}function w(b){return"undefined"!==typeof b}function C(b){return null!==b&&"object"===typeof b}function D(b){return"string"===typeof b}function X(b){return"number"===typeof b}function ea(b){return"[object Date]"===ra.call(b)}function H(b){return"function"===typeof b}function Ua(b){return"[object RegExp]"===
|
|
|
|
|
ra.call(b)}function Sa(b){return b&&b.window===b}function Va(b){return b&&b.$evalAsync&&b.$watch}function Wa(b){return"boolean"===typeof b}function lc(b){return!(!b||!(b.nodeName||b.prop&&b.attr&&b.find))}function Qd(b){var a={};b=b.split(",");var c;for(c=0;c<b.length;c++)a[b[c]]=!0;return a}function sa(b){return N(b.nodeName||b[0]&&b[0].nodeName)}function Xa(b,a){var c=b.indexOf(a);0<=c&&b.splice(c,1);return c}function ta(b,a,c,d){if(Sa(b)||Va(b))throw Da("cpws");if(mc.test(ra.call(a)))throw Da("cpta");
|
|
|
|
|
if(a){if(b===a)throw Da("cpi");c=c||[];d=d||[];if(C(b)){var e=c.indexOf(b);if(-1!==e)return d[e];c.push(b);d.push(a)}if(I(b))for(var f=a.length=0;f<b.length;f++)e=ta(b[f],null,c,d),C(b[f])&&(c.push(b[f]),d.push(e)),a.push(e);else{var h=a.$$hashKey;I(a)?a.length=0:n(a,function(b,c){delete a[c]});for(f in b)b.hasOwnProperty(f)&&(e=ta(b[f],null,c,d),C(b[f])&&(c.push(b[f]),d.push(e)),a[f]=e);kc(a,h)}}else if(a=b)I(b)?a=ta(b,[],c,d):mc.test(ra.call(b))?a=new b.constructor(b):ea(b)?a=new Date(b.getTime()):
|
|
|
|
|
Ua(b)?(a=new RegExp(b.source,b.toString().match(/[^\/]*$/)[0]),a.lastIndex=b.lastIndex):C(b)&&(e=Object.create(Object.getPrototypeOf(b)),a=ta(b,e,c,d));return a}function fa(b,a){if(I(b)){a=a||[];for(var c=0,d=b.length;c<d;c++)a[c]=b[c]}else if(C(b))for(c in a=a||{},b)if("$"!==c.charAt(0)||"$"!==c.charAt(1))a[c]=b[c];return a||b}function ka(b,a){if(b===a)return!0;if(null===b||null===a)return!1;if(b!==b&&a!==a)return!0;var c=typeof b,d;if(c==typeof a&&"object"==c)if(I(b)){if(!I(a))return!1;if((c=b.length)==
|
|
|
|
|
a.length){for(d=0;d<c;d++)if(!ka(b[d],a[d]))return!1;return!0}}else{if(ea(b))return ea(a)?ka(b.getTime(),a.getTime()):!1;if(Ua(b))return Ua(a)?b.toString()==a.toString():!1;if(Va(b)||Va(a)||Sa(b)||Sa(a)||I(a)||ea(a)||Ua(a))return!1;c={};for(d in b)if("$"!==d.charAt(0)&&!H(b[d])){if(!ka(b[d],a[d]))return!1;c[d]=!0}for(d in a)if(!c.hasOwnProperty(d)&&"$"!==d.charAt(0)&&a[d]!==u&&!H(a[d]))return!1;return!0}return!1}function Ya(b,a,c){return b.concat(qa.call(a,c))}function nc(b,a){var c=2<arguments.length?
|
|
|
|
|
qa.call(arguments,2):[];return!H(a)||a instanceof RegExp?a:c.length?function(){return arguments.length?a.apply(b,Ya(c,arguments,0)):a.apply(b,c)}:function(){return arguments.length?a.apply(b,arguments):a.call(b)}}function Rd(b,a){var c=a;"string"===typeof b&&"$"===b.charAt(0)&&"$"===b.charAt(1)?c=u:Sa(a)?c="$WINDOW":a&&Y===a?c="$DOCUMENT":Va(a)&&(c="$SCOPE");return c}function Za(b,a){if("undefined"===typeof b)return u;X(a)||(a=a?2:null);return JSON.stringify(b,Rd,a)}function oc(b){return D(b)?JSON.parse(b):
|
|
|
|
|
b}function pc(b,a){var c=Date.parse("Jan 01, 1970 00:00:00 "+b)/6E4;return isNaN(c)?a:c}function Mb(b,a,c){c=c?-1:1;var d=pc(a,b.getTimezoneOffset());a=b;b=c*(d-b.getTimezoneOffset());a=new Date(a.getTime());a.setMinutes(a.getMinutes()+b);return a}function ua(b){b=E(b).clone();try{b.empty()}catch(a){}var c=E("<div>").append(b).html();try{return b[0].nodeType===$a?N(c):c.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(a,b){return"<"+N(b)})}catch(d){return N(c)}}function qc(b){try{return decodeURIComponent(b)}catch(a){}}
|
|
|
|
|
function rc(b){var a={},c,d;n((b||"").split("&"),function(b){b&&(c=b.replace(/\+/g,"%20").split("="),d=qc(c[0]),w(d)&&(b=w(c[1])?qc(c[1]):!0,sc.call(a,d)?I(a[d])?a[d].push(b):a[d]=[a[d],b]:a[d]=b))});return a}function Nb(b){var a=[];n(b,function(b,d){I(b)?n(b,function(b){a.push(va(d,!0)+(!0===b?"":"="+va(b,!0)))}):a.push(va(d,!0)+(!0===b?"":"="+va(b,!0)))});return a.length?a.join("&"):""}function kb(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(/%3B/gi,";").replace(/%20/g,a?"%20":"+")}function Sd(b,a){var c,d,e=Ma.length;for(d=0;d<e;++d)if(c=Ma[d]+a,D(c=b.getAttribute(c)))return c;return null}function Td(b,a){var c,d,e={};n(Ma,function(a){a+="app";!c&&b.hasAttribute&&b.hasAttribute(a)&&(c=b,d=b.getAttribute(a))});n(Ma,function(a){a+="app";var e;!c&&(e=b.querySelector("["+a.replace(":","\\:")+"]"))&&(c=e,d=e.getAttribute(a))});c&&(e.strictDi=null!==Sd(c,"strict-di"),
|
|
|
|
|
a(c,d?[d]:[],e))}function tc(b,a,c){C(c)||(c={});c=T({strictDi:!1},c);var d=function(){b=E(b);if(b.injector()){var d=b[0]===Y?"document":ua(b);throw Da("btstrpd",d.replace(/</,"<").replace(/>/,">"));}a=a||[];a.unshift(["$provide",function(a){a.value("$rootElement",b)}]);c.debugInfoEnabled&&a.push(["$compileProvider",function(a){a.debugInfoEnabled(!0)}]);a.unshift("ng");d=ab(a,c.strictDi);d.invoke(["$rootScope","$rootElement","$compile","$injector",function(a,b,c,d){a.$apply(function(){b.data("$injector",
|
|
|
|
|
d);c(b)(a)})}]);return d},e=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;O&&e.test(O.name)&&(c.debugInfoEnabled=!0,O.name=O.name.replace(e,""));if(O&&!f.test(O.name))return d();O.name=O.name.replace(f,"");aa.resumeBootstrap=function(b){n(b,function(b){a.push(b)});return d()};H(aa.resumeDeferredBootstrap)&&aa.resumeDeferredBootstrap()}function Ud(){O.name="NG_ENABLE_DEBUG_INFO!"+O.name;O.location.reload()}function Vd(b){b=aa.element(b).injector();if(!b)throw Da("test");return b.get("$$testability")}
|
|
|
|
|
function uc(b,a){a=a||"_";return b.replace(Wd,function(b,d){return(d?a:"")+b.toLowerCase()})}function Xd(){var b;if(!vc){var a=lb();la=O.jQuery;w(a)&&(la=null===a?u:O[a]);la&&la.fn.on?(E=la,T(la.fn,{scope:Na.scope,isolateScope:Na.isolateScope,controller:Na.controller,injector:Na.injector,inheritedData:Na.inheritedData}),b=la.cleanData,la.cleanData=function(a){var d;if(Ob)Ob=!1;else for(var e=0,f;null!=(f=a[e]);e++)(d=la._data(f,"events"))&&d.$destroy&&la(f).triggerHandler("$destroy");b(a)}):E=P;aa.element=
|
|
|
|
|
E;vc=!0}}function Pb(b,a,c){if(!b)throw Da("areq",a||"?",c||"required");return b}function Oa(b,a,c){c&&I(b)&&(b=b[b.length-1]);Pb(H(b),a,"not a function, got "+(b&&"object"===typeof b?b.constructor.name||"Object":typeof b));return b}function Pa(b,a){if("hasOwnProperty"===b)throw Da("badname",a);}function wc(b,a,c){if(!a)return b;a=a.split(".");for(var d,e=b,f=a.length,h=0;h<f;h++)d=a[h],b&&(b=(e=b)[d]);return!c&&H(b)?nc(e,b):b}function mb(b){var a=b[0];b=b[b.length-1];var c=[a];do{a=a.nextSibling;
|
|
|
|
|
if(!a)break;c.push(a)}while(a!==b);return E(c)}function ma(){return Object.create(null)}function Yd(b){function a(a,b,c){return a[b]||(a[b]=c())}var c=J("$injector"),d=J("ng");b=a(b,"angular",Object);b.$$minErr=b.$$minErr||J;return a(b,"module",function(){var b={};return function(f,h,g){if("hasOwnProperty"===f)throw d("badname","module");h&&b.hasOwnProperty(f)&&(b[f]=null);return a(b,f,function(){function a(c,d,e,f){f||(f=b);return function(){f[e||"push"]([c,d,arguments]);return t}}if(!h)throw c("nomod",
|
|
|
|
|
f);var b=[],d=[],e=[],r=a("$injector","invoke","push",d),t={_invokeQueue:b,_configBlocks:d,_runBlocks:e,requires:h,name:f,provider:a("$provide","provider"),factory:a("$provide","factory"),service:a("$provide","service"),value:a("$provide","value"),constant:a("$provide","constant","unshift"),decorator:a("$provide","decorator"),animation:a("$animateProvider","register"),filter:a("$filterProvider","register"),controller:a("$controllerProvider","register"),directive:a("$compileProvider","directive"),
|
|
|
|
|
config:r,run:function(a){e.push(a);return this}};g&&r(g);return t})}})}function Xd(b){Q(b,{bootstrap:tc,copy:ta,extend:Q,merge:Nd,equals:ja,element:A,forEach:n,injector:ab,noop:w,bind:nc,toJson:Za,fromJson:oc,identity:Ta,isUndefined:D,isDefined:x,isString:I,isFunction:G,isObject:E,isNumber:W,isElement:lc,isArray:C,version:Yd,isDate:da,lowercase:M,uppercase:nb,callbacks:{counter:0},getTestability:Td,$$minErr:H,$$csp:bb,reloadWithDebugInfo:Sd});cb=Wd(O);try{cb("ngLocale")}catch(a){cb("ngLocale",[]).provider("$locale",
|
|
|
|
|
Zd)}cb("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:$d});a.provider("$compile",xc).directive({a:ae,input:yc,textarea:yc,form:be,script:ce,select:de,style:ee,option:fe,ngBind:ge,ngBindHtml:he,ngBindTemplate:ie,ngClass:je,ngClassEven:ke,ngClassOdd:le,ngCloak:me,ngController:ne,ngForm:oe,ngHide:pe,ngIf:qe,ngInclude:re,ngInit:se,ngNonBindable:te,ngPluralize:ue,ngRepeat:ve,ngShow:we,ngStyle:xe,ngSwitch:ye,ngSwitchWhen:ze,ngSwitchDefault:Ae,ngOptions:Be,ngTransclude:Ce,ngModel:De,
|
|
|
|
|
ngList:Ee,ngChange:Fe,pattern:zc,ngPattern:zc,required:Ac,ngRequired:Ac,minlength:Bc,ngMinlength:Bc,maxlength:Cc,ngMaxlength:Cc,ngValue:Ge,ngModelOptions:He}).directive({ngInclude:Ie}).directive(ob).directive(Dc);a.provider({$anchorScroll:Je,$animate:Ke,$browser:Le,$cacheFactory:Me,$controller:Ne,$document:Oe,$exceptionHandler:Pe,$filter:Ec,$interpolate:Qe,$interval:Re,$http:Se,$httpBackend:Te,$location:Ue,$log:Ve,$parse:We,$rootScope:Xe,$q:Ye,$$q:Ze,$sce:$e,$sceDelegate:af,$sniffer:bf,$templateCache:cf,
|
|
|
|
|
$templateRequest:df,$$testability:ef,$timeout:ff,$window:gf,$$rAF:hf,$$asyncCallback:jf,$$jqLite:kf,$$HashMap:lf,$$cookieReader:mf})}])}function db(b){return b.replace(nf,function(a,b,d,e){return e?d.toUpperCase():d}).replace(of,"Moz$1")}function Fc(b){b=b.nodeType;return b===na||!b||9===b}function Gc(b,a){var c,d,e=a.createDocumentFragment(),f=[];if(Qb.test(b)){c=c||e.appendChild(a.createElement("div"));d=(pf.exec(b)||["",""])[1].toLowerCase();d=fa[d]||fa._default;c.innerHTML=d[1]+b.replace(qf,"<$1></$2>")+
|
|
|
|
|
d[2];for(d=d[0];d--;)c=c.lastChild;f=Ya(f,c.childNodes);c=e.firstChild;c.textContent=""}else f.push(a.createTextNode(b));e.textContent="";e.innerHTML="";n(f,function(a){e.appendChild(a)});return e}function P(b){if(b instanceof P)return b;var a;I(b)&&(b=V(b),a=!0);if(!(this instanceof P)){if(a&&"<"!=b.charAt(0))throw Rb("nosel");return new P(b)}if(a){a=Y;var c;b=(c=rf.exec(b))?[a.createElement(c[1])]:(c=Gc(b,a))?c.childNodes:[]}Hc(this,b)}function Sb(b){return b.cloneNode(!0)}function pb(b,a){a||qb(b);
|
|
|
|
|
if(b.querySelectorAll)for(var c=b.querySelectorAll("*"),d=0,e=c.length;d<e;d++)qb(c[d])}function Ic(b,a,c,d){if(x(d))throw Rb("offargs");var e=(d=rb(b))&&d.events,f=d&&d.handle;if(f)if(a)n(a.split(" "),function(a){if(x(c)){var d=e[a];Xa(d||[],c);if(d&&0<d.length)return}b.removeEventListener(a,f,!1);delete e[a]});else for(a in e)"$destroy"!==a&&b.removeEventListener(a,f,!1),delete e[a]}function qb(b,a){var c=b.ng339,d=c&&sb[c];d&&(a?delete d.data[a]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),
|
|
|
|
|
Ic(b)),delete sb[c],b.ng339=u))}function rb(b,a){var c=b.ng339,c=c&&sb[c];a&&!c&&(b.ng339=c=++sf,c=sb[c]={events:{},data:{},handle:u});return c}function Tb(b,a,c){if(Fc(b)){var d=x(c),e=!d&&a&&!E(a),f=!a;b=(b=rb(b,!e))&&b.data;if(d)b[a]=c;else{if(f)return b;if(e)return b&&b[a];Q(b,a)}}}function tb(b,a){return b.getAttribute?-1<(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" "):!1}function ub(b,a){a&&b.setAttribute&&n(a.split(" "),function(a){b.setAttribute("class",V((" "+
|
|
|
|
|
(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+V(a)+" "," ")))})}function vb(b,a){if(a&&b.setAttribute){var c=(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");n(a.split(" "),function(a){a=V(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});b.setAttribute("class",V(c))}}function Hc(b,a){if(a)if(a.nodeType)b[b.length++]=a;else{var c=a.length;if("number"===typeof c&&a.window!==a){if(c)for(var d=0;d<c;d++)b[b.length++]=a[d]}else b[b.length++]=a}}function Jc(b,a){return wb(b,
|
|
|
|
|
"$"+(a||"ngController")+"Controller")}function wb(b,a,c){9==b.nodeType&&(b=b.documentElement);for(a=C(a)?a:[a];b;){for(var d=0,e=a.length;d<e;d++)if((c=A.data(b,a[d]))!==u)return c;b=b.parentNode||11===b.nodeType&&b.host}}function Kc(b){for(pb(b,!0);b.firstChild;)b.removeChild(b.firstChild)}function Ub(b,a){a||pb(b);var c=b.parentNode;c&&c.removeChild(b)}function tf(b,a){a=a||O;if("complete"===a.document.readyState)a.setTimeout(b);else A(a).on("load",b)}function Lc(b,a){var c=xb[a.toLowerCase()];
|
|
|
|
|
return c&&Mc[sa(b)]&&c}function uf(b,a){var c=b.nodeName;return("INPUT"===c||"TEXTAREA"===c)&&Nc[a]}function vf(b,a){var c=function(c,e){c.isDefaultPrevented=function(){return c.defaultPrevented};var f=a[e||c.type],h=f?f.length:0;if(h){if(D(c.immediatePropagationStopped)){var g=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();g&&g.call(c)}}c.isImmediatePropagationStopped=function(){return!0===c.immediatePropagationStopped};
|
|
|
|
|
1<h&&(f=ea(f));for(var l=0;l<h;l++)c.isImmediatePropagationStopped()||f[l].call(b,c)}};c.elem=b;return c}function kf(){this.$get=function(){return Q(P,{hasClass:function(b,a){b.attr&&(b=b[0]);return tb(b,a)},addClass:function(b,a){b.attr&&(b=b[0]);return vb(b,a)},removeClass:function(b,a){b.attr&&(b=b[0]);return ub(b,a)}})}}function Ga(b,a){var c=b&&b.$$hashKey;if(c)return"function"===typeof c&&(c=b.$$hashKey()),c;c=typeof b;return c="function"==c||"object"==c&&null!==b?b.$$hashKey=c+":"+(a||Md)():
|
|
|
|
|
c+":"+b}function eb(b,a){if(a){var c=0;this.nextUid=function(){return++c}}n(b,this.put,this)}function wf(b){return(b=b.toString().replace(Oc,"").match(Pc))?"function("+(b[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ab(b,a){function c(a){return function(b,c){if(E(b))n(b,jc(a));else return a(b,c)}}function d(a,b){Pa(a,"service");if(G(b)||C(b))b=r.instantiate(b);if(!b.$get)throw Ha("pget",a);return q[a+"Provider"]=b}function e(a,b){return function(){var c=F.invoke(b,this);if(D(c))throw Ha("undef",
|
|
|
|
|
a);return c}}function f(a,b,c){return d(a,{$get:!1!==c?e(a,b):b})}function h(a){var b=[],c;n(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=r.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.put(a,!0);try{I(a)?(c=cb(a),b=b.concat(h(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):G(a)?b.push(r.invoke(a)):C(a)?b.push(r.invoke(a)):Oa(a,"module")}catch(e){throw C(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1==e.stack.indexOf(e.message)&&(e=e.message+
|
|
|
|
|
"\n"+e.stack),Ha("modulerr",a,e.stack||e.message||e);}}});return b}function g(b,c){function d(a,e){if(b.hasOwnProperty(a)){if(b[a]===l)throw Ha("cdep",a+" <- "+k.join(" <- "));return b[a]}try{return k.unshift(a),b[a]=l,b[a]=c(a,e)}catch(f){throw b[a]===l&&delete b[a],f;}finally{k.shift()}}function e(b,c,f,h){"string"===typeof f&&(h=f,f=null);var k=[],g=ab.$$annotate(b,a,h),l,r,q;r=0;for(l=g.length;r<l;r++){q=g[r];if("string"!==typeof q)throw Ha("itkn",q);k.push(f&&f.hasOwnProperty(q)?f[q]:d(q,h))}C(b)&&
|
|
|
|
|
(b=b[l]);return b.apply(c,k)}return{invoke:e,instantiate:function(a,b,c){var d=Object.create((C(a)?a[a.length-1]:a).prototype||null);a=e(a,d,b,c);return E(a)||G(a)?a:d},get:d,annotate:ab.$$annotate,has:function(a){return q.hasOwnProperty(a+"Provider")||b.hasOwnProperty(a)}}}a=!0===a;var l={},k=[],m=new eb([],!0),q={$provide:{provider:c(d),factory:c(f),service:c(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:c(function(a,b){return f(a,oa(b),!1)}),constant:c(function(a,
|
|
|
|
|
b){Pa(a,"constant");q[a]=b;t[a]=b}),decorator:function(a,b){var c=r.get(a+"Provider"),d=c.$get;c.$get=function(){var a=F.invoke(d,c);return F.invoke(b,null,{$delegate:a})}}}},r=q.$injector=g(q,function(a,b){$.isString(b)&&k.push(b);throw Ha("unpr",k.join(" <- "));}),t={},F=t.$injector=g(t,function(a,b){var c=r.get(a+"Provider",b);return F.invoke(c.$get,c,u,a)});n(h(b),function(a){F.invoke(a||w)});return F}function Je(){var b=!0;this.disableAutoScrolling=function(){b=!1};this.$get=["$window","$location",
|
|
|
|
|
"$rootScope",function(a,c,d){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===sa(a))return b=a,!0});return b}function f(b){if(b){b.scrollIntoView();var c;c=h.yOffset;G(c)?c=c():lc(c)?(c=c[0],c="fixed"!==a.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):W(c)||(c=0);c&&(b=b.getBoundingClientRect().top,a.scrollBy(0,b-c))}else a.scrollTo(0,0)}function h(){var a=c.hash(),b;a?(b=g.getElementById(a))?f(b):(b=e(g.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}
|
|
|
|
|
var g=a.document;b&&d.$watch(function(){return c.hash()},function(a,b){a===b&&""===a||tf(function(){d.$evalAsync(h)})});return h}]}function jf(){this.$get=["$$rAF","$timeout",function(b,a){return b.supported?function(a){return b(a)}:function(b){return a(b,0,!1)}}]}function xf(b,a,c,d){function e(a){try{a.apply(null,qa.call(arguments,1))}finally{if(F--,0===F)for(;R.length;)try{R.pop()()}catch(b){c.error(b)}}}function f(){h();g()}function h(){a:{try{v=m.state;break a}catch(a){}v=void 0}v=D(v)?null:
|
|
|
|
|
v;ja(v,B)&&(v=B);B=v}function g(){if(y!==l.url()||p!==v)y=l.url(),p=v,n(K,function(a){a(l.url(),v)})}var l=this,k=b.location,m=b.history,q=b.setTimeout,r=b.clearTimeout,t={};l.isMock=!1;var F=0,R=[];l.$$completeOutstandingRequest=e;l.$$incOutstandingRequestCount=function(){F++};l.notifyWhenNoOutstandingRequests=function(a){0===F?a():R.push(a)};var v,p,y=k.href,va=a.find("base"),z=null;h();p=v;l.url=function(a,c,e){D(e)&&(e=null);k!==b.location&&(k=b.location);m!==b.history&&(m=b.history);if(a){var f=
|
|
|
|
|
p===e;if(y===a&&(!d.history||f))return l;var g=y&&Ia(y)===Ia(a);y=a;p=e;!d.history||g&&f?(g||(z=a),c?k.replace(a):g?(c=k,e=a.indexOf("#"),a=-1===e?"":a.substr(e+1),c.hash=a):k.href=a):(m[c?"replaceState":"pushState"](e,"",a),h(),p=v);return l}return z||k.href.replace(/%27/g,"'")};l.state=function(){return v};var K=[],N=!1,B=null;l.onUrlChange=function(a){if(!N){if(d.history)A(b).on("popstate",f);A(b).on("hashchange",f);N=!0}K.push(a);return a};l.$$checkUrlChange=g;l.baseHref=function(){var a=va.attr("href");
|
|
|
|
|
return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};l.defer=function(a,b){var c;F++;c=q(function(){delete t[c];e(a)},b||0);t[c]=!0;return c};l.defer.cancel=function(a){return t[a]?(delete t[a],r(a),e(w),!0):!1}}function Le(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new xf(b,d,a,c)}]}function Me(){this.$get=function(){function b(b,d){function e(a){a!=q&&(r?r==a&&(r=a.n):r=a,f(a.n,a.p),f(a,q),q=a,q.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(b in a)throw H("$cacheFactory")("iid",
|
|
|
|
|
b);var h=0,g=Q({},d,{id:b}),l={},k=d&&d.capacity||Number.MAX_VALUE,m={},q=null,r=null;return a[b]={put:function(a,b){if(!D(b)){if(k<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in l||h++;l[a]=b;h>k&&this.remove(r.key);return b}},get:function(a){if(k<Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return l[a]},remove:function(a){if(k<Number.MAX_VALUE){var b=m[a];if(!b)return;b==q&&(q=b.p);b==r&&(r=b.n);f(b.n,b.p);delete m[a]}delete l[a];h--},removeAll:function(){l={};h=0;m={};q=r=null},destroy:function(){m=
|
|
|
|
|
g=l=null;delete a[b]},info:function(){return Q({},g,{size:h})}}}var a={};b.info=function(){var b={};n(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function cf(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function xc(b,a){function c(a,b,c){var d=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,e={};n(a,function(a,f){var h=a.match(d);if(!h)throw ga("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:h[1][0],collection:"*"===
|
|
|
|
|
h[2],optional:"?"===h[3],attrName:h[4]||f}});return e}function d(a){var b=a.charAt(0);if(!b||b!==M(b))throw ga("baddir",a);}var e={},f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,g=Od("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/;this.directive=function r(a,f){Pa(a,"directive");I(a)?(d(a),Pb(f,"directiveFactory"),e.hasOwnProperty(a)||(e[a]=[],b.factory(a+"Directive",["$injector","$exceptionHandler",function(b,d){var f=[];n(e[a],
|
|
|
|
|
function(e,h){try{var g=b.invoke(e);G(g)?g={compile:oa(g)}:!g.compile&&g.link&&(g.compile=oa(g.link));g.priority=g.priority||0;g.index=h;g.name=g.name||a;g.require=g.require||g.controller&&g.name;g.restrict=g.restrict||"EA";var k=g,l=g,r=g.name,m={isolateScope:null,bindToController:null};E(l.scope)&&(!0===l.bindToController?(m.bindToController=c(l.scope,r,!0),m.isolateScope={}):m.isolateScope=c(l.scope,r,!1));E(l.bindToController)&&(m.bindToController=c(l.bindToController,r,!0));if(E(m.bindToController)){var F=
|
|
|
|
|
l.controller,T=l.controllerAs;if(!F)throw ga("noctrl",r);var n;a:if(T&&I(T))n=T;else{if(I(F)){var pa=Qc.exec(F);if(pa){n=pa[3];break a}}n=void 0}if(!n)throw ga("noident",r);}var s=k.$$bindings=m;E(s.isolateScope)&&(g.$$isolateBindings=s.isolateScope);f.push(g)}catch(u){d(u)}});return f}])),e[a].push(f)):n(a,jc(r));return this};this.aHrefSanitizationWhitelist=function(b){return x(b)?(a.aHrefSanitizationWhitelist(b),this):a.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(b){return x(b)?
|
|
|
|
|
(a.imgSrcSanitizationWhitelist(b),this):a.imgSrcSanitizationWhitelist()};var m=!0;this.debugInfoEnabled=function(a){return x(a)?(m=a,this):m};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,b,c,d,v,p,y,va,z,K,N){function B(a,b){try{a.addClass(b)}catch(c){}}function U(a,b,c,d,e){a instanceof A||(a=A(a));n(a,function(b,c){b.nodeType==$a&&b.nodeValue.match(/\S+/)&&(a[c]=A(b).wrap("<span></span>").parent()[0])});
|
|
|
|
|
var f=S(a,b,a,c,d,e);U.$$addScopeClass(a);var g=null;return function(b,c,d){Pb(b,"scope");d=d||{};var e=d.parentBoundTranscludeFn,h=d.transcludeControllers;d=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==sa(d)&&d.toString().match(/SVG/)?"svg":"html":"html");d="html"!==g?A(Vb(g,A("<div>").append(a).html())):c?Na.clone.call(a):a;if(h)for(var k in h)d.data("$"+k+"Controller",h[k].instance);U.$$addScopeInfo(d,b);c&&c(d,b);f&&f(b,d,d,e);return d}}
|
|
|
|
|
function S(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,r,m,t,K;if(p)for(K=Array(c.length),r=0;r<h.length;r+=3)f=h[r],K[f]=c[f];else K=c;r=0;for(m=h.length;r<m;)if(k=K[h[r++]],c=h[r++],f=h[r++],c){if(c.scope){if(l=a.$new(),U.$$addScopeInfo(A(k),l),t=c.$$destroyBindings)c.$$destroyBindings=null,l.$on("$destroyed",t)}else l=a;t=c.transcludeOnThisElement?T(a,c.transclude,e,c.elementTranscludeOnThisElement):!c.templateOnThisElement&&e?e:!e&&b?T(a,b):null;c(f,l,k,d,t,c)}else f&&f(a,k.childNodes,u,e)}for(var h=
|
|
|
|
|
[],k,l,r,m,p,t=0;t<a.length;t++){k=new ca;l=za(a[t],[],k,0===t?d:u,e);(f=l.length?x(l,a[t],k,b,c,null,[],[],f):null)&&f.scope&&U.$$addScopeClass(k.$$element);k=f&&f.terminal||!(r=a[t].childNodes)||!r.length?null:S(r,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||k)h.push(t,f,k),m=!0,p=p||f;f=null}return m?g:null}function T(a,b,c,d){return function(d,e,f,g,h){d||(d=a.$new(!1,h),d.$$transcluded=!0);return b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})}}
|
|
|
|
|
function za(a,b,c,d,e){var g=c.$attr,k;switch(a.nodeType){case na:H(b,xa(sa(a)),"E",d,e);for(var l,r,m,p=a.attributes,t=0,K=p&&p.length;t<K;t++){var F=!1,N=!1;l=p[t];k=l.name;r=V(l.value);l=xa(k);if(m=ia.test(l))k=k.replace(Rc,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});var B=l.replace(/(Start|End)$/,"");O(B)&&l===B+"Start"&&(F=k,N=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6));l=xa(k.toLowerCase());g[l]=k;if(m||!c.hasOwnProperty(l))c[l]=r,Lc(a,l)&&(c[l]=!0);X(a,b,
|
|
|
|
|
r,l,m);H(b,l,"A",d,e,F,N)}a=a.className;E(a)&&(a=a.animVal);if(I(a)&&""!==a)for(;k=h.exec(a);)l=xa(k[2]),H(b,l,"C",d,e)&&(c[l]=V(k[3])),a=a.substr(k.index+k[0].length);break;case $a:Aa(b,a.nodeValue);break;case 8:try{if(k=f.exec(a.nodeValue))l=xa(k[1]),H(b,l,"M",d,e)&&(c[l]=V(k[2]))}catch(R){}}b.sort(L);return b}function pa(a,b,c){var d=[],e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ga("uterdir",b,c);a.nodeType==na&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<
|
|
|
|
|
e)}else d.push(a);return A(d)}function s(a,b,c){return function(d,e,f,g,h){e=pa(e[0],b,c);return a(d,e,f,g,h)}}function x(a,b,d,e,f,g,h,k,r){function m(a,b,c,d){if(a){c&&(a=s(a,c,d));a.require=J.require;a.directiveName=wa;if(T===J||J.$$isolateScope)a=aa(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=s(b,c,d));b.require=J.require;b.directiveName=wa;if(T===J||J.$$isolateScope)b=aa(b,{isolateScope:!0});k.push(b)}}function t(a,b,c,d){var e;if(I(b)){var f=b.match(l);b=b.substring(f[0].length);var g=f[1]||
|
|
|
|
|
f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;e||(d="$"+b+"Controller",e=g?c.inheritedData(d):c.data(d));if(!e&&!f)throw ga("ctreq",b,a);}else if(C(b))for(e=[],g=0,f=b.length;g<f;g++)e[g]=t(a,b[g],c,d);return e||null}function K(a,b,c,d,e,f){var g=la(),h;for(h in d){var k=d[h],l={$scope:k===T||k.$$isolateScope?e:f,$element:a,$attrs:b,$transclude:c},r=k.controller;"@"==r&&(r=b[k.name]);l=p(r,l,!0,k.controllerAs);g[k.name]=l;va||a.data("$"+k.name+"Controller",l.instance)}return g}
|
|
|
|
|
function N(a,c,e,f,g,l){function r(a,b,c){var d;Va(a)||(c=b,b=a,a=u);va&&(d=S);c||(c=va?ha.parent():ha);return g(a,b,d,c,s)}var m,p,F,B,S,z,ha;b===e?(f=d,ha=d.$$element):(ha=A(e),f=new ca(ha,d));T&&(B=c.$new(!0));g&&(z=r,z.$$boundTransclude=g);v&&(S=K(ha,f,z,v,B,c));T&&(U.$$addScopeInfo(ha,B,!0,!(y&&(y===T||y===T.$$originalDirective))),U.$$addScopeClass(ha,!0),B.$$isolateBindings=T.$$isolateBindings,$(c,f,B,B.$$isolateBindings,T,B));if(S){var n=T||R,pa;n&&S[n.name]&&(p=n.$$bindings.bindToController,
|
|
|
|
|
(F=S[n.name])&&F.identifier&&p&&(pa=F,l.$$destroyBindings=$(c,f,F.instance,p,n)));for(m in S){F=S[m];var za=F();za!==F.instance&&(F.instance=za,ha.data("$"+J.name+"Controller",za),F===pa&&(l.$$destroyBindings(),l.$$destroyBindings=$(c,f,za,p,n)))}}m=0;for(l=h.length;m<l;m++)p=h[m],ba(p,p.isolateScope?B:c,ha,f,p.require&&t(p.directiveName,p.require,ha,S),z);var s=c;T&&(T.template||null===T.templateUrl)&&(s=B);a&&a(s,e.childNodes,u,g);for(m=k.length-1;0<=m;m--)p=k[m],ba(p,p.isolateScope?B:c,ha,f,p.require&&
|
|
|
|
|
t(p.directiveName,p.require,ha,S),z)}r=r||{};for(var B=-Number.MAX_VALUE,R,v=r.controllerDirectives,T=r.newIsolateScopeDirective,y=r.templateDirective,S=r.nonTlbTranscludeDirective,z=!1,n=!1,va=r.hasElementTranscludeDirective,w=d.$$element=A(b),J,wa,L,H=e,Aa,M=0,O=a.length;M<O;M++){J=a[M];var Q=J.$$start,Wb=J.$$end;Q&&(w=pa(b,Q,Wb));L=u;if(B>J.priority)break;if(L=J.scope)J.templateUrl||(E(L)?(P("new/isolated scope",T||R,J,w),T=J):P("new/isolated scope",T,J,w)),R=R||J;wa=J.name;!J.templateUrl&&J.controller&&
|
|
|
|
|
(L=J.controller,v=v||la(),P("'"+wa+"' controller",v[wa],J,w),v[wa]=J);if(L=J.transclude)z=!0,J.$$tlb||(P("transclusion",S,J,w),S=J),"element"==L?(va=!0,B=J.priority,L=w,w=d.$$element=A(Y.createComment(" "+wa+": "+d[wa]+" ")),b=w[0],Z(f,qa.call(L,0),b),H=U(L,e,B,g&&g.name,{nonTlbTranscludeDirective:S})):(L=A(Sb(b)).contents(),w.empty(),H=U(L,e));if(J.template)if(n=!0,P("template",y,J,w),y=J,L=G(J.template)?J.template(w,d):J.template,L=fa(L),J.replace){g=J;L=Qb.test(L)?Sc(Vb(J.templateNamespace,V(L))):
|
|
|
|
|
[];b=L[0];if(1!=L.length||b.nodeType!==na)throw ga("tplrt",wa,"");Z(f,w,b);O={$attr:{}};L=za(b,[],O);var W=a.splice(M+1,a.length-(M+1));T&&D(L);a=a.concat(L).concat(W);Tc(d,O);O=a.length}else w.html(L);if(J.templateUrl)n=!0,P("template",y,J,w),y=J,J.replace&&(g=J),N=yf(a.splice(M,a.length-M),w,d,f,z&&H,h,k,{controllerDirectives:v,newIsolateScopeDirective:T,templateDirective:y,nonTlbTranscludeDirective:S}),O=a.length;else if(J.compile)try{Aa=J.compile(w,d,H),G(Aa)?m(null,Aa,Q,Wb):Aa&&m(Aa.pre,Aa.post,
|
|
|
|
|
Q,Wb)}catch(X){c(X,ua(w))}J.terminal&&(N.terminal=!0,B=Math.max(B,J.priority))}N.scope=R&&!0===R.scope;N.transcludeOnThisElement=z;N.elementTranscludeOnThisElement=va;N.templateOnThisElement=n;N.transclude=H;r.hasElementTranscludeDirective=va;return N}function D(a){for(var b=0,c=a.length;b<c;b++)a[b]=Lb(a[b],{$$isolateScope:!0})}function H(b,d,f,g,h,k,l){if(d===h)return null;h=null;if(e.hasOwnProperty(d)){var m;d=a.get(d+"Directive");for(var p=0,t=d.length;p<t;p++)try{m=d[p],(g===u||g>m.priority)&&
|
|
|
|
|
-1!=m.restrict.indexOf(f)&&(k&&(m=Lb(m,{$$start:k,$$end:l})),b.push(m),h=m)}catch(K){c(K)}}return h}function O(b){if(e.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,f=c.length;d<f;d++)if(b=c[d],b.multiElement)return!0;return!1}function Tc(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;n(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});n(b,function(b,f){"class"==f?(B(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",
|
|
|
|
|
e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function yf(a,b,c,e,f,g,h,k){var l=[],r,m,p=b[0],t=a.shift(),K=Lb(t,{templateUrl:null,transclude:null,replace:null,$$originalDirective:t}),F=G(t.templateUrl)?t.templateUrl(b,c):t.templateUrl,N=t.templateNamespace;b.empty();d(z.getTrustedResourceUrl(F)).then(function(d){var R,v;d=fa(d);if(t.replace){d=Qb.test(d)?Sc(Vb(N,V(d))):[];R=d[0];if(1!=d.length||R.nodeType!==na)throw ga("tplrt",
|
|
|
|
|
t.name,F);d={$attr:{}};Z(e,b,R);var y=za(R,[],d);E(t.scope)&&D(y);a=y.concat(a);Tc(c,d)}else R=p,b.html(d);a.unshift(K);r=x(a,R,c,f,b,t,g,h,k);n(e,function(a,c){a==R&&(e[c]=b[0])});for(m=S(b[0].childNodes,f);l.length;){d=l.shift();v=l.shift();var z=l.shift(),U=l.shift(),y=b[0];if(!d.$$destroyed){if(v!==p){var pa=v.className;k.hasElementTranscludeDirective&&t.replace||(y=Sb(R));Z(z,A(v),y);B(A(y),pa)}v=r.transcludeOnThisElement?T(d,r.transclude,U):U;r(m,d,y,e,v,r)}}l=null});return function(a,b,c,d,
|
|
|
|
|
e){a=e;b.$$destroyed||(l?l.push(b,c,d,a):(r.transcludeOnThisElement&&(a=T(b,r.transclude,e)),r(m,b,c,d,a,r)))}}function L(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function P(a,b,c,d){if(b)throw ga("multidir",b.name,c.name,a,ua(d));}function Aa(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=a.parent();var b=!!a.length;b&&U.$$addBindingClass(a);return function(a,c){var e=c.parent();b||U.$$addBindingClass(e);U.$$addBindingInfo(e,
|
|
|
|
|
d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function Vb(a,b){a=M(a||"html");switch(a){case "svg":case "math":var c=Y.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function W(a,b){if("srcdoc"==b)return z.HTML;var c=sa(a);if("xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||"ngSrc"==b))return z.RESOURCE_URL}function X(a,c,d,e,f){var h=W(a,e);f=g[e]||f;var l=b(d,!0,h,f);if(l){if("multiple"===e&&"select"===sa(a))throw ga("selmulti",
|
|
|
|
|
ua(a));c.push({priority:100,compile:function(){return{pre:function(a,c,g){c=g.$$observers||(g.$$observers={});if(k.test(e))throw ga("nodomevents");var r=g[e];r!==d&&(l=r&&b(r,!0,h,f),d=r);l&&(g[e]=l(a),(c[e]||(c[e]=[])).$$inter=!0,(g.$$observers&&g.$$observers[e].$$scope||a).$watch(l,function(a,b){"class"===e&&a!=b?g.$updateClass(a,b):g.$set(e,a)}))}}}})}}function Z(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]==d){a[g++]=c;h=g+e-1;for(var k=a.length;g<k;g++,
|
|
|
|
|
h++)h<k?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=Y.createDocumentFragment();a.appendChild(d);A(c).data(A(d).data());ka?(Ob=!0,ka.cleanData([d])):delete A.cache[d[A.expando]];d=1;for(e=b.length;d<e;d++)f=b[d],A(f).remove(),a.appendChild(f),delete b[d];b[0]=c;b.length=1}function aa(a,b){return Q(function(){return a.apply(null,arguments)},a,b)}function ba(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,ua(d))}}function $(a,c,d,e,f,g){var h;n(e,function(e,
|
|
|
|
|
g){var k=e.attrName,l=e.optional,r,m,p,K;switch(e.mode){case "@":c.$observe(k,function(a){d[g]=a});c.$$observers[k].$$scope=a;c[k]&&(d[g]=b(c[k])(a));break;case "=":if(l&&!c[k])break;m=v(c[k]);K=m.literal?ja:function(a,b){return a===b||a!==a&&b!==b};p=m.assign||function(){r=d[g]=m(a);throw ga("nonassign",c[k],f.name);};r=d[g]=m(a);l=function(b){K(b,d[g])||(K(b,r)?p(a,b=d[g]):d[g]=b);return r=b};l.$stateful=!0;l=e.collection?a.$watchCollection(c[k],l):a.$watch(v(c[k],l),null,m.literal);h=h||[];h.push(l);
|
|
|
|
|
break;case "&":if(!c.hasOwnProperty(k)&&l)break;m=v(c[k]);if(m===w&&l)break;d[g]=function(b){return m(a,b)}}});e=h?function(){for(var a=0,b=h.length;a<b;++a)h[a]()}:w;return g&&e!==w?(g.$on("$destroy",e),w):e}var ca=function(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a};ca.prototype={$normalize:xa,$addClass:function(a){a&&0<a.length&&K.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&K.removeClass(this.$$element,
|
|
|
|
|
a)},$updateClass:function(a,b){var c=Uc(a,b);c&&c.length&&K.addClass(this.$$element,c);(c=Uc(b,a))&&c.length&&K.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=this.$$element[0],g=Lc(f,a),h=uf(f,a),f=a;g?(this.$$element.prop(a,b),e=g):h&&(this[h]=b,f=h);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=uc(a,"-"));g=sa(this.$$element);if("a"===g&&"href"===a||"img"===g&&"src"===a)this[a]=b=N(b,"src"===a);else if("img"===g&&"srcset"===a){for(var g="",h=V(b),k=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,
|
|
|
|
|
k=/\s/.test(h)?k:/(,)/,h=h.split(k),k=Math.floor(h.length/2),l=0;l<k;l++)var r=2*l,g=g+N(V(h[r]),!0),g=g+(" "+V(h[r+1]));h=V(h[2*l]).split(/\s/);g+=N(V(h[0]),!0);2===h.length&&(g+=" "+V(h[1]));this[a]=b=g}!1!==d&&(null===b||b===u?this.$$element.removeAttr(e):this.$$element.attr(e,b));(a=this.$$observers)&&n(a[f],function(a){try{a(b)}catch(d){c(d)}})},$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=la()),e=d[a]||(d[a]=[]);e.push(b);y.$evalAsync(function(){!e.$$inter&&c.hasOwnProperty(a)&&
|
|
|
|
|
b(c[a])});return function(){Xa(e,b)}}};var da=b.startSymbol(),ea=b.endSymbol(),fa="{{"==da||"}}"==ea?Ta:function(a){return a.replace(/\{\{/g,da).replace(/}}/g,ea)},ia=/^ngAttr[A-Z]/;U.$$addBindingInfo=m?function(a,b){var c=a.data("$binding")||[];C(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:w;U.$$addBindingClass=m?function(a){B(a,"ng-binding")}:w;U.$$addScopeInfo=m?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:w;U.$$addScopeClass=m?function(a,b){B(a,b?"ng-isolate-scope":
|
|
|
|
|
"ng-scope")}:w;return U}]}function xa(b){return db(b.replace(Rc,""))}function Uc(b,a){var c="",d=b.split(/\s+/),e=a.split(/\s+/),f=0;a:for(;f<d.length;f++){for(var h=d[f],g=0;g<e.length;g++)if(h==e[g])continue a;c+=(0<c.length?" ":"")+h}return c}function Sc(b){b=A(b);var a=b.length;if(1>=a)return b;for(;a--;)8===b[a].nodeType&&zf.call(b,a,1);return b}function Ne(){var b={},a=!1;this.register=function(a,d){Pa(a,"controller");E(a)?Q(b,a):b[a]=d};this.allowGlobals=function(){a=!0};this.$get=["$injector",
|
|
|
|
|
"$window",function(c,d){function e(a,b,c,d){if(!a||!E(a.$scope))throw H("$controller")("noscp",d,b);a.$scope[b]=c}return function(f,h,g,l){var k,m,q;g=!0===g;l&&I(l)&&(q=l);if(I(f)){l=f.match(Qc);if(!l)throw Af("ctrlfmt",f);m=l[1];q=q||l[3];f=b.hasOwnProperty(m)?b[m]:wc(h.$scope,m,!0)||(a?wc(d,m,!0):u);Oa(f,m,!0)}if(g)return g=(C(f)?f[f.length-1]:f).prototype,k=Object.create(g||null),q&&e(h,q,k,m||f.name),Q(function(){var a=c.invoke(f,k,h,m);a!==k&&(E(a)||G(a))&&(k=a,q&&e(h,q,k,m||f.name));return k},
|
|
|
|
|
{instance:k,identifier:q});k=c.instantiate(f,h,m);q&&e(h,q,k,m||f.name);return k}}]}function Oe(){this.$get=["$window",function(b){return A(b.document)}]}function Pe(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function Xb(b,a){if(I(b)){var c=b.replace(Bf,"").trim();if(c){var d=a("Content-Type");(d=d&&0===d.indexOf(Vc))||(d=(d=c.match(Cf))&&Df[d[0]].test(c));d&&(b=oc(c))}}return b}function Wc(b){var a=la(),c;I(b)?n(b.split("\n"),function(b){c=b.indexOf(":");var e=
|
|
|
|
|
M(V(b.substr(0,c)));b=V(b.substr(c+1));e&&(a[e]=a[e]?a[e]+", "+b:b)}):E(b)&&n(b,function(b,c){var f=M(c),h=V(b);f&&(a[f]=a[f]?a[f]+", "+h:h)});return a}function Xc(b){var a;return function(c){a||(a=Wc(b));return c?(c=a[M(c)],void 0===c&&(c=null),c):a}}function Yc(b,a,c,d){if(G(d))return d(b,a,c);n(d,function(d){b=d(b,a,c)});return b}function Se(){var b=this.defaults={transformResponse:[Xb],transformRequest:[function(a){return E(a)&&"[object File]"!==ra.call(a)&&"[object Blob]"!==ra.call(a)&&"[object FormData]"!==
|
|
|
|
|
ra.call(a)?Za(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ea(Yb),put:ea(Yb),patch:ea(Yb)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},a=!1;this.useApplyAsync=function(b){return x(b)?(a=!!b,this):a};var c=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(d,e,f,h,g,l){function k(a){function c(a){var b=Q({},a);b.data=a.data?Yc(a.data,a.headers,a.status,e.transformResponse):a.data;a=a.status;
|
|
|
|
|
return 200<=a&&300>a?b:g.reject(b)}function d(a,b){var c,e={};n(a,function(a,d){G(a)?(c=a(b),null!=c&&(e[d]=c)):e[d]=a});return e}if(!$.isObject(a))throw H("$http")("badreq",a);var e=Q({method:"get",transformRequest:b.transformRequest,transformResponse:b.transformResponse},a);e.headers=function(a){var c=b.headers,e=Q({},a.headers),f,g,h,c=Q({},c.common,c[M(a.method)]);a:for(f in c){g=M(f);for(h in e)if(M(h)===g)continue a;e[f]=c[f]}return d(e,ea(a))}(a);e.method=nb(e.method);var f=[function(a){var d=
|
|
|
|
|
a.headers,e=Yc(a.data,Xc(d),u,a.transformRequest);D(e)&&n(d,function(a,b){"content-type"===M(b)&&delete d[b]});D(a.withCredentials)&&!D(b.withCredentials)&&(a.withCredentials=b.withCredentials);return m(a,e).then(c,c)},u],h=g.when(e);for(n(t,function(a){(a.request||a.requestError)&&f.unshift(a.request,a.requestError);(a.response||a.responseError)&&f.push(a.response,a.responseError)});f.length;){a=f.shift();var k=f.shift(),h=h.then(a,k)}h.success=function(a){Oa(a,"fn");h.then(function(b){a(b.data,
|
|
|
|
|
b.status,b.headers,e)});return h};h.error=function(a){Oa(a,"fn");h.then(null,function(b){a(b.data,b.status,b.headers,e)});return h};return h}function m(c,f){function l(b,c,d,e){function f(){m(c,b,d,e)}N&&(200<=b&&300>b?N.put(S,[b,c,Wc(d),e]):N.remove(S));a?h.$applyAsync(f):(f(),h.$$phase||h.$apply())}function m(a,b,d,e){b=Math.max(b,0);(200<=b&&300>b?z.resolve:z.reject)({data:a,status:b,headers:Xc(d),config:c,statusText:e})}function t(a){m(a.data,a.status,ea(a.headers()),a.statusText)}function n(){var a=
|
|
|
|
|
k.pendingRequests.indexOf(c);-1!==a&&k.pendingRequests.splice(a,1)}var z=g.defer(),K=z.promise,N,B,U=c.headers,S=q(c.url,c.params);k.pendingRequests.push(c);K.then(n,n);!c.cache&&!b.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(N=E(c.cache)?c.cache:E(b.cache)?b.cache:r);N&&(B=N.get(S),x(B)?B&&G(B.then)?B.then(t,t):C(B)?m(B[1],B[0],ea(B[2]),B[3]):m(B,200,{},"OK"):N.put(S,K));D(B)&&((B=Zc(c.url)?e()[c.xsrfCookieName||b.xsrfCookieName]:u)&&(U[c.xsrfHeaderName||b.xsrfHeaderName]=B),d(c.method,
|
|
|
|
|
S,f,l,U,c.timeout,c.withCredentials,c.responseType));return K}function q(a,b){if(!b)return a;var c=[];Ld(b,function(a,b){null===a||D(a)||(C(a)||(a=[a]),n(a,function(a){E(a)&&(a=da(a)?a.toISOString():Za(a));c.push(Fa(b)+"="+Fa(a))}))});0<c.length&&(a+=(-1==a.indexOf("?")?"?":"&")+c.join("&"));return a}var r=f("$http"),t=[];n(c,function(a){t.unshift(I(a)?l.get(a):l.invoke(a))});k.pendingRequests=[];(function(a){n(arguments,function(a){k[a]=function(b,c){return k(Q(c||{},{method:a,url:b}))}})})("get",
|
|
|
|
|
"delete","head","jsonp");(function(a){n(arguments,function(a){k[a]=function(b,c,d){return k(Q(d||{},{method:a,url:b,data:c}))}})})("post","put","patch");k.defaults=b;return k}]}function Ef(){return new O.XMLHttpRequest}function Te(){this.$get=["$browser","$window","$document",function(b,a,c){return Ff(b,Ef,b.defer,a.angular.callbacks,c[0])}]}function Ff(b,a,c,d,e){function f(a,b,c){var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",
|
|
|
|
|
m,!1);f.removeEventListener("error",m,!1);e.body.removeChild(f);f=null;var h=-1,t="unknown";a&&("load"!==a.type||d[b].called||(a={type:"error"}),t=a.type,h="error"===a.type?404:200);c&&c(h,t)};f.addEventListener("load",m,!1);f.addEventListener("error",m,!1);e.body.appendChild(f);return m}return function(e,g,l,k,m,q,r,t){function F(){p&&p();y&&y.abort()}function R(a,d,e,f,g){z!==u&&c.cancel(z);p=y=null;a(d,e,f,g);b.$$completeOutstandingRequest(w)}b.$$incOutstandingRequestCount();g=g||b.url();if("jsonp"==
|
|
|
|
|
M(e)){var v="_"+(d.counter++).toString(36);d[v]=function(a){d[v].data=a;d[v].called=!0};var p=f(g.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(a,b){R(k,a,d[v].data,"",b);d[v]=w})}else{var y=a();y.open(e,g,!0);n(m,function(a,b){x(a)&&y.setRequestHeader(b,a)});y.onload=function(){var a=y.statusText||"",b="response"in y?y.response:y.responseText,c=1223===y.status?204:y.status;0===c&&(c=b?200:"file"==Ba(g).protocol?404:0);R(k,c,b,y.getAllResponseHeaders(),a)};e=function(){R(k,-1,null,null,
|
|
|
|
|
"")};y.onerror=e;y.onabort=e;r&&(y.withCredentials=!0);if(t)try{y.responseType=t}catch(s){if("json"!==t)throw s;}y.send(l||null)}if(0<q)var z=c(F,q);else q&&G(q.then)&&q.then(F)}}function Qe(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(b){return b?(a=b,this):a};this.$get=["$parse","$exceptionHandler","$sce",function(c,d,e){function f(a){return"\\\\\\"+a}function h(c){return c.replace(m,b).replace(q,a)}function g(f,g,m,q){function v(a){try{var b=a;
|
|
|
|
|
a=m?e.getTrusted(m,b):e.valueOf(b);var c;if(q&&!x(a))c=a;else if(null==a)c="";else{switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=Za(a)}c=a}return c}catch(g){d(Ja.interr(f,g))}}q=!!q;for(var p,n,s=0,z=[],K=[],N=f.length,B=[],U=[];s<N;)if(-1!=(p=f.indexOf(b,s))&&-1!=(n=f.indexOf(a,p+l)))s!==p&&B.push(h(f.substring(s,p))),s=f.substring(p+l,n),z.push(s),K.push(c(s,v)),s=n+k,U.push(B.length),B.push("");else{s!==N&&B.push(h(f.substring(s)));break}m&&1<B.length&&Ja.throwNoconcat(f);
|
|
|
|
|
if(!g||z.length){var S=function(a){for(var b=0,c=z.length;b<c;b++){if(q&&D(a[b]))return;B[U[b]]=a[b]}return B.join("")};return Q(function(a){var b=0,c=z.length,e=Array(c);try{for(;b<c;b++)e[b]=K[b](a);return S(e)}catch(g){d(Ja.interr(f,g))}},{exp:f,expressions:z,$$watchDelegate:function(a,b){var c;return a.$watchGroup(K,function(d,e){var f=S(d);G(b)&&b.call(this,f,d!==e?c:f,a);c=f})}})}}var l=b.length,k=a.length,m=new RegExp(b.replace(/./g,f),"g"),q=new RegExp(a.replace(/./g,f),"g");g.startSymbol=
|
|
|
|
|
function(){return b};g.endSymbol=function(){return a};return g}]}function Re(){this.$get=["$rootScope","$window","$q","$$q",function(b,a,c,d){function e(e,g,l,k){var m=4<arguments.length,q=m?qa.call(arguments,4):[],r=a.setInterval,t=a.clearInterval,F=0,R=x(k)&&!k,v=(R?d:c).defer(),p=v.promise;l=x(l)?l:0;p.then(null,null,m?function(){e.apply(null,q)}:e);p.$$intervalId=r(function(){v.notify(F++);0<l&&F>=l&&(v.resolve(F),t(p.$$intervalId),delete f[p.$$intervalId]);R||b.$apply()},g);f[p.$$intervalId]=
|
|
|
|
|
v;return p}var f={};e.cancel=function(b){return b&&b.$$intervalId in f?(f[b.$$intervalId].reject("canceled"),a.clearInterval(b.$$intervalId),delete f[b.$$intervalId],!0):!1};return e}]}function Zd(){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",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(b){return 1===b?"one":"other"}}}}function Zb(b){b=b.split("/");for(var a=b.length;a--;)b[a]=kb(b[a]);return b.join("/")}function $c(b,a){var c=Ba(b);a.$$protocol=c.protocol;a.$$host=c.hostname;a.$$port=ba(c.port)||Gf[c.protocol]||null}function ad(b,a){var c="/"!==b.charAt(0);c&&(b="/"+b);var d=Ba(b);a.$$path=decodeURIComponent(c&&"/"===d.pathname.charAt(0)?d.pathname.substring(1):d.pathname);a.$$search=
|
|
|
|
|
rc(d.search);a.$$hash=decodeURIComponent(d.hash);a.$$path&&"/"!=a.$$path.charAt(0)&&(a.$$path="/"+a.$$path)}function ya(b,a){if(0===a.indexOf(b))return a.substr(b.length)}function Ia(b){var a=b.indexOf("#");return-1==a?b:b.substr(0,a)}function yb(b){return b.replace(/(#.+)|#$/,"$1")}function $b(b){return b.substr(0,Ia(b).lastIndexOf("/")+1)}function ac(b,a){this.$$html5=!0;a=a||"";var c=$b(b);$c(b,this);this.$$parse=function(a){var b=ya(c,a);if(!I(b))throw zb("ipthprfx",a,c);ad(b,this);this.$$path||
|
|
|
|
|
(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Nb(this.$$search),b=this.$$hash?"#"+kb(this.$$hash):"";this.$$url=Zb(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,h;(f=ya(b,d))!==u?(h=f,h=(f=ya(a,f))!==u?c+(ya("/",f)||f):b+h):(f=ya(c,d))!==u?h=c+f:c==d+"/"&&(h=c);h&&this.$$parse(h);return!!h}}function bc(b,a){var c=$b(b);$c(b,this);this.$$parse=function(d){d=ya(b,d)||ya(c,
|
|
|
|
|
d);var e;"#"===d.charAt(0)?(e=ya(a,d),D(e)&&(e=d)):e=this.$$html5?d:"";ad(e,this);d=this.$$path;var f=/^\/[A-Z]:(\/.*)/;0===e.indexOf(b)&&(e=e.replace(b,""));f.exec(e)||(d=(e=f.exec(d))?e[1]:d);this.$$path=d;this.$$compose()};this.$$compose=function(){var c=Nb(this.$$search),e=this.$$hash?"#"+kb(this.$$hash):"";this.$$url=Zb(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+(this.$$url?a+this.$$url:"")};this.$$parseLinkUrl=function(a,c){return Ia(b)==Ia(a)?(this.$$parse(a),!0):!1}}function bd(b,a){this.$$html5=
|
|
|
|
|
!0;bc.apply(this,arguments);var c=$b(b);this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,h;b==Ia(d)?f=d:(h=ya(c,d))?f=b+a+h:c===d+"/"&&(f=c);f&&this.$$parse(f);return!!f};this.$$compose=function(){var c=Nb(this.$$search),e=this.$$hash?"#"+kb(this.$$hash):"";this.$$url=Zb(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+a+this.$$url}}function Ab(b){return function(){return this[b]}}function cd(b,a){return function(c){if(D(c))return this[b];this[b]=a(c);this.$$compose();
|
|
|
|
|
return this}}function Ue(){var b="",a={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(a){return x(a)?(b=a,this):b};this.html5Mode=function(b){return Wa(b)?(a.enabled=b,this):E(b)?(Wa(b.enabled)&&(a.enabled=b.enabled),Wa(b.requireBase)&&(a.requireBase=b.requireBase),Wa(b.rewriteLinks)&&(a.rewriteLinks=b.rewriteLinks),this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(c,d,e,f,h){function g(a,b,c){var e=k.url(),f=k.$$state;try{d.url(a,b,c),k.$$state=
|
|
|
|
|
d.state()}catch(g){throw k.url(e),k.$$state=f,g;}}function l(a,b){c.$broadcast("$locationChangeSuccess",k.absUrl(),a,k.$$state,b)}var k,m;m=d.baseHref();var q=d.url(),r;if(a.enabled){if(!m&&a.requireBase)throw zb("nobase");r=q.substring(0,q.indexOf("/",q.indexOf("//")+2))+(m||"/");m=e.history?ac:bd}else r=Ia(q),m=bc;k=new m(r,"#"+b);k.$$parseLinkUrl(q,q);k.$$state=d.state();var t=/^\s*(javascript|mailto):/i;f.on("click",function(b){if(a.rewriteLinks&&!b.ctrlKey&&!b.metaKey&&!b.shiftKey&&2!=b.which&&
|
|
|
|
|
2!=b.button){for(var e=A(b.target);"a"!==sa(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var g=e.prop("href"),l=e.attr("href")||e.attr("xlink:href");E(g)&&"[object SVGAnimatedString]"===g.toString()&&(g=Ba(g.animVal).href);t.test(g)||!g||e.attr("target")||b.isDefaultPrevented()||!k.$$parseLinkUrl(g,l)||(b.preventDefault(),k.absUrl()!=d.url()&&(c.$apply(),h.angular["ff-684208-preventDefault"]=!0))}});yb(k.absUrl())!=yb(q)&&d.url(k.absUrl(),!0);var F=!0;d.onUrlChange(function(a,b){c.$evalAsync(function(){var d=
|
|
|
|
|
k.absUrl(),e=k.$$state,f;k.$$parse(a);k.$$state=b;f=c.$broadcast("$locationChangeStart",a,d,b,e).defaultPrevented;k.absUrl()===a&&(f?(k.$$parse(d),k.$$state=e,g(d,!1,e)):(F=!1,l(d,e)))});c.$$phase||c.$digest()});c.$watch(function(){var a=yb(d.url()),b=yb(k.absUrl()),f=d.state(),h=k.$$replace,r=a!==b||k.$$html5&&e.history&&f!==k.$$state;if(F||r)F=!1,c.$evalAsync(function(){var b=k.absUrl(),d=c.$broadcast("$locationChangeStart",b,a,k.$$state,f).defaultPrevented;k.absUrl()===b&&(d?(k.$$parse(a),k.$$state=
|
|
|
|
|
f):(r&&g(b,h,f===k.$$state?null:k.$$state),l(a,f)))});k.$$replace=!1});return k}]}function Ve(){var b=!0,a=this;this.debugEnabled=function(a){return x(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||{},e=b[a]||b.log||w;a=!1;try{a=!!e.apply}catch(l){}return a?function(){var a=
|
|
|
|
|
[];n(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function Ca(b,a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter__"===b||"__lookupSetter__"===b||"__proto__"===b)throw ca("isecfld",a);return b}function ia(b,a){if(b){if(b.constructor===b)throw ca("isecfn",a);if(b.window===b)throw ca("isecwindow",
|
|
|
|
|
a);if(b.children&&(b.nodeName||b.prop&&b.attr&&b.find))throw ca("isecdom",a);if(b===Object)throw ca("isecobj",a);}return b}function dd(b,a){if(b){if(b.constructor===b)throw ca("isecfn",a);if(b===Hf||b===If||b===Jf)throw ca("isecff",a);}}function Kf(b,a){return"undefined"!==typeof b?b:a}function ed(b,a){return"undefined"===typeof b?a:"undefined"===typeof a?b:b+a}function X(b,a){var c,d;switch(b.type){case s.Program:c=!0;n(b.body,function(b){X(b.expression,a);c=c&&b.expression.constant});b.constant=
|
|
|
|
|
c;break;case s.Literal:b.constant=!0;b.toWatch=[];break;case s.UnaryExpression:X(b.argument,a);b.constant=b.argument.constant;b.toWatch=b.argument.toWatch;break;case s.BinaryExpression:X(b.left,a);X(b.right,a);b.constant=b.left.constant&&b.right.constant;b.toWatch=b.left.toWatch.concat(b.right.toWatch);break;case s.LogicalExpression:X(b.left,a);X(b.right,a);b.constant=b.left.constant&&b.right.constant;b.toWatch=b.constant?[]:[b];break;case s.ConditionalExpression:X(b.test,a);X(b.alternate,a);X(b.consequent,
|
|
|
|
|
a);b.constant=b.test.constant&&b.alternate.constant&&b.consequent.constant;b.toWatch=b.constant?[]:[b];break;case s.Identifier:b.constant=!1;b.toWatch=[b];break;case s.MemberExpression:X(b.object,a);b.computed&&X(b.property,a);b.constant=b.object.constant&&(!b.computed||b.property.constant);b.toWatch=[b];break;case s.CallExpression:c=b.filter?!a(b.callee.name).$stateful:!1;d=[];n(b.arguments,function(b){X(b,a);c=c&&b.constant;b.constant||d.push.apply(d,b.toWatch)});b.constant=c;b.toWatch=b.filter&&
|
|
|
|
|
!a(b.callee.name).$stateful?d:[b];break;case s.AssignmentExpression:X(b.left,a);X(b.right,a);b.constant=b.left.constant&&b.right.constant;b.toWatch=[b];break;case s.ArrayExpression:c=!0;d=[];n(b.elements,function(b){X(b,a);c=c&&b.constant;b.constant||d.push.apply(d,b.toWatch)});b.constant=c;b.toWatch=d;break;case s.ObjectExpression:c=!0;d=[];n(b.properties,function(b){X(b.value,a);c=c&&b.value.constant;b.value.constant||d.push.apply(d,b.value.toWatch)});b.constant=c;b.toWatch=d;break;case s.ThisExpression:b.constant=
|
|
|
|
|
!1,b.toWatch=[]}}function fd(b){if(1==b.length){b=b[0].expression;var a=b.toWatch;return 1!==a.length?a:a[0]!==b?a:u}}function gd(b){return b.type===s.Identifier||b.type===s.MemberExpression}function hd(b){if(1===b.body.length&&gd(b.body[0].expression))return{type:s.AssignmentExpression,left:b.body[0].expression,right:{type:s.NGValueParameter},operator:"="}}function id(b){return 0===b.body.length||1===b.body.length&&(b.body[0].expression.type===s.Literal||b.body[0].expression.type===s.ArrayExpression||
|
|
|
|
|
b.body[0].expression.type===s.ObjectExpression)}function jd(b,a){this.astBuilder=b;this.$filter=a}function kd(b,a){this.astBuilder=b;this.$filter=a}function Bb(b,a,c,d){ia(b,d);a=a.split(".");for(var e,f=0;1<a.length;f++){e=Ca(a.shift(),d);var h=ia(b[e],d);h||(h={},b[e]=h);b=h}e=Ca(a.shift(),d);ia(b[e],d);return b[e]=c}function Cb(b){return"constructor"==b}function cc(b){return G(b.valueOf)?b.valueOf():Lf.call(b)}function We(){var b=la(),a=la();this.$get=["$filter","$sniffer",function(c,d){function e(a,
|
|
|
|
|
b){return null==a||null==b?a===b:"object"===typeof a&&(a=cc(a),"object"===typeof a)?!1:a===b||a!==a&&b!==b}function f(a,b,c,d,f){var g=d.inputs,h;if(1===g.length){var l=e,g=g[0];return a.$watch(function(a){var b=g(a);e(b,l)||(h=d(a,u,u,[b]),l=b&&cc(b));return h},b,c,f)}for(var k=[],m=[],q=0,B=g.length;q<B;q++)k[q]=e,m[q]=null;return a.$watch(function(a){for(var b=!1,c=0,f=g.length;c<f;c++){var l=g[c](a);if(b||(b=!e(l,k[c])))m[c]=l,k[c]=l&&cc(l)}b&&(h=d(a,u,u,m));return h},b,c,f)}function h(a,b,c,
|
|
|
|
|
d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a;G(b)&&b.apply(this,arguments);x(a)&&d.$$postDigest(function(){x(f)&&e()})},c)}function g(a,b,c,d){function e(a){var b=!0;n(a,function(a){x(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;G(b)&&b.call(this,a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function l(a,b,c,d){var e;return e=a.$watch(function(a){return d(a)},function(a,c,d){G(b)&&b.apply(this,arguments);e()},c)}
|
|
|
|
|
function k(a,b){if(!b)return a;var c=a.$$watchDelegate,c=c!==g&&c!==h?function(c,d,e,f){e=a(c,d,e,f);return b(e,c,d)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return x(e)?c:e};a.$$watchDelegate&&a.$$watchDelegate!==f?c.$$watchDelegate=a.$$watchDelegate:b.$stateful||(c.$$watchDelegate=f,c.inputs=a.inputs?a.inputs:[a]);return c}var m={csp:d.csp,expensiveChecks:!1},q={csp:d.csp,expensiveChecks:!0};return function(d,e,F){var n,v,p;switch(typeof d){case "string":p=d=d.trim();var s=F?a:b;n=s[p];n||(":"===
|
|
|
|
|
d.charAt(0)&&":"===d.charAt(1)&&(v=!0,d=d.substring(2)),F=F?q:m,n=new dc(F),n=(new ec(n,c,F)).parse(d),n.constant?n.$$watchDelegate=l:v?n.$$watchDelegate=n.literal?g:h:n.inputs&&(n.$$watchDelegate=f),s[p]=n);return k(n,e);case "function":return k(d,e);default:return w}}}]}function Ye(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return ld(function(a){b.$evalAsync(a)},a)}]}function Ze(){this.$get=["$browser","$exceptionHandler",function(b,a){return ld(function(a){b.defer(a)},a)}]}function ld(b,
|
|
|
|
|
a){function c(a,b,c){function d(b){return function(c){e||(e=!0,b.call(a,c))}}var e=!1;return[d(b),d(c)]}function d(){this.$$state={status:0}}function e(a,b){return function(c){b.call(a,c)}}function f(c){!c.processScheduled&&c.pending&&(c.processScheduled=!0,b(function(){var b,d,e;e=c.pending;c.processScheduled=!1;c.pending=u;for(var f=0,g=e.length;f<g;++f){d=e[f][0];b=e[f][c.status];try{G(b)?d.resolve(b(c.value)):1===c.status?d.resolve(c.value):d.reject(c.value)}catch(h){d.reject(h),a(h)}}}))}function h(){this.promise=
|
|
|
|
|
new d;this.resolve=e(this,this.resolve);this.reject=e(this,this.reject);this.notify=e(this,this.notify)}var g=H("$q",TypeError);d.prototype={then:function(a,b,c){var d=new h;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&f(this.$$state);return d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return k(b,!0,a)},function(b){return k(b,!1,a)},b)}};h.prototype={resolve:function(a){this.promise.$$state.status||
|
|
|
|
|
(a===this.promise?this.$$reject(g("qcycle",a)):this.$$resolve(a))},$$resolve:function(b){var d,e;e=c(this,this.$$resolve,this.$$reject);try{if(E(b)||G(b))d=b&&b.then;G(d)?(this.promise.$$state.status=-1,d.call(b,e[0],e[1],this.notify)):(this.promise.$$state.value=b,this.promise.$$state.status=1,f(this.promise.$$state))}catch(g){e[1](g),a(g)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=a;this.promise.$$state.status=2;f(this.promise.$$state)},
|
|
|
|
|
notify:function(c){var d=this.promise.$$state.pending;0>=this.promise.$$state.status&&d&&d.length&&b(function(){for(var b,e,f=0,g=d.length;f<g;f++){e=d[f][0];b=d[f][3];try{e.notify(G(b)?b(c):c)}catch(h){a(h)}}})}};var l=function(a,b){var c=new h;b?c.resolve(a):c.reject(a);return c.promise},k=function(a,b,c){var d=null;try{G(c)&&(d=c())}catch(e){return l(e,!1)}return d&&G(d.then)?d.then(function(){return l(a,b)},function(a){return l(a,!1)}):l(a,b)},m=function(a,b,c,d){var e=new h;e.resolve(a);return e.promise.then(b,
|
|
|
|
|
c,d)},q=function t(a){if(!G(a))throw g("norslvr",a);if(!(this instanceof t))return new t(a);var b=new h;a(function(a){b.resolve(a)},function(a){b.reject(a)});return b.promise};q.defer=function(){return new h};q.reject=function(a){var b=new h;b.reject(a);return b.promise};q.when=m;q.all=function(a){var b=new h,c=0,d=C(a)?[]:{};n(a,function(a,e){c++;m(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||b.reject(a)})});0===c&&b.resolve(d);return b.promise};
|
|
|
|
|
return q}function hf(){this.$get=["$window","$timeout",function(b,a){var c=b.requestAnimationFrame||b.webkitRequestAnimationFrame,d=b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.webkitCancelRequestAnimationFrame,e=!!c,f=e?function(a){var b=c(a);return function(){d(b)}}:function(b){var c=a(b,16.66,!1);return function(){a.cancel(c)}};f.supported=e;return f}]}function Xe(){function b(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners=
|
|
|
|
|
{};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++jb;this.$$ChildScope=null}b.prototype=a;return b}var a=10,c=H("$rootScope"),d=null,e=null;this.digestTtl=function(b){arguments.length&&(a=b);return a};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(f,h,g,l){function k(a){a.currentScope.$$destroyed=!0}function m(){this.$id=++jb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=
|
|
|
|
|
!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function q(a){if(p.$$phase)throw c("inprog",p.$$phase);p.$$phase=a}function r(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function t(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function F(){}function s(){for(;z.length;)try{z.shift()()}catch(a){h(a)}e=null}function v(){null===e&&(e=l.defer(function(){p.$apply(s)}))}m.prototype={constructor:m,
|
|
|
|
|
$new:function(a,c){var d;c=c||this;a?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=b(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(a||c!=this)&&d.$on("$destroy",k);return d},$watch:function(a,b,c,e){var f=g(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,c,f,a);var h=this,l=h.$$watchers,k={fn:b,last:F,get:f,exp:e||a,eq:!!c};d=null;G(b)||(k.fn=w);l||
|
|
|
|
|
(l=h.$$watchers=[]);l.unshift(k);r(this,1);return function(){0<=Xa(l,k)&&r(h,-1);d=null}},$watchGroup:function(a,b){function c(){h=!1;l?(l=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,l=!0;if(!a.length){var k=!0;g.$evalAsync(function(){k&&b(e,e,g)});return function(){k=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});n(a,function(a,b){var l=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});f.push(l)});return function(){for(;f.length;)f.shift()()}},
|
|
|
|
|
$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!D(e)){if(E(e))if(Ra(e))for(f!==q&&(f=q,t=f.length=0,k++),a=e.length,t!==a&&(k++,f.length=t=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(k++,f[b]=g);else{f!==r&&(f=r={},t=0,k++);a=0;for(b in e)e.hasOwnProperty(b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(k++,f[b]=g)):(t++,f[b]=g,k++));if(t>a)for(b in k++,f)e.hasOwnProperty(b)||(t--,delete f[b])}else f!==e&&(f=e,k++);return k}}c.$stateful=!0;var d=this,e,f,h,l=1<
|
|
|
|
|
b.length,k=0,m=g(a,c),q=[],r={},p=!0,t=0;return this.$watch(m,function(){p?(p=!1,b(e,e,d)):b(e,h,d);if(l)if(E(e))if(Ra(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)sc.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var b,f,g,k,m,r,t=a,n,z=[],v,w;q("$digest");l.$$checkUrlChange();this===p&&null!==e&&(l.defer.cancel(e),s());d=null;do{r=!1;for(n=this;u.length;){try{w=u.shift(),w.scope.$eval(w.expression,w.locals)}catch(A){h(A)}d=null}a:do{if(k=n.$$watchers)for(m=
|
|
|
|
|
k.length;m--;)try{if(b=k[m])if((f=b.get(n))!==(g=b.last)&&!(b.eq?ja(f,g):"number"===typeof f&&"number"===typeof g&&isNaN(f)&&isNaN(g)))r=!0,d=b,b.last=b.eq?ta(f,null):f,b.fn(f,g===F?f:g,n),5>t&&(v=4-t,z[v]||(z[v]=[]),z[v].push({msg:G(b.exp)?"fn: "+(b.exp.name||b.exp.toString()):b.exp,newVal:f,oldVal:g}));else if(b===d){r=!1;break a}}catch(D){h(D)}if(!(k=n.$$watchersCount&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(k=n.$$nextSibling);)n=n.$parent}while(n=k);if((r||u.length)&&!t--)throw p.$$phase=
|
|
|
|
|
null,c("infdig",a,z);}while(r||u.length);for(p.$$phase=null;x.length;)try{x.shift()()}catch(E){h(E)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;r(this,-this.$$watchersCount);for(var b in this.$$listenerCount)t(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail==this&&(a.$$childTail=this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);
|
|
|
|
|
this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=w;this.$on=this.$watch=this.$watchGroup=function(){return w};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,b){p.$$phase||u.length||l.defer(function(){u.length&&p.$digest()});u.push({scope:this,expression:a,
|
|
|
|
|
locals:b})},$$postDigest:function(a){x.push(a)},$apply:function(a){try{return q("$apply"),this.$eval(a)}catch(b){h(b)}finally{p.$$phase=null;try{p.$digest()}catch(c){throw h(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&z.push(b);v()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&
|
|
|
|
|
(c[d]=null,t(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,f=!1,g={name:a,targetScope:e,stopPropagation:function(){f=!0},preventDefault:function(){g.defaultPrevented=!0},defaultPrevented:!1},k=Ya([g],arguments,1),l,m;do{d=e.$$listeners[a]||c;g.currentScope=e;l=0;for(m=d.length;l<m;l++)if(d[l])try{d[l].apply(null,k)}catch(q){h(q)}else d.splice(l,1),l--,m--;if(f)return g.currentScope=null,g;e=e.$parent}while(e);g.currentScope=null;return g},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,
|
|
|
|
|
preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var f=Ya([e],arguments,1),g,l;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];g=0;for(l=d.length;g<l;g++)if(d[g])try{d[g].apply(null,f)}catch(k){h(k)}else d.splice(g,1),g--,l--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=null;return e}};var p=new m,u=p.$$asyncQueue=[],x=p.$$postDigestQueue=[],z=p.$$applyAsyncQueue=
|
|
|
|
|
[];return p}]}function $d(){var b=/^\s*(https?|ftp|mailto|tel|file):/,a=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(a){return x(a)?(b=a,this):b};this.imgSrcSanitizationWhitelist=function(b){return x(b)?(a=b,this):a};this.$get=function(){return function(c,d){var e=d?a:b,f;f=Ba(c).href;return""===f||f.match(e)?c:"unsafe:"+f}}}function Mf(b){if("self"===b)return b;if(I(b)){if(-1<b.indexOf("***"))throw Da("iwcard",b);b=md(b).replace("\\*\\*",".*").replace("\\*",
|
|
|
|
|
"[^:/.?&;]*");return new RegExp("^"+b+"$")}if(Ua(b))return new RegExp("^"+b.source+"$");throw Da("imatcher");}function nd(b){var a=[];x(b)&&n(b,function(b){a.push(Mf(b))});return a}function af(){this.SCE_CONTEXTS=ma;var b=["self"],a=[];this.resourceUrlWhitelist=function(a){arguments.length&&(b=nd(a));return b};this.resourceUrlBlacklist=function(b){arguments.length&&(a=nd(b));return a};this.$get=["$injector",function(c){function d(a,b){return"self"===a?Zc(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=
|
|
|
|
|
function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw Da("unsafe");};c.has("$sanitize")&&(f=c.get("$sanitize"));var h=e(),g={};g[ma.HTML]=e(h);g[ma.CSS]=e(h);g[ma.URL]=e(h);g[ma.JS]=e(h);g[ma.RESOURCE_URL]=e(g[ma.URL]);return{trustAs:function(a,b){var c=g.hasOwnProperty(a)?g[a]:null;if(!c)throw Da("icontext",a,b);if(null===b||b===
|
|
|
|
|
u||""===b)return b;if("string"!==typeof b)throw Da("itype",a);return new c(b)},getTrusted:function(c,e){if(null===e||e===u||""===e)return e;var h=g.hasOwnProperty(c)?g[c]:null;if(h&&e instanceof h)return e.$$unwrapTrustedValue();if(c===ma.RESOURCE_URL){var h=Ba(e.toString()),q,r,t=!1;q=0;for(r=b.length;q<r;q++)if(d(b[q],h)){t=!0;break}if(t)for(q=0,r=a.length;q<r;q++)if(d(a[q],h)){t=!1;break}if(t)return e;throw Da("insecurl",e.toString());}if(c===ma.HTML)return f(e);throw Da("unsafe");},valueOf:function(a){return a instanceof
|
|
|
|
|
h?a.$$unwrapTrustedValue():a}}}]}function $e(){var b=!0;this.enabled=function(a){arguments.length&&(b=!!a);return b};this.$get=["$parse","$sceDelegate",function(a,c){if(b&&8>fb)throw Da("iequirks");var d=ea(ma);d.isEnabled=function(){return b};d.trustAs=c.trustAs;d.getTrusted=c.getTrusted;d.valueOf=c.valueOf;b||(d.trustAs=d.getTrusted=function(a,b){return b},d.valueOf=Ta);d.parseAs=function(b,c){var e=a(c);return e.literal&&e.constant?e:a(c,function(a){return d.getTrusted(b,a)})};var e=d.parseAs,
|
|
|
|
|
f=d.getTrusted,h=d.trustAs;n(ma,function(a,b){var c=M(b);d[db("parse_as_"+c)]=function(b){return e(a,b)};d[db("get_trusted_"+c)]=function(b){return f(a,b)};d[db("trust_as_"+c)]=function(b){return h(a,b)}});return d}]}function bf(){this.$get=["$window","$document",function(b,a){var c={},d=ba((/android (\d+)/.exec(M((b.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((b.navigator||{}).userAgent),f=a[0]||{},h,g=/^(Moz|webkit|ms)(?=[A-Z])/,l=f.body&&f.body.style,k=!1,m=!1;if(l){for(var q in l)if(k=
|
|
|
|
|
g.exec(q)){h=k[0];h=h.substr(0,1).toUpperCase()+h.substr(1);break}h||(h="WebkitOpacity"in l&&"webkit");k=!!("transition"in l||h+"Transition"in l);m=!!("animation"in l||h+"Animation"in l);!d||k&&m||(k=I(l.webkitTransition),m=I(l.webkitAnimation))}return{history:!(!b.history||!b.history.pushState||4>d||e),hasEvent:function(a){if("input"===a&&11>=fb)return!1;if(D(c[a])){var b=f.createElement("div");c[a]="on"+a in b}return c[a]},csp:bb(),vendorPrefix:h,transitions:k,animations:m,android:d}}]}function df(){this.$get=
|
|
|
|
|
["$templateCache","$http","$q",function(b,a,c){function d(e,f){d.totalPendingRequests++;var h=a.defaults&&a.defaults.transformResponse;C(h)?h=h.filter(function(a){return a!==Xb}):h===Xb&&(h=null);return a.get(e,{cache:b,transformResponse:h})["finally"](function(){d.totalPendingRequests--}).then(function(a){b.put(e,a.data);return a.data},function(a){if(!f)throw ga("tpload",e,a.status,a.statusText);return c.reject(a)})}d.totalPendingRequests=0;return d}]}function ef(){this.$get=["$rootScope","$browser",
|
|
|
|
|
"$location",function(b,a,c){return{findBindings:function(a,b,c){a=a.getElementsByClassName("ng-binding");var h=[];n(a,function(a){var d=$.element(a).data("$binding");d&&n(d,function(d){c?(new RegExp("(^|\\s)"+md(b)+"(\\s|\\||$)")).test(d)&&h.push(a):-1!=d.indexOf(b)&&h.push(a)})});return h},findModels:function(a,b,c){for(var h=["ng-","data-ng-","ng\\:"],g=0;g<h.length;++g){var l=a.querySelectorAll("["+h[g]+"model"+(c?"=":"*=")+'"'+b+'"]');if(l.length)return l}},getLocation:function(){return c.url()},
|
|
|
|
|
setLocation:function(a){a!==c.url()&&(c.url(a),b.$digest())},whenStable:function(b){a.notifyWhenNoOutstandingRequests(b)}}}]}function ff(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(b,a,c,d,e){function f(f,l,k){G(f)||(k=l,l=f,f=w);var m=qa.call(arguments,3),q=x(k)&&!k,r=(q?d:c).defer(),t=r.promise,n;n=a.defer(function(){try{r.resolve(f.apply(null,m))}catch(a){r.reject(a),e(a)}finally{delete h[t.$$timeoutId]}q||b.$apply()},l);t.$$timeoutId=n;h[n]=r;return t}var h={};
|
|
|
|
|
f.cancel=function(b){return b&&b.$$timeoutId in h?(h[b.$$timeoutId].reject("canceled"),delete h[b.$$timeoutId],a.defer.cancel(b.$$timeoutId)):!1};return f}]}function Ba(b){fb&&(Z.setAttribute("href",b),b=Z.href);Z.setAttribute("href",b);return{href:Z.href,protocol:Z.protocol?Z.protocol.replace(/:$/,""):"",host:Z.host,search:Z.search?Z.search.replace(/^\?/,""):"",hash:Z.hash?Z.hash.replace(/^#/,""):"",hostname:Z.hostname,port:Z.port,pathname:"/"===Z.pathname.charAt(0)?Z.pathname:"/"+Z.pathname}}function Zc(b){b=
|
|
|
|
|
I(b)?Ba(b):b;return b.protocol===od.protocol&&b.host===od.host}function gf(){this.$get=oa(O)}function pd(b){function a(a){try{return decodeURIComponent(a)}catch(b){return a}}var c=b[0],d={},e="";return function(){var b,h,g,l,k;if(c.cookie!==e)for(e=c.cookie,b=e.split("; "),d={},g=0;g<b.length;g++)h=b[g],l=h.indexOf("="),0<l&&(k=a(h.substring(0,l)),d[k]===u&&(d[k]=a(h.substring(l+1))));return d}}function mf(){this.$get=pd}function Ec(b){function a(c,d){if(E(c)){var e={};n(c,function(b,c){e[c]=a(c,
|
|
|
|
|
b)});return e}return b.factory(c+"Filter",d)}this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];a("currency",qd);a("date",rd);a("filter",Nf);a("json",Of);a("limitTo",Pf);a("lowercase",Qf);a("number",sd);a("orderBy",td);a("uppercase",Rf)}function Nf(){return function(b,a,c){if(!C(b)){if(null==b)return b;throw H("filter")("notarray",b);}var d;switch(typeof a){case "function":break;case "boolean":case "number":case "string":d=!0;case "object":a=Sf(a,c,d);
|
|
|
|
|
break;default:return b}return b.filter(a)}}function Sf(b,a,c){var d=E(b)&&"$"in b;!0===a?a=ja:G(a)||(a=function(a,b){var c;!(c=E(b))&&(c=E(a))&&(c=a,c=!(G(c.toString)&&c.toString!==Object.prototype.toString));if(c)return!1;a=M(""+a);b=M(""+b);return-1!==a.indexOf(b)});return function(e){return d&&!E(e)?Ka(e,b.$,a,!1):Ka(e,b,a,c)}}function Ka(b,a,c,d,e){var f=null!==b?typeof b:"null",h=null!==a?typeof a:"null";if("string"===h&&"!"===a.charAt(0))return!Ka(b,a.substring(1),c,d);if(C(b))return b.some(function(b){return Ka(b,
|
|
|
|
|
a,c,d)});switch(f){case "object":var g;if(d){for(g in b)if("$"!==g.charAt(0)&&Ka(b[g],a,c,!0))return!0;return e?!1:Ka(b,a,c,!1)}if("object"===h){for(g in a)if(e=a[g],!G(e)&&!D(e)&&(f="$"===g,!Ka(f?b:b[g],e,c,f,f)))return!1;return!0}return c(b,a);case "function":return!1;default:return c(b,a)}}function qd(b){var a=b.NUMBER_FORMATS;return function(b,d,e){D(d)&&(d=a.CURRENCY_SYM);D(e)&&(e=a.PATTERNS[1].maxFrac);return null==b?b:ud(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,e).replace(/\u00A4/g,d)}}function sd(b){var a=
|
|
|
|
|
b.NUMBER_FORMATS;return function(b,d){return null==b?b:ud(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function ud(b,a,c,d,e){if(E(b))return"";var f=0>b;b=Math.abs(b);var h=Infinity===b;if(!h&&!isFinite(b))return"";var g=b+"",l="",k=!1,m=[];h&&(l="\u221e");if(!h&&-1!==g.indexOf("e")){var q=g.match(/([\d\.]+)e(-?)(\d+)/);q&&"-"==q[2]&&q[3]>e+1?b=0:(l=g,k=!0)}if(h||k)0<e&&1>b&&(l=b.toFixed(e),b=parseFloat(l));else{h=(g.split(vd)[1]||"").length;D(e)&&(e=Math.min(Math.max(a.minFrac,h),a.maxFrac));b=
|
|
|
|
|
+(Math.round(+(b.toString()+"e"+e)).toString()+"e"+-e);var h=(""+b).split(vd),g=h[0],h=h[1]||"",q=0,r=a.lgSize,t=a.gSize;if(g.length>=r+t)for(q=g.length-r,k=0;k<q;k++)0===(q-k)%t&&0!==k&&(l+=c),l+=g.charAt(k);for(k=q;k<g.length;k++)0===(g.length-k)%r&&0!==k&&(l+=c),l+=g.charAt(k);for(;h.length<e;)h+="0";e&&"0"!==e&&(l+=d+h.substr(0,e))}0===b&&(f=!1);m.push(f?a.negPre:a.posPre,l,f?a.negSuf:a.posSuf);return m.join("")}function Db(b,a,c){var d="";0>b&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=
|
|
|
|
|
b.substr(b.length-a));return d+b}function aa(b,a,c,d){c=c||0;return function(e){e=e["get"+b]();if(0<c||e>-c)e+=c;0===e&&-12==c&&(e=12);return Db(e,a,d)}}function Eb(b,a){return function(c,d){var e=c["get"+b](),f=nb(a?"SHORT"+b:b);return d[f][e]}}function wd(b){var a=(new Date(b,0,1)).getDay();return new Date(b,0,(4>=a?5:12)-a)}function xd(b){return function(a){var c=wd(a.getFullYear());a=+new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))-+c;a=1+Math.round(a/6048E5);return Db(a,b)}}
|
|
|
|
|
function fc(b,a){return 0>=b.getFullYear()?a.ERAS[0]:a.ERAS[1]}function rd(b){function a(a){var b;if(b=a.match(c)){a=new Date(0);var f=0,h=0,g=b[8]?a.setUTCFullYear:a.setFullYear,l=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=ba(b[9]+b[10]),h=ba(b[9]+b[11]));g.call(a,ba(b[1]),ba(b[2])-1,ba(b[3]));f=ba(b[4]||0)-f;h=ba(b[5]||0)-h;g=ba(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));l.call(a,f,h,g,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
|
|
|
|
|
return function(c,e,f){var h="",g=[],l,k;e=e||"mediumDate";e=b.DATETIME_FORMATS[e]||e;I(c)&&(c=Tf.test(c)?ba(c):a(c));W(c)&&(c=new Date(c));if(!da(c)||!isFinite(c.getTime()))return c;for(;e;)(k=Uf.exec(e))?(g=Ya(g,k,1),e=g.pop()):(g.push(e),e=null);var m=c.getTimezoneOffset();f&&(m=pc(f,c.getTimezoneOffset()),c=Mb(c,f,!0));n(g,function(a){l=Vf[a];h+=l?l(c,b.DATETIME_FORMATS,m):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return h}}function Of(){return function(b,a){D(a)&&(a=2);return Za(b,a)}}function Pf(){return function(b,
|
|
|
|
|
a,c){a=Infinity===Math.abs(Number(a))?Number(a):ba(a);if(isNaN(a))return b;W(b)&&(b=b.toString());if(!C(b)&&!I(b))return b;c=!c||isNaN(c)?0:ba(c);c=0>c&&c>=-b.length?b.length+c:c;return 0<=a?b.slice(c,c+a):0===c?b.slice(a,b.length):b.slice(Math.max(0,c+a),c)}}function td(b){return function(a,c,d){function e(a,b){return b?function(b,c){return a(c,b)}:a}function f(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}function h(a){return null===a?"null":"function"===
|
|
|
|
|
typeof a.valueOf&&(a=a.valueOf(),f(a))||"function"===typeof a.toString&&(a=a.toString(),f(a))?a:""}function g(a,b){var c=typeof a,d=typeof b;c===d&&"object"===c&&(a=h(a),b=h(b));return c===d?("string"===c&&(a=a.toLowerCase(),b=b.toLowerCase()),a===b?0:a<b?-1:1):c<d?-1:1}if(!Ra(a))return a;c=C(c)?c:[c];0===c.length&&(c=["+"]);c=c.map(function(a){var c=!1,d=a||Ta;if(I(a)){if("+"==a.charAt(0)||"-"==a.charAt(0))c="-"==a.charAt(0),a=a.substring(1);if(""===a)return e(g,c);d=b(a);if(d.constant){var f=d();
|
|
|
|
|
return e(function(a,b){return g(a[f],b[f])},c)}}return e(function(a,b){return g(d(a),d(b))},c)});return qa.call(a).sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},d))}}function La(b){G(b)&&(b={link:b});b.restrict=b.restrict||"AC";return oa(b)}function yd(b,a,c,d,e){var f=this,h=[],g=f.$$parentForm=b.parent().controller("form")||Fb;f.$error={};f.$$success={};f.$pending=u;f.$name=e(a.name||a.ngForm||"")(c);f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=
|
|
|
|
|
!1;f.$submitted=!1;g.$addControl(f);f.$rollbackViewValue=function(){n(h,function(a){a.$rollbackViewValue()})};f.$commitViewValue=function(){n(h,function(a){a.$commitViewValue()})};f.$addControl=function(a){Pa(a.$name,"input");h.push(a);a.$name&&(f[a.$name]=a)};f.$$renameControl=function(a,b){var c=a.$name;f[c]===a&&delete f[c];f[b]=a;a.$name=b};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];n(f.$pending,function(b,c){f.$setValidity(c,null,a)});n(f.$error,function(b,c){f.$setValidity(c,
|
|
|
|
|
null,a)});n(f.$$success,function(b,c){f.$setValidity(c,null,a)});Xa(h,a)};zd({ctrl:this,$element:b,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(Xa(d,c),0===d.length&&delete a[b])},parentForm:g,$animate:d});f.$setDirty=function(){d.removeClass(b,Qa);d.addClass(b,Gb);f.$dirty=!0;f.$pristine=!1;g.$setDirty()};f.$setPristine=function(){d.setClass(b,Qa,Gb+" ng-submitted");f.$dirty=!1;f.$pristine=!0;f.$submitted=!1;n(h,function(a){a.$setPristine()})};
|
|
|
|
|
f.$setUntouched=function(){n(h,function(a){a.$setUntouched()})};f.$setSubmitted=function(){d.addClass(b,"ng-submitted");f.$submitted=!0;g.$setSubmitted()}}function gc(b){b.$formatters.push(function(a){return b.$isEmpty(a)?a:a.toString()})}function gb(b,a,c,d,e,f){var h=M(a[0].type);if(!e.android){var g=!1;a.on("compositionstart",function(a){g=!0});a.on("compositionend",function(){g=!1;l()})}var l=function(b){k&&(f.defer.cancel(k),k=null);if(!g){var e=a.val();b=b&&b.type;"password"===h||c.ngTrim&&
|
|
|
|
|
"false"===c.ngTrim||(e=V(e));(d.$viewValue!==e||""===e&&d.$$hasNativeValidators)&&d.$setViewValue(e,b)}};if(e.hasEvent("input"))a.on("input",l);else{var k,m=function(a,b,c){k||(k=f.defer(function(){k=null;b&&b.value===c||l(a)}))};a.on("keydown",function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))a.on("paste cut",m)}a.on("change",l);d.$render=function(){a.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)}}function Hb(b,a){return function(c,d){var e,
|
|
|
|
|
f;if(da(c))return c;if(I(c)){'"'==c.charAt(0)&&'"'==c.charAt(c.length-1)&&(c=c.substring(1,c.length-1));if(Wf.test(c))return new Date(c);b.lastIndex=0;if(e=b.exec(c))return e.shift(),f=d?{yyyy:d.getFullYear(),MM:d.getMonth()+1,dd:d.getDate(),HH:d.getHours(),mm:d.getMinutes(),ss:d.getSeconds(),sss:d.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},n(e,function(b,c){c<a.length&&(f[a[c]]=+b)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0)}return NaN}}function hb(b,a,c,
|
|
|
|
|
d){return function(e,f,h,g,l,k,m){function q(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function r(a){return x(a)?da(a)?a:c(a):u}Ad(e,f,h,g);gb(e,f,h,g,l,k);var t=g&&g.$options&&g.$options.timezone,n;g.$$parserName=b;g.$parsers.push(function(b){return g.$isEmpty(b)?null:a.test(b)?(b=c(b,n),t&&(b=Mb(b,t)),b):u});g.$formatters.push(function(a){if(a&&!da(a))throw Ib("datefmt",a);if(q(a))return(n=a)&&t&&(n=Mb(n,t,!0)),m("date")(a,d,t);n=null;return""});if(x(h.min)||h.ngMin){var s;g.$validators.min=
|
|
|
|
|
function(a){return!q(a)||D(s)||c(a)>=s};h.$observe("min",function(a){s=r(a);g.$validate()})}if(x(h.max)||h.ngMax){var v;g.$validators.max=function(a){return!q(a)||D(v)||c(a)<=v};h.$observe("max",function(a){v=r(a);g.$validate()})}}}function Ad(b,a,c,d){(d.$$hasNativeValidators=E(a[0].validity))&&d.$parsers.push(function(b){var c=a.prop("validity")||{};return c.badInput&&!c.typeMismatch?u:b})}function Bd(b,a,c,d,e){if(x(d)){b=b(d);if(!b.constant)throw H("ngModel")("constexpr",c,d);return b(a)}return e}
|
|
|
|
|
function hc(b,a){b="ngClass"+b;return["$animate",function(c){function d(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){var b=[];return C(a)?(n(a,function(a){b=b.concat(e(a))}),b):I(a)?a.split(" "):E(a)?(n(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(f,h,g){function l(a,b){var c=h.data("$classCounts")||{},d=[];n(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});
|
|
|
|
|
h.data("$classCounts",c);return d.join(" ")}function k(b){if(!0===a||f.$index%2===a){var k=e(b||[]);if(!m){var t=l(k,1);g.$addClass(t)}else if(!ja(b,m)){var n=e(m),t=d(k,n),k=d(n,k),t=l(t,1),k=l(k,-1);t&&t.length&&c.addClass(h,t);k&&k.length&&c.removeClass(h,k)}}m=ea(b)}var m;f.$watch(g[b],k,!0);g.$observe("class",function(a){k(f.$eval(g[b]))});"ngClass"!==b&&f.$watch("$index",function(c,d){var h=c&1;if(h!==(d&1)){var k=e(f.$eval(g[b]));h===a?(h=l(k,1),g.$addClass(h)):(h=l(k,-1),g.$removeClass(h))}})}}}]}
|
|
|
|
|
function zd(b){function a(a,b){b&&!f[a]?(k.addClass(e,a),f[a]=!0):!b&&f[a]&&(k.removeClass(e,a),f[a]=!1)}function c(b,c){b=b?"-"+uc(b,"-"):"";a(ib+b,!0===c);a(Cd+b,!1===c)}var d=b.ctrl,e=b.$element,f={},h=b.set,g=b.unset,l=b.parentForm,k=b.$animate;f[Cd]=!(f[ib]=e.hasClass(ib));d.$setValidity=function(b,e,f){e===u?(d.$pending||(d.$pending={}),h(d.$pending,b,f)):(d.$pending&&g(d.$pending,b,f),Dd(d.$pending)&&(d.$pending=u));Wa(e)?e?(g(d.$error,b,f),h(d.$$success,b,f)):(h(d.$error,b,f),g(d.$$success,
|
|
|
|
|
b,f)):(g(d.$error,b,f),g(d.$$success,b,f));d.$pending?(a(Ed,!0),d.$valid=d.$invalid=u,c("",null)):(a(Ed,!1),d.$valid=Dd(d.$error),d.$invalid=!d.$valid,c("",d.$valid));e=d.$pending&&d.$pending[b]?u:d.$error[b]?!1:d.$$success[b]?!0:null;c(b,e);l.$setValidity(b,e,d)}}function Dd(b){if(b)for(var a in b)return!1;return!0}var Xf=/^\/(.+)\/([a-z]*)$/,M=function(b){return I(b)?b.toLowerCase():b},sc=Object.prototype.hasOwnProperty,nb=function(b){return I(b)?b.toUpperCase():b},fb,A,ka,qa=[].slice,zf=[].splice,
|
|
|
|
|
Yf=[].push,ra=Object.prototype.toString,Ea=H("ng"),$=O.angular||(O.angular={}),cb,jb=0;fb=Y.documentMode;w.$inject=[];Ta.$inject=[];var C=Array.isArray,mc=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,V=function(b){return I(b)?b.trim():b},md=function(b){return b.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},bb=function(){if(x(bb.isActive_))return bb.isActive_;var b=!(!Y.querySelector("[ng-csp]")&&!Y.querySelector("[data-ng-csp]"));
|
|
|
|
|
if(!b)try{new Function("")}catch(a){b=!0}return bb.isActive_=b},lb=function(){if(x(lb.name_))return lb.name_;var b,a,c=Ma.length,d,e;for(a=0;a<c;++a)if(d=Ma[a],b=Y.querySelector("["+d.replace(":","\\:")+"jq]")){e=b.getAttribute(d+"jq");break}return lb.name_=e},Ma=["ng-","data-ng-","ng:","x-ng-"],Ud=/[A-Z]/g,vc=!1,Ob,na=1,$a=3,Yd={full:"1.4.0-build.3937+sha.171b9f7",major:1,minor:4,dot:0,codeName:"snapshot"};P.expando="ng339";var sb=P.cache={},sf=1;P._data=function(b){return this.cache[b[this.expando]]||
|
|
|
|
|
{}};var nf=/([\:\-\_]+(.))/g,of=/^moz([A-Z])/,Zf={mouseleave:"mouseout",mouseenter:"mouseover"},Rb=H("jqLite"),rf=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Qb=/<|&#?\w+;/,pf=/<([\w:]+)/,qf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,fa={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};
|
|
|
|
|
fa.optgroup=fa.option;fa.tbody=fa.tfoot=fa.colgroup=fa.caption=fa.thead;fa.th=fa.td;var Na=P.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;"complete"===Y.readyState?setTimeout(a):(this.on("DOMContentLoaded",a),P(O).on("load",a))},toString:function(){var b=[];n(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return 0<=b?A(this[b]):A(this[this.length+b])},length:0,push:Yf,sort:[].sort,splice:[].splice},xb={};n("multiple selected checked disabled readOnly required open".split(" "),
|
|
|
|
|
function(b){xb[M(b)]=b});var Mc={};n("input select option textarea button form details".split(" "),function(b){Mc[b]=!0});var Nc={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};n({data:Tb,removeData:qb},function(b,a){P[a]=b});n({data:Tb,inheritedData:wb,scope:function(b){return A.data(b,"$scope")||wb(b.parentNode||b,["$isolateScope","$scope"])},isolateScope:function(b){return A.data(b,"$isolateScope")||A.data(b,"$isolateScopeNoTemplate")},controller:Jc,
|
|
|
|
|
injector:function(b){return wb(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:tb,css:function(b,a,c){a=db(a);if(x(c))b.style[a]=c;else return b.style[a]},attr:function(b,a,c){var d=b.nodeType;if(d!==$a&&2!==d&&8!==d)if(d=M(a),xb[d])if(x(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||w).specified?d:u;else if(x(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),null===b?u:b},prop:function(b,
|
|
|
|
|
a,c){if(x(c))b[a]=c;else return b[a]},text:function(){function b(a,b){if(D(b)){var d=a.nodeType;return d===na||d===$a?a.textContent:""}a.textContent=b}b.$dv="";return b}(),val:function(b,a){if(D(a)){if(b.multiple&&"select"===sa(b)){var c=[];n(b.options,function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return b.value}b.value=a},html:function(b,a){if(D(a))return b.innerHTML;pb(b,!0);b.innerHTML=a},empty:Kc},function(b,a){P.prototype[a]=function(a,d){var e,f,h=this.length;
|
|
|
|
|
if(b!==Kc&&(2==b.length&&b!==tb&&b!==Jc?a:d)===u){if(E(a)){for(e=0;e<h;e++)if(b===Tb)b(this[e],a);else for(f in a)b(this[e],f,a[f]);return this}e=b.$dv;h=e===u?Math.min(h,1):h;for(f=0;f<h;f++){var g=b(this[f],a,d);e=e?e+g:g}return e}for(e=0;e<h;e++)b(this[e],a,d);return this}});n({removeData:qb,on:function a(c,d,e,f){if(x(f))throw Rb("onargs");if(Fc(c)){var h=rb(c,!0);f=h.events;var g=h.handle;g||(g=h.handle=vf(c,f));for(var h=0<=d.indexOf(" ")?d.split(" "):[d],l=h.length;l--;){d=h[l];var k=f[d];
|
|
|
|
|
k||(f[d]=[],"mouseenter"===d||"mouseleave"===d?a(c,Zf[d],function(a){var c=a.relatedTarget;c&&(c===this||this.contains(c))||g(a,d)}):"$destroy"!==d&&c.addEventListener(d,g,!1),k=f[d]);k.push(e)}}},off:Ic,one:function(a,c,d){a=A(a);a.on(c,function f(){a.off(c,d);a.off(c,f)});a.on(c,d)},replaceWith:function(a,c){var d,e=a.parentNode;pb(a);n(new P(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];n(a.childNodes,function(a){a.nodeType===na&&c.push(a)});
|
|
|
|
|
return c},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,c){var d=a.nodeType;if(d===na||11===d){c=new P(c);for(var d=0,e=c.length;d<e;d++)a.appendChild(c[d])}},prepend:function(a,c){if(a.nodeType===na){var d=a.firstChild;n(new P(c),function(c){a.insertBefore(c,d)})}},wrap:function(a,c){c=A(c).eq(0).clone()[0];var d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:Ub,detach:function(a){Ub(a,!0)},after:function(a,c){var d=a,e=a.parentNode;c=new P(c);for(var f=
|
|
|
|
|
0,h=c.length;f<h;f++){var g=c[f];e.insertBefore(g,d.nextSibling);d=g}},addClass:vb,removeClass:ub,toggleClass:function(a,c,d){c&&n(c.split(" "),function(c){var f=d;D(f)&&(f=!tb(a,c));(f?vb:ub)(a,c)})},parent:function(a){return(a=a.parentNode)&&11!==a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,c){return a.getElementsByTagName?a.getElementsByTagName(c):[]},clone:Sb,triggerHandler:function(a,c,d){var e,f,h=c.type||c,g=rb(a);if(g=(g=g&&g.events)&&g[h])e={preventDefault:function(){this.defaultPrevented=
|
|
|
|
|
!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:w,type:h,target:a},c.type&&(e=Q(e,c)),c=ea(g),f=d?[e].concat(d):[e],n(c,function(c){e.isImmediatePropagationStopped()||c.apply(a,f)})}},function(a,c){P.prototype[c]=function(c,e,f){for(var h,g=0,l=this.length;g<l;g++)D(h)?(h=a(this[g],c,e,f),x(h)&&(h=A(h))):
|
|
|
|
|
Hc(h,a(this[g],c,e,f));return x(h)?h:this};P.prototype.bind=P.prototype.on;P.prototype.unbind=P.prototype.off});eb.prototype={put:function(a,c){this[Ga(a,this.nextUid)]=c},get:function(a){return this[Ga(a,this.nextUid)]},remove:function(a){var c=this[a=Ga(a,this.nextUid)];delete this[a];return c}};var lf=[function(){this.$get=[function(){return eb}]}],Pc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,$f=/,/,ag=/^\s*(_?)(\S+?)\1\s*$/,Oc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Ha=H("$injector");ab.$$annotate=function(a,
|
|
|
|
|
c,d){var e;if("function"===typeof a){if(!(e=a.$inject)){e=[];if(a.length){if(c)throw I(d)&&d||(d=a.name||wf(a)),Ha("strictdi",d);c=a.toString().replace(Oc,"");c=c.match(Pc);n(c[1].split($f),function(a){a.replace(ag,function(a,c,d){e.push(d)})})}a.$inject=e}}else C(a)?(c=a.length-1,Oa(a[c],"fn"),e=a.slice(0,c)):Oa(a,"fn",!0);return e};var bg=H("$animate"),Ke=["$provide",function(a){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw bg("notcsel",c);this.$$selectors[c.substr(1)]=
|
|
|
|
|
e;a.factory(e,d)};this.classNameFilter=function(a){1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null);return this.$$classNameFilter};this.$get=["$$q","$$asyncCallback","$rootScope",function(a,d,e){function f(d){var f,g=a.defer();g.promise.$$cancelFn=function(){f&&f()};e.$$postDigest(function(){f=d(function(){g.resolve()})});return g.promise}function h(a,c){var d=[],e=[],f=la();n((a.attr("class")||"").split(/\s+/),function(a){f[a]=!0});n(c,function(a,c){var g=f[c];!1===a&&g?
|
|
|
|
|
e.push(c):!0!==a||g||d.push(c)});return 0<d.length+e.length&&[d.length?d:null,e.length?e:null]}function g(a,c,d){for(var e=0,f=c.length;e<f;++e)a[c[e]]=d}function l(){m||(m=a.defer(),d(function(){m.resolve();m=null}));return m.promise}function k(a,c){if($.isObject(c)){var d=Q(c.from||{},c.to||{});a.css(d)}}var m;return{animate:function(a,c,d){k(a,{from:c,to:d});return l()},enter:function(a,c,d,e){k(a,e);d?d.after(a):c.prepend(a);return l()},leave:function(a,c){k(a,c);a.remove();return l()},move:function(a,
|
|
|
|
|
c,d,e){return this.enter(a,c,d,e)},addClass:function(a,c,d){return this.setClass(a,c,[],d)},$$addClassImmediately:function(a,c,d){a=A(a);c=I(c)?c:C(c)?c.join(" "):"";n(a,function(a){vb(a,c)});k(a,d);return l()},removeClass:function(a,c,d){return this.setClass(a,[],c,d)},$$removeClassImmediately:function(a,c,d){a=A(a);c=I(c)?c:C(c)?c.join(" "):"";n(a,function(a){ub(a,c)});k(a,d);return l()},setClass:function(a,c,d,e){var k=this,l=!1;a=A(a);var m=a.data("$$animateClasses");m?e&&m.options&&(m.options=
|
|
|
|
|
$.extend(m.options||{},e)):(m={classes:{},options:e},l=!0);e=m.classes;c=C(c)?c:c.split(" ");d=C(d)?d:d.split(" ");g(e,c,!0);g(e,d,!1);l&&(m.promise=f(function(c){var d=a.data("$$animateClasses");a.removeData("$$animateClasses");if(d){var e=h(a,d.classes);e&&k.$$setClassImmediately(a,e[0],e[1],d.options)}c()}),a.data("$$animateClasses",m));return m.promise},$$setClassImmediately:function(a,c,d,e){c&&this.$$addClassImmediately(a,c);d&&this.$$removeClassImmediately(a,d);k(a,e);return l()},enabled:w,
|
|
|
|
|
cancel:w}}]}],ga=H("$compile");xc.$inject=["$provide","$$sanitizeUriProvider"];var Rc=/^((?:x|data)[\:\-_])/i,Af=H("$controller"),Qc=/^(\S+)(\s+as\s+(\w+))?$/,Vc="application/json",Yb={"Content-Type":Vc+";charset=utf-8"},Cf=/^\[|^\{(?!\{)/,Df={"[":/]$/,"{":/}$/},Bf=/^\)\]\}',?\n/,Ja=$.$interpolateMinErr=H("$interpolate");Ja.throwNoconcat=function(a){throw Ja("noconcat",a);};Ja.interr=function(a,c){return Ja("interr",a,c.toString())};var cg=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Gf={http:80,https:443,ftp:21},
|
|
|
|
|
zb=H("$location"),dg={$$html5:!1,$$replace:!1,absUrl:Ab("$$absUrl"),url:function(a){if(D(a))return this.$$url;var c=cg.exec(a);(c[1]||""===a)&&this.path(decodeURIComponent(c[1]));(c[2]||c[1]||""===a)&&this.search(c[3]||"");this.hash(c[5]||"");return this},protocol:Ab("$$protocol"),host:Ab("$$host"),port:Ab("$$port"),path:cd("$$path",function(a){a=null!==a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,c){switch(arguments.length){case 0:return this.$$search;case 1:if(I(a)||W(a))a=
|
|
|
|
|
a.toString(),this.$$search=rc(a);else if(E(a))a=ta(a,{}),n(a,function(c,e){null==c&&delete a[e]}),this.$$search=a;else throw zb("isrcharg");break;default:D(c)||null===c?delete this.$$search[a]:this.$$search[a]=c}this.$$compose();return this},hash:cd("$$hash",function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};n([bd,bc,ac],function(a){a.prototype=Object.create(dg);a.prototype.state=function(c){if(!arguments.length)return this.$$state;if(a!==ac||!this.$$html5)throw zb("nostate");
|
|
|
|
|
this.$$state=D(c)?null:c;return this}});var ca=H("$parse"),Hf=Function.prototype.call,If=Function.prototype.apply,Jf=Function.prototype.bind,Jb=la();n("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Jb[a]=!0});var eg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},dc=function(a){this.options=a};dc.prototype={constructor:dc,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);
|
|
|
|
|
else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(a))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;else{var c=a+this.peek(),d=c+this.peek(2),e=Jb[c],f=Jb[d];Jb[a]||e||f?(a=f?d:e?c:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},
|
|
|
|
|
is:function(a,c){return-1!==c.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},isWhitespace:function(a){return" "===a||"\r"===a||"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=x(c)?"s "+c+"-"+
|
|
|
|
|
this.index+" ["+this.text.substring(c,d)+"]":" "+d;throw ca("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=M(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var e=this.peek();if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:c,
|
|
|
|
|
text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var c=this.text.charAt(this.index);if(!this.isIdent(c)&&!this.isNumber(c))break;this.index++}this.tokens.push({index:a,text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,f=!1;this.index<this.text.length;){var h=this.text.charAt(this.index),e=e+h;if(f)"u"===h?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||
|
|
|
|
|
this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d+=eg[h]||h,f=!1;else if("\\"===h)f=!0;else{if(h===a){this.index++;this.tokens.push({index:c,text:e,constant:!0,value:d});return}d+=h}this.index++}this.throwError("Unterminated quote",c)}};var s=function(a,c){this.lexer=a;this.options=c};s.Program="Program";s.ExpressionStatement="ExpressionStatement";s.AssignmentExpression="AssignmentExpression";s.ConditionalExpression="ConditionalExpression";
|
|
|
|
|
s.LogicalExpression="LogicalExpression";s.BinaryExpression="BinaryExpression";s.UnaryExpression="UnaryExpression";s.CallExpression="CallExpression";s.MemberExpression="MemberExpression";s.Identifier="Identifier";s.Literal="Literal";s.ArrayExpression="ArrayExpression";s.Property="Property";s.ObjectExpression="ObjectExpression";s.ThisExpression="ThisExpression";s.NGValueParameter="NGValueParameter";s.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&
|
|
|
|
|
this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:s.Program,body:a}},expressionStatement:function(){return{type:s.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=
|
|
|
|
|
this.ternary();this.expect("=")&&(a={type:s.AssignmentExpression,left:a,right:this.assignment(),operator:"="});return a},ternary:function(){var a=this.logicalOR(),c,d;return this.expect("?")&&(c=this.expression(),this.consume(":"))?(d=this.expression(),{type:s.ConditionalExpression,test:a,alternate:c,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:s.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=
|
|
|
|
|
this.equality();this.expect("&&");)a={type:s.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),c;c=this.expect("==","!=","===","!==");)a={type:s.BinaryExpression,operator:c.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),c;c=this.expect("<",">","<=",">=");)a={type:s.BinaryExpression,operator:c.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),
|
|
|
|
|
c;c=this.expect("+","-");)a={type:s.BinaryExpression,operator:c.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a={type:s.BinaryExpression,operator:c.text,left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:s.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):
|
|
|
|
|
this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.constants.hasOwnProperty(this.peek().text)?a=ta(this.constants[this.consume().text]):this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():this.throwError("not a primary expression",this.peek());for(var c;c=this.expect("(","[",".");)"("===c.text?(a={type:s.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===c.text?(a={type:s.MemberExpression,object:a,property:this.expression(),
|
|
|
|
|
computed:!0},this.consume("]")):"."===c.text?a={type:s.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var c={type:s.CallExpression,callee:this.identifier(),arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return c},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.expression());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||
|
|
|
|
|
this.throwError("is not a valid identifier",a);return{type:s.Identifier,name:a.text}},constant:function(){return{type:s.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:s.ArrayExpression,elements:a}},object:function(){var a=[],c;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;c={type:s.Property,kind:"init"};this.peek().constant?
|
|
|
|
|
c.key=this.constant():this.peek().identifier?c.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");c.value=this.expression();a.push(c)}while(this.expect(","))}this.consume("}");return{type:s.ObjectExpression,properties:a}},throwError:function(a,c){throw ca("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},consume:function(a){if(0===this.tokens.length)throw ca("ueoe",this.text);var c=this.expect(a);c||this.throwError("is unexpected, expecting ["+a+
|
|
|
|
|
"]",this.peek());return c},peekToken:function(){if(0===this.tokens.length)throw ca("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){return this.peekAhead(0,a,c,d,e)},peekAhead:function(a,c,d,e,f){if(this.tokens.length>a){a=this.tokens[a];var h=a.text;if(h===c||h===d||h===e||h===f||!(c||d||e||f))return a}return!1},expect:function(a,c,d,e){return(a=this.peek(a,c,d,e))?(this.tokens.shift(),a):!1},constants:{"true":{type:s.Literal,value:!0},"false":{type:s.Literal,value:!1},"null":{type:s.Literal,
|
|
|
|
|
value:null},undefined:{type:s.Literal,value:u},"this":{type:s.ThisExpression}}};jd.prototype={compile:function(a,c){var d=this,e=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:c,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]};X(e,d.$filter);var f="",h;this.stage="assign";if(h=hd(e))this.state.computing="assign",f=this.nextId(),this.recurse(h,f),f="fn.assign="+this.generateFunction("assign","s,v,l");h=fd(e.body);d.stage="inputs";n(h,function(a,c){var e=
|
|
|
|
|
"fn"+c;d.state[e]={vars:[],body:[],own:{}};d.state.computing=e;var f=d.nextId();d.recurse(a,f);d.return(f);d.state.inputs.push(e);a.watchId=c});this.state.computing="fn";this.stage="main";this.recurse(e);f='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+f+this.watchFns()+"return fn;";f=(new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",f))(this.$filter,Ca,ia,dd,Kf,ed,a);this.state=
|
|
|
|
|
this.stage=u;f.literal=id(e);f.constant=e.constant;return f},USE:"use",STRICT:"strict",watchFns:function(){var a=[],c=this.state.inputs,d=this;n(c,function(c){a.push("var "+c+"="+d.generateFunction(c,"s"))});c.length&&a.push("fn.inputs=["+c.join(",")+"];");return a.join("")},generateFunction:function(a,c){return"function("+c+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],c=this;n(this.state.filters,function(d,e){a.push(d+"=$filter("+c.escape(e)+")")});return a.length?
|
|
|
|
|
"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,c,d,e,f,h){var g,l,k=this,m,q;e=e||w;if(!h&&x(a.watchId))c=c||this.nextId(),this.if("i",this.lazyAssign(c,this.computedMember("i",a.watchId)),this.lazyRecurse(a,c,d,e,f,!0));else switch(a.type){case s.Program:n(a.body,function(c,d){k.recurse(c.expression,u,u,function(a){l=a});d!==a.body.length-1?k.current().body.push(l,
|
|
|
|
|
";"):k.return(l)});break;case s.Literal:q=this.escape(a.value);this.assign(c,q);e(q);break;case s.UnaryExpression:this.recurse(a.argument,u,u,function(a){l=a});q=a.operator+"("+this.ifDefined(l,0)+")";this.assign(c,q);e(q);break;case s.BinaryExpression:this.recurse(a.left,u,u,function(a){g=a});this.recurse(a.right,u,u,function(a){l=a});q="+"===a.operator?this.plus(g,l):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(l,0):"("+g+")"+a.operator+"("+l+")";this.assign(c,q);e(q);break;case s.LogicalExpression:c=
|
|
|
|
|
c||this.nextId();k.recurse(a.left,c);k.if("&&"===a.operator?c:k.not(c),k.lazyRecurse(a.right,c));e(c);break;case s.ConditionalExpression:c=c||this.nextId();k.recurse(a.test,c);k.if(c,k.lazyRecurse(a.alternate,c),k.lazyRecurse(a.consequent,c));e(c);break;case s.Identifier:c=c||this.nextId();d&&(d.context="inputs"===k.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);Ca(a.name);k.if("inputs"===k.stage||k.not(k.getHasOwnProperty("l",a.name)),
|
|
|
|
|
function(){k.if("inputs"===k.stage||"s",function(){f&&1!==f&&k.if(k.not(k.nonComputedMember("s",a.name)),k.lazyAssign(k.nonComputedMember("s",a.name),"{}"));k.assign(c,k.nonComputedMember("s",a.name))})},c&&k.lazyAssign(c,k.nonComputedMember("l",a.name)));(k.state.expensiveChecks||Cb(a.name))&&k.addEnsureSafeObject(c);e(c);break;case s.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();c=c||this.nextId();k.recurse(a.object,g,u,function(){k.if(k.notNull(g),function(){if(a.computed)l=k.nextId(),
|
|
|
|
|
k.recurse(a.property,l),k.addEnsureSafeMemberName(l),f&&1!==f&&k.if(k.not(k.computedMember(g,l)),k.lazyAssign(k.computedMember(g,l),"{}")),q=k.ensureSafeObject(k.computedMember(g,l)),k.assign(c,q),d&&(d.computed=!0,d.name=l);else{Ca(a.property.name);f&&1!==f&&k.if(k.not(k.nonComputedMember(g,a.property.name)),k.lazyAssign(k.nonComputedMember(g,a.property.name),"{}"));q=k.nonComputedMember(g,a.property.name);if(k.state.expensiveChecks||Cb(a.property.name))q=k.ensureSafeObject(q);k.assign(c,q);d&&(d.computed=
|
|
|
|
|
!1,d.name=a.property.name)}e(c)})},!!f);break;case s.CallExpression:c=c||this.nextId();a.filter?(l=k.filter(a.callee.name),m=[],n(a.arguments,function(a){var c=k.nextId();k.recurse(a,c);m.push(c)}),q=l+"("+m.join(",")+")",k.assign(c,q),e(c)):(l=k.nextId(),g={},m=[],k.recurse(a.callee,l,g,function(){k.if(k.notNull(l),function(){k.addEnsureSafeFunction(l);n(a.arguments,function(a){k.recurse(a,k.nextId(),u,function(a){m.push(k.ensureSafeObject(a))})});g.name?(k.state.expensiveChecks||k.addEnsureSafeObject(g.context),
|
|
|
|
|
q=k.member(g.context,g.name,g.computed)+"("+m.join(",")+")"):q=l+"("+m.join(",")+")";q=k.ensureSafeObject(q);k.assign(c,q);e(c)})}));break;case s.AssignmentExpression:l=this.nextId();g={};if(!gd(a.left))throw ca("lval");this.recurse(a.left,u,g,function(){k.if(k.notNull(g.context),function(){k.recurse(a.right,l);k.addEnsureSafeObject(k.member(g.context,g.name,g.computed));q=k.member(g.context,g.name,g.computed)+a.operator+l;k.assign(c,q);e(c||q)})},1);break;case s.ArrayExpression:m=[];n(a.elements,
|
|
|
|
|
function(a){k.recurse(a,k.nextId(),u,function(a){m.push(a)})});q="["+m.join(",")+"]";this.assign(c,q);e(q);break;case s.ObjectExpression:m=[];n(a.properties,function(a){k.recurse(a.value,k.nextId(),u,function(c){m.push(k.escape(a.key.type===s.Identifier?a.key.name:""+a.key.value)+":"+c)})});q="{"+m.join(",")+"}";this.assign(c,q);e(q);break;case s.ThisExpression:this.assign(c,"s");e("s");break;case s.NGValueParameter:this.assign(c,"v"),e("v")}},getHasOwnProperty:function(a,c){var d=a+"."+c,e=this.current().own;
|
|
|
|
|
e.hasOwnProperty(d)||(e[d]=this.nextId(!1,a+"&&("+this.escape(c)+" in "+a+")"));return e[d]},assign:function(a,c){if(a)return this.current().body.push(a,"=",c,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,c){return"ifDefined("+a+","+this.escape(c)+")"},plus:function(a,c){return"plus("+a+","+c+")"},"return":function(a){this.current().body.push("return ",a,";")},"if":function(a,c,d){if(!0===
|
|
|
|
|
a)c();else{var e=this.current().body;e.push("if(",a,"){");c();e.push("}");d&&(e.push("else{"),d(),e.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,c){return a+"."+c},computedMember:function(a,c){return a+"["+c+"]"},member:function(a,c,d){return d?this.computedMember(a,c):this.nonComputedMember(a,c)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),
|
|
|
|
|
";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},lazyRecurse:function(a,c,d,e,f,h){var g=this;return function(){g.recurse(a,c,d,e,f,h)}},lazyAssign:function(a,c){var d=this;return function(){d.assign(a,c)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,
|
|
|
|
|
stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(I(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(W(a))return a.toString();if(!0===a)return"true";if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw ca("esc");},nextId:function(a,c){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(c?"="+c:""));return d},current:function(){return this.state[this.state.computing]}};
|
|
|
|
|
kd.prototype={compile:function(a,c){var d=this,e=this.astBuilder.ast(a);this.expression=a;this.expensiveChecks=c;X(e,d.$filter);var f,h;if(f=hd(e))h=this.recurse(f);f=fd(e.body);var g;f&&(g=[],n(f,function(a,c){var e=d.recurse(a);a.input=e;g.push(e);a.watchId=c}));var l=[];n(e.body,function(a){l.push(d.recurse(a.expression))});f=0===e.body.length?function(){}:1===e.body.length?l[0]:function(a,c){var d;n(l,function(e){d=e(a,c)});return d};h&&(f.assign=function(a,c,d){return h(a,d,c)});g&&(f.inputs=
|
|
|
|
|
g);f.literal=id(e);f.constant=e.constant;return f},recurse:function(a,c,d){var e,f,h=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case s.Literal:return this.value(a.value,c);case s.UnaryExpression:return f=this.recurse(a.argument),this["unary"+a.operator](f,c);case s.BinaryExpression:return e=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](e,f,c);case s.LogicalExpression:return e=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](e,
|
|
|
|
|
f,c);case s.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),c);case s.Identifier:return Ca(a.name,h.expression),h.identifier(a.name,h.expensiveChecks||Cb(a.name),c,d,h.expression);case s.MemberExpression:return e=this.recurse(a.object,!1,!!d),a.computed||(Ca(a.property.name,h.expression),f=a.property.name),a.computed&&(f=this.recurse(a.property)),a.computed?this.computedMember(e,f,c,d,h.expression):this.nonComputedMember(e,f,
|
|
|
|
|
h.expensiveChecks,c,d,h.expression);case s.CallExpression:return g=[],n(a.arguments,function(a){g.push(h.recurse(a))}),a.filter&&(f=this.$filter(a.callee.name)),a.filter||(f=this.recurse(a.callee,!0)),a.filter?function(a,d,e,h){for(var r=[],n=0;n<g.length;++n)r.push(g[n](a,d,e,h));a=f.apply(u,r,h);return c?{context:u,name:u,value:a}:a}:function(a,d,e,q){var r=f(a,d,e,q),n;if(null!=r.value){ia(r.context,h.expression);dd(r.value,h.expression);n=[];for(var s=0;s<g.length;++s)n.push(ia(g[s](a,d,e,q),
|
|
|
|
|
h.expression));n=ia(r.value.apply(r.context,n),h.expression)}return c?{value:n}:n};case s.AssignmentExpression:return e=this.recurse(a.left,!0,1),f=this.recurse(a.right),function(a,d,g,q){var r=e(a,d,g,q);a=f(a,d,g,q);ia(r.value,h.expression);r.context[r.name]=a;return c?{value:a}:a};case s.ArrayExpression:return g=[],n(a.elements,function(a){g.push(h.recurse(a))}),function(a,d,e,f){for(var h=[],n=0;n<g.length;++n)h.push(g[n](a,d,e,f));return c?{value:h}:h};case s.ObjectExpression:return g=[],n(a.properties,
|
|
|
|
|
function(a){g.push({key:a.key.type===s.Identifier?a.key.name:""+a.key.value,value:h.recurse(a.value)})}),function(a,d,e,f){for(var h={},n=0;n<g.length;++n)h[g[n].key]=g[n].value(a,d,e,f);return c?{value:h}:h};case s.ThisExpression:return function(a){return c?{value:a}:a};case s.NGValueParameter:return function(a,d,e,f){return c?{value:e}:e}}},"unary+":function(a,c){return function(d,e,f,h){d=a(d,e,f,h);d=x(d)?+d:0;return c?{value:d}:d}},"unary-":function(a,c){return function(d,e,f,h){d=a(d,e,f,h);
|
|
|
|
|
d=x(d)?-d:0;return c?{value:d}:d}},"unary!":function(a,c){return function(d,e,f,h){d=!a(d,e,f,h);return c?{value:d}:d}},"binary+":function(a,c,d){return function(e,f,h,g){var l=a(e,f,h,g);e=c(e,f,h,g);l=ed(l,e);return d?{value:l}:l}},"binary-":function(a,c,d){return function(e,f,h,g){var l=a(e,f,h,g);e=c(e,f,h,g);l=(x(l)?l:0)-(x(e)?e:0);return d?{value:l}:l}},"binary*":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)*c(e,f,h,g);return d?{value:e}:e}},"binary/":function(a,c,d){return function(e,
|
|
|
|
|
f,h,g){e=a(e,f,h,g)/c(e,f,h,g);return d?{value:e}:e}},"binary%":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)%c(e,f,h,g);return d?{value:e}:e}},"binary===":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)===c(e,f,h,g);return d?{value:e}:e}},"binary!==":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)!==c(e,f,h,g);return d?{value:e}:e}},"binary==":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)==c(e,f,h,g);return d?{value:e}:e}},"binary!=":function(a,c,d){return function(e,
|
|
|
|
|
f,h,g){e=a(e,f,h,g)!=c(e,f,h,g);return d?{value:e}:e}},"binary<":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)<c(e,f,h,g);return d?{value:e}:e}},"binary>":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)>c(e,f,h,g);return d?{value:e}:e}},"binary<=":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)<=c(e,f,h,g);return d?{value:e}:e}},"binary>=":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)>=c(e,f,h,g);return d?{value:e}:e}},"binary&&":function(a,c,d){return function(e,f,h,g){e=
|
|
|
|
|
a(e,f,h,g)&&c(e,f,h,g);return d?{value:e}:e}},"binary||":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)||c(e,f,h,g);return d?{value:e}:e}},"ternary?:":function(a,c,d,e){return function(f,h,g,l){f=a(f,h,g,l)?c(f,h,g,l):d(f,h,g,l);return e?{value:f}:f}},value:function(a,c){return function(){return c?{context:u,name:u,value:a}:a}},identifier:function(a,c,d,e,f){return function(h,g,l,k){h=g&&a in g?g:h;e&&1!==e&&h&&!h[a]&&(h[a]={});g=h?h[a]:u;c&&ia(g,f);return d?{context:h,name:a,value:g}:g}},
|
|
|
|
|
computedMember:function(a,c,d,e,f){return function(h,g,l,k){var m=a(h,g,l,k),q,n;null!=m&&(q=c(h,g,l,k),Ca(q,f),e&&1!==e&&m&&!m[q]&&(m[q]={}),n=m[q],ia(n,f));return d?{context:m,name:q,value:n}:n}},nonComputedMember:function(a,c,d,e,f,h){return function(g,l,k,m){g=a(g,l,k,m);f&&1!==f&&g&&!g[c]&&(g[c]={});l=null!=g?g[c]:u;(d||Cb(c))&&ia(l,h);return e?{context:g,name:c,value:l}:l}},inputs:function(a,c){return function(d,e,f,h){return h?h[c]:a(d,e,f)}}};var ec=function(a,c,d){this.lexer=a;this.$filter=
|
|
|
|
|
c;this.options=d;this.ast=new s(this.lexer);this.astCompiler=d.csp?new kd(this.ast,c):new jd(this.ast,c)};ec.prototype={constructor:ec,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};la();la();var Lf=Object.prototype.valueOf,Da=H("$sce"),ma={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},ga=H("$compile"),Z=Y.createElement("a"),od=Ba(O.location.href);pd.$inject=["$document"];Ec.$inject=["$provide"];qd.$inject=["$locale"];sd.$inject=["$locale"];
|
|
|
|
|
var vd=".",Vf={yyyy:aa("FullYear",4),yy:aa("FullYear",2,0,!0),y:aa("FullYear",1),MMMM:Eb("Month"),MMM:Eb("Month",!0),MM:aa("Month",2,1),M:aa("Month",1,1),dd:aa("Date",2),d:aa("Date",1),HH:aa("Hours",2),H:aa("Hours",1),hh:aa("Hours",2,-12),h:aa("Hours",1,-12),mm:aa("Minutes",2),m:aa("Minutes",1),ss:aa("Seconds",2),s:aa("Seconds",1),sss:aa("Milliseconds",3),EEEE:Eb("Day"),EEE:Eb("Day",!0),a:function(a,c){return 12>a.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(a,c,d){a=-1*d;return a=(0<=a?"+":"")+(Db(Math[0<
|
|
|
|
|
a?"floor":"ceil"](a/60),2)+Db(Math.abs(a%60),2))},ww:xd(2),w:xd(1),G:fc,GG:fc,GGG:fc,GGGG:function(a,c){return 0>=a.getFullYear()?c.ERANAMES[0]:c.ERANAMES[1]}},Uf=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Tf=/^\-?\d+$/;rd.$inject=["$locale"];var Qf=oa(M),Rf=oa(nb);td.$inject=["$parse"];var ae=oa({restrict:"E",compile:function(a,c){if(!c.href&&!c.xlinkHref)return function(a,c){if("a"===c[0].nodeName.toLowerCase()){var f="[object SVGAnimatedString]"===ra.call(c.prop("href"))?
|
|
|
|
|
"xlink:href":"href";c.on("click",function(a){c.attr(f)||a.preventDefault()})}}}}),ob={};n(xb,function(a,c){function d(a,d,f){a.$watch(f[e],function(a){f.$set(c,!!a)})}if("multiple"!=a){var e=xa("ng-"+c),f=d;"checked"===a&&(f=function(a,c,f){f.ngModel!==f[e]&&d(a,c,f)});ob[e]=function(){return{restrict:"A",priority:100,link:f}}}});n(Nc,function(a,c){ob[c]=function(){return{priority:100,link:function(a,e,f){if("ngPattern"===c&&"/"==f.ngPattern.charAt(0)&&(e=f.ngPattern.match(Xf))){f.$set("ngPattern",
|
|
|
|
|
new RegExp(e[1],e[2]));return}a.$watch(f[c],function(a){f.$set(c,a)})}}}});n(["src","srcset","href"],function(a){var c=xa("ng-"+a);ob[c]=function(){return{priority:99,link:function(d,e,f){var h=a,g=a;"href"===a&&"[object SVGAnimatedString]"===ra.call(e.prop("href"))&&(g="xlinkHref",f.$attr[g]="xlink:href",h=null);f.$observe(c,function(c){c?(f.$set(g,c),fb&&h&&e.prop(h,f[g])):"href"===a&&f.$set(g,null)})}}}});var Fb={$addControl:w,$$renameControl:function(a,c){a.$name=c},$removeControl:w,$setValidity:w,
|
|
|
|
|
$setDirty:w,$setPristine:w,$setSubmitted:w};yd.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Fd=function(a){return["$timeout",function(c){return{name:"form",restrict:a?"EAC":"E",controller:yd,compile:function(d,e){d.addClass(Qa).addClass(ib);var f=e.name?"name":a&&e.ngForm?"ngForm":!1;return{pre:function(a,d,e,k){if(!("action"in e)){var m=function(c){a.$apply(function(){k.$commitViewValue();k.$setSubmitted()});c.preventDefault()};d[0].addEventListener("submit",m,!1);d.on("$destroy",
|
|
|
|
|
function(){c(function(){d[0].removeEventListener("submit",m,!1)},0,!1)})}var q=k.$$parentForm;f&&(Bb(a,k.$name,k,k.$name),e.$observe(f,function(c){k.$name!==c&&(Bb(a,k.$name,u,k.$name),q.$$renameControl(k,c),Bb(a,k.$name,k,k.$name))}));d.on("$destroy",function(){q.$removeControl(k);f&&Bb(a,e[f],u,k.$name);Q(k,Fb)})}}}}}]},be=Fd(),oe=Fd(!0),Wf=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,fg=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,
|
|
|
|
|
gg=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,hg=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Gd=/^(\d{4})-(\d{2})-(\d{2})$/,Hd=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ic=/^(\d{4})-W(\d\d)$/,Id=/^(\d{4})-(\d\d)$/,Jd=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Kd={text:function(a,c,d,e,f,h){gb(a,c,d,e,f,h);gc(e)},date:hb("date",Gd,Hb(Gd,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":hb("datetimelocal",Hd,Hb(Hd,"yyyy MM dd HH mm ss sss".split(" ")),
|
|
|
|
|
"yyyy-MM-ddTHH:mm:ss.sss"),time:hb("time",Jd,Hb(Jd,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:hb("week",ic,function(a,c){if(da(a))return a;if(I(a)){ic.lastIndex=0;var d=ic.exec(a);if(d){var e=+d[1],f=+d[2],h=d=0,g=0,l=0,k=wd(e),f=7*(f-1);c&&(d=c.getHours(),h=c.getMinutes(),g=c.getSeconds(),l=c.getMilliseconds());return new Date(e,0,k.getDate()+f,d,h,g,l)}}return NaN},"yyyy-Www"),month:hb("month",Id,Hb(Id,["yyyy","MM"]),"yyyy-MM"),number:function(a,c,d,e,f,h){Ad(a,c,d,e);gb(a,c,d,e,f,h);e.$$parserName=
|
|
|
|
|
"number";e.$parsers.push(function(a){return e.$isEmpty(a)?null:hg.test(a)?parseFloat(a):u});e.$formatters.push(function(a){if(!e.$isEmpty(a)){if(!W(a))throw Ib("numfmt",a);a=a.toString()}return a});if(x(d.min)||d.ngMin){var g;e.$validators.min=function(a){return e.$isEmpty(a)||D(g)||a>=g};d.$observe("min",function(a){x(a)&&!W(a)&&(a=parseFloat(a,10));g=W(a)&&!isNaN(a)?a:u;e.$validate()})}if(x(d.max)||d.ngMax){var l;e.$validators.max=function(a){return e.$isEmpty(a)||D(l)||a<=l};d.$observe("max",function(a){x(a)&&
|
|
|
|
|
!W(a)&&(a=parseFloat(a,10));l=W(a)&&!isNaN(a)?a:u;e.$validate()})}},url:function(a,c,d,e,f,h){gb(a,c,d,e,f,h);gc(e);e.$$parserName="url";e.$validators.url=function(a,c){var d=a||c;return e.$isEmpty(d)||fg.test(d)}},email:function(a,c,d,e,f,h){gb(a,c,d,e,f,h);gc(e);e.$$parserName="email";e.$validators.email=function(a,c){var d=a||c;return e.$isEmpty(d)||gg.test(d)}},radio:function(a,c,d,e){D(d.name)&&c.attr("name",++jb);c.on("click",function(a){c[0].checked&&e.$setViewValue(d.value,a&&a.type)});e.$render=
|
|
|
|
|
function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e,f,h,g,l){var k=Bd(l,a,"ngTrueValue",d.ngTrueValue,!0),m=Bd(l,a,"ngFalseValue",d.ngFalseValue,!1);c.on("click",function(a){e.$setViewValue(c[0].checked,a&&a.type)});e.$render=function(){c[0].checked=e.$viewValue};e.$isEmpty=function(a){return!1===a};e.$formatters.push(function(a){return ja(a,k)});e.$parsers.push(function(a){return a?k:m})},hidden:w,button:w,submit:w,reset:w,file:w},yc=["$browser",
|
|
|
|
|
"$sniffer","$filter","$parse",function(a,c,d,e){return{restrict:"E",require:["?ngModel"],link:{pre:function(f,h,g,l){l[0]&&(Kd[M(g.type)]||Kd.text)(f,h,g,l[0],c,a,d,e)}}}}],ig=/^(true|false|\d+)$/,Ge=function(){return{restrict:"A",priority:100,compile:function(a,c){return ig.test(c.ngValue)?function(a,c,f){f.$set("value",a.$eval(f.ngValue))}:function(a,c,f){a.$watch(f.ngValue,function(a){f.$set("value",a)})}}}},ge=["$compile",function(a){return{restrict:"AC",compile:function(c){a.$$addBindingClass(c);
|
|
|
|
|
return function(c,e,f){a.$$addBindingInfo(e,f.ngBind);e=e[0];c.$watch(f.ngBind,function(a){e.textContent=a===u?"":a})}}}}],ie=["$interpolate","$compile",function(a,c){return{compile:function(d){c.$$addBindingClass(d);return function(d,f,h){d=a(f.attr(h.$attr.ngBindTemplate));c.$$addBindingInfo(f,d.expressions);f=f[0];h.$observe("ngBindTemplate",function(a){f.textContent=a===u?"":a})}}}}],he=["$sce","$parse","$compile",function(a,c,d){return{restrict:"A",compile:function(e,f){var h=c(f.ngBindHtml),
|
|
|
|
|
g=c(f.ngBindHtml,function(a){return(a||"").toString()});d.$$addBindingClass(e);return function(c,e,f){d.$$addBindingInfo(e,f.ngBindHtml);c.$watch(g,function(){e.html(a.getTrustedHtml(h(c))||"")})}}}}],Fe=oa({restrict:"A",require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),je=hc("",!0),le=hc("Odd",0),ke=hc("Even",1),me=La({compile:function(a,c){c.$set("ngCloak",u);a.removeClass("ng-cloak")}}),ne=[function(){return{restrict:"A",scope:!0,controller:"@",
|
|
|
|
|
priority:500}}],Dc={},jg={blur:!0,focus:!0};n("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var c=xa("ng-"+a);Dc[c]=["$parse","$rootScope",function(d,e){return{restrict:"A",compile:function(f,h){var g=d(h[c],null,!0);return function(c,d){d.on(a,function(d){var f=function(){g(c,{$event:d})};jg[a]&&e.$$phase?c.$evalAsync(f):c.$apply(f)})}}}}]});var qe=["$animate",function(a){return{multiElement:!0,
|
|
|
|
|
transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,h){var g,l,k;c.$watch(e.ngIf,function(c){c?l||h(function(c,f){l=f;c[c.length++]=Y.createComment(" end ngIf: "+e.ngIf+" ");g={clone:c};a.enter(c,d.parent(),d)}):(k&&(k.remove(),k=null),l&&(l.$destroy(),l=null),g&&(k=mb(g.clone),a.leave(k).then(function(){k=null}),g=null))})}}}],re=["$templateRequest","$anchorScroll","$animate","$sce",function(a,c,d,e){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",
|
|
|
|
|
controller:$.noop,compile:function(f,h){var g=h.ngInclude||h.src,l=h.onload||"",k=h.autoscroll;return function(f,h,n,t,s){var u=0,v,p,y,w=function(){p&&(p.remove(),p=null);v&&(v.$destroy(),v=null);y&&(d.leave(y).then(function(){p=null}),p=y,y=null)};f.$watch(e.parseAsResourceUrl(g),function(e){var g=function(){!x(k)||k&&!f.$eval(k)||c()},n=++u;e?(a(e,!0).then(function(a){if(n===u){var c=f.$new();t.template=a;a=s(c,function(a){w();d.enter(a,null,h).then(g)});v=c;y=a;v.$emit("$includeContentLoaded",
|
|
|
|
|
e);f.$eval(l)}},function(){n===u&&(w(),f.$emit("$includeContentError",e))}),f.$emit("$includeContentRequested",e)):(w(),t.template=null)})}}}}],Ie=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){/SVG/.test(d[0].toString())?(d.empty(),a(Gc(f.template,Y).childNodes)(c,function(a){d.append(a)},{futureParentElement:d})):(d.html(f.template),a(d.contents())(c))}}}],se=La({priority:450,compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),
|
|
|
|
|
Ee=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,c,d,e){var f=c.attr(d.$attr.ngList)||", ",h="false"!==d.ngTrim,g=h?V(f):f;e.$parsers.push(function(a){if(!D(a)){var c=[];a&&n(a.split(g),function(a){a&&c.push(h?V(a):a)});return c}});e.$formatters.push(function(a){return C(a)?a.join(f):u});e.$isEmpty=function(a){return!a||!a.length}}}},ib="ng-valid",Cd="ng-invalid",Qa="ng-pristine",Gb="ng-dirty",Ed="ng-pending",Ib=new H("ngModel"),kg=["$scope","$exceptionHandler","$attrs",
|
|
|
|
|
"$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,c,d,e,f,h,g,l,k,m){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=u;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=u;this.$name=m(d.name||"",!1)(a);var q=f(d.ngModel),r=q.assign,t=q,s=r,
|
|
|
|
|
A=null,v,p=this;this.$$setOptions=function(a){if((p.$options=a)&&a.getterSetter){var c=f(d.ngModel+"()"),g=f(d.ngModel+"($$$p)");t=function(a){var d=q(a);G(d)&&(d=c(a));return d};s=function(a,c){G(q(a))?g(a,{$$$p:p.$modelValue}):r(a,p.$modelValue)}}else if(!q.assign)throw Ib("nonassign",d.ngModel,ua(e));};this.$render=w;this.$isEmpty=function(a){return D(a)||""===a||null===a||a!==a};var y=e.inheritedData("$formController")||Fb,E=0;zd({ctrl:this,$element:e,set:function(a,c){a[c]=!0},unset:function(a,
|
|
|
|
|
c){delete a[c]},parentForm:y,$animate:h});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;h.removeClass(e,Gb);h.addClass(e,Qa)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;h.removeClass(e,Qa);h.addClass(e,Gb);y.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;h.setClass(e,"ng-untouched","ng-touched")};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;h.setClass(e,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){g.cancel(A);p.$viewValue=
|
|
|
|
|
p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!W(p.$modelValue)||!isNaN(p.$modelValue)){var a=p.$$rawModelValue,c=p.$valid,d=p.$modelValue,e=p.$options&&p.$options.allowInvalid;p.$$runValidators(a,p.$$lastCommittedViewValue,function(f){e||c===f||(p.$modelValue=f?a:u,p.$modelValue!==d&&p.$$writeModelToScope())})}};this.$$runValidators=function(a,c,d){function e(){var d=!0;n(p.$validators,function(e,f){var h=e(a,c);d=d&&h;g(f,h)});return d?!0:(n(p.$asyncValidators,function(a,
|
|
|
|
|
c){g(c,null)}),!1)}function f(){var d=[],e=!0;n(p.$asyncValidators,function(f,h){var k=f(a,c);if(!k||!G(k.then))throw Ib("$asyncValidators",k);g(h,u);d.push(k.then(function(){g(h,!0)},function(a){e=!1;g(h,!1)}))});d.length?k.all(d).then(function(){h(e)},w):h(!0)}function g(a,c){l===E&&p.$setValidity(a,c)}function h(a){l===E&&d(a)}E++;var l=E;(function(){var a=p.$$parserName||"parse";if(v===u)g(a,null);else return v||(n(p.$validators,function(a,c){g(c,null)}),n(p.$asyncValidators,function(a,c){g(c,
|
|
|
|
|
null)})),g(a,v),v;return!0})()?e()?f():h(!1):h(!1)};this.$commitViewValue=function(){var a=p.$viewValue;g.cancel(A);if(p.$$lastCommittedViewValue!==a||""===a&&p.$$hasNativeValidators)p.$$lastCommittedViewValue=a,p.$pristine&&this.$setDirty(),this.$$parseAndValidate()};this.$$parseAndValidate=function(){var c=p.$$lastCommittedViewValue;if(v=D(c)?u:!0)for(var d=0;d<p.$parsers.length;d++)if(c=p.$parsers[d](c),D(c)){v=!1;break}W(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=t(a));var e=p.$modelValue,
|
|
|
|
|
f=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=c;f&&(p.$modelValue=c,p.$modelValue!==e&&p.$$writeModelToScope());p.$$runValidators(c,p.$$lastCommittedViewValue,function(a){f||(p.$modelValue=a?c:u,p.$modelValue!==e&&p.$$writeModelToScope())})};this.$$writeModelToScope=function(){s(a,p.$modelValue);n(p.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})};this.$setViewValue=function(a,c){p.$viewValue=a;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(c)};this.$$debounceViewValueCommit=
|
|
|
|
|
function(c){var d=0,e=p.$options;e&&x(e.debounce)&&(e=e.debounce,W(e)?d=e:W(e[c])?d=e[c]:W(e["default"])&&(d=e["default"]));g.cancel(A);d?A=g(function(){p.$commitViewValue()},d):l.$$phase?p.$commitViewValue():a.$apply(function(){p.$commitViewValue()})};a.$watch(function(){var c=t(a);if(c!==p.$modelValue){p.$modelValue=p.$$rawModelValue=c;v=u;for(var d=p.$formatters,e=d.length,f=c;e--;)f=d[e](f);p.$viewValue!==f&&(p.$viewValue=p.$$lastCommittedViewValue=f,p.$render(),p.$$runValidators(c,f,w))}return c})}],
|
|
|
|
|
De=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:kg,priority:1,compile:function(c){c.addClass(Qa).addClass("ng-untouched").addClass(ib);return{pre:function(a,c,f,h){var g=h[0],l=h[1]||Fb;g.$$setOptions(h[2]&&h[2].$options);l.$addControl(g);f.$observe("name",function(a){g.$name!==a&&l.$$renameControl(g,a)});a.$on("$destroy",function(){l.$removeControl(g)})},post:function(c,e,f,h){var g=h[0];if(g.$options&&g.$options.updateOn)e.on(g.$options.updateOn,
|
|
|
|
|
function(a){g.$$debounceViewValueCommit(a&&a.type)});e.on("blur",function(e){g.$touched||(a.$$phase?c.$evalAsync(g.$setTouched):c.$apply(g.$setTouched))})}}}}}],lg=/(\s+|^)default(\s+|$)/,He=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,c){var d=this;this.$options=ta(a.$eval(c.ngModelOptions));this.$options.updateOn!==u?(this.$options.updateOnDefault=!1,this.$options.updateOn=V(this.$options.updateOn.replace(lg,function(){d.$options.updateOnDefault=!0;return" "}))):this.$options.updateOnDefault=
|
|
|
|
|
!0}]}},te=La({terminal:!0,priority:1E3}),mg=H("ngOptions"),ng=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Be=["$compile","$parse",function(a,c){function d(a,d,e){function f(a,c,d,e,g){this.selectValue=a;this.viewValue=c;this.label=d;this.group=e;this.disabled=g}var m=a.match(ng);if(!m)throw mg("iexp",a,ua(d));
|
|
|
|
|
var n=m[5]||m[7],r=m[6];a=/ as /.test(m[0])&&m[1];var s=m[9];d=c(m[2]?m[1]:n);var u=a&&c(a)||d,w=s&&c(s),v=s?function(a,c){return w(e,c)}:function(a){return Ga(a)},p=c(m[2]||m[1]),y=c(m[3]||""),x=c(m[4]||""),z=c(m[8]),K={},N=r?function(a,c){K[r]=c;K[n]=a;return K}:function(a){K[n]=a;return K};return{trackBy:s,getWatchables:c(z,function(a){var c=[];a=a||[];Object.keys(a).forEach(function(d){var f=N(a[d],d);d=v(a[d],f);c.push(d);m[2]&&(d=p(e,f),c.push(d));m[4]&&(f=x(e,f),c.push(f))});return c}),getOptions:function(){var a=
|
|
|
|
|
[],c={},d=z(e)||[];Object.keys(d).forEach(function(g){if("$"!==g.charAt(0)){var h=N(d[g],g),m=u(e,h);g=v(m,h);var n=p(e,h),q=y(e,h),h=x(e,h),m=new f(g,m,n,q,h);a.push(m);c[g]=m}});return{items:a,selectValueMap:c,getOptionFromViewValue:function(a){return c[v(a,N(a))]},getViewValueFromOption:function(a){return s?$.copy(a.viewValue):a.viewValue}}}}}var e=Y.createElement("option"),f=Y.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(c,g,l,k){function m(a,
|
|
|
|
|
c){a.element=c;c.disabled=a.disabled;a.value!==c.value&&(c.value=a.selectValue);a.label!==c.label&&(c.label=a.label,c.textContent=a.label)}function q(a,c,d,e){c&&M(c.nodeName)===d?d=c:(d=e.cloneNode(!1),c?a.insertBefore(d,c):a.appendChild(d));return d}function r(a){for(var c;a;)c=a.nextSibling,Ub(a),a=c}function s(a){var c=p&&p[0],d=x&&x[0];if(c||d)for(;a&&(a===c||a===d);)a=a.nextSibling;return a}function u(){var a=z&&v.readValue();z=K.getOptions();var c={},d=g[0].firstChild;y&&g.prepend(p);d=s(d);
|
|
|
|
|
z.items.forEach(function(a){var h,k;a.group?(h=c[a.group],h||(h=q(g[0],d,"optgroup",f),d=h.nextSibling,h.label=a.group,h=c[a.group]={groupElement:h,currentOptionElement:h.firstChild}),k=q(h.groupElement,h.currentOptionElement,"option",e),m(a,k),h.currentOptionElement=k.nextSibling):(k=q(g[0],d,"option",e),m(a,k),d=k.nextSibling)});Object.keys(c).forEach(function(a){r(c[a].currentOptionElement)});r(d);w.$render();if(!w.$isEmpty(a)){var h=v.readValue();if(K.trackBy&&!ja(a,h)||a!==h)w.$setViewValue(h),
|
|
|
|
|
w.$render()}}var w=k[1];if(w){var v=k[0];k=l.multiple;var p=v.emptyOption,y=!!p,x=A(e.cloneNode(!1));x.val("?");var z,K=d(l.ngOptions,g,c);v.writeValue=function(a){var c=z.getOptionFromViewValue(a);c&&!c.disabled?g[0].value!==c.selectValue&&(x.remove(),y||p.remove(),g[0].value=c.selectValue,c.element.selected=!0,c.element.setAttribute("selected","selected")):null===a||y?(x.remove(),y||g.prepend(p),g.val(""),p.prop("selected",!0),p.attr("selected",!0)):(y||p.remove(),g.prepend(x),g.val("?"),x.prop("selected",
|
|
|
|
|
!0),x.attr("selected",!0))};v.readValue=function(){var a=z.selectValueMap[g.val()];return a&&!a.disabled?(y||p.remove(),x.remove(),z.getViewValueFromOption(a)):null};k&&(w.$isEmpty=function(a){return!a||0===a.length},v.writeValue=function(a){z.items.forEach(function(a){a.element.selected=!1});a&&a.forEach(function(a){(a=z.getOptionFromViewValue(a))&&!a.disabled&&(a.element.selected=!0)})},v.readValue=function(){var a=g.val()||[],c=[];n(a,function(a){a=z.selectValueMap[a];a.disabled||c.push(z.getViewValueFromOption(a))});
|
|
|
|
|
return c});y?(p.remove(),a(p)(c),p.removeClass("ng-scope")):p=A(e.cloneNode(!1));u();c.$watchCollection(K.getWatchables,u);K.trackBy&&c.$watch(l.ngModel,function(){w.$render()},!0)}}}}],ue=["$locale","$interpolate","$log",function(a,c,d){var e=/{}/g,f=/^when(Minus)?(.+)$/;return{link:function(h,g,l){function k(a){g.text(a||"")}var m=l.count,q=l.$attr.when&&g.attr(l.$attr.when),r=l.offset||0,s=h.$eval(q)||{},u={},x=c.startSymbol(),v=c.endSymbol(),p=x+m+"-"+r+v,y=$.noop,A;n(l,function(a,c){var d=f.exec(c);
|
|
|
|
|
d&&(d=(d[1]?"-":"")+M(d[2]),s[d]=g.attr(l.$attr[c]))});n(s,function(a,d){u[d]=c(a.replace(e,p))});h.$watch(m,function(c){var e=parseFloat(c),f=isNaN(e);f||e in s||(e=a.pluralCat(e-r));e===A||f&&W(A)&&isNaN(A)||(y(),f=u[e],D(f)?(null!=c&&d.debug("ngPluralize: no rule defined for '"+e+"' in "+q),y=w,k()):y=h.$watch(f,k),A=e)})}}}],ve=["$parse","$animate",function(a,c){var d=H("ngRepeat"),e=function(a,c,d,e,k,m,n){a[d]=e;k&&(a[k]=m);a.$index=c;a.$first=0===c;a.$last=c===n-1;a.$middle=!(a.$first||a.$last);
|
|
|
|
|
a.$odd=!(a.$even=0===(c&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(f,h){var g=h.ngRepeat,l=Y.createComment(" end ngRepeat: "+g+" "),k=g.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!k)throw d("iexp",g);var m=k[1],q=k[2],r=k[3],s=k[4],k=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!k)throw d("iidexp",m);var w=k[3]||k[1],x=k[2];if(r&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(r)||
|
|
|
|
|
/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(r)))throw d("badident",r);var v,p,y,E,z={$id:Ga};s?v=a(s):(y=function(a,c){return Ga(c)},E=function(a){return a});return function(a,f,h,k,m){v&&(p=function(c,d,e){x&&(z[x]=c);z[w]=d;z.$index=e;return v(a,z)});var s=la();a.$watchCollection(q,function(h){var k,q,t=f[0],v,z=la(),B,D,G,L,H,C,I;r&&(a[r]=h);if(Ra(h))H=h,q=p||y;else for(I in q=p||E,H=[],h)h.hasOwnProperty(I)&&"$"!==I.charAt(0)&&H.push(I);B=H.length;
|
|
|
|
|
I=Array(B);for(k=0;k<B;k++)if(D=h===H?k:H[k],G=h[D],L=q(D,G,k),s[L])C=s[L],delete s[L],z[L]=C,I[k]=C;else{if(z[L])throw n(I,function(a){a&&a.scope&&(s[a.id]=a)}),d("dupes",g,L,G);I[k]={id:L,scope:u,clone:u};z[L]=!0}for(v in s){C=s[v];L=mb(C.clone);c.leave(L);if(L[0].parentNode)for(k=0,q=L.length;k<q;k++)L[k].$$NG_REMOVED=!0;C.scope.$destroy()}for(k=0;k<B;k++)if(D=h===H?k:H[k],G=h[D],C=I[k],C.scope){v=t;do v=v.nextSibling;while(v&&v.$$NG_REMOVED);C.clone[0]!=v&&c.move(mb(C.clone),null,A(t));t=C.clone[C.clone.length-
|
|
|
|
|
1];e(C.scope,k,w,G,x,D,B)}else m(function(a,d){C.scope=d;var f=l.cloneNode(!1);a[a.length++]=f;c.enter(a,null,A(t));t=f;C.clone=a;z[C.id]=C;e(C.scope,k,w,G,x,D,B)});s=z})}}}}],we=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(c,d,e){c.$watch(e.ngShow,function(c){a[c?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],pe=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(c,d,e){c.$watch(e.ngHide,function(c){a[c?"addClass":"removeClass"](d,
|
|
|
|
|
"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],xe=La(function(a,c,d){a.$watchCollection(d.ngStyle,function(a,d){d&&a!==d&&n(d,function(a,d){c.css(d,"")});a&&c.css(a)})}),ye=["$animate",function(a){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(c,d,e,f){var h=[],g=[],l=[],k=[],m=function(a,c){return function(){a.splice(c,1)}};c.$watch(e.ngSwitch||e.on,function(c){var d,e;d=0;for(e=l.length;d<e;++d)a.cancel(l[d]);d=l.length=0;for(e=k.length;d<e;++d){var s=
|
|
|
|
|
mb(g[d].clone);k[d].$destroy();(l[d]=a.leave(s)).then(m(l,d))}g.length=0;k.length=0;(h=f.cases["!"+c]||f.cases["?"])&&n(h,function(c){c.transclude(function(d,e){k.push(e);var f=c.element;d[d.length++]=Y.createComment(" end ngSwitchWhen: ");g.push({clone:d});a.enter(d,f.parent(),f)})})})}}}],ze=La({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,c,d,e,f){e.cases["!"+d.ngSwitchWhen]=e.cases["!"+d.ngSwitchWhen]||[];e.cases["!"+d.ngSwitchWhen].push({transclude:f,
|
|
|
|
|
element:c})}}),Ae=La({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,c,d,e,f){e.cases["?"]=e.cases["?"]||[];e.cases["?"].push({transclude:f,element:c})}}),Ce=La({restrict:"EAC",link:function(a,c,d,e,f){if(!f)throw H("ngTransclude")("orphan",ua(c));f(function(a){c.empty();c.append(a)})}}),ce=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==d.type&&a.put(d.id,c[0].text)}}}],og={$setViewValue:w,$render:w},
|
|
|
|
|
pg=["$element","$scope","$attrs",function(a,c,d){var e=this,f=new eb;e.ngModelCtrl=og;e.unknownOption=A(Y.createElement("option"));e.renderUnknownOption=function(c){c="? "+Ga(c)+" ?";e.unknownOption.val(c);a.prepend(e.unknownOption);a.val(c)};c.$on("$destroy",function(){e.renderUnknownOption=w});e.removeUnknownOption=function(){e.unknownOption.parent()&&e.unknownOption.remove()};c=0;d=a.children();for(var h=d.length;c<h;c++)if(""===d[c].value){e.emptyOption=d.eq(c);break}e.readValue=function(){e.removeUnknownOption();
|
|
|
|
|
return a.val()};e.writeValue=function(c){e.hasOption(c)?(e.removeUnknownOption(),a.val(c),""===c&&e.emptyOption.prop("selected",!0)):D(c)&&e.emptyOption?(e.removeUnknownOption(),a.val("")):e.renderUnknownOption(c)};e.addOption=function(a){Pa(a,'"option value"');var c=f.get(a)||0;f.put(a,c+1)};e.removeOption=function(a){var c=f.get(a);c&&(1===c?f.remove(a):f.put(a,c-1))};e.hasOption=function(a){return!!f.get(a)}}],de=function(){return{restrict:"E",require:["select","?ngModel"],controller:pg,link:function(a,
|
|
|
|
|
c,d,e){var f=e[1];if(f){var h=e[0];h.ngModelCtrl=f;f.$render=function(){h.writeValue(f.$viewValue)};c.on("change",function(){a.$apply(function(){f.$setViewValue(h.readValue())})});if(d.multiple){h.readValue=function(){var a=[];n(c.find("option"),function(c){c.selected&&a.push(c.value)});return a};h.writeValue=function(a){var d=new eb(a);n(c.find("option"),function(a){a.selected=x(d.get(a.value))})};var g,l=NaN;a.$watch(function(){l!==f.$viewValue||ja(g,f.$viewValue)||(g=ea(f.$viewValue),f.$render());
|
|
|
|
|
l=f.$viewValue});f.$isEmpty=function(a){return!a||0===a.length}}}}}},fe=["$interpolate",function(a){function c(a){a[0].hasAttribute("selected")&&(a[0].selected=!0)}return{restrict:"E",priority:100,compile:function(d,e){if(D(e.value)){var f=a(d.text(),!0);f||e.$set("value",d.text())}return function(a,d,e){var k=d.parent(),m=k.data("$selectController")||k.parent().data("$selectController");m&&m.ngModelCtrl&&(f?a.$watch(f,function(a,f){e.$set("value",a);f!==a&&m.removeOption(f);m.addOption(a,d);m.ngModelCtrl.$render();
|
|
|
|
|
c(d)}):(m.addOption(e.value,d),m.ngModelCtrl.$render(),c(d)),d.on("$destroy",function(){m.removeOption(e.value);m.ngModelCtrl.$render()}))}}}}],ee=oa({restrict:"E",terminal:!1}),Ac=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){e&&(d.required=!0,e.$validators.required=function(a,c){return!d.required||!e.$isEmpty(c)},d.$observe("required",function(){e.$validate()}))}}},zc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f,h=d.ngPattern||d.pattern;
|
|
|
|
|
d.$observe("pattern",function(a){I(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw H("ngPattern")("noregexp",h,a,ua(c));f=a||u;e.$validate()});e.$validators.pattern=function(a){return e.$isEmpty(a)||D(f)||f.test(a)}}}}},Cc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f=-1;d.$observe("maxlength",function(a){a=ba(a);f=isNaN(a)?-1:a;e.$validate()});e.$validators.maxlength=function(a,c){return 0>f||e.$isEmpty(c)||c.length<=f}}}}},Bc=function(){return{restrict:"A",
|
|
|
|
|
require:"?ngModel",link:function(a,c,d,e){if(e){var f=0;d.$observe("minlength",function(a){f=ba(a)||0;e.$validate()});e.$validators.minlength=function(a,c){return e.$isEmpty(c)||c.length>=f}}}}};O.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):(Vd(),Xd($),A(Y).ready(function(){Rd(Y,tc)}))})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>');
|
|
|
|
|
config:r,run:function(a){e.push(a);return this}};g&&r(g);return t})}})}function Zd(b){T(b,{bootstrap:tc,copy:ta,extend:T,merge:Pd,equals:ka,element:E,forEach:n,injector:ab,noop:z,bind:nc,toJson:Za,fromJson:oc,identity:Ta,isUndefined:F,isDefined:w,isString:D,isFunction:H,isObject:C,isNumber:X,isElement:lc,isArray:I,version:$d,isDate:ea,lowercase:N,uppercase:nb,callbacks:{counter:0},getTestability:Vd,$$minErr:J,$$csp:bb,reloadWithDebugInfo:Ud});cb=Yd(O);try{cb("ngLocale")}catch(a){cb("ngLocale",[]).provider("$locale",
|
|
|
|
|
ae)}cb("ng",["ngLocale"],["$provide",function(a){a.provider({$$sanitizeUri:be});a.provider("$compile",xc).directive({a:ce,input:yc,textarea:yc,form:de,script:ee,select:fe,style:ge,option:he,ngBind:ie,ngBindHtml:je,ngBindTemplate:ke,ngClass:le,ngClassEven:me,ngClassOdd:ne,ngCloak:oe,ngController:pe,ngForm:qe,ngHide:re,ngIf:se,ngInclude:te,ngInit:ue,ngNonBindable:ve,ngPluralize:we,ngRepeat:xe,ngShow:ye,ngStyle:ze,ngSwitch:Ae,ngSwitchWhen:Be,ngSwitchDefault:Ce,ngOptions:De,ngTransclude:Ee,ngModel:Fe,
|
|
|
|
|
ngList:Ge,ngChange:He,pattern:zc,ngPattern:zc,required:Ac,ngRequired:Ac,minlength:Bc,ngMinlength:Bc,maxlength:Cc,ngMaxlength:Cc,ngValue:Ie,ngModelOptions:Je}).directive({ngInclude:Ke}).directive(ob).directive(Dc);a.provider({$anchorScroll:Le,$animate:Me,$browser:Ne,$cacheFactory:Oe,$controller:Pe,$document:Qe,$exceptionHandler:Re,$filter:Ec,$interpolate:Se,$interval:Te,$http:Ue,$httpParamSerializer:Ve,$httpParamSerializerJQLike:We,$httpBackend:Xe,$location:Ye,$log:Ze,$parse:$e,$rootScope:af,$q:bf,
|
|
|
|
|
$$q:cf,$sce:df,$sceDelegate:ef,$sniffer:ff,$templateCache:gf,$templateRequest:hf,$$testability:jf,$timeout:kf,$window:lf,$$rAF:mf,$$asyncCallback:nf,$$jqLite:of,$$HashMap:pf,$$cookieReader:qf})}])}function db(b){return b.replace(rf,function(a,b,d,e){return e?d.toUpperCase():d}).replace(sf,"Moz$1")}function Fc(b){b=b.nodeType;return b===oa||!b||9===b}function Gc(b,a){var c,d,e=a.createDocumentFragment(),f=[];if(Qb.test(b)){c=c||e.appendChild(a.createElement("div"));d=(tf.exec(b)||["",""])[1].toLowerCase();
|
|
|
|
|
d=ga[d]||ga._default;c.innerHTML=d[1]+b.replace(uf,"<$1></$2>")+d[2];for(d=d[0];d--;)c=c.lastChild;f=Ya(f,c.childNodes);c=e.firstChild;c.textContent=""}else f.push(a.createTextNode(b));e.textContent="";e.innerHTML="";n(f,function(a){e.appendChild(a)});return e}function P(b){if(b instanceof P)return b;var a;D(b)&&(b=V(b),a=!0);if(!(this instanceof P)){if(a&&"<"!=b.charAt(0))throw Rb("nosel");return new P(b)}if(a){a=Y;var c;b=(c=vf.exec(b))?[a.createElement(c[1])]:(c=Gc(b,a))?c.childNodes:[]}Hc(this,
|
|
|
|
|
b)}function Sb(b){return b.cloneNode(!0)}function pb(b,a){a||qb(b);if(b.querySelectorAll)for(var c=b.querySelectorAll("*"),d=0,e=c.length;d<e;d++)qb(c[d])}function Ic(b,a,c,d){if(w(d))throw Rb("offargs");var e=(d=rb(b))&&d.events,f=d&&d.handle;if(f)if(a)n(a.split(" "),function(a){if(w(c)){var d=e[a];Xa(d||[],c);if(d&&0<d.length)return}b.removeEventListener(a,f,!1);delete e[a]});else for(a in e)"$destroy"!==a&&b.removeEventListener(a,f,!1),delete e[a]}function qb(b,a){var c=b.ng339,d=c&&sb[c];d&&(a?
|
|
|
|
|
delete d.data[a]:(d.handle&&(d.events.$destroy&&d.handle({},"$destroy"),Ic(b)),delete sb[c],b.ng339=u))}function rb(b,a){var c=b.ng339,c=c&&sb[c];a&&!c&&(b.ng339=c=++wf,c=sb[c]={events:{},data:{},handle:u});return c}function Tb(b,a,c){if(Fc(b)){var d=w(c),e=!d&&a&&!C(a),f=!a;b=(b=rb(b,!e))&&b.data;if(d)b[a]=c;else{if(f)return b;if(e)return b&&b[a];T(b,a)}}}function tb(b,a){return b.getAttribute?-1<(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+a+" "):!1}function ub(b,a){a&&
|
|
|
|
|
b.setAttribute&&n(a.split(" "),function(a){b.setAttribute("class",V((" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+V(a)+" "," ")))})}function vb(b,a){if(a&&b.setAttribute){var c=(" "+(b.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");n(a.split(" "),function(a){a=V(a);-1===c.indexOf(" "+a+" ")&&(c+=a+" ")});b.setAttribute("class",V(c))}}function Hc(b,a){if(a)if(a.nodeType)b[b.length++]=a;else{var c=a.length;if("number"===typeof c&&a.window!==a){if(c)for(var d=0;d<
|
|
|
|
|
c;d++)b[b.length++]=a[d]}else b[b.length++]=a}}function Jc(b,a){return wb(b,"$"+(a||"ngController")+"Controller")}function wb(b,a,c){9==b.nodeType&&(b=b.documentElement);for(a=I(a)?a:[a];b;){for(var d=0,e=a.length;d<e;d++)if((c=E.data(b,a[d]))!==u)return c;b=b.parentNode||11===b.nodeType&&b.host}}function Kc(b){for(pb(b,!0);b.firstChild;)b.removeChild(b.firstChild)}function Ub(b,a){a||pb(b);var c=b.parentNode;c&&c.removeChild(b)}function xf(b,a){a=a||O;if("complete"===a.document.readyState)a.setTimeout(b);
|
|
|
|
|
else E(a).on("load",b)}function Lc(b,a){var c=xb[a.toLowerCase()];return c&&Mc[sa(b)]&&c}function yf(b,a){var c=b.nodeName;return("INPUT"===c||"TEXTAREA"===c)&&Nc[a]}function zf(b,a){var c=function(c,e){c.isDefaultPrevented=function(){return c.defaultPrevented};var f=a[e||c.type],h=f?f.length:0;if(h){if(F(c.immediatePropagationStopped)){var g=c.stopImmediatePropagation;c.stopImmediatePropagation=function(){c.immediatePropagationStopped=!0;c.stopPropagation&&c.stopPropagation();g&&g.call(c)}}c.isImmediatePropagationStopped=
|
|
|
|
|
function(){return!0===c.immediatePropagationStopped};1<h&&(f=fa(f));for(var l=0;l<h;l++)c.isImmediatePropagationStopped()||f[l].call(b,c)}};c.elem=b;return c}function of(){this.$get=function(){return T(P,{hasClass:function(b,a){b.attr&&(b=b[0]);return tb(b,a)},addClass:function(b,a){b.attr&&(b=b[0]);return vb(b,a)},removeClass:function(b,a){b.attr&&(b=b[0]);return ub(b,a)}})}}function Ea(b,a){var c=b&&b.$$hashKey;if(c)return"function"===typeof c&&(c=b.$$hashKey()),c;c=typeof b;return c="function"==
|
|
|
|
|
c||"object"==c&&null!==b?b.$$hashKey=c+":"+(a||Od)():c+":"+b}function eb(b,a){if(a){var c=0;this.nextUid=function(){return++c}}n(b,this.put,this)}function Af(b){return(b=b.toString().replace(Oc,"").match(Pc))?"function("+(b[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function ab(b,a){function c(a){return function(b,c){if(C(b))n(b,jc(a));else return a(b,c)}}function d(a,b){Pa(a,"service");if(H(b)||I(b))b=r.instantiate(b);if(!b.$get)throw Fa("pget",a);return q[a+"Provider"]=b}function e(a,b){return function(){var c=
|
|
|
|
|
G.invoke(b,this);if(F(c))throw Fa("undef",a);return c}}function f(a,b,c){return d(a,{$get:!1!==c?e(a,b):b})}function h(a){var b=[],c;n(a,function(a){function d(a){var b,c;b=0;for(c=a.length;b<c;b++){var e=a[b],f=r.get(e[0]);f[e[1]].apply(f,e[2])}}if(!m.get(a)){m.put(a,!0);try{D(a)?(c=cb(a),b=b.concat(h(c.requires)).concat(c._runBlocks),d(c._invokeQueue),d(c._configBlocks)):H(a)?b.push(r.invoke(a)):I(a)?b.push(r.invoke(a)):Oa(a,"module")}catch(e){throw I(a)&&(a=a[a.length-1]),e.message&&e.stack&&-1==
|
|
|
|
|
e.stack.indexOf(e.message)&&(e=e.message+"\n"+e.stack),Fa("modulerr",a,e.stack||e.message||e);}}});return b}function g(b,c){function d(a,e){if(b.hasOwnProperty(a)){if(b[a]===l)throw Fa("cdep",a+" <- "+k.join(" <- "));return b[a]}try{return k.unshift(a),b[a]=l,b[a]=c(a,e)}catch(f){throw b[a]===l&&delete b[a],f;}finally{k.shift()}}function e(b,c,f,h){"string"===typeof f&&(h=f,f=null);var g=[],k=ab.$$annotate(b,a,h),l,r,q;r=0;for(l=k.length;r<l;r++){q=k[r];if("string"!==typeof q)throw Fa("itkn",q);g.push(f&&
|
|
|
|
|
f.hasOwnProperty(q)?f[q]:d(q,h))}I(b)&&(b=b[l]);return b.apply(c,g)}return{invoke:e,instantiate:function(a,b,c){var d=Object.create((I(a)?a[a.length-1]:a).prototype||null);a=e(a,d,b,c);return C(a)||H(a)?a:d},get:d,annotate:ab.$$annotate,has:function(a){return q.hasOwnProperty(a+"Provider")||b.hasOwnProperty(a)}}}a=!0===a;var l={},k=[],m=new eb([],!0),q={$provide:{provider:c(d),factory:c(f),service:c(function(a,b){return f(a,["$injector",function(a){return a.instantiate(b)}])}),value:c(function(a,
|
|
|
|
|
b){return f(a,pa(b),!1)}),constant:c(function(a,b){Pa(a,"constant");q[a]=b;t[a]=b}),decorator:function(a,b){var c=r.get(a+"Provider"),d=c.$get;c.$get=function(){var a=G.invoke(d,c);return G.invoke(b,null,{$delegate:a})}}}},r=q.$injector=g(q,function(a,b){aa.isString(b)&&k.push(b);throw Fa("unpr",k.join(" <- "));}),t={},G=t.$injector=g(t,function(a,b){var c=r.get(a+"Provider",b);return G.invoke(c.$get,c,u,a)});n(h(b),function(a){G.invoke(a||z)});return G}function Le(){var b=!0;this.disableAutoScrolling=
|
|
|
|
|
function(){b=!1};this.$get=["$window","$location","$rootScope",function(a,c,d){function e(a){var b=null;Array.prototype.some.call(a,function(a){if("a"===sa(a))return b=a,!0});return b}function f(b){if(b){b.scrollIntoView();var c;c=h.yOffset;H(c)?c=c():lc(c)?(c=c[0],c="fixed"!==a.getComputedStyle(c).position?0:c.getBoundingClientRect().bottom):X(c)||(c=0);c&&(b=b.getBoundingClientRect().top,a.scrollBy(0,b-c))}else a.scrollTo(0,0)}function h(a){a=D(a)?a:c.hash();var b;a?(b=g.getElementById(a))?f(b):
|
|
|
|
|
(b=e(g.getElementsByName(a)))?f(b):"top"===a&&f(null):f(null)}var g=a.document;b&&d.$watch(function(){return c.hash()},function(a,b){a===b&&""===a||xf(function(){d.$evalAsync(h)})});return h}]}function nf(){this.$get=["$$rAF","$timeout",function(b,a){return b.supported?function(a){return b(a)}:function(b){return a(b,0,!1)}}]}function Bf(b,a,c,d){function e(a){try{a.apply(null,qa.call(arguments,1))}finally{if(G--,0===G)for(;Q.length;)try{Q.pop()()}catch(b){c.error(b)}}}function f(){h();g()}function h(){a:{try{v=
|
|
|
|
|
m.state;break a}catch(a){}v=void 0}v=F(v)?null:v;ka(v,B)&&(v=B);B=v}function g(){if(x!==l.url()||p!==v)x=l.url(),p=v,n(L,function(a){a(l.url(),v)})}var l=this,k=b.location,m=b.history,q=b.setTimeout,r=b.clearTimeout,t={};l.isMock=!1;var G=0,Q=[];l.$$completeOutstandingRequest=e;l.$$incOutstandingRequestCount=function(){G++};l.notifyWhenNoOutstandingRequests=function(a){0===G?a():Q.push(a)};var v,p,x=k.href,A=a.find("base"),y=null;h();p=v;l.url=function(a,c,e){F(e)&&(e=null);k!==b.location&&(k=b.location);
|
|
|
|
|
m!==b.history&&(m=b.history);if(a){var f=p===e;if(x===a&&(!d.history||f))return l;var g=x&&Ha(x)===Ha(a);x=a;p=e;!d.history||g&&f?(g||(y=a),c?k.replace(a):g?(c=k,e=a.indexOf("#"),a=-1===e?"":a.substr(e+1),c.hash=a):k.href=a):(m[c?"replaceState":"pushState"](e,"",a),h(),p=v);return l}return y||k.href.replace(/%27/g,"'")};l.state=function(){return v};var L=[],M=!1,B=null;l.onUrlChange=function(a){if(!M){if(d.history)E(b).on("popstate",f);E(b).on("hashchange",f);M=!0}L.push(a);return a};l.$$applicationDestroyed=
|
|
|
|
|
function(){E(b).off("hashchange popstate",f)};l.$$checkUrlChange=g;l.baseHref=function(){var a=A.attr("href");return a?a.replace(/^(https?\:)?\/\/[^\/]*/,""):""};l.defer=function(a,b){var c;G++;c=q(function(){delete t[c];e(a)},b||0);t[c]=!0;return c};l.defer.cancel=function(a){return t[a]?(delete t[a],r(a),e(z),!0):!1}}function Ne(){this.$get=["$window","$log","$sniffer","$document",function(b,a,c,d){return new Bf(b,d,a,c)}]}function Oe(){this.$get=function(){function b(b,d){function e(a){a!=q&&(r?
|
|
|
|
|
r==a&&(r=a.n):r=a,f(a.n,a.p),f(a,q),q=a,q.n=null)}function f(a,b){a!=b&&(a&&(a.p=b),b&&(b.n=a))}if(b in a)throw J("$cacheFactory")("iid",b);var h=0,g=T({},d,{id:b}),l={},k=d&&d.capacity||Number.MAX_VALUE,m={},q=null,r=null;return a[b]={put:function(a,b){if(!F(b)){if(k<Number.MAX_VALUE){var c=m[a]||(m[a]={key:a});e(c)}a in l||h++;l[a]=b;h>k&&this.remove(r.key);return b}},get:function(a){if(k<Number.MAX_VALUE){var b=m[a];if(!b)return;e(b)}return l[a]},remove:function(a){if(k<Number.MAX_VALUE){var b=
|
|
|
|
|
m[a];if(!b)return;b==q&&(q=b.p);b==r&&(r=b.n);f(b.n,b.p);delete m[a]}delete l[a];h--},removeAll:function(){l={};h=0;m={};q=r=null},destroy:function(){m=g=l=null;delete a[b]},info:function(){return T({},g,{size:h})}}}var a={};b.info=function(){var b={};n(a,function(a,e){b[e]=a.info()});return b};b.get=function(b){return a[b]};return b}}function gf(){this.$get=["$cacheFactory",function(b){return b("templates")}]}function xc(b,a){function c(a,b,c){var d=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,e={};n(a,
|
|
|
|
|
function(a,f){var h=a.match(d);if(!h)throw ha("iscp",b,f,a,c?"controller bindings definition":"isolate scope definition");e[f]={mode:h[1][0],collection:"*"===h[2],optional:"?"===h[3],attrName:h[4]||f}});return e}function d(a){var b=a.charAt(0);if(!b||b!==N(b))throw ha("baddir",a);}var e={},f=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,h=/(([\w\-]+)(?:\:([^;]+))?;?)/,g=Qd("ngSrc,ngSrcset,src,srcset"),l=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/;this.directive=function r(a,f){Pa(a,"directive");
|
|
|
|
|
D(a)?(d(a),Pb(f,"directiveFactory"),e.hasOwnProperty(a)||(e[a]=[],b.factory(a+"Directive",["$injector","$exceptionHandler",function(b,d){var f=[];n(e[a],function(e,h){try{var g=b.invoke(e);H(g)?g={compile:pa(g)}:!g.compile&&g.link&&(g.compile=pa(g.link));g.priority=g.priority||0;g.index=h;g.name=g.name||a;g.require=g.require||g.controller&&g.name;g.restrict=g.restrict||"EA";var k=g,l=g,r=g.name,m={isolateScope:null,bindToController:null};C(l.scope)&&(!0===l.bindToController?(m.bindToController=c(l.scope,
|
|
|
|
|
r,!0),m.isolateScope={}):m.isolateScope=c(l.scope,r,!1));C(l.bindToController)&&(m.bindToController=c(l.bindToController,r,!0));if(C(m.bindToController)){var G=l.controller,S=l.controllerAs;if(!G)throw ha("noctrl",r);var n;a:if(S&&D(S))n=S;else{if(D(G)){var za=Qc.exec(G);if(za){n=za[3];break a}}n=void 0}if(!n)throw ha("noident",r);}var s=k.$$bindings=m;C(s.isolateScope)&&(g.$$isolateBindings=s.isolateScope);f.push(g)}catch(u){d(u)}});return f}])),e[a].push(f)):n(a,jc(r));return this};this.aHrefSanitizationWhitelist=
|
|
|
|
|
function(b){return w(b)?(a.aHrefSanitizationWhitelist(b),this):a.aHrefSanitizationWhitelist()};this.imgSrcSanitizationWhitelist=function(b){return w(b)?(a.imgSrcSanitizationWhitelist(b),this):a.imgSrcSanitizationWhitelist()};var m=!0;this.debugInfoEnabled=function(a){return w(a)?(m=a,this):m};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(a,b,c,d,v,p,x,s,y,L,M){function B(a,b){try{a.addClass(b)}catch(c){}}
|
|
|
|
|
function U(a,b,c,d,e){a instanceof E||(a=E(a));n(a,function(b,c){b.nodeType==$a&&b.nodeValue.match(/\S+/)&&(a[c]=E(b).wrap("<span></span>").parent()[0])});var f=R(a,b,a,c,d,e);U.$$addScopeClass(a);var g=null;return function(b,c,d){Pb(b,"scope");d=d||{};var e=d.parentBoundTranscludeFn,h=d.transcludeControllers;d=d.futureParentElement;e&&e.$$boundTransclude&&(e=e.$$boundTransclude);g||(g=(d=d&&d[0])?"foreignobject"!==sa(d)&&d.toString().match(/SVG/)?"svg":"html":"html");d="html"!==g?E(Vb(g,E("<div>").append(a).html())):
|
|
|
|
|
c?Na.clone.call(a):a;if(h)for(var k in h)d.data("$"+k+"Controller",h[k].instance);U.$$addScopeInfo(d,b);c&&c(d,b);f&&f(b,d,d,e);return d}}function R(a,b,c,d,e,f){function g(a,c,d,e){var f,k,l,r,m,t,L;if(p)for(L=Array(c.length),r=0;r<h.length;r+=3)f=h[r],L[f]=c[f];else L=c;r=0;for(m=h.length;r<m;)if(k=L[h[r++]],c=h[r++],f=h[r++],c){if(c.scope){if(l=a.$new(),U.$$addScopeInfo(E(k),l),t=c.$$destroyBindings)c.$$destroyBindings=null,l.$on("$destroyed",t)}else l=a;t=c.transcludeOnThisElement?S(a,c.transclude,
|
|
|
|
|
e,c.elementTranscludeOnThisElement):!c.templateOnThisElement&&e?e:!e&&b?S(a,b):null;c(f,l,k,d,t,c)}else f&&f(a,k.childNodes,u,e)}for(var h=[],k,l,r,m,p,t=0;t<a.length;t++){k=new da;l=Ga(a[t],[],k,0===t?d:u,e);(f=l.length?w(l,a[t],k,b,c,null,[],[],f):null)&&f.scope&&U.$$addScopeClass(k.$$element);k=f&&f.terminal||!(r=a[t].childNodes)||!r.length?null:R(r,f?(f.transcludeOnThisElement||!f.templateOnThisElement)&&f.transclude:b);if(f||k)h.push(t,f,k),m=!0,p=p||f;f=null}return m?g:null}function S(a,b,c,
|
|
|
|
|
d){return function(d,e,f,g,h){d||(d=a.$new(!1,h),d.$$transcluded=!0);return b(d,e,{parentBoundTranscludeFn:c,transcludeControllers:f,futureParentElement:g})}}function Ga(a,b,c,d,e){var g=c.$attr,k;switch(a.nodeType){case oa:J(b,wa(sa(a)),"E",d,e);for(var l,r,m,p=a.attributes,t=0,L=p&&p.length;t<L;t++){var G=!1,M=!1;l=p[t];k=l.name;r=V(l.value);l=wa(k);if(m=ja.test(l))k=k.replace(Sc,"").substr(8).replace(/_(.)/g,function(a,b){return b.toUpperCase()});var B=l.replace(/(Start|End)$/,"");O(B)&&l===B+
|
|
|
|
|
"Start"&&(G=k,M=k.substr(0,k.length-5)+"end",k=k.substr(0,k.length-6));l=wa(k.toLowerCase());g[l]=k;if(m||!c.hasOwnProperty(l))c[l]=r,Lc(a,l)&&(c[l]=!0);$(a,b,r,l,m);J(b,l,"A",d,e,G,M)}a=a.className;C(a)&&(a=a.animVal);if(D(a)&&""!==a)for(;k=h.exec(a);)l=wa(k[2]),J(b,l,"C",d,e)&&(c[l]=V(k[3])),a=a.substr(k.index+k[0].length);break;case $a:xa(b,a.nodeValue);break;case 8:try{if(k=f.exec(a.nodeValue))l=wa(k[1]),J(b,l,"M",d,e)&&(c[l]=V(k[2]))}catch(Q){}}b.sort(Ia);return b}function za(a,b,c){var d=[],
|
|
|
|
|
e=0;if(b&&a.hasAttribute&&a.hasAttribute(b)){do{if(!a)throw ha("uterdir",b,c);a.nodeType==oa&&(a.hasAttribute(b)&&e++,a.hasAttribute(c)&&e--);d.push(a);a=a.nextSibling}while(0<e)}else d.push(a);return E(d)}function Rc(a,b,c){return function(d,e,f,g,h){e=za(e[0],b,c);return a(d,e,f,g,h)}}function w(a,b,d,e,f,g,h,k,r){function m(a,b,c,d){if(a){c&&(a=Rc(a,c,d));a.require=K.require;a.directiveName=z;if(S===K||K.$$isolateScope)a=ba(a,{isolateScope:!0});h.push(a)}if(b){c&&(b=Rc(b,c,d));b.require=K.require;
|
|
|
|
|
b.directiveName=z;if(S===K||K.$$isolateScope)b=ba(b,{isolateScope:!0});k.push(b)}}function t(a,b,c,d){var e;if(D(b)){var f=b.match(l);b=b.substring(f[0].length);var g=f[1]||f[3],f="?"===f[2];"^^"===g?c=c.parent():e=(e=d&&d[b])&&e.instance;e||(d="$"+b+"Controller",e=g?c.inheritedData(d):c.data(d));if(!e&&!f)throw ha("ctreq",b,a);}else if(I(b))for(e=[],g=0,f=b.length;g<f;g++)e[g]=t(a,b[g],c,d);return e||null}function L(a,b,c,d,e,f){var g=ma(),h;for(h in d){var k=d[h],l={$scope:k===S||k.$$isolateScope?
|
|
|
|
|
e:f,$element:a,$attrs:b,$transclude:c},r=k.controller;"@"==r&&(r=b[k.name]);l=p(r,l,!0,k.controllerAs);g[k.name]=l;s||a.data("$"+k.name+"Controller",l.instance)}return g}function M(a,c,e,f,g,l){function r(a,b,c){var d;Va(a)||(c=b,b=a,a=u);s&&(d=R);c||(c=s?ia.parent():ia);return g(a,b,d,c,Ga)}var m,p,G,B,R,y,ia;b===e?(f=d,ia=d.$$element):(ia=E(e),f=new da(ia,d));S&&(B=c.$new(!0));g&&(y=r,y.$$boundTransclude=g);v&&(R=L(ia,f,y,v,B,c));S&&(U.$$addScopeInfo(ia,B,!0,!(x&&(x===S||x===S.$$originalDirective))),
|
|
|
|
|
U.$$addScopeClass(ia,!0),B.$$isolateBindings=S.$$isolateBindings,aa(c,f,B,B.$$isolateBindings,S,B));if(R){var n=S||Q,za;n&&R[n.name]&&(p=n.$$bindings.bindToController,(G=R[n.name])&&G.identifier&&p&&(za=G,l.$$destroyBindings=aa(c,f,G.instance,p,n)));for(m in R){G=R[m];var A=G();A!==G.instance&&(G.instance=A,ia.data("$"+K.name+"Controller",A),G===za&&(l.$$destroyBindings(),l.$$destroyBindings=aa(c,f,A,p,n)))}}m=0;for(l=h.length;m<l;m++)p=h[m],ca(p,p.isolateScope?B:c,ia,f,p.require&&t(p.directiveName,
|
|
|
|
|
p.require,ia,R),y);var Ga=c;S&&(S.template||null===S.templateUrl)&&(Ga=B);a&&a(Ga,e.childNodes,u,g);for(m=k.length-1;0<=m;m--)p=k[m],ca(p,p.isolateScope?B:c,ia,f,p.require&&t(p.directiveName,p.require,ia,R),y)}r=r||{};for(var B=-Number.MAX_VALUE,Q,v=r.controllerDirectives,S=r.newIsolateScopeDirective,x=r.templateDirective,R=r.nonTlbTranscludeDirective,y=!1,n=!1,s=r.hasElementTranscludeDirective,A=d.$$element=E(b),K,z,W,Ia=e,J,xa=0,N=a.length;xa<N;xa++){K=a[xa];var O=K.$$start,T=K.$$end;O&&(A=za(b,
|
|
|
|
|
O,T));W=u;if(B>K.priority)break;if(W=K.scope)K.templateUrl||(C(W)?(P("new/isolated scope",S||Q,K,A),S=K):P("new/isolated scope",S,K,A)),Q=Q||K;z=K.name;!K.templateUrl&&K.controller&&(W=K.controller,v=v||ma(),P("'"+z+"' controller",v[z],K,A),v[z]=K);if(W=K.transclude)y=!0,K.$$tlb||(P("transclusion",R,K,A),R=K),"element"==W?(s=!0,B=K.priority,W=A,A=d.$$element=E(Y.createComment(" "+z+": "+d[z]+" ")),b=A[0],Z(f,qa.call(W,0),b),Ia=U(W,e,B,g&&g.name,{nonTlbTranscludeDirective:R})):(W=E(Sb(b)).contents(),
|
|
|
|
|
A.empty(),Ia=U(W,e));if(K.template)if(n=!0,P("template",x,K,A),x=K,W=H(K.template)?K.template(A,d):K.template,W=ga(W),K.replace){g=K;W=Qb.test(W)?Tc(Vb(K.templateNamespace,V(W))):[];b=W[0];if(1!=W.length||b.nodeType!==oa)throw ha("tplrt",z,"");Z(f,A,b);N={$attr:{}};W=Ga(b,[],N);var Cf=a.splice(xa+1,a.length-(xa+1));S&&F(W);a=a.concat(W).concat(Cf);Uc(d,N);N=a.length}else A.html(W);if(K.templateUrl)n=!0,P("template",x,K,A),x=K,K.replace&&(g=K),M=Df(a.splice(xa,a.length-xa),A,d,f,y&&Ia,h,k,{controllerDirectives:v,
|
|
|
|
|
newIsolateScopeDirective:S,templateDirective:x,nonTlbTranscludeDirective:R}),N=a.length;else if(K.compile)try{J=K.compile(A,d,Ia),H(J)?m(null,J,O,T):J&&m(J.pre,J.post,O,T)}catch(X){c(X,ua(A))}K.terminal&&(M.terminal=!0,B=Math.max(B,K.priority))}M.scope=Q&&!0===Q.scope;M.transcludeOnThisElement=y;M.elementTranscludeOnThisElement=s;M.templateOnThisElement=n;M.transclude=Ia;r.hasElementTranscludeDirective=s;return M}function F(a){for(var b=0,c=a.length;b<c;b++)a[b]=Lb(a[b],{$$isolateScope:!0})}function J(b,
|
|
|
|
|
d,f,g,h,k,l){if(d===h)return null;h=null;if(e.hasOwnProperty(d)){var m;d=a.get(d+"Directive");for(var p=0,t=d.length;p<t;p++)try{m=d[p],(g===u||g>m.priority)&&-1!=m.restrict.indexOf(f)&&(k&&(m=Lb(m,{$$start:k,$$end:l})),b.push(m),h=m)}catch(L){c(L)}}return h}function O(b){if(e.hasOwnProperty(b))for(var c=a.get(b+"Directive"),d=0,f=c.length;d<f;d++)if(b=c[d],b.multiElement)return!0;return!1}function Uc(a,b){var c=b.$attr,d=a.$attr,e=a.$$element;n(a,function(d,e){"$"!=e.charAt(0)&&(b[e]&&b[e]!==d&&
|
|
|
|
|
(d+=("style"===e?";":" ")+b[e]),a.$set(e,d,!0,c[e]))});n(b,function(b,f){"class"==f?(B(e,b),a["class"]=(a["class"]?a["class"]+" ":"")+b):"style"==f?(e.attr("style",e.attr("style")+";"+b),a.style=(a.style?a.style+";":"")+b):"$"==f.charAt(0)||a.hasOwnProperty(f)||(a[f]=b,d[f]=c[f])})}function Df(a,b,c,e,f,g,h,k){var l=[],r,m,p=b[0],t=a.shift(),L=Lb(t,{templateUrl:null,transclude:null,replace:null,$$originalDirective:t}),G=H(t.templateUrl)?t.templateUrl(b,c):t.templateUrl,M=t.templateNamespace;b.empty();
|
|
|
|
|
d(y.getTrustedResourceUrl(G)).then(function(d){var Q,v;d=ga(d);if(t.replace){d=Qb.test(d)?Tc(Vb(M,V(d))):[];Q=d[0];if(1!=d.length||Q.nodeType!==oa)throw ha("tplrt",t.name,G);d={$attr:{}};Z(e,b,Q);var x=Ga(Q,[],d);C(t.scope)&&F(x);a=x.concat(a);Uc(c,d)}else Q=p,b.html(d);a.unshift(L);r=w(a,Q,c,f,b,t,g,h,k);n(e,function(a,c){a==Q&&(e[c]=b[0])});for(m=R(b[0].childNodes,f);l.length;){d=l.shift();v=l.shift();var y=l.shift(),U=l.shift(),x=b[0];if(!d.$$destroyed){if(v!==p){var A=v.className;k.hasElementTranscludeDirective&&
|
|
|
|
|
t.replace||(x=Sb(Q));Z(y,E(v),x);B(E(x),A)}v=r.transcludeOnThisElement?S(d,r.transclude,U):U;r(m,d,x,e,v,r)}}l=null});return function(a,b,c,d,e){a=e;b.$$destroyed||(l?l.push(b,c,d,a):(r.transcludeOnThisElement&&(a=S(b,r.transclude,e)),r(m,b,c,d,a,r)))}}function Ia(a,b){var c=b.priority-a.priority;return 0!==c?c:a.name!==b.name?a.name<b.name?-1:1:a.index-b.index}function P(a,b,c,d){if(b)throw ha("multidir",b.name,c.name,a,ua(d));}function xa(a,c){var d=b(c,!0);d&&a.push({priority:0,compile:function(a){a=
|
|
|
|
|
a.parent();var b=!!a.length;b&&U.$$addBindingClass(a);return function(a,c){var e=c.parent();b||U.$$addBindingClass(e);U.$$addBindingInfo(e,d.expressions);a.$watch(d,function(a){c[0].nodeValue=a})}}})}function Vb(a,b){a=N(a||"html");switch(a){case "svg":case "math":var c=Y.createElement("div");c.innerHTML="<"+a+">"+b+"</"+a+">";return c.childNodes[0].childNodes;default:return b}}function X(a,b){if("srcdoc"==b)return y.HTML;var c=sa(a);if("xlinkHref"==b||"form"==c&&"action"==b||"img"!=c&&("src"==b||
|
|
|
|
|
"ngSrc"==b))return y.RESOURCE_URL}function $(a,c,d,e,f){var h=X(a,e);f=g[e]||f;var l=b(d,!0,h,f);if(l){if("multiple"===e&&"select"===sa(a))throw ha("selmulti",ua(a));c.push({priority:100,compile:function(){return{pre:function(a,c,g){c=g.$$observers||(g.$$observers={});if(k.test(e))throw ha("nodomevents");var r=g[e];r!==d&&(l=r&&b(r,!0,h,f),d=r);l&&(g[e]=l(a),(c[e]||(c[e]=[])).$$inter=!0,(g.$$observers&&g.$$observers[e].$$scope||a).$watch(l,function(a,b){"class"===e&&a!=b?g.$updateClass(a,b):g.$set(e,
|
|
|
|
|
a)}))}}}})}}function Z(a,b,c){var d=b[0],e=b.length,f=d.parentNode,g,h;if(a)for(g=0,h=a.length;g<h;g++)if(a[g]==d){a[g++]=c;h=g+e-1;for(var l=a.length;g<l;g++,h++)h<l?a[g]=a[h]:delete a[g];a.length-=e-1;a.context===d&&(a.context=c);break}f&&f.replaceChild(c,d);a=Y.createDocumentFragment();a.appendChild(d);E(c).data(E(d).data());la?(Ob=!0,la.cleanData([d])):delete E.cache[d[E.expando]];d=1;for(e=b.length;d<e;d++)f=b[d],E(f).remove(),a.appendChild(f),delete b[d];b[0]=c;b.length=1}function ba(a,b){return T(function(){return a.apply(null,
|
|
|
|
|
arguments)},a,b)}function ca(a,b,d,e,f,g){try{a(b,d,e,f,g)}catch(h){c(h,ua(d))}}function aa(a,c,d,e,f,g){var h;n(e,function(e,g){var l=e.attrName,k=e.optional,r,m,p,L;switch(e.mode){case "@":c.$observe(l,function(a){d[g]=a});c.$$observers[l].$$scope=a;c[l]&&(d[g]=b(c[l])(a));break;case "=":if(k&&!c[l])break;m=v(c[l]);L=m.literal?ka:function(a,b){return a===b||a!==a&&b!==b};p=m.assign||function(){r=d[g]=m(a);throw ha("nonassign",c[l],f.name);};r=d[g]=m(a);k=function(b){L(b,d[g])||(L(b,r)?p(a,b=d[g]):
|
|
|
|
|
d[g]=b);return r=b};k.$stateful=!0;k=e.collection?a.$watchCollection(c[l],k):a.$watch(v(c[l],k),null,m.literal);h=h||[];h.push(k);break;case "&":if(!c.hasOwnProperty(l)&&k)break;m=v(c[l]);if(m===z&&k)break;d[g]=function(b){return m(a,b)}}});e=h?function(){for(var a=0,b=h.length;a<b;++a)h[a]()}:z;return g&&e!==z?(g.$on("$destroy",e),z):e}var da=function(a,b){if(b){var c=Object.keys(b),d,e,f;d=0;for(e=c.length;d<e;d++)f=c[d],this[f]=b[f]}else this.$attr={};this.$$element=a};da.prototype={$normalize:wa,
|
|
|
|
|
$addClass:function(a){a&&0<a.length&&L.addClass(this.$$element,a)},$removeClass:function(a){a&&0<a.length&&L.removeClass(this.$$element,a)},$updateClass:function(a,b){var c=Vc(a,b);c&&c.length&&L.addClass(this.$$element,c);(c=Vc(b,a))&&c.length&&L.removeClass(this.$$element,c)},$set:function(a,b,d,e){var f=this.$$element[0],g=Lc(f,a),h=yf(f,a),f=a;g?(this.$$element.prop(a,b),e=g):h&&(this[h]=b,f=h);this[a]=b;e?this.$attr[a]=e:(e=this.$attr[a])||(this.$attr[a]=e=uc(a,"-"));g=sa(this.$$element);if("a"===
|
|
|
|
|
g&&"href"===a||"img"===g&&"src"===a)this[a]=b=M(b,"src"===a);else if("img"===g&&"srcset"===a){for(var g="",h=V(b),l=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,l=/\s/.test(h)?l:/(,)/,h=h.split(l),l=Math.floor(h.length/2),k=0;k<l;k++)var r=2*k,g=g+M(V(h[r]),!0),g=g+(" "+V(h[r+1]));h=V(h[2*k]).split(/\s/);g+=M(V(h[0]),!0);2===h.length&&(g+=" "+V(h[1]));this[a]=b=g}!1!==d&&(null===b||b===u?this.$$element.removeAttr(e):this.$$element.attr(e,b));(a=this.$$observers)&&n(a[f],function(a){try{a(b)}catch(d){c(d)}})},
|
|
|
|
|
$observe:function(a,b){var c=this,d=c.$$observers||(c.$$observers=ma()),e=d[a]||(d[a]=[]);e.push(b);x.$evalAsync(function(){!e.$$inter&&c.hasOwnProperty(a)&&b(c[a])});return function(){Xa(e,b)}}};var ea=b.startSymbol(),fa=b.endSymbol(),ga="{{"==ea||"}}"==fa?Ta:function(a){return a.replace(/\{\{/g,ea).replace(/}}/g,fa)},ja=/^ngAttr[A-Z]/;U.$$addBindingInfo=m?function(a,b){var c=a.data("$binding")||[];I(b)?c=c.concat(b):c.push(b);a.data("$binding",c)}:z;U.$$addBindingClass=m?function(a){B(a,"ng-binding")}:
|
|
|
|
|
z;U.$$addScopeInfo=m?function(a,b,c,d){a.data(c?d?"$isolateScopeNoTemplate":"$isolateScope":"$scope",b)}:z;U.$$addScopeClass=m?function(a,b){B(a,b?"ng-isolate-scope":"ng-scope")}:z;return U}]}function wa(b){return db(b.replace(Sc,""))}function Vc(b,a){var c="",d=b.split(/\s+/),e=a.split(/\s+/),f=0;a:for(;f<d.length;f++){for(var h=d[f],g=0;g<e.length;g++)if(h==e[g])continue a;c+=(0<c.length?" ":"")+h}return c}function Tc(b){b=E(b);var a=b.length;if(1>=a)return b;for(;a--;)8===b[a].nodeType&&Ef.call(b,
|
|
|
|
|
a,1);return b}function Pe(){var b={},a=!1;this.register=function(a,d){Pa(a,"controller");C(a)?T(b,a):b[a]=d};this.allowGlobals=function(){a=!0};this.$get=["$injector","$window",function(c,d){function e(a,b,c,d){if(!a||!C(a.$scope))throw J("$controller")("noscp",d,b);a.$scope[b]=c}return function(f,h,g,l){var k,m,q;g=!0===g;l&&D(l)&&(q=l);if(D(f)){l=f.match(Qc);if(!l)throw Ff("ctrlfmt",f);m=l[1];q=q||l[3];f=b.hasOwnProperty(m)?b[m]:wc(h.$scope,m,!0)||(a?wc(d,m,!0):u);Oa(f,m,!0)}if(g)return g=(I(f)?
|
|
|
|
|
f[f.length-1]:f).prototype,k=Object.create(g||null),q&&e(h,q,k,m||f.name),T(function(){var a=c.invoke(f,k,h,m);a!==k&&(C(a)||H(a))&&(k=a,q&&e(h,q,k,m||f.name));return k},{instance:k,identifier:q});k=c.instantiate(f,h,m);q&&e(h,q,k,m||f.name);return k}}]}function Qe(){this.$get=["$window",function(b){return E(b.document)}]}function Re(){this.$get=["$log",function(b){return function(a,c){b.error.apply(b,arguments)}}]}function Wc(b){function a(a){return C(a)?ea(a)?a.toISOString():Za(a):a}return function(c){if(!c)return"";
|
|
|
|
|
var d=[];Nd(c,function(c,f){null===c||F(c)||(I(c)||C(c)&&b?n(c,function(h,g){var l=b?"["+(I(c)?"":g)+"]":"";d.push(va(f+l)+"="+va(a(h)))}):d.push(va(f)+"="+va(a(c))))});return 0<d.length?d.join("&"):""}}function Ve(){this.$get=function(){return Wc(!1)}}function We(){this.$get=function(){return Wc(!0)}}function Wb(b,a){if(D(b)){var c=b.replace(Gf,"").trim();if(c){var d=a("Content-Type");(d=d&&0===d.indexOf(Xc))||(d=(d=c.match(Hf))&&If[d[0]].test(c));d&&(b=oc(c))}}return b}function Yc(b){var a=ma(),
|
|
|
|
|
c;D(b)?n(b.split("\n"),function(b){c=b.indexOf(":");var e=N(V(b.substr(0,c)));b=V(b.substr(c+1));e&&(a[e]=a[e]?a[e]+", "+b:b)}):C(b)&&n(b,function(b,c){var f=N(c),h=V(b);f&&(a[f]=a[f]?a[f]+", "+h:h)});return a}function Zc(b){var a;return function(c){a||(a=Yc(b));return c?(c=a[N(c)],void 0===c&&(c=null),c):a}}function $c(b,a,c,d){if(H(d))return d(b,a,c);n(d,function(d){b=d(b,a,c)});return b}function Ue(){var b=this.defaults={transformResponse:[Wb],transformRequest:[function(a){return C(a)&&"[object File]"!==
|
|
|
|
|
ra.call(a)&&"[object Blob]"!==ra.call(a)&&"[object FormData]"!==ra.call(a)?Za(a):a}],headers:{common:{Accept:"application/json, text/plain, */*"},post:fa(Xb),put:fa(Xb),patch:fa(Xb)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},a=!1;this.useApplyAsync=function(b){return w(b)?(a=!!b,this):a};var c=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(d,e,f,h,g,l){function k(a){function c(a){var b=
|
|
|
|
|
T({},a);b.data=a.data?$c(a.data,a.headers,a.status,e.transformResponse):a.data;a=a.status;return 200<=a&&300>a?b:g.reject(b)}function d(a,b){var c,e={};n(a,function(a,d){H(a)?(c=a(b),null!=c&&(e[d]=c)):e[d]=a});return e}if(!aa.isObject(a))throw J("$http")("badreq",a);var e=T({method:"get",transformRequest:b.transformRequest,transformResponse:b.transformResponse,paramSerializer:b.paramSerializer},a);e.headers=function(a){var c=b.headers,e=T({},a.headers),f,g,h,c=T({},c.common,c[N(a.method)]);a:for(f in c){g=
|
|
|
|
|
N(f);for(h in e)if(N(h)===g)continue a;e[f]=c[f]}return d(e,fa(a))}(a);e.method=nb(e.method);e.paramSerializer=D(e.paramSerializer)?l.get(e.paramSerializer):e.paramSerializer;var f=[function(a){var d=a.headers,e=$c(a.data,Zc(d),u,a.transformRequest);F(e)&&n(d,function(a,b){"content-type"===N(b)&&delete d[b]});F(a.withCredentials)&&!F(b.withCredentials)&&(a.withCredentials=b.withCredentials);return m(a,e).then(c,c)},u],h=g.when(e);for(n(t,function(a){(a.request||a.requestError)&&f.unshift(a.request,
|
|
|
|
|
a.requestError);(a.response||a.responseError)&&f.push(a.response,a.responseError)});f.length;){a=f.shift();var k=f.shift(),h=h.then(a,k)}h.success=function(a){Oa(a,"fn");h.then(function(b){a(b.data,b.status,b.headers,e)});return h};h.error=function(a){Oa(a,"fn");h.then(null,function(b){a(b.data,b.status,b.headers,e)});return h};return h}function m(c,f){function l(b,c,d,e){function f(){m(c,b,d,e)}M&&(200<=b&&300>b?M.put(R,[b,c,Yc(d),e]):M.remove(R));a?h.$applyAsync(f):(f(),h.$$phase||h.$apply())}function m(a,
|
|
|
|
|
b,d,e){b=Math.max(b,0);(200<=b&&300>b?y.resolve:y.reject)({data:a,status:b,headers:Zc(d),config:c,statusText:e})}function t(a){m(a.data,a.status,fa(a.headers()),a.statusText)}function n(){var a=k.pendingRequests.indexOf(c);-1!==a&&k.pendingRequests.splice(a,1)}var y=g.defer(),L=y.promise,M,B,U=c.headers,R=q(c.url,c.paramSerializer(c.params));k.pendingRequests.push(c);L.then(n,n);!c.cache&&!b.cache||!1===c.cache||"GET"!==c.method&&"JSONP"!==c.method||(M=C(c.cache)?c.cache:C(b.cache)?b.cache:r);M&&
|
|
|
|
|
(B=M.get(R),w(B)?B&&H(B.then)?B.then(t,t):I(B)?m(B[1],B[0],fa(B[2]),B[3]):m(B,200,{},"OK"):M.put(R,L));F(B)&&((B=ad(c.url)?e()[c.xsrfCookieName||b.xsrfCookieName]:u)&&(U[c.xsrfHeaderName||b.xsrfHeaderName]=B),d(c.method,R,f,l,U,c.timeout,c.withCredentials,c.responseType));return L}function q(a,b){0<b.length&&(a+=(-1==a.indexOf("?")?"?":"&")+b);return a}var r=f("$http");b.paramSerializer=D(b.paramSerializer)?l.get(b.paramSerializer):b.paramSerializer;var t=[];n(c,function(a){t.unshift(D(a)?l.get(a):
|
|
|
|
|
l.invoke(a))});k.pendingRequests=[];(function(a){n(arguments,function(a){k[a]=function(b,c){return k(T(c||{},{method:a,url:b}))}})})("get","delete","head","jsonp");(function(a){n(arguments,function(a){k[a]=function(b,c,d){return k(T(d||{},{method:a,url:b,data:c}))}})})("post","put","patch");k.defaults=b;return k}]}function Jf(){return new O.XMLHttpRequest}function Xe(){this.$get=["$browser","$window","$document",function(b,a,c){return Kf(b,Jf,b.defer,a.angular.callbacks,c[0])}]}function Kf(b,a,c,
|
|
|
|
|
d,e){function f(a,b,c){var f=e.createElement("script"),m=null;f.type="text/javascript";f.src=a;f.async=!0;m=function(a){f.removeEventListener("load",m,!1);f.removeEventListener("error",m,!1);e.body.removeChild(f);f=null;var h=-1,t="unknown";a&&("load"!==a.type||d[b].called||(a={type:"error"}),t=a.type,h="error"===a.type?404:200);c&&c(h,t)};f.addEventListener("load",m,!1);f.addEventListener("error",m,!1);e.body.appendChild(f);return m}return function(e,g,l,k,m,q,r,t){function G(){p&&p();x&&x.abort()}
|
|
|
|
|
function Q(a,d,e,f,g){y!==u&&c.cancel(y);p=x=null;a(d,e,f,g);b.$$completeOutstandingRequest(z)}b.$$incOutstandingRequestCount();g=g||b.url();if("jsonp"==N(e)){var v="_"+(d.counter++).toString(36);d[v]=function(a){d[v].data=a;d[v].called=!0};var p=f(g.replace("JSON_CALLBACK","angular.callbacks."+v),v,function(a,b){Q(k,a,d[v].data,"",b);d[v]=z})}else{var x=a();x.open(e,g,!0);n(m,function(a,b){w(a)&&x.setRequestHeader(b,a)});x.onload=function(){var a=x.statusText||"",b="response"in x?x.response:x.responseText,
|
|
|
|
|
c=1223===x.status?204:x.status;0===c&&(c=b?200:"file"==Aa(g).protocol?404:0);Q(k,c,b,x.getAllResponseHeaders(),a)};e=function(){Q(k,-1,null,null,"")};x.onerror=e;x.onabort=e;r&&(x.withCredentials=!0);if(t)try{x.responseType=t}catch(s){if("json"!==t)throw s;}x.send(l||null)}if(0<q)var y=c(G,q);else q&&H(q.then)&&q.then(G)}}function Se(){var b="{{",a="}}";this.startSymbol=function(a){return a?(b=a,this):b};this.endSymbol=function(b){return b?(a=b,this):a};this.$get=["$parse","$exceptionHandler","$sce",
|
|
|
|
|
function(c,d,e){function f(a){return"\\\\\\"+a}function h(c){return c.replace(m,b).replace(q,a)}function g(f,g,m,q){function v(a){try{var b=a;a=m?e.getTrusted(m,b):e.valueOf(b);var c;if(q&&!w(a))c=a;else if(null==a)c="";else{switch(typeof a){case "string":break;case "number":a=""+a;break;default:a=Za(a)}c=a}return c}catch(g){d(Ja.interr(f,g))}}q=!!q;for(var p,n,s=0,y=[],L=[],M=f.length,B=[],U=[];s<M;)if(-1!=(p=f.indexOf(b,s))&&-1!=(n=f.indexOf(a,p+l)))s!==p&&B.push(h(f.substring(s,p))),s=f.substring(p+
|
|
|
|
|
l,n),y.push(s),L.push(c(s,v)),s=n+k,U.push(B.length),B.push("");else{s!==M&&B.push(h(f.substring(s)));break}m&&1<B.length&&Ja.throwNoconcat(f);if(!g||y.length){var R=function(a){for(var b=0,c=y.length;b<c;b++){if(q&&F(a[b]))return;B[U[b]]=a[b]}return B.join("")};return T(function(a){var b=0,c=y.length,e=Array(c);try{for(;b<c;b++)e[b]=L[b](a);return R(e)}catch(g){d(Ja.interr(f,g))}},{exp:f,expressions:y,$$watchDelegate:function(a,b){var c;return a.$watchGroup(L,function(d,e){var f=R(d);H(b)&&b.call(this,
|
|
|
|
|
f,d!==e?c:f,a);c=f})}})}}var l=b.length,k=a.length,m=new RegExp(b.replace(/./g,f),"g"),q=new RegExp(a.replace(/./g,f),"g");g.startSymbol=function(){return b};g.endSymbol=function(){return a};return g}]}function Te(){this.$get=["$rootScope","$window","$q","$$q",function(b,a,c,d){function e(e,g,l,k){var m=4<arguments.length,q=m?qa.call(arguments,4):[],r=a.setInterval,t=a.clearInterval,G=0,Q=w(k)&&!k,v=(Q?d:c).defer(),p=v.promise;l=w(l)?l:0;p.then(null,null,m?function(){e.apply(null,q)}:e);p.$$intervalId=
|
|
|
|
|
r(function(){v.notify(G++);0<l&&G>=l&&(v.resolve(G),t(p.$$intervalId),delete f[p.$$intervalId]);Q||b.$apply()},g);f[p.$$intervalId]=v;return p}var f={};e.cancel=function(b){return b&&b.$$intervalId in f?(f[b.$$intervalId].reject("canceled"),a.clearInterval(b.$$intervalId),delete f[b.$$intervalId],!0):!1};return e}]}function ae(){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",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(b){return 1===b?"one":"other"}}}}function Yb(b){b=b.split("/");for(var a=b.length;a--;)b[a]=kb(b[a]);return b.join("/")}function bd(b,a){var c=Aa(b);a.$$protocol=c.protocol;a.$$host=c.hostname;a.$$port=ca(c.port)||Lf[c.protocol]||null}function cd(b,a){var c="/"!==b.charAt(0);c&&(b="/"+b);var d=
|
|
|
|
|
Aa(b);a.$$path=decodeURIComponent(c&&"/"===d.pathname.charAt(0)?d.pathname.substring(1):d.pathname);a.$$search=rc(d.search);a.$$hash=decodeURIComponent(d.hash);a.$$path&&"/"!=a.$$path.charAt(0)&&(a.$$path="/"+a.$$path)}function ya(b,a){if(0===a.indexOf(b))return a.substr(b.length)}function Ha(b){var a=b.indexOf("#");return-1==a?b:b.substr(0,a)}function yb(b){return b.replace(/(#.+)|#$/,"$1")}function Zb(b){return b.substr(0,Ha(b).lastIndexOf("/")+1)}function $b(b,a){this.$$html5=!0;a=a||"";var c=
|
|
|
|
|
Zb(b);bd(b,this);this.$$parse=function(a){var b=ya(c,a);if(!D(b))throw zb("ipthprfx",a,c);cd(b,this);this.$$path||(this.$$path="/");this.$$compose()};this.$$compose=function(){var a=Nb(this.$$search),b=this.$$hash?"#"+kb(this.$$hash):"";this.$$url=Yb(this.$$path)+(a?"?"+a:"")+b;this.$$absUrl=c+this.$$url.substr(1)};this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,h;(f=ya(b,d))!==u?(h=f,h=(f=ya(a,f))!==u?c+(ya("/",f)||f):b+h):(f=ya(c,d))!==u?h=c+f:c==d+"/"&&
|
|
|
|
|
(h=c);h&&this.$$parse(h);return!!h}}function ac(b,a){var c=Zb(b);bd(b,this);this.$$parse=function(d){d=ya(b,d)||ya(c,d);var e;"#"===d.charAt(0)?(e=ya(a,d),F(e)&&(e=d)):e=this.$$html5?d:"";cd(e,this);d=this.$$path;var f=/^\/[A-Z]:(\/.*)/;0===e.indexOf(b)&&(e=e.replace(b,""));f.exec(e)||(d=(e=f.exec(d))?e[1]:d);this.$$path=d;this.$$compose()};this.$$compose=function(){var c=Nb(this.$$search),e=this.$$hash?"#"+kb(this.$$hash):"";this.$$url=Yb(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+(this.$$url?a+
|
|
|
|
|
this.$$url:"")};this.$$parseLinkUrl=function(a,c){return Ha(b)==Ha(a)?(this.$$parse(a),!0):!1}}function dd(b,a){this.$$html5=!0;ac.apply(this,arguments);var c=Zb(b);this.$$parseLinkUrl=function(d,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;var f,h;b==Ha(d)?f=d:(h=ya(c,d))?f=b+a+h:c===d+"/"&&(f=c);f&&this.$$parse(f);return!!f};this.$$compose=function(){var c=Nb(this.$$search),e=this.$$hash?"#"+kb(this.$$hash):"";this.$$url=Yb(this.$$path)+(c?"?"+c:"")+e;this.$$absUrl=b+a+this.$$url}}function Ab(b){return function(){return this[b]}}
|
|
|
|
|
function ed(b,a){return function(c){if(F(c))return this[b];this[b]=a(c);this.$$compose();return this}}function Ye(){var b="",a={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(a){return w(a)?(b=a,this):b};this.html5Mode=function(b){return Wa(b)?(a.enabled=b,this):C(b)?(Wa(b.enabled)&&(a.enabled=b.enabled),Wa(b.requireBase)&&(a.requireBase=b.requireBase),Wa(b.rewriteLinks)&&(a.rewriteLinks=b.rewriteLinks),this):a};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",
|
|
|
|
|
function(c,d,e,f,h){function g(a,b,c){var e=k.url(),f=k.$$state;try{d.url(a,b,c),k.$$state=d.state()}catch(g){throw k.url(e),k.$$state=f,g;}}function l(a,b){c.$broadcast("$locationChangeSuccess",k.absUrl(),a,k.$$state,b)}var k,m;m=d.baseHref();var q=d.url(),r;if(a.enabled){if(!m&&a.requireBase)throw zb("nobase");r=q.substring(0,q.indexOf("/",q.indexOf("//")+2))+(m||"/");m=e.history?$b:dd}else r=Ha(q),m=ac;k=new m(r,"#"+b);k.$$parseLinkUrl(q,q);k.$$state=d.state();var t=/^\s*(javascript|mailto):/i;
|
|
|
|
|
f.on("click",function(b){if(a.rewriteLinks&&!b.ctrlKey&&!b.metaKey&&!b.shiftKey&&2!=b.which&&2!=b.button){for(var e=E(b.target);"a"!==sa(e[0]);)if(e[0]===f[0]||!(e=e.parent())[0])return;var g=e.prop("href"),l=e.attr("href")||e.attr("xlink:href");C(g)&&"[object SVGAnimatedString]"===g.toString()&&(g=Aa(g.animVal).href);t.test(g)||!g||e.attr("target")||b.isDefaultPrevented()||!k.$$parseLinkUrl(g,l)||(b.preventDefault(),k.absUrl()!=d.url()&&(c.$apply(),h.angular["ff-684208-preventDefault"]=!0))}});yb(k.absUrl())!=
|
|
|
|
|
yb(q)&&d.url(k.absUrl(),!0);var G=!0;d.onUrlChange(function(a,b){c.$evalAsync(function(){var d=k.absUrl(),e=k.$$state,f;k.$$parse(a);k.$$state=b;f=c.$broadcast("$locationChangeStart",a,d,b,e).defaultPrevented;k.absUrl()===a&&(f?(k.$$parse(d),k.$$state=e,g(d,!1,e)):(G=!1,l(d,e)))});c.$$phase||c.$digest()});c.$watch(function(){var a=yb(d.url()),b=yb(k.absUrl()),f=d.state(),h=k.$$replace,r=a!==b||k.$$html5&&e.history&&f!==k.$$state;if(G||r)G=!1,c.$evalAsync(function(){var b=k.absUrl(),d=c.$broadcast("$locationChangeStart",
|
|
|
|
|
b,a,k.$$state,f).defaultPrevented;k.absUrl()===b&&(d?(k.$$parse(a),k.$$state=f):(r&&g(b,h,f===k.$$state?null:k.$$state),l(a,f)))});k.$$replace=!1});return k}]}function Ze(){var b=!0,a=this;this.debugEnabled=function(a){return w(a)?(b=a,this):b};this.$get=["$window",function(c){function d(a){a instanceof Error&&(a.stack?a=a.message&&-1===a.stack.indexOf(a.message)?"Error: "+a.message+"\n"+a.stack:a.stack:a.sourceURL&&(a=a.message+"\n"+a.sourceURL+":"+a.line));return a}function e(a){var b=c.console||
|
|
|
|
|
{},e=b[a]||b.log||z;a=!1;try{a=!!e.apply}catch(l){}return a?function(){var a=[];n(arguments,function(b){a.push(d(b))});return e.apply(b,a)}:function(a,b){e(a,null==b?"":b)}}return{log:e("log"),info:e("info"),warn:e("warn"),error:e("error"),debug:function(){var c=e("debug");return function(){b&&c.apply(a,arguments)}}()}}]}function Ba(b,a){if("__defineGetter__"===b||"__defineSetter__"===b||"__lookupGetter__"===b||"__lookupSetter__"===b||"__proto__"===b)throw da("isecfld",a);return b}function ja(b,a){if(b){if(b.constructor===
|
|
|
|
|
b)throw da("isecfn",a);if(b.window===b)throw da("isecwindow",a);if(b.children&&(b.nodeName||b.prop&&b.attr&&b.find))throw da("isecdom",a);if(b===Object)throw da("isecobj",a);}return b}function fd(b,a){if(b){if(b.constructor===b)throw da("isecfn",a);if(b===Mf||b===Nf||b===Of)throw da("isecff",a);}}function Pf(b,a){return"undefined"!==typeof b?b:a}function gd(b,a){return"undefined"===typeof b?a:"undefined"===typeof a?b:b+a}function $(b,a){var c,d;switch(b.type){case s.Program:c=!0;n(b.body,function(b){$(b.expression,
|
|
|
|
|
a);c=c&&b.expression.constant});b.constant=c;break;case s.Literal:b.constant=!0;b.toWatch=[];break;case s.UnaryExpression:$(b.argument,a);b.constant=b.argument.constant;b.toWatch=b.argument.toWatch;break;case s.BinaryExpression:$(b.left,a);$(b.right,a);b.constant=b.left.constant&&b.right.constant;b.toWatch=b.left.toWatch.concat(b.right.toWatch);break;case s.LogicalExpression:$(b.left,a);$(b.right,a);b.constant=b.left.constant&&b.right.constant;b.toWatch=b.constant?[]:[b];break;case s.ConditionalExpression:$(b.test,
|
|
|
|
|
a);$(b.alternate,a);$(b.consequent,a);b.constant=b.test.constant&&b.alternate.constant&&b.consequent.constant;b.toWatch=b.constant?[]:[b];break;case s.Identifier:b.constant=!1;b.toWatch=[b];break;case s.MemberExpression:$(b.object,a);b.computed&&$(b.property,a);b.constant=b.object.constant&&(!b.computed||b.property.constant);b.toWatch=[b];break;case s.CallExpression:c=b.filter?!a(b.callee.name).$stateful:!1;d=[];n(b.arguments,function(b){$(b,a);c=c&&b.constant;b.constant||d.push.apply(d,b.toWatch)});
|
|
|
|
|
b.constant=c;b.toWatch=b.filter&&!a(b.callee.name).$stateful?d:[b];break;case s.AssignmentExpression:$(b.left,a);$(b.right,a);b.constant=b.left.constant&&b.right.constant;b.toWatch=[b];break;case s.ArrayExpression:c=!0;d=[];n(b.elements,function(b){$(b,a);c=c&&b.constant;b.constant||d.push.apply(d,b.toWatch)});b.constant=c;b.toWatch=d;break;case s.ObjectExpression:c=!0;d=[];n(b.properties,function(b){$(b.value,a);c=c&&b.value.constant;b.value.constant||d.push.apply(d,b.value.toWatch)});b.constant=
|
|
|
|
|
c;b.toWatch=d;break;case s.ThisExpression:b.constant=!1,b.toWatch=[]}}function hd(b){if(1==b.length){b=b[0].expression;var a=b.toWatch;return 1!==a.length?a:a[0]!==b?a:u}}function id(b){return b.type===s.Identifier||b.type===s.MemberExpression}function jd(b){if(1===b.body.length&&id(b.body[0].expression))return{type:s.AssignmentExpression,left:b.body[0].expression,right:{type:s.NGValueParameter},operator:"="}}function kd(b){return 0===b.body.length||1===b.body.length&&(b.body[0].expression.type===
|
|
|
|
|
s.Literal||b.body[0].expression.type===s.ArrayExpression||b.body[0].expression.type===s.ObjectExpression)}function ld(b,a){this.astBuilder=b;this.$filter=a}function md(b,a){this.astBuilder=b;this.$filter=a}function Bb(b,a,c,d){ja(b,d);a=a.split(".");for(var e,f=0;1<a.length;f++){e=Ba(a.shift(),d);var h=ja(b[e],d);h||(h={},b[e]=h);b=h}e=Ba(a.shift(),d);ja(b[e],d);return b[e]=c}function Cb(b){return"constructor"==b}function bc(b){return H(b.valueOf)?b.valueOf():Qf.call(b)}function $e(){var b=ma(),a=
|
|
|
|
|
ma();this.$get=["$filter","$sniffer",function(c,d){function e(a,b){return null==a||null==b?a===b:"object"===typeof a&&(a=bc(a),"object"===typeof a)?!1:a===b||a!==a&&b!==b}function f(a,b,c,d,f){var g=d.inputs,h;if(1===g.length){var l=e,g=g[0];return a.$watch(function(a){var b=g(a);e(b,l)||(h=d(a,u,u,[b]),l=b&&bc(b));return h},b,c,f)}for(var k=[],m=[],q=0,B=g.length;q<B;q++)k[q]=e,m[q]=null;return a.$watch(function(a){for(var b=!1,c=0,f=g.length;c<f;c++){var l=g[c](a);if(b||(b=!e(l,k[c])))m[c]=l,k[c]=
|
|
|
|
|
l&&bc(l)}b&&(h=d(a,u,u,m));return h},b,c,f)}function h(a,b,c,d){var e,f;return e=a.$watch(function(a){return d(a)},function(a,c,d){f=a;H(b)&&b.apply(this,arguments);w(a)&&d.$$postDigest(function(){w(f)&&e()})},c)}function g(a,b,c,d){function e(a){var b=!0;n(a,function(a){w(a)||(b=!1)});return b}var f,g;return f=a.$watch(function(a){return d(a)},function(a,c,d){g=a;H(b)&&b.call(this,a,c,d);e(a)&&d.$$postDigest(function(){e(g)&&f()})},c)}function l(a,b,c,d){var e;return e=a.$watch(function(a){return d(a)},
|
|
|
|
|
function(a,c,d){H(b)&&b.apply(this,arguments);e()},c)}function k(a,b){if(!b)return a;var c=a.$$watchDelegate,c=c!==g&&c!==h?function(c,d,e,f){e=a(c,d,e,f);return b(e,c,d)}:function(c,d,e,f){e=a(c,d,e,f);c=b(e,c,d);return w(e)?c:e};a.$$watchDelegate&&a.$$watchDelegate!==f?c.$$watchDelegate=a.$$watchDelegate:b.$stateful||(c.$$watchDelegate=f,c.inputs=a.inputs?a.inputs:[a]);return c}var m={csp:d.csp,expensiveChecks:!1},q={csp:d.csp,expensiveChecks:!0};return function(d,e,G){var n,v,p;switch(typeof d){case "string":p=
|
|
|
|
|
d=d.trim();var s=G?a:b;n=s[p];n||(":"===d.charAt(0)&&":"===d.charAt(1)&&(v=!0,d=d.substring(2)),G=G?q:m,n=new cc(G),n=(new dc(n,c,G)).parse(d),n.constant?n.$$watchDelegate=l:v?n.$$watchDelegate=n.literal?g:h:n.inputs&&(n.$$watchDelegate=f),s[p]=n);return k(n,e);case "function":return k(d,e);default:return z}}}]}function bf(){this.$get=["$rootScope","$exceptionHandler",function(b,a){return nd(function(a){b.$evalAsync(a)},a)}]}function cf(){this.$get=["$browser","$exceptionHandler",function(b,a){return nd(function(a){b.defer(a)},
|
|
|
|
|
a)}]}function nd(b,a){function c(a,b,c){function d(b){return function(c){e||(e=!0,b.call(a,c))}}var e=!1;return[d(b),d(c)]}function d(){this.$$state={status:0}}function e(a,b){return function(c){b.call(a,c)}}function f(c){!c.processScheduled&&c.pending&&(c.processScheduled=!0,b(function(){var b,d,e;e=c.pending;c.processScheduled=!1;c.pending=u;for(var f=0,g=e.length;f<g;++f){d=e[f][0];b=e[f][c.status];try{H(b)?d.resolve(b(c.value)):1===c.status?d.resolve(c.value):d.reject(c.value)}catch(h){d.reject(h),
|
|
|
|
|
a(h)}}}))}function h(){this.promise=new d;this.resolve=e(this,this.resolve);this.reject=e(this,this.reject);this.notify=e(this,this.notify)}var g=J("$q",TypeError);d.prototype={then:function(a,b,c){var d=new h;this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([d,a,b,c]);0<this.$$state.status&&f(this.$$state);return d.promise},"catch":function(a){return this.then(null,a)},"finally":function(a,b){return this.then(function(b){return k(b,!0,a)},function(b){return k(b,!1,a)},b)}};
|
|
|
|
|
h.prototype={resolve:function(a){this.promise.$$state.status||(a===this.promise?this.$$reject(g("qcycle",a)):this.$$resolve(a))},$$resolve:function(b){var d,e;e=c(this,this.$$resolve,this.$$reject);try{if(C(b)||H(b))d=b&&b.then;H(d)?(this.promise.$$state.status=-1,d.call(b,e[0],e[1],this.notify)):(this.promise.$$state.value=b,this.promise.$$state.status=1,f(this.promise.$$state))}catch(g){e[1](g),a(g)}},reject:function(a){this.promise.$$state.status||this.$$reject(a)},$$reject:function(a){this.promise.$$state.value=
|
|
|
|
|
a;this.promise.$$state.status=2;f(this.promise.$$state)},notify:function(c){var d=this.promise.$$state.pending;0>=this.promise.$$state.status&&d&&d.length&&b(function(){for(var b,e,f=0,g=d.length;f<g;f++){e=d[f][0];b=d[f][3];try{e.notify(H(b)?b(c):c)}catch(h){a(h)}}})}};var l=function(a,b){var c=new h;b?c.resolve(a):c.reject(a);return c.promise},k=function(a,b,c){var d=null;try{H(c)&&(d=c())}catch(e){return l(e,!1)}return d&&H(d.then)?d.then(function(){return l(a,b)},function(a){return l(a,!1)}):
|
|
|
|
|
l(a,b)},m=function(a,b,c,d){var e=new h;e.resolve(a);return e.promise.then(b,c,d)},q=function t(a){if(!H(a))throw g("norslvr",a);if(!(this instanceof t))return new t(a);var b=new h;a(function(a){b.resolve(a)},function(a){b.reject(a)});return b.promise};q.defer=function(){return new h};q.reject=function(a){var b=new h;b.reject(a);return b.promise};q.when=m;q.all=function(a){var b=new h,c=0,d=I(a)?[]:{};n(a,function(a,e){c++;m(a).then(function(a){d.hasOwnProperty(e)||(d[e]=a,--c||b.resolve(d))},function(a){d.hasOwnProperty(e)||
|
|
|
|
|
b.reject(a)})});0===c&&b.resolve(d);return b.promise};return q}function mf(){this.$get=["$window","$timeout",function(b,a){var c=b.requestAnimationFrame||b.webkitRequestAnimationFrame,d=b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.webkitCancelRequestAnimationFrame,e=!!c,f=e?function(a){var b=c(a);return function(){d(b)}}:function(b){var c=a(b,16.66,!1);return function(){a.cancel(c)}};f.supported=e;return f}]}function af(){function b(a){function b(){this.$$watchers=this.$$nextSibling=this.$$childHead=
|
|
|
|
|
this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$id=++jb;this.$$ChildScope=null}b.prototype=a;return b}var a=10,c=J("$rootScope"),d=null,e=null;this.digestTtl=function(b){arguments.length&&(a=b);return a};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(f,h,g,l){function k(a){a.currentScope.$$destroyed=!0}function m(){this.$id=++jb;this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=
|
|
|
|
|
null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$watchersCount=0;this.$$isolateBindings=null}function q(a){if(p.$$phase)throw c("inprog",p.$$phase);p.$$phase=a}function r(a,b){do a.$$watchersCount+=b;while(a=a.$parent)}function t(a,b,c){do a.$$listenerCount[c]-=b,0===a.$$listenerCount[c]&&delete a.$$listenerCount[c];while(a=a.$parent)}function G(){}function s(){for(;y.length;)try{y.shift()()}catch(a){h(a)}e=null}function v(){null===e&&(e=l.defer(function(){p.$apply(s)}))}
|
|
|
|
|
m.prototype={constructor:m,$new:function(a,c){var d;c=c||this;a?(d=new m,d.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=b(this)),d=new this.$$ChildScope);d.$parent=c;d.$$prevSibling=c.$$childTail;c.$$childHead?(c.$$childTail.$$nextSibling=d,c.$$childTail=d):c.$$childHead=c.$$childTail=d;(a||c!=this)&&d.$on("$destroy",k);return d},$watch:function(a,b,c,e){var f=g(a);if(f.$$watchDelegate)return f.$$watchDelegate(this,b,c,f,a);var h=this,l=h.$$watchers,k={fn:b,last:G,get:f,exp:e||a,eq:!!c};
|
|
|
|
|
d=null;H(b)||(k.fn=z);l||(l=h.$$watchers=[]);l.unshift(k);r(this,1);return function(){0<=Xa(l,k)&&r(h,-1);d=null}},$watchGroup:function(a,b){function c(){h=!1;l?(l=!1,b(e,e,g)):b(e,d,g)}var d=Array(a.length),e=Array(a.length),f=[],g=this,h=!1,l=!0;if(!a.length){var k=!0;g.$evalAsync(function(){k&&b(e,e,g)});return function(){k=!1}}if(1===a.length)return this.$watch(a[0],function(a,c,f){e[0]=a;d[0]=c;b(e,a===c?e:d,f)});n(a,function(a,b){var l=g.$watch(a,function(a,f){e[b]=a;d[b]=f;h||(h=!0,g.$evalAsync(c))});
|
|
|
|
|
f.push(l)});return function(){for(;f.length;)f.shift()()}},$watchCollection:function(a,b){function c(a){e=a;var b,d,g,h;if(!F(e)){if(C(e))if(Ra(e))for(f!==q&&(f=q,t=f.length=0,k++),a=e.length,t!==a&&(k++,f.length=t=a),b=0;b<a;b++)h=f[b],g=e[b],d=h!==h&&g!==g,d||h===g||(k++,f[b]=g);else{f!==r&&(f=r={},t=0,k++);a=0;for(b in e)e.hasOwnProperty(b)&&(a++,g=e[b],h=f[b],b in f?(d=h!==h&&g!==g,d||h===g||(k++,f[b]=g)):(t++,f[b]=g,k++));if(t>a)for(b in k++,f)e.hasOwnProperty(b)||(t--,delete f[b])}else f!==
|
|
|
|
|
e&&(f=e,k++);return k}}c.$stateful=!0;var d=this,e,f,h,l=1<b.length,k=0,m=g(a,c),q=[],r={},p=!0,t=0;return this.$watch(m,function(){p?(p=!1,b(e,e,d)):b(e,h,d);if(l)if(C(e))if(Ra(e)){h=Array(e.length);for(var a=0;a<e.length;a++)h[a]=e[a]}else for(a in h={},e)sc.call(e,a)&&(h[a]=e[a]);else h=e})},$digest:function(){var b,f,g,k,m,r,t=a,n,y=[],v,w;q("$digest");l.$$checkUrlChange();this===p&&null!==e&&(l.defer.cancel(e),s());d=null;do{r=!1;for(n=this;u.length;){try{w=u.shift(),w.scope.$eval(w.expression,
|
|
|
|
|
w.locals)}catch(z){h(z)}d=null}a:do{if(k=n.$$watchers)for(m=k.length;m--;)try{if(b=k[m])if((f=b.get(n))!==(g=b.last)&&!(b.eq?ka(f,g):"number"===typeof f&&"number"===typeof g&&isNaN(f)&&isNaN(g)))r=!0,d=b,b.last=b.eq?ta(f,null):f,b.fn(f,g===G?f:g,n),5>t&&(v=4-t,y[v]||(y[v]=[]),y[v].push({msg:H(b.exp)?"fn: "+(b.exp.name||b.exp.toString()):b.exp,newVal:f,oldVal:g}));else if(b===d){r=!1;break a}}catch(E){h(E)}if(!(k=n.$$watchersCount&&n.$$childHead||n!==this&&n.$$nextSibling))for(;n!==this&&!(k=n.$$nextSibling);)n=
|
|
|
|
|
n.$parent}while(n=k);if((r||u.length)&&!t--)throw p.$$phase=null,c("infdig",a,y);}while(r||u.length);for(p.$$phase=null;A.length;)try{A.shift()()}catch(F){h(F)}},$destroy:function(){if(!this.$$destroyed){var a=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;this===p&&l.$$applicationDestroyed();r(this,-this.$$watchersCount);for(var b in this.$$listenerCount)t(this,this.$$listenerCount[b],b);a&&a.$$childHead==this&&(a.$$childHead=this.$$nextSibling);a&&a.$$childTail==this&&(a.$$childTail=
|
|
|
|
|
this.$$prevSibling);this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling);this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling);this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=z;this.$on=this.$watch=this.$watchGroup=function(){return z};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null}},$eval:function(a,b){return g(a)(this,b)},$evalAsync:function(a,
|
|
|
|
|
b){p.$$phase||u.length||l.defer(function(){u.length&&p.$digest()});u.push({scope:this,expression:a,locals:b})},$$postDigest:function(a){A.push(a)},$apply:function(a){try{return q("$apply"),this.$eval(a)}catch(b){h(b)}finally{p.$$phase=null;try{p.$digest()}catch(c){throw h(c),c;}}},$applyAsync:function(a){function b(){c.$eval(a)}var c=this;a&&y.push(b);v()},$on:function(a,b){var c=this.$$listeners[a];c||(this.$$listeners[a]=c=[]);c.push(b);var d=this;do d.$$listenerCount[a]||(d.$$listenerCount[a]=
|
|
|
|
|
0),d.$$listenerCount[a]++;while(d=d.$parent);var e=this;return function(){var d=c.indexOf(b);-1!==d&&(c[d]=null,t(e,1,a))}},$emit:function(a,b){var c=[],d,e=this,f=!1,g={name:a,targetScope:e,stopPropagation:function(){f=!0},preventDefault:function(){g.defaultPrevented=!0},defaultPrevented:!1},l=Ya([g],arguments,1),k,m;do{d=e.$$listeners[a]||c;g.currentScope=e;k=0;for(m=d.length;k<m;k++)if(d[k])try{d[k].apply(null,l)}catch(q){h(q)}else d.splice(k,1),k--,m--;if(f)return g.currentScope=null,g;e=e.$parent}while(e);
|
|
|
|
|
g.currentScope=null;return g},$broadcast:function(a,b){var c=this,d=this,e={name:a,targetScope:this,preventDefault:function(){e.defaultPrevented=!0},defaultPrevented:!1};if(!this.$$listenerCount[a])return e;for(var f=Ya([e],arguments,1),g,l;c=d;){e.currentScope=c;d=c.$$listeners[a]||[];g=0;for(l=d.length;g<l;g++)if(d[g])try{d[g].apply(null,f)}catch(k){h(k)}else d.splice(g,1),g--,l--;if(!(d=c.$$listenerCount[a]&&c.$$childHead||c!==this&&c.$$nextSibling))for(;c!==this&&!(d=c.$$nextSibling);)c=c.$parent}e.currentScope=
|
|
|
|
|
null;return e}};var p=new m,u=p.$$asyncQueue=[],A=p.$$postDigestQueue=[],y=p.$$applyAsyncQueue=[];return p}]}function be(){var b=/^\s*(https?|ftp|mailto|tel|file):/,a=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(a){return w(a)?(b=a,this):b};this.imgSrcSanitizationWhitelist=function(b){return w(b)?(a=b,this):a};this.$get=function(){return function(c,d){var e=d?a:b,f;f=Aa(c).href;return""===f||f.match(e)?c:"unsafe:"+f}}}function Rf(b){if("self"===b)return b;
|
|
|
|
|
if(D(b)){if(-1<b.indexOf("***"))throw Ca("iwcard",b);b=od(b).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+b+"$")}if(Ua(b))return new RegExp("^"+b.source+"$");throw Ca("imatcher");}function pd(b){var a=[];w(b)&&n(b,function(b){a.push(Rf(b))});return a}function ef(){this.SCE_CONTEXTS=na;var b=["self"],a=[];this.resourceUrlWhitelist=function(a){arguments.length&&(b=pd(a));return b};this.resourceUrlBlacklist=function(b){arguments.length&&(a=pd(b));return a};this.$get=["$injector",
|
|
|
|
|
function(c){function d(a,b){return"self"===a?ad(b):!!a.exec(b.href)}function e(a){var b=function(a){this.$$unwrapTrustedValue=function(){return a}};a&&(b.prototype=new a);b.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};b.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return b}var f=function(a){throw Ca("unsafe");};c.has("$sanitize")&&(f=c.get("$sanitize"));var h=e(),g={};g[na.HTML]=e(h);g[na.CSS]=e(h);g[na.URL]=e(h);g[na.JS]=e(h);g[na.RESOURCE_URL]=
|
|
|
|
|
e(g[na.URL]);return{trustAs:function(a,b){var c=g.hasOwnProperty(a)?g[a]:null;if(!c)throw Ca("icontext",a,b);if(null===b||b===u||""===b)return b;if("string"!==typeof b)throw Ca("itype",a);return new c(b)},getTrusted:function(c,e){if(null===e||e===u||""===e)return e;var h=g.hasOwnProperty(c)?g[c]:null;if(h&&e instanceof h)return e.$$unwrapTrustedValue();if(c===na.RESOURCE_URL){var h=Aa(e.toString()),q,r,t=!1;q=0;for(r=b.length;q<r;q++)if(d(b[q],h)){t=!0;break}if(t)for(q=0,r=a.length;q<r;q++)if(d(a[q],
|
|
|
|
|
h)){t=!1;break}if(t)return e;throw Ca("insecurl",e.toString());}if(c===na.HTML)return f(e);throw Ca("unsafe");},valueOf:function(a){return a instanceof h?a.$$unwrapTrustedValue():a}}}]}function df(){var b=!0;this.enabled=function(a){arguments.length&&(b=!!a);return b};this.$get=["$parse","$sceDelegate",function(a,c){if(b&&8>fb)throw Ca("iequirks");var d=fa(na);d.isEnabled=function(){return b};d.trustAs=c.trustAs;d.getTrusted=c.getTrusted;d.valueOf=c.valueOf;b||(d.trustAs=d.getTrusted=function(a,b){return b},
|
|
|
|
|
d.valueOf=Ta);d.parseAs=function(b,c){var e=a(c);return e.literal&&e.constant?e:a(c,function(a){return d.getTrusted(b,a)})};var e=d.parseAs,f=d.getTrusted,h=d.trustAs;n(na,function(a,b){var c=N(b);d[db("parse_as_"+c)]=function(b){return e(a,b)};d[db("get_trusted_"+c)]=function(b){return f(a,b)};d[db("trust_as_"+c)]=function(b){return h(a,b)}});return d}]}function ff(){this.$get=["$window","$document",function(b,a){var c={},d=ca((/android (\d+)/.exec(N((b.navigator||{}).userAgent))||[])[1]),e=/Boxee/i.test((b.navigator||
|
|
|
|
|
{}).userAgent),f=a[0]||{},h,g=/^(Moz|webkit|ms)(?=[A-Z])/,l=f.body&&f.body.style,k=!1,m=!1;if(l){for(var q in l)if(k=g.exec(q)){h=k[0];h=h.substr(0,1).toUpperCase()+h.substr(1);break}h||(h="WebkitOpacity"in l&&"webkit");k=!!("transition"in l||h+"Transition"in l);m=!!("animation"in l||h+"Animation"in l);!d||k&&m||(k=D(l.webkitTransition),m=D(l.webkitAnimation))}return{history:!(!b.history||!b.history.pushState||4>d||e),hasEvent:function(a){if("input"===a&&11>=fb)return!1;if(F(c[a])){var b=f.createElement("div");
|
|
|
|
|
c[a]="on"+a in b}return c[a]},csp:bb(),vendorPrefix:h,transitions:k,animations:m,android:d}}]}function hf(){this.$get=["$templateCache","$http","$q",function(b,a,c){function d(e,f){d.totalPendingRequests++;var h=a.defaults&&a.defaults.transformResponse;I(h)?h=h.filter(function(a){return a!==Wb}):h===Wb&&(h=null);return a.get(e,{cache:b,transformResponse:h})["finally"](function(){d.totalPendingRequests--}).then(function(a){b.put(e,a.data);return a.data},function(a){if(!f)throw ha("tpload",e,a.status,
|
|
|
|
|
a.statusText);return c.reject(a)})}d.totalPendingRequests=0;return d}]}function jf(){this.$get=["$rootScope","$browser","$location",function(b,a,c){return{findBindings:function(a,b,c){a=a.getElementsByClassName("ng-binding");var h=[];n(a,function(a){var d=aa.element(a).data("$binding");d&&n(d,function(d){c?(new RegExp("(^|\\s)"+od(b)+"(\\s|\\||$)")).test(d)&&h.push(a):-1!=d.indexOf(b)&&h.push(a)})});return h},findModels:function(a,b,c){for(var h=["ng-","data-ng-","ng\\:"],g=0;g<h.length;++g){var l=
|
|
|
|
|
a.querySelectorAll("["+h[g]+"model"+(c?"=":"*=")+'"'+b+'"]');if(l.length)return l}},getLocation:function(){return c.url()},setLocation:function(a){a!==c.url()&&(c.url(a),b.$digest())},whenStable:function(b){a.notifyWhenNoOutstandingRequests(b)}}}]}function kf(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(b,a,c,d,e){function f(f,l,k){H(f)||(k=l,l=f,f=z);var m=qa.call(arguments,3),q=w(k)&&!k,r=(q?d:c).defer(),t=r.promise,n;n=a.defer(function(){try{r.resolve(f.apply(null,
|
|
|
|
|
m))}catch(a){r.reject(a),e(a)}finally{delete h[t.$$timeoutId]}q||b.$apply()},l);t.$$timeoutId=n;h[n]=r;return t}var h={};f.cancel=function(b){return b&&b.$$timeoutId in h?(h[b.$$timeoutId].reject("canceled"),delete h[b.$$timeoutId],a.defer.cancel(b.$$timeoutId)):!1};return f}]}function Aa(b){fb&&(Z.setAttribute("href",b),b=Z.href);Z.setAttribute("href",b);return{href:Z.href,protocol:Z.protocol?Z.protocol.replace(/:$/,""):"",host:Z.host,search:Z.search?Z.search.replace(/^\?/,""):"",hash:Z.hash?Z.hash.replace(/^#/,
|
|
|
|
|
""):"",hostname:Z.hostname,port:Z.port,pathname:"/"===Z.pathname.charAt(0)?Z.pathname:"/"+Z.pathname}}function ad(b){b=D(b)?Aa(b):b;return b.protocol===qd.protocol&&b.host===qd.host}function lf(){this.$get=pa(O)}function rd(b){function a(a){try{return decodeURIComponent(a)}catch(b){return a}}var c=b[0]||{},d={},e="";return function(){var b,h,g,l,k;b=c.cookie||"";if(b!==e)for(e=b,b=e.split("; "),d={},g=0;g<b.length;g++)h=b[g],l=h.indexOf("="),0<l&&(k=a(h.substring(0,l)),d[k]===u&&(d[k]=a(h.substring(l+
|
|
|
|
|
1))));return d}}function qf(){this.$get=rd}function Ec(b){function a(c,d){if(C(c)){var e={};n(c,function(b,c){e[c]=a(c,b)});return e}return b.factory(c+"Filter",d)}this.register=a;this.$get=["$injector",function(a){return function(b){return a.get(b+"Filter")}}];a("currency",sd);a("date",td);a("filter",Sf);a("json",Tf);a("limitTo",Uf);a("lowercase",Vf);a("number",ud);a("orderBy",vd);a("uppercase",Wf)}function Sf(){return function(b,a,c){if(!I(b)){if(null==b)return b;throw J("filter")("notarray",b);
|
|
|
|
|
}var d;switch(ec(a)){case "function":break;case "boolean":case "null":case "number":case "string":d=!0;case "object":a=Xf(a,c,d);break;default:return b}return b.filter(a)}}function Xf(b,a,c){var d=C(b)&&"$"in b;!0===a?a=ka:H(a)||(a=function(a,b){if(F(a))return!1;if(null===a||null===b)return a===b;var c;!(c=C(b))&&(c=C(a))&&(c=a,c=!(H(c.toString)&&c.toString!==Object.prototype.toString));if(c)return!1;a=N(""+a);b=N(""+b);return-1!==a.indexOf(b)});return function(e){return d&&!C(e)?Ka(e,b.$,a,!1):Ka(e,
|
|
|
|
|
b,a,c)}}function Ka(b,a,c,d,e){var f=ec(b),h=ec(a);if("string"===h&&"!"===a.charAt(0))return!Ka(b,a.substring(1),c,d);if(I(b))return b.some(function(b){return Ka(b,a,c,d)});switch(f){case "object":var g;if(d){for(g in b)if("$"!==g.charAt(0)&&Ka(b[g],a,c,!0))return!0;return e?!1:Ka(b,a,c,!1)}if("object"===h){for(g in a)if(e=a[g],!H(e)&&!F(e)&&(f="$"===g,!Ka(f?b:b[g],e,c,f,f)))return!1;return!0}return c(b,a);case "function":return!1;default:return c(b,a)}}function ec(b){return null===b?"null":typeof b}
|
|
|
|
|
function sd(b){var a=b.NUMBER_FORMATS;return function(b,d,e){F(d)&&(d=a.CURRENCY_SYM);F(e)&&(e=a.PATTERNS[1].maxFrac);return null==b?b:wd(b,a.PATTERNS[1],a.GROUP_SEP,a.DECIMAL_SEP,e).replace(/\u00A4/g,d)}}function ud(b){var a=b.NUMBER_FORMATS;return function(b,d){return null==b?b:wd(b,a.PATTERNS[0],a.GROUP_SEP,a.DECIMAL_SEP,d)}}function wd(b,a,c,d,e){if(C(b))return"";var f=0>b;b=Math.abs(b);var h=Infinity===b;if(!h&&!isFinite(b))return"";var g=b+"",l="",k=!1,m=[];h&&(l="\u221e");if(!h&&-1!==g.indexOf("e")){var q=
|
|
|
|
|
g.match(/([\d\.]+)e(-?)(\d+)/);q&&"-"==q[2]&&q[3]>e+1?b=0:(l=g,k=!0)}if(h||k)0<e&&1>b&&(l=b.toFixed(e),b=parseFloat(l));else{h=(g.split(xd)[1]||"").length;F(e)&&(e=Math.min(Math.max(a.minFrac,h),a.maxFrac));b=+(Math.round(+(b.toString()+"e"+e)).toString()+"e"+-e);var h=(""+b).split(xd),g=h[0],h=h[1]||"",q=0,r=a.lgSize,t=a.gSize;if(g.length>=r+t)for(q=g.length-r,k=0;k<q;k++)0===(q-k)%t&&0!==k&&(l+=c),l+=g.charAt(k);for(k=q;k<g.length;k++)0===(g.length-k)%r&&0!==k&&(l+=c),l+=g.charAt(k);for(;h.length<
|
|
|
|
|
e;)h+="0";e&&"0"!==e&&(l+=d+h.substr(0,e))}0===b&&(f=!1);m.push(f?a.negPre:a.posPre,l,f?a.negSuf:a.posSuf);return m.join("")}function Db(b,a,c){var d="";0>b&&(d="-",b=-b);for(b=""+b;b.length<a;)b="0"+b;c&&(b=b.substr(b.length-a));return d+b}function ba(b,a,c,d){c=c||0;return function(e){e=e["get"+b]();if(0<c||e>-c)e+=c;0===e&&-12==c&&(e=12);return Db(e,a,d)}}function Eb(b,a){return function(c,d){var e=c["get"+b](),f=nb(a?"SHORT"+b:b);return d[f][e]}}function yd(b){var a=(new Date(b,0,1)).getDay();
|
|
|
|
|
return new Date(b,0,(4>=a?5:12)-a)}function zd(b){return function(a){var c=yd(a.getFullYear());a=+new Date(a.getFullYear(),a.getMonth(),a.getDate()+(4-a.getDay()))-+c;a=1+Math.round(a/6048E5);return Db(a,b)}}function fc(b,a){return 0>=b.getFullYear()?a.ERAS[0]:a.ERAS[1]}function td(b){function a(a){var b;if(b=a.match(c)){a=new Date(0);var f=0,h=0,g=b[8]?a.setUTCFullYear:a.setFullYear,l=b[8]?a.setUTCHours:a.setHours;b[9]&&(f=ca(b[9]+b[10]),h=ca(b[9]+b[11]));g.call(a,ca(b[1]),ca(b[2])-1,ca(b[3]));f=
|
|
|
|
|
ca(b[4]||0)-f;h=ca(b[5]||0)-h;g=ca(b[6]||0);b=Math.round(1E3*parseFloat("0."+(b[7]||0)));l.call(a,f,h,g,b)}return a}var c=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(c,e,f){var h="",g=[],l,k;e=e||"mediumDate";e=b.DATETIME_FORMATS[e]||e;D(c)&&(c=Yf.test(c)?ca(c):a(c));X(c)&&(c=new Date(c));if(!ea(c)||!isFinite(c.getTime()))return c;for(;e;)(k=Zf.exec(e))?(g=Ya(g,k,1),e=g.pop()):(g.push(e),e=null);var m=c.getTimezoneOffset();
|
|
|
|
|
f&&(m=pc(f,c.getTimezoneOffset()),c=Mb(c,f,!0));n(g,function(a){l=$f[a];h+=l?l(c,b.DATETIME_FORMATS,m):a.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return h}}function Tf(){return function(b,a){F(a)&&(a=2);return Za(b,a)}}function Uf(){return function(b,a,c){a=Infinity===Math.abs(Number(a))?Number(a):ca(a);if(isNaN(a))return b;X(b)&&(b=b.toString());if(!I(b)&&!D(b))return b;c=!c||isNaN(c)?0:ca(c);c=0>c&&c>=-b.length?b.length+c:c;return 0<=a?b.slice(c,c+a):0===c?b.slice(a,b.length):b.slice(Math.max(0,
|
|
|
|
|
c+a),c)}}function vd(b){return function(a,c,d){function e(a,b){return b?function(b,c){return a(c,b)}:a}function f(a){switch(typeof a){case "number":case "boolean":case "string":return!0;default:return!1}}function h(a){return null===a?"null":"function"===typeof a.valueOf&&(a=a.valueOf(),f(a))||"function"===typeof a.toString&&(a=a.toString(),f(a))?a:""}function g(a,b){var c=typeof a,d=typeof b;c===d&&"object"===c&&(a=h(a),b=h(b));return c===d?("string"===c&&(a=a.toLowerCase(),b=b.toLowerCase()),a===
|
|
|
|
|
b?0:a<b?-1:1):c<d?-1:1}if(!Ra(a))return a;c=I(c)?c:[c];0===c.length&&(c=["+"]);c=c.map(function(a){var c=!1,d=a||Ta;if(D(a)){if("+"==a.charAt(0)||"-"==a.charAt(0))c="-"==a.charAt(0),a=a.substring(1);if(""===a)return e(g,c);d=b(a);if(d.constant){var f=d();return e(function(a,b){return g(a[f],b[f])},c)}}return e(function(a,b){return g(d(a),d(b))},c)});return qa.call(a).sort(e(function(a,b){for(var d=0;d<c.length;d++){var e=c[d](a,b);if(0!==e)return e}return 0},d))}}function La(b){H(b)&&(b={link:b});
|
|
|
|
|
b.restrict=b.restrict||"AC";return pa(b)}function Ad(b,a,c,d,e){var f=this,h=[],g=f.$$parentForm=b.parent().controller("form")||Fb;f.$error={};f.$$success={};f.$pending=u;f.$name=e(a.name||a.ngForm||"")(c);f.$dirty=!1;f.$pristine=!0;f.$valid=!0;f.$invalid=!1;f.$submitted=!1;g.$addControl(f);f.$rollbackViewValue=function(){n(h,function(a){a.$rollbackViewValue()})};f.$commitViewValue=function(){n(h,function(a){a.$commitViewValue()})};f.$addControl=function(a){Pa(a.$name,"input");h.push(a);a.$name&&
|
|
|
|
|
(f[a.$name]=a)};f.$$renameControl=function(a,b){var c=a.$name;f[c]===a&&delete f[c];f[b]=a;a.$name=b};f.$removeControl=function(a){a.$name&&f[a.$name]===a&&delete f[a.$name];n(f.$pending,function(b,c){f.$setValidity(c,null,a)});n(f.$error,function(b,c){f.$setValidity(c,null,a)});n(f.$$success,function(b,c){f.$setValidity(c,null,a)});Xa(h,a)};Bd({ctrl:this,$element:b,set:function(a,b,c){var d=a[b];d?-1===d.indexOf(c)&&d.push(c):a[b]=[c]},unset:function(a,b,c){var d=a[b];d&&(Xa(d,c),0===d.length&&delete a[b])},
|
|
|
|
|
parentForm:g,$animate:d});f.$setDirty=function(){d.removeClass(b,Qa);d.addClass(b,Gb);f.$dirty=!0;f.$pristine=!1;g.$setDirty()};f.$setPristine=function(){d.setClass(b,Qa,Gb+" ng-submitted");f.$dirty=!1;f.$pristine=!0;f.$submitted=!1;n(h,function(a){a.$setPristine()})};f.$setUntouched=function(){n(h,function(a){a.$setUntouched()})};f.$setSubmitted=function(){d.addClass(b,"ng-submitted");f.$submitted=!0;g.$setSubmitted()}}function gc(b){b.$formatters.push(function(a){return b.$isEmpty(a)?a:a.toString()})}
|
|
|
|
|
function gb(b,a,c,d,e,f){var h=N(a[0].type);if(!e.android){var g=!1;a.on("compositionstart",function(a){g=!0});a.on("compositionend",function(){g=!1;l()})}var l=function(b){k&&(f.defer.cancel(k),k=null);if(!g){var e=a.val();b=b&&b.type;"password"===h||c.ngTrim&&"false"===c.ngTrim||(e=V(e));(d.$viewValue!==e||""===e&&d.$$hasNativeValidators)&&d.$setViewValue(e,b)}};if(e.hasEvent("input"))a.on("input",l);else{var k,m=function(a,b,c){k||(k=f.defer(function(){k=null;b&&b.value===c||l(a)}))};a.on("keydown",
|
|
|
|
|
function(a){var b=a.keyCode;91===b||15<b&&19>b||37<=b&&40>=b||m(a,this,this.value)});if(e.hasEvent("paste"))a.on("paste cut",m)}a.on("change",l);d.$render=function(){a.val(d.$isEmpty(d.$viewValue)?"":d.$viewValue)}}function Hb(b,a){return function(c,d){var e,f;if(ea(c))return c;if(D(c)){'"'==c.charAt(0)&&'"'==c.charAt(c.length-1)&&(c=c.substring(1,c.length-1));if(ag.test(c))return new Date(c);b.lastIndex=0;if(e=b.exec(c))return e.shift(),f=d?{yyyy:d.getFullYear(),MM:d.getMonth()+1,dd:d.getDate(),
|
|
|
|
|
HH:d.getHours(),mm:d.getMinutes(),ss:d.getSeconds(),sss:d.getMilliseconds()/1E3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},n(e,function(b,c){c<a.length&&(f[a[c]]=+b)}),new Date(f.yyyy,f.MM-1,f.dd,f.HH,f.mm,f.ss||0,1E3*f.sss||0)}return NaN}}function hb(b,a,c,d){return function(e,f,h,g,l,k,m){function q(a){return a&&!(a.getTime&&a.getTime()!==a.getTime())}function r(a){return w(a)?ea(a)?a:c(a):u}Cd(e,f,h,g);gb(e,f,h,g,l,k);var t=g&&g.$options&&g.$options.timezone,n;g.$$parserName=b;g.$parsers.push(function(b){return g.$isEmpty(b)?
|
|
|
|
|
null:a.test(b)?(b=c(b,n),t&&(b=Mb(b,t)),b):u});g.$formatters.push(function(a){if(a&&!ea(a))throw Ib("datefmt",a);if(q(a))return(n=a)&&t&&(n=Mb(n,t,!0)),m("date")(a,d,t);n=null;return""});if(w(h.min)||h.ngMin){var s;g.$validators.min=function(a){return!q(a)||F(s)||c(a)>=s};h.$observe("min",function(a){s=r(a);g.$validate()})}if(w(h.max)||h.ngMax){var v;g.$validators.max=function(a){return!q(a)||F(v)||c(a)<=v};h.$observe("max",function(a){v=r(a);g.$validate()})}}}function Cd(b,a,c,d){(d.$$hasNativeValidators=
|
|
|
|
|
C(a[0].validity))&&d.$parsers.push(function(b){var c=a.prop("validity")||{};return c.badInput&&!c.typeMismatch?u:b})}function Dd(b,a,c,d,e){if(w(d)){b=b(d);if(!b.constant)throw J("ngModel")("constexpr",c,d);return b(a)}return e}function hc(b,a){b="ngClass"+b;return["$animate",function(c){function d(a,b){var c=[],d=0;a:for(;d<a.length;d++){for(var e=a[d],m=0;m<b.length;m++)if(e==b[m])continue a;c.push(e)}return c}function e(a){var b=[];return I(a)?(n(a,function(a){b=b.concat(e(a))}),b):D(a)?a.split(" "):
|
|
|
|
|
C(a)?(n(a,function(a,c){a&&(b=b.concat(c.split(" ")))}),b):a}return{restrict:"AC",link:function(f,h,g){function l(a,b){var c=h.data("$classCounts")||{},d=[];n(a,function(a){if(0<b||c[a])c[a]=(c[a]||0)+b,c[a]===+(0<b)&&d.push(a)});h.data("$classCounts",c);return d.join(" ")}function k(b){if(!0===a||f.$index%2===a){var k=e(b||[]);if(!m){var t=l(k,1);g.$addClass(t)}else if(!ka(b,m)){var n=e(m),t=d(k,n),k=d(n,k),t=l(t,1),k=l(k,-1);t&&t.length&&c.addClass(h,t);k&&k.length&&c.removeClass(h,k)}}m=fa(b)}
|
|
|
|
|
var m;f.$watch(g[b],k,!0);g.$observe("class",function(a){k(f.$eval(g[b]))});"ngClass"!==b&&f.$watch("$index",function(c,d){var h=c&1;if(h!==(d&1)){var k=e(f.$eval(g[b]));h===a?(h=l(k,1),g.$addClass(h)):(h=l(k,-1),g.$removeClass(h))}})}}}]}function Bd(b){function a(a,b){b&&!f[a]?(k.addClass(e,a),f[a]=!0):!b&&f[a]&&(k.removeClass(e,a),f[a]=!1)}function c(b,c){b=b?"-"+uc(b,"-"):"";a(ib+b,!0===c);a(Ed+b,!1===c)}var d=b.ctrl,e=b.$element,f={},h=b.set,g=b.unset,l=b.parentForm,k=b.$animate;f[Ed]=!(f[ib]=
|
|
|
|
|
e.hasClass(ib));d.$setValidity=function(b,e,f){e===u?(d.$pending||(d.$pending={}),h(d.$pending,b,f)):(d.$pending&&g(d.$pending,b,f),Fd(d.$pending)&&(d.$pending=u));Wa(e)?e?(g(d.$error,b,f),h(d.$$success,b,f)):(h(d.$error,b,f),g(d.$$success,b,f)):(g(d.$error,b,f),g(d.$$success,b,f));d.$pending?(a(Gd,!0),d.$valid=d.$invalid=u,c("",null)):(a(Gd,!1),d.$valid=Fd(d.$error),d.$invalid=!d.$valid,c("",d.$valid));e=d.$pending&&d.$pending[b]?u:d.$error[b]?!1:d.$$success[b]?!0:null;c(b,e);l.$setValidity(b,e,
|
|
|
|
|
d)}}function Fd(b){if(b)for(var a in b)return!1;return!0}var bg=/^\/(.+)\/([a-z]*)$/,N=function(b){return D(b)?b.toLowerCase():b},sc=Object.prototype.hasOwnProperty,nb=function(b){return D(b)?b.toUpperCase():b},fb,E,la,qa=[].slice,Ef=[].splice,cg=[].push,ra=Object.prototype.toString,Da=J("ng"),aa=O.angular||(O.angular={}),cb,jb=0;fb=Y.documentMode;z.$inject=[];Ta.$inject=[];var I=Array.isArray,mc=/^\[object (Uint8(Clamped)?)|(Uint16)|(Uint32)|(Int8)|(Int16)|(Int32)|(Float(32)|(64))Array\]$/,V=function(b){return D(b)?
|
|
|
|
|
b.trim():b},od=function(b){return b.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},bb=function(){if(w(bb.isActive_))return bb.isActive_;var b=!(!Y.querySelector("[ng-csp]")&&!Y.querySelector("[data-ng-csp]"));if(!b)try{new Function("")}catch(a){b=!0}return bb.isActive_=b},lb=function(){if(w(lb.name_))return lb.name_;var b,a,c=Ma.length,d,e;for(a=0;a<c;++a)if(d=Ma[a],b=Y.querySelector("["+d.replace(":","\\:")+"jq]")){e=b.getAttribute(d+"jq");break}return lb.name_=e},Ma=["ng-",
|
|
|
|
|
"data-ng-","ng:","x-ng-"],Wd=/[A-Z]/g,vc=!1,Ob,oa=1,$a=3,$d={full:"1.4.0-build.3954+sha.9dfa949",major:1,minor:4,dot:0,codeName:"snapshot"};P.expando="ng339";var sb=P.cache={},wf=1;P._data=function(b){return this.cache[b[this.expando]]||{}};var rf=/([\:\-\_]+(.))/g,sf=/^moz([A-Z])/,dg={mouseleave:"mouseout",mouseenter:"mouseover"},Rb=J("jqLite"),vf=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Qb=/<|&#?\w+;/,tf=/<([\w:]+)/,uf=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ga={option:[1,
|
|
|
|
|
'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ga.optgroup=ga.option;ga.tbody=ga.tfoot=ga.colgroup=ga.caption=ga.thead;ga.th=ga.td;var Na=P.prototype={ready:function(b){function a(){c||(c=!0,b())}var c=!1;"complete"===Y.readyState?setTimeout(a):(this.on("DOMContentLoaded",a),P(O).on("load",a))},toString:function(){var b=
|
|
|
|
|
[];n(this,function(a){b.push(""+a)});return"["+b.join(", ")+"]"},eq:function(b){return 0<=b?E(this[b]):E(this[this.length+b])},length:0,push:cg,sort:[].sort,splice:[].splice},xb={};n("multiple selected checked disabled readOnly required open".split(" "),function(b){xb[N(b)]=b});var Mc={};n("input select option textarea button form details".split(" "),function(b){Mc[b]=!0});var Nc={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};n({data:Tb,removeData:qb},
|
|
|
|
|
function(b,a){P[a]=b});n({data:Tb,inheritedData:wb,scope:function(b){return E.data(b,"$scope")||wb(b.parentNode||b,["$isolateScope","$scope"])},isolateScope:function(b){return E.data(b,"$isolateScope")||E.data(b,"$isolateScopeNoTemplate")},controller:Jc,injector:function(b){return wb(b,"$injector")},removeAttr:function(b,a){b.removeAttribute(a)},hasClass:tb,css:function(b,a,c){a=db(a);if(w(c))b.style[a]=c;else return b.style[a]},attr:function(b,a,c){var d=b.nodeType;if(d!==$a&&2!==d&&8!==d)if(d=N(a),
|
|
|
|
|
xb[d])if(w(c))c?(b[a]=!0,b.setAttribute(a,d)):(b[a]=!1,b.removeAttribute(d));else return b[a]||(b.attributes.getNamedItem(a)||z).specified?d:u;else if(w(c))b.setAttribute(a,c);else if(b.getAttribute)return b=b.getAttribute(a,2),null===b?u:b},prop:function(b,a,c){if(w(c))b[a]=c;else return b[a]},text:function(){function b(a,b){if(F(b)){var d=a.nodeType;return d===oa||d===$a?a.textContent:""}a.textContent=b}b.$dv="";return b}(),val:function(b,a){if(F(a)){if(b.multiple&&"select"===sa(b)){var c=[];n(b.options,
|
|
|
|
|
function(a){a.selected&&c.push(a.value||a.text)});return 0===c.length?null:c}return b.value}b.value=a},html:function(b,a){if(F(a))return b.innerHTML;pb(b,!0);b.innerHTML=a},empty:Kc},function(b,a){P.prototype[a]=function(a,d){var e,f,h=this.length;if(b!==Kc&&(2==b.length&&b!==tb&&b!==Jc?a:d)===u){if(C(a)){for(e=0;e<h;e++)if(b===Tb)b(this[e],a);else for(f in a)b(this[e],f,a[f]);return this}e=b.$dv;h=e===u?Math.min(h,1):h;for(f=0;f<h;f++){var g=b(this[f],a,d);e=e?e+g:g}return e}for(e=0;e<h;e++)b(this[e],
|
|
|
|
|
a,d);return this}});n({removeData:qb,on:function a(c,d,e,f){if(w(f))throw Rb("onargs");if(Fc(c)){var h=rb(c,!0);f=h.events;var g=h.handle;g||(g=h.handle=zf(c,f));for(var h=0<=d.indexOf(" ")?d.split(" "):[d],l=h.length;l--;){d=h[l];var k=f[d];k||(f[d]=[],"mouseenter"===d||"mouseleave"===d?a(c,dg[d],function(a){var c=a.relatedTarget;c&&(c===this||this.contains(c))||g(a,d)}):"$destroy"!==d&&c.addEventListener(d,g,!1),k=f[d]);k.push(e)}}},off:Ic,one:function(a,c,d){a=E(a);a.on(c,function f(){a.off(c,
|
|
|
|
|
d);a.off(c,f)});a.on(c,d)},replaceWith:function(a,c){var d,e=a.parentNode;pb(a);n(new P(c),function(c){d?e.insertBefore(c,d.nextSibling):e.replaceChild(c,a);d=c})},children:function(a){var c=[];n(a.childNodes,function(a){a.nodeType===oa&&c.push(a)});return c},contents:function(a){return a.contentDocument||a.childNodes||[]},append:function(a,c){var d=a.nodeType;if(d===oa||11===d){c=new P(c);for(var d=0,e=c.length;d<e;d++)a.appendChild(c[d])}},prepend:function(a,c){if(a.nodeType===oa){var d=a.firstChild;
|
|
|
|
|
n(new P(c),function(c){a.insertBefore(c,d)})}},wrap:function(a,c){c=E(c).eq(0).clone()[0];var d=a.parentNode;d&&d.replaceChild(c,a);c.appendChild(a)},remove:Ub,detach:function(a){Ub(a,!0)},after:function(a,c){var d=a,e=a.parentNode;c=new P(c);for(var f=0,h=c.length;f<h;f++){var g=c[f];e.insertBefore(g,d.nextSibling);d=g}},addClass:vb,removeClass:ub,toggleClass:function(a,c,d){c&&n(c.split(" "),function(c){var f=d;F(f)&&(f=!tb(a,c));(f?vb:ub)(a,c)})},parent:function(a){return(a=a.parentNode)&&11!==
|
|
|
|
|
a.nodeType?a:null},next:function(a){return a.nextElementSibling},find:function(a,c){return a.getElementsByTagName?a.getElementsByTagName(c):[]},clone:Sb,triggerHandler:function(a,c,d){var e,f,h=c.type||c,g=rb(a);if(g=(g=g&&g.events)&&g[h])e={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},
|
|
|
|
|
stopPropagation:z,type:h,target:a},c.type&&(e=T(e,c)),c=fa(g),f=d?[e].concat(d):[e],n(c,function(c){e.isImmediatePropagationStopped()||c.apply(a,f)})}},function(a,c){P.prototype[c]=function(c,e,f){for(var h,g=0,l=this.length;g<l;g++)F(h)?(h=a(this[g],c,e,f),w(h)&&(h=E(h))):Hc(h,a(this[g],c,e,f));return w(h)?h:this};P.prototype.bind=P.prototype.on;P.prototype.unbind=P.prototype.off});eb.prototype={put:function(a,c){this[Ea(a,this.nextUid)]=c},get:function(a){return this[Ea(a,this.nextUid)]},remove:function(a){var c=
|
|
|
|
|
this[a=Ea(a,this.nextUid)];delete this[a];return c}};var pf=[function(){this.$get=[function(){return eb}]}],Pc=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,eg=/,/,fg=/^\s*(_?)(\S+?)\1\s*$/,Oc=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Fa=J("$injector");ab.$$annotate=function(a,c,d){var e;if("function"===typeof a){if(!(e=a.$inject)){e=[];if(a.length){if(c)throw D(d)&&d||(d=a.name||Af(a)),Fa("strictdi",d);c=a.toString().replace(Oc,"");c=c.match(Pc);n(c[1].split(eg),function(a){a.replace(fg,function(a,c,d){e.push(d)})})}a.$inject=
|
|
|
|
|
e}}else I(a)?(c=a.length-1,Oa(a[c],"fn"),e=a.slice(0,c)):Oa(a,"fn",!0);return e};var gg=J("$animate"),Me=["$provide",function(a){this.$$selectors={};this.register=function(c,d){var e=c+"-animation";if(c&&"."!=c.charAt(0))throw gg("notcsel",c);this.$$selectors[c.substr(1)]=e;a.factory(e,d)};this.classNameFilter=function(a){1===arguments.length&&(this.$$classNameFilter=a instanceof RegExp?a:null);return this.$$classNameFilter};this.$get=["$$q","$$asyncCallback","$rootScope",function(a,d,e){function f(d){var f,
|
|
|
|
|
g=a.defer();g.promise.$$cancelFn=function(){f&&f()};e.$$postDigest(function(){f=d(function(){g.resolve()})});return g.promise}function h(a,c){var d=[],e=[],f=ma();n((a.attr("class")||"").split(/\s+/),function(a){f[a]=!0});n(c,function(a,c){var g=f[c];!1===a&&g?e.push(c):!0!==a||g||d.push(c)});return 0<d.length+e.length&&[d.length?d:null,e.length?e:null]}function g(a,c,d){for(var e=0,f=c.length;e<f;++e)a[c[e]]=d}function l(){m||(m=a.defer(),d(function(){m.resolve();m=null}));return m.promise}function k(a,
|
|
|
|
|
c){if(aa.isObject(c)){var d=T(c.from||{},c.to||{});a.css(d)}}var m;return{animate:function(a,c,d){k(a,{from:c,to:d});return l()},enter:function(a,c,d,e){k(a,e);d?d.after(a):c.prepend(a);return l()},leave:function(a,c){k(a,c);a.remove();return l()},move:function(a,c,d,e){return this.enter(a,c,d,e)},addClass:function(a,c,d){return this.setClass(a,c,[],d)},$$addClassImmediately:function(a,c,d){a=E(a);c=D(c)?c:I(c)?c.join(" "):"";n(a,function(a){vb(a,c)});k(a,d);return l()},removeClass:function(a,c,d){return this.setClass(a,
|
|
|
|
|
[],c,d)},$$removeClassImmediately:function(a,c,d){a=E(a);c=D(c)?c:I(c)?c.join(" "):"";n(a,function(a){ub(a,c)});k(a,d);return l()},setClass:function(a,c,d,e){var k=this,l=!1;a=E(a);var m=a.data("$$animateClasses");m?e&&m.options&&(m.options=aa.extend(m.options||{},e)):(m={classes:{},options:e},l=!0);e=m.classes;c=I(c)?c:c.split(" ");d=I(d)?d:d.split(" ");g(e,c,!0);g(e,d,!1);l&&(m.promise=f(function(c){var d=a.data("$$animateClasses");a.removeData("$$animateClasses");if(d){var e=h(a,d.classes);e&&
|
|
|
|
|
k.$$setClassImmediately(a,e[0],e[1],d.options)}c()}),a.data("$$animateClasses",m));return m.promise},$$setClassImmediately:function(a,c,d,e){c&&this.$$addClassImmediately(a,c);d&&this.$$removeClassImmediately(a,d);k(a,e);return l()},enabled:z,cancel:z}}]}],ha=J("$compile");xc.$inject=["$provide","$$sanitizeUriProvider"];var Sc=/^((?:x|data)[\:\-_])/i,Ff=J("$controller"),Qc=/^(\S+)(\s+as\s+(\w+))?$/,Xc="application/json",Xb={"Content-Type":Xc+";charset=utf-8"},Hf=/^\[|^\{(?!\{)/,If={"[":/]$/,"{":/}$/},
|
|
|
|
|
Gf=/^\)\]\}',?\n/,Ja=aa.$interpolateMinErr=J("$interpolate");Ja.throwNoconcat=function(a){throw Ja("noconcat",a);};Ja.interr=function(a,c){return Ja("interr",a,c.toString())};var hg=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,Lf={http:80,https:443,ftp:21},zb=J("$location"),ig={$$html5:!1,$$replace:!1,absUrl:Ab("$$absUrl"),url:function(a){if(F(a))return this.$$url;var c=hg.exec(a);(c[1]||""===a)&&this.path(decodeURIComponent(c[1]));(c[2]||c[1]||""===a)&&this.search(c[3]||"");this.hash(c[5]||"");return this},
|
|
|
|
|
protocol:Ab("$$protocol"),host:Ab("$$host"),port:Ab("$$port"),path:ed("$$path",function(a){a=null!==a?a.toString():"";return"/"==a.charAt(0)?a:"/"+a}),search:function(a,c){switch(arguments.length){case 0:return this.$$search;case 1:if(D(a)||X(a))a=a.toString(),this.$$search=rc(a);else if(C(a))a=ta(a,{}),n(a,function(c,e){null==c&&delete a[e]}),this.$$search=a;else throw zb("isrcharg");break;default:F(c)||null===c?delete this.$$search[a]:this.$$search[a]=c}this.$$compose();return this},hash:ed("$$hash",
|
|
|
|
|
function(a){return null!==a?a.toString():""}),replace:function(){this.$$replace=!0;return this}};n([dd,ac,$b],function(a){a.prototype=Object.create(ig);a.prototype.state=function(c){if(!arguments.length)return this.$$state;if(a!==$b||!this.$$html5)throw zb("nostate");this.$$state=F(c)?null:c;return this}});var da=J("$parse"),Mf=Function.prototype.call,Nf=Function.prototype.apply,Of=Function.prototype.bind,Jb=ma();n("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(a){Jb[a]=!0});
|
|
|
|
|
var jg={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},cc=function(a){this.options=a};cc.prototype={constructor:cc,lex:function(a){this.text=a;this.index=0;for(this.tokens=[];this.index<this.text.length;)if(a=this.text.charAt(this.index),'"'===a||"'"===a)this.readString(a);else if(this.isNumber(a)||"."===a&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(a))this.readIdent();else if(this.is(a,"(){}[].,;:?"))this.tokens.push({index:this.index,text:a}),this.index++;else if(this.isWhitespace(a))this.index++;
|
|
|
|
|
else{var c=a+this.peek(),d=c+this.peek(2),e=Jb[c],f=Jb[d];Jb[a]||e||f?(a=f?d:e?c:a,this.tokens.push({index:this.index,text:a,operator:!0}),this.index+=a.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(a,c){return-1!==c.indexOf(a)},peek:function(a){a=a||1;return this.index+a<this.text.length?this.text.charAt(this.index+a):!1},isNumber:function(a){return"0"<=a&&"9">=a&&"string"===typeof a},isWhitespace:function(a){return" "===a||"\r"===a||
|
|
|
|
|
"\t"===a||"\n"===a||"\v"===a||"\u00a0"===a},isIdent:function(a){return"a"<=a&&"z">=a||"A"<=a&&"Z">=a||"_"===a||"$"===a},isExpOperator:function(a){return"-"===a||"+"===a||this.isNumber(a)},throwError:function(a,c,d){d=d||this.index;c=w(c)?"s "+c+"-"+this.index+" ["+this.text.substring(c,d)+"]":" "+d;throw da("lexerr",a,c,this.text);},readNumber:function(){for(var a="",c=this.index;this.index<this.text.length;){var d=N(this.text.charAt(this.index));if("."==d||this.isNumber(d))a+=d;else{var e=this.peek();
|
|
|
|
|
if("e"==d&&this.isExpOperator(e))a+=d;else if(this.isExpOperator(d)&&e&&this.isNumber(e)&&"e"==a.charAt(a.length-1))a+=d;else if(!this.isExpOperator(d)||e&&this.isNumber(e)||"e"!=a.charAt(a.length-1))break;else this.throwError("Invalid exponent")}this.index++}this.tokens.push({index:c,text:a,constant:!0,value:Number(a)})},readIdent:function(){for(var a=this.index;this.index<this.text.length;){var c=this.text.charAt(this.index);if(!this.isIdent(c)&&!this.isNumber(c))break;this.index++}this.tokens.push({index:a,
|
|
|
|
|
text:this.text.slice(a,this.index),identifier:!0})},readString:function(a){var c=this.index;this.index++;for(var d="",e=a,f=!1;this.index<this.text.length;){var h=this.text.charAt(this.index),e=e+h;if(f)"u"===h?(f=this.text.substring(this.index+1,this.index+5),f.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+f+"]"),this.index+=4,d+=String.fromCharCode(parseInt(f,16))):d+=jg[h]||h,f=!1;else if("\\"===h)f=!0;else{if(h===a){this.index++;this.tokens.push({index:c,text:e,constant:!0,
|
|
|
|
|
value:d});return}d+=h}this.index++}this.throwError("Unterminated quote",c)}};var s=function(a,c){this.lexer=a;this.options=c};s.Program="Program";s.ExpressionStatement="ExpressionStatement";s.AssignmentExpression="AssignmentExpression";s.ConditionalExpression="ConditionalExpression";s.LogicalExpression="LogicalExpression";s.BinaryExpression="BinaryExpression";s.UnaryExpression="UnaryExpression";s.CallExpression="CallExpression";s.MemberExpression="MemberExpression";s.Identifier="Identifier";s.Literal=
|
|
|
|
|
"Literal";s.ArrayExpression="ArrayExpression";s.Property="Property";s.ObjectExpression="ObjectExpression";s.ThisExpression="ThisExpression";s.NGValueParameter="NGValueParameter";s.prototype={ast:function(a){this.text=a;this.tokens=this.lexer.lex(a);a=this.program();0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]);return a},program:function(){for(var a=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&a.push(this.expressionStatement()),!this.expect(";"))return{type:s.Program,
|
|
|
|
|
body:a}},expressionStatement:function(){return{type:s.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var a=this.expression();this.expect("|");)a=this.filter(a);return a},expression:function(){return this.assignment()},assignment:function(){var a=this.ternary();this.expect("=")&&(a={type:s.AssignmentExpression,left:a,right:this.assignment(),operator:"="});return a},ternary:function(){var a=this.logicalOR(),c,d;return this.expect("?")&&(c=this.expression(),this.consume(":"))?
|
|
|
|
|
(d=this.expression(),{type:s.ConditionalExpression,test:a,alternate:c,consequent:d}):a},logicalOR:function(){for(var a=this.logicalAND();this.expect("||");)a={type:s.LogicalExpression,operator:"||",left:a,right:this.logicalAND()};return a},logicalAND:function(){for(var a=this.equality();this.expect("&&");)a={type:s.LogicalExpression,operator:"&&",left:a,right:this.equality()};return a},equality:function(){for(var a=this.relational(),c;c=this.expect("==","!=","===","!==");)a={type:s.BinaryExpression,
|
|
|
|
|
operator:c.text,left:a,right:this.relational()};return a},relational:function(){for(var a=this.additive(),c;c=this.expect("<",">","<=",">=");)a={type:s.BinaryExpression,operator:c.text,left:a,right:this.additive()};return a},additive:function(){for(var a=this.multiplicative(),c;c=this.expect("+","-");)a={type:s.BinaryExpression,operator:c.text,left:a,right:this.multiplicative()};return a},multiplicative:function(){for(var a=this.unary(),c;c=this.expect("*","/","%");)a={type:s.BinaryExpression,operator:c.text,
|
|
|
|
|
left:a,right:this.unary()};return a},unary:function(){var a;return(a=this.expect("+","-","!"))?{type:s.UnaryExpression,operator:a.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var a;this.expect("(")?(a=this.filterChain(),this.consume(")")):this.expect("[")?a=this.arrayDeclaration():this.expect("{")?a=this.object():this.constants.hasOwnProperty(this.peek().text)?a=ta(this.constants[this.consume().text]):this.peek().identifier?a=this.identifier():this.peek().constant?a=this.constant():
|
|
|
|
|
this.throwError("not a primary expression",this.peek());for(var c;c=this.expect("(","[",".");)"("===c.text?(a={type:s.CallExpression,callee:a,arguments:this.parseArguments()},this.consume(")")):"["===c.text?(a={type:s.MemberExpression,object:a,property:this.expression(),computed:!0},this.consume("]")):"."===c.text?a={type:s.MemberExpression,object:a,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return a},filter:function(a){a=[a];for(var c={type:s.CallExpression,callee:this.identifier(),
|
|
|
|
|
arguments:a,filter:!0};this.expect(":");)a.push(this.expression());return c},parseArguments:function(){var a=[];if(")"!==this.peekToken().text){do a.push(this.expression());while(this.expect(","))}return a},identifier:function(){var a=this.consume();a.identifier||this.throwError("is not a valid identifier",a);return{type:s.Identifier,name:a.text}},constant:function(){return{type:s.Literal,value:this.consume().value}},arrayDeclaration:function(){var a=[];if("]"!==this.peekToken().text){do{if(this.peek("]"))break;
|
|
|
|
|
a.push(this.expression())}while(this.expect(","))}this.consume("]");return{type:s.ArrayExpression,elements:a}},object:function(){var a=[],c;if("}"!==this.peekToken().text){do{if(this.peek("}"))break;c={type:s.Property,kind:"init"};this.peek().constant?c.key=this.constant():this.peek().identifier?c.key=this.identifier():this.throwError("invalid key",this.peek());this.consume(":");c.value=this.expression();a.push(c)}while(this.expect(","))}this.consume("}");return{type:s.ObjectExpression,properties:a}},
|
|
|
|
|
throwError:function(a,c){throw da("syntax",c.text,a,c.index+1,this.text,this.text.substring(c.index));},consume:function(a){if(0===this.tokens.length)throw da("ueoe",this.text);var c=this.expect(a);c||this.throwError("is unexpected, expecting ["+a+"]",this.peek());return c},peekToken:function(){if(0===this.tokens.length)throw da("ueoe",this.text);return this.tokens[0]},peek:function(a,c,d,e){return this.peekAhead(0,a,c,d,e)},peekAhead:function(a,c,d,e,f){if(this.tokens.length>a){a=this.tokens[a];
|
|
|
|
|
var h=a.text;if(h===c||h===d||h===e||h===f||!(c||d||e||f))return a}return!1},expect:function(a,c,d,e){return(a=this.peek(a,c,d,e))?(this.tokens.shift(),a):!1},constants:{"true":{type:s.Literal,value:!0},"false":{type:s.Literal,value:!1},"null":{type:s.Literal,value:null},undefined:{type:s.Literal,value:u},"this":{type:s.ThisExpression}}};ld.prototype={compile:function(a,c){var d=this,e=this.astBuilder.ast(a);this.state={nextId:0,filters:{},expensiveChecks:c,fn:{vars:[],body:[],own:{}},assign:{vars:[],
|
|
|
|
|
body:[],own:{}},inputs:[]};$(e,d.$filter);var f="",h;this.stage="assign";if(h=jd(e))this.state.computing="assign",f=this.nextId(),this.recurse(h,f),f="fn.assign="+this.generateFunction("assign","s,v,l");h=hd(e.body);d.stage="inputs";n(h,function(a,c){var e="fn"+c;d.state[e]={vars:[],body:[],own:{}};d.state.computing=e;var f=d.nextId();d.recurse(a,f);d.return_(f);d.state.inputs.push(e);a.watchId=c});this.state.computing="fn";this.stage="main";this.recurse(e);f='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+
|
|
|
|
|
"var fn="+this.generateFunction("fn","s,l,a,i")+f+this.watchFns()+"return fn;";f=(new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","ifDefined","plus","text",f))(this.$filter,Ba,ja,fd,Pf,gd,a);this.state=this.stage=u;f.literal=kd(e);f.constant=e.constant;return f},USE:"use",STRICT:"strict",watchFns:function(){var a=[],c=this.state.inputs,d=this;n(c,function(c){a.push("var "+c+"="+d.generateFunction(c,"s"))});c.length&&a.push("fn.inputs=["+c.join(",")+"];");return a.join("")},
|
|
|
|
|
generateFunction:function(a,c){return"function("+c+"){"+this.varsPrefix(a)+this.body(a)+"};"},filterPrefix:function(){var a=[],c=this;n(this.state.filters,function(d,e){a.push(d+"=$filter("+c.escape(e)+")")});return a.length?"var "+a.join(",")+";":""},varsPrefix:function(a){return this.state[a].vars.length?"var "+this.state[a].vars.join(",")+";":""},body:function(a){return this.state[a].body.join("")},recurse:function(a,c,d,e,f,h){var g,l,k=this,m,q;e=e||z;if(!h&&w(a.watchId))c=c||this.nextId(),this.if_("i",
|
|
|
|
|
this.lazyAssign(c,this.computedMember("i",a.watchId)),this.lazyRecurse(a,c,d,e,f,!0));else switch(a.type){case s.Program:n(a.body,function(c,d){k.recurse(c.expression,u,u,function(a){l=a});d!==a.body.length-1?k.current().body.push(l,";"):k.return_(l)});break;case s.Literal:q=this.escape(a.value);this.assign(c,q);e(q);break;case s.UnaryExpression:this.recurse(a.argument,u,u,function(a){l=a});q=a.operator+"("+this.ifDefined(l,0)+")";this.assign(c,q);e(q);break;case s.BinaryExpression:this.recurse(a.left,
|
|
|
|
|
u,u,function(a){g=a});this.recurse(a.right,u,u,function(a){l=a});q="+"===a.operator?this.plus(g,l):"-"===a.operator?this.ifDefined(g,0)+a.operator+this.ifDefined(l,0):"("+g+")"+a.operator+"("+l+")";this.assign(c,q);e(q);break;case s.LogicalExpression:c=c||this.nextId();k.recurse(a.left,c);k.if_("&&"===a.operator?c:k.not(c),k.lazyRecurse(a.right,c));e(c);break;case s.ConditionalExpression:c=c||this.nextId();k.recurse(a.test,c);k.if_(c,k.lazyRecurse(a.alternate,c),k.lazyRecurse(a.consequent,c));e(c);
|
|
|
|
|
break;case s.Identifier:c=c||this.nextId();d&&(d.context="inputs"===k.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",a.name)+"?l:s"),d.computed=!1,d.name=a.name);Ba(a.name);k.if_("inputs"===k.stage||k.not(k.getHasOwnProperty("l",a.name)),function(){k.if_("inputs"===k.stage||"s",function(){f&&1!==f&&k.if_(k.not(k.nonComputedMember("s",a.name)),k.lazyAssign(k.nonComputedMember("s",a.name),"{}"));k.assign(c,k.nonComputedMember("s",a.name))})},c&&k.lazyAssign(c,k.nonComputedMember("l",
|
|
|
|
|
a.name)));(k.state.expensiveChecks||Cb(a.name))&&k.addEnsureSafeObject(c);e(c);break;case s.MemberExpression:g=d&&(d.context=this.nextId())||this.nextId();c=c||this.nextId();k.recurse(a.object,g,u,function(){k.if_(k.notNull(g),function(){if(a.computed)l=k.nextId(),k.recurse(a.property,l),k.addEnsureSafeMemberName(l),f&&1!==f&&k.if_(k.not(k.computedMember(g,l)),k.lazyAssign(k.computedMember(g,l),"{}")),q=k.ensureSafeObject(k.computedMember(g,l)),k.assign(c,q),d&&(d.computed=!0,d.name=l);else{Ba(a.property.name);
|
|
|
|
|
f&&1!==f&&k.if_(k.not(k.nonComputedMember(g,a.property.name)),k.lazyAssign(k.nonComputedMember(g,a.property.name),"{}"));q=k.nonComputedMember(g,a.property.name);if(k.state.expensiveChecks||Cb(a.property.name))q=k.ensureSafeObject(q);k.assign(c,q);d&&(d.computed=!1,d.name=a.property.name)}e(c)})},!!f);break;case s.CallExpression:c=c||this.nextId();a.filter?(l=k.filter(a.callee.name),m=[],n(a.arguments,function(a){var c=k.nextId();k.recurse(a,c);m.push(c)}),q=l+"("+m.join(",")+")",k.assign(c,q),e(c)):
|
|
|
|
|
(l=k.nextId(),g={},m=[],k.recurse(a.callee,l,g,function(){k.if_(k.notNull(l),function(){k.addEnsureSafeFunction(l);n(a.arguments,function(a){k.recurse(a,k.nextId(),u,function(a){m.push(k.ensureSafeObject(a))})});g.name?(k.state.expensiveChecks||k.addEnsureSafeObject(g.context),q=k.member(g.context,g.name,g.computed)+"("+m.join(",")+")"):q=l+"("+m.join(",")+")";q=k.ensureSafeObject(q);k.assign(c,q);e(c)})}));break;case s.AssignmentExpression:l=this.nextId();g={};if(!id(a.left))throw da("lval");this.recurse(a.left,
|
|
|
|
|
u,g,function(){k.if_(k.notNull(g.context),function(){k.recurse(a.right,l);k.addEnsureSafeObject(k.member(g.context,g.name,g.computed));q=k.member(g.context,g.name,g.computed)+a.operator+l;k.assign(c,q);e(c||q)})},1);break;case s.ArrayExpression:m=[];n(a.elements,function(a){k.recurse(a,k.nextId(),u,function(a){m.push(a)})});q="["+m.join(",")+"]";this.assign(c,q);e(q);break;case s.ObjectExpression:m=[];n(a.properties,function(a){k.recurse(a.value,k.nextId(),u,function(c){m.push(k.escape(a.key.type===
|
|
|
|
|
s.Identifier?a.key.name:""+a.key.value)+":"+c)})});q="{"+m.join(",")+"}";this.assign(c,q);e(q);break;case s.ThisExpression:this.assign(c,"s");e("s");break;case s.NGValueParameter:this.assign(c,"v"),e("v")}},getHasOwnProperty:function(a,c){var d=a+"."+c,e=this.current().own;e.hasOwnProperty(d)||(e[d]=this.nextId(!1,a+"&&("+this.escape(c)+" in "+a+")"));return e[d]},assign:function(a,c){if(a)return this.current().body.push(a,"=",c,";"),a},filter:function(a){this.state.filters.hasOwnProperty(a)||(this.state.filters[a]=
|
|
|
|
|
this.nextId(!0));return this.state.filters[a]},ifDefined:function(a,c){return"ifDefined("+a+","+this.escape(c)+")"},plus:function(a,c){return"plus("+a+","+c+")"},return_:function(a){this.current().body.push("return ",a,";")},if_:function(a,c,d){if(!0===a)c();else{var e=this.current().body;e.push("if(",a,"){");c();e.push("}");d&&(e.push("else{"),d(),e.push("}"))}},not:function(a){return"!("+a+")"},notNull:function(a){return a+"!=null"},nonComputedMember:function(a,c){return a+"."+c},computedMember:function(a,
|
|
|
|
|
c){return a+"["+c+"]"},member:function(a,c,d){return d?this.computedMember(a,c):this.nonComputedMember(a,c)},addEnsureSafeObject:function(a){this.current().body.push(this.ensureSafeObject(a),";")},addEnsureSafeMemberName:function(a){this.current().body.push(this.ensureSafeMemberName(a),";")},addEnsureSafeFunction:function(a){this.current().body.push(this.ensureSafeFunction(a),";")},ensureSafeObject:function(a){return"ensureSafeObject("+a+",text)"},ensureSafeMemberName:function(a){return"ensureSafeMemberName("+
|
|
|
|
|
a+",text)"},ensureSafeFunction:function(a){return"ensureSafeFunction("+a+",text)"},lazyRecurse:function(a,c,d,e,f,h){var g=this;return function(){g.recurse(a,c,d,e,f,h)}},lazyAssign:function(a,c){var d=this;return function(){d.assign(a,c)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)},escape:function(a){if(D(a))return"'"+a.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(X(a))return a.toString();if(!0===a)return"true";
|
|
|
|
|
if(!1===a)return"false";if(null===a)return"null";if("undefined"===typeof a)return"undefined";throw da("esc");},nextId:function(a,c){var d="v"+this.state.nextId++;a||this.current().vars.push(d+(c?"="+c:""));return d},current:function(){return this.state[this.state.computing]}};md.prototype={compile:function(a,c){var d=this,e=this.astBuilder.ast(a);this.expression=a;this.expensiveChecks=c;$(e,d.$filter);var f,h;if(f=jd(e))h=this.recurse(f);f=hd(e.body);var g;f&&(g=[],n(f,function(a,c){var e=d.recurse(a);
|
|
|
|
|
a.input=e;g.push(e);a.watchId=c}));var l=[];n(e.body,function(a){l.push(d.recurse(a.expression))});f=0===e.body.length?function(){}:1===e.body.length?l[0]:function(a,c){var d;n(l,function(e){d=e(a,c)});return d};h&&(f.assign=function(a,c,d){return h(a,d,c)});g&&(f.inputs=g);f.literal=kd(e);f.constant=e.constant;return f},recurse:function(a,c,d){var e,f,h=this,g;if(a.input)return this.inputs(a.input,a.watchId);switch(a.type){case s.Literal:return this.value(a.value,c);case s.UnaryExpression:return f=
|
|
|
|
|
this.recurse(a.argument),this["unary"+a.operator](f,c);case s.BinaryExpression:return e=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](e,f,c);case s.LogicalExpression:return e=this.recurse(a.left),f=this.recurse(a.right),this["binary"+a.operator](e,f,c);case s.ConditionalExpression:return this["ternary?:"](this.recurse(a.test),this.recurse(a.alternate),this.recurse(a.consequent),c);case s.Identifier:return Ba(a.name,h.expression),h.identifier(a.name,h.expensiveChecks||Cb(a.name),
|
|
|
|
|
c,d,h.expression);case s.MemberExpression:return e=this.recurse(a.object,!1,!!d),a.computed||(Ba(a.property.name,h.expression),f=a.property.name),a.computed&&(f=this.recurse(a.property)),a.computed?this.computedMember(e,f,c,d,h.expression):this.nonComputedMember(e,f,h.expensiveChecks,c,d,h.expression);case s.CallExpression:return g=[],n(a.arguments,function(a){g.push(h.recurse(a))}),a.filter&&(f=this.$filter(a.callee.name)),a.filter||(f=this.recurse(a.callee,!0)),a.filter?function(a,d,e,h){for(var r=
|
|
|
|
|
[],n=0;n<g.length;++n)r.push(g[n](a,d,e,h));a=f.apply(u,r,h);return c?{context:u,name:u,value:a}:a}:function(a,d,e,q){var r=f(a,d,e,q),n;if(null!=r.value){ja(r.context,h.expression);fd(r.value,h.expression);n=[];for(var s=0;s<g.length;++s)n.push(ja(g[s](a,d,e,q),h.expression));n=ja(r.value.apply(r.context,n),h.expression)}return c?{value:n}:n};case s.AssignmentExpression:return e=this.recurse(a.left,!0,1),f=this.recurse(a.right),function(a,d,g,q){var r=e(a,d,g,q);a=f(a,d,g,q);ja(r.value,h.expression);
|
|
|
|
|
r.context[r.name]=a;return c?{value:a}:a};case s.ArrayExpression:return g=[],n(a.elements,function(a){g.push(h.recurse(a))}),function(a,d,e,f){for(var h=[],n=0;n<g.length;++n)h.push(g[n](a,d,e,f));return c?{value:h}:h};case s.ObjectExpression:return g=[],n(a.properties,function(a){g.push({key:a.key.type===s.Identifier?a.key.name:""+a.key.value,value:h.recurse(a.value)})}),function(a,d,e,f){for(var h={},n=0;n<g.length;++n)h[g[n].key]=g[n].value(a,d,e,f);return c?{value:h}:h};case s.ThisExpression:return function(a){return c?
|
|
|
|
|
{value:a}:a};case s.NGValueParameter:return function(a,d,e,f){return c?{value:e}:e}}},"unary+":function(a,c){return function(d,e,f,h){d=a(d,e,f,h);d=w(d)?+d:0;return c?{value:d}:d}},"unary-":function(a,c){return function(d,e,f,h){d=a(d,e,f,h);d=w(d)?-d:0;return c?{value:d}:d}},"unary!":function(a,c){return function(d,e,f,h){d=!a(d,e,f,h);return c?{value:d}:d}},"binary+":function(a,c,d){return function(e,f,h,g){var l=a(e,f,h,g);e=c(e,f,h,g);l=gd(l,e);return d?{value:l}:l}},"binary-":function(a,c,d){return function(e,
|
|
|
|
|
f,h,g){var l=a(e,f,h,g);e=c(e,f,h,g);l=(w(l)?l:0)-(w(e)?e:0);return d?{value:l}:l}},"binary*":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)*c(e,f,h,g);return d?{value:e}:e}},"binary/":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)/c(e,f,h,g);return d?{value:e}:e}},"binary%":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)%c(e,f,h,g);return d?{value:e}:e}},"binary===":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)===c(e,f,h,g);return d?{value:e}:e}},"binary!==":function(a,
|
|
|
|
|
c,d){return function(e,f,h,g){e=a(e,f,h,g)!==c(e,f,h,g);return d?{value:e}:e}},"binary==":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)==c(e,f,h,g);return d?{value:e}:e}},"binary!=":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)!=c(e,f,h,g);return d?{value:e}:e}},"binary<":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)<c(e,f,h,g);return d?{value:e}:e}},"binary>":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)>c(e,f,h,g);return d?{value:e}:e}},"binary<=":function(a,c,d){return function(e,
|
|
|
|
|
f,h,g){e=a(e,f,h,g)<=c(e,f,h,g);return d?{value:e}:e}},"binary>=":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)>=c(e,f,h,g);return d?{value:e}:e}},"binary&&":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)&&c(e,f,h,g);return d?{value:e}:e}},"binary||":function(a,c,d){return function(e,f,h,g){e=a(e,f,h,g)||c(e,f,h,g);return d?{value:e}:e}},"ternary?:":function(a,c,d,e){return function(f,h,g,l){f=a(f,h,g,l)?c(f,h,g,l):d(f,h,g,l);return e?{value:f}:f}},value:function(a,c){return function(){return c?
|
|
|
|
|
{context:u,name:u,value:a}:a}},identifier:function(a,c,d,e,f){return function(h,g,l,k){h=g&&a in g?g:h;e&&1!==e&&h&&!h[a]&&(h[a]={});g=h?h[a]:u;c&&ja(g,f);return d?{context:h,name:a,value:g}:g}},computedMember:function(a,c,d,e,f){return function(h,g,l,k){var m=a(h,g,l,k),q,n;null!=m&&(q=c(h,g,l,k),Ba(q,f),e&&1!==e&&m&&!m[q]&&(m[q]={}),n=m[q],ja(n,f));return d?{context:m,name:q,value:n}:n}},nonComputedMember:function(a,c,d,e,f,h){return function(g,l,k,m){g=a(g,l,k,m);f&&1!==f&&g&&!g[c]&&(g[c]={});
|
|
|
|
|
l=null!=g?g[c]:u;(d||Cb(c))&&ja(l,h);return e?{context:g,name:c,value:l}:l}},inputs:function(a,c){return function(d,e,f,h){return h?h[c]:a(d,e,f)}}};var dc=function(a,c,d){this.lexer=a;this.$filter=c;this.options=d;this.ast=new s(this.lexer);this.astCompiler=d.csp?new md(this.ast,c):new ld(this.ast,c)};dc.prototype={constructor:dc,parse:function(a){return this.astCompiler.compile(a,this.options.expensiveChecks)}};ma();ma();var Qf=Object.prototype.valueOf,Ca=J("$sce"),na={HTML:"html",CSS:"css",URL:"url",
|
|
|
|
|
RESOURCE_URL:"resourceUrl",JS:"js"},ha=J("$compile"),Z=Y.createElement("a"),qd=Aa(O.location.href);rd.$inject=["$document"];Ec.$inject=["$provide"];sd.$inject=["$locale"];ud.$inject=["$locale"];var xd=".",$f={yyyy:ba("FullYear",4),yy:ba("FullYear",2,0,!0),y:ba("FullYear",1),MMMM:Eb("Month"),MMM:Eb("Month",!0),MM:ba("Month",2,1),M:ba("Month",1,1),dd:ba("Date",2),d:ba("Date",1),HH:ba("Hours",2),H:ba("Hours",1),hh:ba("Hours",2,-12),h:ba("Hours",1,-12),mm:ba("Minutes",2),m:ba("Minutes",1),ss:ba("Seconds",
|
|
|
|
|
2),s:ba("Seconds",1),sss:ba("Milliseconds",3),EEEE:Eb("Day"),EEE:Eb("Day",!0),a:function(a,c){return 12>a.getHours()?c.AMPMS[0]:c.AMPMS[1]},Z:function(a,c,d){a=-1*d;return a=(0<=a?"+":"")+(Db(Math[0<a?"floor":"ceil"](a/60),2)+Db(Math.abs(a%60),2))},ww:zd(2),w:zd(1),G:fc,GG:fc,GGG:fc,GGGG:function(a,c){return 0>=a.getFullYear()?c.ERANAMES[0]:c.ERANAMES[1]}},Zf=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Yf=/^\-?\d+$/;td.$inject=["$locale"];var Vf=pa(N),Wf=
|
|
|
|
|
pa(nb);vd.$inject=["$parse"];var ce=pa({restrict:"E",compile:function(a,c){if(!c.href&&!c.xlinkHref)return function(a,c){if("a"===c[0].nodeName.toLowerCase()){var f="[object SVGAnimatedString]"===ra.call(c.prop("href"))?"xlink:href":"href";c.on("click",function(a){c.attr(f)||a.preventDefault()})}}}}),ob={};n(xb,function(a,c){function d(a,d,f){a.$watch(f[e],function(a){f.$set(c,!!a)})}if("multiple"!=a){var e=wa("ng-"+c),f=d;"checked"===a&&(f=function(a,c,f){f.ngModel!==f[e]&&d(a,c,f)});ob[e]=function(){return{restrict:"A",
|
|
|
|
|
priority:100,link:f}}}});n(Nc,function(a,c){ob[c]=function(){return{priority:100,link:function(a,e,f){if("ngPattern"===c&&"/"==f.ngPattern.charAt(0)&&(e=f.ngPattern.match(bg))){f.$set("ngPattern",new RegExp(e[1],e[2]));return}a.$watch(f[c],function(a){f.$set(c,a)})}}}});n(["src","srcset","href"],function(a){var c=wa("ng-"+a);ob[c]=function(){return{priority:99,link:function(d,e,f){var h=a,g=a;"href"===a&&"[object SVGAnimatedString]"===ra.call(e.prop("href"))&&(g="xlinkHref",f.$attr[g]="xlink:href",
|
|
|
|
|
h=null);f.$observe(c,function(c){c?(f.$set(g,c),fb&&h&&e.prop(h,f[g])):"href"===a&&f.$set(g,null)})}}}});var Fb={$addControl:z,$$renameControl:function(a,c){a.$name=c},$removeControl:z,$setValidity:z,$setDirty:z,$setPristine:z,$setSubmitted:z};Ad.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var Hd=function(a){return["$timeout",function(c){return{name:"form",restrict:a?"EAC":"E",controller:Ad,compile:function(d,e){d.addClass(Qa).addClass(ib);var f=e.name?"name":a&&e.ngForm?"ngForm":
|
|
|
|
|
!1;return{pre:function(a,d,e,k){if(!("action"in e)){var m=function(c){a.$apply(function(){k.$commitViewValue();k.$setSubmitted()});c.preventDefault()};d[0].addEventListener("submit",m,!1);d.on("$destroy",function(){c(function(){d[0].removeEventListener("submit",m,!1)},0,!1)})}var q=k.$$parentForm;f&&(Bb(a,k.$name,k,k.$name),e.$observe(f,function(c){k.$name!==c&&(Bb(a,k.$name,u,k.$name),q.$$renameControl(k,c),Bb(a,k.$name,k,k.$name))}));d.on("$destroy",function(){q.$removeControl(k);f&&Bb(a,e[f],u,
|
|
|
|
|
k.$name);T(k,Fb)})}}}}}]},de=Hd(),qe=Hd(!0),ag=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,kg=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,lg=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,mg=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Id=/^(\d{4})-(\d{2})-(\d{2})$/,Jd=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ic=/^(\d{4})-W(\d\d)$/,Kd=/^(\d{4})-(\d\d)$/,Ld=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,
|
|
|
|
|
Md={text:function(a,c,d,e,f,h){gb(a,c,d,e,f,h);gc(e)},date:hb("date",Id,Hb(Id,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":hb("datetimelocal",Jd,Hb(Jd,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:hb("time",Ld,Hb(Ld,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:hb("week",ic,function(a,c){if(ea(a))return a;if(D(a)){ic.lastIndex=0;var d=ic.exec(a);if(d){var e=+d[1],f=+d[2],h=d=0,g=0,l=0,k=yd(e),f=7*(f-1);c&&(d=c.getHours(),h=c.getMinutes(),g=c.getSeconds(),l=c.getMilliseconds());
|
|
|
|
|
return new Date(e,0,k.getDate()+f,d,h,g,l)}}return NaN},"yyyy-Www"),month:hb("month",Kd,Hb(Kd,["yyyy","MM"]),"yyyy-MM"),number:function(a,c,d,e,f,h){Cd(a,c,d,e);gb(a,c,d,e,f,h);e.$$parserName="number";e.$parsers.push(function(a){return e.$isEmpty(a)?null:mg.test(a)?parseFloat(a):u});e.$formatters.push(function(a){if(!e.$isEmpty(a)){if(!X(a))throw Ib("numfmt",a);a=a.toString()}return a});if(w(d.min)||d.ngMin){var g;e.$validators.min=function(a){return e.$isEmpty(a)||F(g)||a>=g};d.$observe("min",function(a){w(a)&&
|
|
|
|
|
!X(a)&&(a=parseFloat(a,10));g=X(a)&&!isNaN(a)?a:u;e.$validate()})}if(w(d.max)||d.ngMax){var l;e.$validators.max=function(a){return e.$isEmpty(a)||F(l)||a<=l};d.$observe("max",function(a){w(a)&&!X(a)&&(a=parseFloat(a,10));l=X(a)&&!isNaN(a)?a:u;e.$validate()})}},url:function(a,c,d,e,f,h){gb(a,c,d,e,f,h);gc(e);e.$$parserName="url";e.$validators.url=function(a,c){var d=a||c;return e.$isEmpty(d)||kg.test(d)}},email:function(a,c,d,e,f,h){gb(a,c,d,e,f,h);gc(e);e.$$parserName="email";e.$validators.email=
|
|
|
|
|
function(a,c){var d=a||c;return e.$isEmpty(d)||lg.test(d)}},radio:function(a,c,d,e){F(d.name)&&c.attr("name",++jb);c.on("click",function(a){c[0].checked&&e.$setViewValue(d.value,a&&a.type)});e.$render=function(){c[0].checked=d.value==e.$viewValue};d.$observe("value",e.$render)},checkbox:function(a,c,d,e,f,h,g,l){var k=Dd(l,a,"ngTrueValue",d.ngTrueValue,!0),m=Dd(l,a,"ngFalseValue",d.ngFalseValue,!1);c.on("click",function(a){e.$setViewValue(c[0].checked,a&&a.type)});e.$render=function(){c[0].checked=
|
|
|
|
|
e.$viewValue};e.$isEmpty=function(a){return!1===a};e.$formatters.push(function(a){return ka(a,k)});e.$parsers.push(function(a){return a?k:m})},hidden:z,button:z,submit:z,reset:z,file:z},yc=["$browser","$sniffer","$filter","$parse",function(a,c,d,e){return{restrict:"E",require:["?ngModel"],link:{pre:function(f,h,g,l){l[0]&&(Md[N(g.type)]||Md.text)(f,h,g,l[0],c,a,d,e)}}}}],ng=/^(true|false|\d+)$/,Ie=function(){return{restrict:"A",priority:100,compile:function(a,c){return ng.test(c.ngValue)?function(a,
|
|
|
|
|
c,f){f.$set("value",a.$eval(f.ngValue))}:function(a,c,f){a.$watch(f.ngValue,function(a){f.$set("value",a)})}}}},ie=["$compile",function(a){return{restrict:"AC",compile:function(c){a.$$addBindingClass(c);return function(c,e,f){a.$$addBindingInfo(e,f.ngBind);e=e[0];c.$watch(f.ngBind,function(a){e.textContent=a===u?"":a})}}}}],ke=["$interpolate","$compile",function(a,c){return{compile:function(d){c.$$addBindingClass(d);return function(d,f,h){d=a(f.attr(h.$attr.ngBindTemplate));c.$$addBindingInfo(f,d.expressions);
|
|
|
|
|
f=f[0];h.$observe("ngBindTemplate",function(a){f.textContent=a===u?"":a})}}}}],je=["$sce","$parse","$compile",function(a,c,d){return{restrict:"A",compile:function(e,f){var h=c(f.ngBindHtml),g=c(f.ngBindHtml,function(a){return(a||"").toString()});d.$$addBindingClass(e);return function(c,e,f){d.$$addBindingInfo(e,f.ngBindHtml);c.$watch(g,function(){e.html(a.getTrustedHtml(h(c))||"")})}}}}],He=pa({restrict:"A",require:"ngModel",link:function(a,c,d,e){e.$viewChangeListeners.push(function(){a.$eval(d.ngChange)})}}),
|
|
|
|
|
le=hc("",!0),ne=hc("Odd",0),me=hc("Even",1),oe=La({compile:function(a,c){c.$set("ngCloak",u);a.removeClass("ng-cloak")}}),pe=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Dc={},og={blur:!0,focus:!0};n("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(a){var c=wa("ng-"+a);Dc[c]=["$parse","$rootScope",function(d,e){return{restrict:"A",compile:function(f,h){var g=
|
|
|
|
|
d(h[c],null,!0);return function(c,d){d.on(a,function(d){var f=function(){g(c,{$event:d})};og[a]&&e.$$phase?c.$evalAsync(f):c.$apply(f)})}}}}]});var se=["$animate",function(a){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(c,d,e,f,h){var g,l,k;c.$watch(e.ngIf,function(c){c?l||h(function(c,f){l=f;c[c.length++]=Y.createComment(" end ngIf: "+e.ngIf+" ");g={clone:c};a.enter(c,d.parent(),d)}):(k&&(k.remove(),k=null),l&&(l.$destroy(),l=null),g&&(k=
|
|
|
|
|
mb(g.clone),a.leave(k).then(function(){k=null}),g=null))})}}}],te=["$templateRequest","$anchorScroll","$animate","$sce",function(a,c,d,e){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:aa.noop,compile:function(f,h){var g=h.ngInclude||h.src,l=h.onload||"",k=h.autoscroll;return function(f,h,n,t,s){var u=0,v,p,x,A=function(){p&&(p.remove(),p=null);v&&(v.$destroy(),v=null);x&&(d.leave(x).then(function(){p=null}),p=x,x=null)};f.$watch(e.parseAsResourceUrl(g),function(e){var g=
|
|
|
|
|
function(){!w(k)||k&&!f.$eval(k)||c()},n=++u;e?(a(e,!0).then(function(a){if(n===u){var c=f.$new();t.template=a;a=s(c,function(a){A();d.enter(a,null,h).then(g)});v=c;x=a;v.$emit("$includeContentLoaded",e);f.$eval(l)}},function(){n===u&&(A(),f.$emit("$includeContentError",e))}),f.$emit("$includeContentRequested",e)):(A(),t.template=null)})}}}}],Ke=["$compile",function(a){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(c,d,e,f){/SVG/.test(d[0].toString())?(d.empty(),a(Gc(f.template,
|
|
|
|
|
Y).childNodes)(c,function(a){d.append(a)},{futureParentElement:d})):(d.html(f.template),a(d.contents())(c))}}}],ue=La({priority:450,compile:function(){return{pre:function(a,c,d){a.$eval(d.ngInit)}}}}),Ge=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(a,c,d,e){var f=c.attr(d.$attr.ngList)||", ",h="false"!==d.ngTrim,g=h?V(f):f;e.$parsers.push(function(a){if(!F(a)){var c=[];a&&n(a.split(g),function(a){a&&c.push(h?V(a):a)});return c}});e.$formatters.push(function(a){return I(a)?
|
|
|
|
|
a.join(f):u});e.$isEmpty=function(a){return!a||!a.length}}}},ib="ng-valid",Ed="ng-invalid",Qa="ng-pristine",Gb="ng-dirty",Gd="ng-pending",Ib=new J("ngModel"),pg=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(a,c,d,e,f,h,g,l,k,m){this.$modelValue=this.$viewValue=Number.NaN;this.$$rawModelValue=u;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;
|
|
|
|
|
this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=u;this.$name=m(d.name||"",!1)(a);var q=f(d.ngModel),r=q.assign,t=q,s=r,E=null,v,p=this;this.$$setOptions=function(a){if((p.$options=a)&&a.getterSetter){var c=f(d.ngModel+"()"),g=f(d.ngModel+"($$$p)");t=function(a){var d=q(a);H(d)&&(d=c(a));return d};s=function(a,c){H(q(a))?g(a,{$$$p:p.$modelValue}):r(a,p.$modelValue)}}else if(!q.assign)throw Ib("nonassign",d.ngModel,ua(e));
|
|
|
|
|
};this.$render=z;this.$isEmpty=function(a){return F(a)||""===a||null===a||a!==a};var x=e.inheritedData("$formController")||Fb,A=0;Bd({ctrl:this,$element:e,set:function(a,c){a[c]=!0},unset:function(a,c){delete a[c]},parentForm:x,$animate:h});this.$setPristine=function(){p.$dirty=!1;p.$pristine=!0;h.removeClass(e,Gb);h.addClass(e,Qa)};this.$setDirty=function(){p.$dirty=!0;p.$pristine=!1;h.removeClass(e,Qa);h.addClass(e,Gb);x.$setDirty()};this.$setUntouched=function(){p.$touched=!1;p.$untouched=!0;h.setClass(e,
|
|
|
|
|
"ng-untouched","ng-touched")};this.$setTouched=function(){p.$touched=!0;p.$untouched=!1;h.setClass(e,"ng-touched","ng-untouched")};this.$rollbackViewValue=function(){g.cancel(E);p.$viewValue=p.$$lastCommittedViewValue;p.$render()};this.$validate=function(){if(!X(p.$modelValue)||!isNaN(p.$modelValue)){var a=p.$$rawModelValue,c=p.$valid,d=p.$modelValue,e=p.$options&&p.$options.allowInvalid;p.$$runValidators(a,p.$$lastCommittedViewValue,function(f){e||c===f||(p.$modelValue=f?a:u,p.$modelValue!==d&&p.$$writeModelToScope())})}};
|
|
|
|
|
this.$$runValidators=function(a,c,d){function e(){var d=!0;n(p.$validators,function(e,f){var h=e(a,c);d=d&&h;g(f,h)});return d?!0:(n(p.$asyncValidators,function(a,c){g(c,null)}),!1)}function f(){var d=[],e=!0;n(p.$asyncValidators,function(f,h){var k=f(a,c);if(!k||!H(k.then))throw Ib("$asyncValidators",k);g(h,u);d.push(k.then(function(){g(h,!0)},function(a){e=!1;g(h,!1)}))});d.length?k.all(d).then(function(){h(e)},z):h(!0)}function g(a,c){l===A&&p.$setValidity(a,c)}function h(a){l===A&&d(a)}A++;var l=
|
|
|
|
|
A;(function(){var a=p.$$parserName||"parse";if(v===u)g(a,null);else return v||(n(p.$validators,function(a,c){g(c,null)}),n(p.$asyncValidators,function(a,c){g(c,null)})),g(a,v),v;return!0})()?e()?f():h(!1):h(!1)};this.$commitViewValue=function(){var a=p.$viewValue;g.cancel(E);if(p.$$lastCommittedViewValue!==a||""===a&&p.$$hasNativeValidators)p.$$lastCommittedViewValue=a,p.$pristine&&this.$setDirty(),this.$$parseAndValidate()};this.$$parseAndValidate=function(){var c=p.$$lastCommittedViewValue;if(v=
|
|
|
|
|
F(c)?u:!0)for(var d=0;d<p.$parsers.length;d++)if(c=p.$parsers[d](c),F(c)){v=!1;break}X(p.$modelValue)&&isNaN(p.$modelValue)&&(p.$modelValue=t(a));var e=p.$modelValue,f=p.$options&&p.$options.allowInvalid;p.$$rawModelValue=c;f&&(p.$modelValue=c,p.$modelValue!==e&&p.$$writeModelToScope());p.$$runValidators(c,p.$$lastCommittedViewValue,function(a){f||(p.$modelValue=a?c:u,p.$modelValue!==e&&p.$$writeModelToScope())})};this.$$writeModelToScope=function(){s(a,p.$modelValue);n(p.$viewChangeListeners,function(a){try{a()}catch(d){c(d)}})};
|
|
|
|
|
this.$setViewValue=function(a,c){p.$viewValue=a;p.$options&&!p.$options.updateOnDefault||p.$$debounceViewValueCommit(c)};this.$$debounceViewValueCommit=function(c){var d=0,e=p.$options;e&&w(e.debounce)&&(e=e.debounce,X(e)?d=e:X(e[c])?d=e[c]:X(e["default"])&&(d=e["default"]));g.cancel(E);d?E=g(function(){p.$commitViewValue()},d):l.$$phase?p.$commitViewValue():a.$apply(function(){p.$commitViewValue()})};a.$watch(function(){var c=t(a);if(c!==p.$modelValue&&(p.$modelValue===p.$modelValue||c===c)){p.$modelValue=
|
|
|
|
|
p.$$rawModelValue=c;v=u;for(var d=p.$formatters,e=d.length,f=c;e--;)f=d[e](f);p.$viewValue!==f&&(p.$viewValue=p.$$lastCommittedViewValue=f,p.$render(),p.$$runValidators(c,f,z))}return c})}],Fe=["$rootScope",function(a){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:pg,priority:1,compile:function(c){c.addClass(Qa).addClass("ng-untouched").addClass(ib);return{pre:function(a,c,f,h){var g=h[0],l=h[1]||Fb;g.$$setOptions(h[2]&&h[2].$options);l.$addControl(g);f.$observe("name",
|
|
|
|
|
function(a){g.$name!==a&&l.$$renameControl(g,a)});a.$on("$destroy",function(){l.$removeControl(g)})},post:function(c,e,f,h){var g=h[0];if(g.$options&&g.$options.updateOn)e.on(g.$options.updateOn,function(a){g.$$debounceViewValueCommit(a&&a.type)});e.on("blur",function(e){g.$touched||(a.$$phase?c.$evalAsync(g.$setTouched):c.$apply(g.$setTouched))})}}}}}],qg=/(\s+|^)default(\s+|$)/,Je=function(){return{restrict:"A",controller:["$scope","$attrs",function(a,c){var d=this;this.$options=ta(a.$eval(c.ngModelOptions));
|
|
|
|
|
this.$options.updateOn!==u?(this.$options.updateOnDefault=!1,this.$options.updateOn=V(this.$options.updateOn.replace(qg,function(){d.$options.updateOnDefault=!0;return" "}))):this.$options.updateOnDefault=!0}]}},ve=La({terminal:!0,priority:1E3}),rg=J("ngOptions"),sg=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,
|
|
|
|
|
De=["$compile","$parse",function(a,c){function d(a,d,e){function f(a,c,d,e,g){this.selectValue=a;this.viewValue=c;this.label=d;this.group=e;this.disabled=g}var m=a.match(sg);if(!m)throw rg("iexp",a,ua(d));var n=m[5]||m[7],r=m[6];a=/ as /.test(m[0])&&m[1];var s=m[9];d=c(m[2]?m[1]:n);var u=a&&c(a)||d,w=s&&c(s),v=s?function(a,c){return w(e,c)}:function(a){return Ea(a)},p=c(m[2]||m[1]),x=c(m[3]||""),A=c(m[4]||""),y=c(m[8]),L={},M=r?function(a,c){L[r]=c;L[n]=a;return L}:function(a){L[n]=a;return L};return{trackBy:s,
|
|
|
|
|
getWatchables:c(y,function(a){var c=[];a=a||[];Object.keys(a).forEach(function(d){var f=M(a[d],d);d=v(a[d],f);c.push(d);m[2]&&(d=p(e,f),c.push(d));m[4]&&(f=A(e,f),c.push(f))});return c}),getOptions:function(){var a=[],c={},d=y(e)||[];Object.keys(d).forEach(function(g){if("$"!==g.charAt(0)){var h=M(d[g],g),m=u(e,h);g=v(m,h);var n=p(e,h),q=x(e,h),h=A(e,h),m=new f(g,m,n,q,h);a.push(m);c[g]=m}});return{items:a,selectValueMap:c,getOptionFromViewValue:function(a){return c[v(a,M(a))]},getViewValueFromOption:function(a){return s?
|
|
|
|
|
aa.copy(a.viewValue):a.viewValue}}}}}var e=Y.createElement("option"),f=Y.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","?ngModel"],link:function(c,g,l,k){function m(a,c){a.element=c;c.disabled=a.disabled;a.value!==c.value&&(c.value=a.selectValue);a.label!==c.label&&(c.label=a.label,c.textContent=a.label)}function q(a,c,d,e){c&&N(c.nodeName)===d?d=c:(d=e.cloneNode(!1),c?a.insertBefore(d,c):a.appendChild(d));return d}function r(a){for(var c;a;)c=a.nextSibling,Ub(a),a=c}
|
|
|
|
|
function s(a){var c=p&&p[0],d=A&&A[0];if(c||d)for(;a&&(a===c||a===d);)a=a.nextSibling;return a}function u(){var a=y&&v.readValue();y=L.getOptions();var c={},d=g[0].firstChild;x&&g.prepend(p);d=s(d);y.items.forEach(function(a){var h,k;a.group?(h=c[a.group],h||(h=q(g[0],d,"optgroup",f),d=h.nextSibling,h.label=a.group,h=c[a.group]={groupElement:h,currentOptionElement:h.firstChild}),k=q(h.groupElement,h.currentOptionElement,"option",e),m(a,k),h.currentOptionElement=k.nextSibling):(k=q(g[0],d,"option",
|
|
|
|
|
e),m(a,k),d=k.nextSibling)});Object.keys(c).forEach(function(a){r(c[a].currentOptionElement)});r(d);w.$render();if(!w.$isEmpty(a)){var h=v.readValue();if(L.trackBy&&!ka(a,h)||a!==h)w.$setViewValue(h),w.$render()}}var w=k[1];if(w){var v=k[0];k=l.multiple;var p=v.emptyOption,x=!!p,A=E(e.cloneNode(!1));A.val("?");var y,L=d(l.ngOptions,g,c);v.writeValue=function(a){var c=y.getOptionFromViewValue(a);c&&!c.disabled?g[0].value!==c.selectValue&&(A.remove(),x||p.remove(),g[0].value=c.selectValue,c.element.selected=
|
|
|
|
|
!0,c.element.setAttribute("selected","selected")):null===a||x?(A.remove(),x||g.prepend(p),g.val(""),p.prop("selected",!0),p.attr("selected",!0)):(x||p.remove(),g.prepend(A),g.val("?"),A.prop("selected",!0),A.attr("selected",!0))};v.readValue=function(){var a=y.selectValueMap[g.val()];return a&&!a.disabled?(x||p.remove(),A.remove(),y.getViewValueFromOption(a)):null};k&&(w.$isEmpty=function(a){return!a||0===a.length},v.writeValue=function(a){y.items.forEach(function(a){a.element.selected=!1});a&&a.forEach(function(a){(a=
|
|
|
|
|
y.getOptionFromViewValue(a))&&!a.disabled&&(a.element.selected=!0)})},v.readValue=function(){var a=g.val()||[],c=[];n(a,function(a){a=y.selectValueMap[a];a.disabled||c.push(y.getViewValueFromOption(a))});return c});x?(p.remove(),a(p)(c),p.removeClass("ng-scope")):p=E(e.cloneNode(!1));u();c.$watchCollection(L.getWatchables,u);L.trackBy&&c.$watch(l.ngModel,function(){w.$render()},!0)}}}}],we=["$locale","$interpolate","$log",function(a,c,d){var e=/{}/g,f=/^when(Minus)?(.+)$/;return{link:function(h,g,
|
|
|
|
|
l){function k(a){g.text(a||"")}var m=l.count,q=l.$attr.when&&g.attr(l.$attr.when),r=l.offset||0,s=h.$eval(q)||{},u={},w=c.startSymbol(),v=c.endSymbol(),p=w+m+"-"+r+v,x=aa.noop,A;n(l,function(a,c){var d=f.exec(c);d&&(d=(d[1]?"-":"")+N(d[2]),s[d]=g.attr(l.$attr[c]))});n(s,function(a,d){u[d]=c(a.replace(e,p))});h.$watch(m,function(c){var e=parseFloat(c),f=isNaN(e);f||e in s||(e=a.pluralCat(e-r));e===A||f&&X(A)&&isNaN(A)||(x(),f=u[e],F(f)?(null!=c&&d.debug("ngPluralize: no rule defined for '"+e+"' in "+
|
|
|
|
|
q),x=z,k()):x=h.$watch(f,k),A=e)})}}}],xe=["$parse","$animate",function(a,c){var d=J("ngRepeat"),e=function(a,c,d,e,k,m,n){a[d]=e;k&&(a[k]=m);a.$index=c;a.$first=0===c;a.$last=c===n-1;a.$middle=!(a.$first||a.$last);a.$odd=!(a.$even=0===(c&1))};return{restrict:"A",multiElement:!0,transclude:"element",priority:1E3,terminal:!0,$$tlb:!0,compile:function(f,h){var g=h.ngRepeat,l=Y.createComment(" end ngRepeat: "+g+" "),k=g.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);
|
|
|
|
|
if(!k)throw d("iexp",g);var m=k[1],q=k[2],r=k[3],s=k[4],k=m.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!k)throw d("iidexp",m);var w=k[3]||k[1],z=k[2];if(r&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(r)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(r)))throw d("badident",r);var v,p,x,A,y={$id:Ea};s?v=a(s):(x=function(a,c){return Ea(c)},A=function(a){return a});return function(a,f,h,k,m){v&&(p=function(c,d,e){z&&(y[z]=c);y[w]=d;y.$index=
|
|
|
|
|
e;return v(a,y)});var s=ma();a.$watchCollection(q,function(h){var k,q,t=f[0],v,y=ma(),B,F,H,C,J,D,I;r&&(a[r]=h);if(Ra(h))J=h,q=p||x;else for(I in q=p||A,J=[],h)h.hasOwnProperty(I)&&"$"!==I.charAt(0)&&J.push(I);B=J.length;I=Array(B);for(k=0;k<B;k++)if(F=h===J?k:J[k],H=h[F],C=q(F,H,k),s[C])D=s[C],delete s[C],y[C]=D,I[k]=D;else{if(y[C])throw n(I,function(a){a&&a.scope&&(s[a.id]=a)}),d("dupes",g,C,H);I[k]={id:C,scope:u,clone:u};y[C]=!0}for(v in s){D=s[v];C=mb(D.clone);c.leave(C);if(C[0].parentNode)for(k=
|
|
|
|
|
0,q=C.length;k<q;k++)C[k].$$NG_REMOVED=!0;D.scope.$destroy()}for(k=0;k<B;k++)if(F=h===J?k:J[k],H=h[F],D=I[k],D.scope){v=t;do v=v.nextSibling;while(v&&v.$$NG_REMOVED);D.clone[0]!=v&&c.move(mb(D.clone),null,E(t));t=D.clone[D.clone.length-1];e(D.scope,k,w,H,z,F,B)}else m(function(a,d){D.scope=d;var f=l.cloneNode(!1);a[a.length++]=f;c.enter(a,null,E(t));t=f;D.clone=a;y[D.id]=D;e(D.scope,k,w,H,z,F,B)});s=y})}}}}],ye=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(c,d,e){c.$watch(e.ngShow,
|
|
|
|
|
function(c){a[c?"removeClass":"addClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],re=["$animate",function(a){return{restrict:"A",multiElement:!0,link:function(c,d,e){c.$watch(e.ngHide,function(c){a[c?"addClass":"removeClass"](d,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],ze=La(function(a,c,d){a.$watch(d.ngStyle,function(a,d){d&&a!==d&&n(d,function(a,d){c.css(d,"")});a&&c.css(a)},!0)}),Ae=["$animate",function(a){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],
|
|
|
|
|
link:function(c,d,e,f){var h=[],g=[],l=[],k=[],m=function(a,c){return function(){a.splice(c,1)}};c.$watch(e.ngSwitch||e.on,function(c){var d,e;d=0;for(e=l.length;d<e;++d)a.cancel(l[d]);d=l.length=0;for(e=k.length;d<e;++d){var s=mb(g[d].clone);k[d].$destroy();(l[d]=a.leave(s)).then(m(l,d))}g.length=0;k.length=0;(h=f.cases["!"+c]||f.cases["?"])&&n(h,function(c){c.transclude(function(d,e){k.push(e);var f=c.element;d[d.length++]=Y.createComment(" end ngSwitchWhen: ");g.push({clone:d});a.enter(d,f.parent(),
|
|
|
|
|
f)})})})}}}],Be=La({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,c,d,e,f){e.cases["!"+d.ngSwitchWhen]=e.cases["!"+d.ngSwitchWhen]||[];e.cases["!"+d.ngSwitchWhen].push({transclude:f,element:c})}}),Ce=La({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(a,c,d,e,f){e.cases["?"]=e.cases["?"]||[];e.cases["?"].push({transclude:f,element:c})}}),Ee=La({restrict:"EAC",link:function(a,c,d,e,f){if(!f)throw J("ngTransclude")("orphan",
|
|
|
|
|
ua(c));f(function(a){c.empty();c.append(a)})}}),ee=["$templateCache",function(a){return{restrict:"E",terminal:!0,compile:function(c,d){"text/ng-template"==d.type&&a.put(d.id,c[0].text)}}}],tg={$setViewValue:z,$render:z},ug=["$element","$scope","$attrs",function(a,c,d){var e=this,f=new eb;e.ngModelCtrl=tg;e.unknownOption=E(Y.createElement("option"));e.renderUnknownOption=function(c){c="? "+Ea(c)+" ?";e.unknownOption.val(c);a.prepend(e.unknownOption);a.val(c)};c.$on("$destroy",function(){e.renderUnknownOption=
|
|
|
|
|
z});e.removeUnknownOption=function(){e.unknownOption.parent()&&e.unknownOption.remove()};c=0;d=a.children();for(var h=d.length;c<h;c++)if(""===d[c].value){e.emptyOption=d.eq(c);break}e.readValue=function(){e.removeUnknownOption();return a.val()};e.writeValue=function(c){e.hasOption(c)?(e.removeUnknownOption(),a.val(c),""===c&&e.emptyOption.prop("selected",!0)):F(c)&&e.emptyOption?(e.removeUnknownOption(),a.val("")):e.renderUnknownOption(c)};e.addOption=function(a){Pa(a,'"option value"');var c=f.get(a)||
|
|
|
|
|
0;f.put(a,c+1)};e.removeOption=function(a){var c=f.get(a);c&&(1===c?f.remove(a):f.put(a,c-1))};e.hasOption=function(a){return!!f.get(a)}}],fe=function(){return{restrict:"E",require:["select","?ngModel"],controller:ug,link:function(a,c,d,e){var f=e[1];if(f){var h=e[0];h.ngModelCtrl=f;f.$render=function(){h.writeValue(f.$viewValue)};c.on("change",function(){a.$apply(function(){f.$setViewValue(h.readValue())})});if(d.multiple){h.readValue=function(){var a=[];n(c.find("option"),function(c){c.selected&&
|
|
|
|
|
a.push(c.value)});return a};h.writeValue=function(a){var d=new eb(a);n(c.find("option"),function(a){a.selected=w(d.get(a.value))})};var g,l=NaN;a.$watch(function(){l!==f.$viewValue||ka(g,f.$viewValue)||(g=fa(f.$viewValue),f.$render());l=f.$viewValue});f.$isEmpty=function(a){return!a||0===a.length}}}}}},he=["$interpolate",function(a){function c(a){a[0].hasAttribute("selected")&&(a[0].selected=!0)}return{restrict:"E",priority:100,compile:function(d,e){if(F(e.value)){var f=a(d.text(),!0);f||e.$set("value",
|
|
|
|
|
d.text())}return function(a,d,e){var k=d.parent(),m=k.data("$selectController")||k.parent().data("$selectController");m&&m.ngModelCtrl&&(f?a.$watch(f,function(a,f){e.$set("value",a);f!==a&&m.removeOption(f);m.addOption(a,d);m.ngModelCtrl.$render();c(d)}):(m.addOption(e.value,d),m.ngModelCtrl.$render(),c(d)),d.on("$destroy",function(){m.removeOption(e.value);m.ngModelCtrl.$render()}))}}}}],ge=pa({restrict:"E",terminal:!1}),Ac=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){e&&
|
|
|
|
|
(d.required=!0,e.$validators.required=function(a,c){return!d.required||!e.$isEmpty(c)},d.$observe("required",function(){e.$validate()}))}}},zc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f,h=d.ngPattern||d.pattern;d.$observe("pattern",function(a){D(a)&&0<a.length&&(a=new RegExp("^"+a+"$"));if(a&&!a.test)throw J("ngPattern")("noregexp",h,a,ua(c));f=a||u;e.$validate()});e.$validators.pattern=function(a){return e.$isEmpty(a)||F(f)||f.test(a)}}}}},Cc=function(){return{restrict:"A",
|
|
|
|
|
require:"?ngModel",link:function(a,c,d,e){if(e){var f=-1;d.$observe("maxlength",function(a){a=ca(a);f=isNaN(a)?-1:a;e.$validate()});e.$validators.maxlength=function(a,c){return 0>f||e.$isEmpty(c)||c.length<=f}}}}},Bc=function(){return{restrict:"A",require:"?ngModel",link:function(a,c,d,e){if(e){var f=0;d.$observe("minlength",function(a){f=ca(a)||0;e.$validate()});e.$validators.minlength=function(a,c){return e.$isEmpty(c)||c.length>=f}}}}};O.angular.bootstrap?console.log("WARNING: Tried to load angular more than once."):
|
|
|
|
|
(Xd(),Zd(aa),E(Y).ready(function(){Td(Y,tc)}))})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>');
|
|
|
|
|
//# sourceMappingURL=angular.min.js.map
|
|
|
|
|