From 8d9f3273bb1fa70ef8227ccce40e103c6d665d54 Mon Sep 17 00:00:00 2001 From: RedocBot Date: Fri, 1 Jul 2016 15:45:13 +0000 Subject: [PATCH] Release v0.15.2 --- dist/redoc.min.js | 77 ++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/dist/redoc.min.js b/dist/redoc.min.js index 77578a83..bc08c5b0 100644 --- a/dist/redoc.min.js +++ b/dist/redoc.min.js @@ -2499,41 +2499,42 @@ Prism.languages.scala = Prism.languages.extend('java', { delete Prism.languages.scala['class-name']; delete Prism.languages.scala['function']; -!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex=0;f--){for(var g=c[f],i=0;if;f++){var h=c.importers[f];if(!h.locked)for(var i=0;if;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h1)for(var h=1;hb;b++)if(this[b]===a)return b;return-1},k=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"];h.set("@@global-helpers",h.newModule({prepareGlobal:function(a,c,e){var h=b.define;b.define=void 0;var i;if(e){i={};for(var j in e)i[j]=b[j],b[j]=e[j]}return c||(g={},f(function(a,b){g[a]=b})),function(){var a;if(c)a=d(c);else{a={};var e,j;f(function(b,c){g[b]!==c&&"undefined"!=typeof c&&(a[b]=c,"undefined"!=typeof e?j||e===c||(j=!0):e=c)}),a=j?a:e}if(i)for(var k in i)b[k]=i[k];return b.define=h,a}}}))}("undefined"!=typeof self?self:global),a.register("3",[],function(){return{setters:[],execute:function(){}}}),a.register("4",[],function(){return{setters:[],execute:function(){}}}),a.register("5",[],function(){return{setters:[],execute:function(){}}}),a.register("6",[],function(){return{setters:[],execute:function(){}}}),a.register("7",[],function(a){"use strict";var b;return{setters:[],execute:function(){b="0.15.1",a("redocVersion",b)}}}),a.registerDynamic("8",["9"],!0,function(a,b,c){"use strict";var d=a("9");return b.ReflectionCapabilities=d.__core_private__.ReflectionCapabilities,b.reflector=d.__core_private__.reflector,c.exports}),a.registerDynamic("a",["b","c","d","e","f","10"],!0,function(a,b,c){"use strict";var d=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=a("b"),f=a("c"),g=a("d"),h=a("e"),i=a("f");b.Observable=i.Observable;var j=a("b");b.Subject=j.Subject;var k=a("10");b.PromiseCompleter=k.PromiseCompleter,b.PromiseWrapper=k.PromiseWrapper;var l=function(){function a(){}return a.setTimeout=function(a,b){return h.global.setTimeout(a,b)},a.clearTimeout=function(a){h.global.clearTimeout(a)},a.setInterval=function(a,b){return h.global.setInterval(a,b)},a.clearInterval=function(a){h.global.clearInterval(a)},a}();b.TimerWrapper=l;var m=function(){function a(){}return a.subscribe=function(a,b,c,d){return void 0===d&&(d=function(){}),c="function"==typeof c&&c||h.noop,d="function"==typeof d&&d||h.noop,a.subscribe({next:b,error:c,complete:d})},a.isObservable=function(a){return!!a.subscribe},a.hasSubscribers=function(a){return a.observers.length>0},a.dispose=function(a){a.unsubscribe()},a.callNext=function(a,b){a.emit(b)},a.callEmit=function(a,b){a.emit(b)},a.callError=function(a,b){a.error(b)},a.callComplete=function(a){a.complete()},a.fromPromise=function(a){return f.PromiseObservable.create(a)},a.toPromise=function(a){return g.toPromise.call(a)},a}();b.ObservableWrapper=m;var n=function(a){function b(b){void 0===b&&(b=!1),a.call(this),this.__isAsync=b}return d(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.next=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this.__isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this.__isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this.__isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this.__isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this.__isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this.__isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(e.Subject);return b.EventEmitter=n,c.exports}),a.registerDynamic("11",[],!0,function(a,b,c){"use strict";var d=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 b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("12",["e"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;cd&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c0&&(b.println("var self = this;"),this.visitAllStatements(a.constructorMethod.body,b)),b.decIndent(),b.println("}")},b.prototype._visitClassGetter=function(a,b,c){c.println("Object.defineProperty("+a.name+".prototype, '"+b.name+"', { get: function() {"),c.incIndent(),b.body.length>0&&(c.println("var self = this;"),this.visitAllStatements(b.body,c)),c.decIndent(),c.println("}});")},b.prototype._visitClassMethod=function(a,b,c){c.print(a.name+".prototype."+b.name+" = function("),this._visitParams(b.params,c),c.println(") {"),c.incIndent(),b.body.length>0&&(c.println("var self = this;"),this.visitAllStatements(b.body,c)),c.decIndent(),c.println("};")},b.prototype.visitReadVarExpr=function(b,c){if(b.builtin===h.BuiltinVar.This)c.print("self");else{if(b.builtin===h.BuiltinVar.Super)throw new e.BaseException("'super' needs to be handled at a parent ast node, not at the variable level!");a.prototype.visitReadVarExpr.call(this,b,c)}return null},b.prototype.visitDeclareVarStmt=function(a,b){return b.print("var "+a.name+" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return a.value.visitExpression(this,b),null},b.prototype.visitInvokeFunctionExpr=function(b,c){var d=b.fn;return d instanceof h.ReadVarExpr&&d.builtin===h.BuiltinVar.Super?(c.currentClass.parent.visitExpression(this,c),c.print(".call(this"),b.args.length>0&&(c.print(", "),this.visitAllExpressions(b.args,c,",")),c.print(")")):a.prototype.visitInvokeFunctionExpr.call(this,b,c),null},b.prototype.visitFunctionExpr=function(a,b){return b.print("function("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.print("function "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+g.CATCH_ERROR_VAR.name+") {"),b.incIndent();var c=[g.CATCH_STACK_VAR.set(g.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[h.StmtModifier.Final])].concat(a.catchStmts);return this.visitAllStatements(c,b),b.decIndent(),b.println("}"),null},b.prototype._visitParams=function(a,b){this.visitAllObjects(function(a){return b.print(a.name)},a,b,",")},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case h.BuiltinMethod.ConcatArray:b="concat";break;case h.BuiltinMethod.SubscribeObservable:b="subscribe";break;case h.BuiltinMethod.bind:b="bind";break;default:throw new e.BaseException("Unknown builtin method: "+a)}return b},b}(g.AbstractEmitterVisitor);return b.AbstractJsEmitterVisitor=i,c.exports}),a.registerDynamic("20",["1e","1f","1d","1c"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=new j,e=g.EmitterVisitorContext.createRoot([c]);return d.visitAllStatements(b,e),f.evalExpression(a,c,e.toSource(),d.getArgs())}var 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)},f=a("1e"),g=a("1f"),h=a("1d"),i=a("1c");b.jitStatements=d;var j=function(a){function b(){a.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return e(b,a),b.prototype.getArgs=function(){for(var a={},b=0;b0?e(c[0]):null;i.isPresent(d)&&(b.print(": "),d.visitExpression(this,b),c=c.slice(1)),b.println(" {"),b.incIndent(),this.visitAllStatements(c,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){i.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return i.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case j.BuiltinMethod.ConcatArray:b=".addAll";break;case j.BuiltinMethod.SubscribeObservable:b="listen";break;case j.BuiltinMethod.bind:b=null;break;default:throw new h.BaseException("Unknown builtin method: "+a)}return b},b.prototype.visitTryCatchStmt=function(a,b){return b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+k.CATCH_ERROR_VAR.name+", "+k.CATCH_STACK_VAR.name+") {"),b.incIndent(),this.visitAllStatements(a.catchStmts,b),b.decIndent(), -b.println("}"),null},b.prototype.visitBinaryOperatorExpr=function(b,c){switch(b.operator){case j.BinaryOperator.Identical:c.print("identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;case j.BinaryOperator.NotIdentical:c.print("!identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;default:a.prototype.visitBinaryOperatorExpr.call(this,b,c)}return null},b.prototype.visitLiteralArrayExpr=function(b,c){return f(b.type)&&c.print("const "),a.prototype.visitLiteralArrayExpr.call(this,b,c)},b.prototype.visitLiteralMapExpr=function(b,c){return f(b.type)&&c.print("const "),i.isPresent(b.valueType)&&(c.print("")),a.prototype.visitLiteralMapExpr.call(this,b,c)},b.prototype.visitInstantiateExpr=function(a,b){return b.print(f(a.type)?"const":"new"),b.print(" "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},b.prototype.visitBuiltintType=function(a,b){var c;switch(a.name){case j.BuiltinTypeName.Bool:c="bool";break;case j.BuiltinTypeName.Dynamic:c="dynamic";break;case j.BuiltinTypeName.Function:c="Function";break;case j.BuiltinTypeName.Number:c="num";break;case j.BuiltinTypeName.Int:c="int";break;case j.BuiltinTypeName.String:c="String";break;default:throw new h.BaseException("Unsupported builtin type "+a.name)}return b.print(c),null},b.prototype.visitExternalType=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitArrayType=function(a,b){return b.print("List<"),i.isPresent(a.of)?a.of.visitType(this,b):b.print("dynamic"),b.print(">"),null},b.prototype.visitMapType=function(a,b){return b.print("Map"),null},b.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){i.isPresent(a.type)&&(a.type.visitType(c,b),b.print(" ")),b.print(a.name)},a,b,",")},b.prototype._visitIdentifier=function(a,b,c){var d=this;if(i.isBlank(a.name))throw new h.BaseException("Internal error: unknown identifier "+a);if(i.isPresent(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var e=this.importsWithPrefixes.get(a.moduleUrl);i.isBlank(e)&&(e="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,e)),c.print(e+".")}c.print(a.name),i.isPresent(b)&&b.length>0&&(c.print("<"),this.visitAllObjects(function(a){return a.visitType(d,c)},b,c,","),c.print(">"))},b}(k.AbstractEmitterVisitor);return c.exports}),a.registerDynamic("22",["23","24","19","1a","1e","21","1b","25"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=a.concat([new n.ReturnStatement(n.variable(b))]),e=new q(null,null,null,null,new Map,new Map,new Map,new Map,c),f=new t,g=f.visitAllStatements(d,e);return l.isPresent(g)?g.value:null}function e(a){return l.IS_DART?a instanceof p:l.isPresent(a)&&l.isPresent(a.props)&&l.isPresent(a.getters)&&l.isPresent(a.methods)}function f(a,b,c,d,e){for(var f=d.createChildWihtLocalVars(),g=0;ge();case n.BinaryOperator.BiggerEquals:return d()>=e();default:throw new k.BaseException("Unknown operator "+a.operator)}},a.prototype.visitReadPropExpr=function(a,b){var c,d=a.receiver.visitExpression(this,b);if(e(d)){var f=d;c=f.props.has(a.name)?f.props.get(a.name):f.getters.has(a.name)?f.getters.get(a.name)():f.methods.has(a.name)?f.methods.get(a.name):h.reflector.getter(a.name)(d)}else c=h.reflector.getter(a.name)(d);return c},a.prototype.visitReadKeyExpr=function(a,b){var c=a.receiver.visitExpression(this,b),d=a.index.visitExpression(this,b);return c[d]},a.prototype.visitLiteralArrayExpr=function(a,b){return this.visitAllExpressions(a.entries,b)},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,d={};return a.entries.forEach(function(a){return d[a[0]]=a[1].visitExpression(c,b)}),d},a.prototype.visitAllExpressions=function(a,b){var c=this;return a.map(function(a){return a.visitExpression(c,b)})},a.prototype.visitAllStatements=function(a,b){for(var c=0;c0},a.dispose=function(a){a.unsubscribe()},a.callNext=function(a,b){a.emit(b)},a.callEmit=function(a,b){a.emit(b)},a.callError=function(a,b){a.error(b)},a.callComplete=function(a){a.complete()},a.fromPromise=function(a){return f.PromiseObservable.create(a)},a.toPromise=function(a){return g.toPromise.call(a)},a}();b.ObservableWrapper=m;var n=function(a){function b(b){void 0===b&&(b=!1),a.call(this),this.__isAsync=b}return d(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.next=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this.__isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this.__isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this.__isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this.__isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this.__isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this.__isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(e.Subject);return b.EventEmitter=n,c.exports}),a.registerDynamic("2e",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a.prototype.get=function(a){return null},a}();return b.XHR=d,c.exports}),a.registerDynamic("2b",["9","24","1a","1e","18","2e","31","3b","3c","35","2d","3d"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("24"),f=a("1a"),g=a("1e"),h=a("18"),i=a("2e"),j=a("31"),k=a("3b"),l=a("3c"),m=a("35"),n=a("2d"),o=a("3d"),p=function(){function a(a,b,c,d){this._xhr=a,this._urlResolver=b,this._htmlParser=c,this._config=d}return a.prototype.normalizeDirective=function(a){return a.isComponent?this.normalizeTemplate(a.type,a.template).then(function(b){return new h.CompileDirectiveMetadata({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,lifecycleHooks:a.lifecycleHooks,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,template:b})}):e.PromiseWrapper.resolve(a)},a.prototype.normalizeTemplate=function(a,b){var c=this;if(g.isPresent(b.template))return e.PromiseWrapper.resolve(this.normalizeLoadedTemplate(a,b,b.template,a.moduleUrl));if(g.isPresent(b.templateUrl)){var d=this._urlResolver.resolve(a.moduleUrl,b.templateUrl);return this._xhr.get(d).then(function(e){return c.normalizeLoadedTemplate(a,b,e,d)})}throw new f.BaseException("No template specified for component "+a.name)},a.prototype.normalizeLoadedTemplate=function(a,b,c,e){var i=this,j=this._htmlParser.parse(c,a.name);if(j.errors.length>0){var m=j.errors.join("\n");throw new f.BaseException("Template parse errors:\n"+m)}var n=new q;l.htmlVisitAll(n,j.rootNodes);var o=b.styles.concat(n.styles),p=n.styleUrls.filter(k.isStyleUrlResolvable).map(function(a){return i._urlResolver.resolve(e,a)}).concat(b.styleUrls.filter(k.isStyleUrlResolvable).map(function(b){return i._urlResolver.resolve(a.moduleUrl,b)})),r=o.map(function(a){var b=k.extractStyleUrls(i._urlResolver,e,a);return b.styleUrls.forEach(function(a){return p.push(a)}),b.style}),s=b.encapsulation;return g.isBlank(s)&&(s=this._config.defaultEncapsulation),s===d.ViewEncapsulation.Emulated&&0===r.length&&0===p.length&&(s=d.ViewEncapsulation.None),new h.CompileTemplateMetadata({encapsulation:s,template:c,templateUrl:e,styles:r,styleUrls:p,ngContentSelectors:n.ngContentSelectors,animations:b.animations,interpolation:b.interpolation})},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:i.XHR},{type:j.UrlResolver},{type:m.HtmlParser},{type:n.CompilerConfig}],a}();b.DirectiveNormalizer=p;var q=function(){function a(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return a.prototype.visitElement=function(a,b){var c=o.preparseElement(a);switch(c.type){case o.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(c.selectAttr);break;case o.PreparsedElementType.STYLE:var d="";a.children.forEach(function(a){a instanceof l.HtmlTextAst&&(d+=a.value)}),this.styles.push(d);break;case o.PreparsedElementType.STYLESHEET:this.styleUrls.push(c.hrefAttr)}return c.nonBindable&&this.ngNonBindableStackCount++,l.htmlVisitAll(this,a.children),c.nonBindable&&this.ngNonBindableStackCount--,null},a.prototype.visitComment=function(a,b){return null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitText=function(a,b){return null},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a}();return c.exports}),a.registerDynamic("3e",["1a","3c","3f"],!0,function(a,b,c){"use strict";function d(a){var b=new l;return new k(h.htmlVisitAll(b,a),b.isExpanded,b.errors)}function e(a,b){var c=a.cases.map(function(a){-1!=j.indexOf(a.value)||a.value.match(/^=\d+$/)||b.push(new i.I18nError(a.valueSourceSpan,'Plural cases should be "=" or one of '+j.join(", ")));var c=d(a.expression);return b.push.apply(b,c.errors),new h.HtmlElementAst("template",[new h.HtmlAttrAst("ngPluralCase",""+a.value,a.valueSourceSpan)],c.nodes,a.sourceSpan,a.sourceSpan,a.sourceSpan)}),e=new h.HtmlAttrAst("[ngPlural]",a.switchValue,a.switchValueSourceSpan);return new h.HtmlElementAst("ng-container",[e],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)}function f(a,b){var c=a.cases.map(function(a){var c=d(a.expression);return b.push.apply(b,c.errors),new h.HtmlElementAst("template",[new h.HtmlAttrAst("ngSwitchCase",""+a.value,a.valueSourceSpan)],c.nodes,a.sourceSpan,a.sourceSpan,a.sourceSpan)}),e=new h.HtmlAttrAst("[ngSwitch]",a.switchValue,a.switchValueSourceSpan);return new h.HtmlElementAst("ng-container",[e],c,a.sourceSpan,a.sourceSpan,a.sourceSpan)}var g=a("1a"),h=a("3c"),i=a("3f"),j=["zero","one","two","few","many","other"];b.expandNodes=d;var k=function(){function a(a,b,c){this.nodes=a,this.expanded=b,this.errors=c}return a}();b.ExpansionResult=k;var l=function(){function a(){this.isExpanded=!1,this.errors=[]}return a.prototype.visitElement=function(a,b){return new h.HtmlElementAst(a.name,a.attrs,h.htmlVisitAll(this,a.children),a.sourceSpan,a.startSourceSpan,a.endSourceSpan)},a.prototype.visitAttr=function(a,b){return a},a.prototype.visitText=function(a,b){return a},a.prototype.visitComment=function(a,b){return a},a.prototype.visitExpansion=function(a,b){return this.isExpanded=!0,"plural"==a.type?e(a,this.errors):f(a,this.errors)},a.prototype.visitExpansionCase=function(a,b){throw new g.BaseException("Should not be reached")},a}();return c.exports}),a.registerDynamic("40",["19","1a","1e","3c","35","41","3e","42","3f"],!0,function(a,b,c){"use strict";var d=a("19"),e=a("1a"),f=a("1e"),g=a("3c"),h=a("35"),i=a("41"),j=a("3e"),k=a("42"),l=a("3f"),m="ph",n="name",o=/<\/ph>/gi,p=function(){function a(a,b,c,d,e,f){this._htmlParser=a,this._parser=b,this._messagesContent=c,this._messages=d,this._implicitTags=e,this._implicitAttrs=f}return a.prototype.parse=function(a,b,c,d){void 0===c&&(c=!1),void 0===d&&(d=i.DEFAULT_INTERPOLATION_CONFIG),this.errors=[],this._interpolationConfig=d;var e=this._htmlParser.parse(a,b,!0);if(e.errors.length>0)return e;var f=j.expandNodes(e.rootNodes),g=this._recurse(f.nodes);return(k=this.errors).push.apply(k,f.errors),this.errors.length>0?new h.HtmlParseTreeResult([],this.errors):new h.HtmlParseTreeResult(g,[]);var k},a.prototype._processI18nPart=function(a){try{return a.hasI18n?this._mergeI18Part(a):this._recurseIntoI18nPart(a)}catch(b){if(b instanceof l.I18nError)return this.errors.push(b),[];throw b}},a.prototype._mergeI18Part=function(a){var b=a.createMessage(this._parser,this._interpolationConfig),c=k.id(b);if(!d.StringMapWrapper.contains(this._messages,c))throw new l.I18nError(a.sourceSpan,"Cannot find message for id '"+c+"', content '"+b.content+"'.");var e=this._messages[c];return this._mergeTrees(a,e,a.children)},a.prototype._recurseIntoI18nPart=function(a){if(f.isPresent(a.rootElement)){var b=a.rootElement,c=this._recurse(a.children),d=this._i18nAttributes(b);return[new g.HtmlElementAst(b.name,d,c,b.sourceSpan,b.startSourceSpan,b.endSourceSpan)]}return f.isPresent(a.rootTextNode)?[a.rootTextNode]:this._recurse(a.children)},a.prototype._recurse=function(a){var b=this,c=l.partition(a,this.errors,this._implicitTags);return d.ListWrapper.flatten(c.map(function(a){return b._processI18nPart(a)}))},a.prototype._mergeTrees=function(a,b,c){var d=new q;g.htmlVisitAll(d,c);var h=this._mergeTreesHelper(b,d.mapping);if(f.isPresent(a.rootElement)){var i=a.rootElement,j=this._i18nAttributes(i);return[new g.HtmlElementAst(i.name,j,h,i.sourceSpan,i.startSourceSpan,i.endSourceSpan)]}if(f.isPresent(a.rootTextNode))throw new e.BaseException("should not be reached");return h},a.prototype._mergeTreesHelper=function(a,b){var c=this;return a.map(function(d){if(d instanceof g.HtmlElementAst)return c._mergeElementOrInterpolation(d,a,b);if(d instanceof g.HtmlTextAst)return d;throw new e.BaseException("should not be reached")})},a.prototype._mergeElementOrInterpolation=function(a,b,c){var d=this._getName(a),g=d[0],h=f.NumberWrapper.parseInt(d.substring(1),10),i=c[h];if("t"==g)return this._mergeTextInterpolation(a,i);if("e"==g)return this._mergeElement(a,i,c);throw new e.BaseException("should not be reached")},a.prototype._getName=function(a){if(a.name!=m)throw new l.I18nError(a.sourceSpan,'Unexpected tag "'+a.name+'". Only "'+m+'" tags are allowed.');var b=a.attrs.filter(function(a){return a.name==n});if(0==b.length)throw new l.I18nError(a.sourceSpan,'Missing "'+n+'" attribute.');return b[0].value},a.prototype._mergeTextInterpolation=function(a,b){var c=this._parser.splitInterpolation(b.value,b.sourceSpan.toString(),this._interpolationConfig),d=f.isPresent(c)?c.expressions:[],e=this._messagesContent.substring(a.startSourceSpan.end.offset,a.endSourceSpan.start.offset),h=this._replacePlaceholdersWithExpressions(e,d,b.sourceSpan);return new g.HtmlTextAst(h,b.sourceSpan)},a.prototype._mergeElement=function(a,b,c){var d=this._mergeTreesHelper(a.children,c);return new g.HtmlElementAst(b.name,this._i18nAttributes(b),d,b.sourceSpan,b.startSourceSpan,b.endSourceSpan)},a.prototype._i18nAttributes=function(a){var b=this,c=[],e=f.isPresent(this._implicitAttrs[a.name])?this._implicitAttrs[a.name]:[]; -return a.attrs.forEach(function(f){if(!f.name.startsWith(l.I18N_ATTR_PREFIX)&&f.name!=l.I18N_ATTR){var h,i=a.attrs.filter(function(a){return a.name==""+l.I18N_ATTR_PREFIX+f.name});if(0==i.length){if(-1==e.indexOf(f.name))return void c.push(f);h=l.messageFromAttribute(b._parser,b._interpolationConfig,f)}else h=l.messageFromI18nAttribute(b._parser,b._interpolationConfig,a,i[0]);var j=k.id(h);if(!d.StringMapWrapper.contains(b._messages,j))throw new l.I18nError(f.sourceSpan,"Cannot find message for id '"+j+"', content '"+h.content+"'.");var m=b._replaceInterpolationInAttr(f,b._messages[j]);c.push(new g.HtmlAttrAst(f.name,m,f.sourceSpan))}}),c},a.prototype._replaceInterpolationInAttr=function(a,b){var c=this._parser.splitInterpolation(a.value,a.sourceSpan.toString(),this._interpolationConfig),d=f.isPresent(c)?c.expressions:[],e=b[0],h=b[b.length-1],i=e.sourceSpan.start.offset,j=h instanceof g.HtmlElementAst?h.endSourceSpan.end.offset:h.sourceSpan.end.offset,k=this._messagesContent.substring(i,j);return this._replacePlaceholdersWithExpressions(k,d,a.sourceSpan)},a.prototype._replacePlaceholdersWithExpressions=function(a,b,c){var d=this,e=this._buildExprMap(b);return f.RegExpWrapper.replaceAll(o,a,function(a){var b=a[2],f=b.substring(1,b.length-1);return d._convertIntoExpression(f,e,c)})},a.prototype._buildExprMap=function(a){for(var b=new Map,c=new Map,d=0;d-1;d.push(new w(i,null,i.children,q.isPresent(k)?k.value:null,l))}else i instanceof r.HtmlTextAst&&d.push(new w(null,i,null,null,!1))}return d}function e(a){return a instanceof r.HtmlCommentAst&&q.isPresent(a.value)&&a.value.startsWith("i18n")}function f(a){return a instanceof r.HtmlCommentAst&&q.isPresent(a.value)&&"/i18n"===a.value}function g(a){for(var c=a.attrs,d=0;d1?b[1]:null}function j(a,b,c,d){var e=d.name.substring(5),f=c.attrs.find(function(a){return a.name==e});if(f)return k(a,b,f,h(d.value),i(d.value));throw new v(c.sourceSpan,"Missing attribute '"+e+"'.")}function k(a,b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null);var f=l(c.value,c.sourceSpan,a,b);return new t.Message(f,d,e)}function l(a,b,c,d){try{var e=c.splitInterpolation(a,b.toString(),d),f=new Map;if(q.isPresent(e)){for(var g="",h=0;h'}return g}return a}catch(j){return a}}function m(a,b){var c=q.StringWrapper.split(a,u);return c.length>1?c[1]:""+b}function n(a,b){var c=a.get(b);return q.isPresent(c)?(a.set(b,c+1),b+"_"+c):(a.set(b,1),b)}function o(a,b,c){var d=new x(b,c);return r.htmlVisitAll(d,a).join("")}var p=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)},q=a("1e"),r=a("3c"),s=a("43"),t=a("42");b.I18N_ATTR="i18n",b.I18N_ATTR_PREFIX="i18n-";var u=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,v=function(a){function b(b,c){a.call(this,b,c)}return p(b,a),b}(s.ParseError);b.I18nError=v,b.partition=d;var w=function(){function a(a,b,c,d,e){this.rootElement=a,this.rootTextNode=b,this.children=c,this.i18n=d,this.hasI18n=e}return Object.defineProperty(a.prototype,"sourceSpan",{get:function(){return q.isPresent(this.rootElement)?this.rootElement.sourceSpan:q.isPresent(this.rootTextNode)?this.rootTextNode.sourceSpan:this.children[0].sourceSpan},enumerable:!0,configurable:!0}),a.prototype.createMessage=function(a,b){return new t.Message(o(this.children,a,b),h(this.i18n),i(this.i18n))},a}();b.Part=w,b.meaning=h,b.description=i,b.messageFromI18nAttribute=j,b.messageFromAttribute=k,b.removeInterpolation=l,b.getPhNameFromBinding=m,b.dedupePhName=n,b.stringifyNodes=o;var x=function(){function a(a,b){this._parser=a,this._interpolationConfig=b,this._index=0}return a.prototype.visitElement=function(a,b){var c=this._index++,d=this._join(r.htmlVisitAll(this,a.children),"");return''+d+""},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitText=function(a,b){var c=this._index++,d=l(a.value,a.sourceSpan,this._parser,this._interpolationConfig);return d!=a.value?''+d+"":a.value},a.prototype.visitComment=function(a,b){return""},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype._join=function(a,b){return a.filter(function(a){return a.length>0}).join(b)},a}();return c.exports}),a.registerDynamic("44",["19","1e","3c","41","42","3f","45"],!0,function(a,b,c){return function(c){"use strict";function d(a){var b={};return a.forEach(function(a){e.StringMapWrapper.contains(b,i.id(a))||(b[i.id(a)]=a)}),e.StringMapWrapper.values(b)}var e=a("19"),f=a("1e"),g=a("3c"),h=a("41"),i=a("42"),j=a("3f"),k=function(){function a(a,b){this.messages=a,this.errors=b}return a}();b.ExtractionResult=k,b.removeDuplicates=d;var l=function(){function a(a,b,c,d){this._htmlParser=a,this._parser=b,this._implicitTags=c,this._implicitAttrs=d}return a.prototype.extract=function(a,b,c){void 0===c&&(c=h.DEFAULT_INTERPOLATION_CONFIG),this._messages=[],this._errors=[];var d=this._htmlParser.parse(a,b,!0);return 0==d.errors.length&&this._recurse(d.rootNodes,c),new k(this._messages,this._errors.concat(d.errors))},a.prototype._extractMessagesFromPart=function(a,b){a.hasI18n?(this._messages.push(a.createMessage(this._parser,b)),this._recurseToExtractMessagesFromAttributes(a.children,b)):this._recurse(a.children,b),f.isPresent(a.rootElement)&&this._extractMessagesFromAttributes(a.rootElement,b)},a.prototype._recurse=function(a,b){var c=this;if(f.isPresent(a)){var d=j.partition(a,this._errors,this._implicitTags);d.forEach(function(a){return c._extractMessagesFromPart(a,b)})}},a.prototype._recurseToExtractMessagesFromAttributes=function(a,b){var c=this;a.forEach(function(a){a instanceof g.HtmlElementAst&&(c._extractMessagesFromAttributes(a,b),c._recurseToExtractMessagesFromAttributes(a.children,b))})},a.prototype._extractMessagesFromAttributes=function(a,b){var c=this,d=f.isPresent(this._implicitAttrs[a.name])?this._implicitAttrs[a.name]:[],e=[];a.attrs.filter(function(a){return a.name.startsWith(j.I18N_ATTR_PREFIX)}).forEach(function(d){try{e.push(d.name.substring(j.I18N_ATTR_PREFIX.length)),c._messages.push(j.messageFromI18nAttribute(c._parser,b,a,d))}catch(f){if(!(f instanceof j.I18nError))throw f;c._errors.push(f)}}),a.attrs.filter(function(a){return!a.name.startsWith(j.I18N_ATTR_PREFIX)}).filter(function(a){return-1==e.indexOf(a.name)}).filter(function(a){return d.indexOf(a.name)>-1}).forEach(function(a){return c._messages.push(j.messageFromAttribute(c._parser,b,a))})},a}();b.MessageExtractor=l}(a("45")),c.exports}),a.registerDynamic("42",["1e"],!0,function(a,b,c){"use strict";function d(a){var b=e.isPresent(a.meaning)?a.meaning:"",c=e.isPresent(a.content)?a.content:"";return e.escape("$ng|"+b+"|"+c)}var e=a("1e"),f=function(){function a(a,b,c){void 0===c&&(c=null),this.content=a,this.meaning=b,this.description=c}return a}();return b.Message=f,b.id=d,c.exports}),a.registerDynamic("46",["1e","3c","35","43","42"],!0,function(a,b,c){"use strict";function d(a){var b=a.map(function(a){return i(a)}).join("");return""+b+""}function e(a,b){var c=new o.HtmlParser,d=j(a.trim()),e=c.parse(d,b);if(e.errors.length>0)return new v(null,{},e.errors);if(f(e.rootNodes))return new v(null,{},[new w(null,'Missing element "'+u+'"')]);var h=e.rootNodes[0],i=[],k={};return g(h.children,k,i),0==i.length?new v(d,k,[]):new v(null,{},i)}function f(a){return a.length<1||!(a[0]instanceof n.HtmlElementAst)||a[0].name!=u}function g(a,b,c){a.forEach(function(a){if(a instanceof n.HtmlElementAst){var d=a;if(d.name!=t)return void c.push(new w(a.sourceSpan,'Unexpected element "'+d.name+'"'));var e=h(d);if(m.isBlank(e))return void c.push(new w(a.sourceSpan,'"'+s+'" attribute is missing'));b[e]=d.children}})}function h(a){var b=a.attrs.filter(function(a){return a.name==s});return b.length>0?b[0].value:null}function i(a){var b=m.isPresent(a.description)?" desc='"+k(a.description)+"'":"",c=m.isPresent(a.meaning)?" meaning='"+k(a.meaning)+"'":"";return""+a.content+""}function j(a){return m.RegExpWrapper.replaceAll(r,a,function(a){var b=a[2];return""})}function k(a){return x.reduce(function(a,b){return a.replace(b[0],b[1])},a)}var l=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)},m=a("1e"),n=a("3c"),o=a("35"),p=a("43"),q=a("42"),r=m.RegExpWrapper.create('\\'),s="id",t="msg",u="message-bundle";b.serializeXmb=d;var v=function(){function a(a,b,c){this.content=a,this.messages=b,this.errors=c}return a}();b.XmbDeserializationResult=v;var w=function(a){function b(b,c){a.call(this,b,c)}return l(b,a),b}(p.ParseError);b.XmbDeserializationError=w,b.deserializeXmb=e;var x=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]];return c.exports}),a.registerDynamic("47",["9","1a","1e"],!0,function(a,b,c){"use strict";function d(a,b){if(f.isDevMode()&&!h.isBlank(b)){if(!h.isArray(b))throw new g.BaseException("Expected '"+a+"' to be an array of strings.");for(var c=0;c]/g,/^[\{\}]$/g];return b.assertInterpolationSymbols=e,c.exports}),a.registerDynamic("48",["9","23","19"],!0,function(a,b,c){"use strict";function d(a,b){var c=h.get(a),d=i.get(a);return f.reflector.hasLifecycleHook(b,c,d)}var e=a("9"),f=a("23"),g=a("19"),h=g.MapWrapper.createFromPairs([[f.LifecycleHooks.OnInit,e.OnInit],[f.LifecycleHooks.OnDestroy,e.OnDestroy],[f.LifecycleHooks.DoCheck,e.DoCheck],[f.LifecycleHooks.OnChanges,e.OnChanges],[f.LifecycleHooks.AfterContentInit,e.AfterContentInit],[f.LifecycleHooks.AfterContentChecked,e.AfterContentChecked],[f.LifecycleHooks.AfterViewInit,e.AfterViewInit],[f.LifecycleHooks.AfterViewChecked,e.AfterViewChecked]]),i=g.MapWrapper.createFromPairs([[f.LifecycleHooks.OnInit,"ngOnInit"],[f.LifecycleHooks.OnDestroy,"ngOnDestroy"],[f.LifecycleHooks.DoCheck,"ngDoCheck"],[f.LifecycleHooks.OnChanges,"ngOnChanges"],[f.LifecycleHooks.AfterContentInit,"ngAfterContentInit"],[f.LifecycleHooks.AfterContentChecked,"ngAfterContentChecked"],[f.LifecycleHooks.AfterViewInit,"ngAfterViewInit"],[f.LifecycleHooks.AfterViewChecked,"ngAfterViewChecked"]]);return b.hasLifecycleHook=d,c.exports}),a.registerDynamic("33",["9","23","19","1a","1e"],!0,function(a,b,c){"use strict";function d(a){return a instanceof e.DirectiveMetadata}var e=a("9"),f=a("23"),g=a("19"),h=a("1a"),i=a("1e"),j=function(){function a(a){void 0===a&&(a=f.reflector),this._reflector=a}return a.prototype.resolve=function(a){var b=this._reflector.annotations(e.resolveForwardRef(a));if(i.isPresent(b)){var c=b.find(d);if(i.isPresent(c)){var f=this._reflector.propMetadata(a);return this._mergeWithPropertyMetadata(c,f,a)}}throw new h.BaseException("No Directive annotation found on "+i.stringify(a))},a.prototype._mergeWithPropertyMetadata=function(a,b,c){var d=[],f=[],h={},j={};return g.StringMapWrapper.forEach(b,function(a,b){a.forEach(function(a){if(a instanceof e.InputMetadata&&(i.isPresent(a.bindingPropertyName)?d.push(b+": "+a.bindingPropertyName):d.push(b)),a instanceof e.OutputMetadata&&(i.isPresent(a.bindingPropertyName)?f.push(b+": "+a.bindingPropertyName):f.push(b)),a instanceof e.HostBindingMetadata&&(i.isPresent(a.hostPropertyName)?h["["+a.hostPropertyName+"]"]=b:h["["+b+"]"]=b),a instanceof e.HostListenerMetadata){var c=i.isPresent(a.args)?a.args.join(", "):"";h["("+a.eventName+")"]=b+"("+c+")"}a instanceof e.QueryMetadata&&(j[b]=a)})}),this._merge(a,d,f,h,j,c)},a.prototype._merge=function(a,b,c,d,f,j){var k,l=i.isPresent(a.inputs)?g.ListWrapper.concat(a.inputs,b):b;i.isPresent(a.outputs)?(a.outputs.forEach(function(a){if(g.ListWrapper.contains(c,a))throw new h.BaseException("Output event '"+a+"' defined multiple times in '"+i.stringify(j)+"'")}),k=g.ListWrapper.concat(a.outputs,c)):k=c;var m=i.isPresent(a.host)?g.StringMapWrapper.merge(a.host,d):d,n=i.isPresent(a.queries)?g.StringMapWrapper.merge(a.queries,f):f;return a instanceof e.ComponentMetadata?new e.ComponentMetadata({selector:a.selector,inputs:l,outputs:k,host:m,exportAs:a.exportAs,moduleId:a.moduleId,queries:n,changeDetection:a.changeDetection,providers:a.providers,viewProviders:a.viewProviders}):new e.DirectiveMetadata({selector:a.selector,inputs:l,outputs:k,host:m,exportAs:a.exportAs,queries:n,providers:a.providers})},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:f.ReflectorReader}],a}();return b.DirectiveResolver=j,b.CODEGEN_DIRECTIVE_RESOLVER=new j(f.reflector),c.exports}),a.registerDynamic("34",["9","23","1a","1e"],!0,function(a,b,c){"use strict";function d(a){return a instanceof e.PipeMetadata}var e=a("9"),f=a("23"),g=a("1a"),h=a("1e"),i=function(){function a(a){void 0===a&&(a=f.reflector),this._reflector=a}return a.prototype.resolve=function(a){var b=this._reflector.annotations(e.resolveForwardRef(a));if(h.isPresent(b)){var c=b.find(d);if(h.isPresent(c))return c}throw new g.BaseException("No Pipe decorator found on "+h.stringify(a))},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:f.ReflectorReader}],a}();return b.PipeResolver=i,c.exports}),a.registerDynamic("32",["9","23","1e","1a","19"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("23"),f=a("1e"),g=a("1a"),h=a("19"),i=function(){function a(a){void 0===a&&(a=e.reflector),this._reflector=a,this._cache=new h.Map}return a.prototype.resolve=function(a){var b=this._cache.get(a);return f.isBlank(b)&&(b=this._resolve(a),this._cache.set(a,b)),b},a.prototype._resolve=function(a){var b;if(this._reflector.annotations(a).forEach(function(a){a instanceof d.ComponentMetadata&&(b=a)}),f.isPresent(b)){if(f.isBlank(b.template)&&f.isBlank(b.templateUrl))throw new g.BaseException("Component '"+f.stringify(a)+"' must have either 'template' or 'templateUrl' set.");return new d.ViewMetadata({templateUrl:b.templateUrl,template:b.template,directives:b.directives,pipes:b.pipes,encapsulation:b.encapsulation,styles:b.styles,styleUrls:b.styleUrls,animations:b.animations,interpolation:b.interpolation})}throw new g.BaseException("Could not compile '"+f.stringify(a)+"' because it is not a component.")},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:e.ReflectorReader}],a}();return b.ViewResolver=i,c.exports}),a.registerDynamic("2c",["9","23","19","1a","1e","47","18","2d","48","33","34","31","1c","32"],!0,function(a,b,c){"use strict";function d(a,b){var c=[];return q.isPresent(b)&&f(b,c),q.isPresent(a.directives)&&f(a.directives,c),c}function e(a,b){var c=[];return q.isPresent(b)&&f(b,c),q.isPresent(a.pipes)&&f(a.pipes,c),c}function f(a,b){for(var c=0;c0?d:"package:"+d+y.MODULE_SUFFIX}return a.importUri(b)}function k(a){return y.visitValue(a,new B,null)}var l=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)},m=a("9"),n=a("23"),o=a("19"),p=a("1a"),q=a("1e"),r=a("47"),s=a("18"),t=a("2d"),u=a("48"),v=a("33"),w=a("34"),x=a("31"),y=a("1c"),z=a("32"),A=function(){function a(a,b,c,d,e){void 0===e&&(e=n.reflector),this._directiveResolver=a,this._pipeResolver=b,this._viewResolver=c,this._config=d,this._reflector=e,this._directiveCache=new Map,this._pipeCache=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0}return a.prototype.sanitizeTokenName=function(a){var b=q.stringify(a);if(b.indexOf("(")>=0){var c=this._anonymousTypes.get(a);q.isBlank(c)&&(this._anonymousTypes.set(a,this._anonymousTypeIndex++),c=this._anonymousTypes.get(a)),b="anonymous_token_"+c+"_"}return y.sanitizeIdentifier(b)},a.prototype.getAnimationEntryMetadata=function(a){var b=this,c=a.definitions.map(function(a){return b.getAnimationStateMetadata(a)});return new s.CompileAnimationEntryMetadata(a.name,c)},a.prototype.getAnimationStateMetadata=function(a){if(a instanceof m.AnimationStateDeclarationMetadata){var b=this.getAnimationStyleMetadata(a.styles);return new s.CompileAnimationStateDeclarationMetadata(a.stateNameExpr,b)}return a instanceof m.AnimationStateTransitionMetadata?new s.CompileAnimationStateTransitionMetadata(a.stateChangeExpr,this.getAnimationMetadata(a.steps)):null},a.prototype.getAnimationStyleMetadata=function(a){return new s.CompileAnimationStyleMetadata(a.offset,a.styles)},a.prototype.getAnimationMetadata=function(a){var b=this;if(a instanceof m.AnimationStyleMetadata)return this.getAnimationStyleMetadata(a);if(a instanceof m.AnimationKeyframesSequenceMetadata)return new s.CompileAnimationKeyframesSequenceMetadata(a.steps.map(function(a){return b.getAnimationStyleMetadata(a)}));if(a instanceof m.AnimationAnimateMetadata){var c=this.getAnimationMetadata(a.styles);return new s.CompileAnimationAnimateMetadata(a.timings,c)}if(a instanceof m.AnimationWithStepsMetadata){var d=a.steps.map(function(a){return b.getAnimationMetadata(a)});return a instanceof m.AnimationGroupMetadata?new s.CompileAnimationGroupMetadata(d):new s.CompileAnimationSequenceMetadata(d)}return null},a.prototype.getDirectiveMetadata=function(a){var b=this,c=this._directiveCache.get(a);if(q.isBlank(c)){var d=this._directiveResolver.resolve(a),e=null,f=null,g=[],h=i(a);if(d instanceof m.ComponentMetadata){r.assertArrayOfStrings("styles",d.styles);var k=d,l=this._viewResolver.resolve(a);r.assertArrayOfStrings("styles",l.styles),r.assertInterpolationSymbols("interpolation",l.interpolation);var o=q.isPresent(l.animations)?l.animations.map(function(a){return b.getAnimationEntryMetadata(a)}):null;e=new s.CompileTemplateMetadata({encapsulation:l.encapsulation,template:l.template,templateUrl:l.templateUrl,styles:l.styles,styleUrls:l.styleUrls,animations:o,interpolation:l.interpolation}),f=k.changeDetection,q.isPresent(d.viewProviders)&&(g=this.getProvidersMetadata(d.viewProviders)),h=j(this._reflector,a,k)}var p=[];q.isPresent(d.providers)&&(p=this.getProvidersMetadata(d.providers));var t=[],v=[];q.isPresent(d.queries)&&(t=this.getQueriesMetadata(d.queries,!1,a),v=this.getQueriesMetadata(d.queries,!0,a)),c=s.CompileDirectiveMetadata.create({selector:d.selector,exportAs:d.exportAs,isComponent:q.isPresent(e),type:this.getTypeMetadata(a,h),template:e,changeDetection:f,inputs:d.inputs,outputs:d.outputs,host:d.host,lifecycleHooks:n.LIFECYCLE_HOOKS_VALUES.filter(function(b){return u.hasLifecycleHook(b,a)}),providers:p,viewProviders:g,queries:t,viewQueries:v}),this._directiveCache.set(a,c)}return c},a.prototype.maybeGetDirectiveMetadata=function(a){try{return this.getDirectiveMetadata(a)}catch(b){if(-1!==b.message.indexOf("No Directive annotation"))return null;throw b}},a.prototype.getTypeMetadata=function(a,b,c){return void 0===c&&(c=null),new s.CompileTypeMetadata({name:this.sanitizeTokenName(a),moduleUrl:b,runtime:a,diDeps:this.getDependenciesMetadata(a,c)})},a.prototype.getFactoryMetadata=function(a,b,c){return void 0===c&&(c=null),new s.CompileFactoryMetadata({name:this.sanitizeTokenName(a),moduleUrl:b,runtime:a,diDeps:this.getDependenciesMetadata(a,c)})},a.prototype.getPipeMetadata=function(a){var b=this._pipeCache.get(a);if(q.isBlank(b)){var c=this._pipeResolver.resolve(a);b=new s.CompilePipeMetadata({type:this.getTypeMetadata(a,i(a)),name:c.name,pure:c.pure,lifecycleHooks:n.LIFECYCLE_HOOKS_VALUES.filter(function(b){return u.hasLifecycleHook(b,a)})}),this._pipeCache.set(a,b)}return b},a.prototype.getViewDirectivesMetadata=function(a){for(var b=this,c=this._viewResolver.resolve(a),e=d(c,this._config.platformDirectives),f=0;fc;c++)b+=" ";return b}var f=a("1a"),g=a("1e"),h=a("1b"),i=/'|\\|\n|\r|\$/g;b.CATCH_ERROR_VAR=h.variable("error"),b.CATCH_STACK_VAR=h.variable("stack");var j=function(){function a(){}return a}();b.OutputEmitter=j;var k=function(){function a(a){this.indent=a,this.parts=[]}return a}(),l=function(){function a(a,b){this._exportedVars=a,this._indent=b,this._classes=[],this._lines=[new k(b)]}return a.createRoot=function(b){return new a(b,0)},Object.defineProperty(a.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),a.prototype.isExportedVar=function(a){return-1!==this._exportedVars.indexOf(a)},a.prototype.println=function(a){void 0===a&&(a=""),this.print(a,!0)},a.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},a.prototype.print=function(a,b){void 0===b&&(b=!1),a.length>0&&this._currentLine.parts.push(a),b&&this._lines.push(new k(this._indent))},a.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},a.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},a.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},a.prototype.pushClass=function(a){this._classes.push(a)},a.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(a.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),a.prototype.toSource=function(){var a=this._lines;return 0===a[a.length-1].parts.length&&(a=a.slice(0,a.length-1)),a.map(function(a){return a.parts.length>0?e(a.indent)+a.parts.join(""):""}).join("\n")},a}();b.EmitterVisitorContext=l;var m=function(){function a(a){this._escapeDollarInStrings=a}return a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),b.println(";"),null},a.prototype.visitReturnStmt=function(a,b){return b.print("return "),a.value.visitExpression(this,b),b.println(";"),null},a.prototype.visitIfStmt=function(a,b){b.print("if ("),a.condition.visitExpression(this,b),b.print(") {");var c=g.isPresent(a.falseCase)&&a.falseCase.length>0;return a.trueCase.length<=1&&!c?(b.print(" "),this.visitAllStatements(a.trueCase,b),b.removeEmptyLastLine(),b.print(" ")):(b.println(),b.incIndent(),this.visitAllStatements(a.trueCase,b),b.decIndent(),c&&(b.println("} else {"),b.incIndent(),this.visitAllStatements(a.falseCase,b),b.decIndent())),b.println("}"),null},a.prototype.visitThrowStmt=function(a,b){return b.print("throw "),a.error.visitExpression(this,b),b.println(";"),null},a.prototype.visitCommentStmt=function(a,b){var c=a.comment.split("\n");return c.forEach(function(a){b.println("// "+a)}),null},a.prototype.visitWriteVarExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),b.print(a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWriteKeyExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("] = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWritePropExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("."+a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);var c=a.name;return g.isPresent(a.builtin)&&(c=this.getBuiltinMethodName(a.builtin),g.isBlank(c))?null:(b.print("."+c+"("),this.visitAllExpressions(a.args,b,","),b.print(")"),null)},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitReadVarExpr=function(a,c){var d=a.name;if(g.isPresent(a.builtin))switch(a.builtin){case h.BuiltinVar.Super:d="super";break;case h.BuiltinVar.This:d="this";break;case h.BuiltinVar.CatchError:d=b.CATCH_ERROR_VAR.name;break;case h.BuiltinVar.CatchStack:d=b.CATCH_STACK_VAR.name;break;default:throw new f.BaseException("Unknown builtin variable "+a.builtin)}return c.print(d),null},a.prototype.visitInstantiateExpr=function(a,b){return b.print("new "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitLiteralExpr=function(a,b){var c=a.value;return g.isString(c)?b.print(d(c,this._escapeDollarInStrings)):g.isBlank(c)?b.print("null"):b.print(""+c),null},a.prototype.visitConditionalExpr=function(a,b){return b.print("("),a.condition.visitExpression(this,b),b.print("? "),a.trueCase.visitExpression(this,b),b.print(": "),a.falseCase.visitExpression(this,b),b.print(")"),null},a.prototype.visitNotExpr=function(a,b){return b.print("!"),a.condition.visitExpression(this,b),null},a.prototype.visitBinaryOperatorExpr=function(a,b){var c;switch(a.operator){case h.BinaryOperator.Equals:c="==";break;case h.BinaryOperator.Identical:c="===";break;case h.BinaryOperator.NotEquals:c="!=";break;case h.BinaryOperator.NotIdentical:c="!==";break;case h.BinaryOperator.And:c="&&";break;case h.BinaryOperator.Or:c="||";break;case h.BinaryOperator.Plus:c="+";break;case h.BinaryOperator.Minus:c="-";break;case h.BinaryOperator.Divide:c="/";break;case h.BinaryOperator.Multiply:c="*";break;case h.BinaryOperator.Modulo: -c="%";break;case h.BinaryOperator.Lower:c="<";break;case h.BinaryOperator.LowerEquals:c="<=";break;case h.BinaryOperator.Bigger:c=">";break;case h.BinaryOperator.BiggerEquals:c=">=";break;default:throw new f.BaseException("Unknown operator "+a.operator)}return b.print("("),a.lhs.visitExpression(this,b),b.print(" "+c+" "),a.rhs.visitExpression(this,b),b.print(")"),null},a.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("."),b.print(a.name),null},a.prototype.visitReadKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("]"),null},a.prototype.visitLiteralArrayExpr=function(a,b){var c=a.entries.length>1;return b.print("[",c),b.incIndent(),this.visitAllExpressions(a.entries,b,",",c),b.decIndent(),b.print("]",c),null},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,e=a.entries.length>1;return b.print("{",e),b.incIndent(),this.visitAllObjects(function(a){b.print(d(a[0],c._escapeDollarInStrings)+": "),a[1].visitExpression(c,b)},a.entries,b,",",e),b.decIndent(),b.print("}",e),null},a.prototype.visitAllExpressions=function(a,b,c,d){var e=this;void 0===d&&(d=!1),this.visitAllObjects(function(a){return a.visitExpression(e,b)},a,b,c,d)},a.prototype.visitAllObjects=function(a,b,c,d,e){void 0===e&&(e=!1);for(var f=0;f0&&c.print(d,e),a(b[f]);e&&c.println()},a.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})},a}();return b.AbstractEmitterVisitor=m,b.escapeSingleQuoteString=d,c.exports}),a.registerDynamic("25",["1a","1e","1f","1b"],!0,function(a,b,c){"use strict";function d(a){var b,c=new l(j),d=h.EmitterVisitorContext.createRoot([]);return b=g.isArray(a)?a:[a],b.forEach(function(a){if(a instanceof i.Statement)a.visitStatement(c,d);else if(a instanceof i.Expression)a.visitExpression(c,d);else{if(!(a instanceof i.Type))throw new f.BaseException("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}var 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)},f=a("1a"),g=a("1e"),h=a("1f"),i=a("1b"),j="asset://debug/lib";b.debugOutputAstAsTypeScript=d;var k=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=new l(a),f=h.EmitterVisitorContext.createRoot(c);e.visitAllStatements(b,f);var g=[];return e.importsWithPrefixes.forEach(function(b,c){g.push("imp"+("ort * as "+b+" from '"+d._importGenerator.getImportPath(a,c)+"';"))}),g.push(f.toSource()),g.join("\n")},a}();b.TypeScriptEmitter=k;var l=function(a){function b(b){a.call(this,!1),this._moduleUrl=b,this.importsWithPrefixes=new Map}return e(b,a),b.prototype.visitType=function(a,b,c){void 0===c&&(c="any"),g.isPresent(a)?a.visitType(this,b):b.print(c)},b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),a.hasModifier(i.StmtModifier.Final)?b.print("const"):b.print("var"),b.print(" "+a.name+":"),this.visitType(a.type,b),b.print(" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("(<"),a.type.visitType(this,b),b.print(">"),a.value.visitExpression(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.isExportedVar(a.name)&&b.print("export "),b.print("class "+a.name),g.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),g.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(i.StmtModifier.Private)&&b.print("private "),b.print(a.name),b.print(":"),this.visitType(a.type,b),b.println(";")},b.prototype._visitClassGetter=function(a,b){a.hasModifier(i.StmtModifier.Private)&&b.print("private "),b.print("get "+a.name+"()"),b.print(":"),this.visitType(a.type,b),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print("constructor("),this._visitParams(a.constructorMethod.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.constructorMethod.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){a.hasModifier(i.StmtModifier.Private)&&b.print("private "),b.print(a.name+"("),this._visitParams(a.params,b),b.print("):"),this.visitType(a.type,b,"void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.print("):"),this.visitType(a.type,b,"void"),b.println(" => {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),b.print("function "+a.name+"("),this._visitParams(a.params,b),b.print("):"),this.visitType(a.type,b,"void"),b.println(" {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.visitTryCatchStmt=function(a,b){b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+h.CATCH_ERROR_VAR.name+") {"),b.incIndent();var c=[h.CATCH_STACK_VAR.set(h.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[i.StmtModifier.Final])].concat(a.catchStmts);return this.visitAllStatements(c,b),b.decIndent(),b.println("}"),null},b.prototype.visitBuiltintType=function(a,b){var c;switch(a.name){case i.BuiltinTypeName.Bool:c="boolean";break;case i.BuiltinTypeName.Dynamic:c="any";break;case i.BuiltinTypeName.Function:c="Function";break;case i.BuiltinTypeName.Number:c="number";break;case i.BuiltinTypeName.Int:c="number";break;case i.BuiltinTypeName.String:c="string";break;default:throw new f.BaseException("Unsupported builtin type "+a.name)}return b.print(c),null},b.prototype.visitExternalType=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitArrayType=function(a,b){return this.visitType(a.of,b),b.print("[]"),null},b.prototype.visitMapType=function(a,b){return b.print("{[key: string]:"),this.visitType(a.valueType,b),b.print("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case i.BuiltinMethod.ConcatArray:b="concat";break;case i.BuiltinMethod.SubscribeObservable:b="subscribe";break;case i.BuiltinMethod.bind:b="bind";break;default:throw new f.BaseException("Unknown builtin method: "+a)}return b},b.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){b.print(a.name),b.print(":"),c.visitType(a.type,b)},a,b,",")},b.prototype._visitIdentifier=function(a,b,c){var d=this;if(g.isBlank(a.name))throw new f.BaseException("Internal error: unknown identifier "+a);if(g.isPresent(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var e=this.importsWithPrefixes.get(a.moduleUrl);g.isBlank(e)&&(e="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,e)),c.print(e+".")}c.print(a.name),g.isPresent(b)&&b.length>0&&(c.print("<"),this.visitAllObjects(function(a){return a.visitType(d,c)},b,c,","),c.print(">"))},b}(h.AbstractEmitterVisitor);return c.exports}),a.registerDynamic("4a",["23"],!0,function(a,b,c){"use strict";function d(a,c){for(var d=0,e=c;d0?f.push(i):(f.length>0&&(d.push(f.join("")),c.push(D),f=[]),c.push(i)),i==B&&e++}return f.length>0&&(d.push(f.join("")),c.push(D)),new F(c.join(""),d)}var g=a("19"),h=a("1e"),i=function(){function a(){this.strictStyling=!0}return a.prototype.shimCssText=function(a,b,c){return void 0===c&&(c=""),a=d(a),a=this._insertDirectives(a),this._scopeCssText(a,b,c)},a.prototype._insertDirectives=function(a){return a=this._insertPolyfillDirectivesInCssText(a),this._insertPolyfillRulesInCssText(a)},a.prototype._insertPolyfillDirectivesInCssText=function(a){return h.StringWrapper.replaceAllMapped(a,j,function(a){return a[1]+"{"})},a.prototype._insertPolyfillRulesInCssText=function(a){return h.StringWrapper.replaceAllMapped(a,k,function(a){var b=a[0];return b=h.StringWrapper.replace(b,a[1],""),b=h.StringWrapper.replace(b,a[2],""),a[3]+b})},a.prototype._scopeCssText=function(a,b,c){var d=this._extractUnscopedRulesFromCssText(a);return a=this._insertPolyfillHostInCssText(a),a=this._convertColonHost(a),a=this._convertColonHostContext(a),a=this._convertShadowDOMSelectors(a),h.isPresent(b)&&(a=this._scopeSelectors(a,b,c)),a=a+"\n"+d,a.trim()},a.prototype._extractUnscopedRulesFromCssText=function(a){for(var b,c="",d=h.RegExpWrapper.matcher(l,a);h.isPresent(b=h.RegExpMatcherWrapper.next(d));){var e=b[0];e=h.StringWrapper.replace(e,b[2],""),e=h.StringWrapper.replace(e,b[1],b[3]),c+=e+"\n\n"}return c},a.prototype._convertColonHost=function(a){return this._convertColonRule(a,p,this._colonHostPartReplacer)},a.prototype._convertColonHostContext=function(a){return this._convertColonRule(a,q,this._colonHostContextPartReplacer)},a.prototype._convertColonRule=function(a,b,c){return h.StringWrapper.replaceAllMapped(a,b,function(a){if(h.isPresent(a[2])){for(var b=a[2].split(","),d=[],e=0;e","+","~"],e=a,f="["+b+"]",i=0;i0&&!g.ListWrapper.contains(d,b)&&!h.StringWrapper.contains(b,f)){var c=/([^:]*)(:*)(.*)/g,e=h.RegExpWrapper.firstMatch(c,b);h.isPresent(e)&&(a=e[1]+f+e[2]+e[3])}return a}).join(j)}return e},a.prototype._insertPolyfillHostInCssText=function(a){return a=h.StringWrapper.replaceAll(a,x,n),a=h.StringWrapper.replaceAll(a,w,m)},a}();b.ShadowCss=i;var j=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,k=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,l=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,m="-shadowcsshost",n="-shadowcsscontext",o=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",p=h.RegExpWrapper.create("("+m+o,"im"),q=h.RegExpWrapper.create("("+n+o,"im"),r=m+"-no-combinator",s=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],t=/(?:>>>)|(?:\/deep\/)/g,u="([>\\s~+[.,{:][\\s\\S]*)?$",v=h.RegExpWrapper.create(m,"im"),w=/:host/gim,x=/:host-context/gim,y=/\/\*[\s\S]*?\*\//g,z=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,A=/([{}])/g,B="{",C="}",D="%BLOCK%",E=function(){function a(a,b){this.selector=a,this.content=b}return a}();b.CssRule=E,b.processRules=e;var F=function(){function a(a,b){this.escapedString=a,this.blocks=b}return a}()}(a("45")),c.exports}),a.registerDynamic("28",["9","1e","18","1b","4b","3b","31"],!0,function(a,b,c){"use strict";function d(a){var b="styles";return f.isPresent(a)&&(b+="_"+a.type.name),b}var e=a("9"),f=a("1e"),g=a("18"),h=a("1b"),i=a("4b"),j=a("3b"),k=a("31"),l="%COMP%",m="_nghost-"+l,n="_ngcontent-"+l,o=function(){function a(a,b,c){this.moduleUrl=a,this.isShimmed=b,this.valuePlaceholder=c}return a}();b.StylesCompileDependency=o;var p=function(){function a(a,b,c){this.statements=a,this.stylesVar=b,this.dependencies=c}return a}();b.StylesCompileResult=p;var q=function(){function a(a){this._urlResolver=a,this._shadowCss=new i.ShadowCss}return a.prototype.compileComponent=function(a){var b=a.template.encapsulation===e.ViewEncapsulation.Emulated;return this._compileStyles(d(a),a.template.styles,a.template.styleUrls,b)},a.prototype.compileStylesheet=function(a,b,c){var e=j.extractStyleUrls(this._urlResolver,a,b);return this._compileStyles(d(null),[e.style],e.styleUrls,c)},a.prototype._compileStyles=function(a,b,c,e){for(var f=this,i=b.map(function(a){return h.literal(f._shimIfNeeded(a,e))}),j=[],k=0;k=b.$TAB&&a<=b.$SPACE||a==Q}function k(a){return a>=H&&P>=a||a>=C&&E>=a||a==G||a==b.$$}function l(a){if(0==a.length)return!1;var c=new S(a);if(!k(c.peek))return!1;for(c.advance();c.peek!==b.$EOF;){if(!m(c.peek))return!1;c.advance()}return!0}function m(a){return a>=H&&P>=a||a>=C&&E>=a||a>=A&&B>=a||a==G||a==b.$$}function n(a){return a>=A&&B>=a}function o(a){return a==I||a==D}function p(a){return a==b.$MINUS||a==b.$PLUS}function q(a){return a===b.$SQ||a===b.$DQ||a===b.$BT}function r(a){switch(a){case K:return b.$LF;case J:return b.$FF;case L:return b.$CR;case M:return b.$TAB;case O:return b.$VTAB;default:return a}}var s=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)},t=a("9"),u=a("19"),v=a("1a"),w=a("1e");!function(a){a[a.Character=0]="Character",a[a.Identifier=1]="Identifier",a[a.Keyword=2]="Keyword",a[a.String=3]="String",a[a.Operator=4]="Operator",a[a.Number=5]="Number"}(b.TokenType||(b.TokenType={}));var x=b.TokenType,y=function(){function a(){}return a.prototype.tokenize=function(a){for(var b=new S(a),c=[],d=b.scanToken();null!=d;)c.push(d),d=b.scanToken();return c},a.decorators=[{type:t.Injectable}],a}();b.Lexer=y;var z=function(){function a(a,b,c,d){this.index=a,this.type=b,this.numValue=c,this.strValue=d}return a.prototype.isCharacter=function(a){return this.type==x.Character&&this.numValue==a},a.prototype.isNumber=function(){return this.type==x.Number},a.prototype.isString=function(){return this.type==x.String},a.prototype.isOperator=function(a){return this.type==x.Operator&&this.strValue==a},a.prototype.isIdentifier=function(){return this.type==x.Identifier},a.prototype.isKeyword=function(){return this.type==x.Keyword},a.prototype.isKeywordDeprecatedVar=function(){return this.type==x.Keyword&&"var"==this.strValue},a.prototype.isKeywordLet=function(){return this.type==x.Keyword&&"let"==this.strValue},a.prototype.isKeywordNull=function(){return this.type==x.Keyword&&"null"==this.strValue},a.prototype.isKeywordUndefined=function(){return this.type==x.Keyword&&"undefined"==this.strValue},a.prototype.isKeywordTrue=function(){return this.type==x.Keyword&&"true"==this.strValue},a.prototype.isKeywordFalse=function(){return this.type==x.Keyword&&"false"==this.strValue},a.prototype.toNumber=function(){return this.type==x.Number?this.numValue:-1},a.prototype.toString=function(){switch(this.type){case x.Character:case x.Identifier:case x.Keyword:case x.Operator:case x.String:return this.strValue;case x.Number:return this.numValue.toString();default:return null}},a}();b.Token=z,b.EOF=new z(-1,x.Character,0,""),b.$EOF=0,b.$TAB=9,b.$LF=10,b.$VTAB=11,b.$FF=12,b.$CR=13,b.$SPACE=32,b.$BANG=33,b.$DQ=34,b.$HASH=35,b.$$=36,b.$PERCENT=37,b.$AMPERSAND=38,b.$SQ=39,b.$LPAREN=40,b.$RPAREN=41,b.$STAR=42,b.$PLUS=43,b.$COMMA=44,b.$MINUS=45,b.$PERIOD=46,b.$SLASH=47,b.$COLON=58,b.$SEMICOLON=59,b.$LT=60,b.$EQ=61,b.$GT=62,b.$QUESTION=63;var A=48,B=57,C=65,D=69,E=90;b.$LBRACKET=91,b.$BACKSLASH=92,b.$RBRACKET=93;var F=94,G=95;b.$BT=96;var H=97,I=101,J=102,K=110,L=114,M=116,N=117,O=118,P=122;b.$LBRACE=123,b.$BAR=124,b.$RBRACE=125;var Q=160,R=function(a){function b(b){a.call(this),this.message=b}return s(b,a),b.prototype.toString=function(){return this.message},b}(v.BaseException);b.ScannerError=R;var S=function(){function a(a){this.input=a,this.peek=0,this.index=-1,this.length=a.length,this.advance()}return a.prototype.advance=function(){this.peek=++this.index>=this.length?b.$EOF:w.StringWrapper.charCodeAt(this.input,this.index)},a.prototype.scanToken=function(){for(var a=this.input,c=this.length,e=this.peek,f=this.index;e<=b.$SPACE;){if(++f>=c){e=b.$EOF;break}e=w.StringWrapper.charCodeAt(a,f)}if(this.peek=e,this.index=f,f>=c)return null;if(k(e))return this.scanIdentifier();if(n(e))return this.scanNumber(f);var g=f;switch(e){case b.$PERIOD:return this.advance(),n(this.peek)?this.scanNumber(g):d(g,b.$PERIOD);case b.$LPAREN:case b.$RPAREN:case b.$LBRACE:case b.$RBRACE:case b.$LBRACKET:case b.$RBRACKET:case b.$COMMA:case b.$COLON:case b.$SEMICOLON:return this.scanCharacter(g,e);case b.$SQ:case b.$DQ:return this.scanString();case b.$HASH:case b.$PLUS:case b.$MINUS:case b.$STAR:case b.$SLASH:case b.$PERCENT:case F:return this.scanOperator(g,w.StringWrapper.fromCharCode(e));case b.$QUESTION:return this.scanComplexOperator(g,"?",b.$PERIOD,".");case b.$LT:case b.$GT:return this.scanComplexOperator(g,w.StringWrapper.fromCharCode(e),b.$EQ,"=");case b.$BANG:case b.$EQ:return this.scanComplexOperator(g,w.StringWrapper.fromCharCode(e),b.$EQ,"=",b.$EQ,"=");case b.$AMPERSAND:return this.scanComplexOperator(g,"&",b.$AMPERSAND,"&");case b.$BAR:return this.scanComplexOperator(g,"|",b.$BAR,"|");case Q:for(;j(this.peek);)this.advance();return this.scanToken()}return this.error("Unexpected character ["+w.StringWrapper.fromCharCode(e)+"]",0),null},a.prototype.scanCharacter=function(a,b){return this.advance(),d(a,b)},a.prototype.scanOperator=function(a,b){return this.advance(),g(a,b)},a.prototype.scanComplexOperator=function(a,b,c,d,e,f){this.advance();var h=b;return this.peek==c&&(this.advance(),h+=d),w.isPresent(e)&&this.peek==e&&(this.advance(),h+=f),g(a,h)},a.prototype.scanIdentifier=function(){var a=this.index;for(this.advance();m(this.peek);)this.advance();var b=this.input.substring(a,this.index);return u.SetWrapper.has(T,b)?f(a,b):e(a,b)},a.prototype.scanNumber=function(a){var c=this.index===a;for(this.advance();;){if(n(this.peek));else if(this.peek==b.$PERIOD)c=!1;else{if(!o(this.peek))break;this.advance(),p(this.peek)&&this.advance(),n(this.peek)||this.error("Invalid exponent",-1),c=!1}this.advance()}var d=this.input.substring(a,this.index),e=c?w.NumberWrapper.parseIntAutoRadix(d):w.NumberWrapper.parseFloat(d);return i(a,e)},a.prototype.scanString=function(){var a=this.index,c=this.peek;this.advance();for(var d,e=this.index,f=this.input;this.peek!=c;)if(this.peek==b.$BACKSLASH){null==d&&(d=new w.StringJoiner),d.add(f.substring(e,this.index)),this.advance();var g;if(this.peek==N){var i=f.substring(this.index+1,this.index+5);try{g=w.NumberWrapper.parseInt(i,16)}catch(j){this.error("Invalid unicode escape [\\u"+i+"]",0)}for(var k=0;5>k;k++)this.advance()}else g=r(this.peek),this.advance();d.add(w.StringWrapper.fromCharCode(g)),e=this.index}else this.peek==b.$EOF?this.error("Unterminated quote",0):this.advance();var l=f.substring(e,this.index);this.advance();var m=l;return null!=d&&(d.add(l),m=d.toString()),h(a,m)},a.prototype.error=function(a,b){var c=this.index+b;throw new R("Lexer Error: "+a+" at column "+c+" in expression ["+this.input+"]")},a}();b.isIdentifier=l,b.isQuote=q;var T=(u.SetWrapper.createFromList(["+","-","*","/","%","^","=","==","!=","===","!==","<",">","<=",">=","&&","||","&","|","!","?","#","?."]),u.SetWrapper.createFromList(["var","let","null","undefined","true","false","if","else"]));return c.exports}),a.registerDynamic("38",["9","19","1a","1e","41","4c","39"],!0,function(a,b,c){"use strict";function d(a){var b=i.escapeRegExp(a.start)+"([\\s\\S]*?)"+i.escapeRegExp(a.end);return i.RegExpWrapper.create(b,"g")}var 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)},f=a("9"),g=a("19"),h=a("1a"),i=a("1e"),j=a("41"),k=a("4c"),l=a("39"),m=new k.ImplicitReceiver,n=function(a){function b(b,c,d,e){a.call(this,"Parser Error: "+b+" "+d+" ["+c+"] in "+e)}return e(b,a),b}(h.BaseException),o=function(){function a(a,b){this.strings=a,this.expressions=b}return a}();b.SplitInterpolation=o;var p=function(){function a(a,b){this.templateBindings=a,this.warnings=b}return a}();b.TemplateBindingParseResult=p;var q=function(){function a(a){this._lexer=a}return a.prototype.parseAction=function(a,b,c){void 0===c&&(c=j.DEFAULT_INTERPOLATION_CONFIG),this._checkNoInterpolation(a,b,c);var d=this._lexer.tokenize(this._stripComments(a)),e=new r(a,b,d,!0).parseChain();return new k.ASTWithSource(e,a,b)},a.prototype.parseBinding=function(a,b,c){void 0===c&&(c=j.DEFAULT_INTERPOLATION_CONFIG);var d=this._parseBindingAst(a,b,c);return new k.ASTWithSource(d,a,b)},a.prototype.parseSimpleBinding=function(a,b,c){void 0===c&&(c=j.DEFAULT_INTERPOLATION_CONFIG);var d=this._parseBindingAst(a,b,c);if(!s.check(d))throw new n("Host binding expression can only contain field access and constants",a,b);return new k.ASTWithSource(d,a,b)},a.prototype._parseBindingAst=function(a,b,c){var d=this._parseQuote(a,b);if(i.isPresent(d))return d;this._checkNoInterpolation(a,b,c);var e=this._lexer.tokenize(this._stripComments(a));return new r(a,b,e,!1).parseChain()},a.prototype._parseQuote=function(a,b){if(i.isBlank(a))return null;var c=a.indexOf(":");if(-1==c)return null;var d=a.substring(0,c).trim();if(!l.isIdentifier(d))return null;var e=a.substring(c+1);return new k.Quote(d,e,b)},a.prototype.parseTemplateBindings=function(a,b){var c=this._lexer.tokenize(a);return new r(a,b,c,!1).parseTemplateBindings()},a.prototype.parseInterpolation=function(a,b,c){void 0===c&&(c=j.DEFAULT_INTERPOLATION_CONFIG);var d=this.splitInterpolation(a,b,c);if(null==d)return null;for(var e=[],f=0;f0))throw new n("Blank expressions are not allowed in interpolated strings",a,"at column "+this._findInterpolationErrorColumn(f,k,c)+" in",b);h.push(l)}}return new o(g,h)},a.prototype.wrapLiteralPrimitive=function(a,b){return new k.ASTWithSource(new k.LiteralPrimitive(a),a,b)},a.prototype._stripComments=function(a){var b=this._commentStart(a);return i.isPresent(b)?a.substring(0,b).trim():a},a.prototype._commentStart=function(a){for(var b=null,c=0;c1)throw new n("Got interpolation ("+c.start+c.end+") where expression was expected",a,"at column "+this._findInterpolationErrorColumn(f,1,c)+" in",b)},a.prototype._findInterpolationErrorColumn=function(a,b,c){for(var d="",e=0;b>e;e++)d+=e%2===0?a[e]:""+c.start+a[e]+c.end;return d.length},a.decorators=[{type:f.Injectable}],a.ctorParameters=[{type:l.Lexer}],a}();b.Parser=q;var r=function(){function a(a,b,c,d){this.input=a,this.location=b,this.tokens=c,this.parseAction=d,this.index=0}return a.prototype.peek=function(a){var b=this.index+a;return b"))a=new k.Binary(">",a,this.parseAdditive());else if(this.optionalOperator("<="))a=new k.Binary("<=",a,this.parseAdditive());else{if(!this.optionalOperator(">="))return a;a=new k.Binary(">=",a,this.parseAdditive())}},a.prototype.parseAdditive=function(){for(var a=this.parseMultiplicative();;)if(this.optionalOperator("+"))a=new k.Binary("+",a,this.parseMultiplicative());else{if(!this.optionalOperator("-"))return a;a=new k.Binary("-",a,this.parseMultiplicative())}},a.prototype.parseMultiplicative=function(){for(var a=this.parsePrefix();;)if(this.optionalOperator("*"))a=new k.Binary("*",a,this.parsePrefix());else if(this.optionalOperator("%"))a=new k.Binary("%",a,this.parsePrefix());else{if(!this.optionalOperator("/"))return a;a=new k.Binary("/",a,this.parsePrefix())}},a.prototype.parsePrefix=function(){return this.optionalOperator("+")?this.parsePrefix():this.optionalOperator("-")?new k.Binary("-",new k.LiteralPrimitive(0),this.parsePrefix()):this.optionalOperator("!")?new k.PrefixNot(this.parsePrefix()):this.parseCallChain()},a.prototype.parseCallChain=function(){for(var a=this.parsePrimary();;)if(this.optionalCharacter(l.$PERIOD))a=this.parseAccessMemberOrMethodCall(a,!1);else if(this.optionalOperator("?."))a=this.parseAccessMemberOrMethodCall(a,!0);else if(this.optionalCharacter(l.$LBRACKET)){var b=this.parsePipe();if(this.expectCharacter(l.$RBRACKET),this.optionalOperator("=")){var c=this.parseConditional();a=new k.KeyedWrite(a,b,c)}else a=new k.KeyedRead(a,b)}else{if(!this.optionalCharacter(l.$LPAREN))return a;var d=this.parseCallArguments();this.expectCharacter(l.$RPAREN),a=new k.FunctionCall(a,d)}},a.prototype.parsePrimary=function(){if(this.optionalCharacter(l.$LPAREN)){var a=this.parsePipe();return this.expectCharacter(l.$RPAREN),a}if(this.next.isKeywordNull()||this.next.isKeywordUndefined())return this.advance(),new k.LiteralPrimitive(null);if(this.next.isKeywordTrue())return this.advance(),new k.LiteralPrimitive(!0);if(this.next.isKeywordFalse())return this.advance(),new k.LiteralPrimitive(!1);if(this.optionalCharacter(l.$LBRACKET)){var b=this.parseExpressionList(l.$RBRACKET);return this.expectCharacter(l.$RBRACKET),new k.LiteralArray(b)}if(this.next.isCharacter(l.$LBRACE))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(m,!1);if(this.next.isNumber()){var c=this.next.toNumber();return this.advance(),new k.LiteralPrimitive(c)}if(this.next.isString()){var d=this.next.toString();return this.advance(),new k.LiteralPrimitive(d)}throw this.index>=this.tokens.length?this.error("Unexpected end of expression: "+this.input):this.error("Unexpected token "+this.next),new h.BaseException("Fell through all cases in parsePrimary")},a.prototype.parseExpressionList=function(a){var b=[];if(!this.next.isCharacter(a))do b.push(this.parsePipe());while(this.optionalCharacter(l.$COMMA));return b},a.prototype.parseLiteralMap=function(){var a=[],b=[];if(this.expectCharacter(l.$LBRACE),!this.optionalCharacter(l.$RBRACE)){do{var c=this.expectIdentifierOrKeywordOrString();a.push(c),this.expectCharacter(l.$COLON),b.push(this.parsePipe())}while(this.optionalCharacter(l.$COMMA));this.expectCharacter(l.$RBRACE)}return new k.LiteralMap(a,b)},a.prototype.parseAccessMemberOrMethodCall=function(a,b){void 0===b&&(b=!1);var c=this.expectIdentifierOrKeyword();if(this.optionalCharacter(l.$LPAREN)){var d=this.parseCallArguments();return this.expectCharacter(l.$RPAREN),b?new k.SafeMethodCall(a,c,d):new k.MethodCall(a,c,d)}if(!b){if(this.optionalOperator("=")){this.parseAction||this.error("Bindings cannot contain assignments");var e=this.parseConditional();return new k.PropertyWrite(a,c,e)}return new k.PropertyRead(a,c)}return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),null):new k.SafePropertyRead(a,c)},a.prototype.parseCallArguments=function(){if(this.next.isCharacter(l.$RPAREN))return[];var a=[];do a.push(this.parsePipe());while(this.optionalCharacter(l.$COMMA));return a},a.prototype.expectTemplateBindingKey=function(){var a="",b=!1;do a+=this.expectIdentifierOrKeywordOrString(),b=this.optionalOperator("-"),b&&(a+="-");while(b);return a.toString()},a.prototype.parseTemplateBindings=function(){for(var a=[],b=null,c=[];this.index=b.$TAB&&a<=b.$SPACE||a==b.$NBSP}return b.$EOF=0,b.$TAB=9,b.$LF=10,b.$VTAB=11,b.$FF=12,b.$CR=13,b.$SPACE=32,b.$BANG=33,b.$DQ=34,b.$HASH=35,b.$$=36,b.$PERCENT=37,b.$AMPERSAND=38,b.$SQ=39,b.$LPAREN=40,b.$RPAREN=41,b.$STAR=42,b.$PLUS=43,b.$COMMA=44,b.$MINUS=45,b.$PERIOD=46,b.$SLASH=47,b.$COLON=58,b.$SEMICOLON=59,b.$LT=60,b.$EQ=61,b.$GT=62,b.$QUESTION=63,b.$0=48,b.$9=57,b.$A=65,b.$E=69,b.$F=70,b.$X=88,b.$Z=90,b.$LBRACKET=91,b.$BACKSLASH=92,b.$RBRACKET=93,b.$CARET=94,b.$_=95,b.$a=97,b.$e=101,b.$f=102,b.$n=110,b.$r=114,b.$t=116,b.$u=117,b.$v=118,b.$x=120,b.$z=122,b.$LBRACE=123,b.$BAR=124,b.$RBRACE=125,b.$NBSP=160,b.$PIPE=124,b.$TILDA=126,b.$AT=64,b.isWhitespace=d,c.exports}),a.registerDynamic("41",[],!0,function(a,b,c){"use strict";return b.DEFAULT_INTERPOLATION_CONFIG={start:"{{",end:"}}"},c.exports}),a.registerDynamic("4e",["4d","19","1e","4f","41","43","45"],!0,function(a,b,c){return function(c){"use strict";function d(a,b,c,d){return void 0===c&&(c=!1),void 0===d&&(d=y.DEFAULT_INTERPOLATION_CONFIG),new G(new z.ParseSourceFile(a,b),c,d).tokenize()}function e(a){var b=a===u.$EOF?"EOF":w.StringWrapper.fromCharCode(a);return'Unexpected character "'+b+'"'}function f(a){return'Unknown entity "'+a+'" - use the "&#;" or "&#x;" syntax'}function g(a){return!h(a)||a===u.$EOF}function h(a){return a>=u.$TAB&&a<=u.$SPACE||a===u.$NBSP}function i(a){return h(a)||a===u.$GT||a===u.$SLASH||a===u.$SQ||a===u.$DQ||a===u.$EQ}function j(a){return(au.$9)}function k(a){return a==u.$SEMICOLON||a==u.$EOF||!p(a)}function l(a){return a==u.$SEMICOLON||a==u.$EOF||!o(a)}function m(a,b,c){var d=a.substring(b);return w.StringWrapper.charCodeAt(d,0)===u.$LBRACE&&w.StringWrapper.charCodeAt(d,1)!==u.$LBRACE&&!d.startsWith(c)}function n(a){return a===u.$EQ||o(a)}function o(a){return a>=u.$a&&a<=u.$z||a>=u.$A&&a<=u.$Z}function p(a){return a>=u.$a&&a<=u.$f||a>=u.$A&&a<=u.$F||a>=u.$0&&a<=u.$9}function q(a,b){return r(a)==r(b)}function r(a){return a>=u.$a&&a<=u.$z?a-u.$a+u.$A:a}function s(a){for(var b,c=[],d=0;d=this._length)throw this._createError(e(u.$EOF),this._getSpan());this._peek===u.$LF?(this._line++,this._column=0):this._peek!==u.$LF&&this._peek!==u.$CR&&this._column++,this._index++,this._peek=this._index>=this._length?u.$EOF:w.StringWrapper.charCodeAt(this._input,this._index),this._nextPeek=this._index+1>=this._length?u.$EOF:w.StringWrapper.charCodeAt(this._input,this._index+1)},a.prototype._attemptCharCode=function(a){return this._peek===a?(this._advance(),!0):!1},a.prototype._attemptCharCodeCaseInsensitive=function(a){return q(this._peek,a)?(this._advance(),!0):!1},a.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(e(this._peek),this._getSpan(b,b))},a.prototype._attemptStr=function(a){for(var b=this._savePosition(),c=0;cd.offset&&f.push(this._input.substring(d.offset,this._index));this._peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(A.COMMENT_START,a),this._requireCharCode(u.$MINUS),this._endToken([]);var c=this._consumeRawText(!1,u.$MINUS,function(){return b._attemptStr("->")});this._beginToken(A.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(A.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,u.$RBRACKET,function(){return b._attemptStr("]>")});this._beginToken(A.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(A.DOC_TYPE,a),this._attemptUntilChar(u.$GT),this._advance(),this._endToken([this._input.substring(a.offset+2,this._index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this._index,b=null;this._peek!==u.$COLON&&!j(this._peek);)this._advance();var c;this._peek===u.$COLON?(this._advance(),b=this._input.substring(a,this._index-1),c=this._index):c=a,this._requireCharCodeUntilFn(i,this._index===c?1:0);var d=this._input.substring(c,this._index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c=this._savePosition();try{if(!o(this._peek))throw this._createError(e(this._peek),this._getSpan());var d=this._index;for(this._consumeTagOpenStart(a),b=this._input.substring(d,this._index).toLowerCase(),this._attemptCharCodeUntilFn(g);this._peek!==u.$SLASH&&this._peek!==u.$GT;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(g),this._attemptCharCode(u.$EQ)&&(this._attemptCharCodeUntilFn(g),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(g);this._consumeTagOpenEnd()}catch(f){if(f instanceof F)return this._restorePosition(c),this._beginToken(A.TEXT,a),void this._endToken(["<"]);throw f}var h=x.getHtmlTagDefinition(b).contentType;h===x.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(b,!1):h===x.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,u.$LT,function(){return c._attemptCharCode(u.$SLASH)?(c._attemptCharCodeUntilFn(g),c._attemptStrCaseInsensitive(a)?(c._attemptCharCodeUntilFn(g),!!c._attemptCharCode(u.$GT)):!1):!1});this._beginToken(A.TAG_CLOSE,d.sourceSpan.end),this._endToken([null,a])},a.prototype._consumeTagOpenStart=function(a){this._beginToken(A.TAG_OPEN_START,a);var b=this._consumePrefixAndName();this._endToken(b)},a.prototype._consumeAttributeName=function(){this._beginToken(A.ATTR_NAME);var a=this._consumePrefixAndName();this._endToken(a)},a.prototype._consumeAttributeValue=function(){this._beginToken(A.ATTR_VALUE);var a;if(this._peek===u.$SQ||this._peek===u.$DQ){var b=this._peek;this._advance();for(var c=[];this._peek!==b;)c.push(this._readChar(!0));a=c.join(""),this._advance()}else{var d=this._index;this._requireCharCodeUntilFn(i,1),a=this._input.substring(d,this._index)}this._endToken([this._processCarriageReturns(a)])},a.prototype._consumeTagOpenEnd=function(){var a=this._attemptCharCode(u.$SLASH)?A.TAG_OPEN_END_VOID:A.TAG_OPEN_END;this._beginToken(a),this._requireCharCode(u.$GT),this._endToken([])},a.prototype._consumeTagClose=function(a){this._beginToken(A.TAG_CLOSE,a),this._attemptCharCodeUntilFn(g);var b=this._consumePrefixAndName();this._attemptCharCodeUntilFn(g),this._requireCharCode(u.$GT),this._endToken(b)},a.prototype._consumeExpansionFormStart=function(){this._beginToken(A.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(u.$LBRACE),this._endToken([]),this._beginToken(A.RAW_TEXT,this._getLocation());var a=this._readUntil(u.$COMMA);this._endToken([a],this._getLocation()),this._requireCharCode(u.$COMMA),this._attemptCharCodeUntilFn(g),this._beginToken(A.RAW_TEXT,this._getLocation());var b=this._readUntil(u.$COMMA);this._endToken([b],this._getLocation()),this._requireCharCode(u.$COMMA),this._attemptCharCodeUntilFn(g),this._expansionCaseStack.push(A.EXPANSION_FORM_START)},a.prototype._consumeExpansionCaseStart=function(){this._beginToken(A.EXPANSION_CASE_VALUE,this._getLocation());var a=this._readUntil(u.$LBRACE).trim();this._endToken([a],this._getLocation()),this._attemptCharCodeUntilFn(g),this._beginToken(A.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(u.$LBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(g),this._expansionCaseStack.push(A.EXPANSION_CASE_EXP_START)},a.prototype._consumeExpansionCaseEnd=function(){this._beginToken(A.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(u.$RBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(g),this._expansionCaseStack.pop()},a.prototype._consumeExpansionFormEnd=function(){this._beginToken(A.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(u.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()},a.prototype._consumeText=function(){var a=this._getLocation();this._beginToken(A.TEXT,a);var b=[],c=!1;do{var d=this._savePosition();if(this._attemptStr(this.interpolationConfig.start)){this._restorePosition(d);for(var e=0;e0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===A.EXPANSION_CASE_EXP_START},a.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===A.EXPANSION_FORM_START},a}()}(a("45")),c.exports}),a.registerDynamic("35",["9","1e","19","3c","4e","43","4f"],!0,function(a,b,c){"use strict";function d(a,b,c){return h.isBlank(a)&&(a=m.getHtmlTagDefinition(b).implicitNamespacePrefix,h.isBlank(a)&&h.isPresent(c)&&(a=m.getNsPrefix(c.name))),m.mergeNsAndName(a,b)}function e(a,b){return a.length>0&&a[a.length-1]===b}var f=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)},g=a("9"),h=a("1e"),i=a("19"),j=a("3c"),k=a("4e"),l=a("43"),m=a("4f"),n=function(a){function b(b,c,d){a.call(this,c,d),this.elementName=b}return f(b,a),b.create=function(a,c,d){return new b(a,c,d)},b}(l.ParseError);b.HtmlTreeError=n;var o=function(){function a(a,b){this.rootNodes=a,this.errors=b}return a}();b.HtmlParseTreeResult=o;var p=function(){function a(){}return a.prototype.parse=function(a,b,c){void 0===c&&(c=!1);var d=k.tokenizeHtml(a,b,c),e=new q(d.tokens).build();return new o(e.rootNodes,d.errors.concat(e.errors))},a.decorators=[{type:g.Injectable}],a}();b.HtmlParser=p;var q=function(){function a(a){this.tokens=a,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return a.prototype.build=function(){for(;this.peek.type!==k.HtmlTokenType.EOF;)this.peek.type===k.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===k.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===k.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===k.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===k.HtmlTokenType.TEXT||this.peek.type===k.HtmlTokenType.RAW_TEXT||this.peek.type===k.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this.peek.type===k.HtmlTokenType.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new o(this.rootNodes,this.errors)},a.prototype._advance=function(){var a=this.peek;return this.index0)return this.errors=this.errors.concat(f.errors),null;var g=new l.ParseSourceSpan(b.sourceSpan.start,e.sourceSpan.end),i=new l.ParseSourceSpan(c.sourceSpan.start,e.sourceSpan.end);return new j.HtmlExpansionCaseAst(b.parts[0],f.rootNodes,g,b.sourceSpan,i)},a.prototype._collectExpansionExpTokens=function(a){for(var b=[],c=[k.HtmlTokenType.EXPANSION_CASE_EXP_START];;){if(this.peek.type!==k.HtmlTokenType.EXPANSION_FORM_START&&this.peek.type!==k.HtmlTokenType.EXPANSION_CASE_EXP_START||c.push(this.peek.type),this.peek.type===k.HtmlTokenType.EXPANSION_CASE_EXP_END){if(!e(c,k.HtmlTokenType.EXPANSION_CASE_EXP_START))return this.errors.push(n.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;if(c.pop(),0==c.length)return b}if(this.peek.type===k.HtmlTokenType.EXPANSION_FORM_END){if(!e(c,k.HtmlTokenType.EXPANSION_FORM_START))return this.errors.push(n.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;c.pop()}if(this.peek.type===k.HtmlTokenType.EOF)return this.errors.push(n.create(null,a.sourceSpan,"Invalid expansion form. Missing '}'.")),null;b.push(this._advance())}},a.prototype._consumeText=function(a){var b=a.parts[0];if(b.length>0&&"\n"==b[0]){var c=this._getParentElement();h.isPresent(c)&&0==c.children.length&&m.getHtmlTagDefinition(c.name).ignoreFirstLf&&(b=b.substring(1))}b.length>0&&this._addToParent(new j.HtmlTextAst(b,a.sourceSpan))},a.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var a=i.ListWrapper.last(this.elementStack);m.getHtmlTagDefinition(a.name).isVoid&&this.elementStack.pop()}},a.prototype._consumeStartTag=function(a){for(var b=a.parts[0],c=a.parts[1],e=[];this.peek.type===k.HtmlTokenType.ATTR_NAME;)e.push(this._consumeAttr(this._advance()));var f=d(b,c,this._getParentElement()),g=!1;this.peek.type===k.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),g=!0,null!=m.getNsPrefix(f)||m.getHtmlTagDefinition(f).isVoid||this.errors.push(n.create(f,a.sourceSpan,'Only void and foreign elements can be self closed "'+a.parts[1]+'"'))):this.peek.type===k.HtmlTokenType.TAG_OPEN_END&&(this._advance(),g=!1);var h=this.peek.sourceSpan.start,i=new l.ParseSourceSpan(a.sourceSpan.start,h),o=new j.HtmlElementAst(f,e,[],i,i,null);this._pushElement(o),g&&(this._popElement(f),o.endSourceSpan=i)},a.prototype._pushElement=function(a){if(this.elementStack.length>0){var b=i.ListWrapper.last(this.elementStack);m.getHtmlTagDefinition(b.name).isClosedByChild(a.name)&&this.elementStack.pop()}var c=m.getHtmlTagDefinition(a.name),d=this._getParentElementSkippingContainers(),e=d.parent,f=d.container;if(h.isPresent(e)&&c.requireExtraParent(e.name)){var g=new j.HtmlElementAst(c.parentToAdd,[],[],a.sourceSpan,a.startSourceSpan,a.endSourceSpan);this._insertBeforeContainer(e,f,g)}this._addToParent(a),this.elementStack.push(a)},a.prototype._consumeEndTag=function(a){var b=d(a.parts[0],a.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=a.sourceSpan),m.getHtmlTagDefinition(b).isVoid?this.errors.push(n.create(b,a.sourceSpan,'Void elements do not have end tags "'+a.parts[1]+'"')):this._popElement(b)||this.errors.push(n.create(b,a.sourceSpan,'Unexpected closing tag "'+a.parts[1]+'"'))},a.prototype._popElement=function(a){for(var b=this.elementStack.length-1;b>=0;b--){var c=this.elementStack[b];if(c.name==a)return i.ListWrapper.splice(this.elementStack,b,this.elementStack.length-b),!0;if(!m.getHtmlTagDefinition(c.name).closedByParent)return!1}return!1},a.prototype._consumeAttr=function(a){var b=m.mergeNsAndName(a.parts[0],a.parts[1]),c=a.sourceSpan.end,d="";if(this.peek.type===k.HtmlTokenType.ATTR_VALUE){var e=this._advance();d=e.parts[0],c=e.sourceSpan.end}return new j.HtmlAttrAst(b,d,new l.ParseSourceSpan(a.sourceSpan.start,c))},a.prototype._getParentElement=function(){return this.elementStack.length>0?i.ListWrapper.last(this.elementStack):null},a.prototype._getParentElementSkippingContainers=function(){for(var a=null,b=this.elementStack.length-1;b>=0;b--){if("ng-container"!==this.elementStack[b].name)return{parent:this.elementStack[b],container:a};a=this.elementStack[b]}return{parent:i.ListWrapper.last(this.elementStack),container:a}},a.prototype._addToParent=function(a){var b=this._getParentElement();h.isPresent(b)?b.children.push(a):this.rootNodes.push(a)},a.prototype._insertBeforeContainer=function(a,b,c){if(b){if(a){var d=a.children.indexOf(b);a.children[d]=c}else this.rootNodes.push(c);c.children.push(b),this.elementStack.splice(this.elementStack.indexOf(b),0,c)}else this._addToParent(c),this.elementStack.push(c)},a}();return c.exports}),a.registerDynamic("36",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a}();return b.ElementSchemaRegistry=d,c.exports}),a.registerDynamic("4f",["1e"],!0,function(a,b,c){"use strict";function d(a){var b=k[a.toLowerCase()];return h.isPresent(b)?b:l}function e(a){if(":"!=a[0])return[null,a];var b=h.RegExpWrapper.firstMatch(m,a);return[b[1],b[2]]}function f(a){return e(a)[0]}function g(a,b){return h.isPresent(a)?":"+a+":"+b:b}var h=a("1e");b.NAMED_ENTITIES={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},function(a){a[a.RAW_TEXT=0]="RAW_TEXT",a[a.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",a[a.PARSABLE_DATA=2]="PARSABLE_DATA"}(b.HtmlTagContentType||(b.HtmlTagContentType={}));var i=b.HtmlTagContentType,j=function(){function a(a){var b=this,c=void 0===a?{}:a,d=c.closedByChildren,e=c.requiredParents,f=c.implicitNamespacePrefix,g=c.contentType,j=c.closedByParent,k=c.isVoid,l=c.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,h.isPresent(d)&&d.length>0&&d.forEach(function(a){return b.closedByChildren[a]=!0}),this.isVoid=h.normalizeBool(k),this.closedByParent=h.normalizeBool(j)||this.isVoid,h.isPresent(e)&&e.length>0&&(this.requiredParents={},this.parentToAdd=e[0],e.forEach(function(a){return b.requiredParents[a]=!0})),this.implicitNamespacePrefix=f,this.contentType=h.isPresent(g)?g:i.PARSABLE_DATA,this.ignoreFirstLf=h.normalizeBool(l)}return a.prototype.requireExtraParent=function(a){if(h.isBlank(this.requiredParents))return!1;if(h.isBlank(a))return!0;var b=a.toLowerCase();return 1!=this.requiredParents[b]&&"template"!=b},a.prototype.isClosedByChild=function(a){return this.isVoid||h.normalizeBool(this.closedByChildren[a.toLowerCase()])},a}();b.HtmlTagDefinition=j;var k={base:new j({isVoid:!0}),meta:new j({isVoid:!0}),area:new j({isVoid:!0}),embed:new j({isVoid:!0}),link:new j({isVoid:!0}),img:new j({isVoid:!0}),input:new j({isVoid:!0}),param:new j({isVoid:!0}),hr:new j({isVoid:!0}),br:new j({isVoid:!0}),source:new j({isVoid:!0}),track:new j({isVoid:!0}),wbr:new j({isVoid:!0}),p:new j({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new j({closedByChildren:["tbody","tfoot"]}),tbody:new j({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new j({closedByChildren:["tbody"],closedByParent:!0}),tr:new j({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new j({closedByChildren:["td","th"],closedByParent:!0}),th:new j({closedByChildren:["td","th"],closedByParent:!0}),col:new j({requiredParents:["colgroup"],isVoid:!0}),svg:new j({implicitNamespacePrefix:"svg"}),math:new j({implicitNamespacePrefix:"math"}),li:new j({closedByChildren:["li"],closedByParent:!0}),dt:new j({closedByChildren:["dt","dd"]}),dd:new j({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new j({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new j({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new j({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new j({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new j({closedByChildren:["optgroup"],closedByParent:!0}),option:new j({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new j({ignoreFirstLf:!0}),listing:new j({ignoreFirstLf:!0}),style:new j({contentType:i.RAW_TEXT}),script:new j({contentType:i.RAW_TEXT}),title:new j({contentType:i.ESCAPABLE_RAW_TEXT}),textarea:new j({contentType:i.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},l=new j;b.getHtmlTagDefinition=d;var m=/^:([^:]+):(.+)/g;return b.splitNsName=e,b.getNsPrefix=f,b.mergeNsAndName=g,c.exports}),a.registerDynamic("3d",["1e","4f"],!0,function(a,b,c){"use strict";function d(a){var b=null,c=null,d=null,f=!1,t=null;a.attrs.forEach(function(a){var e=a.name.toLowerCase();e==h?b=a.value:e==l?c=a.value:e==k?d=a.value:a.name==p?f=!0:a.name==q&&a.value.length>0&&(t=a.value)}),b=e(b);var u=a.name.toLowerCase(),v=r.OTHER;return g.splitNsName(u)[1]==i?v=r.NG_CONTENT:u==n?v=r.STYLE:u==o?v=r.SCRIPT:u==j&&d==m&&(v=r.STYLESHEET),new s(v,b,c,f,t)}function e(a){return f.isBlank(a)||0===a.length?"*":a}var f=a("1e"),g=a("4f"),h="select",i="ng-content",j="link",k="rel",l="href",m="stylesheet",n="style",o="script",p="ngNonBindable",q="ngProjectAs";b.preparseElement=d,function(a){a[a.NG_CONTENT=0]="NG_CONTENT",a[a.STYLE=1]="STYLE",a[a.STYLESHEET=2]="STYLESHEET",a[a.SCRIPT=3]="SCRIPT",a[a.OTHER=4]="OTHER"}(b.PreparsedElementType||(b.PreparsedElementType={}));var r=b.PreparsedElementType,s=function(){function a(a,b,c,d,e){this.type=a,this.selectAttr=b,this.hrefAttr=c,this.nonBindable=d,this.projectAs=e}return a}();return b.PreparsedElement=s,c.exports}),a.registerDynamic("3b",["1e"],!0,function(a,b,c){"use strict";function d(a){if(f.isBlank(a)||0===a.length||"/"==a[0])return!1;var b=f.RegExpWrapper.firstMatch(i,a);return f.isBlank(b)||"package"==b[1]||"asset"==b[1]}function e(a,b,c){var e=[],i=f.StringWrapper.replaceAllMapped(c,h,function(c){var g=f.isPresent(c[1])?c[1]:c[2];return d(g)?(e.push(a.resolve(b,g)),""):c[0]});return new g(i,e)}var f=a("1e"),g=function(){function a(a,b){this.style=a,this.styleUrls=b}return a}();b.StyleWithImports=g,b.isStyleUrlResolvable=d,b.extractStyleUrls=e;var h=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,i=/^([a-zA-Z\-\+\.]+):/g;return c.exports}),a.registerDynamic("3c",["1e"],!0,function(a,b,c){"use strict";function d(a,b,c){void 0===c&&(c=null);var d=[];return b.forEach(function(b){var f=b.visit(a,c);e.isPresent(f)&&d.push(f)}),d}var e=a("1e"),f=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitText(this,b)},a}();b.HtmlTextAst=f;var g=function(){function a(a,b,c,d,e){this.switchValue=a,this.type=b,this.cases=c,this.sourceSpan=d,this.switchValueSourceSpan=e}return a.prototype.visit=function(a,b){return a.visitExpansion(this,b)},a}();b.HtmlExpansionAst=g;var h=function(){function a(a,b,c,d,e){this.value=a,this.expression=b,this.sourceSpan=c,this.valueSourceSpan=d,this.expSourceSpan=e}return a.prototype.visit=function(a,b){return a.visitExpansionCase(this,b)},a}();b.HtmlExpansionCaseAst=h;var i=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitAttr(this,b)},a}();b.HtmlAttrAst=i;var j=function(){function a(a,b,c,d,e,f){this.name=a,this.attrs=b,this.children=c,this.sourceSpan=d,this.startSourceSpan=e,this.endSourceSpan=f}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.HtmlElementAst=j;var k=function(){function a(a,b){this.value=a,this.sourceSpan=b}return a.prototype.visit=function(a,b){return a.visitComment(this,b)},a}();return b.HtmlCommentAst=k,b.htmlVisitAll=d,c.exports}),a.registerDynamic("50",["19","1e","18","51","43","30"],!0,function(a,b,c){"use strict";function d(a,b){var c=b.useExisting,d=b.useValue,e=b.deps;return new o.CompileProviderMetadata({token:a.token,useClass:a.useClass,useExisting:c,useFactory:a.useFactory,useValue:d,deps:e,multi:a.multi})}function e(a,b){var c=b.eager,d=b.providers;return new r.ProviderAst(a.token,a.multiProvider,a.eager||c,d,a.providerType,a.sourceSpan)}function f(a,b,c,d){return void 0===d&&(d=null),n.isBlank(d)&&(d=[]),n.isPresent(a)&&a.forEach(function(a){if(n.isArray(a))f(a,b,c,d);else{var e;a instanceof o.CompileProviderMetadata?e=a:a instanceof o.CompileTypeMetadata?e=new o.CompileProviderMetadata({token:new o.CompileTokenMetadata({identifier:a}),useClass:a}):c.push(new s("Unknown provider type "+a,b)),n.isPresent(e)&&d.push(e)}}),d}function g(a,b,c){var d=new o.CompileTokenMap;a.forEach(function(a){var e=new o.CompileProviderMetadata({token:new o.CompileTokenMetadata({identifier:a.type}),useClass:a.type});h([e],a.isComponent?r.ProviderAstType.Component:r.ProviderAstType.Directive,!0,b,c,d)});var e=a.filter(function(a){return a.isComponent}).concat(a.filter(function(a){return!a.isComponent}));return e.forEach(function(a){h(f(a.providers,b,c),r.ProviderAstType.PublicService,!1,b,c,d),h(f(a.viewProviders,b,c),r.ProviderAstType.PrivateService,!1,b,c,d)}),d}function h(a,b,c,d,e,f){a.forEach(function(a){var g=f.get(a.token);n.isPresent(g)&&g.multiProvider!==a.multi&&e.push(new s("Mixing multi and non multi provider is not possible for token "+g.token.name,d)),n.isBlank(g)?(g=new r.ProviderAst(a.token,a.multi,c,[a],b,d),f.add(a.token,g)):(a.multi||m.ListWrapper.clear(g.providers),g.providers.push(a))})}function i(a){var b=new o.CompileTokenMap;return n.isPresent(a.viewQueries)&&a.viewQueries.forEach(function(a){return k(b,a)}),a.type.diDeps.forEach(function(a){n.isPresent(a.viewQuery)&&k(b,a.viewQuery)}),b}function j(a){var b=new o.CompileTokenMap;return a.forEach(function(a){n.isPresent(a.queries)&&a.queries.forEach(function(a){return k(b,a)}),a.type.diDeps.forEach(function(a){n.isPresent(a.query)&&k(b,a.query)})}),b}function k(a,b){b.selectors.forEach(function(c){var d=a.get(c);n.isBlank(d)&&(d=[],a.add(c,d)),d.push(b)})}var l=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)},m=a("19"),n=a("1e"),o=a("18"),p=a("51"),q=a("43"),r=a("30"),s=function(a){function b(b,c){a.call(this,c,b)}return l(b,a),b}(q.ParseError);b.ProviderError=s;var t=function(){function a(a,b){var c=this;this.component=a,this.sourceSpan=b,this.errors=[],this.viewQueries=i(a),this.viewProviders=new o.CompileTokenMap,f(a.viewProviders,b,this.errors).forEach(function(a){n.isBlank(c.viewProviders.get(a.token))&&c.viewProviders.add(a.token,!0)})}return a}();b.ProviderViewContext=t;var u=function(){function a(a,b,c,d,e,f,h){var i=this;this._viewContext=a,this._parent=b,this._isViewRoot=c,this._directiveAsts=d,this._sourceSpan=h,this._transformedProviders=new o.CompileTokenMap,this._seenProviders=new o.CompileTokenMap,this._hasViewContainer=!1,this._attrs={},e.forEach(function(a){return i._attrs[a.name]=a.value});var k=d.map(function(a){return a.directive});this._allProviders=g(k,h,a.errors),this._contentQueries=j(k);var l=new o.CompileTokenMap;this._allProviders.values().forEach(function(a){i._addQueryReadsTo(a.token,l)}),f.forEach(function(a){i._addQueryReadsTo(new o.CompileTokenMetadata({value:a.name}),l)}),n.isPresent(l.get(p.identifierToken(p.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(a){var b=a.eager||n.isPresent(l.get(a.token));b&&i._getOrCreateLocalProvider(a.providerType,a.token,!0)})}return a.prototype.afterElement=function(){var a=this;this._allProviders.values().forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})},Object.defineProperty(a.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedDirectiveAsts",{get:function(){var a=this._transformedProviders.values().map(function(a){return a.token.identifier}),b=m.ListWrapper.clone(this._directiveAsts);return m.ListWrapper.sort(b,function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)}),b},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),a.prototype._addQueryReadsTo=function(a,b){this._getQueriesFor(a).forEach(function(c){var d=n.isPresent(c.read)?c.read:a;n.isBlank(b.get(d))&&b.add(d,!0)})},a.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;null!==d;)b=d._contentQueries.get(a),n.isPresent(b)&&m.ListWrapper.addAll(c,b.filter(function(a){return a.descendants||1>=e})),d._directiveAsts.length>0&&e++,d=d._parent;return b=this._viewContext.viewQueries.get(a),n.isPresent(b)&&m.ListWrapper.addAll(c,b),c},a.prototype._getOrCreateLocalProvider=function(a,b,c){var f=this,g=this._allProviders.get(b);if(n.isBlank(g)||(a===r.ProviderAstType.Directive||a===r.ProviderAstType.PublicService)&&g.providerType===r.ProviderAstType.PrivateService||(a===r.ProviderAstType.PrivateService||a===r.ProviderAstType.PublicService)&&g.providerType===r.ProviderAstType.Builtin)return null;var h=this._transformedProviders.get(b);if(n.isPresent(h))return h;if(n.isPresent(this._seenProviders.get(b)))return this._viewContext.errors.push(new s("Cannot instantiate cyclic dependency! "+b.name,this._sourceSpan)),null;this._seenProviders.add(b,!0);var i=g.providers.map(function(a){var b,e=a.useValue,h=a.useExisting;if(n.isPresent(a.useExisting)){var i=f._getDependency(g.providerType,new o.CompileDiDependencyMetadata({token:a.useExisting}),c);n.isPresent(i.token)?h=i.token:(h=null,e=i.value)}else if(n.isPresent(a.useFactory)){var j=n.isPresent(a.deps)?a.deps:a.useFactory.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}else if(n.isPresent(a.useClass)){var j=n.isPresent(a.deps)?a.deps:a.useClass.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}return d(a,{useExisting:h,useValue:e,deps:b})});return h=e(g,{eager:c,providers:i}),this._transformedProviders.add(b,h),h},a.prototype._getLocalDependency=function(a,b,c){if(void 0===c&&(c=null),b.isAttribute){var d=this._attrs[b.token.value];return new o.CompileDiDependencyMetadata({isValue:!0,value:n.normalizeBlank(d)})}if(n.isPresent(b.query)||n.isPresent(b.viewQuery))return b;if(n.isPresent(b.token)){if(a===r.ProviderAstType.Directive||a===r.ProviderAstType.Component){if(b.token.equalsTo(p.identifierToken(p.Identifiers.Renderer))||b.token.equalsTo(p.identifierToken(p.Identifiers.ElementRef))||b.token.equalsTo(p.identifierToken(p.Identifiers.ChangeDetectorRef))||b.token.equalsTo(p.identifierToken(p.Identifiers.TemplateRef)))return b; -b.token.equalsTo(p.identifierToken(p.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(b.token.equalsTo(p.identifierToken(p.Identifiers.Injector)))return b;if(n.isPresent(this._getOrCreateLocalProvider(a,b.token,c)))return b}return null},a.prototype._getDependency=function(a,b,c){void 0===c&&(c=null);var d=this,e=c,f=null;if(b.isSkipSelf||(f=this._getLocalDependency(a,b,c)),b.isSelf)n.isBlank(f)&&b.isOptional&&(f=new o.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;n.isBlank(f)&&n.isPresent(d._parent);){var g=d;d=d._parent,g._isViewRoot&&(e=!1),f=d._getLocalDependency(r.ProviderAstType.PublicService,b,e)}n.isBlank(f)&&(f=!b.isHost||this._viewContext.component.type.isHost||p.identifierToken(this._viewContext.component.type).equalsTo(b.token)||n.isPresent(this._viewContext.viewProviders.get(b.token))?b:b.isOptional?f=new o.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return n.isBlank(f)&&this._viewContext.errors.push(new s("No provider for "+b.token.name,this._sourceSpan)),f},a}();return b.ProviderElementContext=u,c.exports}),a.registerDynamic("2a",["9","23","19","1e","1a","4c","38","35","4f","43","30","52","36","3d","3b","3c","1c","51","50","45"],!0,function(a,b,c){return function(c){"use strict";function d(a){return k.StringWrapper.split(a.trim(),/\s+/g)}function e(a,b){var c=new s.CssSelector,e=p.splitNsName(a)[1];c.setElement(e);for(var f=0;f0;c||b.push(a)}),b}var g=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)},h=a("9"),i=a("23"),j=a("19"),k=a("1e"),l=a("1a"),m=a("4c"),n=a("38"),o=a("35"),p=a("4f"),q=a("43"),r=a("30"),s=a("52"),t=a("36"),u=a("3d"),v=a("3b"),w=a("3c"),x=a("1c"),y=a("51"),z=a("50"),A=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-)|(animate-|@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,B="template",C="template",D="*",E="class",F=".",G="attr",H="class",I="style",J=s.CssSelector.parse("*")[0];b.TEMPLATE_TRANSFORMS=new h.OpaqueToken("TemplateTransforms");var K=function(a){function b(b,c,d){a.call(this,c,b,d)}return g(b,a),b}(q.ParseError);b.TemplateParseError=K;var L=function(){function a(a,b){this.templateAst=a,this.errors=b}return a}();b.TemplateParseResult=L;var M=function(){function a(a,b,c,d,e){this._exprParser=a,this._schemaRegistry=b,this._htmlParser=c,this._console=d,this.transforms=e}return a.prototype.parse=function(a,b,c,d,e){var f=this.tryParse(a,b,c,d,e),g=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.WARNING}),h=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.FATAL});if(g.length>0&&this._console.warn("Template parse warnings:\n"+g.join("\n")),h.length>0){var i=h.join("\n");throw new l.BaseException("Template parse errors:\n"+i)}return f.templateAst},a.prototype.tryParse=function(a,b,c,d,e){var g,h=this._htmlParser.parse(b,e),i=h.errors;if(h.rootNodes.length>0){var j=f(c),l=f(d),m=new z.ProviderViewContext(a,h.rootNodes[0].sourceSpan),n=new N(m,j,l,this._exprParser,this._schemaRegistry);g=w.htmlVisitAll(n,h.rootNodes,S),i=i.concat(n.errors).concat(m.errors)}else g=[];return this._assertNoReferenceDuplicationOnTemplate(g,i),i.length>0?new L(g,i):(k.isPresent(this.transforms)&&this.transforms.forEach(function(a){g=r.templateVisitAll(a,g)}),new L(g,i))},a.prototype._assertNoReferenceDuplicationOnTemplate=function(a,b){var c=[];a.filter(function(a){return!!a.references}).forEach(function(a){return a.references.forEach(function(a){var d=a.name;if(c.indexOf(d)<0)c.push(d);else{var e=new K('Reference "#'+d+'" is defined several times',a.sourceSpan,q.ParseErrorLevel.FATAL);b.push(e)}})})},a.decorators=[{type:h.Injectable}],a.ctorParameters=[{type:n.Parser},{type:t.ElementSchemaRegistry},{type:o.HtmlParser},{type:i.Console},{type:Array,decorators:[{type:h.Optional},{type:h.Inject,args:[b.TEMPLATE_TRANSFORMS]}]}],a}();b.TemplateParser=M;var N=function(){function a(a,b,c,d,e){var f=this;this.providerViewContext=a,this._exprParser=d,this._schemaRegistry=e,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new s.SelectorMatcher;var g=a.component.template;k.isPresent(g)&&k.isPresent(g.interpolation)&&(this._interpolationConfig={start:g.interpolation[0],end:g.interpolation[1]}),j.ListWrapper.forEachWithIndex(b,function(a,b){var c=s.CssSelector.parse(a.selector);f.selectorMatcher.addSelectables(c,a),f.directivesIndex.set(a,b)}),this.pipesByName=new Map,c.forEach(function(a){return f.pipesByName.set(a.name,a)})}return a.prototype._reportError=function(a,b,c){void 0===c&&(c=q.ParseErrorLevel.FATAL),this.errors.push(new K(a,b,c))},a.prototype._parseInterpolation=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseInterpolation(a,c,this._interpolationConfig);if(this._checkPipes(d,b),k.isPresent(d)&&d.ast.expressions.length>i.MAX_INTERPOLATION_VALUES)throw new l.BaseException("Only support at most "+i.MAX_INTERPOLATION_VALUES+" interpolation values!");return d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseAction=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseAction(a,c,this._interpolationConfig);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseBinding=function(a,b){var c=b.start.toString();try{var d=this._exprParser.parseBinding(a,c,this._interpolationConfig);return this._checkPipes(d,b),d}catch(e){return this._reportError(""+e,b),this._exprParser.wrapLiteralPrimitive("ERROR",c)}},a.prototype._parseTemplateBindings=function(a,b){var c=this,d=b.start.toString();try{var e=this._exprParser.parseTemplateBindings(a,d);return e.templateBindings.forEach(function(a){k.isPresent(a.expression)&&c._checkPipes(a.expression,b)}),e.warnings.forEach(function(a){c._reportError(a,b,q.ParseErrorLevel.WARNING)}),e.templateBindings}catch(f){return this._reportError(""+f,b),[]}},a.prototype._checkPipes=function(a,b){var c=this;if(k.isPresent(a)){var d=new U;a.visit(d),d.pipes.forEach(function(a){c.pipesByName.has(a)||c._reportError("The pipe '"+a+"' could not be found",b)})}},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype.visitText=function(a,b){var c=b.findNgContentIndex(J),d=this._parseInterpolation(a.value,a.sourceSpan);return k.isPresent(d)?new r.BoundTextAst(d,c,a.sourceSpan):new r.TextAst(a.value,c,a.sourceSpan)},a.prototype.visitAttr=function(a,b){return new r.AttrAst(a.name,a.value,a.sourceSpan)},a.prototype.visitComment=function(a,b){return null},a.prototype.visitElement=function(a,b){var c=this,d=a.name,f=u.preparseElement(a);if(f.type===u.PreparsedElementType.SCRIPT||f.type===u.PreparsedElementType.STYLE)return null;if(f.type===u.PreparsedElementType.STYLESHEET&&v.isStyleUrlResolvable(f.hrefAttr))return null;var g=[],h=[],i=[],j=[],l=[],m=[],n=[],o=[],q=[],t=!1,x=[],y=p.splitNsName(d.toLowerCase())[1],A=y==B;a.attrs.forEach(function(a){var b=c._parseAttr(A,a,g,h,l,m,i,j),d=c._parseInlineTemplateBinding(a,o,n,q);b||d||(x.push(c.visitAttr(a,null)),g.push([a.name,a.value])),d&&(t=!0)});var C=e(d,g),D=this._parseDirectives(this.selectorMatcher,C),E=[],F=this._createDirectiveAsts(A,a.name,D,h,i,a.sourceSpan,E),G=this._createElementPropertyAsts(a.name,h,F).concat(l),H=b.isTemplateElement||t,I=new z.ProviderElementContext(this.providerViewContext,b.providerContext,H,F,x,E,a.sourceSpan),J=w.htmlVisitAll(f.nonBindable?T:this,a.children,R.create(A,F,A?b.providerContext:I));I.afterElement();var K,L=k.isPresent(f.projectAs)?s.CssSelector.parse(f.projectAs)[0]:C,M=b.findNgContentIndex(L);if(f.type===u.PreparsedElementType.NG_CONTENT)k.isPresent(a.children)&&a.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",a.sourceSpan),K=new r.NgContentAst(this.ngContentCount++,t?null:M,a.sourceSpan);else if(A)this._assertAllEventsPublishedByDirectives(F,m),this._assertNoComponentsNorElementBindingsOnTemplate(F,G,a.sourceSpan),K=new r.EmbeddedTemplateAst(x,m,E,j,I.transformedDirectiveAsts,I.transformProviders,I.transformedHasViewContainer,J,t?null:M,a.sourceSpan);else{this._assertOnlyOneComponent(F,a.sourceSpan);var N=t?null:b.findNgContentIndex(L);K=new r.ElementAst(d,x,G,m,E,I.transformedDirectiveAsts,I.transformProviders,I.transformedHasViewContainer,J,t?null:N,a.sourceSpan)}if(t){var O=e(B,o),P=this._parseDirectives(this.selectorMatcher,O),Q=this._createDirectiveAsts(!0,a.name,P,n,[],a.sourceSpan,[]),S=this._createElementPropertyAsts(a.name,n,Q);this._assertNoComponentsNorElementBindingsOnTemplate(Q,S,a.sourceSpan);var U=new z.ProviderElementContext(this.providerViewContext,b.providerContext,b.isTemplateElement,Q,[],[],a.sourceSpan);U.afterElement(),K=new r.EmbeddedTemplateAst([],[],[],q,U.transformedDirectiveAsts,U.transformProviders,U.transformedHasViewContainer,[K],M,a.sourceSpan)}return K},a.prototype._parseInlineTemplateBinding=function(a,b,c,d){var e=null;if(a.name==C)e=a.value;else if(a.name.startsWith(D)){var f=a.name.substring(D.length);e=0==a.value.length?f:f+" "+a.value}if(k.isPresent(e)){for(var g=this._parseTemplateBindings(e,a.sourceSpan),h=0;h elements is deprecated. Use "let-" instead!',b.sourceSpan,q.ParseErrorLevel.WARNING),this._parseVariable(n,j,b.sourceSpan,h)):(this._reportError('"var-" on non