UNPKG

ng2-adal-aot

Version:
1 lines 343 kB
System.registerDynamic("ng2-adal/services.js",["./services/adal.service","./services/authHttp.service"],!0,function(a,b,c){"use strict";this||self;Object.defineProperty(b,"__esModule",{value:!0});var d=a("./services/adal.service");b.AdalService=d.AdalService;var e=a("./services/authHttp.service");b.AuthHttp=e.AuthHttp}),System.registerDynamic("ng2-adal/modules/adal.module.js",["@angular/core","./../services/adal.service"],!0,function(a,b,c){"use strict";var d=(this||self,b&&b.__decorate||function(a,b,c,d){var e,f=arguments.length,g=f<3?b:null===d?d=Object.getOwnPropertyDescriptor(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(f<3?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&Object.defineProperty(b,c,g),g});Object.defineProperty(b,"__esModule",{value:!0});var e=a("@angular/core"),f=a("./../services/adal.service"),g=function(){function a(){}return a}();g=d([e.NgModule({imports:[],exports:[],declarations:[],providers:[f.AdalService]})],g),b.AdalModule=g}),System.register("@angular/http/src/backends/browser_jsonp.js",["@angular/core"],function(a){"use strict";function b(){var a="object"==("undefined"==typeof window?"undefined":$traceurRuntime.typeof(window))?window:{};return null===f&&(f=a[e]={}),f}var c,d,e,f,g;return{setters:[function(a){c=a.Injectable}],execute:function(){d=0,e="__ng_jsonp__",a("JSONP_HOME",e),f=null,g=function(){function a(){}return a.prototype.build=function(a){var b=document.createElement("script");return b.src=a,b},a.prototype.nextRequestID=function(){return"__req"+d++},a.prototype.requestCallback=function(a){return e+"."+a+".finished"},a.prototype.exposeConnection=function(a,c){b()[a]=c},a.prototype.removeConnection=function(a){b()[a]=null},a.prototype.send=function(a){document.body.appendChild(a)},a.prototype.cleanup=function(a){a.parentNode&&a.parentNode.removeChild(a)},a.decorators=[{type:c}],a.ctorParameters=function(){return[]},a}(),a("BrowserJsonp",g)}}}),System.register("@angular/http/src/backends/jsonp_backend.js",["@angular/core","rxjs/Observable","../base_response_options","../enums","../interfaces","../static_response","./browser_jsonp"],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){c=a.Injectable},function(a){d=a.Observable},function(a){e=a.ResponseOptions},function(a){f=a.ReadyState,g=a.RequestMethod,h=a.ResponseType},function(a){i=a.ConnectionBackend},function(a){j=a.Response},function(a){k=a.BrowserJsonp}],execute:function(){b=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l="JSONP injected script did not invoke callback.",m="JSONP requests must use GET request method.",n=function(){function a(){}return a.prototype.finished=function(a){},a}(),a("JSONPConnection",n),o=function(a){function c(b,c,i){var k=this;if(a.call(this),this._dom=c,this.baseResponseOptions=i,this._finished=!1,b.method!==g.Get)throw new TypeError(m);this.request=b,this.response=new d(function(a){k.readyState=f.Loading;var d=k._id=c.nextRequestID();c.exposeConnection(d,k);var g=c.requestCallback(k._id),m=b.url;m.indexOf("=JSONP_CALLBACK&")>-1?m=m.replace("=JSONP_CALLBACK&","="+g+"&"):m.lastIndexOf("=JSONP_CALLBACK")===m.length-"=JSONP_CALLBACK".length&&(m=m.substring(0,m.length-"=JSONP_CALLBACK".length)+"="+g);var n=k._script=c.build(m),o=function(b){if(k.readyState!==f.Cancelled){if(k.readyState=f.Done,c.cleanup(n),!k._finished){var d=new e({body:l,type:h.Error,url:m});return i&&(d=i.merge(d)),void a.error(new j(d))}var g=new e({body:k._responseData,url:m});k.baseResponseOptions&&(g=k.baseResponseOptions.merge(g)),a.next(new j(g)),a.complete()}},p=function(b){if(k.readyState!==f.Cancelled){k.readyState=f.Done,c.cleanup(n);var d=new e({body:b.message,type:h.Error});i&&(d=i.merge(d)),a.error(new j(d))}};return n.addEventListener("load",o),n.addEventListener("error",p),c.send(n),function(){k.readyState=f.Cancelled,n.removeEventListener("load",o),n.removeEventListener("error",p),k._dom.cleanup(n)}})}return b(c,a),c.prototype.finished=function(a){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==f.Cancelled&&(this._responseData=a)},c}(n),a("JSONPConnection_",o),p=function(a){function c(){a.apply(this,arguments)}return b(c,a),c}(i),a("JSONPBackend",p),q=function(a){function d(b,c){a.call(this),this._browserJSONP=b,this._baseResponseOptions=c}return b(d,a),d.prototype.createConnection=function(a){return new o(a,this._browserJSONP,this._baseResponseOptions)},d.decorators=[{type:c}],d.ctorParameters=function(){return[{type:k},{type:e}]},d}(p),a("JSONPBackend_",q)}}}),System.register("@angular/platform-browser/src/facade/browser.js",[],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l,m;return{setters:[],execute:function(){b="undefined"!=typeof window&&window||{},a("window",b),c=b.document,a("document",c),d=b.location,a("location",d),e=b.gc?function(){return b.gc()}:function(){return null},a("gc",e),f=b.performance?b.performance:null,a("performance",f),g=b.Event,a("Event",g),h=b.MouseEvent,a("MouseEvent",h),i=b.KeyboardEvent,a("KeyboardEvent",i),j=b.EventTarget,a("EventTarget",j),k=b.History,a("History",k),l=b.Location,a("Location",l),m=b.EventListener,a("EventListener",m)}}}),System.register("@angular/platform-browser/src/browser/tools/common_tools.js",["@angular/core","../../dom/dom_adapter","../../facade/browser","../../facade/lang"],function(a){"use strict";var b,c,d,e,f,g,h;return{setters:[function(a){b=a.ApplicationRef},function(a){c=a.getDOM},function(a){d=a.window},function(a){e=a.isPresent}],execute:function(){f=function(){function a(a,b){this.msPerTick=a,this.numTicks=b}return a}(),a("ChangeDetectionPerfRecord",f),g=function(){function a(a){this.profiler=new h(a)}return a}(),a("AngularTools",g),h=function(){function a(a){this.appRef=a.injector.get(b)}return a.prototype.timeChangeDetection=function(a){var b=a&&a.record,g="Change Detection",h=e(d.console.profile);b&&h&&d.console.profile(g);for(var i=c().performanceNow(),j=0;j<5||c().performanceNow()-i<500;)this.appRef.tick(),j++;var k=c().performanceNow();b&&h&&d.console.profileEnd(g);var l=(k-i)/j;return d.console.log("ran "+j+" change detection cycles"),d.console.log(l.toFixed(2)+" ms per check"),new f(l,j)},a}(),a("AngularProfiler",h)}}}),System.register("@angular/platform-browser/src/browser/tools/tools.js",["../../facade/lang","./common_tools"],function(a){"use strict";function b(a){return Object.assign(f.ng,new e(a)),a}function c(){f.ng&&delete f.ng.profiler}var d,e,f;return a("enableDebugTools",b),a("disableDebugTools",c),{setters:[function(a){d=a.global},function(a){e=a.AngularTools}],execute:function(){f=d}}}),System.register("@angular/platform-browser/src/dom/debug/by.js",["../../dom/dom_adapter","../../facade/lang"],function(a){"use strict";var b,c,d;return{setters:[function(a){b=a.getDOM},function(a){c=a.isPresent}],execute:function(){d=function(){function a(){}return a.all=function(){return function(a){return!0}},a.css=function(a){return function(d){return!!c(d.nativeElement)&&b().elementMatches(d.nativeElement,a)}},a.directive=function(a){return function(b){return-1!==b.providerTokens.indexOf(a)}},a}(),a("By",d)}}}),System.register("@angular/platform-browser/src/browser/title.js",["../dom/dom_adapter"],function(a){"use strict";var b,c;return{setters:[function(a){b=a.getDOM}],execute:function(){c=function(){function a(){}return a.prototype.getTitle=function(){return b().getTitle()},a.prototype.setTitle=function(a){b().setTitle(a)},a}(),a("Title",c)}}}),System.register("@angular/platform-browser/src/security/html_sanitizer.js",["@angular/core","../dom/dom_adapter","./url_sanitizer"],function(a){"use strict";function b(){if(l)return l;m=i();var a=m.createElement("template");if("content"in a)return a;var b=m.createHtmlDocument();if(null==(l=m.querySelector(b,"body"))){var c=m.createElement("html",b);l=m.createElement("body",b),m.appendChild(c,l),m.appendChild(b,c)}return l}function c(a){for(var b={},c=0,d=a.split(",");c<d.length;c++){b[d[c]]=!0}return b}function d(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c={},d=0,e=a;d<e.length;d++){var f=e[d];for(var g in f)f.hasOwnProperty(g)&&(c[g]=!0)}return c}function e(a){return a.replace(/&/g,"&amp;").replace(z,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(A,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function f(a){m.attributeMap(a).forEach(function(b,c){"xmlns:ns1"!==c&&0!==c.indexOf("ns1:")||m.removeAttribute(a,c)});for(var b=0,c=m.childNodesAsList(a);b<c.length;b++){var d=c[b];m.isElementNode(d)&&f(d)}}function g(a){try{var c=b(),d=a?String(a):"",e=5,g=d;do{if(0===e)throw new Error("Failed to sanitize html because the input is unstable");e--,d=g,m.setInnerHTML(c,d),m.defaultDoc().documentMode&&f(c),g=m.getInnerHTML(c)}while(d!==g);for(var i=new y,j=i.sanitizeChildren(m.getTemplateContent(c)||c),k=m.getTemplateContent(c)||c,n=0,o=m.childNodesAsList(k);n<o.length;n++){var p=o[n];m.removeChild(k,p)}return h()&&i.sanitizedSomething&&m.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),j}catch(a){throw l=null,a}}var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A;return a("sanitizeHtml",g),{setters:[function(a){h=a.isDevMode},function(a){i=a.getDOM},function(a){j=a.sanitizeSrcset,k=a.sanitizeUrl}],execute:function(){l=null,m=null,n=c("area,br,col,hr,img,wbr"),o=c("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),p=c("rp,rt"),q=d(p,o),r=d(o,c("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),s=d(p,c("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),t=d(n,r,s,q),u=c("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),v=c("srcset"),w=c("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),x=d(u,v,w),y=function(){function a(){this.sanitizedSomething=!1,this.buf=[]}return a.prototype.sanitizeChildren=function(a){for(var b=a.firstChild;b;)if(m.isElementNode(b)?this.startElement(b):m.isTextNode(b)?this.chars(m.nodeValue(b)):this.sanitizedSomething=!0,m.firstChild(b))b=m.firstChild(b);else for(;b;){if(m.isElementNode(b)&&this.endElement(b),m.nextSibling(b)){b=m.nextSibling(b);break}b=m.parentElement(b)}return this.buf.join("")},a.prototype.startElement=function(a){var b=this,c=m.nodeName(a).toLowerCase();if(!t.hasOwnProperty(c))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(c),m.attributeMap(a).forEach(function(a,c){var d=c.toLowerCase();if(!x.hasOwnProperty(d))return void(b.sanitizedSomething=!0);u[d]&&(a=k(a)),v[d]&&(a=j(a)),b.buf.push(" "),b.buf.push(c),b.buf.push('="'),b.buf.push(e(a)),b.buf.push('"')}),this.buf.push(">")},a.prototype.endElement=function(a){var b=m.nodeName(a).toLowerCase();t.hasOwnProperty(b)&&!n.hasOwnProperty(b)&&(this.buf.push("</"),this.buf.push(b),this.buf.push(">"))},a.prototype.chars=function(a){this.buf.push(e(a))},a}(),z=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,A=/([^\#-~ |!])/g}}}),System.register("@angular/platform-browser/src/security/style_sanitizer.js",["@angular/core","../dom/dom_adapter","./url_sanitizer"],function(a){"use strict";function b(a){for(var b=!0,c=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"===e&&c?b=!b:'"'===e&&b&&(c=!c)}return b&&c}function c(a){if(!(a=String(a).trim()))return"";var c=a.match(n);return c&&f(c[1])===c[1]||a.match(m)&&b(a)?a:(d()&&e().log("WARNING: sanitizing unsafe style value "+a+" (see http://g.co/ng/security#xss)."),"unsafe")}var d,e,f,g,h,i,j,k,l,m,n;return a("sanitizeStyle",c),{setters:[function(a){d=a.isDevMode},function(a){e=a.getDOM},function(a){f=a.sanitizeUrl}],execute:function(){g="[-,.\"'%_!# a-zA-Z0-9]+",h="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",i="(?:rgb|hsl)a?",j="(?:repeating-)?(?:linear|radial)-gradient",k="(?:calc|attr)",l="\\([-0-9.%, #a-zA-Z]+\\)",m=new RegExp("^("+g+"|(?:"+h+"|"+i+"|"+j+"|"+k+")"+l+")$","g"),n=/^url\(([^)]+)\)$/}}}),System.register("@angular/platform-browser/src/security/url_sanitizer.js",["@angular/core","../dom/dom_adapter"],function(a){"use strict";function b(a){return a=String(a),a.match(f)||a.match(h)?a:(d()&&e().log("WARNING: sanitizing unsafe URL value "+a+" (see http://g.co/ng/security#xss)"),"unsafe:"+a)}function c(a){return a=String(a),a.split(",").map(function(a){return b(a.trim())}).join(", ")}var d,e,f,g,h;return a("sanitizeUrl",b),a("sanitizeSrcset",c),{setters:[function(a){d=a.isDevMode},function(a){e=a.getDOM}],execute:function(){f=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,g=/^(?:(?:https?|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,h=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i}}}),System.register("@angular/platform-browser/src/security/dom_sanitization_service.js",["@angular/core","./html_sanitizer","./style_sanitizer","./url_sanitizer"],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l,m,n,o;return{setters:[function(a){c=a.Injectable,d=a.SecurityContext},function(a){e=a.sanitizeHtml},function(a){f=a.sanitizeStyle},function(a){g=a.sanitizeUrl}],execute:function(){b=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},a("SecurityContext",d),h=function(){function a(){}return a.prototype.sanitize=function(a,b){},a.prototype.bypassSecurityTrustHtml=function(a){},a.prototype.bypassSecurityTrustStyle=function(a){},a.prototype.bypassSecurityTrustScript=function(a){},a.prototype.bypassSecurityTrustUrl=function(a){},a.prototype.bypassSecurityTrustResourceUrl=function(a){},a}(),a("DomSanitizer",h),i=function(a){function h(){a.apply(this,arguments)}return b(h,a),h.prototype.sanitize=function(a,b){if(null==b)return null;switch(a){case d.NONE:return b;case d.HTML:return b instanceof k?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"HTML"),e(String(b)));case d.STYLE:return b instanceof l?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"Style"),f(b));case d.SCRIPT:if(b instanceof m)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"Script"),new Error("unsafe value used in a script context");case d.URL:return b instanceof o||b instanceof n?b.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(b,"URL"),g(String(b)));case d.RESOURCE_URL:if(b instanceof o)return b.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(b,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+a+" (see http://g.co/ng/security#xss)")}},h.prototype.checkNotSafeValue=function(a,b){if(a instanceof j)throw new Error("Required a safe "+b+", got a "+a.getTypeName()+" (see http://g.co/ng/security#xss)")},h.prototype.bypassSecurityTrustHtml=function(a){return new k(a)},h.prototype.bypassSecurityTrustStyle=function(a){return new l(a)},h.prototype.bypassSecurityTrustScript=function(a){return new m(a)},h.prototype.bypassSecurityTrustUrl=function(a){return new n(a)},h.prototype.bypassSecurityTrustResourceUrl=function(a){return new o(a)},h.decorators=[{type:c}],h.ctorParameters=function(){return[]},h}(h),a("DomSanitizerImpl",i),j=function(){function a(a){this.changingThisBreaksApplicationSecurity=a}return a.prototype.getTypeName=function(){},a.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},a}(),k=function(a){function c(){a.apply(this,arguments)}return b(c,a),c.prototype.getTypeName=function(){return"HTML"},c}(j),l=function(a){function c(){a.apply(this,arguments)}return b(c,a),c.prototype.getTypeName=function(){return"Style"},c}(j),m=function(a){function c(){a.apply(this,arguments)}return b(c,a),c.prototype.getTypeName=function(){return"Script"},c}(j),n=function(a){function c(){a.apply(this,arguments)}return b(c,a),c.prototype.getTypeName=function(){return"URL"},c}(j),o=function(a){function c(){a.apply(this,arguments)}return b(c,a),c.prototype.getTypeName=function(){return"ResourceURL"},c}(j)}}}),System.register("@angular/platform-browser/src/browser.js",["@angular/common","@angular/core","../src/dom/animation_driver","../src/dom/web_animations_driver","./browser/browser_adapter","./browser/location/browser_platform_location","./browser/testability","./browser/title","./dom/debug/ng_probe","./dom/dom_adapter","./dom/dom_renderer","./dom/dom_tokens","./dom/events/dom_events","./dom/events/event_manager","./dom/events/hammer_gestures","./dom/events/key_events","./dom/shared_styles_host","./security/dom_sanitization_service"],function(a){"use strict";function b(){u.makeCurrent(),w.init()}function c(){return new i}function d(){return z().defaultDoc()}function e(){return z().supportsWebAnimation()?new t:s.NOOP}var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R;return a("initDomAdapter",b),a("errorHandler",c),a("_document",d),a("_resolveDefaultAnimationDriver",e),{setters:[function(a){f=a.CommonModule,g=a.PlatformLocation},function(a){h=a.ApplicationModule,i=a.ErrorHandler,j=a.NgModule,k=a.Optional,l=a.PLATFORM_INITIALIZER,m=a.RootRenderer,n=a.Sanitizer,o=a.SkipSelf,p=a.Testability,q=a.createPlatformFactory,r=a.platformCore},function(a){s=a.AnimationDriver},function(a){t=a.WebAnimationsDriver},function(a){u=a.BrowserDomAdapter},function(a){v=a.BrowserPlatformLocation},function(a){w=a.BrowserGetTestability},function(a){x=a.Title},function(a){y=a.ELEMENT_PROBE_PROVIDERS},function(a){z=a.getDOM},function(a){A=a.DomRootRenderer,B=a.DomRootRenderer_},function(a){C=a.DOCUMENT},function(a){D=a.DomEventsPlugin},function(a){E=a.EVENT_MANAGER_PLUGINS,F=a.EventManager},function(a){G=a.HAMMER_GESTURE_CONFIG,H=a.HammerGestureConfig,I=a.HammerGesturesPlugin},function(a){J=a.KeyEventsPlugin},function(a){K=a.DomSharedStylesHost,L=a.SharedStylesHost},function(a){M=a.DomSanitizer,N=a.DomSanitizerImpl}],execute:function(){O=[{provide:l,useValue:b,multi:!0},{provide:g,useClass:v}],a("INTERNAL_BROWSER_PLATFORM_PROVIDERS",O),P=[{provide:n,useExisting:M},{provide:M,useClass:N}],a("BROWSER_SANITIZATION_PROVIDERS",P),Q=q(r,"browser",O),a("platformBrowser",Q),R=function(){function a(a){if(a)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return a.decorators=[{type:j,args:[{providers:[P,{provide:i,useFactory:c,deps:[]},{provide:C,useFactory:d,deps:[]},{provide:E,useClass:D,multi:!0},{provide:E,useClass:J,multi:!0},{provide:E,useClass:I,multi:!0},{provide:G,useClass:H},{provide:A,useClass:B},{provide:m,useExisting:A},{provide:L,useExisting:K},{provide:s,useFactory:e},K,p,F,y,x],exports:[f,h]}]}],a.ctorParameters=function(){return[{type:a,decorators:[{type:k},{type:o}]}]},a}(),a("BrowserModule",R)}}}),System.register("@angular/platform-browser/src/browser/generic_browser_adapter.js",["../dom/dom_adapter","../facade/lang"],function(a){"use strict";var b,c,d,e;return{setters:[function(a){c=a.DomAdapter},function(a){d=a.isPresent}],execute:function(){b=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function c(){var b=this;a.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var c=this.createElement("div",this.defaultDoc());if(d(this.getStyle(c,"animationName")))this._animationPrefix="";else for(var e=["Webkit","Moz","O","ms"],f=0;f<e.length;f++)if(d(this.getStyle(c,e[f]+"AnimationName"))){this._animationPrefix="-"+e[f].toLowerCase()+"-";break}var g={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(g).forEach(function(a){d(b.getStyle(c,a))&&(b._transitionEnd=g[a])})}catch(a){this._animationPrefix=null,this._transitionEnd=null}}return b(c,a),c.prototype.getDistributedNodes=function(a){return a.getDistributedNodes()},c.prototype.resolveAndSetHref=function(a,b,c){a.href=null==c?b:b+"/../"+c},c.prototype.supportsDOMEvents=function(){return!0},c.prototype.supportsNativeShadowDOM=function(){return"function"==typeof this.defaultDoc().body.createShadowRoot},c.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},c.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},c.prototype.supportsAnimation=function(){return d(this._animationPrefix)&&d(this._transitionEnd)},c}(c),a("GenericBrowserDomAdapter",e)}}}),System.register("@angular/platform-browser/src/browser/browser_adapter.js",["../dom/dom_adapter","../facade/lang","./generic_browser_adapter"],function(a){"use strict";function b(){return q||(q=document.querySelector("base"))?q.getAttribute("href"):null}function c(a){return r||(r=document.createElement("a")),r.setAttribute("href",a),"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}function d(a,b){b=encodeURIComponent(b);for(var c=0,d=a.split(";");c<d.length;c++){var e=d[c],f=e.indexOf("="),g=-1==f?[e,""]:[e.slice(0,f),e.slice(f+1)],h=g[0],i=g[1];if(h.trim()===b)return decodeURIComponent(i)}return null}var e,f,g,h,i,j,k,l,m,n,o,p,q,r;return a("parseCookieValue",d),{setters:[function(a){f=a.setRootDomAdapter},function(a){g=a.global,h=a.isBlank,i=a.isPresent,j=a.setValueOnPath},function(a){k=a.GenericBrowserDomAdapter}],execute:function(){e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},m=3,n={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},o={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},p=function(a){function k(){a.apply(this,arguments)}return e(k,a),k.prototype.parse=function(a){throw new Error("parse not implemented")},k.makeCurrent=function(){f(new k)},k.prototype.hasProperty=function(a,b){return b in a},k.prototype.setProperty=function(a,b,c){a[b]=c},k.prototype.getProperty=function(a,b){return a[b]},k.prototype.invoke=function(a,b,c){(d=a)[b].apply(d,c);var d},k.prototype.logError=function(a){window.console&&(console.error?console.error(a):console.log(a))},k.prototype.log=function(a){window.console&&window.console.log&&window.console.log(a)},k.prototype.logGroup=function(a){window.console&&window.console.group&&window.console.group(a)},k.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(k.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),k.prototype.query=function(a){return document.querySelector(a)},k.prototype.querySelector=function(a,b){return a.querySelector(b)},k.prototype.querySelectorAll=function(a,b){return a.querySelectorAll(b)},k.prototype.on=function(a,b,c){a.addEventListener(b,c,!1)},k.prototype.onAndCancel=function(a,b,c){return a.addEventListener(b,c,!1),function(){a.removeEventListener(b,c,!1)}},k.prototype.dispatchEvent=function(a,b){a.dispatchEvent(b)},k.prototype.createMouseEvent=function(a){var b=document.createEvent("MouseEvent");return b.initEvent(a,!0,!0),b},k.prototype.createEvent=function(a){var b=document.createEvent("Event");return b.initEvent(a,!0,!0),b},k.prototype.preventDefault=function(a){a.preventDefault(),a.returnValue=!1},k.prototype.isPrevented=function(a){return a.defaultPrevented||i(a.returnValue)&&!a.returnValue},k.prototype.getInnerHTML=function(a){return a.innerHTML},k.prototype.getTemplateContent=function(a){return"content"in a&&a instanceof HTMLTemplateElement?a.content:null},k.prototype.getOuterHTML=function(a){return a.outerHTML},k.prototype.nodeName=function(a){return a.nodeName},k.prototype.nodeValue=function(a){return a.nodeValue},k.prototype.type=function(a){return a.type},k.prototype.content=function(a){return this.hasProperty(a,"content")?a.content:a},k.prototype.firstChild=function(a){return a.firstChild},k.prototype.nextSibling=function(a){return a.nextSibling},k.prototype.parentElement=function(a){return a.parentNode},k.prototype.childNodes=function(a){return a.childNodes},k.prototype.childNodesAsList=function(a){for(var b=a.childNodes,c=new Array(b.length),d=0;d<b.length;d++)c[d]=b[d];return c},k.prototype.clearNodes=function(a){for(;a.firstChild;)a.removeChild(a.firstChild)},k.prototype.appendChild=function(a,b){a.appendChild(b)},k.prototype.removeChild=function(a,b){a.removeChild(b)},k.prototype.replaceChild=function(a,b,c){a.replaceChild(b,c)},k.prototype.remove=function(a){return a.parentNode&&a.parentNode.removeChild(a),a},k.prototype.insertBefore=function(a,b){a.parentNode.insertBefore(b,a)},k.prototype.insertAllBefore=function(a,b){b.forEach(function(b){return a.parentNode.insertBefore(b,a)})},k.prototype.insertAfter=function(a,b){a.parentNode.insertBefore(b,a.nextSibling)},k.prototype.setInnerHTML=function(a,b){a.innerHTML=b},k.prototype.getText=function(a){return a.textContent},k.prototype.setText=function(a,b){a.textContent=b},k.prototype.getValue=function(a){return a.value},k.prototype.setValue=function(a,b){a.value=b},k.prototype.getChecked=function(a){return a.checked},k.prototype.setChecked=function(a,b){a.checked=b},k.prototype.createComment=function(a){return document.createComment(a)},k.prototype.createTemplate=function(a){var b=document.createElement("template");return b.innerHTML=a,b},k.prototype.createElement=function(a,b){return void 0===b&&(b=document),b.createElement(a)},k.prototype.createElementNS=function(a,b,c){return void 0===c&&(c=document),c.createElementNS(a,b)},k.prototype.createTextNode=function(a,b){return void 0===b&&(b=document),b.createTextNode(a)},k.prototype.createScriptTag=function(a,b,c){void 0===c&&(c=document);var d=c.createElement("SCRIPT");return d.setAttribute(a,b),d},k.prototype.createStyleElement=function(a,b){void 0===b&&(b=document);var c=b.createElement("style");return this.appendChild(c,this.createTextNode(a)),c},k.prototype.createShadowRoot=function(a){return a.createShadowRoot()},k.prototype.getShadowRoot=function(a){return a.shadowRoot},k.prototype.getHost=function(a){return a.host},k.prototype.clone=function(a){return a.cloneNode(!0)},k.prototype.getElementsByClassName=function(a,b){return a.getElementsByClassName(b)},k.prototype.getElementsByTagName=function(a,b){return a.getElementsByTagName(b)},k.prototype.classList=function(a){return Array.prototype.slice.call(a.classList,0)},k.prototype.addClass=function(a,b){a.classList.add(b)},k.prototype.removeClass=function(a,b){a.classList.remove(b)},k.prototype.hasClass=function(a,b){return a.classList.contains(b)},k.prototype.setStyle=function(a,b,c){a.style[b]=c},k.prototype.removeStyle=function(a,b){a.style[b]=""},k.prototype.getStyle=function(a,b){return a.style[b]},k.prototype.hasStyle=function(a,b,c){void 0===c&&(c=null);var d=this.getStyle(a,b)||"";return c?d==c:d.length>0},k.prototype.tagName=function(a){return a.tagName},k.prototype.attributeMap=function(a){for(var b=new Map,c=a.attributes,d=0;d<c.length;d++){var e=c[d];b.set(e.name,e.value)}return b},k.prototype.hasAttribute=function(a,b){return a.hasAttribute(b)},k.prototype.hasAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)},k.prototype.getAttribute=function(a,b){return a.getAttribute(b)},k.prototype.getAttributeNS=function(a,b,c){return a.getAttributeNS(b,c)},k.prototype.setAttribute=function(a,b,c){a.setAttribute(b,c)},k.prototype.setAttributeNS=function(a,b,c,d){a.setAttributeNS(b,c,d)},k.prototype.removeAttribute=function(a,b){a.removeAttribute(b)},k.prototype.removeAttributeNS=function(a,b,c){a.removeAttributeNS(b,c)},k.prototype.templateAwareRoot=function(a){return this.isTemplateElement(a)?this.content(a):a},k.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},k.prototype.defaultDoc=function(){return document},k.prototype.getBoundingClientRect=function(a){try{return a.getBoundingClientRect()}catch(a){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},k.prototype.getTitle=function(){return document.title},k.prototype.setTitle=function(a){document.title=a||""},k.prototype.elementMatches=function(a,b){return a instanceof HTMLElement&&(a.matches&&a.matches(b)||a.msMatchesSelector&&a.msMatchesSelector(b)||a.webkitMatchesSelector&&a.webkitMatchesSelector(b))},k.prototype.isTemplateElement=function(a){return a instanceof HTMLElement&&"TEMPLATE"==a.nodeName},k.prototype.isTextNode=function(a){return a.nodeType===Node.TEXT_NODE},k.prototype.isCommentNode=function(a){return a.nodeType===Node.COMMENT_NODE},k.prototype.isElementNode=function(a){return a.nodeType===Node.ELEMENT_NODE},k.prototype.hasShadowRoot=function(a){return i(a.shadowRoot)&&a instanceof HTMLElement},k.prototype.isShadowRoot=function(a){return a instanceof DocumentFragment},k.prototype.importIntoDoc=function(a){return document.importNode(this.templateAwareRoot(a),!0)},k.prototype.adoptNode=function(a){return document.adoptNode(a)},k.prototype.getHref=function(a){return a.href},k.prototype.getEventKey=function(a){var b=a.key;if(h(b)){if(b=a.keyIdentifier,h(b))return"Unidentified";b.startsWith("U+")&&(b=String.fromCharCode(parseInt(b.substring(2),16)),a.location===m&&o.hasOwnProperty(b)&&(b=o[b]))}return n[b]||b},k.prototype.getGlobalEventTarget=function(a){return"window"===a?window:"document"===a?document:"body"===a?document.body:void 0},k.prototype.getHistory=function(){return window.history},k.prototype.getLocation=function(){return window.location},k.prototype.getBaseHref=function(){var a=b();return h(a)?null:c(a)},k.prototype.resetBaseElement=function(){q=null},k.prototype.getUserAgent=function(){return window.navigator.userAgent},k.prototype.setData=function(a,b,c){this.setAttribute(a,"data-"+b,c)},k.prototype.getData=function(a,b){return this.getAttribute(a,"data-"+b)},k.prototype.getComputedStyle=function(a){return getComputedStyle(a)},k.prototype.setGlobalVar=function(a,b){j(g,a,b)},k.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},k.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},k.prototype.supportsCookies=function(){return!0},k.prototype.getCookie=function(a){return d(document.cookie,a)},k.prototype.setCookie=function(a,b){document.cookie=encodeURIComponent(a)+"="+encodeURIComponent(b)},k}(k),a("BrowserDomAdapter",p),q=null}}}),System.register("@angular/common/src/location/hash_location_strategy.js",["@angular/core","../facade/lang","./location","./location_strategy","./platform_location"],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k;return{setters:[function(a){c=a.Inject,d=a.Injectable,e=a.Optional},function(a){f=a.isPresent},function(a){g=a.Location},function(a){h=a.APP_BASE_HREF,i=a.LocationStrategy},function(a){j=a.PlatformLocation}],execute:function(){b=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},k=function(a){function i(b,c){a.call(this),this._platformLocation=b,this._baseHref="",f(c)&&(this._baseHref=c)}return b(i,a),i.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},i.prototype.getBaseHref=function(){return this._baseHref},i.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.hash;return f(b)||(b="#"),b.length>0?b.substring(1):b},i.prototype.prepareExternalUrl=function(a){var b=g.joinWithSlash(this._baseHref,a);return b.length>0?"#"+b:b},i.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+g.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.pushState(a,b,e)},i.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+g.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.replaceState(a,b,e)},i.prototype.forward=function(){this._platformLocation.forward()},i.prototype.back=function(){this._platformLocation.back()},i.decorators=[{type:d}],i.ctorParameters=function(){return[{type:j},{type:void 0,decorators:[{type:e},{type:c,args:[h]}]}]},i}(i),a("HashLocationStrategy",k)}}}),System.register("@angular/common/src/location/platform_location.js",["@angular/core"],function(a){"use strict";var b,c,d;return{setters:[function(a){b=a.OpaqueToken}],execute:function(){c=function(){function a(){}return a.prototype.getBaseHrefFromDOM=function(){},a.prototype.onPopState=function(a){},a.prototype.onHashChange=function(a){},Object.defineProperty(a.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),a.prototype.replaceState=function(a,b,c){},a.prototype.pushState=function(a,b,c){},a.prototype.forward=function(){},a.prototype.back=function(){},a}(),a("PlatformLocation",c),d=new b("Location Initialized"),a("LOCATION_INITIALIZED",d)}}}),System.register("@angular/common/src/location/path_location_strategy.js",["@angular/core","../facade/lang","./location","./location_strategy","./platform_location"],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k;return{setters:[function(a){c=a.Inject,d=a.Injectable,e=a.Optional},function(a){f=a.isBlank},function(a){g=a.Location},function(a){h=a.APP_BASE_HREF,i=a.LocationStrategy},function(a){j=a.PlatformLocation}],execute:function(){b=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},k=function(a){function i(b,c){if(a.call(this),this._platformLocation=b,f(c)&&(c=this._platformLocation.getBaseHrefFromDOM()),f(c))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=c}return b(i,a),i.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},i.prototype.getBaseHref=function(){return this._baseHref},i.prototype.prepareExternalUrl=function(a){return g.joinWithSlash(this._baseHref,a)},i.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.pathname+g.normalizeQueryParams(this._platformLocation.search),c=this._platformLocation.hash;return c&&a?""+b+c:b},i.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+g.normalizeQueryParams(d));this._platformLocation.pushState(a,b,e)},i.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+g.normalizeQueryParams(d));this._platformLocation.replaceState(a,b,e)},i.prototype.forward=function(){this._platformLocation.forward()},i.prototype.back=function(){this._platformLocation.back()},i.decorators=[{type:d}],i.ctorParameters=function(){return[{type:j},{type:void 0,decorators:[{type:e},{type:c,args:[h]}]}]},i}(i),a("PathLocationStrategy",k)}}}),System.register("@angular/common/src/location/location_strategy.js",["@angular/core"],function(a){"use strict";var b,c,d;return{setters:[function(a){b=a.OpaqueToken}],execute:function(){c=function(){function a(){}return a.prototype.path=function(a){},a.prototype.prepareExternalUrl=function(a){},a.prototype.pushState=function(a,b,c,d){},a.prototype.replaceState=function(a,b,c,d){},a.prototype.forward=function(){},a.prototype.back=function(){},a.prototype.onPopState=function(a){},a.prototype.getBaseHref=function(){},a}(),a("LocationStrategy",c),d=new b("appBaseHref"),a("APP_BASE_HREF",d)}}}),System.register("@angular/common/src/location/location.js",["@angular/core","./location_strategy"],function(a){"use strict";function b(a,b){return a&&b.startsWith(a)?b.substring(a.length):b}function c(a){return a.replace(/\/index.html$/,"")}var d,e,f,g;return{setters:[function(a){d=a.EventEmitter,e=a.Injectable},function(a){f=a.LocationStrategy}],execute:function(){g=function(){function a(b){var e=this;this._subject=new d,this._platformStrategy=b;var f=this._platformStrategy.getBaseHref();this._baseHref=a.stripTrailingSlash(c(f)),this._platformStrategy.onPopState(function(a){e._subject.emit({url:e.path(!0),pop:!0,type:a.type})})}return a.prototype.path=function(a){return void 0===a&&(a=!1),this.normalize(this._platformStrategy.path(a))},a.prototype.isCurrentPathEqualTo=function(b,c){return void 0===c&&(c=""),this.path()==this.normalize(b+a.normalizeQueryParams(c))},a.prototype.normalize=function(d){return a.stripTrailingSlash(b(this._baseHref,c(d)))},a.prototype.prepareExternalUrl=function(a){return a&&"/"!==a[0]&&(a="/"+a),this._platformStrategy.prepareExternalUrl(a)},a.prototype.go=function(a,b){void 0===b&&(b=""),this._platformStrategy.pushState(null,"",a,b)},a.prototype.replaceState=function(a,b){void 0===b&&(b=""),this._platformStrategy.replaceState(null,"",a,b)},a.prototype.forward=function(){this._platformStrategy.forward()},a.prototype.back=function(){this._platformStrategy.back()},a.prototype.subscribe=function(a,b,c){return void 0===b&&(b=null),void 0===c&&(c=null),this._subject.subscribe({next:a,error:b,complete:c})},a.normalizeQueryParams=function(a){return a&&"?"!==a[0]?"?"+a:a},a.joinWithSlash=function(a,b){if(0==a.length)return b;if(0==b.length)return a;var c=0;return a.endsWith("/")&&c++,b.startsWith("/")&&c++,2==c?a+b.substring(1):1==c?a+b:a+"/"+b},a.stripTrailingSlash=function(a){return a.replace(/\/$/,"")},a.decorators=[{type:e}],a.ctorParameters=function(){return[{type:f}]},a}(),a("Location",g)}}}),System.register("@angular/common/src/location/index.js",["./platform_location","./location_strategy","./hash_location_strategy","./path_location_strategy","./location"],function(a){"use strict";return{setters:[function(b){a({PlatformLocation:b.PlatformLocation,LOCATION_INITIALIZED:b.LOCATION_INITIALIZED})},function(b){a({LocationStrategy:b.LocationStrategy,APP_BASE_HREF:b.APP_BASE_HREF})},function(b){a({HashLocationStrategy:b.HashLocationStrategy})},function(b){a({PathLocationStrategy:b.PathLocationStrategy})},function(b){a({Location:b.Location})}],execute:function(){}}}),System.register("@angular/common/src/common_module.js",["@angular/core","./directives/index","./localization","./pipes/index"],function(a){"use strict";var b,c,d,e,f,g;return{setters:[function(a){b=a.NgModule},function(a){c=a.COMMON_DIRECTIVES},function(a){d=a.NgLocaleLocalization,e=a.NgLocalization},function(a){f=a.COMMON_PIPES}],execute:function(){g=function(){function a(){}return a.decorators=[{type:b,args:[{declarations:[c,f],exports:[c,f],providers:[{provide:e,useClass:d}]}]}],a.ctorParameters=function(){return[]},a}(),a("CommonModule",g)}}}),System.register("@angular/common/src/facade/collection.js",["./lang"],function(a){"use strict";function b(a){return!!f(a)&&(Array.isArray(a)||!(a instanceof Map)&&e()in a)}function c(a,b,c){for(var d=a[e()](),f=b[e()]();;){var g=d.next(),h=f.next();if(g.done&&h.done)return!0;if(g.done||h.done)return!1;if(!c(g.value,h.value))return!1}}function d(a,b){if(Array.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d=a[e()](),f=void 0;!(f=d.next()).done;)b(f.value)}var e,f,g,h;return a("isListLikeIterable",b),a("areIterablesEqual",c),a("iterateListLike",d),{setters:[function(a){e=a.getSymbolIterator,f=a.isJsObject}],execute:function(){g=function(){function a(){}return a.merge=function(a,b){for(var c={},d=0,e=Object.keys(a);d<e.length;d++){var f=e[d];c[f]=a[f]}for(var g=0,h=Object.keys(b);g<h.length;g++){var f=h[g];c[f]=b[f]}return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e=0;e<c.length;e++){var f=c[e];if(a[f]!==b[f])return!1}return!0},a}(),a("StringMapWrapper",g),h=function(){function a(){}return a.findLast=function(a,b){for(var c=a.length-1;c>=0;c--)if(b(a[c]))return a[c];return null},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);d>-1&&a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1&&(a.splice(c,1),!0)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.flatten=function(b){return b.reduce(function(b,c){var d=Array.isArray(c)?a.flatten(c):c;return b.concat(d)},[])},a}(),a("ListWrapper",h)}}}),System.register("@angular/common/src/directives/ng_class.js",["@angular/core","../facade/collection","../facade/lang"],function(a){"use strict";var b,c,d,e,f,g,h,i,j;return{setters:[function(a){b=a.Directive,c=a.ElementRef,d=a.Input,e=a.IterableDiffers,f=a.KeyValueDiffers,g=a.Renderer},function(a){h=a.isListLikeIterable},function(a){i=a.stringify}],execute:function(){j=function(){function a(a,b,c,d){this._iterableDiffers=a,this._keyValueDiffers=b,this._ngEl=c,this._renderer=d,this._initialClasses=[]}return Object.defineProperty(a.prototype,"klass",{set:function(a){this._applyInitialClasses(!0),this._initialClasses="string"==typeof a?a.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngClass",{set:function(a){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof a?a.split(/\s+/):a,this._rawClass&&(h(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(this._iterableDiffer){var a=this._iterableDiffer.diff(this._rawClass);a&&this._applyIterableChanges(a)}else if(this._keyValueDiffer){var a=this._keyValueDiffer.diff(this._rawClass);a&&this._applyKeyValueChanges(a)}},a.prototype._cleanupClasses=function(a){this._applyClasses(a,!0),this._applyInitialClasses(!1)},a.prototype._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(a){return b._toggleClass(a.key,a.currentValue)}),a.forEachChangedItem(function(a){return b._toggleClass(a.key,a.currentValue)}),a.forEachRemovedItem(function(a){a.previousValue&&b._toggleClass(a.key,!1)})},a.prototype._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(a){if("string"!=typeof a.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+i(a.item));b._toggleClass(a.item,!0)}),a.forEachRemovedItem(function(a){return b._toggleClass(a.item,!1)})},a.prototype._applyInitialClasses=function(a){var b=this;this._initialClasses.forEach(function(c){return b._toggleClass(c,!a)})},a.prototype._applyClasses=function(a,b){var c=this;a&&(Array.isArray(a)||a instanceof Set?a.forEach(function(a){return c._toggleClass(a,!b)}):Object.keys(a).forEach(function(d){null!=a[d]&&c._toggleClass(d,!b)}))},a.prototype._toggleClass=function(a,b){var c=this;(a=a.trim())&&a.split(/\s+/g).forEach(function(a){c._renderer.setElementClass(c._ngEl.nativeElement,a,b)})},a.decorators=[{type:b,args:[{selector:"[ngClass]"}]}],a.ctorParameters=function(){return[{type:e},{type:f},{type:c},{type:g}]},a.propDecorators={klass:[{type:d,args:["class"]}],ngClass:[{type:d}]},a}(),a("NgClass",j)}}}),System.register("@angular/common/src/directives/ng_for.js",["@angular/core","../facade/lang"],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l;return{setters:[function(a){b=a.ChangeDetectorRef,c=a.Directive,d=a.Input,e=a.IterableDiffers,f=a.TemplateRef,g=a.ViewContainerRef,h=a.isDevMode},function(a){i=a.getTypeNameForDebugging}],execute:function(){j=function(){function a(a,b,c){this.$implicit=a,this.index=b,this.count=c}return Object.defineProperty(a.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),a}(),a("NgForRow",j),k=function(){function a(a,b,c,d){this._viewContainer=a,this._template=b,this._differs=c,this._cdr=d,this._differ=null}return Object.defineProperty(a.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(a){h()&&null!=a&&"function"!=typeof a&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(a)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=a},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngForTemplate",{set:function(a){a&&(this._template=a)},enumerable:!0,configurable:!0}),a.prototype.ngOnChanges=function(a){if("ngForOf"in a){var b=a.ngForOf.currentValue;if(!this._differ&&b)try{this._differ=this._differs.find(b).create(this._cdr,this.ngForTrackBy)}catch(a){throw new Error("Cannot find a differ supporting object '"+b+"' of type '"+i(b)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},a.prototype.ngDoCheck=function(){if(this._differ){var a=this._differ.diff(this.ngForOf);a&&this._applyChanges(a)}},a.prototype._applyChanges=function(a){var b=this,c=[];a.forEachOperation(function(a,d,e){if(null==a.previousIndex){var f=b._viewContainer.createEmbeddedView(b._template,new j(null,null,null),e),g=new l(a,f);c.push(g)}else if(null==e)b._viewContainer.remove(d);else{var f=b._viewContainer.get(d);b._viewContainer.move(f,e);var g=new l(a,f);c.push(g)}});for(var d=0;d<c.length;d++)this._perViewChange(c[d].view,c[d].record);for(var d=0,e=this._viewContainer.length;d<e;d++){var f=this._viewContainer.get(d);f.context.index=d,f.context.count=e}a.forEachIdentityChange(function(a){b._viewContainer.get(a.currentIndex).context.$implicit=a.item})},a.prototype._perViewChange=function(a,b){a.context.$implicit=b.item},a.decorators=[{type:c,args:[{selector:"[ngFor][ngForOf]"}]}],a.ctorParameters=function(){return[{type:g},{type:f},{type:e},{type:b}]},a.propDecorators={ngForOf:[{type:d}],ngForTrackBy:[{type:d}],ngForTemplate:[{type:d}]},a}(),a("NgFor",k),l=function(){function a(a,b){this.record=a,this.view=b}return a}()}}}),System.register("@angular/common/src/directives/ng_if.js",["@angular/core"],function(a){"use strict";var b,c,d,e,f;return{setters:[function(a){b=a.Directive,c=a.Input,d=a.TemplateRef,e=a.ViewContainerRef}],execute:function(){f=function(){function a(a,b){this._viewContainer=a,this._template=b,this._hasView=!1}return Object.defineProperty(a.prototype,"ngIf",{set:function(a){a&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!a&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),a.decorators=[{type:b,args:[{selector:"[ngIf]"}]}],a.ctorParameters=function(){return[{type:e},{type:d}]},a.propDecorators={ngIf:[{type:c}]},a}(),a("NgIf",f)}}}),System.register("@angular/common/src/directives/ng_plural.js",["@angular/core","../localization","./ng_switch"],function(a){"use strict";var b,c,d,e,f,g,h,i,j,k,l;return{setters:[function(a){b=a.Attribute,c=a.Directive,d=a.Host,e=a.Input,f=a.TemplateRef,g=a.ViewContainerRef},function(a){h=a.NgLocalization,i=a.getPluralCategory},function(a){j=a.SwitchView}],execute:function(){k=function(){function a(a){this._localization=a,this._caseViews={}}return Object.defineProperty(a.prototype,"ngPlural",{set:function(a){this._switchValue=a,this._updateView()},enumerable:!0,configurable:!0}),a.prototype.addCase=function(a,b){this._caseViews[a]=b},a.prototype._updateView=function(){this._clearViews();var a=Object.keys(this._caseViews),b=i(this._switchValue,a,this._localization);this._activateView(this._caseViews[b])},a.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},a.prototype._activateView=function(a){a&&(this._activeView=a,this._activeView.create())},a.decorators=[{type:c,args:[{selector:"[ngPlural]"}]}],a.ctorParameters=function(){return[{type:h}]},a.propDecorators={ngPlural:[{type:e}]},a}(),a("NgPlural",k),l=function(){function a(a,b,c,d){this.value=a;var e=!isNaN(Number(a));d.addCase(e?"="+a:a,new j(c,b))}return a.decorators=[{type:c,args:[{selector:"[ngPluralCase]"}]}],a.ctorParameters=function(){return[{type:void 0,decorators:[{type:b,args:["ngPluralCase"]}]},{type:f},{type:g},{type:k,decorators:[{type:d}]}]},a}(),a("NgPluralCase",l)}}}),System.register("@angular/common/src/directives/ng_style.js",["@angular/core"],function(a){"use strict";var b,c,d,e,f,g;return{setters:[function(a){b=a.Directive,c=a.ElementRef,d=a.Input,e=a.KeyValueDiffers,f=a.Renderer}],execute:function(){g=function(){fu