@angular/language-service 8.2.5 → 8.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v8.2.
|
|
2
|
+
* @license Angular v8.2.9
|
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -18111,7 +18111,7 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
|
|
|
18111
18111
|
* Use of this source code is governed by an MIT-style license that can be
|
|
18112
18112
|
* found in the LICENSE file at https://angular.io/license
|
|
18113
18113
|
*/
|
|
18114
|
-
var VERSION$1 = new Version('8.2.
|
|
18114
|
+
var VERSION$1 = new Version('8.2.9');
|
|
18115
18115
|
|
|
18116
18116
|
/**
|
|
18117
18117
|
* @license
|
|
@@ -24865,7 +24865,7 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
|
|
|
24865
24865
|
this.reportError('The template context does not have an implicit value', spanOf$1(ast.sourceSpan));
|
|
24866
24866
|
}
|
|
24867
24867
|
else {
|
|
24868
|
-
this.reportError("The template context does not
|
|
24868
|
+
this.reportError("The template context does not define a member called '" + ast.value + "'", spanOf$1(ast.sourceSpan));
|
|
24869
24869
|
}
|
|
24870
24870
|
}
|
|
24871
24871
|
}
|
|
@@ -38627,7 +38627,7 @@ define(['exports', 'path', 'typescript', 'fs'], function (exports, path, ts, fs)
|
|
|
38627
38627
|
/**
|
|
38628
38628
|
* @publicApi
|
|
38629
38629
|
*/
|
|
38630
|
-
var VERSION$2 = new Version$1('8.2.
|
|
38630
|
+
var VERSION$2 = new Version$1('8.2.9');
|
|
38631
38631
|
|
|
38632
38632
|
/**
|
|
38633
38633
|
* @license
|
|
@@ -42409,7 +42409,7 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
|
|
|
42409
42409
|
};
|
|
42410
42410
|
function getPromiseCtor(promiseCtor) {
|
|
42411
42411
|
if (!promiseCtor) {
|
|
42412
|
-
promiseCtor = Promise;
|
|
42412
|
+
promiseCtor = config.Promise || Promise;
|
|
42413
42413
|
}
|
|
42414
42414
|
if (!promiseCtor) {
|
|
42415
42415
|
throw new Error('no Promise impl found');
|
|
@@ -48556,23 +48556,36 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
|
|
|
48556
48556
|
return ReflectorModuleModuleResolutionHost;
|
|
48557
48557
|
}());
|
|
48558
48558
|
var ReflectorHost = /** @class */ (function () {
|
|
48559
|
-
function ReflectorHost(getProgram,
|
|
48560
|
-
this.
|
|
48559
|
+
function ReflectorHost(getProgram, tsLSHost, _) {
|
|
48560
|
+
this.tsLSHost = tsLSHost;
|
|
48561
48561
|
this.metadataReaderCache = createMetadataReaderCache();
|
|
48562
|
-
|
|
48562
|
+
// tsLSHost.getCurrentDirectory() returns the directory where tsconfig.json
|
|
48563
|
+
// is located. This is not the same as process.cwd() because the language
|
|
48564
|
+
// service host sets the "project root path" as its current directory.
|
|
48565
|
+
var currentDir = tsLSHost.getCurrentDirectory();
|
|
48566
|
+
this.fakeContainingPath = currentDir ? path.join(currentDir, 'fakeContainingFile.ts') : '';
|
|
48567
|
+
this.hostAdapter = new ReflectorModuleModuleResolutionHost(tsLSHost, getProgram);
|
|
48568
|
+
this.moduleResolutionCache = ts.createModuleResolutionCache(currentDir, function (s) { return s; }, // getCanonicalFileName
|
|
48569
|
+
tsLSHost.getCompilationSettings());
|
|
48563
48570
|
}
|
|
48564
48571
|
ReflectorHost.prototype.getMetadataFor = function (modulePath) {
|
|
48565
48572
|
return readMetadata(modulePath, this.hostAdapter, this.metadataReaderCache);
|
|
48566
48573
|
};
|
|
48567
48574
|
ReflectorHost.prototype.moduleNameToFileName = function (moduleName, containingFile) {
|
|
48568
48575
|
if (!containingFile) {
|
|
48569
|
-
if (moduleName.
|
|
48576
|
+
if (moduleName.startsWith('.')) {
|
|
48570
48577
|
throw new Error('Resolution of relative paths requires a containing file.');
|
|
48571
48578
|
}
|
|
48572
|
-
|
|
48573
|
-
|
|
48579
|
+
if (!this.fakeContainingPath) {
|
|
48580
|
+
// If current directory is empty then the file must belong to an inferred
|
|
48581
|
+
// project (no tsconfig.json), in which case it's not possible to resolve
|
|
48582
|
+
// the module without the caller explicitly providing a containing file.
|
|
48583
|
+
throw new Error("Could not resolve '" + moduleName + "' without a containing file.");
|
|
48584
|
+
}
|
|
48585
|
+
containingFile = this.fakeContainingPath;
|
|
48574
48586
|
}
|
|
48575
|
-
var
|
|
48587
|
+
var compilerOptions = this.tsLSHost.getCompilationSettings();
|
|
48588
|
+
var resolved = ts.resolveModuleName(moduleName, containingFile, compilerOptions, this.hostAdapter, this.moduleResolutionCache)
|
|
48576
48589
|
.resolvedModule;
|
|
48577
48590
|
return resolved ? resolved.resolvedFileName : null;
|
|
48578
48591
|
};
|
|
@@ -49485,7 +49498,7 @@ ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
|
|
|
49485
49498
|
* Use of this source code is governed by an MIT-style license that can be
|
|
49486
49499
|
* found in the LICENSE file at https://angular.io/license
|
|
49487
49500
|
*/
|
|
49488
|
-
var VERSION$3 = new Version$1('8.2.
|
|
49501
|
+
var VERSION$3 = new Version$1('8.2.9');
|
|
49489
49502
|
|
|
49490
49503
|
/**
|
|
49491
49504
|
* @license
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v8.2.
|
|
2
|
+
* @license Angular v8.2.9
|
|
3
3
|
* (c) 2010-2019 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -375,7 +375,7 @@ function i(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.export
|
|
|
375
375
|
*
|
|
376
376
|
* Use of this source code is governed by an MIT-style license that can be
|
|
377
377
|
* found in the LICENSE file at https://angular.io/license
|
|
378
|
-
*/(e,t,n)},e.prototype.jitExpression=function(e,t,n,r){var i=f(r,[new Xe("$def",e,void 0,[ke.Exported])]);return this.jitEvaluator.evaluateStatements(n,i,new xo(t),!0).$def},e}(),Ic=Object.keys({useClass:null})[0],Mc=Object.keys({useFactory:null})[0],Oc=Object.keys({useValue:null})[0],Rc=Object.keys({useExisting:null})[0],Dc=function(e){var t=new Se(e);return{value:t,type:t}};function Lc(e){return a({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Se(e.predicate),read:e.read?new Se(e.read):null,static:e.static})}function Fc(e){var t=Uc(e.inputs||[]),n=Uc(e.outputs||[]),r=e.propMetadata,i={},o={},s=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(o[e]=t.bindingPropertyName||e):i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)s(u);return a({},e,{typeSourceSpan:e.typeSourceSpan,type:new Se(e.type),deps:Bc(e.deps),host:Hc(e.propMetadata,e.typeSourceSpan,e.host),inputs:a({},t,i),outputs:a({},n,o),queries:e.queries.map(Lc),providers:null!=e.providers?new Se(e.providers):null,viewQueries:e.viewQueries.map(Lc)})}function jc(e,t){return e.hasOwnProperty(t)?new Se(e[t]):void 0}function Vc(e){return{token:null===e.token?new Me(null):e.resolved===Bi.Attribute?new Me(e.token):new Se(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Bc(e){return null==e?null:e.map(Vc)}function Hc(e,t,n){var r=function i(e){var t,n,r={},i={},o={},s={};try{for(var a=p(Object.keys(e)),u=a.next();!u.done;u=a.next()){var l=u.value,c=e[l],h=l.match(kc);if(null===h)switch(l){case"class":if("string"!=typeof c)throw new Error("Class binding must be string");s.classAttr=c;break;case"style":if("string"!=typeof c)throw new Error("Style binding must be string");s.styleAttr=c;break;default:r[l]="string"==typeof c?yt(c):c}else if(null!=h[1]){if("string"!=typeof c)throw new Error("Property binding must be string");o[h[1]]=c}else if(null!=h[2]){if("string"!=typeof c)throw new Error("Event binding must be string");i[h[2]]=c}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{attributes:r,listeners:i,properties:o,specialAttributes:s}}(n||{}),o=function s(e,t){var n=Nc(e),r=cc();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}(r,t);if(o.length)throw new Error(o.map(function(e){return e.msg}).join("\n"));var a=function(t){e.hasOwnProperty(t)&&e[t].forEach(function(e){!function n(e){return"HostBinding"===e.ngMetadataName}(e)?function i(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")"):r.properties[e.hostPropertyName||t]=t})};for(var u in e)a(u);return r}function Uc(e){return e.reduce(function(e,t){var n=h(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}new Ft("8.2.
|
|
378
|
+
*/(e,t,n)},e.prototype.jitExpression=function(e,t,n,r){var i=f(r,[new Xe("$def",e,void 0,[ke.Exported])]);return this.jitEvaluator.evaluateStatements(n,i,new xo(t),!0).$def},e}(),Ic=Object.keys({useClass:null})[0],Mc=Object.keys({useFactory:null})[0],Oc=Object.keys({useValue:null})[0],Rc=Object.keys({useExisting:null})[0],Dc=function(e){var t=new Se(e);return{value:t,type:t}};function Lc(e){return a({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Se(e.predicate),read:e.read?new Se(e.read):null,static:e.static})}function Fc(e){var t=Uc(e.inputs||[]),n=Uc(e.outputs||[]),r=e.propMetadata,i={},o={},s=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(o[e]=t.bindingPropertyName||e):i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)s(u);return a({},e,{typeSourceSpan:e.typeSourceSpan,type:new Se(e.type),deps:Bc(e.deps),host:Hc(e.propMetadata,e.typeSourceSpan,e.host),inputs:a({},t,i),outputs:a({},n,o),queries:e.queries.map(Lc),providers:null!=e.providers?new Se(e.providers):null,viewQueries:e.viewQueries.map(Lc)})}function jc(e,t){return e.hasOwnProperty(t)?new Se(e[t]):void 0}function Vc(e){return{token:null===e.token?new Me(null):e.resolved===Bi.Attribute?new Me(e.token):new Se(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Bc(e){return null==e?null:e.map(Vc)}function Hc(e,t,n){var r=function i(e){var t,n,r={},i={},o={},s={};try{for(var a=p(Object.keys(e)),u=a.next();!u.done;u=a.next()){var l=u.value,c=e[l],h=l.match(kc);if(null===h)switch(l){case"class":if("string"!=typeof c)throw new Error("Class binding must be string");s.classAttr=c;break;case"style":if("string"!=typeof c)throw new Error("Style binding must be string");s.styleAttr=c;break;default:r[l]="string"==typeof c?yt(c):c}else if(null!=h[1]){if("string"!=typeof c)throw new Error("Property binding must be string");o[h[1]]=c}else if(null!=h[2]){if("string"!=typeof c)throw new Error("Event binding must be string");i[h[2]]=c}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{attributes:r,listeners:i,properties:o,specialAttributes:s}}(n||{}),o=function s(e,t){var n=Nc(e),r=cc();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}(r,t);if(o.length)throw new Error(o.map(function(e){return e.msg}).join("\n"));var a=function(t){e.hasOwnProperty(t)&&e[t].forEach(function(e){!function n(e){return"HostBinding"===e.ngMetadataName}(e)?function i(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")"):r.properties[e.hostPropertyName||t]=t})};for(var u in e)a(u);return r}function Uc(e){return e.reduce(function(e,t){var n=h(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}new Ft("8.2.9");
|
|
379
379
|
/**
|
|
380
380
|
* @license
|
|
381
381
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -589,7 +589,7 @@ function mh(){return new bh(".")}var yh,gh,_h,bh=function(){function e(e){void 0
|
|
|
589
589
|
* Use of this source code is governed by an MIT-style license that can be
|
|
590
590
|
* found in the LICENSE file at https://angular.io/license
|
|
591
591
|
*/
|
|
592
|
-
function Sh(e){(e.ng||(e.ng={})).ɵcompilerFacade=new Ac}(Bt),function(e){e[e.Any=0]="Any",e[e.String=1]="String",e[e.Number=2]="Number",e[e.Boolean=3]="Boolean",e[e.Undefined=4]="Undefined",e[e.Null=5]="Null",e[e.Unbound=6]="Unbound",e[e.Other=7]="Other"}(gh||(gh={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(_h||(_h={}));var Ch=function Ch(e,t,n){this.kind=e,this.message=t,this.ast=n},Th=function(){function e(e,t,n){this.scope=e,this.query=t,this.context=n}return e.prototype.getType=function(e){return e.visit(this)},e.prototype.getDiagnostics=function(e){this.diagnostics=[];var t=e.visit(this);return this.context.event&&t.callable&&this.reportWarning("Unexpected callable expression. Expected a method call",e),this.diagnostics},e.prototype.visitBinary=function(e){var t=this;function n(e,t){switch(e){case gh.Undefined:case gh.Null:return n(t,gh.Other)}return e}var r=function(e,n){var r=t.getType(e);if(r.nullable){switch(n){case"&&":case"||":case"==":case"!=":case"===":case"!==":break;default:t.reportError("The expression might be null",e)}return t.query.getNonNullableType(r)}return r},i=r(e.left,e.operation),o=r(e.right,e.operation),s=this.query.getTypeKind(i),a=this.query.getTypeKind(o),u=n(s,a),l=u<<8|n(a,s);switch(e.operation){case"*":case"/":case"%":case"-":case"<<":case">>":case">>>":case"&":case"^":case"|":switch(l){case gh.Any<<8|gh.Any:case gh.Number<<8|gh.Any:case gh.Any<<8|gh.Number:case gh.Number<<8|gh.Number:return this.query.getBuiltinType(gh.Number);default:var c=e.left;switch(u){case gh.Any:case gh.Number:c=e.right}return this.reportError("Expected a numeric type",c)}case"+":switch(l){case gh.Any<<8|gh.Any:case gh.Any<<8|gh.Boolean:case gh.Any<<8|gh.Number:case gh.Any<<8|gh.Other:case gh.Boolean<<8|gh.Any:case gh.Number<<8|gh.Any:case gh.Other<<8|gh.Any:return this.anyType;case gh.Any<<8|gh.String:case gh.Boolean<<8|gh.String:case gh.Number<<8|gh.String:case gh.String<<8|gh.Any:case gh.String<<8|gh.Boolean:case gh.String<<8|gh.Number:case gh.String<<8|gh.String:case gh.String<<8|gh.Other:case gh.Other<<8|gh.String:return this.query.getBuiltinType(gh.String);case gh.Number<<8|gh.Number:return this.query.getBuiltinType(gh.Number);case gh.Boolean<<8|gh.Number:case gh.Other<<8|gh.Number:return this.reportError("Expected a number type",e.left);case gh.Number<<8|gh.Boolean:case gh.Number<<8|gh.Other:return this.reportError("Expected a number type",e.right);default:return this.reportError("Expected operands to be a string or number type",e)}case">":case"<":case"<=":case">=":case"==":case"!=":case"===":case"!==":switch(l){case gh.Any<<8|gh.Any:case gh.Any<<8|gh.Boolean:case gh.Any<<8|gh.Number:case gh.Any<<8|gh.String:case gh.Any<<8|gh.Other:case gh.Boolean<<8|gh.Any:case gh.Boolean<<8|gh.Boolean:case gh.Number<<8|gh.Any:case gh.Number<<8|gh.Number:case gh.String<<8|gh.Any:case gh.String<<8|gh.String:case gh.Other<<8|gh.Any:case gh.Other<<8|gh.Other:return this.query.getBuiltinType(gh.Boolean);default:return this.reportError("Expected the operants to be of similar type or any",e)}case"&&":return o;case"||":return this.query.getTypeUnion(i,o)}return this.reportError("Unrecognized operator "+e.operation,e)},e.prototype.visitChain=function(e){return this.diagnostics&&ns(e,this),this.query.getBuiltinType(gh.Undefined)},e.prototype.visitConditional=function(e){return this.diagnostics&&ns(e,this),this.query.getTypeUnion(this.getType(e.trueExp),this.getType(e.falseExp))},e.prototype.visitFunctionCall=function(e){var t=this,n=e.args.map(function(e){return t.getType(e)}),r=this.getType(e.target);if(!r||!r.callable)return this.reportError("Call target is not callable",e);var i=r.selectSignature(n);return i?i.result:this.reportError("Unable no compatible signature found for call",e)},e.prototype.visitImplicitReceiver=function(e){var t=this;return{name:"$implict",kind:"component",language:"ng-template",type:void 0,container:void 0,callable:!1,nullable:!1,public:!0,definition:void 0,members:function(){return t.scope},signatures:function(){return[]},selectSignature:function(e){},indexed:function(e){}}},e.prototype.visitInterpolation=function(e){return this.diagnostics&&ns(e,this),this.undefinedType},e.prototype.visitKeyedRead=function(e){var t=this.getType(e.obj),n=this.getType(e.key);return t.indexed(n)||this.anyType},e.prototype.visitKeyedWrite=function(e){return this.getType(e.value)},e.prototype.visitLiteralArray=function(e){var t,n=this;return this.query.getArrayType((t=this.query).getTypeUnion.apply(t,f(e.expressions.map(function(e){return n.getType(e)}))))},e.prototype.visitLiteralMap=function(e){return this.diagnostics&&ns(e,this),this.anyType},e.prototype.visitLiteralPrimitive=function(e){switch(e.value){case!0:case!1:return this.query.getBuiltinType(gh.Boolean);case null:return this.query.getBuiltinType(gh.Null);case void 0:return this.query.getBuiltinType(gh.Undefined);default:switch(typeof e.value){case"string":return this.query.getBuiltinType(gh.String);case"number":return this.query.getBuiltinType(gh.Number);default:return this.reportError("Unrecognized primitive",e)}}},e.prototype.visitMethodCall=function(e){return this.resolveMethodCall(this.getType(e.receiver),e)},e.prototype.visitPipe=function(e){var t=this,n=this.query.getPipes().get(e.name);if(!n)return this.reportError("No pipe by the name "+e.name+" found",e);var r=this.getType(e.exp),i=n.selectSignature([r].concat(e.args.map(function(e){return t.getType(e)})));return i?i.result:this.reportError("Unable to resolve signature for pipe invocation",e)},e.prototype.visitPrefixNot=function(e){return this.query.getBuiltinType(gh.Boolean)},e.prototype.visitNonNullAssert=function(e){var t=this.getType(e.expression);return this.query.getNonNullableType(t)},e.prototype.visitPropertyRead=function(e){return this.resolvePropertyRead(this.getType(e.receiver),e)},e.prototype.visitPropertyWrite=function(e){return this.getType(e.value)},e.prototype.visitQuote=function(e){return this.query.getBuiltinType(gh.Any)},e.prototype.visitSafeMethodCall=function(e){return this.resolveMethodCall(this.query.getNonNullableType(this.getType(e.receiver)),e)},e.prototype.visitSafePropertyRead=function(e){return this.resolvePropertyRead(this.query.getNonNullableType(this.getType(e.receiver)),e)},Object.defineProperty(e.prototype,"anyType",{get:function(){var e=this._anyType;return e||(e=this._anyType=this.query.getBuiltinType(gh.Any)),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"undefinedType",{get:function(){var e=this._undefinedType;return e||(e=this._undefinedType=this.query.getBuiltinType(gh.Undefined)),e},enumerable:!0,configurable:!0}),e.prototype.resolveMethodCall=function(e,t){var n=this;if(this.isAny(e))return this.anyType;var r=e.members().get(t.name);if(!r)return this.reportError("Unknown method '"+t.name+"'",t);if(!r.type)return this.reportError("Could not find a type for '"+t.name+"'",t);if(!r.type.callable)return this.reportError("Member '"+t.name+"' is not callable",t);var i=r.type.selectSignature(t.args.map(function(e){return n.getType(e)}));return i?i.result:this.reportError("Unable to resolve signature for call of method "+t.name,t)},e.prototype.resolvePropertyRead=function(e,t){if(this.isAny(e))return this.anyType;var n=e.members().get(t.name);if(!n){var r;if("$implict"==(r=e.name))r="The component declaration, template variable declarations, and element references do";else{if(e.nullable)return this.reportError("The expression might be null",t.receiver);r="'"+r+"' does"}return this.reportError("Identifier '"+t.name+"' is not defined. "+r+" not contain such a member",t)}return n.public||this.reportWarning("Identifier '"+t.name+"' refers to a private member of "+(r="$implict"==(r=e.name)?"the component":"'"+r+"'"),t),n.type},e.prototype.reportError=function(e,t){return this.diagnostics&&this.diagnostics.push(new Ch(_h.Error,e,t)),this.anyType},e.prototype.reportWarning=function(e,t){return this.diagnostics&&this.diagnostics.push(new Ch(_h.Warning,e,t)),this.anyType},e.prototype.isAny=function(e){return!e||this.query.getTypeKind(e)==gh.Any||!!e.type&&this.isAny(e.type)},e}();function Nh(e,t){if(e.fileName){var n=e.offset;return[{fileName:e.fileName,span:{start:t.sourceSpan.start.offset+n,end:t.sourceSpan.end.offset+n}}]}}function kh(e,t,n){var r=n.directives.find(function(e){var t=rn(e.directive.type);return"NgFor"==t||"NgForOf"==t});if(r){var i=r.inputs.find(function(e){return"ngForOf"==e.directiveName});if(i){var o=new Th(t.members,t.query,{}).getType(i.value);if(o){var s=t.query.getElementType(o);if(s)return s}}}return t.query.getBuiltinType(gh.Any)}function Ph(e,t,n){var r=e.members,i=function s(e){var t=[];function n(n){var r,i,o=function(n){var r=void 0;n.value&&(r=e.query.getTypeSymbol(sn(n.value))),t.push({name:n.name,kind:"reference",type:r||e.query.getBuiltinType(gh.Any),get definition(){return Nh(e,n)}})};try{for(var s=p(n),a=s.next();!a.done;a=s.next())o(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}return iu(new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.visitEmbeddedTemplate=function(t,r){e.prototype.visitEmbeddedTemplate.call(this,t,r),n(t.references)},t.prototype.visitElement=function(t,r){e.prototype.visitElement.call(this,t,r),n(t.references)},t}(ru)),e.templateAst),t}(e),a=function u(e,t){for(var n,r,i=[],o=t.tail;o;){if(o instanceof Ya){var s=function(t){var n=t.name,r=o.directives.map(function(t){return e.query.getTemplateContext(t.directive.type.reference)}).find(function(e){return!!e}),s=void 0;if(r){var a=r.get(t.value);if(a){var u=e.query.getTypeKind(s=a.type);u!==gh.Any&&u!=gh.Unbound||(s=kh(0,e,o))}}s||(s=e.query.getBuiltinType(gh.Any)),i.push({name:n,kind:"variable",type:s,get definition(){return Nh(e,t)}})};try{for(var a=(n=void 0,p(o.variables)),u=a.next();!u.done;u=a.next())s(u.value)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}o=t.parentOf(o)}return i}(e,t),l=function c(e,t){var n=[];return t&&(n=[{name:"$event",kind:"variable",type:e.query.getBuiltinType(gh.Any)}]),n}(e,n);if(i.length||a.length||l.length){var h=e.query.createSymbolTable(i),f=e.query.createSymbolTable(a),d=e.query.createSymbolTable(l);r=e.query.mergeSymbolTable([r,h,f,d])}return r}var Ah=function(e){function t(t,n){var r=e.call(this)||this;return r.info=t,r.getExpressionScope=n,r.diagnostics=[],r.path=new Xs([]),r}return o(t,e),t.prototype.visitDirective=function(e,t){e.inputs&&e.inputs.length&&iu(this,e.inputs,t)},t.prototype.visitBoundText=function(e){this.push(e),this.diagnoseExpression(e.value,e.sourceSpan.start.offset,!1),this.pop()},t.prototype.visitDirectiveProperty=function(e){this.push(e),this.diagnoseExpression(e.value,this.attributeValueLocation(e),!1),this.pop()},t.prototype.visitElementProperty=function(e){this.push(e),this.diagnoseExpression(e.value,this.attributeValueLocation(e),!1),this.pop()},t.prototype.visitEvent=function(e){this.push(e),this.diagnoseExpression(e.handler,this.attributeValueLocation(e),!0),this.pop()},t.prototype.visitVariable=function(e){var t=this.directiveSummary;if(t&&e.value){var n=this.info.query.getTemplateContext(t.type.reference);n&&!n.has(e.value)&&this.reportError("$implicit"===e.value?"The template context does not have an implicit value":"The template context does not defined a member called '"+e.value+"'",function r(e){return{start:e.start.offset,end:e.end.offset}}
|
|
592
|
+
function Sh(e){(e.ng||(e.ng={})).ɵcompilerFacade=new Ac}(Bt),function(e){e[e.Any=0]="Any",e[e.String=1]="String",e[e.Number=2]="Number",e[e.Boolean=3]="Boolean",e[e.Undefined=4]="Undefined",e[e.Null=5]="Null",e[e.Unbound=6]="Unbound",e[e.Other=7]="Other"}(gh||(gh={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(_h||(_h={}));var Ch=function Ch(e,t,n){this.kind=e,this.message=t,this.ast=n},Th=function(){function e(e,t,n){this.scope=e,this.query=t,this.context=n}return e.prototype.getType=function(e){return e.visit(this)},e.prototype.getDiagnostics=function(e){this.diagnostics=[];var t=e.visit(this);return this.context.event&&t.callable&&this.reportWarning("Unexpected callable expression. Expected a method call",e),this.diagnostics},e.prototype.visitBinary=function(e){var t=this;function n(e,t){switch(e){case gh.Undefined:case gh.Null:return n(t,gh.Other)}return e}var r=function(e,n){var r=t.getType(e);if(r.nullable){switch(n){case"&&":case"||":case"==":case"!=":case"===":case"!==":break;default:t.reportError("The expression might be null",e)}return t.query.getNonNullableType(r)}return r},i=r(e.left,e.operation),o=r(e.right,e.operation),s=this.query.getTypeKind(i),a=this.query.getTypeKind(o),u=n(s,a),l=u<<8|n(a,s);switch(e.operation){case"*":case"/":case"%":case"-":case"<<":case">>":case">>>":case"&":case"^":case"|":switch(l){case gh.Any<<8|gh.Any:case gh.Number<<8|gh.Any:case gh.Any<<8|gh.Number:case gh.Number<<8|gh.Number:return this.query.getBuiltinType(gh.Number);default:var c=e.left;switch(u){case gh.Any:case gh.Number:c=e.right}return this.reportError("Expected a numeric type",c)}case"+":switch(l){case gh.Any<<8|gh.Any:case gh.Any<<8|gh.Boolean:case gh.Any<<8|gh.Number:case gh.Any<<8|gh.Other:case gh.Boolean<<8|gh.Any:case gh.Number<<8|gh.Any:case gh.Other<<8|gh.Any:return this.anyType;case gh.Any<<8|gh.String:case gh.Boolean<<8|gh.String:case gh.Number<<8|gh.String:case gh.String<<8|gh.Any:case gh.String<<8|gh.Boolean:case gh.String<<8|gh.Number:case gh.String<<8|gh.String:case gh.String<<8|gh.Other:case gh.Other<<8|gh.String:return this.query.getBuiltinType(gh.String);case gh.Number<<8|gh.Number:return this.query.getBuiltinType(gh.Number);case gh.Boolean<<8|gh.Number:case gh.Other<<8|gh.Number:return this.reportError("Expected a number type",e.left);case gh.Number<<8|gh.Boolean:case gh.Number<<8|gh.Other:return this.reportError("Expected a number type",e.right);default:return this.reportError("Expected operands to be a string or number type",e)}case">":case"<":case"<=":case">=":case"==":case"!=":case"===":case"!==":switch(l){case gh.Any<<8|gh.Any:case gh.Any<<8|gh.Boolean:case gh.Any<<8|gh.Number:case gh.Any<<8|gh.String:case gh.Any<<8|gh.Other:case gh.Boolean<<8|gh.Any:case gh.Boolean<<8|gh.Boolean:case gh.Number<<8|gh.Any:case gh.Number<<8|gh.Number:case gh.String<<8|gh.Any:case gh.String<<8|gh.String:case gh.Other<<8|gh.Any:case gh.Other<<8|gh.Other:return this.query.getBuiltinType(gh.Boolean);default:return this.reportError("Expected the operants to be of similar type or any",e)}case"&&":return o;case"||":return this.query.getTypeUnion(i,o)}return this.reportError("Unrecognized operator "+e.operation,e)},e.prototype.visitChain=function(e){return this.diagnostics&&ns(e,this),this.query.getBuiltinType(gh.Undefined)},e.prototype.visitConditional=function(e){return this.diagnostics&&ns(e,this),this.query.getTypeUnion(this.getType(e.trueExp),this.getType(e.falseExp))},e.prototype.visitFunctionCall=function(e){var t=this,n=e.args.map(function(e){return t.getType(e)}),r=this.getType(e.target);if(!r||!r.callable)return this.reportError("Call target is not callable",e);var i=r.selectSignature(n);return i?i.result:this.reportError("Unable no compatible signature found for call",e)},e.prototype.visitImplicitReceiver=function(e){var t=this;return{name:"$implict",kind:"component",language:"ng-template",type:void 0,container:void 0,callable:!1,nullable:!1,public:!0,definition:void 0,members:function(){return t.scope},signatures:function(){return[]},selectSignature:function(e){},indexed:function(e){}}},e.prototype.visitInterpolation=function(e){return this.diagnostics&&ns(e,this),this.undefinedType},e.prototype.visitKeyedRead=function(e){var t=this.getType(e.obj),n=this.getType(e.key);return t.indexed(n)||this.anyType},e.prototype.visitKeyedWrite=function(e){return this.getType(e.value)},e.prototype.visitLiteralArray=function(e){var t,n=this;return this.query.getArrayType((t=this.query).getTypeUnion.apply(t,f(e.expressions.map(function(e){return n.getType(e)}))))},e.prototype.visitLiteralMap=function(e){return this.diagnostics&&ns(e,this),this.anyType},e.prototype.visitLiteralPrimitive=function(e){switch(e.value){case!0:case!1:return this.query.getBuiltinType(gh.Boolean);case null:return this.query.getBuiltinType(gh.Null);case void 0:return this.query.getBuiltinType(gh.Undefined);default:switch(typeof e.value){case"string":return this.query.getBuiltinType(gh.String);case"number":return this.query.getBuiltinType(gh.Number);default:return this.reportError("Unrecognized primitive",e)}}},e.prototype.visitMethodCall=function(e){return this.resolveMethodCall(this.getType(e.receiver),e)},e.prototype.visitPipe=function(e){var t=this,n=this.query.getPipes().get(e.name);if(!n)return this.reportError("No pipe by the name "+e.name+" found",e);var r=this.getType(e.exp),i=n.selectSignature([r].concat(e.args.map(function(e){return t.getType(e)})));return i?i.result:this.reportError("Unable to resolve signature for pipe invocation",e)},e.prototype.visitPrefixNot=function(e){return this.query.getBuiltinType(gh.Boolean)},e.prototype.visitNonNullAssert=function(e){var t=this.getType(e.expression);return this.query.getNonNullableType(t)},e.prototype.visitPropertyRead=function(e){return this.resolvePropertyRead(this.getType(e.receiver),e)},e.prototype.visitPropertyWrite=function(e){return this.getType(e.value)},e.prototype.visitQuote=function(e){return this.query.getBuiltinType(gh.Any)},e.prototype.visitSafeMethodCall=function(e){return this.resolveMethodCall(this.query.getNonNullableType(this.getType(e.receiver)),e)},e.prototype.visitSafePropertyRead=function(e){return this.resolvePropertyRead(this.query.getNonNullableType(this.getType(e.receiver)),e)},Object.defineProperty(e.prototype,"anyType",{get:function(){var e=this._anyType;return e||(e=this._anyType=this.query.getBuiltinType(gh.Any)),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"undefinedType",{get:function(){var e=this._undefinedType;return e||(e=this._undefinedType=this.query.getBuiltinType(gh.Undefined)),e},enumerable:!0,configurable:!0}),e.prototype.resolveMethodCall=function(e,t){var n=this;if(this.isAny(e))return this.anyType;var r=e.members().get(t.name);if(!r)return this.reportError("Unknown method '"+t.name+"'",t);if(!r.type)return this.reportError("Could not find a type for '"+t.name+"'",t);if(!r.type.callable)return this.reportError("Member '"+t.name+"' is not callable",t);var i=r.type.selectSignature(t.args.map(function(e){return n.getType(e)}));return i?i.result:this.reportError("Unable to resolve signature for call of method "+t.name,t)},e.prototype.resolvePropertyRead=function(e,t){if(this.isAny(e))return this.anyType;var n=e.members().get(t.name);if(!n){var r;if("$implict"==(r=e.name))r="The component declaration, template variable declarations, and element references do";else{if(e.nullable)return this.reportError("The expression might be null",t.receiver);r="'"+r+"' does"}return this.reportError("Identifier '"+t.name+"' is not defined. "+r+" not contain such a member",t)}return n.public||this.reportWarning("Identifier '"+t.name+"' refers to a private member of "+(r="$implict"==(r=e.name)?"the component":"'"+r+"'"),t),n.type},e.prototype.reportError=function(e,t){return this.diagnostics&&this.diagnostics.push(new Ch(_h.Error,e,t)),this.anyType},e.prototype.reportWarning=function(e,t){return this.diagnostics&&this.diagnostics.push(new Ch(_h.Warning,e,t)),this.anyType},e.prototype.isAny=function(e){return!e||this.query.getTypeKind(e)==gh.Any||!!e.type&&this.isAny(e.type)},e}();function Nh(e,t){if(e.fileName){var n=e.offset;return[{fileName:e.fileName,span:{start:t.sourceSpan.start.offset+n,end:t.sourceSpan.end.offset+n}}]}}function kh(e,t,n){var r=n.directives.find(function(e){var t=rn(e.directive.type);return"NgFor"==t||"NgForOf"==t});if(r){var i=r.inputs.find(function(e){return"ngForOf"==e.directiveName});if(i){var o=new Th(t.members,t.query,{}).getType(i.value);if(o){var s=t.query.getElementType(o);if(s)return s}}}return t.query.getBuiltinType(gh.Any)}function Ph(e,t,n){var r=e.members,i=function s(e){var t=[];function n(n){var r,i,o=function(n){var r=void 0;n.value&&(r=e.query.getTypeSymbol(sn(n.value))),t.push({name:n.name,kind:"reference",type:r||e.query.getBuiltinType(gh.Any),get definition(){return Nh(e,n)}})};try{for(var s=p(n),a=s.next();!a.done;a=s.next())o(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}return iu(new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.visitEmbeddedTemplate=function(t,r){e.prototype.visitEmbeddedTemplate.call(this,t,r),n(t.references)},t.prototype.visitElement=function(t,r){e.prototype.visitElement.call(this,t,r),n(t.references)},t}(ru)),e.templateAst),t}(e),a=function u(e,t){for(var n,r,i=[],o=t.tail;o;){if(o instanceof Ya){var s=function(t){var n=t.name,r=o.directives.map(function(t){return e.query.getTemplateContext(t.directive.type.reference)}).find(function(e){return!!e}),s=void 0;if(r){var a=r.get(t.value);if(a){var u=e.query.getTypeKind(s=a.type);u!==gh.Any&&u!=gh.Unbound||(s=kh(0,e,o))}}s||(s=e.query.getBuiltinType(gh.Any)),i.push({name:n,kind:"variable",type:s,get definition(){return Nh(e,t)}})};try{for(var a=(n=void 0,p(o.variables)),u=a.next();!u.done;u=a.next())s(u.value)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}o=t.parentOf(o)}return i}(e,t),l=function c(e,t){var n=[];return t&&(n=[{name:"$event",kind:"variable",type:e.query.getBuiltinType(gh.Any)}]),n}(e,n);if(i.length||a.length||l.length){var h=e.query.createSymbolTable(i),f=e.query.createSymbolTable(a),d=e.query.createSymbolTable(l);r=e.query.mergeSymbolTable([r,h,f,d])}return r}var Ah=function(e){function t(t,n){var r=e.call(this)||this;return r.info=t,r.getExpressionScope=n,r.diagnostics=[],r.path=new Xs([]),r}return o(t,e),t.prototype.visitDirective=function(e,t){e.inputs&&e.inputs.length&&iu(this,e.inputs,t)},t.prototype.visitBoundText=function(e){this.push(e),this.diagnoseExpression(e.value,e.sourceSpan.start.offset,!1),this.pop()},t.prototype.visitDirectiveProperty=function(e){this.push(e),this.diagnoseExpression(e.value,this.attributeValueLocation(e),!1),this.pop()},t.prototype.visitElementProperty=function(e){this.push(e),this.diagnoseExpression(e.value,this.attributeValueLocation(e),!1),this.pop()},t.prototype.visitEvent=function(e){this.push(e),this.diagnoseExpression(e.handler,this.attributeValueLocation(e),!0),this.pop()},t.prototype.visitVariable=function(e){var t=this.directiveSummary;if(t&&e.value){var n=this.info.query.getTemplateContext(t.type.reference);n&&!n.has(e.value)&&this.reportError("$implicit"===e.value?"The template context does not have an implicit value":"The template context does not define a member called '"+e.value+"'",function r(e){return{start:e.start.offset,end:e.end.offset}}
|
|
593
593
|
/**
|
|
594
594
|
* @license
|
|
595
595
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -1417,7 +1417,7 @@ function Y_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}
|
|
|
1417
1417
|
*
|
|
1418
1418
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1419
1419
|
* found in the LICENSE file at https://angular.io/license
|
|
1420
|
-
*/var Z_,J_=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return eb(e)},e}(),eb=Y_,tb=function tb(){},nb=(new Wd("Renderer2Interceptor"),function nb(){});!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Z_||(Z_={}));var rb=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return ib()},e}(),ib=Y_,ob=function Ft(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},sb=new ob("8.2.
|
|
1420
|
+
*/var Z_,J_=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return eb(e)},e}(),eb=Y_,tb=function tb(){},nb=(new Wd("Renderer2Interceptor"),function nb(){});!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}(Z_||(Z_={}));var rb=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return ib()},e}(),ib=Y_,ob=function Ft(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},sb=new ob("8.2.9"),ab=function(){function e(){}return e.prototype.supports=function(e){return L_(e)},e.prototype.create=function(e){return new lb(e)},e}(),ub=function(e,t){return t},lb=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||ub}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<fb(n,r,i)?t:n,s=fb(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,l=a-r;if(u!=l){for(var c=0;c<u;c++){var p=c<i.length?i[c]:i[c]=0,h=p+c;l<=h&&h<u&&(i[c]=p+1)}i[o.previousIndex]=l-u}}s!==a&&e(o,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!L_(e))throw new Error("Error trying to diff '"+Dd(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)i=this._trackByFn(a,r=e[a]),null!==o&&O_(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),O_(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function u(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[M_()](),i=void 0;!(i=r.next()).done;)t(i.value)}(e,function(e){i=t._trackByFn(n,e),null!==o&&O_(o.trackById,i)?(s&&(o=t._verifyReinsertion(o,e,i,n)),O_(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),s=!0),o=o._next,n++}),this.length=n;return this._truncate(o),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(O_(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(O_(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new cb(t,n),i,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new hb),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new hb),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),cb=function cb(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},pb=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&O_(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),hb=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new pb,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function fb(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}
|
|
1421
1421
|
/**
|
|
1422
1422
|
* @license
|
|
1423
1423
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -1578,7 +1578,7 @@ function ax(e){return"function"==typeof e}!function(e){function t(t){var n=e.cal
|
|
|
1578
1578
|
*
|
|
1579
1579
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1580
1580
|
* found in the LICENSE file at https://angular.io/license
|
|
1581
|
-
*/(t),n}o(t,e),t.prototype.create=function(e){return new sx(this.moduleType,e)}}(dv);let ux=!1;const lx={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ux&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ux=e},get useDeprecatedSynchronousErrorHandling(){return ux}};function cx(e){setTimeout(()=>{throw e})}const px={closed:!0,next(e){},error(e){if(lx.useDeprecatedSynchronousErrorHandling)throw e;cx(e)},complete(){}},hx=Array.isArray||(e=>e&&"number"==typeof e.length);function fx(e){return null!==e&&"object"==typeof e}function dx(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}dx.prototype=Object.create(Error.prototype);const vx=dx;class mx{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:r,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let s=-1,a=r?r.length:0;for(;n;)n.remove(this),n=++s<a&&r[s]||null;if(ax(i))try{i.call(this)}catch(n){t=!0,e=n instanceof vx?yx(n.errors):[n]}if(hx(o))for(s=-1,a=o.length;++s<a;){const n=o[s];if(fx(n))try{n.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof vx?e=e.concat(yx(n.errors)):e.push(n)}}if(t)throw new vx(e)}add(e){let t=e;switch(typeof e){case"function":t=new mx(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof mx)){const e=t;(t=new mx)._subscriptions=[e]}break;default:if(!e)return mx.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(t._addParent(this)){const e=this._subscriptions;e?e.push(t):this._subscriptions=[t]}return t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}function yx(e){return e.reduce((e,t)=>e.concat(t instanceof vx?t.errors:t),[])}mx.EMPTY=function(e){return e.closed=!0,e}(new mx);const gx="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class _x extends mx{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=px;break;case 1:if(!e){this.destination=px;break}if("object"==typeof e){e instanceof _x?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new bx(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new bx(this,e,t,n)}}[gx](){return this}static create(e,t,n){const r=new _x(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class bx extends _x{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;ax(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==px&&(ax((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;lx.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=lx;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):cx(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;cx(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);lx.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),lx.useDeprecatedSynchronousErrorHandling)throw e;cx(e)}}__tryOrSetError(e,t,n){if(!lx.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return lx.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(cx(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const wx="function"==typeof Symbol&&Symbol.observable||"@@observable";function xx(){}class Ex{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const t=new Ex;return t.source=this,t.operator=e,t}subscribe(e,t,n){const{operator:r}=this,i=function o(e,t,n){if(e){if(e instanceof _x)return e;if(e[gx])return e[gx]()}return e||t||n?new _x(e,t,n):new _x(px)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||lx.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),lx.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){lx.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function t(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof _x?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=Sx(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(e){n(e),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[wx](){return this}pipe(...e){return 0===e.length?this:function t(e){return e?1===e.length?e[0]:function t(n){return e.reduce((e,t)=>t(e),n)}:xx}(e)(this)}toPromise(e){return new(e=Sx(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}function Sx(e){if(e||(e=Promise),!e)throw new Error("no Promise impl found");return e}function Cx(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}Ex.create=(e=>new Ex(e)),Cx.prototype=Object.create(Error.prototype);const Tx=Cx;class Nx extends mx{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class kx extends _x{constructor(e){super(e),this.destination=e}}class Px extends Ex{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[gx](){return new kx(this)}lift(e){const t=new Ax(this,this);return t.operator=e,t}next(e){if(this.closed)throw new Tx;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].next(e)}}error(e){if(this.closed)throw new Tx;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].error(e);this.observers.length=0}complete(){if(this.closed)throw new Tx;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let e=0;e<t;e++)n[e].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Tx;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Tx;return this.hasError?(e.error(this.thrownError),mx.EMPTY):this.isStopped?(e.complete(),mx.EMPTY):(this.observers.push(e),new Nx(this,e))}asObservable(){const e=new Ex;return e.source=this,e}}Px.create=((e,t)=>new Ax(e,t));class Ax extends Px{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):mx.EMPTY}}function Ix(){return function e(t){return t.lift(new Mx(t))}}class Mx{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Ox(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class Ox extends _x{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const Rx=class extends Ex{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new mx).add(this.source.subscribe(new Lx(this.getSubject(),this))),e.closed?(this._connection=null,e=mx.EMPTY):this._connection=e),e}refCount(){return Ix()(this)}}.prototype,Dx={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Rx._subscribe},_isComplete:{value:Rx._isComplete,writable:!0},getSubject:{value:Rx.getSubject},connect:{value:Rx.connect},refCount:{value:Rx.refCount}};class Lx extends kx{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class Fx extends mx{constructor(e,t){super()}schedule(e,t=0){return this}}class jx extends Fx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Vx{constructor(e,t=Vx.now){this.SchedulerAction=e,this.now=t}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}Vx.now=(()=>Date.now());class Bx extends Vx{constructor(e,t=Vx.now){super(e,()=>Bx.delegate&&Bx.delegate!==this?Bx.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Bx.delegate&&Bx.delegate!==this?Bx.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}new class extends Bx{}(class extends jx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}});const Hx=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()};function Ux(e,t){return new Ex(t?n=>{const r=new mx;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Hx(e))}var qx;!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(qx||(qx={}));let Kx=1;const zx={},Wx={setImmediate(e){const t=Kx++;return zx[t]=e,Promise.resolve().then(()=>(function e(t){const n=zx[t];n&&n()})(t)),t},clearImmediate(e){delete zx[e]}};function Qx(e){return e}new class extends Bx{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}(class extends jx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=Wx.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(Wx.clearImmediate(t),e.scheduled=void 0)}}),new Bx(jx),new class extends Bx{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}(class extends jx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});class $x{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Gx(e,this.project,this.thisArg))}}class Gx extends _x{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)}}class Xx extends _x{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Yx extends _x{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const Zx=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,cx),t),Jx=function eE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),tE=e=>t=>{const n=e[Jx]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},nE=e=>t=>{const n=e[wx]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},rE=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function iE(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const oE=e=>{if(e instanceof Ex)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[wx])return nE(e);if(rE(e))return Hx(e);if(iE(e))return Zx(e);if(e&&"function"==typeof e[Jx])return tE(e);{const t=fx(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};class sE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new aE(e,this.project,this.concurrent))}}class aE extends Xx{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new Yx(this,void 0,void 0);this.destination.add(r),function i(e,t,n,r,o=new Yx(e,n,r)){o.closed||oE(t)(o)}(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}
|
|
1581
|
+
*/(t),n}o(t,e),t.prototype.create=function(e){return new sx(this.moduleType,e)}}(dv);let ux=!1;const lx={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ux&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ux=e},get useDeprecatedSynchronousErrorHandling(){return ux}};function cx(e){setTimeout(()=>{throw e})}const px={closed:!0,next(e){},error(e){if(lx.useDeprecatedSynchronousErrorHandling)throw e;cx(e)},complete(){}},hx=Array.isArray||(e=>e&&"number"==typeof e.length);function fx(e){return null!==e&&"object"==typeof e}function dx(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}dx.prototype=Object.create(Error.prototype);const vx=dx;class mx{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:r,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let s=-1,a=r?r.length:0;for(;n;)n.remove(this),n=++s<a&&r[s]||null;if(ax(i))try{i.call(this)}catch(n){t=!0,e=n instanceof vx?yx(n.errors):[n]}if(hx(o))for(s=-1,a=o.length;++s<a;){const n=o[s];if(fx(n))try{n.unsubscribe()}catch(n){t=!0,e=e||[],n instanceof vx?e=e.concat(yx(n.errors)):e.push(n)}}if(t)throw new vx(e)}add(e){let t=e;switch(typeof e){case"function":t=new mx(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof mx)){const e=t;(t=new mx)._subscriptions=[e]}break;default:if(!e)return mx.EMPTY;throw new Error("unrecognized teardown "+e+" added to Subscription.")}if(t._addParent(this)){const e=this._subscriptions;e?e.push(t):this._subscriptions=[t]}return t}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}_addParent(e){let{_parent:t,_parents:n}=this;return t!==e&&(t?n?-1===n.indexOf(e)&&(n.push(e),!0):(this._parents=[e],!0):(this._parent=e,!0))}}function yx(e){return e.reduce((e,t)=>e.concat(t instanceof vx?t.errors:t),[])}mx.EMPTY=function(e){return e.closed=!0,e}(new mx);const gx="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class _x extends mx{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=px;break;case 1:if(!e){this.destination=px;break}if("object"==typeof e){e instanceof _x?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new bx(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new bx(this,e,t,n)}}[gx](){return this}static create(e,t,n){const r=new _x(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class bx extends _x{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;ax(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==px&&(ax((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;lx.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=lx;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):cx(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;cx(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);lx.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),lx.useDeprecatedSynchronousErrorHandling)throw e;cx(e)}}__tryOrSetError(e,t,n){if(!lx.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return lx.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(cx(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const wx="function"==typeof Symbol&&Symbol.observable||"@@observable";function xx(){}class Ex{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const t=new Ex;return t.source=this,t.operator=e,t}subscribe(e,t,n){const{operator:r}=this,i=function o(e,t,n){if(e){if(e instanceof _x)return e;if(e[gx])return e[gx]()}return e||t||n?new _x(e,t,n):new _x(px)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||lx.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),lx.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){lx.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function t(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof _x?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=Sx(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(e){n(e),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[wx](){return this}pipe(...e){return 0===e.length?this:function t(e){return e?1===e.length?e[0]:function t(n){return e.reduce((e,t)=>t(e),n)}:xx}(e)(this)}toPromise(e){return new(e=Sx(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}function Sx(e){if(e||(e=lx.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function Cx(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}Ex.create=(e=>new Ex(e)),Cx.prototype=Object.create(Error.prototype);const Tx=Cx;class Nx extends mx{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class kx extends _x{constructor(e){super(e),this.destination=e}}class Px extends Ex{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[gx](){return new kx(this)}lift(e){const t=new Ax(this,this);return t.operator=e,t}next(e){if(this.closed)throw new Tx;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].next(e)}}error(e){if(this.closed)throw new Tx;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;t<n;t++)r[t].error(e);this.observers.length=0}complete(){if(this.closed)throw new Tx;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let e=0;e<t;e++)n[e].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new Tx;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new Tx;return this.hasError?(e.error(this.thrownError),mx.EMPTY):this.isStopped?(e.complete(),mx.EMPTY):(this.observers.push(e),new Nx(this,e))}asObservable(){const e=new Ex;return e.source=this,e}}Px.create=((e,t)=>new Ax(e,t));class Ax extends Px{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):mx.EMPTY}}function Ix(){return function e(t){return t.lift(new Mx(t))}}class Mx{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Ox(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class Ox extends _x{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const Rx=class extends Ex{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new mx).add(this.source.subscribe(new Lx(this.getSubject(),this))),e.closed?(this._connection=null,e=mx.EMPTY):this._connection=e),e}refCount(){return Ix()(this)}}.prototype,Dx={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Rx._subscribe},_isComplete:{value:Rx._isComplete,writable:!0},getSubject:{value:Rx.getSubject},connect:{value:Rx.connect},refCount:{value:Rx.refCount}};class Lx extends kx{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class Fx extends mx{constructor(e,t){super()}schedule(e,t=0){return this}}class jx extends Fx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Vx{constructor(e,t=Vx.now){this.SchedulerAction=e,this.now=t}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}Vx.now=(()=>Date.now());class Bx extends Vx{constructor(e,t=Vx.now){super(e,()=>Bx.delegate&&Bx.delegate!==this?Bx.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Bx.delegate&&Bx.delegate!==this?Bx.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}new class extends Bx{}(class extends jx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}});const Hx=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()};function Ux(e,t){return new Ex(t?n=>{const r=new mx;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:Hx(e))}var qx;!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(qx||(qx={}));let Kx=1;const zx={},Wx={setImmediate(e){const t=Kx++;return zx[t]=e,Promise.resolve().then(()=>(function e(t){const n=zx[t];n&&n()})(t)),t},clearImmediate(e){delete zx[e]}};function Qx(e){return e}new class extends Bx{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}(class extends jx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=Wx.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(Wx.clearImmediate(t),e.scheduled=void 0)}}),new Bx(jx),new class extends Bx{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}}}(class extends jx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,n=0){return null!==n&&n>0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});class $x{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new Gx(e,this.project,this.thisArg))}}class Gx extends _x{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)}}class Xx extends _x{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class Yx extends _x{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const Zx=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,cx),t),Jx=function eE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),tE=e=>t=>{const n=e[Jx]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},nE=e=>t=>{const n=e[wx]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},rE=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function iE(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const oE=e=>{if(e instanceof Ex)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[wx])return nE(e);if(rE(e))return Hx(e);if(iE(e))return Zx(e);if(e&&"function"==typeof e[Jx])return tE(e);{const t=fx(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};class sE{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new aE(e,this.project,this.concurrent))}}class aE extends Xx{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)}_innerSub(e,t,n){const r=new Yx(this,void 0,void 0);this.destination.add(r),function i(e,t,n,r,o=new Yx(e,n,r)){o.closed||oE(t)(o)}(this,e,t,n,r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e,t,n,r,i){this.destination.next(t)}notifyComplete(e){const t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}
|
|
1582
1582
|
/**
|
|
1583
1583
|
* @license
|
|
1584
1584
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -1791,7 +1791,7 @@ var d}function HC(e,t,n,r){oC.apply(void 0,f([e,t,n],r))}function UC(e,t){for(va
|
|
|
1791
1791
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1792
1792
|
* found in the LICENSE file at https://angular.io/license
|
|
1793
1793
|
*/
|
|
1794
|
-
function r(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(ew(this._ngModuleDefFactory));return Lb.createNgModuleRef(this.moduleType,e||r_.NULL,this._bootstrapComponents,n)}}(dv);var XC=function(){function e(e,t){var n=this;this.host=e,this.getProgram=t,this.metadataCollector=new kf({verboseInvalidExpression:!0}),e.directoryExists&&(this.directoryExists=function(e){return n.host.directoryExists(e)})}return e.prototype.fileExists=function(e){return!!this.host.getScriptSnapshot(e)},e.prototype.readFile=function(e){var t=this.host.getScriptSnapshot(e);if(t)return t.getText(0,t.getLength())},e.prototype.getSourceFileMetadata=function(e){var t=this.getProgram().getSourceFile(e);return t?this.metadataCollector.getMetadata(t):void 0},e.prototype.cacheMetadata=function(e){return e.endsWith(".d.ts")},e}(),YC=function(){function e(e,t,n){this.options=n,this.metadataReaderCache=function r(){return{data:new Map}}(),this.hostAdapter=new XC(t,e)}return e.prototype.getMetadataFor=function(e){return function t(e,n,r){var i=r&&r.data.get(e);if(i)return i;if(n.fileExists(e))if(If.test(e))(i=function o(e,t){var n=t.replace(If,".metadata.json");if(e.fileExists(n))try{var r=JSON.parse(e.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(e,t){return e.version>t.version?e:t});o.version<sf&&i.push(Mf(e,o,t))}return i}catch(e){throw console.error("Failed to read JSON file "+n),e}}(n,e))||(i=[Mf(n,{__symbolic:"module",version:1,metadata:{}},e)]);else{var s=n.getSourceFileMetadata(e);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(e)||r.data.set(e,i),i}(e,this.hostAdapter,this.metadataReaderCache)},e.prototype.moduleNameToFileName=function(e,r){if(!r){if(0===e.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");r=t.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=n.resolveModuleName(e,r,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},e.prototype.getOutputName=function(e){return e},e}(),ZC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(){return new Sa([],[])},t}(ka),JC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.get=function(e){return Promise.resolve("")},t}(Pc),eT=function(){function e(e,t){this.host=e,this.tsService=t,this._staticSymbolCache=new Zt,this.modulesOutOfDate=!0,this.fileToComponent=new Map,this.collectedErrors=new Map,this.fileVersions=new Map}return Object.defineProperty(e.prototype,"resolver",{get:function(){var e=this;this.validate();var t=this._resolver;if(!t){var n=new jp(this.reflector),r=new $c(this.reflector),i=new Vp(this.reflector),o=new Pl,s=new JC,a=mh(),u=new ZC,l=new qc({defaultEncapsulation:hv.Emulated,useJit:!1}),c=new zc(s,a,u,l);t=this._resolver=new Op(l,u,n,r,i,new vh,o,c,new kE,this._staticSymbolCache,this.reflector,function(t,n){return e.collectError(t,n&&n.filePath)})}return t},enumerable:!0,configurable:!0}),e.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},e.prototype.getTemplateAt=function(e,t){var n=this.getSourceFile(e);if(n){this.context=n.fileName;var r=this.findNode(n,t);if(r)return this.getSourceFromNode(e,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(e);if(i)return this.getSourceFromType(e,this.host.getScriptVersion(e),i)}},e.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},e.prototype.ensureAnalyzedModules=function(){var e=this.analyzedModules;return e||(e=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function t(e,n,r,i){return function s(e){var t=[],n=new Map,r=new Set;e.forEach(function(e){e.ngModules.forEach(function(e){t.push(e),e.declaredDirectives.forEach(function(t){return n.set(t.reference,e)}),e.declaredPipes.forEach(function(t){return n.set(t.reference,e)})}),e.directives.forEach(function(e){return r.add(e)}),e.pipes.forEach(function(e){return r.add(e)})});var i=[];return r.forEach(function(e){n.has(e)||i.push(e)}),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}(function o(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=function u(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var c=!1;if("class"===u.__symbolic)if(n.isDirective(r))c=!0,i.push(r);else if(n.isPipe(r))c=!0,o.push(r);else if(n.isNgModule(r)){var p=n.getNgModuleMetadata(r,!1);p&&(c=!0,a.push(p))}else if(n.isInjectable(r)){c=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}c||(l=l||function f(e,t){var n=!1,r=function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return xt(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return xt(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof Yt&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return xt(t,new r,null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:l}}(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,n,r,i))}(this.program.getSourceFiles().map(function(e){return e.fileName}),{isSourceFile:function(e){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=e),e},e.prototype.getTemplates=function(e){var t=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(e)){var r=this.host.getScriptVersion(e),i=[],o=function(s){var a=t.getSourceFromNode(e,r,s);a?i.push(a):n.forEachChild(s,o)},s=this.getSourceFile(e);return s&&(this.context=s.path||s.fileName,n.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(e,0);if(a)return[a]},e.prototype.getDeclarations=function(e){var t=this,r=[],i=this.getSourceFile(e);if(i){var o=function(e){var s=t.getDeclarationFromNode(i,e);s?r.push(s):n.forEachChild(e,o)};n.forEachChild(i,o)}return r},e.prototype.getSourceFile=function(e){return this.tsService.getProgram().getSourceFile(e)},e.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent.clear(),this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(e.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checker",{get:function(){var e=this._checker;return e||(e=this._checker=this.program.getTypeChecker()),e},enumerable:!0,configurable:!0}),e.prototype.validate=function(){var e,t,n=this,r=this.program;if(this.lastProgram!==r){var i=function(e){return n._staticSymbolResolver.invalidateFile(e)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var l=this.host.getScriptVersion(u);l!=this.fileVersions.get(u)&&(this.fileVersions.set(u,l),this._staticSymbolResolver&&i(u))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}var c=Array.from(this.fileVersions.keys()).filter(function(e){return!o.has(e)});c.forEach(function(e){return n.fileVersions.delete(e)}),this._staticSymbolResolver&&c.forEach(i),this.lastProgram=r}},e.prototype.clearCaches=function(){this._checker=null,this._resolver=null,this.collectedErrors.clear(),this.modulesOutOfDate=!0},e.prototype.ensureTemplateMap=function(){var e,t,n,r;if(!this.templateReferences){var i=[],o=this.getAnalyzedModules(),s=mh();try{for(var a=p(o.ngModules),u=a.next();!u.done;u=a.next()){var l=u.value;try{for(var c=(n=void 0,p(l.declaredDirectives)),h=c.next();!h.done;h=c.next()){var f=h.value,d=this.resolver.getNonNormalizedDirectiveMetadata(f.reference).metadata;if(d.isComponent&&d.template&&d.template.templateUrl){var v=s.resolve(this.reflector.componentModuleUrl(f.reference),d.template.templateUrl);this.fileToComponent.set(v,f.reference),i.push(v)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.templateReferences=i}},e.prototype.getSourceFromDeclaration=function(e,t,n,r,i,o,s,a){var u=void 0,l=this;if(o)return{version:t,source:n,span:r,type:i,get members(){return function e(t,n,r,i){var o=n.getTypeAtLocation(i);return new Bh(o,{node:r,program:t,checker:n}).members()}(l.program,l.checker,a,o)},get query(){if(!u){var t=[],n=l.getTemplateAstAtPosition(e,s.getStart());n&&(t=n.pipes),u=function r(e,t,n,i){return new Lh(e,t,n,i)}(l.program,l.checker,a,function(){return function e(t,n,r,i){return new $h(i,{program:n,checker:r,node:t})}(a,l.program,l.checker,t)})}return u}}},e.prototype.getSourceFromNode=function(e,t,r){switch(r.kind){case n.SyntaxKind.NoSubstitutionTemplateLiteral:case n.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(r),2)[0];if(i&&i.name){var o=this.getSourceFile(e);if(o)return this.getSourceFromDeclaration(e,t,this.stringOf(r)||"",function s(e,t){return null==t&&(t=1),{start:e.start+t,end:e.end-t}}(tT(r)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,r,o)}}},e.prototype.getSourceFromType=function(e,t,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(e);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(e,t,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(e.prototype,"reflectorHost",{get:function(){var e=this,n=this._reflectorHost;if(!n){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(e){for(var n=t.dirname(e);r.existsSync(n);){var i=t.join(n,"tsconfig.json");if(r.existsSync(i))return i;var o=t.dirname(n);if(o===n)break;n=o}}(o.fileName),u=t.dirname(s||this.context),l={basePath:u,genDir:u},c=this.host.getCompilationSettings();c&&c.baseUrl&&(l.baseUrl=c.baseUrl),c&&c.paths&&(l.paths=c.paths),n=this._reflectorHost=new YC(function(){return e.tsService.getProgram()},this.host,l)}return n},enumerable:!0,configurable:!0}),e.prototype.collectError=function(e,t){if(t){var n=this.collectedErrors.get(t);n||this.collectedErrors.set(t,n=[]),n.push(e)}},Object.defineProperty(e.prototype,"staticSymbolResolver",{get:function(){var e=this,t=this._staticSymbolResolver;return t||(this._summaryResolver=new dh({loadSummary:function(e){return null},isSourceFile:function(e){return!0},toSummaryFileName:function(e){return e},fromSummaryFileName:function(e){return e}},this._staticSymbolCache),t=this._staticSymbolResolver=new Up(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reflector",{get:function(){var e=this,t=this._reflector;return t||(t=this._reflector=new Jp(this._summaryResolver,this.staticSymbolResolver,[],[],function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),e.prototype.getTemplateClassFromStaticSymbol=function(e){var t=this.getSourceFile(e.filePath);if(t)return n.forEachChild(t,function(t){if(t.kind===n.SyntaxKind.ClassDeclaration&&null!=t.name&&t.name.text===e.name)return t})},e.prototype.getTemplateClassDeclFromNode=function(t){var r=t.parent;if(!r)return e.missingTemplate;if(r.kind!==n.SyntaxKind.PropertyAssignment)return e.missingTemplate;if("template"!==r.name.text)return e.missingTemplate;if(!(r=r.parent)||r.kind!==n.SyntaxKind.ObjectLiteralExpression)return e.missingTemplate;if(!(r=r.parent)||r.kind!==n.SyntaxKind.CallExpression)return e.missingTemplate;var i=r.parent;if(!i||i.kind!==n.SyntaxKind.Decorator)return e.missingTemplate;var o=i.parent;return o&&o.kind===n.SyntaxKind.ClassDeclaration?[o,r.expression]:e.missingTemplate},e.prototype.getCollectedErrors=function(e,t){var r=this.collectedErrors.get(t.fileName);return r&&r.map(function(r){var i=function o(e,t,r){if(null!=t&&null!=r){var i=n.getPositionOfLineAndCharacter(e,t,r),o=n.forEachChild(e,function e(t){if(t.kind>n.SyntaxKind.LastToken&&t.pos<=i&&t.end>i)return n.forEachChild(t,e)||t});if(o)return{start:o.getStart(),end:o.getEnd()}}}(t,r.line||r.position&&r.position.line,r.column||r.position&&r.position.column)||e;return function s(e){return!!e[Qp]}
|
|
1794
|
+
function r(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(ew(this._ngModuleDefFactory));return Lb.createNgModuleRef(this.moduleType,e||r_.NULL,this._bootstrapComponents,n)}}(dv);var XC=function(){function e(e,t){var n=this;this.host=e,this.getProgram=t,this.metadataCollector=new kf({verboseInvalidExpression:!0}),e.directoryExists&&(this.directoryExists=function(e){return n.host.directoryExists(e)})}return e.prototype.fileExists=function(e){return!!this.host.getScriptSnapshot(e)},e.prototype.readFile=function(e){var t=this.host.getScriptSnapshot(e);if(t)return t.getText(0,t.getLength())},e.prototype.getSourceFileMetadata=function(e){var t=this.getProgram().getSourceFile(e);return t?this.metadataCollector.getMetadata(t):void 0},e.prototype.cacheMetadata=function(e){return e.endsWith(".d.ts")},e}(),YC=function(){function e(e,r,i){this.tsLSHost=r,this.metadataReaderCache=function o(){return{data:new Map}}();var s=r.getCurrentDirectory();this.fakeContainingPath=s?t.join(s,"fakeContainingFile.ts"):"",this.hostAdapter=new XC(r,e),this.moduleResolutionCache=n.createModuleResolutionCache(s,function(e){return e},r.getCompilationSettings())}return e.prototype.getMetadataFor=function(e){return function t(e,n,r){var i=r&&r.data.get(e);if(i)return i;if(n.fileExists(e))if(If.test(e))(i=function o(e,t){var n=t.replace(If,".metadata.json");if(e.fileExists(n))try{var r=JSON.parse(e.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(e,t){return e.version>t.version?e:t});o.version<sf&&i.push(Mf(e,o,t))}return i}catch(e){throw console.error("Failed to read JSON file "+n),e}}(n,e))||(i=[Mf(n,{__symbolic:"module",version:1,metadata:{}},e)]);else{var s=n.getSourceFileMetadata(e);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(e)||r.data.set(e,i),i}(e,this.hostAdapter,this.metadataReaderCache)},e.prototype.moduleNameToFileName=function(e,t){if(!t){if(e.startsWith("."))throw new Error("Resolution of relative paths requires a containing file.");if(!this.fakeContainingPath)throw new Error("Could not resolve '"+e+"' without a containing file.");t=this.fakeContainingPath}var r=this.tsLSHost.getCompilationSettings(),i=n.resolveModuleName(e,t,r,this.hostAdapter,this.moduleResolutionCache).resolvedModule;return i?i.resolvedFileName:null},e.prototype.getOutputName=function(e){return e},e}(),ZC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(){return new Sa([],[])},t}(ka),JC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.get=function(e){return Promise.resolve("")},t}(Pc),eT=function(){function e(e,t){this.host=e,this.tsService=t,this._staticSymbolCache=new Zt,this.modulesOutOfDate=!0,this.fileToComponent=new Map,this.collectedErrors=new Map,this.fileVersions=new Map}return Object.defineProperty(e.prototype,"resolver",{get:function(){var e=this;this.validate();var t=this._resolver;if(!t){var n=new jp(this.reflector),r=new $c(this.reflector),i=new Vp(this.reflector),o=new Pl,s=new JC,a=mh(),u=new ZC,l=new qc({defaultEncapsulation:hv.Emulated,useJit:!1}),c=new zc(s,a,u,l);t=this._resolver=new Op(l,u,n,r,i,new vh,o,c,new kE,this._staticSymbolCache,this.reflector,function(t,n){return e.collectError(t,n&&n.filePath)})}return t},enumerable:!0,configurable:!0}),e.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},e.prototype.getTemplateAt=function(e,t){var n=this.getSourceFile(e);if(n){this.context=n.fileName;var r=this.findNode(n,t);if(r)return this.getSourceFromNode(e,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(e);if(i)return this.getSourceFromType(e,this.host.getScriptVersion(e),i)}},e.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},e.prototype.ensureAnalyzedModules=function(){var e=this.analyzedModules;return e||(e=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function t(e,n,r,i){return function s(e){var t=[],n=new Map,r=new Set;e.forEach(function(e){e.ngModules.forEach(function(e){t.push(e),e.declaredDirectives.forEach(function(t){return n.set(t.reference,e)}),e.declaredPipes.forEach(function(t){return n.set(t.reference,e)})}),e.directives.forEach(function(e){return r.add(e)}),e.pipes.forEach(function(e){return r.add(e)})});var i=[];return r.forEach(function(e){n.has(e)||i.push(e)}),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}(function o(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=function u(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var c=!1;if("class"===u.__symbolic)if(n.isDirective(r))c=!0,i.push(r);else if(n.isPipe(r))c=!0,o.push(r);else if(n.isNgModule(r)){var p=n.getNgModuleMetadata(r,!1);p&&(c=!0,a.push(p))}else if(n.isInjectable(r)){c=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}c||(l=l||function f(e,t){var n=!1,r=function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return xt(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return xt(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof Yt&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return xt(t,new r,null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:l}}(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,n,r,i))}(this.program.getSourceFiles().map(function(e){return e.fileName}),{isSourceFile:function(e){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=e),e},e.prototype.getTemplates=function(e){var t=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(e)){var r=this.host.getScriptVersion(e),i=[],o=function(s){var a=t.getSourceFromNode(e,r,s);a?i.push(a):n.forEachChild(s,o)},s=this.getSourceFile(e);return s&&(this.context=s.path||s.fileName,n.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(e,0);if(a)return[a]},e.prototype.getDeclarations=function(e){var t=this,r=[],i=this.getSourceFile(e);if(i){var o=function(e){var s=t.getDeclarationFromNode(i,e);s?r.push(s):n.forEachChild(e,o)};n.forEachChild(i,o)}return r},e.prototype.getSourceFile=function(e){return this.tsService.getProgram().getSourceFile(e)},e.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent.clear(),this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(e.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checker",{get:function(){var e=this._checker;return e||(e=this._checker=this.program.getTypeChecker()),e},enumerable:!0,configurable:!0}),e.prototype.validate=function(){var e,t,n=this,r=this.program;if(this.lastProgram!==r){var i=function(e){return n._staticSymbolResolver.invalidateFile(e)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var l=this.host.getScriptVersion(u);l!=this.fileVersions.get(u)&&(this.fileVersions.set(u,l),this._staticSymbolResolver&&i(u))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}var c=Array.from(this.fileVersions.keys()).filter(function(e){return!o.has(e)});c.forEach(function(e){return n.fileVersions.delete(e)}),this._staticSymbolResolver&&c.forEach(i),this.lastProgram=r}},e.prototype.clearCaches=function(){this._checker=null,this._resolver=null,this.collectedErrors.clear(),this.modulesOutOfDate=!0},e.prototype.ensureTemplateMap=function(){var e,t,n,r;if(!this.templateReferences){var i=[],o=this.getAnalyzedModules(),s=mh();try{for(var a=p(o.ngModules),u=a.next();!u.done;u=a.next()){var l=u.value;try{for(var c=(n=void 0,p(l.declaredDirectives)),h=c.next();!h.done;h=c.next()){var f=h.value,d=this.resolver.getNonNormalizedDirectiveMetadata(f.reference).metadata;if(d.isComponent&&d.template&&d.template.templateUrl){var v=s.resolve(this.reflector.componentModuleUrl(f.reference),d.template.templateUrl);this.fileToComponent.set(v,f.reference),i.push(v)}}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}this.templateReferences=i}},e.prototype.getSourceFromDeclaration=function(e,t,n,r,i,o,s,a){var u=void 0,l=this;if(o)return{version:t,source:n,span:r,type:i,get members(){return function e(t,n,r,i){var o=n.getTypeAtLocation(i);return new Bh(o,{node:r,program:t,checker:n}).members()}(l.program,l.checker,a,o)},get query(){if(!u){var t=[],n=l.getTemplateAstAtPosition(e,s.getStart());n&&(t=n.pipes),u=function r(e,t,n,i){return new Lh(e,t,n,i)}(l.program,l.checker,a,function(){return function e(t,n,r,i){return new $h(i,{program:n,checker:r,node:t})}(a,l.program,l.checker,t)})}return u}}},e.prototype.getSourceFromNode=function(e,t,r){switch(r.kind){case n.SyntaxKind.NoSubstitutionTemplateLiteral:case n.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(r),2)[0];if(i&&i.name){var o=this.getSourceFile(e);if(o)return this.getSourceFromDeclaration(e,t,this.stringOf(r)||"",function s(e,t){return null==t&&(t=1),{start:e.start+t,end:e.end-t}}(tT(r)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,r,o)}}},e.prototype.getSourceFromType=function(e,t,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(e);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(e,t,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(e.prototype,"reflectorHost",{get:function(){var e=this,n=this._reflectorHost;if(!n){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(e){for(var n=t.dirname(e);r.existsSync(n);){var i=t.join(n,"tsconfig.json");if(r.existsSync(i))return i;var o=t.dirname(n);if(o===n)break;n=o}}(o.fileName),u=t.dirname(s||this.context),l={basePath:u,genDir:u},c=this.host.getCompilationSettings();c&&c.baseUrl&&(l.baseUrl=c.baseUrl),c&&c.paths&&(l.paths=c.paths),n=this._reflectorHost=new YC(function(){return e.tsService.getProgram()},this.host,l)}return n},enumerable:!0,configurable:!0}),e.prototype.collectError=function(e,t){if(t){var n=this.collectedErrors.get(t);n||this.collectedErrors.set(t,n=[]),n.push(e)}},Object.defineProperty(e.prototype,"staticSymbolResolver",{get:function(){var e=this,t=this._staticSymbolResolver;return t||(this._summaryResolver=new dh({loadSummary:function(e){return null},isSourceFile:function(e){return!0},toSummaryFileName:function(e){return e},fromSummaryFileName:function(e){return e}},this._staticSymbolCache),t=this._staticSymbolResolver=new Up(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reflector",{get:function(){var e=this,t=this._reflector;return t||(t=this._reflector=new Jp(this._summaryResolver,this.staticSymbolResolver,[],[],function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),e.prototype.getTemplateClassFromStaticSymbol=function(e){var t=this.getSourceFile(e.filePath);if(t)return n.forEachChild(t,function(t){if(t.kind===n.SyntaxKind.ClassDeclaration&&null!=t.name&&t.name.text===e.name)return t})},e.prototype.getTemplateClassDeclFromNode=function(t){var r=t.parent;if(!r)return e.missingTemplate;if(r.kind!==n.SyntaxKind.PropertyAssignment)return e.missingTemplate;if("template"!==r.name.text)return e.missingTemplate;if(!(r=r.parent)||r.kind!==n.SyntaxKind.ObjectLiteralExpression)return e.missingTemplate;if(!(r=r.parent)||r.kind!==n.SyntaxKind.CallExpression)return e.missingTemplate;var i=r.parent;if(!i||i.kind!==n.SyntaxKind.Decorator)return e.missingTemplate;var o=i.parent;return o&&o.kind===n.SyntaxKind.ClassDeclaration?[o,r.expression]:e.missingTemplate},e.prototype.getCollectedErrors=function(e,t){var r=this.collectedErrors.get(t.fileName);return r&&r.map(function(r){var i=function o(e,t,r){if(null!=t&&null!=r){var i=n.getPositionOfLineAndCharacter(e,t,r),o=n.forEachChild(e,function e(t){if(t.kind>n.SyntaxKind.LastToken&&t.pos<=i&&t.end>i)return n.forEachChild(t,e)||t});if(o)return{start:o.getStart(),end:o.getEnd()}}}(t,r.line||r.position&&r.position.line,r.column||r.position&&r.position.column)||e;return function s(e){return!!e[Qp]}
|
|
1795
1795
|
/**
|
|
1796
1796
|
* @license
|
|
1797
1797
|
* Copyright Google Inc. All Rights Reserved.
|
|
@@ -1861,7 +1861,7 @@ function r(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var
|
|
|
1861
1861
|
*
|
|
1862
1862
|
* Use of this source code is governed by an MIT-style license that can be
|
|
1863
1863
|
* found in the LICENSE file at https://angular.io/license
|
|
1864
|
-
*/function tT(e){return{start:e.getStart(),end:e.getEnd()}}function nT(e){return{message:e.message,next:e.next?nT(e.next):void 0}}var rT=new WeakMap,iT=new ob("8.2.
|
|
1864
|
+
*/function tT(e){return{start:e.getStart(),end:e.getEnd()}}function nT(e){return{message:e.message,next:e.next?nT(e.next):void 0}}var rT=new WeakMap,iT=new ob("8.2.9");
|
|
1865
1865
|
/**
|
|
1866
1866
|
* @license
|
|
1867
1867
|
* Copyright Google Inc. All Rights Reserved.
|
package/package.json
CHANGED
package/src/reflector_host.d.ts
CHANGED
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@angular/language-service/src/reflector_host" />
|
|
9
9
|
import { StaticSymbolResolverHost } from '@angular/compiler';
|
|
10
|
-
import { CompilerOptions } from '@angular/compiler-cli/src/language_services';
|
|
11
10
|
import * as ts from 'typescript';
|
|
12
11
|
export declare class ReflectorHost implements StaticSymbolResolverHost {
|
|
13
|
-
private
|
|
14
|
-
private hostAdapter;
|
|
15
|
-
private metadataReaderCache;
|
|
16
|
-
|
|
12
|
+
private readonly tsLSHost;
|
|
13
|
+
private readonly hostAdapter;
|
|
14
|
+
private readonly metadataReaderCache;
|
|
15
|
+
private readonly moduleResolutionCache;
|
|
16
|
+
private readonly fakeContainingPath;
|
|
17
|
+
constructor(getProgram: () => ts.Program, tsLSHost: ts.LanguageServiceHost, _: {});
|
|
17
18
|
getMetadataFor(modulePath: string): {
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}[] | undefined;
|
package/src/reflector_host.js
CHANGED
|
@@ -50,23 +50,36 @@
|
|
|
50
50
|
return ReflectorModuleModuleResolutionHost;
|
|
51
51
|
}());
|
|
52
52
|
var ReflectorHost = /** @class */ (function () {
|
|
53
|
-
function ReflectorHost(getProgram,
|
|
54
|
-
this.
|
|
53
|
+
function ReflectorHost(getProgram, tsLSHost, _) {
|
|
54
|
+
this.tsLSHost = tsLSHost;
|
|
55
55
|
this.metadataReaderCache = language_services_1.createMetadataReaderCache();
|
|
56
|
-
|
|
56
|
+
// tsLSHost.getCurrentDirectory() returns the directory where tsconfig.json
|
|
57
|
+
// is located. This is not the same as process.cwd() because the language
|
|
58
|
+
// service host sets the "project root path" as its current directory.
|
|
59
|
+
var currentDir = tsLSHost.getCurrentDirectory();
|
|
60
|
+
this.fakeContainingPath = currentDir ? path.join(currentDir, 'fakeContainingFile.ts') : '';
|
|
61
|
+
this.hostAdapter = new ReflectorModuleModuleResolutionHost(tsLSHost, getProgram);
|
|
62
|
+
this.moduleResolutionCache = ts.createModuleResolutionCache(currentDir, function (s) { return s; }, // getCanonicalFileName
|
|
63
|
+
tsLSHost.getCompilationSettings());
|
|
57
64
|
}
|
|
58
65
|
ReflectorHost.prototype.getMetadataFor = function (modulePath) {
|
|
59
66
|
return language_services_1.readMetadata(modulePath, this.hostAdapter, this.metadataReaderCache);
|
|
60
67
|
};
|
|
61
68
|
ReflectorHost.prototype.moduleNameToFileName = function (moduleName, containingFile) {
|
|
62
69
|
if (!containingFile) {
|
|
63
|
-
if (moduleName.
|
|
70
|
+
if (moduleName.startsWith('.')) {
|
|
64
71
|
throw new Error('Resolution of relative paths requires a containing file.');
|
|
65
72
|
}
|
|
66
|
-
|
|
67
|
-
|
|
73
|
+
if (!this.fakeContainingPath) {
|
|
74
|
+
// If current directory is empty then the file must belong to an inferred
|
|
75
|
+
// project (no tsconfig.json), in which case it's not possible to resolve
|
|
76
|
+
// the module without the caller explicitly providing a containing file.
|
|
77
|
+
throw new Error("Could not resolve '" + moduleName + "' without a containing file.");
|
|
78
|
+
}
|
|
79
|
+
containingFile = this.fakeContainingPath;
|
|
68
80
|
}
|
|
69
|
-
var
|
|
81
|
+
var compilerOptions = this.tsLSHost.getCompilationSettings();
|
|
82
|
+
var resolved = ts.resolveModuleName(moduleName, containingFile, compilerOptions, this.hostAdapter, this.moduleResolutionCache)
|
|
70
83
|
.resolvedModule;
|
|
71
84
|
return resolved ? resolved.resolvedFileName : null;
|
|
72
85
|
};
|
|
@@ -75,4 +88,4 @@
|
|
|
75
88
|
}());
|
|
76
89
|
exports.ReflectorHost = ReflectorHost;
|
|
77
90
|
});
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
91
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdG9yX2hvc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9sYW5ndWFnZS1zZXJ2aWN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pbGVyT3B0aW9ucyA9IHRoaXMudHNMU0hvc3QuZ2V0Q29tcGlsYXRpb25TZXR0aW5ncygpO1xuICAgIGNvbnN0IHJlc29sdmVkID0gdHMucmVzb2x2ZU1vZHVsZU5hbWUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBtb2R1bGVOYW1lLCBjb250YWluaW5nRmlsZSwgY29tcGlsZXJPcHRpb25zLCB0aGlzLmhvc3RBZGFwdGVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tb2R1bGVSZXNvbHV0aW9uQ2FjaGUpXG4gICAgICAgICAgICAgICAgICAgICAgICAgLnJlc29sdmVkTW9kdWxlO1xuICAgIHJldHVybiByZXNvbHZlZCA/IHJlc29sdmVkLnJlc29sdmVkRmlsZU5hbWUgOiBudWxsO1xuICB9XG5cbiAgZ2V0T3V0cHV0TmFtZShmaWxlUGF0aDogc3RyaW5nKSB7IHJldHVybiBmaWxlUGF0aDsgfVxufVxuIl19
|
package/src/version.js
CHANGED
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
* Entry point for all public APIs of the common package.
|
|
23
23
|
*/
|
|
24
24
|
var core_1 = require("@angular/core");
|
|
25
|
-
exports.VERSION = new core_1.Version('8.2.
|
|
25
|
+
exports.VERSION = new core_1.Version('8.2.9');
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2xhbmd1YWdlLXNlcnZpY2Uvc3JjL3ZlcnNpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HOzs7Ozs7Ozs7Ozs7SUFFSDs7OztPQUlHO0lBRUgsc0NBQXNDO0lBRXpCLFFBQUEsT0FBTyxHQUFHLElBQUksY0FBTyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBsaWNlbnNlXG4gKiBDb3B5cmlnaHQgR29vZ2xlIEluYy4gQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21tb24gcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IG5ldyBWZXJzaW9uKCcwLjAuMC1QTEFDRUhPTERFUicpO1xuIl19
|